]> git.ipfire.org Git - thirdparty/glibc.git/blob - ChangeLog
nss: tst-nss-files-hosts-long: Add host.conf [BZ #21915]
[thirdparty/glibc.git] / ChangeLog
1 2019-02-21 Patsy Griffin Franklin <pfrankli@redhat.com>
2
3 [BZ #21915]
4 * nss/tst-nss-files-hosts-long.root/etc/host.conf: New file.
5
6 2019-02-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
7
8 * argp/argp-help.c (__argp_error_internal): New function,
9 renamed from __argp_error, but that takes a 'mode_flags'
10 parameter to control the format of long double parameters.
11 (__argp_error): Converted into a call __argp_error_internal.
12 (__argp_failure_internal): New function, renamed from
13 __argp_failure, but that takes a 'mode_flags' parameter.
14 (__argp_failure): Converted into a call __argp_failure_internal.
15 * misc/err.c (__vwarnx_internal): New function, renamed from
16 vwarnx, but that takes a 'mode_flags' parameter.
17 (vwarnx): Converted into a call to __vwarnx_internal.
18 (__vwarn_internal): New function, renamed from vwarn, but that
19 takes a 'mode_flags' parameter.
20 (vwarn): Converted into a call to __vwarn_internal.
21 * misc/error.c (error_tail): Add 'mode_flags' parameter. Update
22 call to __vfxprintf with 'mode_flags'.
23 (__error_internal): New function, renamed from error, but that
24 takes a 'mode_flags' parameter.
25 (error): Converted into a call to __error_internal.
26 (__error_at_line_internal): New function, renamed from
27 error_at_line, but that takes a 'mode_flags' parameter.
28 (error_at_line): Converted into a call to
29 __error_at_line_internal.
30 * include/stdio.h (__vfxprintf): Add mode_flags parameter.
31 * stdio-common/fxprintf.c (locked_vfxprintf, __vfxprintf):
32 Likewise.
33
34 2019-02-20 Martin Liska <mliska@suse.cz>
35
36 * math/Makefile: Install math-vector-fortran.h.
37 * bits/math-vector-fortran.h: New file.
38 * sysdeps/x86/fpu/bits/math-vector-fortran.h: New file.
39
40 2019-02-20 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
41
42 * sysdeps/powerpc/powerpc64/le/configure.ac: Remove test.
43 * sysdeps/powerpc/powerpc64/le/configure: Regenerate.
44
45 2019-02-19 Wolfram Sang <wsa@the-dreams.de>
46
47 * nptl/pthread_mutex_trylock.c: Fix comment.
48
49 2019-02-19 Carlos O'Donell <carlos@redhat.com>
50
51 * nptl/pthread_tryjoin.c: Fix comment.
52
53 2019-02-18 Joseph Myers <joseph@codesourcery.com>
54
55 [BZ #24231]
56 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Add break
57 after R_SPARC_H34 case.
58
59 2019-02-18 Florian Weimer <fweimer@redhat.com>
60
61 * resolv/compat-gethnamaddr.c (Dprintf): Remove definition.
62 (getanswer): Do not call Dprintf.
63 (res_gethostbyname2_context): Likewise.
64 (res_gethostbyaddr_context): Likewise.
65
66 2019-02-18 Florian Weimer <fweimer@redhat.com>
67
68 * libio/libio.h (_IO_stdin, _IO_stdout, _IO_stderr): Remove
69 declaration.
70 * libio/stdio.c (AL, AL2, _IO_stdin, _IO_stdout, _IO_stderr):
71 Remove definitions.
72 * libio/stdfiles.c: Update comment.
73 * libio/oldstdfiles.c (_IO_check_libio): Update comment. Do not
74 set _IO_stdin, _IO_stdout, _IO_stderr.
75 * libio/libioP.h (_IO_fake_stdiobuf): Remove unused declaration.
76 [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_1)] (_IO_legacy_file): New
77 inline function.
78 (_IO_deallocate_file): New inline function.
79 * libio/iolibio.h (_IO_vprintf): Remove definition.
80 * libio/iofclose.c (_IO_new_fclose): Use _IO_deallocate_file.
81 * libio/oldiofclose.c (_IO_old_fclose): Likewise.
82 * libio/iofwide.c (_IO_fwide): Use __glibc_unlikely and
83 _IO_legacy_file.
84 * libio/oldfileops.c (_IO_old_file_init_internal): Remove
85 __builtin_expect. Use _IO_legacy_file.
86
87 2019-02-18 Stefan Liebler <stli@linux.ibm.com>
88
89 * sysdeps/unix/sysv/linux/tst-clone3.c (do_test):
90 Initialize ctid with a known value and remove update of ctid
91 after clone.
92 (wait_tid): Adjust arguments and call futex_wait with ctid_val
93 as assumed current value of ctid_ptr.
94
95 2019-02-15 Florian Weimer <fweimer@redhat.com>
96
97 Check that non-sysdeps headers have wrapper headers.
98 * scripts/check-wrapper-headers.py: New file.
99 * Makefile (tests-special): Add check-wrapper-headers.out.
100 (check-wrapper-headers.out): New target.
101 * Rules (tests-special): Add check-wrapper-headers.out.
102 (check-wrapper-headers.out): New target.
103
104 2019-02-15 Florian Weimer <fweimer@redhat.com>
105
106 Add missing header wrappers under include/.
107 * include/ar.h: New file.
108 * include/bits/mqueue2.h: Likewise.
109 * include/bits/stdio.h: Likewise.
110 * include/bits/stdio2.h: Likewise.
111 * include/fstab.h: Likewise.
112 * include/fts.h: Likewise.
113 * include/lastlog.h: Likewise.
114 * include/netinet/icmp6.h: Likewise.
115 * include/netinet/igmp.h: Likewise.
116 * include/netinet/ip6.h: Likewise.
117 * include/re_comp.h: Likewise.
118 * include/regexp.h: Likewise.
119 * include/rpcsvc/bootparam.h: Likewise.
120 * include/rpcsvc/yp_prot.h: Likewise.
121 * include/sys/random.h: Likewise.
122 * include/sys/stropts.h: Likewise.
123 * include/sys/ttychars.h: Likewise.
124 * include/sys/vfs.h: Likewise.
125 * include/wait.h: Likewise.
126
127 2019-02-15 Florian Weimer <fweimer@redhat.com>
128
129 * nptl_db/proc_service.h: Move to ...
130 * sysdeps/nptl/proc_service.h: ... here.
131 * nptl_db/thread_db.h: Move to ...
132 * sysdeps/nptl/thread_db.h: ... here.
133 * nptl/descr.h: Include <thread_db.h>.
134
135 2019-02-15 Adhemerval Zanella <adhemerval.zanella@linaro.org>
136
137 * io/Makefile (tests): Add tst-lockf.
138 * io/lockf.c (lockf): Use __fcntl and only define for
139 !__OFF_T_MATCHES_OFF64_T.
140 * io/lockf64.c (__lockf64): Call __fcntl64 and alias to lockf for
141 __OFF_T_MATCHES_OFF64_T case.
142 * io/tst-lockf.c: New file.
143 * sysdeps/unix/sysv/linux/i386/lockf64.c: Remove file.
144 * sysdeps/unix/sysv/linux/arm/lockf64.c: Likewise.
145 * sysdeps/unix/sysv/linux/m68k/lockf64.c: Likewise.
146 * sysdeps/unix/sysv/linux/mips/mips32/lockf64.c: Likewise.
147 * sysdeps/unix/sysv/linux/mips/mips64/n32/lockf64.c: Likewise.
148 * sysdeps/unix/sysv/linux/powerpc/powerpc32/lockf64.c: Likewise.
149 * sysdeps/unix/sysv/linux/s390/s390-32/lockf64.c: Likewise.
150 * sysdeps/unix/sysv/linux/sh/lockf64.c: Likewise.
151 * sysdeps/unix/sysv/linux/sparc/sparc32/lockf64.c: Likewise.
152
153 2019-02-15 Florian Weimer <fweimer@redhat.com>
154
155 [BZ #24211]
156 * nptl/pthread_join_common.c (__pthread_timedjoin_ex): Do not read
157 pd->result after the thread descriptor has been freed.
158
159 2019-02-15 Joseph Myers <joseph@codesourcery.com>
160
161 * sunrpc/tst-svc_register.c (rpcbind_address): Remove qualifier
162 from function return type.
163
164 * setjmp/tst-setjmp.c (jump): Use __attribute__ ((__noreturn__)).
165
166 2019-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
167
168 * scripts/test_printers_common.py: Set TERM to a known harmless
169 value.
170
171 2019-02-14 Joseph Myers <joseph@codesourcery.com>
172
173 * sunrpc/xdr.c (xdr_int): Add fall-through comment.
174 (xdr_u_int): Likewise.
175 (xdr_enum): Likewise.
176 (xdr_bytes): Reword fall-through comment.
177 (xdr_string): Likewise.
178
179 2019-02-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
180
181 [BZ #2421]
182 * nptl/Makefile (lpthread-routines): Remove lll_timedwait_tid.
183 (tests): Add tst-join8 tst-join9.
184 * nptl/lll_timedwait_tid.c: Remove file.
185 * sysdeps/sparc/sparc32/lll_timedwait_tid.c: Likewise.
186 * sysdeps/unix/sysv/linux/i386/lll_timedwait_tid.c: Likewise.
187 * sysdeps/sysv/linux/x86_64/lll_timedwait_tid.c: Likewise.
188 * nptl/pthread_join_common.c (timedwait_tid): New function.
189 (__pthread_timedjoin_ex): Act as cancellation entrypoint is block
190 is set.
191 * nptl/tst-join5.c (thread_join): New function.
192 (tf1, tf2, do_test): Use libsupport and add pthread_timedjoin_np
193 check.
194 * nptl/tst-join8.c: New file.
195 * nptl/tst-join9.c: Likewise.
196 * sysdeps/nptl/lowlevellock-futex.h (lll_futex_wait_cancel,
197 lll_futex_timed_wait_cancel): Add generic macros.
198 * sysdeps/nptl/lowlevellock.h (__lll_timedwait_tid, lll_wait_tid):
199 Remove definitions.
200 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
201 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
202 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
203 * sysdeps/sparc/sparc32/lowlevellock.c (__lll_timedwait_tid):
204 Remove function.
205 * sysdeps/unix/sysv/linux/i386/lowlevellock.S (__lll_timedwait_tid):
206 Likewise.
207 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
208 * sysdeps/unix/sysv/linux/lowlevellock-futex.h
209 (lll_futex_timed_wait_cancel): New macro.
210
211 2019-02-14 Wilco Dijkstra <wdijkstr@arm.com>
212
213 * benchtests/Makefile: Add malloc-simple benchmark.
214 * benchtests/bench-malloc-simple.c: New benchmark.
215
216 2019-02-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
217
218 * benchtests/bench-memmove.c (do_one_test): Remove unused
219 ORIG_SRC.
220 (do_test): Adjust.
221 * benchtests/bench-memmove-large.c (do_one_test): Remove unused
222 ORIG_SRC.
223 (do_test): Adjust.
224
225 2019-01-13 Jim Wilson <jimw@sifive.com>
226
227 [BZ #24040]
228 * elf/Makefile (CFLAGS-tst-unwind-main.c): Add -DUSE_PTHREADS=0.
229 * elf/tst-unwind-main.c: If USE_PTHEADS, include pthread.h and error.h
230 (func): New.
231 (main): If USE_PTHREADS, call pthread_create to run func. Otherwise
232 call func directly.
233 * nptl/Makefile (tests): Add tst-unwind-thread.
234 (CFLAGS-tst-unwind-thread.c): Define.
235 * nptl/tst-unwind-thread.c: New file.
236 * sysdeps/unix/sysv/linux/riscv/clone.S (__thread_start): Mark ra
237 as undefined.
238
239 2019-02-13 Joseph Myers <joseph@codesourcery.com>
240
241 * iconvdata/cns11643.h (ucs4_to_cns11643): Adjust fall-through
242 comment wording.
243 * nis/nis_call.c (__do_niscall3): Likewise.
244
245 * catgets/gencat.c (normalize_line): Use braces around empty
246 'else' body.
247 * include/stap-probe.h [!USE_STAP_PROBE && !__ASSEMBLER__]
248 (STAP_PROBE0): Use do {} while (0) for do-nothing definition.
249 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE1): Likewise.
250 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE2): Likewise.
251 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE3): Likewise.
252 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE4): Likewise.
253 * libio/libio.h (_IO_funlockfile): Use ((void) 0) for do-nothing
254 definition.
255
256 * support/test-container.c (recursive_remove): Use FAIL_EXIT1 if
257 execlp returns.
258
259 2019-02-12 Wilco Dijkstra <wdijkstr@arm.com>
260
261 * benchtests/bench-strcasecmp.c (stupid_strcasecmp): Remove.
262 * benchtests/bench-strcasestr.c (stupid_strcasestr): Remove.
263 * benchtests/bench-strchr.c (stupid_strchr): Remove.
264 * benchtests/bench-strcmp.c (stupid_strcmp): Remove.
265 * benchtests/bench-strcspn.c (stupid_strcspn): Remove.
266 * benchtests/bench-strlen.c (builtin_strlen): Remove.
267 * benchtests/bench-strncasecmp.c (stupid_strncasecmp): Remove.
268 * benchtests/bench-strncmp.c (stupid_strncmp): Remove.
269 * benchtests/bench-strpbrk.c (stupid_strpbrk): Remove.
270 * benchtests/bench-strspn.c (stupid_strspn): Remove.
271 * benchtests/Makefile: Remove bench-bcopy.c and bench-bzero.c.
272 * benchtests/bench-bcopy.c: Delete file.
273 * benchtests/bench-bzero.c: Likewise.
274 * benchtests/bench-memccpy.c (stupid_memccpy): Remove.
275 (simple_memccpy): Remove.
276 (generic_memccpy): Add function.
277 * benchtests/bench-memcpy.c: (builtin_memcpy): Remove.
278 * benchtests/bench-memmove.c (simple_bcopy): Remove.
279 * benchtests/bench-mempcpy.c (simple_mempcpy): Remove.
280 (generic_mempcpy): Add new function.
281 * benchtests/bench-memset.c (simple_bzero): Remove.
282 (builtin_bzero): Remove.
283 (builtin_memset): Remove.
284 * benchtests/bench-rawmemchr.c (simple_rawmemchr): Remove.
285 (generic_rawmemchr): Add new function.
286
287 2019-02-12 Florian Weimer <fweimer@redhat.com>
288
289 * nss/getent.c (ahosts_keys_int): Include IPv6 scope ID in output.
290
291 2019-02-12 Adhemerval Zanella <adhemerval.zanella@linaro.org>
292
293 [BZ #24122]
294 * elf/Makefile (tests): Add tst-audit13.
295 (modules-names): Add tst-audit13mod1.
296 (tst-audit13.out, LDFLAGS-tst-audit13mod1.so, tst-audit13-ENV): New
297 rule.
298 * elf/tst-audit13.c: New file.
299 * elf/tst-audit13mod1.c: Likewise.
300
301 2019-02-12 Florian Weimer <fweimer@redhat.com>
302
303 [BZ #24122]
304 * elf/rtld.c (unload_audit_module): New function.
305 (report_audit_module_load_error): Likewise.
306 (load_audit_module): Likewise. Extracted from dl_main. Call
307 _dl_close if the laversion symbol cannot be found. Use early
308 returns for error handling. Add malloc error check. Check for a
309 zero return value from la_version. Remove spurious comment about
310 static TLS initialization. Remove useless casts.
311 (notify_audit_modules_of_loaded_object): New function. Extracted
312 from dl_main.
313 (load_audit_module): Likewise.
314 (dl_main): Call load_audit_modules.
315
316 2019-02-12 Joseph Myers <joseph@codesourcery.com>
317
318 * elf/dl-exception.c (_dl_exception_create_format): Add
319 fall-through comments.
320 * elf/ldconfig.c (parse_conf_include): Likewise.
321 * elf/rtld.c (print_statistics): Likewise.
322 * locale/programs/charmap.c (parse_charmap): Likewise.
323 * misc/mntent_r.c (__getmntent_r): Likewise.
324 * posix/wordexp.c (parse_arith): Likewise.
325 (parse_backtick): Likewise.
326 * resolv/ns_ttl.c (ns_parse_ttl): Likewise.
327 * sysdeps/x86/cpu-features.c (init_cpu_features): Likewise.
328 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
329
330 2019-02-11 Paul A. Clarke <pc@us.ibm.com>
331
332 * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrtf):
333 Use float instead of double.
334
335 2019-02-11 TAMUKI Shoichi <tamuki@linet.gr.jp>
336
337 * time/strftime_l.c: Fix a few whitespace arrangement inconsistencies.
338
339 2019-02-08 Joseph Myers <joseph@codesourcery.com>
340
341 * sysdeps/powerpc/bits/mathinline.h: Remove.
342
343 2019-02-08 Florian Weimer <fweimer@redhat.com>
344
345 math: Enable <bits/math-finite.h> sysdeps override, as used on ia64.
346 * math/bits/math-finite.h: Move to ...
347 * bits/math-finite.h: ... here.
348
349 2019-02-08 Florian Weimer <fweimer@redhat.com>
350
351 * sysdeps/generic/bits/unistd_ext.h: Move to ...
352 * bits/unistd_ext.h: here.
353
354 2019-02-08 Patsy Griffin Franklin <pfrankli@redhat.com>
355
356 [BZ #21915]
357 * nss/Makefile (test-container): Add tst-nss-files-hosts-long.
358 * nss/tst-nss-files-hosts-long.c: New file.
359 * nss/tst-nss-files-hosts-long.root: New directory.
360 * nss/tst-nss-files-hosts-long.root/etc: Likewise.
361 * nss/tst-nss-files-hosts-long.root/etc/hosts: New file.
362
363 2019-02-08 Florian Weimer <fweimer@redhat.com>
364
365 * include/bits/unistd_ext.h: Remove file.
366 * posix/bits/unistd_ext.h: Move to ...
367 * sysdeps/generic/bits/unistd_ext.h: ... here.
368
369 2019-02-08 Florian Weimer <fweimer@redhat.com>
370
371 * include/bits/unistd_ext.h: New file.
372
373 2019-02-08 TAMUKI Shoichi <tamuki@linet.gr.jp>
374
375 * time/tst-strftime2.c: Use array_length macros instead of magic
376 numbers.
377
378 2019-02-08 Florian Weimer <fweimer@redhat.com>
379
380 [BZ #24161]
381 * sysdeps/nptl/fork.h (__run_fork_handlers): Add multiple_threads
382 argument.
383 * nptl/register-atfork.c (__run_fork_handlers): Only perform
384 locking if the new do_locking argument is true.
385 * sysdeps/nptl/fork.c (__libc_fork): Pass multiple_threads to
386 __run_fork_handlers.
387
388 2019-02-08 Florian Weimer <fweimer@redhat.com>
389
390 [BZ #6399]
391 Linux: Add gettid system call wrapper.
392 * posix/Makefile (headers): Add bits/unistd_ext.h.
393 * posix/bits/unistd_ext.h: New file.
394 * posix/unistd.h: Include it.
395 * manual/process.texi (Process Identification): Document gettid.
396 * sysdeps/unix/sysv/linux/Makefile [subdir == misc] (tests): Add
397 tst-gettid, tst-gettid-kill.
398 (tst-gettid): Link with $(shared-thread-library).
399 * sysdeps/unix/sysv/linux/Version (GLIBC_2.30): Export gettid.
400 * sysdeps/unix/sysv/linux/bits/unistd_ext.h: New file.
401 * sysdeps/unix/sysv/linux/bits/syscalls.list (gettid): Add.
402 * sysdeps/unix/sysv/linux/bits/tst-gettid.c: New file.
403 * sysdeps/unix/sysv/linux/bits/tst-gettid-kill.c: Likewise.
404 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.30):
405 Add gettid.
406 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.30):
407 Likewise.
408 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.30): Likewise.
409 * sysdeps/unix/sysv/linux/csky/libc.abilist (GLIBC_2.30):
410 Likewise.
411 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.30):
412 Likewise.
413 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.30):
414 Likewise.
415 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.30):
416 Likewise.
417 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.30):
418 Likewise.
419 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.30):
420 Likewise.
421 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.30):
422 Likewise.
423 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
424 (GLIBC_2.30): Likewise.
425 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
426 (GLIBC_2.30): Likewise.
427 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
428 (GLIBC_2.30): Likewise.
429 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
430 (GLIBC_2.30): Likewise.
431 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.30):
432 Likewise.
433 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
434 (GLIBC_2.30): Likewise.
435 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
436 (GLIBC_2.30): Likewise.
437 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libc.abilist
438 (GLIBC_2.30): Likewise.
439 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libc.abilist
440 (GLIBC_2.30): Likewise.
441 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.30):
442 Likewise.
443 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.30):
444 Likewise.
445 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.30):
446 Likewise.
447 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.30): Likewise.
448 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.30):
449 Likewise.
450 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.30):
451 Likewise.
452 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.30):
453 Likewise.
454 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.30):
455 Likewise.
456 * sysdeps/unix/sysv/linux/tst-setgetname.c (gettid): Remove.
457
458 2019-02-07 Florian Weimer <fweimer@redhat.com>
459
460 * rt/clock-compat.c (COMPAT_REDIRECT): Turn librt forwarders into
461 compatibility symbols.
462
463 2019-02-07 Stefan Liebler <stli@linux.ibm.com>
464
465 [BZ #24180]
466 * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock):
467 Add compiler barriers and comments.
468
469 2019-02-07 Florian Weimer <fweimer@redhat.com>
470
471 * include/array_length.h (array_length): Do not use a statement
472 expression and _Static_assert, so that array_length can be used at
473 file scope and as a constant expression.
474
475 2019-02-07 Florian Weimer <fweimer@redhat.com>
476
477 * support/xdlfcn.h (xdlmopen): Declare.
478 * support/xdlmopen.c: New file.
479 * support/Makefile (libsupport-routines): Add xdlmopen.
480
481 2019-02-06 Joseph Myers <joseph@codesourcery.com>
482
483 * elf/dl-load.h (_dl_postprocess_loadcmd): Use __always_inline
484 before return type, without separate inline.
485 * elf/dl-tunables.c (maybe_enable_malloc_check): Likewise.
486 * elf/dl-tunables.h (tunable_is_name): Likewise.
487 * malloc/malloc.c (do_set_trim_threshold): Likewise.
488 (do_set_top_pad): Likewise.
489 (do_set_mmap_threshold): Likewise.
490 (do_set_mmaps_max): Likewise.
491 (do_set_mallopt_check): Likewise.
492 (do_set_perturb_byte): Likewise.
493 (do_set_arena_test): Likewise.
494 (do_set_arena_max): Likewise.
495 (do_set_tcache_max): Likewise.
496 (do_set_tcache_count): Likewise.
497 (do_set_tcache_unsorted_limit): Likewise.
498 * nis/nis_subr.c (count_dots): Likewise.
499 * nptl/allocatestack.c (advise_stack_range): Likewise.
500 * sysdeps/ieee754/dbl-64/s_sin.c (do_cos): Likewise.
501 (do_sin): Likewise.
502 (reduce_sincos): Likewise.
503 (do_sincos): Likewise.
504 * sysdeps/unix/sysv/linux/x86/elision-conf.c
505 (do_set_elision_enable): Likewise.
506 (TUNABLE_CALLBACK_FNDECL): Likewise.
507
508 2019-02-06 Florian Weimer <fweimer@redhat.com>
509
510 * support/xdlfcn.c (xdlopen, xdlclose): Do not call dlerror.
511 (xdlsym): Use dlerror to detect a NULL symbol.
512
513 2019-02-06 Florian Weimer <fweimer@redhat.com>
514
515 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Do not include
516 <stap-probe.h>.
517 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
518
519 2019-02-06 Stefan Liebler <stli@linux.ibm.com>
520
521 * libio/tst-bz24153.c (wide): Use wide char format specifier.
522
523 2019-02-06 Stefan Liebler <stli@linux.ibm.com>
524
525 * sysdeps/s390/wmemcmp-vx.S: Add strong alias to
526 __wmemcmp and weak alias to wmemcmp.
527
528 2019-02-06 Stefan Liebler <stli@linux.ibm.com>
529
530 [BZ #23403]
531 * nptl/allocatestack.c (allocate_stack): Align pointer pd for
532 TLS_TCB_AT_TP tls variant.
533 * nptl/tst-tls1.c: Migrate to support/test-driver.c.
534 Add alignment checks.
535 * support/Makefile (libsupport-routines): Add xposix_memalign and
536 xpthread_setstack.
537 * support/support.h: Add xposix_memalign.
538 * support/xthread.h: Add xpthread_attr_setstack.
539 * support/xposix_memalign.c: New File.
540 * support/xpthread_attr_setstack.c: Likewise.
541
542 2019-02-05 Florian Weimer <fweimer@redhat.com>
543
544 [BZ #24164]
545 arm: Use "nr" constraint for Systemtap probes, to avoid the
546 compiler using memory operands for constants, due to the "o"
547 alternative in the default "nor" constraint.
548 * include/stap-probe.h [USE_STAP_PROBE]: Include
549 <stap-probe-machine.h>
550 * sysdeps/generic/stap-probe-machine.h: New file.
551 * sysdeps/arm/stap-probe-machine.h: Likewise.
552
553 2019-02-04 Joseph Myers <joseph@codesourcery.com>
554
555 * malloc/malloc.c (tcache_get): Compare tcache->counts[tc_idx]
556 with 0, not tcache->entries[tc_idx].
557
558 * nscd/connections.c (reqinfo): Initialize SHUTDOWN element only
559 once.
560
561 2019-02-04 Andreas Schwab <schwab@suse.de>
562
563 [BZ #16976]
564 [BZ #17396]
565 * posix/fnmatch_loop.c (internal_fnmatch, internal_fnwmatch): When
566 looking up collating elements match against (wide) character
567 sequence instead of name. Correct alignment adjustment.
568 * posix/fnmatch.c: Don't include "../locale/elem-hash.h".
569 (WMEMCMP) [HANDLE_MULTIBYTE]: Define.
570 * posix/Makefile (tests): Add tst-fnmatch4 and tst-fnmatch5.
571 (LOCALES): Add cs_CZ.ISO-8859-2.
572 * posix/tst-fnmatch4.c: New file.
573 * posix/tst-fnmatch5.c: New file.
574 * include/wchar.h (__wmemcmp): Declare.
575 * wcsmbs/wmemcmp.c: Define __wmemcmp and add wmemcmp as weak alias.
576 * sysdeps/i386/i686/multiarch/wmemcmp.c: Likewise.
577 * sysdeps/x86_64/multiarch/wmemcmp.c: Likewise.
578 * sysdeps/s390/wmemcmp.c: Likewise.
579
580 2019-02-04 H.J. Lu <hongjiu.lu@intel.com>
581
582 [BZ #24155]
583 CVE-2019-7309
584 * NEWS: Updated for CVE-2019-7309.
585 * sysdeps/x86_64/memcmp.S: Use RDX_LP for size. Clear the
586 upper 32 bits of RDX register for x32. Use unsigned Jcc
587 instructions, instead of signed.
588 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcmp-2.
589 * sysdeps/x86_64/x32/tst-size_t-memcmp-2.c: New test.
590
591 2019-02-04 Florian Weimer <fweimer@redhat.com>
592
593 * posix/spawn.h (posix_spawn, posix_spawnp): Add __nonnull attribute.
594 (posix_spawnattr_init, posix_spawnattr_destroy): Likewise.
595 (posix_spawnattr_getsigdefault, posix_spawnattr_setsigdefault):
596 Likewise.
597 (posix_spawnattr_getsigmask, posix_spawnattr_setsigmask): Likewise.
598 (posix_spawnattr_getflags, posix_spawnattr_setflags): Likewise.
599 (posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Likewise.
600 (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy):
601 Likewise.
602 (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam):
603 Likewise.
604 (posix_spawn_file_actions_init, posix_spawn_file_actions_destroy):
605 Likewise.
606 (posix_spawn_file_actions_addopen): Likewise.
607 (posix_spawn_file_actions_addclose): Likewise.
608 (posix_spawn_file_actions_adddup2): Likewise.
609 (posix_spawn_file_actions_addchdir_np): Likewise. Add __restrict
610 qualifiers.
611 (posix_spawn_file_actions_addfchdir_np): Likewise.
612
613 2019-02-04 David Newall <glibc@davidnewall.com>
614
615 elf: Implement --preload option for the dynamic linker.
616 * elf/rtld.c (preloadarg): New variable.
617 (handle_preload_list): Pass through “where” argument to
618 do_preload.
619 (dl_main): Handle "--preload" and add second call to
620 handle_preload_list.
621 * elf/Makefile (tests-special): Add tst-rtld-preload.out.
622 (tst-rtld-preload-OBJS): Set variable.
623 (tst-rtld-preload.out): New target.
624 * elf/tst-rtld-preload.sh: New file.
625
626 2019-02-04 Matthew Malcomson <matthew.malcomson@arm.com>
627
628 * Makefile (testrun.sh): Exit in case of incorrect argument.
629
630 2019-02-04 Florian Weimer <fweimer@redhat.com>
631
632 * time/tzfile.c (__tzfile_read): Reorder suballocations to avoid
633 alignment gaps.
634
635 2019-02-03 Florian Weimer <fweimer@redhat.com>
636
637 * time/tzfile.c (__tzfile_read): Use struct alloc_buffer and its
638 implicit overflow checks.
639
640 2019-02-03 Aurelien Jarno <aurelien@aurel32.net>
641
642 * stdlib/isomac.c: Include <unistd.h>.
643
644 2019-02-03 Florian Weimer <fweimer@redhat.com>
645
646 * include/time.h (__tzfile_default): Use int, not long int, for
647 the GMT offsets.
648 * time/tzfile.c (struct ttinfo): Change type of the offset member
649 to int.
650 (__tzfile_read): Remove useless cast.
651 (__tzfile_default): Adjust prototype.
652 * time/tzset.c (tz_rule): Change type of the offset member to int.
653 (parse_offset): Change the type of the sign variable to int.
654
655 2019-02-03 Florian Weimer <fweimer@redhat.com>
656
657 [BZ #24153]
658 * debug/gets_chk.c (__gets_chk): Use stdin instead of _IO_stdin.
659 * libio/getchar.c (getchar): Likewise.
660 * libio/getchar_u.c (getchar_unlocked): Likewise.
661 * libio/getwchar.c (getwchar): Likewise.
662 * libio/getwchar_u.c (getwchar_unlocked): Likewise.
663 * libio/iogets.c (_IO_gets): Likewise.
664 * libio/vscanf.c (_IO_vscanf): Likewise.
665 * libio/vwscanf.c (__vwscanf): Likewise.
666 * libio/tst-bz24153.c: New file.
667 * libio/Makefile (tests): Add it.
668
669 2019-02-02 Florian Weimer <fweimer@redhat.com>
670
671 [BZ #14829]
672 * manual/resource.texi (Basic Scheduling Functions): Add
673 portability note. Change process to task throughout the section.
674 Remove incorrect comment about sched_yield as it affects
675 tasks/threads, not entire processes.
676 * sysdeps/unix/sysv/linux/bits/posix_opt.h
677 (_POSIX_PRIORITY_SCHEDULING): Update comment.
678
679 2019-02-01 Joseph Myers <joseph@codesourcery.com>
680
681 * configure.ac (libc_cv_compiler_ok): Require GCC 6.2 or later.
682 * configure: Regenerated.
683 * manual/install.texi (Tools for Compilation): Update minimum GCC
684 version.
685 * INSTALL: Regenerated.
686
687 2019-02-01 Florian Weimer <fweimer@redhat.com>
688
689 * support/support_test_compare_string.c
690 (support_test_compare_string): Use "string" in error message.
691 * support/tst-test_compare_string.c (do_test): Adjust.
692
693 2019-02-01 Florian Weimer <fweimer@redhat.com>
694
695 * support/support_format_address_family.c
696 (support_format_address_family): Handle AF_LOCAL, AF_UNSPEC.
697
698 2019-02-01 Florian Weimer <fweimer@redhat.com>
699
700 * manual/socket.texi (Internet Address Formats): Clarify the byte
701 order of struct sockaddr_in, struct sockaddr_in6. Document
702 sin6_flowinfo and sin6_scope_id.
703
704 2019-02-01 Wilco Dijkstra <wdijkstr@arm.com>
705
706 * sysdeps/posix/clock_getres.c (__clock_getres): Cleanup.
707 * sysdeps/unix/clock_gettime.c (__clock_gettime): Cleanup.
708 * sysdeps/unix/clock_settime.c (__clock_settime): Cleanup.
709 * sysdeps/unix/sysv/linux/clock_getres.c (__clock_getres): Cleanup.
710 * sysdeps/unix/sysv/linux/clock_gettime.c (__clock_gettime): Cleanup.
711 * sysdeps/unix/sysv/linux/clock_settime.c (__clock_settime): Cleanup.
712
713 2019-02-01 Feng Xue <fxue@os.amperecomputing.com>
714
715 * sysdeps/aarch64/memchr.S (__memchr): Rename to MEMCHR.
716 [!MEMCHR](MEMCHR): Set to __memchr.
717 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
718 Add memchr_generic and memchr_nosimd.
719 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
720 (__libc_ifunc_impl_list): Add memchr ifuncs.
721 * sysdeps/aarch64/multiarch/memchr.c: New file.
722 * sysdeps/aarch64/multiarch/memchr_generic.S: Likewise.
723 * sysdeps/aarch64/multiarch/memchr_nosimd.S: Likewise.
724
725 2019-02-01 Feng Xue <fxue@os.amperecomputing.com>
726
727 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
728 Add memset_emag.
729 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
730 (__libc_ifunc_impl_list): Add __memset_emag to memset ifunc.
731 * sysdeps/aarch64/multiarch/memset.c (libc_ifunc):
732 Add IS_EMAG check for ifunc dispatch.
733 * sysdeps/aarch64/multiarch/memset_base64.S: New file.
734 * sysdeps/aarch64/multiarch/memset_emag.S: New file.
735
736 2019-02-01 Feng Xue <fxue@os.amperecomputing.com>
737
738 * manual/tunables.texi (Tunable glibc.cpu.name): Add emag.
739 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
740 Add emag.
741 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_EMAG):
742 New macro.
743
744 2019-02-01 Stefan Liebler <stli@linux.ibm.com>
745
746 * posix/tst-spawn do_test(): Move waitpid before posix_spawn.
747
748 2019-01-31 Vineet Gupta <vgupta@synopsys.com>
749
750 * sysdeps/unix/make-syscalls.sh: Fix comment referencing
751 syscall-template file.
752
753 2019-01-31 Carlos O'Donell <carlos@redhat.com>
754 Torvald Riegel <triegel@redhat.com>
755 Rik Prohaska <prohaska7@gmail.com>
756
757 [BZ# 23844]
758 * nptl/Makefile (tests): Add tst-rwlock-tryrdlock-stall, and
759 tst-rwlock-trywrlock-stall.
760 * nptl/pthread_rwlock_tryrdlock.c (__pthread_rwlock_tryrdlock):
761 Wake waiters if PTHREAD_RWLOCK_FUTEX_USED is set.
762 * nptl/pthread_rwlock_trywrlock.c (__pthread_rwlock_trywrlock):
763 Set __wrphase_fute to 1 only if we started the write phase.
764 * nptl/tst-rwlock-tryrdlock-stall.c: New file.
765 * nptl/tst-rwlock-trywrlock-stall.c: New file.
766 * support/Makefile (libsupport-routines): Add xpthread_rwlock_destroy.
767 * support/xpthread_rwlock_destroy.c: New file.
768 * support/xthread.h: Declare xpthread_rwlock_destroy.
769
770 2019-02-01 Joseph Myers <joseph@codesourcery.com>
771
772 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
773 version to 4.0.2.
774
775 2019-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
776
777 [BZ #24051]
778 * libio/ioputs.c (_IO_puts): Use stdout instead of _IO_stdout.
779 * libio/fileops.c (_IO_new_file_underflow): Likewise
780 * libio/wfileops.c (_IO_wfile_underflow): Likewise
781 * libio/putchar.c (putchar): Likewise.
782 * libio/putchar_u.c (putchar_unlocked): Likewise.
783 * libio/putwchar.c (putchar): Likewise.
784 * libio/putwchar_u.c (putwchar_unlocked): Likewise.
785 * libio/tst-bz24051.c: New test.
786 * libio/Makefile (tests): Add tst-bz24051
787
788 2019-01-31 Paul Eggert <eggert@cs.ucla.edu>
789
790 regex: fix read overrun [BZ #24114]
791 Problem found by AddressSanitizer, reported by Hongxu Chen in:
792 https://debbugs.gnu.org/34140
793 * posix/regexec.c (proceed_next_node):
794 Do not read past end of input buffer.
795
796 2019-01-31 Florian Weimer <fweimer@redhat.com>
797
798 [BZ #24059]
799 * nss/nss_files/files-alias.c (get_next_alias): Handle
800 continuation line without newline at the end.
801 * nss/tst-nss-files-alias-truncated.c: New file.
802 * nss/Makefile [$(build-shared)] (tests): Add
803 tst-nss-files-alias-truncated.
804 (tst-nss-files-alias-truncated): Link with libnss_files.so.
805 * support/namespace.h (struct support_chroot_configuration): Add
806 aliases member.
807 (struct support_chroot): Add path_aliases member.
808 * support/support_chroot.c (support_chroot_create): Handle
809 aliases.
810 (support_chroot_free): Free path_aliases.
811
812 2019-01-31 Siddhesh Poyarekar <siddhesh@sourceware.org>
813
814 * version.h (RELEASE): Set to "development".
815 (VERSION): Set to "2.29.9000".
816 * NEWS: Add section for 2.30.
817
818 * version.h (RELEASE): Set to "stable".
819 (VERSION): Set to "2.29".
820 * include/features.h (__GLIBC_MINOR__): Set to 2.29.
821
822 * NEWS: Add the list of bugs fixed in 2.29.
823 * manual/contrib.texi: Update contributors list with some more
824 names.
825 * manual/install.texi: Update latest versions of packages
826 tested.
827 * INSTALL: Regenerated.
828
829 2019-01-25 Siddhesh Poyarekar <siddhesh@sourceware.org>
830
831 * po/be.po: Update translations.
832 * po/bg.po: Likewise.
833 * po/ca.po: Likewise.
834 * po/cs.po: Likewise.
835 * po/da.po: Likewise.
836 * po/de.po: Likewise.
837 * po/el.po: Likewise.
838 * po/eo.po: Likewise.
839 * po/es.po: Likewise.
840 * po/fi.po: Likewise.
841 * po/fr.po: Likewise.
842 * po/gl.po: Likewise.
843 * po/hr.po: Likewise.
844 * po/hu.po: Likewise.
845 * po/ia.po: Likewise.
846 * po/id.po: Likewise.
847 * po/it.po: Likewise.
848 * po/ja.po: Likewise.
849 * po/ko.po: Likewise.
850 * po/lt.po: Likewise.
851 * po/nb.po: Likewise.
852 * po/nl.po: Likewise.
853 * po/pl.po: Likewise.
854 * po/pt_BR.po: Likewise.
855 * po/ru.po: Likewise.
856 * po/rw.po: Likewise.
857 * po/sk.po: Likewise.
858 * po/sl.po: Likewise.
859 * po/sv.po: Likewise.
860 * po/tr.po: Likewise.
861 * po/uk.po: Likewise.
862 * po/vi.po: Likewise.
863 * po/zh_CN.po: Likewise.
864 * po/zh_TW.po: Likewise.
865
866 2019-01-24 Uroš Bizjak <ubizjak@gmail.com>
867
868 [BZ #24130]
869 * sysdeps/alpha/remqu.S (__remqu): Add missing restore
870 of $f3 register on $y_is_neg path.
871
872 2019-01-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
873
874 [BZ #24110]
875 * hurd/hurdsig.c (_hurd_thread_sigstate): Set SS_DISABLE in
876 sigaltstack.ss_flags.
877
878 2019-01-24 TAMUKI Shoichi <tamuki@linet.gr.jp>
879
880 [BZ #23758]
881 * manual/time.texi (strftime): Document "%Ey".
882 * time/strftime_l.c (__strftime_internal): Set the default width
883 padding with zero of "%Ey" to 2.
884
885 [BZ #24096]
886 * manual/time.texi (strftime): Document "%EC" and "%EY".
887 * time/Makefile (tests): Add tst-strftime2.
888 (LOCALES): Add ja_JP.UTF-8, lo_LA.UTF-8, and th_TH.UTF-8.
889 * time/strftime_l.c (__strftime_internal): Add argument yr_spec to
890 override padding for "%Ey".
891 If an optional flag ('_' or '-') is specified to "%EY", interpret the
892 "%Ey" in the subformat as if decorated with that flag.
893 * time/tst-strftime2.c: New file.
894
895 2019-01-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
896
897 * support/xsigstack.c (MAP_NORESERVE, MAP_STACK): Define if they
898 are not defined.
899
900 [BZ #24122]
901 * elf/Makefile (tests): Add tst-audit13.
902 (modules-names): Add tst-audit13mod1.
903 (tst-audit13.out, LDFLAGS-tst-audit13mod1.so, tst-audit13-ENV): New
904 rule.
905 * elf/rtld.c (dl_main): Handle invalid audit module version.
906 * elf/tst-audit13.c: New file.
907 * elf/tst-audit13mod1.c: Likewise.
908
909 2019-01-22 Samuel Thibault <samuel.thibault@ens-lyon.org>
910
911 * sysdeps/mach/hurd/faccessat.c (__faccessat_common): Check for errors
912 returned by __hurd_at_flags.
913 * hurd/lookup-at.c (__file_name_lookup_at): When at_flags contains
914 AT_EMPTY_PATH, call __dir_lookup and __hurd_file_name_lookup_retry
915 directly instead of __hurd_file_name_lookup.
916
917 2019-01-21 Joseph Myers <joseph@codesourcery.com>
918
919 * scripts/build-many-glibcs.py (Context.checkout): Default
920 binutils version to 2.32 branch.
921
922 2019-01-21 Florian Weimer <fweimer@redhat.com>
923
924 [BZ #20018]
925 CVE-2016-10739
926 resolv: Reject trailing characters in host names
927 * include/arpa/inet.h (__inet_aton_exact): Declare.
928 (inet_aton): Remove hidden prototype. No longer used internally.
929 * nscd/gai.c (__inet_aton): Do not define.
930 * nscd/gethstbynm3_r.c (__inet_aton): Likewise.
931 * nss/digits_dots.c (__inet_aton): Likewise.
932 (__nss_hostname_digits_dots_context): Call __inet_aton_exact.
933 * resolv/Makefile (tests-internal): Add tst-inet_aton_exact.
934 (tests): Add tst-resolv-nondecimal, tst-resolv-trailing.
935 (tst-resolv-nondecimal): Link with libresolv.so and libpthread.
936 (tst-resolv-trailing): Likewise.
937 * resolv/Versions (GLIBC_PRIVATE): Export __inet_aton_exact from
938 libc.
939 * resolv/inet_addr.c (inet_aton_end): Remame from __inet_aton.
940 Make static. Add endp parameter.
941 (__inet_aton_exact): New function.
942 (__inet_aton_ignore_trailing): New function, aliased to inet_aton.
943 (__inet_addr): Call inet_aton_end.
944 * resolv/res_init.c (res_vinit_1): Truncate nameserver for IPv4,
945 not just IPv6. Call __inet_aton_exact.
946 * resolv/tst-aton.c: Switch to <support/test-driver.c>.
947 (tests): Make const. Add additional test cases with trailing
948 characters.
949 (do_test): Use array_length.
950 * resolv/tst-inet_aton_exact.c: New file.
951 * resolv/tst-resolv-trailing.c: Likewise.
952 * resolv/tst-resolv-nondecimal.c: Likewise.
953 * sysdeps/posix/getaddrinfo.c (gaih_inet): Call __inet_aton_exact.
954
955 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
956
957 [BZ# 24097]
958 CVE-2019-6488
959 * sysdeps/x86_64/multiarch/strlen-avx2.S: Use RSI_LP for length.
960 Clear the upper 32 bits of RSI register.
961 * sysdeps/x86_64/strlen.S: Use RSI_LP for length.
962 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strnlen
963 and tst-size_t-wcsnlen.
964 * sysdeps/x86_64/x32/tst-size_t-strnlen.c: New file.
965 * sysdeps/x86_64/x32/tst-size_t-wcsnlen.c: Likewise.
966
967 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
968
969 [BZ# 24097]
970 CVE-2019-6488
971 * sysdeps/x86_64/multiarch/strcpy-avx2.S: Use RDX_LP for length.
972 * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
973 * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
974 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strncpy.
975 * sysdeps/x86_64/x32/tst-size_t-strncpy.c: New file.
976
977 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
978
979 [BZ# 24097]
980 CVE-2019-6488
981 * sysdeps/x86_64/multiarch/strcmp-avx2.S: Use RDX_LP for length.
982 * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
983 * sysdeps/x86_64/strcmp.S: Likewise.
984 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strncasecmp,
985 tst-size_t-strncmp and tst-size_t-wcsncmp.
986 * sysdeps/x86_64/x32/tst-size_t-strncasecmp.c: New file.
987 * sysdeps/x86_64/x32/tst-size_t-strncmp.c: Likewise.
988 * sysdeps/x86_64/x32/tst-size_t-wcsncmp.c: Likewise.
989
990 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
991
992 [BZ# 24097]
993 CVE-2019-6488
994 * sysdeps/x86_64/multiarch/memset-avx512-no-vzeroupper.S: Use
995 RDX_LP for length. Clear the upper 32 bits of RDX register.
996 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S: Likewise.
997 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-wmemset.
998 * sysdeps/x86_64/x32/tst-size_t-memset.c: New file.
999 * sysdeps/x86_64/x32/tst-size_t-wmemset.c: Likewise.
1000
1001 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
1002
1003 [BZ# 24097]
1004 CVE-2019-6488
1005 * sysdeps/x86_64/memrchr.S: Use RDX_LP for length.
1006 * sysdeps/x86_64/multiarch/memrchr-avx2.S: Likewise.
1007 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memrchr.
1008 * sysdeps/x86_64/x32/tst-size_t-memrchr.c: New file.
1009
1010 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
1011
1012 [BZ# 24097]
1013 CVE-2019-6488
1014 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Use RDX_LP for
1015 length. Clear the upper 32 bits of RDX register.
1016 * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
1017 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
1018 Likewise.
1019 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S:
1020 Likewise.
1021 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcpy.
1022 tst-size_t-wmemchr.
1023 * sysdeps/x86_64/x32/tst-size_t-memcpy.c: New file.
1024
1025 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
1026
1027 [BZ# 24097]
1028 CVE-2019-6488
1029 * sysdeps/x86_64/multiarch/memcmp-avx2-movbe.S: Use RDX_LP for
1030 length. Clear the upper 32 bits of RDX register.
1031 * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
1032 * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Likewise.
1033 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcmp and
1034 tst-size_t-wmemcmp.
1035 * sysdeps/x86_64/x32/tst-size_t-memcmp.c: New file.
1036 * sysdeps/x86_64/x32/tst-size_t-wmemcmp.c: Likewise.
1037
1038 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
1039
1040 [BZ# 24097]
1041 CVE-2019-6488
1042 * sysdeps/x86_64/memchr.S: Use RDX_LP for length. Clear the
1043 upper 32 bits of RDX register.
1044 * sysdeps/x86_64/multiarch/memchr-avx2.S: Likewise.
1045 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memchr and
1046 tst-size_t-wmemchr.
1047 * sysdeps/x86_64/x32/test-size_t.h: New file.
1048 * sysdeps/x86_64/x32/tst-size_t-memchr.c: Likewise.
1049 * sysdeps/x86_64/x32/tst-size_t-wmemchr.c: Likewise.
1050
1051 2019-01-18 Florian Weimer <fweimer@redhat.com>
1052
1053 [BZ #24112]
1054 resolv: Do not send queries for non-host-names in nss_dns.
1055 * resolv/nss_dns/dns-host.c (check_name): New function.
1056 (_nss_dns_gethostbyname2_r): Use it.
1057 (_nss_dns_gethostbyname_r): Likewise.
1058 (_nss_dns_gethostbyname4_r): Likewise.
1059
1060 2019-01-21 Florian Weimer <fweimer@redhat.com>
1061
1062 * resolv/inet_addr.c: Reformat to GNU style.
1063 (__inet_addr, __inet_aton): Update comment.
1064
1065 2019-01-18 Florian Weimer <fweimer@redhat.com>
1066
1067 malloc: Revert commit 6923f6db1e688dedcf3a6556da76e0bf24a41872
1068 ("malloc: Use current (C11-style) atomics for fastbin access").
1069 This commit introduces a substantial performance regression on
1070 POWER and Aarch64.
1071 * malloc/malloc.c (fastbin_push_entry, fastbin_pop_entry): Remove.
1072 (REMOVE_FB): Define.
1073 (_int_malloc): Use it and reindent.
1074 (_int_free): Use CAS loop with
1075 catomic_compare_and_exchange_val_rel.
1076 (malloc_consolidate): Use atomic_exchange_acq.
1077
1078
1079 2019-01-18 H.J. Lu <hongjiu.lu@intel.com>
1080
1081 * signal/Makefile (LDFLAGS-tst-minsigstksz-1): New. Set to
1082 -Wl,-z,now.
1083 (LDFLAGS-tst-minsigstksz-2): Likewise.
1084 (LDFLAGS-tst-minsigstksz-3): Likewise.
1085 (LDFLAGS-tst-minsigstksz-3a): Likewise.
1086 (LDFLAGS-tst-minsigstksz-4): Likewise.
1087
1088 2019-01-18 TAMUKI Shoichi <tamuki@linet.gr.jp>
1089
1090 * manual/time.texi (strftime): Fix the wording to "alternative" rather
1091 than "alternate".
1092
1093 2019-01-16 Paul A. Clarke <pc@us.ibm.com>
1094
1095 * sysdeps/powerpc/powerpc64/multiarch/strncmp.c: Fix #ifdef.
1096
1097 2019-01-16 Zack Weinberg <zackw@panix.com>
1098
1099 * support/xsignal.h (xalloc_sigstack, xfree_sigstack)
1100 (xget_sigstack_location): New test support functions.
1101 * support/xsigstack.c: New file, implementing them.
1102 * support/tst-xsigstack.c: New test for them.
1103 * support/Makefile: Update.
1104
1105 * signal/tst-minsigstksz-1.c
1106 * signal/tst-minsigstksz-2.c
1107 * signal/tst-minsigstksz-3.c
1108 * signal/tst-minsigstksz-3a.c
1109 * signal/tst-minsigstksz-4.c: New tests.
1110 * signal/Makefile: Run them.
1111
1112 2019-01-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
1113
1114 * po/libc.pot: Regenerate.
1115
1116 2019-01-15 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
1117
1118 * math/libm-test-fma.inc (fma_test_data): Set
1119 XFAIL_ROUNDING_IBM128_LIBGCC to more tests.
1120
1121 2019-01-15 Rogerio A. Cardoso <rcardoso@linux.ibm.com>
1122
1123 * sysdeps/powerpc/powerpc64/tst-ucontext-ppc64-vscr.c:
1124 (do_test): Changed __vector __int128_t to __vector unsigned int.
1125
1126 2019-01-14 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
1127
1128 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
1129 strcat-avx2, strncat-avx2, strcpy-avx2, strncpy-avx2,
1130 stpcpy-avx2 and stpncpy-avx2.
1131 * sysdeps/x86_64/multiarch/ifunc-impl-list.c:
1132 (__libc_ifunc_impl_list): Add tests for __strcat_avx2,
1133 __strncat_avx2, __strcpy_avx2, __strncpy_avx2, __stpcpy_avx2
1134 and __stpncpy_avx2.
1135 * sysdeps/x86_64/multiarch/{ifunc-unaligned-ssse3.h =>
1136 ifunc-strcpy.h}: rename header for a more generic name.
1137 * sysdeps/x86_64/multiarch/ifunc-strcpy.h:
1138 (IFUNC_SELECTOR): Return OPTIMIZE (avx2) on AVX 2 machines if
1139 AVX unaligned load is fast and vzeroupper is preferred.
1140 * sysdeps/x86_64/multiarch/stpcpy-avx2.S: New file.
1141 * sysdeps/x86_64/multiarch/stpncpy-avx2.S: Likewise.
1142 * sysdeps/x86_64/multiarch/strcat-avx2.S: Likewise.
1143 * sysdeps/x86_64/multiarch/strcpy-avx2.S: Likewise.
1144 * sysdeps/x86_64/multiarch/strncat-avx2.S: Likewise.
1145 * sysdeps/x86_64/multiarch/strncpy-avx2.S: Likewise.
1146
1147 2019-01-12 Dmitry V. Levin <ldv@altlinux.org>
1148
1149 * argp/argp-help.c: Fix typo in comment.
1150 * misc/sys/cdefs.h: Likewise.
1151 * posix/regexec.c (sift_states_iter_mb): Likewise.
1152 * socket/sockatmark.c: Likewise.
1153 * socket/sys/socket.h: Likewise.
1154 * sysdeps/ia64/fpu/libm_sincos_large.S: Likewise.
1155 * sysdeps/ia64/fpu/libm_sincosl.S: Likewise.
1156 * sysdeps/ia64/fpu/s_cosl.S: Likewise.
1157 * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
1158 * sysdeps/unix/sockatmark.c: Likewise.
1159 * time/strptime_l.c: Likewise.
1160
1161 2019-01-11 TAMUKI Shoichi <tamuki@linet.gr.jp>
1162
1163 * time/strftime_l.c (__strftime_internal): Use "L_" macros, also add a
1164 missing space after the cast of "_NL_CURRENT".
1165
1166 2019-01-11 Rogerio A. Cardoso <rcardoso@linux.ibm.com>
1167
1168 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (vscr_t): Added
1169 ifdef to fix read of VSCR.
1170 * sysdeps/powerpc/powerpc64/Makefile [$subdir == stdlib]: Add
1171 tst-ucontext-ppc64-vscr.c to test list.
1172 * sysdeps/powerpc/powerpc64/tst-ucontext-ppc64-vscr.c: New test file.
1173
1174 2019-01-10 Andreas K. Hüttel <dilfridge@gentoo.org>
1175
1176 * resolv/tst-resolv-ai_idn-common.c (response): Avoid switch
1177 fall-through.
1178
1179 2019-01-09 Jim Wilson <jimw@sifive.com>
1180
1181 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Update.
1182
1183 2019-01-09 Wilco Dijkstra <wdijkstr@arm.com>
1184
1185 * manual/tunables.texi (glibc.cpu.name): Add ares tunable.
1186 * sysdeps/aarch64/multiarch/memcpy.c (__libc_memcpy): Use
1187 __memcpy_falkor for ares.
1188 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_ARES):
1189 Add new define.
1190 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
1191 Add ares cpu.
1192
1193 2019-01-07 H.J. Lu <hongjiu.lu@intel.com>
1194
1195 [BZ #24066]
1196 * soft-fp/extenddftf2.c: Use "_FP_W_TYPE_SIZE < 64" to check if
1197 4_FP_W_TYPEs are used for IEEE quad precision.
1198 * soft-fp/extendhftf2.c: Likewise.
1199 * soft-fp/extendsftf2.c: Likewise.
1200 * soft-fp/extendxftf2.c: Likewise.
1201 * soft-fp/trunctfdf2.c: Likewise.
1202 * soft-fp/trunctfhf2.c: Likewise.
1203 * soft-fp/trunctfsf2.c: Likewise.
1204 * soft-fp/trunctfxf2.c: Likewise.
1205 * sysdeps/alpha/ots_cvttx.c: Likewise.
1206 * sysdeps/alpha/ots_cvtxt.c: Likewise.
1207 * sysdeps/ieee754/soft-fp/s_daddl.c: Likewise.
1208 * sysdeps/ieee754/soft-fp/s_ddivl.c: Likewise.
1209 * sysdeps/ieee754/soft-fp/s_dmull.c: Likewise.
1210 * sysdeps/ieee754/soft-fp/s_dsubl.c: Likewise.
1211 * sysdeps/ieee754/soft-fp/s_faddl.c: Likewise.
1212 * sysdeps/ieee754/soft-fp/s_fdivl.c: Likewise.
1213 * sysdeps/ieee754/soft-fp/s_fmull.c: Likewise.
1214 * sysdeps/ieee754/soft-fp/s_fsubl.c: Likewise.
1215 * sysdeps/sparc/sparc32/q_dtoq.c: Likewise.
1216 * sysdeps/sparc/sparc32/q_qtod.c: Likewise.
1217 * sysdeps/sparc/sparc32/q_qtos.c: Likewise.
1218 * sysdeps/sparc/sparc32/q_stoq.c: Likewise.
1219 * sysdeps/sparc/sparc64/qp_dtoq.c: Likewise.
1220 * sysdeps/sparc/sparc64/qp_qtod.c: Likewise.
1221 * sysdeps/sparc/sparc64/qp_qtos.c: Likewise.
1222 * sysdeps/sparc/sparc64/qp_stoq.c: Likewise.
1223
1224 2019-01-07 Aurelien Jarno <aurelien@aurel32.net>
1225
1226 [BZ #24024]
1227 * Makeconfig: Build libm with -fno-math-errno but build the remaining
1228 code with -fmath-errno.
1229 * string/Makefile [$(build-shared)] (tests): Add test-strerror-errno.
1230 [$(build-shared)] (LDLIBS-test-strerror-errno): New variable.
1231 * string/test-strerror-errno.c: New file.
1232
1233 2019-01-07 Aurelien Jarno <aurelien@aurel32.net>
1234
1235 [BZ #24046]
1236 * localedata/locales/en_US (date_fmt): Add, set to
1237 "%a %d %b %Y %r %Z".
1238
1239 2019-01-07 Florian Weimer <fweimer@redhat.com>
1240
1241 [BZ #24063]
1242 * manual/arith.texi (Math Error Reporting): Use @code{errno}
1243 instead of @var{errno}.
1244 (Parsing of Integers): Likewise.
1245 (Parsing of Floats): Likewise.
1246 * manual/filesys.texi (Working with Directory Trees): Likewise.
1247 (Temporary Files): Likewise.
1248 * manual/job.texi (Terminal Access Functions): Likewise.
1249 * manual/llio.texi (Synchronizing I/O): Likewise.
1250 * manual/math.texi (SVID Random): Likewise.
1251 * manual/message.texi (The catgets Functions): Likewise.
1252 (Translation with gettext): Likewise.
1253 (Locating gettext catalog): Likewise.
1254 (Charset conversion in gettext): Likewise.
1255 * manual/nss.texi (NSS Module Function Internals): Likewise.
1256 * manual/search.texi (Hash Search Function): Likewise.
1257 * manual/setjmp.texi (System V contexts): Likewise.
1258 * manual/time.texi (Sleeping): Likewise.
1259 * manual/users.texi (Lookup User): Likewise.
1260 (Lookup Group): Likewise.
1261
1262 2019-01-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1263
1264 * posix/tst-spawn.c (do_test): Extend spargv to new required size and
1265 fix typo.
1266
1267 2019-01-04 Martin Jansa <Martin.Jansa@gmail.com>
1268
1269 [BZ #19444]
1270 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Use
1271 __builtin_unreachable for default case in switch.
1272 (__ieee754_yn): Likewise.
1273 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
1274 (__ieee754_ynl): Likewise.
1275 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
1276 (__ieee754_ynl): Likewise.
1277 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
1278 (__ieee754_ynl): Likewise.
1279
1280 2019-01-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
1281
1282 * manual/maint.texi: Use @{ and @}.
1283
1284 2019-01-04 Florian Weimer <fweimer@redhat.com>
1285
1286 * sysdeps/unix/sysv/linux/tst-ttyname.c (adjust_file_limit): New
1287 function.
1288 (do_in_chroot_1): Call it.
1289 (run_chroot_tests):
1290 Improve error reporting in case it is not possible to create a
1291 collision for the PTY name required by the test.
1292
1293 2019-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1294
1295 * nptl/pthread_join_common.c (__pthread_timedjoin_ex): Use
1296 lll_wait_tid with timeout.
1297 * nptl/sem_wait.c (__old_sem_wait): Use lll_futex_wait_cancel.
1298 * sysdeps/nptl/aio_misc.h (AIO_MISC_WAIT): Use
1299 futex_reltimed_wait_cancelable for cancelabla mode.
1300 * sysdeps/nptl/gai_misc.h (GAI_MISC_WAIT): Likewise.
1301 * sysdeps/posix/open64.c (__libc_open64): Do not call cancelation
1302 macros.
1303 * sysdeps/posix/sigwait.c (__sigwait): Likewise.
1304 * sysdeps/posix/waitid.c (__sigwait): Likewise.
1305 * sysdeps/unix/sysdep.h (__SYSCALL_CANCEL_CALL,
1306 SYSCALL_CANCEL_NCS): New macro.
1307 * sysdeps/nptl/lowlevellock.h (lll_wait_tid): Add timeout argument.
1308 (lll_timedwait_tid): Remove macro.
1309 * sysdeps/unix/sysv/linux/i386/lowlevellock.h (lll_wait_tid):
1310 Likewise.
1311 (lll_timedwait_tid): Likewise.
1312 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (lll_wait_tid):
1313 Likewise.
1314 (lll_timedwait_tid): Likewise.
1315 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (lll_wait_tid):
1316 Likewise.
1317 (lll_timedwait_tid): Likewise.
1318 * sysdeps/unix/sysv/linux/clock_nanosleep.c (__clock_nanosleep):
1319 Use INTERNAL_SYSCALL_CANCEL.
1320 * sysdeps/unix/sysv/linux/futex-internal.h
1321 (futex_reltimed_wait_cancelable): Use LIBC_CANCEL_{ASYNC,RESET}
1322 instead of __pthread_{enable,disable}_asynccancel.
1323 * sysdeps/unix/sysv/linux/lowlevellock-futex.h
1324 (lll_futex_wait_cancel): New macro.
1325
1326 * sysdeps/i386/nptl/tls.h (THREAD_ATOMIC_CMPXCHG_VAL,
1327 THREAD_ATOMIC_AND, THREAD_ATOMIC_BIT_SET): Remove macros.
1328
1329 * sysdeps/x86_64/nptl/tls.h (THREAD_ATOMIC_CMPXCHG_VAL,
1330 THREAD_ATOMIC_AND, THREAD_ATOMIC_BIT_SET): Remove macros.
1331
1332 * debug/tst-backtrace5.c (handle_signal): Avoid cancellable wrappers
1333 in backtrace analysis.
1334 * nptl/tst-cancel4.c (tf_write): Handle cancelled syscall with
1335 side-effects.
1336 (tf_send): Likewise.
1337
1338 * io/creat.c (LIBC_CANCEL_HANDLED): Remove macro.
1339 * io/ppoll.c (LIBC_CANCEL_HANDLED): Likewise.
1340 * misc/pselect.c (LIBC_CANCEL_HANDLED): Likewise.
1341 * nptl/pthreadP.h (LIBC_CANCEL_HANDLED): Likewise.
1342 * sysdeps/generic/sysdep-cancel.h (LIBC_CANCEL_HANDLED): Likewise.
1343 * sysdeps/mach/hurd/sysdep-cancel.h (LIBC_CANCEL_HANDLED): Likewise.
1344 * sysdeps/posix/pause.c (LIBC_CANCEL_HANDLED): Likewise.
1345 * sysdeps/posix/sigpause.c (LIBC_CANCEL_HANDLED): Likewise.
1346 * sysdeps/unix/sysv/linux/creat.c (LIBC_CANCEL_HANDLED): Likewise.
1347 * sysdeps/unix/sysv/linux/creat64.c (LIBC_CANCEL_HANDLED): Likewise.
1348 * sysdeps/unix/sysv/linux/sigwait.c (LIBC_CANCEL_HANDLED): Likewise.
1349 * sysdeps/unix/sysv/linux/sigwaitinfo.c (LIBC_CANCEL_HANDLED):
1350 Likewise.
1351 * nptl/Makefile [$(run-built-tests) = yes] (tests-special): Remove
1352 tst-cancel-wrappers.sh.
1353 (generated): Remove tst-cancel-wrappers.out.
1354 (tst-cancel-wrappers.out): Remove rule.
1355 * nptl/tst-cancel-wrappers.sh: Remove file.
1356
1357 2019-01-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
1358
1359 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h: Add comment.
1360 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
1361 Update.
1362
1363 2019-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1364
1365 [BZ #23640]
1366 * posix/tst-spawn.c (do_prepare, handle_restart, do_test): Add
1367 posix_spawn_file_actions_adddup2 test to check O_CLOCEXEC reset.
1368 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Add
1369 close-on-exec reset for adddup2 file action.
1370 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
1371
1372 2019-01-03 Zack Weinberg <zackw@panix.com>
1373
1374 * include/features.h (__GLIBC_USE_DEPRECATED_SCANF): New __GLIBC_USE
1375 parameter. Only use deprecated scanf when __USE_GNU is defined
1376 and __STDC_VERSION__ is less than 199901L or __cplusplus is less
1377 than 201103L, whichever is relevant for the language being compiled.
1378
1379 * libio/stdio.h, libio/bits/stdio-ldbl.h: Decide whether to redirect
1380 scanf, fscanf, sscanf, vscanf, vfscanf, and vsscanf to their
1381 __isoc99_ variants based only on __GLIBC_USE (DEPRECATED_SCANF).
1382 * wcsmbs/wchar.h: wcsmbs/bits/wchar-ldbl.h: Likewise for
1383 wscanf, fwscanf, swscanf, vwscanf, vfwscanf, and vswscanf.
1384
1385 * libio/iovsscanf.c
1386 * libio/fwscanf.c
1387 * libio/iovswscanf.c
1388 * libio/swscanf.c
1389 * libio/vscanf.c
1390 * libio/vwscanf.c
1391 * libio/wscanf.c
1392 * stdio-common/fscanf.c
1393 * stdio-common/scanf.c
1394 * stdio-common/vfscanf.c
1395 * stdio-common/vfwscanf.c
1396 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
1397 * sysdeps/ieee754/ldbl-opt/nldbl-fscanf.c
1398 * sysdeps/ieee754/ldbl-opt/nldbl-fwscanf.c
1399 * sysdeps/ieee754/ldbl-opt/nldbl-iovfscanf.c
1400 * sysdeps/ieee754/ldbl-opt/nldbl-scanf.c
1401 * sysdeps/ieee754/ldbl-opt/nldbl-sscanf.c
1402 * sysdeps/ieee754/ldbl-opt/nldbl-swscanf.c
1403 * sysdeps/ieee754/ldbl-opt/nldbl-vfscanf.c
1404 * sysdeps/ieee754/ldbl-opt/nldbl-vfwscanf.c
1405 * sysdeps/ieee754/ldbl-opt/nldbl-vscanf.c
1406 * sysdeps/ieee754/ldbl-opt/nldbl-vsscanf.c
1407 * sysdeps/ieee754/ldbl-opt/nldbl-vswscanf.c
1408 * sysdeps/ieee754/ldbl-opt/nldbl-vwscanf.c
1409 * sysdeps/ieee754/ldbl-opt/nldbl-wscanf.c:
1410 Override __GLIBC_USE_DEPRECATED_SCANF to 1.
1411
1412 * stdio-common/sscanf.c: Likewise. Remove ldbl_hidden_def for __sscanf.
1413 * stdio-common/isoc99_sscanf.c: Add libc_hidden_def for __isoc99_sscanf.
1414 * include/stdio.h: Provide libc_hidden_proto for __isoc99_sscanf,
1415 not sscanf.
1416 [!__GLIBC_USE (DEPRECATED_SCANF)]: Define sscanf as __isoc99_scanf
1417 with a preprocessor macro.
1418
1419 * stdio-common/bug21.c, stdio-common/scanf14.c:
1420 Use %ms instead of %as, %mS instead of %aS, %m[] instead of %a[];
1421 remove DIAG_IGNORE_NEEDS_COMMENT for -Wformat.
1422 * stdio-common/scanf16.c: Likewise. Add __attribute__ ((format (scanf)))
1423 to xscanf, xfscanf, xsscanf.
1424
1425 * stdio-common/scanf14a.c: New copy of scanf14.c which still uses
1426 %as, %aS, %a[]. Remove DIAG_IGNORE_NEEDS_COMMENT for -Wformat.
1427 * stdio-common/scanf16a.c: New copy of scanf16.c which still uses
1428 %as, %aS, %a[]. Add __attribute__ ((format (scanf))) to xscanf,
1429 xfscanf, xsscanf.
1430 * stdio-common/scanf15.c, stdio-common/scanf17.c: No need to
1431 override feature selection macros or provide definitions of u_char etc.
1432 * stdio-common/Makefile (tests): Add scanf14a and scanf16a.
1433 (CFLAGS-scanf15.c, CFLAGS-scanf17.c): Remove.
1434 (CFLAGS-scanf14a.c, CFLAGS-scanf16a.c): New. Compile these files
1435 with -std=gnu89.
1436
1437 2019-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1438
1439 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
1440 bits/termios-misc.h.
1441 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Remove file.
1442 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
1443 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
1444 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
1445 * sysdeps/unix/sysv/linux/bits/termios-misc.h: New file.
1446 * sysdeps/unix/sysv/linux/bits/termios.h: Include termios-misc.h.
1447
1448 * sysdeps/unix/sysv/linux/powerpc/bits/termios-misc.h: New file.
1449 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_MISC]
1450 (struct sgtty, struct tchars, struct ltchars, TIOCPKT_DATA,
1451 TIOCPKT_FLUSHREAD, TIOCPKT_FLUSHWRITE, TIOCPKT_STOP, TIOCPKT_START,
1452 TIOCPKT_NOSTOP, TIOCPKT_DOSTOP, _VINTR, _VQUIT, _VERASE, _VKILL,
1453 _VEOF, _VMIN, _VEOL, _VTIME, _VEOL2, _VSWTC): Move to
1454 termios-misc.h.
1455 * sysdeps/unix/sysv/linux/powerpc/Makefile [$subdir == misc]
1456 (sysdep_headers): Add termios-misc.h.
1457
1458 * sysdeps/unix/sysv/linux/bits/termios.h (_IOT_termios): Remove.
1459 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
1460 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
1461
1462 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
1463 termios-tcflow.h.
1464 * sysdeps/unix/sysv/linux/bits/termios-tcflow.h: New file.
1465 * sysdeps/unix/sysv/linux/mips/bits/termios-tcflow.h: Likewise.
1466 * sysdeps/unix/sysv/linux/bits/termios.h (TCSANOW, TCSADRAIN,
1467 TCSAFLUSH): Move to termios-tcflow.h.
1468 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
1469 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
1470 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
1471 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
1472
1473 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
1474 termios-c_lflag.h.
1475 * sysdeps/unix/sysv/linux/bits/termios-c_lflag.h: New file.
1476 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_lflag.h: Likewise.
1477 * sysdeps/unix/sysv/linux/mips/bits/termios-c_lflag.h: Likewise.
1478 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_lflag.h: Likewise.
1479 * sysdeps/unix/sysv/linux/bits/termios.h (ISIG, ISCANON, ECHO, ECHOE,
1480 ECHOK, ECHONL, NOFLSH, TOSTOP, IEXTEN): Move to termios-c_lflag.h.
1481 [__USE_MISC || (__USE_XOPEN && !__USE_XOPEN2K)] (XCASE): Likewise.
1482 [__USE_MISC] (ECHOCTL, ECHOPRT, ECHOKE, FLUSHO, PENDIN, EXTPROC):
1483 Likewise.
1484 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
1485 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
1486 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
1487 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
1488
1489 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
1490 termios-c_cflag.h.
1491 * sysdeps/unix/sysv/linux/bits/termios-c_cflag.h: New file.
1492 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_cflag.h: Likewise.
1493 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_cflag.h: Likewise.
1494 * sysdeps/unix/sysv/linux/bits/termios.h (CSIZE, CS5, CS6, CS7, CS8,
1495 CSTOPB, CREAD, PARENB, PARODD, HUPCL, CLOCAL): Move to
1496 termios-c_cflag.h.
1497 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
1498 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
1499 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
1500 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
1501
1502 [BZ #23783]
1503 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
1504 termios-baud.h.
1505 * sysdeps/unix/sysv/linux/bits/termios-baud.h: New file.
1506 * sysdeps/unix/sysv/linux/alpha/bits/termios-baud.h: Likewise.
1507 * sysdeps/unix/sysv/linux/powerpc/bits/termios-baud.h: Likewise.
1508 * sysdeps/unix/sysv/linux/sparc/bits/termios-baud.h: Likewise.
1509 * sysdeps/unix/sysv/linux/alpha/bits/termios.h (B57600, B115200,
1510 B230400, B460800, B500000, B576000, B921600, B1000000, B1152000,
1511 B1500000, B2000000, B2500000, B3000000, B3500000, B4000000,
1512 __MAX_BAUD): Move to termios-baud.h.
1513 [__USE_MISC] (CBAUD, CBAUDEX): Likewise.
1514 * sysdeps/unix/sysv/linux/bits/termios.h: Likewise.
1515 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
1516 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
1517 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
1518
1519 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add
1520 termios-c_oflag.h.
1521 * sysdeps/unix/sysv/linux/bits/termios-c_oflag.h: New file.
1522 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_oflag.h: Likewise.
1523 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_oflag.h: Likewise.
1524 * sysdeps/unix/sysv/linux/sparc/bits/termios-c_oflag.h: Likewise.
1525 * sysdeps/unix/sysv/linux/bits/termios.h (OPOST, OLCUC, ONLCR, OCRNL,
1526 ONOCR, ONLRET, OFILL, OFDEL, VTDLY, VT0, VT1): Move to
1527 termios-c_oflag.h.
1528 [__USE_MISC || __USE_XOPEN] (NLDLY, NL0, NL1, CRDLY, CR0, CR1, CR2,
1529 CR3, TABDLY, TAB0, TAB1, TAB2, TAB3, BSDLY, BS0, BS1, FFDLY, FF0,
1530 FFR1): Likewise.
1531 [USE_MISC] (XTABS): Likewise.
1532 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
1533 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
1534 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
1535 * sysdeps/unix/sysv/linux/sparc/bits/termios.h Likewise.
1536
1537 * sysdeps/unix/sysv/linux/Makefile (sysdeps_headers): Add
1538 termios-c_iflag.h.
1539 * sysdeps/unix/sysv/linux/bits/termios-c_iflag.h: New file.
1540 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_iflag.h: Likewise.
1541 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_iflag.h: Likewise.
1542 * sysdeps/unix/sysv/linux/bits/termios.h (IGNBRK, BRKINT, IGNPAR, PARMRK,
1543 INPCK, ISTRIP, INLCR, IGNCR, ICRNL, IXON, IXOFF, IXANY, IUCLC, IMAXBEL,
1544 IUTF8): Move to termios-c_iflag.h.
1545 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
1546 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
1547 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
1548 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
1549
1550 * sysdeps/unix/sysv/linux/Makefile (sysdeps_headers): Add
1551 termios-cc.h.
1552 * sysdeps/unix/sysv/linux/bits/termios-c_cc.h: Likewise.
1553 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_cc.h: New file.
1554 * sysdeps/unix/sysv/linux/mips/bits/termios-c_cc.h: Likewise.
1555 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_cc.h: Likewise.
1556 * sysdeps/unix/sysv/linux/sparc/bits/termios-c_cc.h: Likewise.
1557 * sysdeps/unix/sysv/linux/bits/termios.h (VINTR, VQUIT, VERASE,
1558 VKILL, VEOF, VTIME, VMIN, VSWTC, VSTART, VSTOP, VSUSP, VEOL,
1559 VREPRINT, VDISCARD, VWERASE, VLNEXT, VEOLF2): Move to termios-cc.h.
1560 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
1561 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
1562 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
1563 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
1564
1565 * sysdeps/unix/sysv/linux/alpha/bits/termios-struct.h: New file.
1566 * sysdeps/unix/sysv/linux/bits/termios-struct.h: Likewise.
1567 * sysdeps/unix/sysv/linux/mips/bits/termios-struct.h: Likewise.
1568 * sysdeps/unix/sysv/linux/sparc/bits/termios-struct.h: Likewise.
1569 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
1570 termios-struct.h.
1571 * sysdeps/unix/sysv/linux/bits/termios.h (struct termios): Move to
1572 termios-struct.h.
1573 * sysdeps/unix/sysv/linux/alpha/bits/termios.h (struct termios):
1574 Likewise.
1575 * sysdeps/unix/sysv/linux/mips/bits/termios.h (struct termios):
1576 Likewise.
1577 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h (struct termios):
1578 Likewise.
1579 * sysdeps/unix/sysv/linux/sparc/bits/termios.h (struct termios):
1580 Likewise.
1581 * sysdeps/unix/sysv/linux/kernel_termios.h (_HAVE_C_ISPEED,
1582 _HAVE_C_OSPEED): Define.
1583 * sysdeps/unix/sysv/linux/mips/kernel_termios.h (_HAVE_C_ISPEED,
1584 _HAVE_C_OSPEED): Likewise.
1585 * sysdeps/unix/sysv/linux/sparc/kernel_termios.h (_HAVE_C_ISPEED,
1586 _HAVE_C_OSPEED): Likewise.
1587 * sysdeps/unix/sysv/linux/speed.c [_HAVE_STRUCT_TERMIOS_C_OSPEED]
1588 (cfsetospeed): Check for define value instead of existence.
1589 [_HAVE_STRUCT_TERMIOS_C_ISPEED] (cfsetispeed): Likewise.
1590 * sysdeps/unix/sysv/linux/tcgetattr.c [_HAVE_STRUCT_TERMIOS_C_ISPEED
1591 && _HAVE_C_ISPEED] (__tcgetattr): Likewise.
1592 * sysdeps/unix/sysv/linux/tcsetattr.c [_HAVE_STRUCT_TERMIOS_C_ISPEED
1593 && _HAVE_C_ISPEED] (__tcsetattr): Likewise.
1594
1595 [BZ #17783]
1596 * sysdeps/unix/sysv/linux/bits/termios.h [__USE_MISC] (TIOCSER_TEMT):
1597 Define.
1598 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_MISC]
1599 (TIOCSER_TEMT): Likewise.
1600 * sysdeps/unix/sysv/linux/sparc/bits/termios.h [__USE_MISC]
1601 (TEOCSER_TEMT): Likewise.
1602
1603 2019-01-02 PanderMusubi <pander@users.sourceforge.net>
1604
1605 [BZ #24011]
1606 * localedata/locales/bs_BA (LC_TELEPHONE): Fix a typo in comment.
1607
1608 2019-01-02 Joseph Myers <joseph@codesourcery.com>
1609
1610 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
1611
1612 2019-01-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
1613
1614 * sysdeps/htl/pt-barrierattr-setpshared.c
1615 (pthread_barrierattr_setpshared): Add stub warning.
1616 * sysdeps/htl/pt-condattr-setpshared.c
1617 (pthread_condattr_setpshared): Likewise.
1618 * sysdeps/htl/pt-mutexattr-setpshared.c
1619 (pthread_mutexattr_setpshared): Likewise.
1620 * sysdeps/htl/pt-rwlockattr-setpshared.c
1621 (pthread_rwlockattr_setpshared): Likewise.
1622 * sysdeps/mach/hurd/htl/pt-mutexattr-setpshared.c
1623 (pthread_mutexattr_setpshared): Likewise.
1624
1625 2019-01-02 Joseph Myers <joseph@codesourcery.com>
1626
1627 * sysdeps/unix/sysv/linux/tst-mman-consts.py (main): Expect
1628 constants to match with Linux 4.20.
1629
1630 * sysdeps/mips/mips32/libm-test-ulps: Update.
1631 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
1632
1633 2019-01-02 Aurelien Jarno <aurelien@aurel32.net>
1634
1635 [BZ #24034]
1636 * sysdeps/unix/sysv/linux/arm/atomic-machine.h
1637 (__arm_assisted_compare_and_exchange_val_32_acq): Use uint32_t rather
1638 than __typeof (...) for the a_ptr variable.
1639
1640 2019-01-02 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
1641
1642 * debug/sprintf_chk.c (___sprintf_chk): Use PRINTF_CHK.
1643 * debug/vsprintf_chk.c (___vsprintf_chk): Likewise.
1644 * libio/Makefile (tests): Add tst-sprintf-ub and
1645 tst-sprintf-chk-ub.
1646 (CFLAGS-tst-sprintf-ub.c): New variable.
1647 (CFLAGS-tst-sprintf-chk-ub.c): Likewise.
1648 * libio/iovsprintf.c (__vsprintf_internal): Only erase the
1649 destination buffer and check for overflows in fortified mode.
1650 * libio/libioP.h (PRINTF_CHK): New macro.
1651 * libio/tst-sprintf-chk-ub.c: New file.
1652 * libio/tst-sprintf-ub.c: Likewise.
1653
1654 2019-01-02 Florian Weimer <fweimer@redhat.com>
1655
1656 [BZ #24018]
1657 * intl/dcigettext.c (DCIGETTEXT): Do not return NULL on asprintf
1658 failure.
1659
1660 2019-01-02 Florian Weimer <fweimer@redhat.com>
1661
1662 * nptl/tst-audit-threads.c: Switch to <support/test-driver.c>.
1663
1664 2019-01-01 Joseph Myers <joseph@codesourcery.com>
1665
1666 * sysdeps/unix/sysv/linux/bits/in.h (IPV6_MULTICAST_ALL): New
1667 macro.
1668
1669 * sysdeps/unix/sysv/linux/netpacket/packet.h
1670 (PACKET_IGNORE_OUTGOING): New macro.
1671
1672 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SSBS): New
1673 macro.
1674
1675 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
1676 version to 4.20.
1677 (riscv_flush_icache): New syscall.
1678
1679 * manual/texinfo.tex: Update to version 2018-12-28.17 with
1680 trailing whitespace removed.
1681 * scripts/config.guess: Update to version 2019-01-01.
1682 * scripts/config.sub: Update to version 2019-01-01.
1683 * scripts/move-if-change: Update from gnulib.
1684
1685 * NEWS: Update copyright dates.
1686 * catgets/gencat.c (print_version): Likewise.
1687 * csu/version.c (banner): Likewise.
1688 * debug/catchsegv.sh: Likewise.
1689 * debug/pcprofiledump.c (print_version): Likewise.
1690 * debug/xtrace.sh (do_version): Likewise.
1691 * elf/ldconfig.c (print_version): Likewise.
1692 * elf/ldd.bash.in: Likewise.
1693 * elf/pldd.c (print_version): Likewise.
1694 * elf/sotruss.sh: Likewise.
1695 * elf/sprof.c (print_version): Likewise.
1696 * iconv/iconv_prog.c (print_version): Likewise.
1697 * iconv/iconvconfig.c (print_version): Likewise.
1698 * locale/programs/locale.c (print_version): Likewise.
1699 * locale/programs/localedef.c (print_version): Likewise.
1700 * login/programs/pt_chown.c (print_version): Likewise.
1701 * malloc/memusage.sh (do_version): Likewise.
1702 * malloc/memusagestat.c (print_version): Likewise.
1703 * malloc/mtrace.pl: Likewise.
1704 * manual/libc.texinfo: Likewise.
1705 * nptl/version.c (banner): Likewise.
1706 * nscd/nscd.c (print_version): Likewise.
1707 * nss/getent.c (print_version): Likewise.
1708 * nss/makedb.c (print_version): Likewise.
1709 * posix/getconf.c (main): Likewise.
1710 * scripts/test-installation.pl: Likewise.
1711 * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
1712
1713 * All files with FSF copyright notices: Update copyright dates
1714 using scripts/update-copyrights.
1715 * locale/programs/charmap-kw.h: Regenerated.
1716 * locale/programs/locfile-kw.h: Likewise.
1717
1718 2018-12-31 Joseph Myers <joseph@codesourcery.com>
1719
1720 * timezone/zdump.c: Update from tzcode 2018i.
1721 * timezone/zic.c: Likewise.
1722
1723 2018-12-31 Paul Eggert <eggert@cs.ucla.edu>
1724
1725 regex: improve Gnulib port to AIX
1726 From the glibc point of view, this removes duplicate macro
1727 definitions and is obviously safe.
1728 From the Gnulib point of view, this pacifies xlc 12.01 on AIX 7.1.
1729 * posix/regex_internal.h:
1730 (__attribute__, __attribute_warn_unused_result__):
1731 Remove; already defined elsewhere.
1732
1733 2018-12-31 Florian Weimer <fw@deneb.enyo.de>
1734
1735 [BZ #24027]
1736 * malloc/malloc.c (_int_realloc): Always call memcpy for the
1737 copying operation. (ncopies had the wrong type, resulting in an
1738 integer wraparound and too few elements being copied.)
1739
1740 2018-12-31 H.J. Lu <hongjiu.lu@intel.com>
1741
1742 [BZ #24022]
1743 * sysdeps/unix/sysv/linux/riscv/flush-icache.c: Check if
1744 <asm/syscalls.h> exists with __has_include__ before including it.
1745
1746 2018-12-31 Joseph Myers <joseph@codesourcery.com>
1747
1748 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
1749 version to 4.20.
1750
1751 2018-12-28 Justus Winter <4winter@informatik.uni-hamburg.de>
1752
1753 * hurd/lookup-retry: Include <unistd.h>.
1754 (__hurd_file_name_lookup_retry): Keep a ref on last result in `lastdir'.
1755 Release it on return. Handle "pid" magical lookup retry.
1756
1757 2018-12-28 Rafal Luzynski <digitalfreak@lingonborough.com>
1758
1759 [BZ #10496]
1760 * localedata/locales/aa_DJ (t_fmt): Set to "%l:%M:%S %p".
1761 (t_fmt_ampm): Likewise.
1762 * localedata/locales/aa_ER (t_fmt): Likewise.
1763 (t_fmt_ampm): Likewise.
1764 * localedata/locales/aa_ER@saaho (t_fmt): Likewise.
1765 (t_fmt_ampm): Likewise.
1766 * localedata/locales/aa_ET (t_fmt): Likewise.
1767 (t_fmt_ampm): Likewise.
1768 * localedata/locales/am_ET (t_fmt): Likewise.
1769 (t_fmt_ampm): Likewise.
1770 * localedata/locales/byn_ER (t_fmt): Likewise.
1771 (t_fmt_ampm): Likewise.
1772 * localedata/locales/om_ET (t_fmt): Likewise.
1773 (t_fmt_ampm): Likewise.
1774 * localedata/locales/sid_ET (t_fmt): Likewise.
1775 (t_fmt_ampm): Likewise.
1776 * localedata/locales/so_DJ (t_fmt): Likewise.
1777 (t_fmt_ampm): Likewise.
1778 * localedata/locales/so_ET (t_fmt): Likewise.
1779 (t_fmt_ampm): Likewise.
1780 * localedata/locales/so_SO (t_fmt): Likewise.
1781 (t_fmt_ampm): Likewise.
1782 * localedata/locales/ti_ER (t_fmt): Likewise.
1783 (t_fmt_ampm): Likewise.
1784 * localedata/locales/ti_ET (t_fmt): Likewise.
1785 (t_fmt_ampm): Likewise.
1786 * localedata/locales/tig_ER (t_fmt): Likewise.
1787 (t_fmt_ampm): Likewise.
1788 * localedata/locales/wal_ET (t_fmt): Likewise.
1789 (t_fmt_ampm): Likewise.
1790
1791 * localedata/locales/anp_IN (t_fmt): Set to "%I:%M:%S %p %Z".
1792 * localedata/locales/ar_IN (t_fmt): Likewise.
1793 * localedata/locales/bhb_IN (t_fmt): Likewise.
1794 * localedata/locales/bho_IN (t_fmt): Likewise.
1795 * localedata/locales/bi_VU (t_fmt): Likewise.
1796 * localedata/locales/bn_BD (t_fmt): Likewise.
1797 * localedata/locales/bn_IN (t_fmt): Likewise.
1798 * localedata/locales/brx_IN (t_fmt): Likewise.
1799 * localedata/locales/doi_IN (t_fmt): Likewise.
1800 * localedata/locales/en_HK (t_fmt): Likewise.
1801 (t_fmt_ampm): Likewise.
1802 * localedata/locales/en_IN (t_fmt): Likewise.
1803 * localedata/locales/en_PH (t_fmt): Likewise.
1804 * localedata/locales/gu_IN (t_fmt): Likewise.
1805 * localedata/locales/hi_IN (t_fmt): Likewise.
1806 * localedata/locales/hif_FJ (t_fmt): Likewise.
1807 * localedata/locales/hne_IN (t_fmt): Likewise.
1808 * localedata/locales/kn_IN (t_fmt): Likewise.
1809 * localedata/locales/kok_IN (t_fmt): Likewise.
1810 * localedata/locales/ks_IN (t_fmt): Likewise.
1811 * localedata/locales/ks_IN@devanagari (t_fmt): Likewise.
1812 * localedata/locales/mag_IN (t_fmt): Likewise.
1813 * localedata/locales/mai_IN (t_fmt): Likewise.
1814 * localedata/locales/mjw_IN (t_fmt): Likewise.
1815 * localedata/locales/ml_IN (t_fmt): Likewise.
1816 * localedata/locales/mni_IN (t_fmt): Likewise.
1817 * localedata/locales/mr_IN (t_fmt): Likewise.
1818 * localedata/locales/ms_MY (t_fmt): Likewise.
1819 * localedata/locales/pa_IN (t_fmt): Likewise.
1820 * localedata/locales/raj_IN (t_fmt): Likewise.
1821 * localedata/locales/sa_IN (t_fmt): Likewise.
1822 * localedata/locales/sat_IN (t_fmt): Likewise.
1823 * localedata/locales/sd_IN (t_fmt): Likewise.
1824 * localedata/locales/sd_IN@devanagari (t_fmt): Likewise.
1825 * localedata/locales/tcy_IN (t_fmt): Likewise.
1826 * localedata/locales/the_NP (t_fmt): Likewise.
1827 * localedata/locales/to_TO (t_fmt): Likewise.
1828 * localedata/locales/ur_IN (t_fmt): Likewise.
1829
1830 * localedata/locales/hif_FJ (d_t_fmt): Set to
1831 "%A %d %b %Y %I:%M:%S %p".
1832 (date_fmt): Add, set to "%A %d %b %Y %I:%M:%S %p %Z".
1833
1834 * localedata/locales/ar_AE (t_fmt): Set to "%Z %I:%M:%S %p".
1835 * localedata/locales/ar_BH (t_fmt): Likewise.
1836 * localedata/locales/ar_DZ (t_fmt): Likewise.
1837 * localedata/locales/ar_EG (t_fmt): Likewise.
1838 * localedata/locales/ar_IQ (t_fmt): Likewise.
1839 * localedata/locales/ar_JO (t_fmt): Likewise.
1840 * localedata/locales/ar_KW (t_fmt): Likewise.
1841 * localedata/locales/ar_LB (t_fmt): Likewise.
1842 * localedata/locales/ar_LY (t_fmt): Likewise.
1843 * localedata/locales/ar_OM (t_fmt): Likewise.
1844 * localedata/locales/ar_QA (t_fmt): Likewise.
1845 * localedata/locales/ar_SD (t_fmt): Likewise.
1846 * localedata/locales/ar_SS (t_fmt): Likewise.
1847 * localedata/locales/ar_SY (t_fmt): Likewise.
1848 * localedata/locales/ar_TN (t_fmt): Likewise.
1849 * localedata/locales/ar_YE (t_fmt): Likewise.
1850
1851 * localedata/locales/gez_ER (t_fmt): Set to "%l:%M:%S<U1361>%p".
1852 (t_fmt_ampm): Likewise.
1853 * localedata/locales/gez_ET (t_fmt): Likewise.
1854 (t_fmt_ampm): Likewise.
1855
1856 * localedata/locales/ta_IN (t_fmt): Set to "%p %I:%M:%S %Z".
1857 (t_fmt_ampm): Likewise.
1858 (d_t_fmt): Set to "%A %d %B %Y %p %I:%M:%S %Z".
1859
1860 * localedata/locales/zh_HK (t_fmt):
1861 Set to "%p %I<U6642>%M<U5206>%S<U79D2> %Z".
1862
1863 * localedata/locales/ar_MA (t_fmt_ampm): Set to "" (empty string)
1864 because this locale does not use the 12-hour clock.
1865 (t_fmt): Set to "%Z %H:%M:%S".
1866 (d_t_fmt): Set to "%d %b, %Y %Z %H:%M:%S".
1867
1868 * localedata/locales/mt_MT (t_fmt_ampm): Set to "" (empty string)
1869 because this locale does not use the 12-hour clock.
1870 (t_fmt): Set to "%H:%M:%S %Z".
1871 (d_t_fmt): Set to "%A, %d ta %b, %Y %H:%M:%S %Z".
1872
1873 * localedata/locales/so_KE (t_fmt_ampm): Set to "" (empty string)
1874 because this locale does not use the 12-hour clock.
1875 (t_fmt): Set to "%T".
1876 (d_t_fmt): Set to "%A, %B %e, %Y %X %Z".
1877 (date_fmt): Set to "%A, %B %e, %X %Z %Y".
1878
1879 * localedata/locales/ta_LK (t_fmt_ampm): Set to "" (empty string)
1880 because this locale does not use the 12-hour clock.
1881 (t_fmt): Set to "%H:%M:%S %Z".
1882 (d_t_fmt): Set to "%A %d %B %Y %H:%M:%S %Z".
1883
1884 * localedata/locales/bg_BG (t_fmt_ampm): Set to "" (empty string)
1885 because this locale does not use the 12-hour clock.
1886 * localedata/locales/cs_CZ (t_fmt_ampm): Likewise.
1887 * localedata/locales/sk_SK (t_fmt_ampm): Likewise.
1888
1889 2018-12-28 Rafal Luzynski <digitalfreak@lingonborough.com>
1890
1891 [BZ #10496]
1892 [BZ #23724]
1893 * localedata/locales/sq_AL (t_fmt): Set to "%I:%M:%S.%p %Z".
1894 (t_fmt_ampm): Likewise.
1895 (d_t_fmt): Set to "%a %-d %b %Y %I:%M:%S.%p".
1896 (date_fmt): Add, set to "%a %-d %b %Y %I:%M:%S.%p %Z".
1897 (d_fmt): Set to "%-d.%-m.%y".
1898
1899 2018-12-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1900
1901 * malloc/alloc_buffer_alloc_array.c (__libc_alloc_buffer_alloc_array):
1902 Use __builtin_mul_overflow in place of check_mul_overflow_size_t.
1903 * malloc/dynarray_emplace_enlarge.c (__libc_dynarray_emplace_enlarge):
1904 Likewise.
1905 * malloc/dynarray_resize.c (__libc_dynarray_resize): Likewise.
1906 * malloc/reallocarray.c (__libc_reallocarray): Likewise.
1907 * malloc/malloc-internal.h (check_mul_overflow_size_t): Remove
1908 function.
1909 * support/blob_repeat.c (check_mul_overflow_size_t,
1910 (minimum_stride_size, support_blob_repeat_allocate): Likewise.
1911
1912 2018-12-28 Aurelien Jarno <aurelien@aurel32.net>
1913
1914 * sysdeps/alpha/fpu/libm-test-ulps: Regenerated.
1915
1916 2018-12-27 Paul Eggert <eggert@cs.ucla.edu>
1917
1918 regex: simplify Gnulib port
1919 This simplifies the code, by removing stuff intended for porting
1920 to Gnulib but no longer needed there.
1921 * posix/regcomp.c [!_LIBC]: No need to put #ifdef _LIBC around
1922 uses of libc_hidden_def, weak_alias.
1923 * posix/regcomp.c, posix/regexec.c: Use __restrict rather than
1924 _Restrict_ except for public-facing headers.
1925 * posix/regex_internal.h (attribute_hidden) [!_LIBC]:
1926 Remove; already defined elsewhere.
1927 * posix/regex.c, posix/regex_internal.h:
1928 Use __GNUC_PREREQ instead of rolling our own.
1929 * posix/regex_internal.h (__GNUC_PREREQ): Remove duplicate defn.
1930
1931 2018-12-27 Wilco Dijkstra <wdijkstr@arm.com>
1932
1933 * benchtests/bench-strlen.c (generic_strlen): New function.
1934 (memchr_strlen): New function.
1935
1936 2018-12-26 H.J. Lu <hongjiu.lu@intel.com>
1937
1938 * sysdeps/x86_64/fpu/s_sincosf.S: Removed.
1939 * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.S: Likewise.
1940 * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.c: New file.
1941
1942 2018-12-26 H.J. Lu <hongjiu.lu@intel.com>
1943
1944 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
1945
1946 2018-12-26 H.J. Lu <hongjiu.lu@intel.com>
1947
1948 * sysdeps/ieee754/flt-32/s_sincosf.h: Include <sincosf_poly.h>.
1949 (sincos_t, sincosf_poly, sinf_poly): Moved to ...
1950 * sysdeps/ieee754/flt-32/sincosf_poly.h: Here. New file.
1951 * sysdeps/x86/fpu/s_sincosf_data.c: New file.
1952 * sysdeps/x86/fpu/sincosf_poly.h: Likewise.
1953 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: Just include
1954 <sysdeps/ieee754/flt-32/s_sincosf.c>.
1955
1956 2018-12-21 Joseph Myers <joseph@codesourcery.com>
1957
1958 [BZ #24023]
1959 * sysdeps/unix/sysv/linux/nios2/localplt.data: Allow __floatundidf
1960 PLT reference in libc.so.
1961 * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: Allow
1962 _Q_lltoq and _Q_qtod PLT references in libc.so.
1963
1964 2018-12-21 Wilco Dijkstra <wdijkstr@arm.com>
1965
1966 * benchtests/bench-memchr.c: Cleanup defines.
1967 * benchtests/bench-memcmp.c: Likewise.
1968 * benchtests/bench-memset.c: Likewise.
1969 * benchtests/bench-memset-large.c: Likewise.
1970 * benchtests/bench-memset-walk.c: Likewise.
1971 * benchtests/bench-stpcpy.c: Likewise.
1972 * benchtests/bench-stpncpy.c: Likewise.
1973 * benchtests/bench-strcat.c: Likewise.
1974 * benchtests/bench-strchr.c: Likewise.
1975 * benchtests/bench-strcmp.c: Likewise.
1976 * benchtests/bench-strcpy.c: Likewise.
1977 * benchtests/bench-strcspn.c: Likewise.
1978 * benchtests/bench-string.h: Likewise.
1979 * benchtests/bench-strlen.c: Likewise.
1980 * benchtests/bench-strncat.c: Likewise.
1981 * benchtests/bench-strncmp.c: Likewise.
1982 * benchtests/bench-strncpy.c: Likewise.
1983 * benchtests/bench-strnlen.c: Likewise.
1984 * benchtests/bench-strpbrk.c: Likewise.
1985 * benchtests/bench-strrchr.c: Likewise.
1986 * benchtests/bench-strspn.c: Likewise.
1987
1988 2018-12-21 Joseph Myers <joseph@codesourcery.com>
1989
1990 * stdlib/longlong.h: Update from GCC.
1991
1992 [BZ #23993]
1993 * configure.ac (libc_cv_compiler_ok): Require GCC 5 or later.
1994 * configure: Regenerated.
1995 * manual/install.texi (Tools for Compilation): Update minimum GCC
1996 version.
1997 * INSTALL: Regenerated.
1998
1999 2018-12-21 Istvan Kurucsai <pistukem@gmail.com>
2000
2001 * malloc/malloc.c (munmap_chunk): Verify chunk alignment.
2002
2003 2018-12-20 Istvan Kurucsai <pistukem@gmail.com>
2004
2005 * malloc/malloc.c (mremap_chunk): Additional checks.
2006
2007 2018-12-21 Mao Han <han_mao@c-sky.com>
2008
2009 * config.h.in (CSKYABI, CSKY_HARD_FLOAT): New Define.
2010 * scripts/build-many-glibcs.py: Add C-SKY targets.
2011 * sysdeps/csky/Implies: New file.
2012 * sysdeps/csky/Makefile: Likewise.
2013 * sysdeps/csky/abiv2/__longjmp.S: Likewise.
2014 * sysdeps/csky/abiv2/csky-mcount.S: Likewise.
2015 * sysdeps/csky/abiv2/dl-trampoline.S: Likewise.
2016 * sysdeps/csky/abiv2/memcmp.S: Likewise.
2017 * sysdeps/csky/abiv2/memcpy.S: Likewise.
2018 * sysdeps/csky/abiv2/memmove.S: Likewise.
2019 * sysdeps/csky/abiv2/memset.S: Likewise.
2020 * sysdeps/csky/abiv2/setjmp.S: Likewise.
2021 * sysdeps/csky/abiv2/start.S: Likewise.
2022 * sysdeps/csky/abiv2/strcmp.S: Likewise.
2023 * sysdeps/csky/abiv2/strcpy.S: Likewise.
2024 * sysdeps/csky/abiv2/strlen.S: Likewise.
2025 * sysdeps/csky/abiv2/tls-macros.h: Likewise.
2026 * sysdeps/csky/abort-instr.h: Likewise.
2027 * sysdeps/csky/atomic-machine.h: Likewise.
2028 * sysdeps/csky/bits/endian.h: Likewise.
2029 * sysdeps/csky/bits/fenv.h: Likewise.
2030 * sysdeps/csky/bits/link.h: Likewise.
2031 * sysdeps/csky/bits/setjmp.h: Likewise.
2032 * sysdeps/csky/bsd-_setjmp.S: Likewise.
2033 * sysdeps/csky/bsd-setjmp.S: Likewise.
2034 * sysdeps/csky/configure: Likewise.
2035 * sysdeps/csky/configure.ac: Likewise.
2036 * sysdeps/csky/dl-machine.h: Likewise.
2037 * sysdeps/csky/dl-procinfo.c: Likewise.
2038 * sysdeps/csky/dl-procinfo.h: Likewise.
2039 * sysdeps/csky/dl-sysdep.h: Likewise.
2040 * sysdeps/csky/dl-tls.h: Likewise.
2041 * sysdeps/csky/fpu/fclrexcpt.c: Likewise.
2042 * sysdeps/csky/fpu/fedisblxcpt.c: Likewise.
2043 * sysdeps/csky/fpu/feenablxcpt.c: Likewise.
2044 * sysdeps/csky/fpu/fegetenv.c: Likewise.
2045 * sysdeps/csky/fpu/fegetexcept.c: Likewise.
2046 * sysdeps/csky/fpu/fegetmode.c: Likewise.
2047 * sysdeps/csky/fpu/fegetround.c: Likewise.
2048 * sysdeps/csky/fpu/feholdexcpt.c: Likewise.
2049 * sysdeps/csky/fpu/fenv_libc.h: Likewise.
2050 * sysdeps/csky/fpu/fenv_private.h: Likewise.
2051 * sysdeps/csky/fpu/fesetenv.c: Likewise.
2052 * sysdeps/csky/fpu/fesetexcept.c: Likewise.
2053 * sysdeps/csky/fpu/fesetmode.c: Likewise.
2054 * sysdeps/csky/fpu/fesetround.c: Likewise.
2055 * sysdeps/csky/fpu/feupdateenv.c: Likewise.
2056 * sysdeps/csky/fpu/fgetexcptflg.c: Likewise.
2057 * sysdeps/csky/fpu/fix-fp-int-convert-overflow.h: Likewise.
2058 * sysdeps/csky/fpu/fraiseexcpt.c: Likewise.
2059 * sysdeps/csky/fpu/fsetexcptflg.c: Likewise.
2060 * sysdeps/csky/fpu/ftestexcept.c: Likewise.
2061 * sysdeps/csky/fpu/libm-test-ulps: Likewise.
2062 * sysdeps/csky/fpu/libm-test-ulps-name: Likewise.
2063 * sysdeps/csky/fpu_control.h: Likewise.
2064 * sysdeps/csky/gccframe.h: Likewise.
2065 * sysdeps/csky/jmpbuf-unwind.h: Likewise.
2066 * sysdeps/csky/ldsodefs.h: Likewise.
2067 * sysdeps/csky/libc-tls.c: Likewise.
2068 * sysdeps/csky/linkmap.h: Likewise.
2069 * sysdeps/csky/machine-gmon.h: Likewise.
2070 * sysdeps/csky/memusage.h: Likewise.
2071 * sysdeps/csky/nofpu/Implies: Likewise.
2072 * sysdeps/csky/nofpu/libm-test-ulps: Likewise.
2073 * sysdeps/csky/nofpu/libm-test-ulps-name: Likewise.
2074 * sysdeps/csky/nptl/Makefile: Likewise.
2075 * sysdeps/csky/nptl/bits/pthreadtypes-arch.h: Likewise.
2076 * sysdeps/csky/nptl/bits/semaphore.h: Likewise.
2077 * sysdeps/csky/nptl/pthread-offsets.h: Likewise.
2078 * sysdeps/csky/nptl/pthreaddef.h: Likewise.
2079 * sysdeps/csky/nptl/tcb-offsets.sym: Likewise.
2080 * sysdeps/csky/nptl/tls.h: Likewise.
2081 * sysdeps/csky/preconfigure: Likewise.
2082 * sysdeps/csky/sfp-machine.h: Likewise.
2083 * sysdeps/csky/sotruss-lib.c: Likewise.
2084 * sysdeps/csky/stackinfo.h: Likewise.
2085 * sysdeps/csky/sysdep.h: Likewise.
2086 * sysdeps/csky/tininess.h: Likewise.
2087 * sysdeps/csky/tst-audit.h: Likewise.
2088 * sysdeps/unix/sysv/linux/csky/Implies: Likewise.
2089 * sysdeps/unix/sysv/linux/csky/Makefile: Likewise.
2090 * sysdeps/unix/sysv/linux/csky/Versions: Likewise.
2091 * sysdeps/unix/sysv/linux/csky/abiv2/____longjmp_chk.S: Likewise.
2092 * sysdeps/unix/sysv/linux/csky/abiv2/clone.S: Likewise.
2093 * sysdeps/unix/sysv/linux/csky/abiv2/getcontext.S: Likewise.
2094 * sysdeps/unix/sysv/linux/csky/abiv2/setcontext.S: Likewise.
2095 * sysdeps/unix/sysv/linux/csky/abiv2/swapcontext.S: Likewise.
2096 * sysdeps/unix/sysv/linux/csky/abiv2/syscall.S: Likewise.
2097 * sysdeps/unix/sysv/linux/csky/abiv2/sysdep.S: Likewise.
2098 * sysdeps/unix/sysv/linux/csky/abiv2/ucontext_i.sym: Likewise.
2099 * sysdeps/unix/sysv/linux/csky/bits/procfs.h: Likewise.
2100 * sysdeps/unix/sysv/linux/csky/bits/shmlba.h: Likewise.
2101 * sysdeps/unix/sysv/linux/csky/c++-types.data: Likewise.
2102 * sysdeps/unix/sysv/linux/csky/configure: Likewise.
2103 * sysdeps/unix/sysv/linux/csky/configure.ac: Likewise.
2104 * sysdeps/unix/sysv/linux/csky/ipc_priv.h: Likewise.
2105 * sysdeps/unix/sysv/linux/csky/jmp_buf-macros.h: Likewise.
2106 * sysdeps/unix/sysv/linux/csky/kernel-features.h: Likewise.
2107 * sysdeps/unix/sysv/linux/csky/ld.abilist: Likewise.
2108 * sysdeps/unix/sysv/linux/csky/ldconfig.h: Likewise.
2109 * sysdeps/unix/sysv/linux/csky/libBrokenLocale.abilist: Likewise.
2110 * sysdeps/unix/sysv/linux/csky/libanl.abilist: Likewise.
2111 * sysdeps/unix/sysv/linux/csky/libc.abilist: Likewise.
2112 * sysdeps/unix/sysv/linux/csky/libcrypt.abilist: Likewise.
2113 * sysdeps/unix/sysv/linux/csky/libdl.abilist: Likewise.
2114 * sysdeps/unix/sysv/linux/csky/libm.abilist: Likewise.
2115 * sysdeps/unix/sysv/linux/csky/libpthread.abilist: Likewise.
2116 * sysdeps/unix/sysv/linux/csky/libresolv.abilist: Likewise.
2117 * sysdeps/unix/sysv/linux/csky/librt.abilist: Likewise.
2118 * sysdeps/unix/sysv/linux/csky/libthread_db.abilist: Likewise.
2119 * sysdeps/unix/sysv/linux/csky/libutil.abilist: Likewise.
2120 * sysdeps/unix/sysv/linux/csky/localplt.data: Likewise.
2121 * sysdeps/unix/sysv/linux/csky/makecontext.c: Likewise.
2122 * sysdeps/unix/sysv/linux/csky/profil-counter.h: Likewise.
2123 * sysdeps/unix/sysv/linux/csky/pt-vfork.S: Likewise.
2124 * sysdeps/unix/sysv/linux/csky/register-dump.h: Likewise.
2125 * sysdeps/unix/sysv/linux/csky/shlib-versions: Likewise.
2126 * sysdeps/unix/sysv/linux/csky/sigcontextinfo.h: Likewise.
2127 * sysdeps/unix/sysv/linux/csky/sys/cachectl.h: Likewise.
2128 * sysdeps/unix/sysv/linux/csky/sys/ucontext.h: Likewise.
2129 * sysdeps/unix/sysv/linux/csky/sys/user.h: Likewise.
2130 * sysdeps/unix/sysv/linux/csky/syscalls.list: Likewise.
2131 * sysdeps/unix/sysv/linux/csky/sysdep.h: Likewise.
2132
2133 2018-12-18 Albert ARIBAUD <albert.aribaud@3adev.fr>
2134
2135 * include/time.h (__difftime64): Add.
2136 * time/difftime.c (subtract): convert to 64-bit time.
2137 * time/difftime.c (__difftime64): Add.
2138 * time/difftime.c (__difftime): Wrap around __difftime64.
2139
2140 2018-12-20 H.J. Lu <hongjiu.lu@intel.com>
2141
2142 * manual/examples/add.c: Remove redundant "if not".
2143 * manual/examples/argp-ex1.c: Likewise.
2144 * manual/examples/argp-ex2.c: Likewise.
2145 * manual/examples/argp-ex3.c: Likewise.
2146 * manual/examples/argp-ex4.c: Likewise.
2147 * manual/examples/atexit.c: Likewise.
2148 * manual/examples/db.c: Likewise.
2149 * manual/examples/dir.c: Likewise.
2150 * manual/examples/dir2.c: Likewise.
2151 * manual/examples/execinfo.c: Likewise.
2152 * manual/examples/filecli.c: Likewise.
2153 * manual/examples/filesrv.c: Likewise.
2154 * manual/examples/fmtmsgexpl.c: Likewise.
2155 * manual/examples/genpass.c: Likewise.
2156 * manual/examples/inetcli.c: Likewise.
2157 * manual/examples/inetsrv.c: Likewise.
2158 * manual/examples/isockad.c: Likewise.
2159 * manual/examples/longopt.c: Likewise.
2160 * manual/examples/memopen.c: Likewise.
2161 * manual/examples/memstrm.c: Likewise.
2162 * manual/examples/mkdirent.c: Likewise.
2163 * manual/examples/mkfsock.c: Likewise.
2164 * manual/examples/mkisock.c: Likewise.
2165 * manual/examples/mygetpass.c: Likewise.
2166 * manual/examples/pipe.c: Likewise.
2167 * manual/examples/popen.c: Likewise.
2168 * manual/examples/rprintf.c: Likewise.
2169 * manual/examples/search.c: Likewise.
2170 * manual/examples/select.c: Likewise.
2171 * manual/examples/setjmp.c: Likewise.
2172 * manual/examples/sigh1.c: Likewise.
2173 * manual/examples/sigusr.c: Likewise.
2174 * manual/examples/stpcpy.c: Likewise.
2175 * manual/examples/strdupa.c: Likewise.
2176 * manual/examples/strftim.c: Likewise.
2177 * manual/examples/subopt.c: Likewise.
2178 * manual/examples/swapcontext.c: Likewise.
2179 * manual/examples/termios.c: Likewise.
2180 * manual/examples/testopt.c: Likewise.
2181 * manual/examples/testpass.c: Likewise.
2182 * manual/examples/timeval_subtract.c: Likewise.
2183
2184 2018-12-19 Joseph Myers <joseph@codesourcery.com>
2185
2186 * sysdeps/x86/fpu/math_private.h: New file.
2187 * sysdeps/x86/fpu/bits/mathinline.h: Remove.
2188
2189 * sysdeps/x86/fpu/bits/mathinline.h (sinh): Remove inline
2190 definition.
2191 (cosh): Likewise.
2192 (tanh): Likewise.
2193
2194 2018-12-19 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
2195
2196 * elf/dl-sysdep.c (auxvars): Add AT_L1I_CACHESIZE,
2197 AT_L1I_CACHEGEOMETRY, AT_L1D_CACHESIZE, AT_L1D_CACHEGEOMETRY,
2198 AT_L2_CACHESIZE, AT_L2_CACHEGEOMETRY, AT_L3_CACHESIZE and
2199 AT_L3_CACHEGEOMETRY. Fix indentation when printing the other
2200 fields.
2201 (_dl_show_auxv): Give a special treatment to
2202 AT_L1I_CACHEGEOMETRY, AT_L1D_CACHEGEOMETRY, AT_L2_CACHEGEOMETRY
2203 and AT_L3_CACHEGEOMETRY.
2204 * sysdeps/powerpc/dl-procinfo.h (cache_geometry): New function.
2205 (_dl_procinfo): Fix indentation when printing AT_HWCAP and
2206 AT_HWCAP2. Add support for AT_L1I_CACHEGEOMETRY,
2207 AT_L1D_CACHEGEOMETRY, AT_L2_CACHEGEOMETRY and AT_L3_CACHEGEOMETRY.
2208
2209 2018-12-19 Andreas Schwab <schwab@suse.de>
2210
2211 * nscd/connections.c (check_use): Don't abort on invalid len.
2212
2213 2018-12-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
2214
2215 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Test against 64bit `cmd'
2216 values in the 64bit value cases.
2217
2218 2018-12-18 Albert ARIBAUD <albert.aribaud@3adev.fr>
2219
2220 * include/time.h
2221 (__ctime64_r): Add.
2222 * time/ctime_r.c
2223 (__ctime64_r): Add.
2224 [__TIMESIZE != 64] (__ctime_r): Turn into a wrapper.
2225
2226 * include/time.h
2227 (__ctime64): Add.
2228 * time/gmtime.c
2229 (__ctime64): Add.
2230 [__TIMESIZE != 64] (ctime): Turn into a wrapper.
2231
2232 * include/time.h
2233 (__gmtime64_r): Add.
2234 * time/gmtime.c
2235 (__gmtime64_r): Add.
2236 [__TIMESIZE != 64] (__gmtime): Turn into a wrapper.
2237
2238 * include/time.h
2239 (__gmtime64): Add.
2240 * time/gmtime.c
2241 (__gmtime64): Add.
2242 [__TIMESIZE != 64] (__gmtime): Turn into a wrapper.
2243
2244 * include/time.h
2245 (__localtime64_r): Add.
2246 * time/localtime.c
2247 (__localtime64_r): Add.
2248 [__TIMESIZE != 64] (__localtime_r): Turn into a wrapper.
2249
2250 2018-12-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2251
2252 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Use Linux generic
2253 kernel_sigction definition.
2254
2255 * sysdeps/unix/sysv/linux/ia64/kernel_sigaction.h: Remove file.
2256
2257 * sysdeps/unix/sysv/linux/hppa/kernel_sigaction.h: Remove file.
2258
2259 * sysdeps/unix/sysv/linux/alpha/Makefile: Update comment about
2260 __syscall_rt_sigaction.
2261 * sysdeps/unix/sysv/linux/alpha/kernel_sigaction.h
2262 (kernel_sigaction): Use Linux generic defintion.
2263 (STUB): Define.
2264 (__syscall_rt_sigreturn, __syscall_sigreturn): Add prototype.
2265 * sysdeps/unix/sysv/linux/alpha/rt_sigaction.S
2266 (__syscall_rt_sigaction): Remove implementation.
2267 (__syscall_sigreturn, __syscall_rt_sigreturn): Define as global and
2268 hidden.
2269 * sysdeps/unix/sysv/linux/alpha/sigaction.c: Remove file.
2270 * sysdeps/unix/sysv/linux/alpha/sysdep.h (INLINE_SYSCALL,
2271 INTERNAL_SYSCALL): Remove definitions.
2272 * sysdeps/unix/sysv/linux/sigaction.c: Define STUB to accept both the
2273 action and signal set size.
2274 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c (STUB): Redefine.
2275 * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c (STUB): Likewise.
2276
2277 2018-12-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2278 James Clarke <jrtc27@jrtc27.com>
2279
2280 [BZ #23967]
2281 * sysdeps/unix/sysv/linux/kernel_sigaction.h (HAS_SA_RESTORER):
2282 Define if SA_RESTORER is defined.
2283 (kernel_sigaction): Define sa_restorer if HAS_SA_RESTORER is defined.
2284 (SET_SA_RESTORER, RESET_SA_RESTORER): Define iff the macro are not
2285 already defined.
2286 * sysdeps/unix/sysv/linux/m68k/kernel_sigaction.h (SA_RESTORER,
2287 kernel_sigaction, SET_SA_RESTORER, RESET_SA_RESTORER): Remove
2288 definitions.
2289 (HAS_SA_RESTORER): Define.
2290 * sysdeps/unix/sysv/linux/sparc/kernel_sigaction.h (SA_RESTORER,
2291 SET_SA_RESTORER, RESET_SA_RESTORER): Remove definition.
2292 (HAS_SA_RESTORER): Define.
2293 * sysdeps/unix/sysv/linux/nios2/kernel_sigaction.h: Include generic
2294 kernel_sigaction after define SET_SA_RESTORER and RESET_SA_RESTORER.
2295 * sysdeps/unix/sysv/linux/powerpc/kernel_sigaction.h: Likewise.
2296 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Likewise.
2297 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
2298
2299 2018-12-18 Joseph Myers <joseph@codesourcery.com>
2300
2301 * sysdeps/unix/sysv/linux/kernel-features.h
2302 (__ASSUME_ST_INO_64_BIT): Remove macro definition.
2303 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
2304 (__ASSUME_ST_INO_64_BIT): Do not undefine and define.
2305 * sysdeps/unix/sysv/linux/sh/kernel-features.h
2306 (__ASSUME_ST_INO_64_BIT): Likewise.
2307 * sysdeps/unix/sysv/linux/fxstat64.c: Do not include
2308 <kernel-features.h>.
2309 (___fxstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
2310 Remove conditional code.
2311 * sysdeps/unix/sysv/linux/lxstat64.c: Do not include
2312 <kernel-features.h>.
2313 (___lxstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
2314 Remove conditional code.
2315 * sysdeps/unix/sysv/linux/xstat64.c: Do not include
2316 <kernel-features.h>.
2317 (___xstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
2318 Remove conditional code.
2319 * sysdeps/unix/sysv/linux/xstatconv.c: Do not include
2320 <kernel-features.h>.
2321 (__xstat32_conv) [_HAVE_STAT64___ST_INO]: Remove conditional code.
2322 [!_HAVE_STAT64___ST_INO]: Make code unconditional.
2323
2324 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2325
2326 * sysdeps/s390/multiarch/ifunc-resolve.h
2327 (s390_vx_libc_ifunc, s390_vx_libc_ifunc_redirected,
2328 s390_vx_libc_ifunc2, s390_vx_libc_ifunc_init,
2329 s390_vx_libc_ifunc2_redirected, s390_libc_ifunc):
2330 Delete macro definition.
2331 (s390_libc_ifunc_init): Rename to
2332 s390_libc_ifunc_expr_stfle_init.
2333 * sysdeps/s390/bzero: Use
2334 s390_libc_ifunc_expr_stfle_init instead of
2335 s390_libc_ifunc_init.
2336 * sysdeps/s390/memcmp.c: Likewise.
2337 * sysdeps/s390/memcpy.c: Likewise.
2338 * sysdeps/s390/mempcpy.c: Likewise.
2339 * sysdeps/s390/memset.c: Likewise.
2340
2341 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2342
2343 * sysdeps/s390/multiarch/gconv_simple.c (ICONV_VX_IFUNC):
2344 Define macro dependent on HAVE_S390_MIN_Z13_ZARCH_ASM_SUPPORT.
2345
2346 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2347
2348 * sysdeps/s390/multiarch/Makefile
2349 (sysdep_routines): Remove wmemcmp variants.
2350 * sysdeps/s390/Makefile (sysdep_routines): Add wmemcmp variants.
2351 * sysdeps/s390/multiarch/ifunc-impl-list.c
2352 (__libc_ifunc_impl_list): Refactor ifunc handling for wmemcmp.
2353 * sysdeps/s390/multiarch/wmemcmp-c.c: Move to ...
2354 * sysdeps/s390/wmemcmp-c.c: ... here and adjust ifunc handling.
2355 * sysdeps/s390/multiarch/wmemcmp-vx.S: Move to ...
2356 * sysdeps/s390/wmemcmp-vx.S: ... here and adjust ifunc handling.
2357 * sysdeps/s390/multiarch/wmemcmp.c: Move to ...
2358 * sysdeps/s390/wmemcmp.c: ... here and adjust ifunc handling.
2359 * sysdeps/s390/ifunc-wmemcmp.h: New file.
2360
2361 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2362
2363 * sysdeps/s390/multiarch/Makefile
2364 (sysdep_routines): Remove wmemset variants.
2365 * sysdeps/s390/Makefile (sysdep_routines): Add wmemset variants.
2366 * sysdeps/s390/multiarch/ifunc-impl-list.c
2367 (__libc_ifunc_impl_list): Refactor ifunc handling for wmemset.
2368 * sysdeps/s390/multiarch/wmemset-c.c: Move to ...
2369 * sysdeps/s390/wmemset-c.c: ... here and adjust ifunc handling.
2370 * sysdeps/s390/multiarch/wmemset-vx.S: Move to ...
2371 * sysdeps/s390/wmemset-vx.S: ... here and adjust ifunc handling.
2372 * sysdeps/s390/multiarch/wmemset.c: Move to ...
2373 * sysdeps/s390/wmemset.c: ... here and adjust ifunc handling.
2374 * sysdeps/s390/ifunc-wmemset.h: New file.
2375
2376 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2377
2378 * sysdeps/s390/multiarch/Makefile
2379 (sysdep_routines): Remove wmemchr variants.
2380 * sysdeps/s390/Makefile (sysdep_routines): Add wmemchr variants.
2381 * sysdeps/s390/multiarch/ifunc-impl-list.c
2382 (__libc_ifunc_impl_list): Refactor ifunc handling for wmemchr.
2383 * sysdeps/s390/multiarch/wmemchr-c.c: Move to ...
2384 * sysdeps/s390/wmemchr-c.c: ... here and adjust ifunc handling.
2385 * sysdeps/s390/multiarch/wmemchr-vx.S: Move to ...
2386 * sysdeps/s390/wmemchr-vx.S: ... here and adjust ifunc handling.
2387 * sysdeps/s390/multiarch/wmemchr.c: Move to ...
2388 * sysdeps/s390/wmemchr.c: ... here and adjust ifunc handling.
2389 * sysdeps/s390/ifunc-wmemchr.h: New file.
2390
2391 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2392
2393 * sysdeps/s390/multiarch/Makefile
2394 (sysdep_routines): Remove wcscspn variants.
2395 * sysdeps/s390/Makefile (sysdep_routines): Add wcscspn variants.
2396 * sysdeps/s390/multiarch/ifunc-impl-list.c
2397 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscspn.
2398 * sysdeps/s390/multiarch/wcscspn-c.c: Move to ...
2399 * sysdeps/s390/wcscspn-c.c: ... here and adjust ifunc handling.
2400 * sysdeps/s390/multiarch/wcscspn-vx.S: Move to ...
2401 * sysdeps/s390/wcscspn-vx.S: ... here and adjust ifunc handling.
2402 * sysdeps/s390/multiarch/wcscspn.c: Move to ...
2403 * sysdeps/s390/wcscspn.c: ... here and adjust ifunc handling.
2404 * sysdeps/s390/ifunc-wcscspn.h: New file.
2405
2406 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2407
2408 * sysdeps/s390/multiarch/Makefile
2409 (sysdep_routines): Remove wcspbrk variants.
2410 * sysdeps/s390/Makefile (sysdep_routines): Add wcspbrk variants.
2411 * sysdeps/s390/multiarch/ifunc-impl-list.c
2412 (__libc_ifunc_impl_list): Refactor ifunc handling for wcspbrk.
2413 * sysdeps/s390/multiarch/wcspbrk-c.c: Move to ...
2414 * sysdeps/s390/wcspbrk-c.c: ... here and adjust ifunc handling.
2415 * sysdeps/s390/multiarch/wcspbrk-vx.S: Move to ...
2416 * sysdeps/s390/wcspbrk-vx.S: ... here and adjust ifunc handling.
2417 * sysdeps/s390/multiarch/wcspbrk.c: Move to ...
2418 * sysdeps/s390/wcspbrk.c: ... here and adjust ifunc handling.
2419 * sysdeps/s390/ifunc-wcspbrk.h: New file.
2420
2421 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2422
2423 * sysdeps/s390/multiarch/Makefile
2424 (sysdep_routines): Remove wcsspn variants.
2425 * sysdeps/s390/Makefile (sysdep_routines): Add wcsspn variants.
2426 * sysdeps/s390/multiarch/ifunc-impl-list.c
2427 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsspn.
2428 * sysdeps/s390/multiarch/wcsspn-c.c: Move to ...
2429 * sysdeps/s390/wcsspn-c.c: ... here and adjust ifunc handling.
2430 * sysdeps/s390/multiarch/wcsspn-vx.S: Move to ...
2431 * sysdeps/s390/wcsspn-vx.S: ... here and adjust ifunc handling.
2432 * sysdeps/s390/multiarch/wcsspn.c: Move to ...
2433 * sysdeps/s390/wcsspn.c: ... here and adjust ifunc handling.
2434 * sysdeps/s390/ifunc-wcsspn.h: New file.
2435
2436 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2437
2438 * sysdeps/s390/multiarch/Makefile
2439 (sysdep_routines): Remove wcsrchr variants.
2440 * sysdeps/s390/Makefile (sysdep_routines): Add wcsrchr variants.
2441 * sysdeps/s390/multiarch/ifunc-impl-list.c
2442 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsrchr.
2443 * sysdeps/s390/multiarch/wcsrchr-c.c: Move to ...
2444 * sysdeps/s390/wcsrchr-c.c: ... here and adjust ifunc handling.
2445 * sysdeps/s390/multiarch/wcsrchr-vx.S: Move to ...
2446 * sysdeps/s390/wcsrchr-vx.S: ... here and adjust ifunc handling.
2447 * sysdeps/s390/multiarch/wcsrchr.c: Move to ...
2448 * sysdeps/s390/wcsrchr.c: ... here and adjust ifunc handling.
2449 * sysdeps/s390/ifunc-wcsrchr.h: New file.
2450
2451 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2452
2453 * sysdeps/s390/multiarch/Makefile
2454 (sysdep_routines): Remove wcschrnul variants.
2455 * sysdeps/s390/Makefile (sysdep_routines): Add wcschrnul variants.
2456 * sysdeps/s390/multiarch/ifunc-impl-list.c
2457 (__libc_ifunc_impl_list): Refactor ifunc handling for wcschrnul.
2458 * sysdeps/s390/multiarch/wcschrnul-c.c: Move to ...
2459 * sysdeps/s390/wcschrnul-c.c: ... here and adjust ifunc handling.
2460 * sysdeps/s390/multiarch/wcschrnul-vx.S: Move to ...
2461 * sysdeps/s390/wcschrnul-vx.S: ... here and adjust ifunc handling.
2462 * sysdeps/s390/multiarch/wcschrnul.c: Move to ...
2463 * sysdeps/s390/wcschrnul.c: ... here and adjust ifunc handling.
2464 * sysdeps/s390/ifunc-wcschrnul.h: New file.
2465
2466 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2467
2468 * sysdeps/s390/multiarch/Makefile
2469 (sysdep_routines): Remove wcschr variants.
2470 * sysdeps/s390/Makefile (sysdep_routines): Add wcschr variants.
2471 * sysdeps/s390/multiarch/ifunc-impl-list.c
2472 (__libc_ifunc_impl_list): Refactor ifunc handling for wcschr.
2473 * sysdeps/s390/multiarch/wcschr-c.c: Move to ...
2474 * sysdeps/s390/wcschr-c.c: ... here and adjust ifunc handling.
2475 * sysdeps/s390/multiarch/wcschr-vx.S: Move to ...
2476 * sysdeps/s390/wcschr-vx.S: ... here and adjust ifunc handling.
2477 * sysdeps/s390/multiarch/wcschr.c: Move to ...
2478 * sysdeps/s390/wcschr.c: ... here and adjust ifunc handling.
2479 * sysdeps/s390/ifunc-wcschr.h: New file.
2480
2481 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2482
2483 * sysdeps/s390/multiarch/Makefile
2484 (sysdep_routines): Remove wcsncmp variants.
2485 * sysdeps/s390/Makefile (sysdep_routines): Add wcsncmp variants.
2486 * sysdeps/s390/multiarch/ifunc-impl-list.c
2487 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncmp.
2488 * sysdeps/s390/multiarch/wcsncmp-c.c: Move to ...
2489 * sysdeps/s390/wcsncmp-c.c: ... here and adjust ifunc handling.
2490 * sysdeps/s390/multiarch/wcsncmp-vx.S: Move to ...
2491 * sysdeps/s390/wcsncmp-vx.S: ... here and adjust ifunc handling.
2492 * sysdeps/s390/multiarch/wcsncmp.c: Move to ...
2493 * sysdeps/s390/wcsncmp.c: ... here and adjust ifunc handling.
2494 * sysdeps/s390/ifunc-wcsncmp.h: New file.
2495
2496 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2497
2498 * sysdeps/s390/multiarch/Makefile
2499 (sysdep_routines): Remove wcscmp variants.
2500 * sysdeps/s390/Makefile (sysdep_routines): Add wcscmp variants.
2501 * sysdeps/s390/multiarch/ifunc-impl-list.c
2502 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscmp.
2503 * sysdeps/s390/multiarch/wcscmp-c.c: Move to ...
2504 * sysdeps/s390/wcscmp-c.c: ... here and adjust ifunc handling.
2505 * sysdeps/s390/multiarch/wcscmp-vx.S: Move to ...
2506 * sysdeps/s390/wcscmp-vx.S: ... here and adjust ifunc handling.
2507 * sysdeps/s390/multiarch/wcscmp.c: Move to ...
2508 * sysdeps/s390/wcscmp.c: ... here and adjust ifunc handling.
2509 * sysdeps/s390/ifunc-wcscmp.h: New file.
2510
2511 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2512
2513 * sysdeps/s390/multiarch/Makefile
2514 (sysdep_routines): Remove wcsncat variants.
2515 * sysdeps/s390/Makefile (sysdep_routines): Add wcsncat variants.
2516 * sysdeps/s390/multiarch/ifunc-impl-list.c
2517 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncat.
2518 * sysdeps/s390/multiarch/wcsncat-c.c: Move to ...
2519 * sysdeps/s390/wcsncat-c.c: ... here and adjust ifunc handling.
2520 * sysdeps/s390/multiarch/wcsncat-vx.S: Move to ...
2521 * sysdeps/s390/wcsncat-vx.S: ... here and adjust ifunc handling.
2522 * sysdeps/s390/multiarch/wcsncat.c: Move to ...
2523 * sysdeps/s390/wcsncat.c: ... here and adjust ifunc handling.
2524 * sysdeps/s390/ifunc-wcsncat.h: New file.
2525
2526 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2527
2528 * sysdeps/s390/multiarch/Makefile
2529 (sysdep_routines): Remove wcscat variants.
2530 * sysdeps/s390/Makefile (sysdep_routines): Add wcscat variants.
2531 * sysdeps/s390/multiarch/ifunc-impl-list.c
2532 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscat.
2533 * sysdeps/s390/multiarch/wcscat-c.c: Move to ...
2534 * sysdeps/s390/wcscat-c.c: ... here and adjust ifunc handling.
2535 * sysdeps/s390/multiarch/wcscat-vx.S: Move to ...
2536 * sysdeps/s390/wcscat-vx.S: ... here and adjust ifunc handling.
2537 * sysdeps/s390/multiarch/wcscat.c: Move to ...
2538 * sysdeps/s390/wcscat.c: ... here and adjust ifunc handling.
2539 * sysdeps/s390/ifunc-wcscat.h: New file.
2540
2541 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2542
2543 * sysdeps/s390/multiarch/Makefile
2544 (sysdep_routines): Remove wcpncpy variants.
2545 * sysdeps/s390/Makefile (sysdep_routines): Add wcpncpy variants.
2546 * sysdeps/s390/multiarch/ifunc-impl-list.c
2547 (__libc_ifunc_impl_list): Refactor ifunc handling for wcpncpy.
2548 * sysdeps/s390/multiarch/wcpncpy-c.c: Move to ...
2549 * sysdeps/s390/wcpncpy-c.c: ... here and adjust ifunc handling.
2550 * sysdeps/s390/multiarch/wcpncpy-vx.S: Move to ...
2551 * sysdeps/s390/wcpncpy-vx.S: ... here and adjust ifunc handling.
2552 * sysdeps/s390/multiarch/wcpncpy.c: Move to ...
2553 * sysdeps/s390/wcpncpy.c: ... here and adjust ifunc handling.
2554 * sysdeps/s390/ifunc-wcpncpy.h: New file.
2555
2556 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2557
2558 * sysdeps/s390/multiarch/Makefile
2559 (sysdep_routines): Remove wcsncpy variants.
2560 * sysdeps/s390/Makefile (sysdep_routines): Add wcsncpy variants.
2561 * sysdeps/s390/multiarch/ifunc-impl-list.c
2562 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncpy.
2563 * sysdeps/s390/multiarch/wcsncpy-c.c: Move to ...
2564 * sysdeps/s390/wcsncpy-c.c: ... here and adjust ifunc handling.
2565 * sysdeps/s390/multiarch/wcsncpy-vx.S: Move to ...
2566 * sysdeps/s390/wcsncpy-vx.S: ... here and adjust ifunc handling.
2567 * sysdeps/s390/multiarch/wcsncpy.c: Move to ...
2568 * sysdeps/s390/wcsncpy.c: ... here and adjust ifunc handling.
2569 * sysdeps/s390/ifunc-wcsncpy.h: New file.
2570
2571 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2572
2573 * sysdeps/s390/multiarch/Makefile
2574 (sysdep_routines): Remove wcpcpy variants.
2575 * sysdeps/s390/Makefile (sysdep_routines): Add wcpcpy variants.
2576 * sysdeps/s390/multiarch/ifunc-impl-list.c
2577 (__libc_ifunc_impl_list): Refactor ifunc handling for wcpcpy.
2578 * sysdeps/s390/multiarch/wcpcpy-c.c: Move to ...
2579 * sysdeps/s390/wcpcpy-c.c: ... here and adjust ifunc handling.
2580 * sysdeps/s390/multiarch/wcpcpy-vx.S: Move to ...
2581 * sysdeps/s390/wcpcpy-vx.S: ... here and adjust ifunc handling.
2582 * sysdeps/s390/multiarch/wcpcpy.c: Move to ...
2583 * sysdeps/s390/wcpcpy.c: ... here and adjust ifunc handling.
2584 * sysdeps/s390/ifunc-wcpcpy.h: New file.
2585
2586 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2587
2588 * sysdeps/s390/multiarch/Makefile
2589 (sysdep_routines): Remove wcscpy variants.
2590 * sysdeps/s390/Makefile (sysdep_routines): Add wcscpy variants.
2591 * sysdeps/s390/multiarch/ifunc-impl-list.c
2592 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscpy.
2593 * sysdeps/s390/multiarch/wcscpy-c.c: Move to ...
2594 * sysdeps/s390/wcscpy-c.c: ... here and adjust ifunc handling.
2595 * sysdeps/s390/multiarch/wcscpy-vx.S: Move to ...
2596 * sysdeps/s390/wcscpy-vx.S: ... here and adjust ifunc handling.
2597 * sysdeps/s390/multiarch/wcscpy.c: Move to ...
2598 * sysdeps/s390/wcscpy.c: ... here and adjust ifunc handling.
2599 * sysdeps/s390/ifunc-wcscpy.h: New file.
2600
2601 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2602
2603 * sysdeps/s390/multiarch/Makefile
2604 (sysdep_routines): Remove wcsnlen variants.
2605 * sysdeps/s390/Makefile (sysdep_routines): Add wcsnlen variants.
2606 * sysdeps/s390/multiarch/ifunc-impl-list.c
2607 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsnlen.
2608 * sysdeps/s390/multiarch/wcsnlen-c.c: Move to ...
2609 * sysdeps/s390/wcsnlen-c.c: ... here and adjust ifunc handling.
2610 * sysdeps/s390/multiarch/wcsnlen-vx.S: Move to ...
2611 * sysdeps/s390/wcsnlen-vx.S: ... here and adjust ifunc handling.
2612 * sysdeps/s390/multiarch/wcsnlen.c: Move to ...
2613 * sysdeps/s390/wcsnlen.c: ... here and adjust ifunc handling.
2614 * sysdeps/s390/ifunc-wcsnlen.h: New file.
2615
2616 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2617
2618 * sysdeps/s390/multiarch/Makefile
2619 (sysdep_routines): Remove wcslen variants.
2620 * sysdeps/s390/Makefile (sysdep_routines): Add wcslen variants.
2621 * sysdeps/s390/multiarch/ifunc-impl-list.c
2622 (__libc_ifunc_impl_list): Refactor ifunc handling for wcslen.
2623 * sysdeps/s390/multiarch/wcslen-c.c: Move to ...
2624 * sysdeps/s390/wcslen-c.c: ... here and adjust ifunc handling.
2625 * sysdeps/s390/multiarch/wcslen-vx.S: Move to ...
2626 * sysdeps/s390/wcslen-vx.S: ... here and adjust ifunc handling.
2627 * sysdeps/s390/multiarch/wcslen.c: Move to ...
2628 * sysdeps/s390/wcslen.c: ... here and adjust ifunc handling.
2629 * sysdeps/s390/ifunc-wcslen.h: New file.
2630
2631 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2632
2633 * sysdeps/s390/multiarch/Makefile
2634 (sysdep_routines): Remove memrchr variants.
2635 * sysdeps/s390/Makefile (sysdep_routines): Add memrchr variants.
2636 * sysdeps/s390/multiarch/ifunc-impl-list.c
2637 (__libc_ifunc_impl_list): Refactor ifunc handling for memrchr.
2638 * sysdeps/s390/multiarch/memrchr-c.c: Move to ...
2639 * sysdeps/s390/memrchr-c.c: ... here and adjust ifunc handling.
2640 * sysdeps/s390/multiarch/memrchr-vx.S: Move to ...
2641 * sysdeps/s390/memrchr-vx.S: ... here and adjust ifunc handling.
2642 * sysdeps/s390/multiarch/memrchr.c: Move to ...
2643 * sysdeps/s390/memrchr.c: ... here and adjust ifunc handling.
2644 * sysdeps/s390/ifunc-memrchr.h: New file.
2645
2646 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2647
2648 * sysdeps/s390/multiarch/Makefile
2649 (sysdep_routines): Remove memccpy variants.
2650 * sysdeps/s390/Makefile (sysdep_routines): Add memccpy variants.
2651 * sysdeps/s390/multiarch/ifunc-impl-list.c
2652 (__libc_ifunc_impl_list): Refactor ifunc handling for memccpy.
2653 * sysdeps/s390/multiarch/memccpy-c.c: Move to ...
2654 * sysdeps/s390/memccpy-c.c: ... here and adjust ifunc handling.
2655 * sysdeps/s390/multiarch/memccpy-vx.S: Move to ...
2656 * sysdeps/s390/memccpy-vx.S: ... here and adjust ifunc handling.
2657 * sysdeps/s390/multiarch/memccpy.c: Move to ...
2658 * sysdeps/s390/memccpy.c: ... here and adjust ifunc handling.
2659 * sysdeps/s390/ifunc-memccpy.h: New file.
2660
2661 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2662
2663 * sysdeps/s390/multiarch/Makefile
2664 (sysdep_routines): Remove rawmemchr variants.
2665 * sysdeps/s390/Makefile (sysdep_routines): Add rawmemchr variants.
2666 * sysdeps/s390/multiarch/ifunc-impl-list.c
2667 (__libc_ifunc_impl_list): Refactor ifunc handling for rawmemchr.
2668 * sysdeps/s390/multiarch/rawmemchr-c.c: Move to ...
2669 * sysdeps/s390/rawmemchr-c.c: ... here and adjust ifunc handling.
2670 * sysdeps/s390/multiarch/rawmemchr-vx.S: Move to ...
2671 * sysdeps/s390/rawmemchr-vx.S: ... here and adjust ifunc handling.
2672 * sysdeps/s390/multiarch/rawmemchr.c: Move to ...
2673 * sysdeps/s390/rawmemchr.c: ... here and adjust ifunc handling.
2674 * sysdeps/s390/ifunc-rawmemchr.h: New file.
2675
2676 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2677
2678 * sysdeps/s390/multiarch/Makefile
2679 (sysdep_routines): Remove memchr variants.
2680 * sysdeps/s390/Makefile (sysdep_routines): Add memchr variants.
2681 * sysdeps/s390/multiarch/ifunc-impl-list.c
2682 (__libc_ifunc_impl_list): Refactor ifunc handling for memchr.
2683 * sysdeps/s390/multiarch/memchr-vx.S: Move to ...
2684 * sysdeps/s390/memchr-vx.S: ... here and adjust ifunc handling.
2685 * sysdeps/s390/multiarch/memchr.c: Move to ...
2686 * sysdeps/s390/memchr.c: ... here and adjust ifunc handling.
2687 * sysdeps/s390/ifunc-memchr.h: New file.
2688 * sysdeps/s390/s390-64/memchr.S: Move to ...
2689 * sysdeps/s390/memchr-z900.S: ... here and adjust to be usable
2690 for 31/64bit and ifunc handling.
2691 * sysdeps/s390/s390-32/multiarch/memchr.c: Delete file.
2692 * sysdeps/s390/s390-64/multiarch/memchr.c: Likewise.
2693 * sysdeps/s390/s390-32/memchr.S: Likewise.
2694
2695 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2696
2697 * sysdeps/s390/multiarch/Makefile
2698 (sysdep_routines): Remove strcspn variants.
2699 * sysdeps/s390/Makefile (sysdep_routines): Add strcspn variants.
2700 * sysdeps/s390/multiarch/ifunc-impl-list.c
2701 (__libc_ifunc_impl_list): Refactor ifunc handling for strcspn.
2702 * sysdeps/s390/multiarch/strcspn-c.c: Move to ...
2703 * sysdeps/s390/strcspn-c.c: ... here and adjust ifunc handling.
2704 * sysdeps/s390/multiarch/strcspn-vx.S: Move to ...
2705 * sysdeps/s390/strcspn-vx.S: ... here and adjust ifunc handling.
2706 * sysdeps/s390/multiarch/strcspn.c: Move to ...
2707 * sysdeps/s390/strcspn.c: ... here and adjust ifunc handling.
2708 * sysdeps/s390/ifunc-strcspn.h: New file.
2709
2710 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2711
2712 * sysdeps/s390/multiarch/Makefile
2713 (sysdep_routines): Remove strpbrk variants.
2714 * sysdeps/s390/Makefile (sysdep_routines): Add strpbrk variants.
2715 * sysdeps/s390/multiarch/ifunc-impl-list.c
2716 (__libc_ifunc_impl_list): Refactor ifunc handling for strpbrk.
2717 * sysdeps/s390/multiarch/strpbrk-c.c: Move to ...
2718 * sysdeps/s390/strpbrk-c.c: ... here and adjust ifunc handling.
2719 * sysdeps/s390/multiarch/strpbrk-vx.S: Move to ...
2720 * sysdeps/s390/strpbrk-vx.S: ... here and adjust ifunc handling.
2721 * sysdeps/s390/multiarch/strpbrk.c: Move to ...
2722 * sysdeps/s390/strpbrk.c: ... here and adjust ifunc handling.
2723 * sysdeps/s390/ifunc-strpbrk.h: New file.
2724
2725 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2726
2727 * sysdeps/s390/multiarch/Makefile
2728 (sysdep_routines): Remove strspn variants.
2729 * sysdeps/s390/Makefile (sysdep_routines): Add strspn variants.
2730 * sysdeps/s390/multiarch/ifunc-impl-list.c
2731 (__libc_ifunc_impl_list): Refactor ifunc handling for strspn.
2732 * sysdeps/s390/multiarch/strspn-c.c: Move to ...
2733 * sysdeps/s390/strspn-c.c: ... here and adjust ifunc handling.
2734 * sysdeps/s390/multiarch/strspn-vx.S: Move to ...
2735 * sysdeps/s390/strspn-vx.S: ... here and adjust ifunc handling.
2736 * sysdeps/s390/multiarch/strspn.c: Move to ...
2737 * sysdeps/s390/strspn.c: ... here and adjust ifunc handling.
2738 * sysdeps/s390/ifunc-strspn.h: New file.
2739
2740 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2741
2742 * sysdeps/s390/multiarch/Makefile
2743 (sysdep_routines): Remove strrchr variants.
2744 * sysdeps/s390/Makefile (sysdep_routines): Add strrchr variants.
2745 * sysdeps/s390/multiarch/ifunc-impl-list.c
2746 (__libc_ifunc_impl_list): Refactor ifunc handling for strrchr.
2747 * sysdeps/s390/multiarch/strrchr-c.c: Move to ...
2748 * sysdeps/s390/strrchr-c.c: ... here and adjust ifunc handling.
2749 * sysdeps/s390/multiarch/strrchr-vx.S: Move to ...
2750 * sysdeps/s390/strrchr-vx.S: ... here and adjust ifunc handling.
2751 * sysdeps/s390/multiarch/strrchr.c: Move to ...
2752 * sysdeps/s390/strrchr.c: ... here and adjust ifunc handling.
2753 * sysdeps/s390/ifunc-strrchr.h: New file.
2754
2755 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2756
2757 * sysdeps/s390/multiarch/Makefile
2758 (sysdep_routines): Remove strchrnul variants.
2759 * sysdeps/s390/Makefile (sysdep_routines): Add strchrnul variants.
2760 * sysdeps/s390/multiarch/ifunc-impl-list.c
2761 (__libc_ifunc_impl_list): Refactor ifunc handling for strchrnul.
2762 * sysdeps/s390/multiarch/strchrnul-c.c: Move to ...
2763 * sysdeps/s390/strchrnul-c.c: ... here and adjust ifunc handling.
2764 * sysdeps/s390/multiarch/strchrnul-vx.S: Move to ...
2765 * sysdeps/s390/strchrnul-vx.S: ... here and adjust ifunc handling.
2766 * sysdeps/s390/multiarch/strchrnul.c: Move to ...
2767 * sysdeps/s390/strchrnul.c: ... here and adjust ifunc handling.
2768 * sysdeps/s390/ifunc-strchrnul.h: New file.
2769
2770 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2771
2772 * sysdeps/s390/multiarch/Makefile
2773 (sysdep_routines): Remove strchr variants.
2774 * sysdeps/s390/Makefile (sysdep_routines): Add strchr variants.
2775 * sysdeps/s390/multiarch/ifunc-impl-list.c
2776 (__libc_ifunc_impl_list): Refactor ifunc handling for strchr.
2777 * sysdeps/s390/multiarch/strchr-c.c: Move to ...
2778 * sysdeps/s390/strchr-c.c: ... here and adjust ifunc handling.
2779 * sysdeps/s390/multiarch/strchr-vx.S: Move to ...
2780 * sysdeps/s390/strchr-vx.S: ... here and adjust ifunc handling.
2781 * sysdeps/s390/multiarch/strchr.c: Move to ...
2782 * sysdeps/s390/strchr.c: ... here and adjust ifunc handling.
2783 * sysdeps/s390/ifunc-strchr.h: New file.
2784
2785 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2786
2787 * sysdeps/s390/multiarch/Makefile
2788 (sysdep_routines): Remove strncmp variants.
2789 * sysdeps/s390/Makefile (sysdep_routines): Add strncmp variants.
2790 * sysdeps/s390/multiarch/ifunc-impl-list.c
2791 (__libc_ifunc_impl_list): Refactor ifunc handling for strncmp.
2792 * sysdeps/s390/multiarch/strncmp-c.c: Move to ...
2793 * sysdeps/s390/strncmp-c.c: ... here and adjust ifunc handling.
2794 * sysdeps/s390/multiarch/strncmp-vx.S: Move to ...
2795 * sysdeps/s390/strncmp-vx.S: ... here and adjust ifunc handling.
2796 * sysdeps/s390/multiarch/strncmp.c: Move to ...
2797 * sysdeps/s390/strncmp.c: ... here and adjust ifunc handling.
2798 * sysdeps/s390/ifunc-strncmp.h: New file.
2799
2800 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2801
2802 * sysdeps/s390/multiarch/Makefile
2803 (sysdep_routines): Remove strcmp variants.
2804 * sysdeps/s390/Makefile (sysdep_routines): Add strcmp variants.
2805 * sysdeps/s390/multiarch/ifunc-impl-list.c
2806 (__libc_ifunc_impl_list): Refactor ifunc handling for strcmp.
2807 * sysdeps/s390/multiarch/strcmp-vx.S: Move to ...
2808 * sysdeps/s390/strcmp-vx.S: ... here and adjust ifunc handling.
2809 * sysdeps/s390/multiarch/strcmp.c: Move to ...
2810 * sysdeps/s390/strcmp.c: ... here and adjust ifunc handling.
2811 * sysdeps/s390/ifunc-strcmp.h: New file.
2812 * sysdeps/s390/s390-64/strcmp.S: Move to ...
2813 * sysdeps/s390/strcmp-z900.S: ... here and adjust to be usable
2814 for 31/64bit and ifunc handling.
2815 * sysdeps/s390/s390-32/multiarch/strcmp.c: Delete file.
2816 * sysdeps/s390/s390-64/multiarch/strcmp.c: Likewise.
2817 * sysdeps/s390/s390-32/strcmp.S: Likewise.
2818
2819 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2820
2821 * sysdeps/s390/multiarch/Makefile
2822 (sysdep_routines): Remove strncat variants.
2823 * sysdeps/s390/Makefile (sysdep_routines): Add strncat variants.
2824 * sysdeps/s390/multiarch/ifunc-impl-list.c
2825 (__libc_ifunc_impl_list): Refactor ifunc handling for strncat.
2826 * sysdeps/s390/multiarch/strncat-c.c: Move to ...
2827 * sysdeps/s390/strncat-c.c: ... here and adjust ifunc handling.
2828 * sysdeps/s390/multiarch/strncat-vx.S: Move to ...
2829 * sysdeps/s390/strncat-vx.S: ... here and adjust ifunc handling.
2830 * sysdeps/s390/multiarch/strncat.c: Move to ...
2831 * sysdeps/s390/strncat.c: ... here and adjust ifunc handling.
2832 * sysdeps/s390/ifunc-strncat.h: New file.
2833
2834 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2835
2836 * sysdeps/s390/multiarch/Makefile
2837 (sysdep_routines): Remove strcat variants.
2838 * sysdeps/s390/Makefile (sysdep_routines): Add strcat variants.
2839 * sysdeps/s390/multiarch/ifunc-impl-list.c
2840 (__libc_ifunc_impl_list): Refactor ifunc handling for strcat.
2841 * sysdeps/s390/multiarch/strcat-c.c: Move to ...
2842 * sysdeps/s390/strcat-c.c: ... here and adjust ifunc handling.
2843 * sysdeps/s390/multiarch/strcat-vx.S: Move to ...
2844 * sysdeps/s390/strcat-vx.S: ... here and adjust ifunc handling.
2845 * sysdeps/s390/multiarch/strcat.c: Move to ...
2846 * sysdeps/s390/strcat.c: ... here and adjust ifunc handling.
2847 * sysdeps/s390/ifunc-strcat.h: New file.
2848
2849 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2850
2851 * sysdeps/s390/multiarch/Makefile
2852 (sysdep_routines): Remove stpncpy variants.
2853 * sysdeps/s390/Makefile (sysdep_routines): Add stpncpy variants.
2854 * sysdeps/s390/multiarch/ifunc-impl-list.c
2855 (__libc_ifunc_impl_list): Refactor ifunc handling for stpncpy.
2856 * sysdeps/s390/multiarch/stpncpy-c.c: Move to ...
2857 * sysdeps/s390/stpncpy-c.c: ... here and adjust ifunc handling.
2858 * sysdeps/s390/multiarch/stpncpy-vx.S: Move to ...
2859 * sysdeps/s390/stpncpy-vx.S: ... here and adjust ifunc handling.
2860 * sysdeps/s390/multiarch/stpncpy.c: Move to ...
2861 * sysdeps/s390/stpncpy.c: ... here and adjust ifunc handling.
2862 * sysdeps/s390/ifunc-stpncpy.h: New file.
2863
2864 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2865
2866 * sysdeps/s390/multiarch/Makefile
2867 (sysdep_routines): Remove strncpy variants.
2868 * sysdeps/s390/Makefile (sysdep_routines): Add strncpy variants.
2869 * sysdeps/s390/multiarch/ifunc-impl-list.c
2870 (__libc_ifunc_impl_list): Refactor ifunc handling for strncpy.
2871 * sysdeps/s390/multiarch/strncpy-vx.S: Move to ...
2872 * sysdeps/s390/strncpy-vx.S: ... here and adjust ifunc handling.
2873 * sysdeps/s390/multiarch/strncpy.c: Move to ...
2874 * sysdeps/s390/strncpy.c: ... here and adjust ifunc handling.
2875 * sysdeps/s390/ifunc-strncpy.h: New file.
2876 * sysdeps/s390/s390-64/strncpy.S: Move to ...
2877 * sysdeps/s390/s390-64/strncpy-z900.S: ... here
2878 and adjust ifunc handling.
2879 * sysdeps/s390/s390-32/strncpy.S: Move to ...
2880 * sysdeps/s390/s390-32/strncpy-z900.S: ... here
2881 and adjust ifunc handling.
2882 * sysdeps/s390/s390-32/multiarch/strncpy.c: Delete file.
2883 * sysdeps/s390/s390-64/multiarch/strncpy.c: Likewise.
2884
2885 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2886
2887 * sysdeps/s390/multiarch/Makefile
2888 (sysdep_routines): Remove stpcpy variants.
2889 * sysdeps/s390/Makefile (sysdep_routines): Add stpcpy variants.
2890 * sysdeps/s390/multiarch/ifunc-impl-list.c
2891 (__libc_ifunc_impl_list): Refactor ifunc handling for stpcpy.
2892 * sysdeps/s390/multiarch/stpcpy-c.c: Move to ...
2893 * sysdeps/s390/stpcpy-c.c: ... here and adjust ifunc handling.
2894 * sysdeps/s390/multiarch/stpcpy-vx.S: Move to ...
2895 * sysdeps/s390/stpcpy-vx.S: ... here and adjust ifunc handling.
2896 * sysdeps/s390/multiarch/stpcpy.c: Move to ...
2897 * sysdeps/s390/stpcpy.c: ... here and adjust ifunc handling.
2898 * sysdeps/s390/ifunc-stpcpy.h: New file.
2899
2900 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2901
2902 * sysdeps/s390/multiarch/Makefile
2903 (sysdep_routines): Remove strcpy variants.
2904 * sysdeps/s390/Makefile (sysdep_routines): Add strcpy variants.
2905 * sysdeps/s390/multiarch/ifunc-impl-list.c
2906 (__libc_ifunc_impl_list): Refactor ifunc handling for strcpy.
2907 * sysdeps/s390/multiarch/strcpy-vx.S: Move to ...
2908 * sysdeps/s390/strcpy-vx.S: ... here and adjust ifunc handling.
2909 * sysdeps/s390/multiarch/strcpy.c: Move to ...
2910 * sysdeps/s390/strcpy.c: ... here and adjust ifunc handling.
2911 * sysdeps/s390/ifunc-strcpy.h: New file.
2912 * sysdeps/s390/s390-64/strcpy.S: Move to ...
2913 * sysdeps/s390/strcpy-z900.S: ... here and adjust to be usable
2914 for 31/64bit and ifunc handling.
2915 * sysdeps/s390/s390-32/multiarch/strcpy.c: Delete file.
2916 * sysdeps/s390/s390-64/multiarch/strcpy.c: Likewise.
2917 * sysdeps/s390/s390-32/strcpy.S: Likewise.
2918
2919 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2920
2921 * sysdeps/s390/multiarch/Makefile
2922 (sysdep_routines): Remove strnlen variants.
2923 * sysdeps/s390/Makefile (sysdep_routines): Add strnlen variants.
2924 * sysdeps/s390/multiarch/ifunc-impl-list.c
2925 (__libc_ifunc_impl_list): Refactor ifunc handling for strnlen.
2926 * sysdeps/s390/multiarch/strnlen-c.c: Move to ...
2927 * sysdeps/s390/strnlen-c.c: ... here and adjust ifunc handling.
2928 * sysdeps/s390/multiarch/strnlen-vx.S: Move to ...
2929 * sysdeps/s390/strnlen-vx.S: ... here and adjust ifunc handling.
2930 * sysdeps/s390/multiarch/strnlen.c: Move to ...
2931 * sysdeps/s390/strnlen.c: ... here and adjust ifunc handling.
2932 * sysdeps/s390/ifunc-strnlen.h: New file.
2933
2934 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2935
2936 * sysdeps/s390/multiarch/Makefile
2937 (sysdep_routines): Remove strlen variants.
2938 * sysdeps/s390/Makefile (sysdep_routines): Add strlen variants.
2939 * sysdeps/s390/multiarch/ifunc-impl-list.c
2940 (__libc_ifunc_impl_list): Refactor ifunc handling for strlen.
2941 * sysdeps/s390/multiarch/strlen-c.c: Move to ...
2942 * sysdeps/s390/strlen-c.c: ... here and adjust ifunc handling.
2943 * sysdeps/s390/multiarch/strlen-vx.S: Move to ...
2944 * sysdeps/s390/strlen-vx.S: ... here and adjust ifunc handling.
2945 * sysdeps/s390/multiarch/strlen.c: Move to ...
2946 * sysdeps/s390/strlen.c: ... here and adjust ifunc handling.
2947 * sysdeps/s390/ifunc-strlen.h: New file.
2948
2949 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2950
2951 * sysdeps/s390/Makefile (sysdep_routines): Add memmem variants.
2952 * sysdeps/s390/multiarch/ifunc-impl-list.c
2953 (__libc_ifunc_impl_list): Add ifunc variants for memmem.
2954 * sysdeps/s390/ifunc-memmem.h: New file.
2955 * sysdeps/s390/memmem.c: Likewise.
2956 * sysdeps/s390/memmem-c.c: Likewise.
2957 * sysdeps/s390/memmem-vx.c: Likewise.
2958
2959 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2960
2961 * sysdeps/s390/Makefile (sysdep_routines): Add strstr variants.
2962 * sysdeps/s390/multiarch/ifunc-impl-list.c
2963 (__libc_ifunc_impl_list): Add ifunc variants for strstr.
2964 * sysdeps/s390/ifunc-strstr.h: New file.
2965 * sysdeps/s390/strstr.c: Likewise.
2966 * sysdeps/s390/strstr-c.c: Likewise.
2967 * sysdeps/s390/strstr-vx.c: Likewise.
2968
2969 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2970
2971 * sysdeps/s390/Makefile (sysdep_routines): Add memmove-c.
2972 * sysdeps/s390/ifunc-memcpy.h (HAVE_MEMMOVE_IFUNC,
2973 HAVE_MEMMOVE_IFUNC_AND_VX_SUPPORT, MEMMOVE_DEFAULT,
2974 HAVE_MEMMOVE_C, MEMMOVE_C, HAVE_MEMMOVE_Z13, MEMMOVE_Z13):
2975 New defines.
2976 * sysdeps/s390/memcpy-z900.S: Add z13 memmove implementation.
2977 * sysdeps/s390/memmove-c.c: New file.
2978 * sysdeps/s390/memmove.c: Likewise.
2979 * sysdeps/s390/multiarch/ifunc-impl-list.c
2980 (__libc_ifunc_impl_list): Add ifunc variants for memmove.
2981
2982 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2983
2984 * config.h.in (HAVE_S390_MIN_Z13_ZARCH_ASM_SUPPORT): New undefine.
2985 * sysdeps/s390/configure.ac: Add check for z13 support.
2986 * sysdeps/s390/configure: Regenerated.
2987
2988 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2989
2990 * sysdeps/s390/memcopy.h: New file.
2991
2992 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2993
2994 * sysdeps/s390/s390-32/bcopy.S: Remove.
2995 * sysdeps/s390/s390-64/bcopy.S: Likewise.
2996
2997 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2998
2999 * sysdeps/s390/ifunc-memcpy.h: New File.
3000 * sysdeps/s390/memcpy.S: Move to ...
3001 * sysdeps/s390/memcpy-z900.S ... here.
3002 Move implementations from memcpy-s390x.s to here.
3003 * sysdeps/s390/multiarch/memcpy-s390x.S: Delete File.
3004 * sysdeps/s390/multiarch/Makefile (sysdep_routines):
3005 Remove memcpy/mempcpy variants.
3006 * sysdeps/s390/Makefile (sysdep_routines):
3007 Add memcpy/mempcpy variants.
3008 * sysdeps/s390/multiarch/ifunc-impl-list.c
3009 (__libc_ifunc_impl_list): Adjust ifunc variants for
3010 memcpy and mempcpy.
3011 * sysdeps/s390/multiarch/memcpy.c: Move ifunc resolver
3012 to ...
3013 * sysdeps/s390/memcpy.c: ... here.
3014 Adjust ifunc variants for memcpy.
3015 * sysdeps/s390/multiarch/mempcpy.c: Move to ...
3016 * sysdeps/s390/mempcpy.c: ... here.
3017 Adjust ifunc variants for mempcpy.
3018 * sysdeps/s390/mempcpy.S: Delete file.
3019
3020 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3021
3022 * sysdeps/s390/s390-64/memcpy.S: Move to ...
3023 * sysdeps/s390/memcpy.S: ... here.
3024 Adjust to be usable for 31/64bit.
3025 * sysdeps/s390/s390-32/memcpy.S: Delete File.
3026 * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memcpy.
3027 * sysdeps/s390/s390-32/multiarch/Makefile: Delete file.
3028 * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
3029 * sysdeps/s390/s390-64/multiarch/memcpy-s390x.S: Move to ...
3030 * sysdeps/s390/multiarch/memcpy-s390x.S: ... here.
3031 Adjust to be usable for 31/64bit.
3032 * sysdeps/s390/s390-32/multiarch/memcpy-s390.S: Delete File.
3033 * sysdeps/s390/s390-64/multiarch/memcpy.c: Move to ...
3034 * sysdeps/s390/multiarch/memcpy.c: ... here.
3035 * sysdeps/s390/s390-32/multiarch/memcpy.c: Delete File.
3036
3037 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3038
3039 * sysdeps/s390/ifunc-memcmp.h: New File.
3040 * sysdeps/s390/memcmp.S: Move to ...
3041 * sysdeps/s390/memcmp-z900.S ... here.
3042 Move implementations from memcmp-s390x.s to here.
3043 * sysdeps/s390/multiarch/memcmp-s390x.S: Delete File.
3044 * sysdeps/s390/multiarch/Makefile (sysdep_routines):
3045 Remove memcmp variants.
3046 * sysdeps/s390/Makefile (sysdep_routines):
3047 Add memcmp variants.
3048 * sysdeps/s390/multiarch/ifunc-impl-list.c
3049 (__libc_ifunc_impl_list): Adjust ifunc variants for
3050 memcmp.
3051 * sysdeps/s390/multiarch/memcmp.c: Move ifunc resolver
3052 to ...
3053 * sysdeps/s390/memcmp.c: ... here.
3054 Adjust ifunc variants for memcmp.
3055
3056 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3057
3058 * sysdeps/s390/s390-64/memcmp.S: Move to ...
3059 * sysdeps/s390/memcmp.S: ... here.
3060 Adjust to be usable for 31/64bit.
3061 * sysdeps/s390/s390-32/memcmp.S: Delete File.
3062 * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memcmp.
3063 * sysdeps/s390/s390-32/multiarch/Makefile (sysdep_routines):
3064 Remove memcmp.
3065 * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
3066 * sysdeps/s390/s390-64/multiarch/memcmp-s390x.S: Move to ...
3067 * sysdeps/s390/multiarch/memcmp-s390x.S: ... here.
3068 Adjust to be usable for 31/64bit.
3069 * sysdeps/s390/s390-32/multiarch/memcmp-s390.S: Delete File.
3070 * sysdeps/s390/s390-64/multiarch/memcmp.c: Move to ...
3071 * sysdeps/s390/multiarch/memcmp.c: ... here.
3072 * sysdeps/s390/s390-32/multiarch/memcmp.c: Delete File.
3073
3074 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3075
3076 * sysdeps/s390/s390-32/bzero.S: Delete file.
3077 * sysdeps/s390/s390-64/bzero.S: Likewise.
3078 * sysdeps/s390/Makefile (sysdep_routines): Add bzero.
3079 * sysdeps/s390/bzero.c: New file.
3080 * sysdeps/s390/memset-z900.S: Add bzero entry points.
3081 * sysdeps/s390/ifunc-memset.h: Add bzero function macros.
3082 * sysdeps/s390/multiarch/ifunc-impl-list.c
3083 (__libc_ifunc_impl_list): Add bzero ifunc variants.
3084
3085 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3086
3087 * sysdeps/s390/ifunc-memset.h: New File.
3088 * sysdeps/s390/memset.S: Move to ...
3089 * sysdeps/s390/memset-z900.S ... here.
3090 Move implementations from memset-s390x.s to here.
3091 * sysdeps/s390/multiarch/memset-s390x.S: Delete File.
3092 * sysdeps/s390/multiarch/Makefile (sysdep_routines):
3093 Remove memset variants.
3094 * sysdeps/s390/Makefile (sysdep_routines):
3095 Add memset variants.
3096 * sysdeps/s390/multiarch/ifunc-impl-list.c
3097 (__libc_ifunc_impl_list): Adjust ifunc variants for
3098 memset.
3099 * sysdeps/s390/multiarch/memset.c: Move ifunc resolver
3100 to ...
3101 * sysdeps/s390/memset.c: ... here.
3102 Adjust ifunc variants for memset.
3103
3104 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3105
3106 * sysdeps/s390/s390-64/memset.S: Move to ...
3107 * sysdeps/s390/memset.S: ... here.
3108 Adjust to be usable for 31/64bit.
3109 * sysdeps/s390/s390-32/memset.S: Delete File.
3110 * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memset.
3111 * sysdeps/s390/s390-32/multiarch/Makefile (sysdep_routines):
3112 Remove memset.
3113 * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
3114 * sysdeps/s390/s390-64/multiarch/memset-s390x.S: Move to ...
3115 * sysdeps/s390/multiarch/memset-s390x.S: ... here.
3116 Adjust to be usable for 31/64bit.
3117 * sysdeps/s390/s390-32/multiarch/memset-s390.S: Delete File.
3118 * sysdeps/s390/s390-64/multiarch/memset.c: Move to ...
3119 * sysdeps/s390/multiarch/memset.c: ... here.
3120 * sysdeps/s390/s390-32/multiarch/memset.c: Delete File.
3121
3122 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3123
3124 * sysdeps/s390/multiarch/ifunc-resolve.h
3125 (s390_libc_ifunc_init, s390_libc_ifunc,
3126 s390_vx_libc_ifunc2_redirected): Use hwcap instead of dl_hwcap.
3127
3128 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3129
3130 * config.h.in (HAVE_S390_MIN_Z10_ZARCH_ASM_SUPPORT): New undefine.
3131 * sysdeps/s390/configure.ac: Add check for z10 support.
3132 * sysdeps/s390/configure: Regenerated.
3133
3134 2018-12-18 H.J. Lu <hongjiu.lu@intel.com>
3135
3136 * sysdeps/i386/atomic-machine.h: Merged with ...
3137 * sysdeps/x86_64/atomic-machine.h: To ...
3138 * sysdeps/x86/atomic-machine.h: This. New file.
3139
3140 2018-12-18 Florian Weimer <fweimer@redhat.com>
3141
3142 Rewrite locale/gen-translit.pl in Python.
3143 * locale/Makefile (generated): Add C-translit.h.
3144 (before-compile): Add $(objpfx)C-translit.h.
3145 (C-translit.h): Move to $(objpfx). Create target directory.
3146 Build using Python script.
3147 * locale/gen-translit.py: New file.
3148 * locale/gen-translit.pl: Remove file.
3149 * locale/C-translit.h.in: Change comment character to '#' for
3150 easier parsing without a C preprocessor.
3151 * locale/C-translit.h: Remove generated file.
3152 * manual/install.texi (Tools for Compilation): Do not mention
3153 C-translit.h.
3154 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps):
3155 Remove locale/C-translit.h.
3156 * scripts/update-copyrights: Likewise.
3157 * INSTALL: Regenerate.
3158
3159 2018-12-18 Florian Weimer <fweimer@redhat.com>
3160
3161 [BZ #23995]
3162 * localedata/locales/bi_VU: Remove executable bit from file.
3163
3164 2018-12-17 Albert ARIBAUD <albert.aribaud@3adev.fr>
3165
3166 * include/time.h
3167 (__localtime64): Add.
3168 * manual/maint.texi: Document Y2038 symbol handling.
3169 * time/localtime.c
3170 (__localtime64): Add.
3171 [__TIMESIZE != 64] (__localtime): Turn into a wrapper.
3172
3173 2018-12-17 Joseph Myers <joseph@codesourcery.com>
3174
3175 * sysdeps/unix/sysv/linux/ia64/sysdep.h (ASM_CLOBBERS_6_COMMON):
3176 Do not clobber r12.
3177
3178 * scripts/glibcextract.py (compare_macro_consts): Take parameters
3179 to allow extra macros from first or second sources.
3180 * sysdeps/unix/sysv/linux/tst-mman-consts.py: New file.
3181 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
3182 (tests-special): Add $(objpfx)tst-mman-consts.out.
3183 ($(objpfx)tst-mman-consts.out): New makefile target.
3184
3185 2018-12-17 Mao Han <han_mao@c-sky.com>
3186
3187 * sysdeps/unix/sysv/linux/Makefile: Add statx_cp.c.
3188 * sysdeps/unix/sysv/linux/fxstat64.c: Add conditionals for kernel
3189 without stat64 system call support.
3190 * sysdeps/unix/sysv/linux/fxstatat64.c: Likewise.
3191 * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstat.c: Likewise.
3192 * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstatat.c: Likewise.
3193 * sysdeps/unix/sysv/linux/generic/wordsize-32/lxstat.c: Likewise.
3194 * sysdeps/unix/sysv/linux/generic/wordsize-32/lxstat64.c: Likewise.
3195 * sysdeps/unix/sysv/linux/generic/wordsize-32/xstat.c: Likewise.
3196 * sysdeps/unix/sysv/linux/generic/wordsize-32/xstat64.c: Likewise.
3197 * sysdeps/unix/sysv/linux/mips/mips64/statx_cp.c: New file.
3198 * sysdeps/unix/sysv/linux/statx_cp.c: Likewise.
3199 * sysdeps/unix/sysv/linux/statx_cp.h: Likewise.
3200 * sysdeps/unix/sysv/linux/wordsize-64/statx_cp.c: Likewise.
3201
3202 2018-12-15 Paul Eggert <eggert@cs.ucla.edu>
3203
3204 regex: fix storage-exhaustion error
3205 [BZ #18040]
3206 * posix/regexec.c (get_subexp):
3207 Do not continue if storage is exhausted.
3208
3209 2018-12-15 Assaf Gordon <assafgordon@gmail.com>
3210
3211 regex: fix heap-use-after-free error
3212 [BZ #18040]
3213 Problem reported by Saito Takaaki <tails.saito@gmail.com> in
3214 https://debbugs.gnu.org/32592
3215 Call stack get_subexp->get_subexp_sub->clean_state_log_if_needed may
3216 call extend_buffers which reallocates the re_string_t internal buffer.
3217 Local variable 'buf' was not updated in such case, resulting in
3218 use-after-free.
3219 * posix/regexec.c (get_subexp): Update 'buf' after call to
3220 get_subexp_sub.
3221
3222 2018-12-15 Florian Weimer <fweimer@redhat.com>
3223
3224 * support/blob_repeat.c (check_mul_overflow_size_t): New function.
3225 (minimum_stride_size): Use it.
3226 (support_blob_repeat_allocate): Likewise.
3227
3228 2018-12-14 Joseph Myers <joseph@codesourcery.com>
3229
3230 * sysdeps/x86/fpu/bits/mathinline.h (asinh): Remove inline
3231 definition.
3232 (acosh): Likewise.
3233 (atanh): Likewise.
3234
3235 2018-12-14 Florian Weimer <fweimer@redhat.com>
3236
3237 * manual/process.texi (Process Creation Concepts): Remove
3238 documentation of process (ID) lifetime. List more process
3239 creation functions. Reference Process Identification section.
3240 (Process Identification): Add information about process ID
3241 lifetime. Describe Linux thread/task IDs.
3242 * manual/signal.texi (Signaling Another Process): Mention that the
3243 signal is always sent to the process.
3244
3245 2018-12-14 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3246
3247 * misc/Makefile (tests): Remove tst-efgcvt. Add tst-dbl-efgcvt
3248 and tst-ldbl-efgcvt.
3249 * misc/tst-efgcvt.c: Renamed to misc/tst-efgcvt-template.c.
3250 * misc/tst-efgcvt-template.c: Renamed from misc/tst-efgcvt.c.
3251 (struct testcase, efcvt_func, efcvt_r_func, ecvt_tests)
3252 (fcvt_tests, output_error, output_r_error, do_test): Use the
3253 macros defined in tst-dbl-efgcvt.c and tst-ldbl-efgcvt.c to:
3254 select the type of floating-point variables and arguments; to
3255 produce extra tests for double and conversion specifiers for
3256 printf; and to set the names of called functions.
3257 * misc/tst-dbl-efgcvt.c: New file that defines the macros used
3258 in tst-efgcvt-template.c.
3259 * misc/tst-ldbl-efgcvt.c: Likewise.
3260
3261 2018-12-14 Stefan Liebler <stli@linux.ibm.com>
3262
3263 * nss/Makefile (tst-nss-test3.out): New rule.
3264
3265 2018-12-13 Joseph Myers <joseph@codesourcery.com>
3266
3267 * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Do not
3268 clobber sp.
3269
3270 2018-12-13 fanjinke <fanjinke@hygon.cn>
3271
3272 * sysdeps/x86/cpu-features.c (init_cpu_features): Check for
3273 "HygonGenuine".
3274
3275 2018-12-13 Andreas Schwab <schwab@suse.de>
3276
3277 [BZ #23861]
3278 * nptl/pthread_rwlock_common.c: Reindent. Fix typos.
3279 (__pthread_rwlock_rdlock_full): Update expected value for
3280 __readers while waiting on PTHREAD_RWLOCK_RWAITING.
3281 * nptl/tst-rwlock-pwn.c: New file.
3282 * nptl/Makefile (tests): Add tst-rwlock-pwn.
3283
3284 2018-12-12 Joseph Myers <joseph@codesourcery.com>
3285
3286 * sysdeps/x86/fpu/bits/mathinline.h (hypot): Remove inline
3287 definition.
3288
3289 2018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
3290
3291 * benchtests/scripts/compare_bench.py (do_compare): write to
3292 stderr in casestat is not present.
3293 * benchtests/scripts/compare_bench.py (plot_graphs): write to
3294 stderr in case timings field is not present. Also string showing
3295 the output filename goes into the stderr.
3296
3297 2018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
3298
3299 * benchtests/scripts/compare_bench.py (do_compare): Catch KeyError
3300 and ZeroDivisorError exceptions.
3301 * benchtests/scripts/compare_bench.py (compare_runs): Use stats
3302 argument to loop through user provided statistics.
3303 * benchtests/scripts/compare_bench.py (main): Include the --stats
3304 argument.
3305
3306 2018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
3307
3308 * benchtests/scripts/compare_bench.py (compare_runs): Continue
3309 instead of return.
3310
3311 2018-12-12 Florian Weimer <fweimer@redhat.com>
3312
3313 * sysdeps/posix/timespec_get.c: Add missing “any later version”
3314 clause to copyright header.
3315
3316 2018-12-12 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
3317
3318 [BZ #23614]
3319 * sysdeps/powerpc/powerpc64/addmul_1.S (FUNC): Add CFI offset for
3320 registers saved in the stack frame.
3321 * sysdeps/powerpc/powerpc64/lshift.S (__mpn_lshift): Likewise.
3322 * sysdeps/powerpc/powerpc64/mul_1.S (__mpn_mul_1): Likewise.
3323
3324 2018-12-11 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3325
3326 * include/bits/monetary-ldbl.h: New file.
3327 * include/bits/printf-ldbl.h: Likewise.
3328 * include/bits/stdio-ldbl.h: Likewise.
3329 * include/bits/stdlib-ldbl.h: Likewise.
3330 * include/bits/syslog-ldbl.h: Likewise.
3331 * include/bits/wchar-ldbl.h: Likewise.
3332
3333 2018-12-11 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3334
3335 * libio/libio.h: Remove redirection for _IO_vfprintf.
3336
3337 2018-12-11 Andreas Schwab <schwab@suse.de>
3338
3339 * Makerules: Remove all references to abilist-pattern.
3340 (update-all-abi): Simplify find expression.
3341
3342 2018-12-11 Szabolcs Nagy <szabolcs.nagy@arm.com>
3343
3344 [BZ #23961]
3345 * math/auto-libm-test-in: Add new test case.
3346 * math/auto-libm-test-out-pow: Regenerated.
3347 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Fix overflow check.
3348
3349 2018-12-10 DJ Delorie <dj@redhat.com>
3350
3351 [BZ #23948]
3352 * support/test-container.c: Move postclean step to before we
3353 change namespaces.
3354
3355 2018-12-10 Joseph Myers <joseph@codesourcery.com>
3356
3357 * scripts/gen-as-const.py (main): Handle --python option.
3358 * scripts/gen-py-const.awk: Remove.
3359 * Makerules (py-const-script): Use gen-as-const.py.
3360 ($(py-const)): Likewise.
3361 * nptl/nptl-printers.py (MutexPrinter.read_status_no_robust): Mask
3362 with 0xffffffff together with ~(PTHREAD_MUTEX_PRIO_CEILING_MASK).
3363 (MutexAttributesPrinter.read_values): Mask with 0xffffffff
3364 together with ~PTHREAD_MUTEXATTR_FLAG_BITS and
3365 ~PTHREAD_MUTEX_NO_ELISION_NP.
3366 * manual/README.pretty-printers: Update reference to
3367 gen-py-const.awk.
3368
3369 * scripts/glibcextract.py: New file.
3370 * scripts/gen-as-const.py: Do not import os.path, re, subprocess
3371 or tempfile. Import glibcexctract.
3372 (compute_c_consts): Remove. Moved to glibcextract.py.
3373 (gen_test): Update reference to compute_c_consts.
3374 (main): Likewise.
3375 * sysdeps/unix/sysv/linux/tst-signal-numbers.py: New file.
3376 * sysdeps/unix/sysv/linux/tst-signal-numbers.sh: Remove.
3377 * sysdeps/unix/sysv/linux/Makefile
3378 ($(objpfx)tst-signal-numbers.out): Use tst-signal-numbers.py.
3379 Redirect stderr as well as stdout.
3380
3381 2018-12-10 Rafael Ávila de Espíndola <rafael@espindo.la>
3382
3383 [BZ #19767]
3384 * sysdeps/unix/sysv/linux/mips/init-first.c: Remove #ifdef SHARED.
3385 * sysdeps/unix/sysv/linux/mips/libc-vdso.h: Remove #ifdef SHARED.
3386 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h: Define
3387 ALWAYS_USE_VSYSCALL.
3388 * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: Define
3389 ALWAYS_USE_VSYSCALL.
3390 * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: Define
3391 ALWAYS_USE_VSYSCALL.
3392
3393 2018-12-10 Florian Weimer <fweimer@redhat.com>
3394
3395 [BZ #23972]
3396 * sysdeps/unix/sysv/linux/getdents64.c (handle_overflow): Check
3397 offset instead of count for clarity. Fix typo in comment.
3398 (__old_getdents64): Keep track of previous offset. Use it to call
3399 handle_overflow.
3400 * sysdeps/unix/sysv/linux/tst-readdir64-compat.c (do_test): Check
3401 that d_off is never zero.
3402
3403 2018-12-10 Andreas Schwab <schwab@suse.de>
3404
3405 * sysdeps/unix/sysv/linux/powerpc/powerpc64/*-le.abilist: Move to
3406 sysdeps/unix/sysv/linux/powerpc/powerpc64/le/*.abilist.
3407 * sysdeps/unix/sysv/linux/powerpc/powerpc64/*.abilist: Move to
3408 sysdeps/unix/sysv/linux/powerpc/powerpc64/be/*.abilist.
3409 * sysdeps/powerpc/Makefile (abilist-pattern): Don't define.
3410
3411 2018-12-10 Joseph Myers <joseph@codesourcery.com>
3412
3413 * timezone/private.h: Update from tzcode 2018g.
3414 * timezone/tzfile.h: Likewise.
3415 * timezone/tzselect.ksh: Likewise.
3416 * timezone/zdump.c: Likewise.
3417 * timezone/zic.c: Likewise.
3418
3419 2018-12-08 Paul Pluzhnikov <ppluzhnikov@google.com>
3420
3421 [BZ #23490]
3422 * sysdeps/unix/sysv/linux/x86/tst-cet-property-2.c
3423 (do_test): Adjust buffer size and fix format.
3424
3425 2018-12-07 DJ Delorie <dj@redhat.com>
3426
3427 [BZ #23907]
3428 * malloc/tst-tcfree3.c: New.
3429 * malloc/Makefile: Add it.
3430
3431 2018-12-07 H.J. Lu <hongjiu.lu@intel.com>
3432
3433 * include/sched.h (__getcpu): Don't use __typeof__ (getcpu).
3434
3435 2018-12-07 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3436
3437 * libio/libioP.h (SCANF_LDBL_USES_FLOAT128): New macro to be
3438 used as a mask for the mode argument of __vfscanf_internal and
3439 __vfwscanf_internal.
3440 * stdio-common/vfscanf-internal.c
3441 [defined COMPILE_WSCANF && __HAVE_FLOAT128_UNLIKE_LDBL]
3442 (__strtof128_internal): Define to __wcstof128_internal.
3443 [__HAVE_FLOAT128_UNLIKE_LDBL] (__vfscanf_internal): Call
3444 __strtof128_internal or __wcstof128_internal when the format of
3445 long double is the same as _Float128.
3446
3447 2018-12-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
3448
3449 * include/unistd.h (__confstr): Add prototype and hidden prototype.
3450 * posix/confstr.c (confstr): Rename to __confstr.
3451 (__confstr): Add hidden def.
3452 (confstr): Add weak alias for __confstr.
3453 * sysdeps/mach/hurd/spawni.c (__spawni): Call __confstr instead of
3454 confstr.
3455
3456 2018-12-07 H.J. Lu <hongjiu.lu@intel.com>
3457
3458 * NEWS: Mention getcpu.
3459 * include/sched.h (__getcpu): New libc_hidden_proto.
3460 * manual/resource.texi: Document getcpu.
3461 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add getcpu.
3462 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.29): Add getcpu.
3463 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add getcpu.
3464 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
3465 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
3466 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
3467 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
3468 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
3469 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
3470 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
3471 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
3472 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
3473 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
3474 Likewise.
3475 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
3476 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
3477 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
3478 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
3479 Likewise.
3480 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
3481 Likewise.
3482 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
3483 Likewise.
3484 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
3485 Likewise.
3486 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
3487 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
3488 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
3489 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
3490 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
3491 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
3492 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
3493 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
3494 * sysdeps/unix/sysv/linux/bits/sched.h (getcpu): New prototype.
3495 * sysdeps/unix/sysv/linux/getcpu.c: New file.
3496 * sysdeps/unix/sysv/linux/tst-skeleton-affinity.c (test_size):
3497 Also check getcpu.
3498
3499 2018-12-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
3500
3501 * sysdeps/mach/hurd/spawni.c (child_lookup_under, child_fchdir): New
3502 functions.
3503 (__spawni): Handle spawn_do_fchdir by calling child_fchdir.
3504
3505 2018-12-07 Florian Weimer <fweimer@redhat.com>
3506
3507 [BZ #17405]
3508 * posix/Makefile (routines): Add spawn_faction_addfchdir.
3509 * posix/Versions (GLIBC_2.29): Export
3510 posix_spawn_file_actions_addfchdir_np.
3511 * posix/spawn.h (posix_spawn_file_actions_addfchdir_np): Declare.
3512 * posix/spawn_faction_destroy.c
3513 (__posix_spawn_file_actions_destroy): Handle spawn_do_fchdir.
3514 * posix/spawn_int.h (struct __spawn_action): Add spawn_do_fchdir
3515 and the field action.fchdir_action.
3516 * posix/tst-spawn-chdir.c (add_chdir): New function.
3517 (do_test): Add do_fchdir loop. Call add_chdir.
3518 * sysdeps/posix/spawni.c (__spawni_child): Handle spawn_do_fchdir.
3519 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
3520 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.29): Add
3521 posix_spawn_file_actions_addfchdir_np.
3522 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.29):
3523 Likewise.
3524 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.29):
3525 Likewise.
3526 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.29): Likewise.
3527 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.29):
3528 Likewise.
3529 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.29):
3530 Likewise.
3531 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.29):
3532 Likewise.
3533 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.29):
3534 Likewise.
3535 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.29):
3536 Likewise.
3537 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.29):
3538 Likewise.
3539 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
3540 (GLIBC_2.29): Likewise.
3541 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
3542 (GLIBC_2.29): Likewise.
3543 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
3544 (GLIBC_2.29): Likewise.
3545 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
3546 (GLIBC_2.29): Likewise.
3547 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.29):
3548 Likewise.
3549 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
3550 (GLIBC_2.29): Likewise.
3551 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
3552 (GLIBC_2.29): Likewise.
3553 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
3554 (GLIBC_2.29): Likewise.
3555 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
3556 (GLIBC_2.29): Likewise.
3557 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.29):
3558 Likewise.
3559 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.29):
3560 Likewise.
3561 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.29):
3562 Likewise.
3563 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.29): Likewise.
3564 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.29):
3565 Likewise.
3566 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.29):
3567 Likewise.
3568 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.29):
3569 Likewise.
3570 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.29):
3571 Likewise.
3572
3573 2018-12-06 Joseph Myers <joseph@codesourcery.com>
3574
3575 * manual/texinfo.tex: Update to version 2018-09-21.20 with
3576 trailing whitespace removed.
3577 * scripts/config.guess: Update to version 2018-11-28.
3578 * scripts/config.sub: Update to version 2018-11-28.
3579 * scripts/install-sh: Update to version 2018-03-11.20.
3580 * scripts/mkinstalldirs: Update to version 2018-03-07.03.
3581 * scripts/move-if-change: Update to version 2018-03-07 03:47.
3582
3583 2018-12-07 Florian Weimer <fweimer@redhat.com>
3584
3585 [BZ #23927]
3586 CVE-2018-19591
3587 * inet/tst-if_index-long.c: New file.
3588 * inet/Makefile (tests): Add tst-if_index-long.
3589
3590 2018-12-07 Florian Weimer <fweimer@redhat.com>
3591
3592 * support/check.h (support_record_failure_is_failed): Declare.
3593 * support/descriptors.h: New file.
3594 * support/support_descriptors.c: Likewise.
3595 * support/tst-support_descriptors.c: Likewise.
3596 * support/support_record_failure.c
3597 (support_record_failure_is_failed): New function.
3598 * support/Makefile (libsupport-routines): Add support_descriptors.
3599 (tests): Add tst-support_descriptors.
3600
3601 2018-12-05 Zack Weinberg <zackw@panix.com>
3602 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3603
3604 * stdio-common/vfprintf-internal.c
3605 (__vfprintf_internal, __vfwprintf_internal): Don't use __ldbl_is_dbl.
3606 * sysdeps/generic/math_ldbl_opt.h: Remove __ldbl_is_dbl.
3607 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Remove __ldbl_is_dbl
3608 and __no_long_double.
3609 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.c: Remove file.
3610 * sysdeps/ieee754/ldbl-opt/Makefile (routines): Remove math_ldbl_opt.
3611 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Remove
3612 libc_hidden_proto and libc_hidden_def from all __nldbl_*printf*
3613 and __nldbl_*syslog* functions.
3614 (__nldbl_cleanup, set_no_long_double, clear_no_long_double): Remove.
3615 (__nldbl___asprintf, __nldbl_dprintf, __nldbl_fprintf)
3616 (__nldbl_fwprintf, __nldbl_printf, __nldbl_sprintf)
3617 (__nldbl_vfprintf, __nldbl___vsprintf, __nldbl_obstack_vprintf)
3618 (__ndlbl_obstack_printf, __nldbl_snprintf, __nldbl_swprintf)
3619 (__nldbl_vasprintf, __nldbl_vdprintf, __nldbl_vfwprintf)
3620 (__nldbl_vprintf, __nldbl_vsnprintf, __ndlbl_vswprintf)
3621 (__nldbl_vwprintf, __nldbl_wprintf):
3622 Directly call the appropriate __v*printf_internal routine, passing
3623 PRINTF_LDBL_IS_DBL. Do not mess with __no_long_double. Normalize
3624 variable names.
3625 (__nldbl___fprintf_chk, __nldbl___fwprintf_chk)
3626 (__nldbl___printf_chk, __nldbl___snprintf_chk)
3627 (__nldbl___sprintf_chk, __nldbl___swprintf_chk)
3628 (__nldbl___vfprintf_chk, __nldbl___vfwprintf_chk)
3629 (__nldbl___vprintf_chk, __nldbl___vsnprintf_chk)
3630 (__nldbl___vsprintf_chk, __nldbl___vswprintf_chk)
3631 (__nldbl___vwprintf_chk, __nldbl___wprintf_chk)
3632 (__nldbl___vasprintf_chk, __nldbl___asprintf_chk)
3633 (__nldbl___vdprintf_chk, __nldbl___dprintf_chk)
3634 (__nldbl___obstack_vprintf_chk, __nldbl___obstack_printf_chk):
3635 Likewise, and also pass PRINTF_FORTIFY when appropriate.
3636 (__nldbl_syslog, __nldbl_vsyslog):
3637 Directly call __vsyslog_internal, passing PRINTF_LDBL_IS_DBL.
3638 (__nldbl_syslog_chk): Likewise, and also pass PRINTF_FORTIFY when
3639 appropriate.
3640 (__nldbl_vsyslog_chk): Likewise, and also pass PRINTF_FORTIFY when
3641 appropriate.
3642
3643 2018-12-05 Zack Weinberg <zackw@panix.com>
3644 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3645
3646 [BZ #11319]
3647 * libio/iovsprintf.c (_IO_str_chk_overflow, libio_vtable):
3648 Moved here from debug/vsprintf_chk.c.
3649 (__vsprintf_internal): Add 'maxlen' argument. Change the setup
3650 and completion logic for the strfile to match exactly what
3651 __vsprintf_chk used to do, except, when maxlen is -1, pass -1 to
3652 _IO_str_init_static_internal instead of maxlen-1.
3653 (__vsprintf): Pass -1 as maxlen to __vsprintf_internal.
3654 * stdio-common/sprintf.c (__sprintf): Pass -1 as maxlen to
3655 __vsprintf_internal.
3656
3657 * debug/vsprintf_chk.c (__vsprintf_chk)
3658 * debug/sprintf_chk.c (__sprintf_chk):
3659 Directly call __vsprintf_internal, passing PRINTF_FORTIFY if
3660 'flags' argument is positive, and slen as maxlen. No need to lock
3661 the FILE and/or construct a temporary FILE. Minimize and normalize
3662 header inclusions and variable names. Do not libc_hidden_def anything.
3663
3664 * debug/asprintf_chk.c (__asprintf_chk)
3665 * debug/dprintf_chk.c (__dprintf_chk)
3666 * debug/fprintf_chk.c (__fprintf_chk)
3667 * debug/fwprintf_chk.c (__fwprintf_chk)
3668 * debug/printf_chk.c (__printf_chk)
3669 * debug/snprintf_chk.c (__snprintf_chk)
3670 * debug/swprintf_chk.c (__swprintf_chk)
3671 * debug/vasprintf_chk.c (__vasprintf_chk)
3672 * debug/vdprintf_chk.c (__vdprintf_chk)
3673 * debug/vfprintf_chk.c (__vfprintf_chk)
3674 * debug/vfwprintf_chk.c (__vfwprintf_chk)
3675 * debug/vprintf_chk.c (__vprintf_chk)
3676 * debug/vsnprintf_chk.c (__vsnprintf_chk)
3677 * debug/vswprintf_chk.c (__vswprintf_chk)
3678 * debug/vwprintf_chk.c (__vwprintf_chk)
3679 * debug/wprintf_chk.c (__wprintf_chk):
3680 Directly call the corresponding vxxprintf_internal function, passing
3681 PRINTF_FORTIFY if 'flag' argument is positive. No need to lock
3682 the FILE and/or construct a temporary FILE. Minimize and normalize
3683 header inclusions and variable names. Do not libc_hidden_def anything.
3684
3685 * debug/obprintf_chk.c (__obstack_printf_chk): Directly call
3686 __obstack_vprintf_internal.
3687 (__obstack_vprintf_chk): Convert into a wrapper that calls
3688 __obstack_vprintf_internal (these two functions already had the
3689 same code) and move to new file...
3690 * debug/vobprintf_chk.c (__obstack_vprintf_chk): ... here. New
3691 file.
3692 * debug/obprintf.c (__obstack_vprintf_internal): Remove the checking of
3693 the flags argument and the setting of _IO_FLAGS2_FORTIFY.
3694 * debug/Makefile (routines): Add vobprintf_chk.
3695
3696 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
3697 (__nldbl___vsprintf): Pass -1 as maxlen to __vsprintf_internal.
3698 (__nldbl___vfprintf_chk, __nldbl___vsnprintf_chk)
3699 (__nldbl___vsprintf_chk, __nldbl___vswprintf_chk)
3700 (__nldbl___vasprintf_chk, __nldbl___vdprintf_chk)
3701 (__nldbl___obstack_vfprintf_chk):
3702 Directly call the corresponding vxxprintf_internal function,
3703 passing PRINTF_FORTIFY if 'flag' argument is positive. If necessary,
3704 duplicate comparison of slen with 0 or maxlen from the corresponding
3705 non-__nldbl function.
3706
3707 * include/stdio.h (__vsnprintf_chk, __vfprintf_chk, __vasprintf_chk)
3708 (__vdprintf_chk, __obstack_vfprintf_chk): Remove libc_hidden_proto.
3709 * include/wchar.h (__vfwprintf_chk, __vswprintf_chk):
3710 Remove libc_hidden_proto.
3711
3712 * stdio-common/vfprintf-internal.c
3713 (__vfprintf_internal, __vfwprintf_internal):
3714 Do not check _IO_FLAGS2_FORTIFY.
3715 * libio/libio.h (_IO_FLAGS2_FORTIFY): Remove.
3716 * libio/libioP.h: Update prototype of __vsprintf_internal and add
3717 a comment explaining why it has the maxlen argument.
3718 (_IO_acquire_lock_clear_flags2_fct): Remove.
3719 (_IO_acquire_lock_clear_flags2): Remove.
3720 (_IO_release_lock): Remove conditional statement which will
3721 now never execute.
3722 (_IO_acquire_lock): Remove variable which is now unused.
3723 * sysdeps/generic/stdio-lock.h (_IO_acquire_lock_clear_flags2): Remove.
3724 * sysdeps/nptl/stdio-lock.h (_IO_acquire_lock_clear_flags2): Remove.
3725
3726 * stdio-common/Makefile (tests): Add tst-bz11319 and
3727 tst-bz11319-fortify2.
3728 (CFLAGS-tst-bz11319-fortify2.c): New macro.
3729 * stdio-common/tst-bz11319-fortify2.c: New file.
3730 * stdio-common/tst-bz11319.c: Likewise.
3731
3732 2018-12-05 Zack Weinberg <zackw@panix.com>
3733 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3734
3735 * misc/syslog.c: Include libioP.h, not iolibio.h.
3736 (__vsyslog_internal): New function with the former body of
3737 __vsyslog_chk; takes mode_flags argument same as
3738 __v*printf_internal. Call __vfprintf_internal directly.
3739
3740 (__vsyslog_chk): Now a wrapper around __vsyslog_internal.
3741 Remove libc_hidden_def.
3742 (__syslog, __syslog_chk): Use __vsyslog_internal.
3743 (__vsyslog): Move to just below __syslog. Use __vsyslog_internal.
3744
3745 * include/sys/syslog.h: Add multiple inclusion guard.
3746 Add prototype for __vsyslog_internal.
3747 Remove declaration and libc_hidden_proto for __vsyslog_chk.
3748
3749 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl___vsyslog_chk):
3750 Use __vsyslog_internal.
3751
3752 2018-12-05 Zack Weinberg <zackw@panix.com>
3753 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3754
3755 * libio/libioP.h (__vfprintf_internal, __vfwprintf_internal)
3756 (__vasprintf_internal, __vdprintf_internal, __obstack_vprintf_internal)
3757 (__vsprintf_internal, __vsnprintf_internal, __vswprintf_internal):
3758 New functions.
3759 (PRINTF_LDBL_IS_DBL, PRINTF_FORTIFY): New constants.
3760 (_IO_vasprintf, _IO_vdprintf, _IO_vsnprintf): Remove prototypes.
3761
3762 * stdio-common/vfprintf-internal.c: Rename from vfprintf.c.
3763 Include wctype.h here if COMPILE_WPRINTF is defined.
3764 Define __vfprintf_internal or __vfwprintf_internal, depending
3765 on COMPILE_WPRINTF.
3766 Temporarily, on entry to this function, update mode_flags
3767 according to the environmental settings corresponding to
3768 PRINTF_LDBL_IS_DBL and PRINTF_FORTIFY.
3769 Throughout, check mode_flags instead of __ldbl_is_dbl and
3770 _IO_FLAGS2_FORTIFY on the destination FILE.
3771 * stdio-common/vfwprintf-internal.c: Rename from vfwprintf.c.
3772 Include vfprintf-internal.c. Don't include wctype.h.
3773 * stdio-common/vfprintf.c: New file. Just define __vfprintf
3774 as a wrapper around __vfprintf_internal, with aliases _IO_vfprintf
3775 and vfprintf.
3776 * stdio-common/vfwprintf.c: New file. Just define __vfwprintf
3777 as a wrapper around __vfwprintf_internal, with aliases _IO_vfwprintf
3778 and vfwprintf.
3779 * stdio-common/Makefile: Add vfprintf-internal and vfwprintf-internal.
3780
3781 * libio/iovdprintf.c (_IO_vdprintf): Rename to __vdprintf_internal
3782 and add mode_flags argument; use __vfprintf_internal.
3783 (__vdprintf): New function. Alias vdprintf to this.
3784 * libio/iovsprintf.c (_IO_vsprintf, __vsprintf): Similarly.
3785 * libio/vasprintf.c (_IO_vasprintf, __vasprintf): Similarly.
3786 * libio/obprintf.c (_IO_obstack_vprintf, __obstack_vprintf): Similarly.
3787 (__obstack_printf): Use __obstack_printf_internal.
3788 * libio/vsnprintf.c (_IO_vsnprintf, ___vsnprintf): Similarly, with
3789 public aliases __vsnprintf and vsnprintf.
3790 Remove use of ldbl_hidden_def, since __vsnprintf is no longer
3791 called internally.
3792 * libio/vswprintf (_IO_vswprintf, __vswprintf): Similarly, with
3793 public aliases _IO_vsprintf and vsprintf.
3794 * libio/swprintf.c (__swprintf): Use __vswprintf_internal.
3795 * stdio-common/asprintf.c (__asprintf): Use __vasprintf_internal.
3796 * stdio-common/dprintf.c (__dprintf): Use __vdprintf_internal.
3797 * stdio-common/snprintf.c (__snprintf): Use __vsprintf_internal.
3798 * stdio-common/sprintf.c (__sprintf): Use __vsprintf_internal.
3799
3800 * debug/obprintf_chk.c, debug/vasprintf_chk.c, debug/vdprintf_chk.c
3801 * debug/vsnprintf_chk.c, debug/vsprintf_chk.c, hurd/vpprintf.c
3802 * stdio-common/fprintf.c, stdio-common/fxprintf.c
3803 * stdio-common/printf.c: Use __vfprintf_internal.
3804
3805 * debug/fwprintf_chk.c, debug/vfwprintf_chk.c, debug/vswprintf_chk.c
3806 * debug/vwprintf_chk.c, debug/wprintf_chk.c, libio/fwprintf.c
3807 * libio/vwprintf.c, libio/wprintf.c: Use __vfwprintf_internal.
3808
3809 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Use __vsprintf_internal,
3810 __obstack_vprintf_internal, __vasprintf_internal, __vdprintf_internal,
3811 __vsnprintf_internal, __vswprintf_internal, __vfprintf_internal, and
3812 __vfwprintf_internal.
3813
3814 * libio/libio.h: Remove libc_hidden_proto and declaration for
3815 _IO_vfprintf.
3816 Remove declaration of _IO_vfwprintf.
3817 * libio/iolibio.h: Remove libc_hidden_proto and declaration for
3818 _IO_vsprintf.
3819 Remove declarations of _IO_vswprintf, _IO_obstack_printf, and
3820 _IO_obstack_printf.
3821 * include/stdio.h: Add prototype for __vasprintf.
3822 (__vsnprintf): Remove declaration, because there are no more
3823 internal calls.
3824 * include/wchar.h (__vfwprintf, __vswprintf): Remove
3825 declaration, because there are no more internal calls.
3826
3827 * argp/argp-fmtstream.c (__argp_fmtstream_printf): Use
3828 __vsnprintf_internal, instead of _IO_vsnprintf.
3829 * argp/argp-help.c (__argp_error, __argp_failure): Use
3830 __vasprintf_internal, instead of _IO_vasprintf.
3831 * argp/argp-namefrob.h (__vsnprintf): Do not undefined then
3832 redefine, because there are no more internal calls.
3833
3834 2018-12-05 Zack Weinberg <zackw@panix.com>
3835 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3836
3837 * stdio-common/vfscanf-internal.c: Don't look at __ldbl_is_dbl.
3838 * sysdeps/ieee754/ldbl-opt/ndlbl-compat.c:
3839 Include libio/strfile.h instead of libioP.h.
3840 (__nldbl_IO_vfscanf, __ndlbl___vfscanf, __nldbl_sscanf)
3841 (__nldbl___vsscanf, __nldbl_vscanf, __nldbl_fscanf)
3842 (__nldbl_scanf, __nldbl_vfwscanf, __nldbl_swscanf)
3843 (__nldbl_vswscanf, __nldbl_vwscanf, __nldbl_fwscanf)
3844 (__nldbl_wscanf): Call __vfscanf_internal / __vfwscanf_internal
3845 directly, passing SCANF_LDBL_IS_DBL. Set up a strfile if
3846 necessary. Do not set __no_long_double. Normalize variable names.
3847 (__nldbl___isoc99_vfscanf, __nldbl___isoc99_sscanf)
3848 (__nldbl___isoc99_vsscanf, __nldbl___isoc99_vscanf)
3849 (__nldbl___isoc99_fscanf, __nldbl___isoc99_scanf)
3850 (__nldbl___isoc99_vfwscanf, __nldbl___isoc99_swscanf)
3851 (__nldbl___isoc99_vswscanf, __nldbl___isoc99_vwscanf)
3852 (__nldbl___isoc99_fwscanf, __nldbl___isoc99_wscanf):
3853 Call __vfscanf_internal / __vfwscanf_internal directly, passing
3854 SCANF_LDBL_IS_DBL | SCANF_ISOC99_A. Set up a strfile if necessary.
3855 Do not set __no_long_double. Normalize variable names.
3856
3857 2018-12-05 Zack Weinberg <zackw@panix.com>
3858 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3859
3860 * stdio-common/isoc99_scanf.c
3861 * stdio-common/isoc99_fscanf.c
3862 * stdio-common/isoc99_sscanf.c
3863 * stdio-common/isoc99_vscanf.c
3864 * stdio-common/isoc99_vfscanf.c
3865 * stdio-common/isoc99_vsscanf.c
3866 * wcsmbs/isoc99_wscanf.c
3867 * wcsmbs/isoc99_fwscanf.c
3868 * wcsmbs/isoc99_swscanf.c
3869 * wcsmbs/isoc99_vwscanf.c
3870 * wcsmbs/isoc99_vfwscanf.c
3871 * wcsmbs/isoc99_vswscanf.c:
3872 Pass SCANF_ISOC99_A to __vfscanf_internal and/or __vfwscanf_internal.
3873 Do not set _IO_FLAGS2_SCANF_STD on the FILE passed to that function.
3874 No need to lock and unlock the FILE passed to that function.
3875
3876 * stdio-common/vfscanf-internal.c
3877 (__vfscanf_internal, __vfwscanf_internal):
3878 Don't look at _IO_FLAGS2_SCANF_STD.
3879 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct)
3880 (_IO_release_lock): Don't clear _IO_FLAGS2_SCANF_STD.
3881 * libio/libio.h (_IO_FLAGS2_SCANF_STD): Delete.
3882
3883 2018-12-05 Zack Weinberg <zackw@panix.com>
3884 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3885
3886 * libio/libioP.h (SCANF_LDBL_IS_DBL, SCANF_ISOC99_A): New constants.
3887 (__vfscanf_internal, __vfwscanf_internal): New function prototypes.
3888 * libio/libio.h: Remove libc_hidden_proto for _IO_vfscanf.
3889 * libio/strfile.h: Add multiple inclusion guard.
3890 (_IO_strfile_read, _IO_strfile_readw): New inline functions.
3891
3892 * sysdeps/generic/math_ldbl_opt.h: Include shlib-compat.h, for
3893 consistency with the other version of this file.
3894 (ldbl_compat_symbol): New macro.
3895 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h (ldbl_compat_symbol):
3896 New macro.
3897
3898 * stdio-common/vfscanf-internal.c: Rename from vfscanf.c.
3899 Define __vfscanf_internal or __vfwscanf_internal, depending on
3900 COMPILE_WSCANF; don't define any other public symbols.
3901 Remove errval and code to set errp.
3902 Temporarily check __ldbl_is_dbl and _IO_FLAGS2_SCANF_STD as well
3903 as the mode_flags argument.
3904 (encode_error, conv_error, input_error): Don't set errval.
3905 * stdio-common/vfwscanf-internal.c: Rename from vfwscanf.c.
3906 Include vfscanf-internal.c.
3907 * stdio-common/vfscanf.c: New file defining the public entry
3908 point vfscanf, which calls __vfscanf_internal.
3909 * stdio-common/vfwscanf.c: New file defining the public entry
3910 point vfwscanf, which calls __vfwscanf_internal.
3911
3912 * stdio-common/iovfscanf.c: New file.
3913 * stdio-common/iovfwscanf.c: Likewise.
3914
3915 * stdio-common/Makefile (routines): Add vfscanf-internal,
3916 vfwscanf-internal, iovfscanf, iovfwscanf.
3917 * stdio-common/Versions: Mention GLIBC_2.29, so that
3918 it can be used in SHLIB_COMPAT expressions.
3919 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl__IO_vfscanf):
3920 Wrap definition and compat_symbol line in #if SHLIB_COMPAT.
3921 Call __vfscanf_internal, instead of _IO_vfscanf.
3922 (__nldbl___vfscanf): Call __vfscanf_internal, instead of
3923 _IO_vfscanf.
3924 (__nldbl_vfwscanf): Call __vfwscanf_internal, instead of
3925 _IO_vfwscanf.
3926
3927 * libio/iovsscanf.c: Clean up includes, when possible. Use
3928 _IO_strfile_read or _IO_strfile_readw, when needed. Call
3929 __vfscanf_internal or __vfwscanf_internal directly.
3930 * libio/iovswscanf.c: Likewise.
3931 * libio/swscanf.c: Likewise.
3932 * libio/vscanf.c: Likewise.
3933 * libio/vwscanf.c: Likewise.
3934 * libio/wscanf.c: Likewise.
3935 * stdio-common/isoc99_fscanf.c: Likewise.
3936 * stdio-common/isoc99_scanf.c: Likewise.
3937 * stdio-common/isoc99_sscanf.c: Likewise.
3938 * stdio-common/isoc99_vfscanf.c: Likewise.
3939 * stdio-common/isoc99_vscanf.c: Likewise.
3940 * stdio-common/isoc99_vsscanf.c: Likewise.
3941 * stdio-common/scanf.c: Likewise.
3942 * stdio-common/sscanf.c: Likewise.
3943 * wcsmbs/isoc99_fwscanf.c: Likewise.
3944 * wcsmbs/isoc99_swscanf.c: Likewise.
3945 * wcsmbs/isoc99_vfwscanf.c: Likewise.
3946 * wcsmbs/isoc99_vswscanf.c: Likewise.
3947 * wcsmbs/isoc99_vwscanf.c: Likewise.
3948 * wcsmbs/isoc99_wscanf.c: Likewise.
3949
3950 2018-12-05 Albert ARIBAUD <albert.aribaud@3adev.fr>
3951
3952 * include/time.h
3953 (__tz_compute): Replace time_t with __time64_t.
3954 (__tz_convert): Replace time_t* with __time64_t.
3955 (__offtime): Replace time_t* with __time64_t.
3956 * time/gmtime.c
3957 (__gmtime_r): Adjust call to __tz_convert.
3958 (gmtime): Likewise.
3959 * time/localtime.c
3960 (__localtime_r): Likewise.
3961 (localtime): Likewise.
3962 * time/offtime.c: Replace time_t with __time64_t.
3963 * time/tzset.c: Likewise.
3964
3965 2018-12-04 Joseph Myers <joseph@codesourcery.com>
3966
3967 * Makefile ($(objpfx)testroot.pristine/install.stamp): Do not run
3968 dynamic linker unless [$(run-built-tests) = yes].
3969
3970 2018-12-03 DJ Delorie <dj@delorie.com>
3971
3972 * support/test-container.c (check_for_unshare_hints): New.
3973 (main): Call it if unshare fails. Add support for "su" scriptlet
3974 command.
3975
3976 2018-12-03 Joseph Myers <joseph@codesourcery.com>
3977
3978 * scripts/gen-as-const.py (compute_c_consts): Take an argument
3979 'START' to indicate that start text should be output.
3980 (gen_test): Likewise.
3981 (main): Generate 'START' for first symbol or '--' line, or at end
3982 of input if not previously generated.
3983
3984 2018-12-03 Rafael Ávila de Espíndola <rafael@espindo.la>
3985
3986 [BZ #19767]
3987 * sysdeps/unix/sysv/linux/arm/init-first.c: Remove #ifdef SHARED.
3988 * sysdeps/unix/sysv/linux/arm/libc-vdso.h: Remove #ifdef SHARED.
3989 * sysdeps/unix/sysv/linux/arm/sysdep.h: Define
3990 ALWAYS_USE_VSYSCALL.
3991
3992 2018-12-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3993
3994 [BZ #23913]
3995 * sysdeps/posix/spawni.c (maybe_script_execute): Increment size of
3996 new_argv by one.
3997
3998 2018-12-03 Carlos O'Donell <carlos@redhat.com>
3999
4000 [BZ #23923]
4001 * locale/programs/localedef.c: Declare boolean hard_links default true.
4002 (options): Add --no-hard-links option.
4003 (parse_opt): Add OPT_NO_HARD_LINKS case and set hard_links to false.
4004 * locale/programs/localedef.h: Declare prototype for hard_links.
4005 * locale/programs/locfile.c (write_locale_data): Don't use hard
4006 links if hard_links is false.
4007
4008 2018-12-03 H.J. Lu <hongjiu.lu@intel.com>
4009
4010 * sysdeps/x86/cacheinfo.c (intel_check_word): Updated for
4011 cpu_features_basic.
4012 (__cache_sysconf): Likewise.
4013 (init_cacheinfo): Likewise.
4014 * sysdeps/x86/cpu-features.c (get_extended_indeces): Also
4015 populate COMMON_CPUID_INDEX_80000007 and
4016 COMMON_CPUID_INDEX_80000008.
4017 (get_common_indices): Also populate COMMON_CPUID_INDEX_D_ECX_1.
4018 Use CPU_FEATURES_CPU_P (cpu_features, XSAVEC) to check if
4019 XSAVEC is available. Set the bit_arch_XXX_Usable bits.
4020 (init_cpu_features): Use _Static_assert on
4021 index_arch_Fast_Unaligned_Load.
4022 __get_cpuid_registers and __get_arch_feature. Updated for
4023 cpu_features_basic. Set stepping in cpu_features.
4024 * sysdeps/x86/cpu-features.h: (FEATURE_INDEX_1): Changed to enum.
4025 (FEATURE_INDEX_2): New.
4026 (FEATURE_INDEX_MAX): Changed to enum.
4027 (COMMON_CPUID_INDEX_D_ECX_1): New.
4028 (COMMON_CPUID_INDEX_80000007): Likewise.
4029 (COMMON_CPUID_INDEX_80000008): Likewise.
4030 (cpuid_registers): Likewise.
4031 (cpu_features_basic): Likewise.
4032 (CPU_FEATURE_USABLE): Likewise.
4033 (bit_arch_XXX_Usable): Likewise.
4034 (cpu_features): Use cpuid_registers and cpu_features_basic.
4035 (bit_arch_XXX): Reweritten.
4036 (bit_cpu_XXX): Likewise.
4037 (index_cpu_XXX): Likewise.
4038 (reg_XXX): Likewise.
4039 * sysdeps/x86/tst-get-cpu-features.c: Include <stdio.h> and
4040 <support/check.h>.
4041 (CHECK_CPU_FEATURE): New.
4042 (CHECK_CPU_FEATURE_USABLE): Likewise.
4043 (cpu_kinds): Likewise.
4044 (do_test): Print vendor, family, model and stepping. Check
4045 HAS_CPU_FEATURE and CPU_FEATURE_USABLE.
4046 (TEST_FUNCTION): Removed.
4047 Include <support/test-driver.c> instead of
4048 "../../test-skeleton.c".
4049 * sysdeps/x86_64/multiarch/sched_cpucount.c (__sched_cpucount):
4050 Check POPCNT instead of POPCOUNT.
4051 * sysdeps/x86_64/multiarch/test-multiarch.c (do_test): Likewise.
4052
4053 2018-12-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
4054
4055 * scripts/gen-as-const.py (main): Avoid emitting empty line when
4056 there is no element in `consts'.
4057
4058 2018-12-01 Florian Weimer <fweimer@redhat.com>
4059
4060 * support/support_capture_subprocess.c
4061 (support_capture_subprocess): Check that pipe descriptors have
4062 expected values. Close original pipe descriptors in subprocess.
4063
4064 2018-12-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
4065
4066 [BZ #23032]
4067 * sysdeps/htl/pt-barrier-init.c (pthread_barrier_init): Fix comparing
4068 attr with __pthread_default_barrierattr.
4069 * sysdeps/htl/pt-cond-init.c (__pthread_cond_init): Fix comparing
4070 attr with __pthread_default_condattr.
4071 * sysdeps/htl/pt-mutex-init.c (_pthread_mutex_init): Fix comparing
4072 attr with __pthread_default_mutexattr.
4073 * sysdeps/htl/pt-rwlock-init.c (_pthread_rwlock_init): Fix comparing
4074 attr with __pthread_default_rwlockattr.
4075
4076 2018-12-01 Kemi Wang <kemi.wang@intel.com>
4077
4078 * manual/tunables.texi (POSIX Thread Tunables): New node.
4079 * nptl/Makefile (libpthread-routines): Add pthread_mutex_conf.
4080 * nptl/nptl-init.c: Include pthread_mutex_conf.h
4081 (__pthread_initialize_minimal_internal) [HAVE_TUNABLES]: Call
4082 __pthread_tunables_init.
4083 * nptl/pthreadP.h (MAX_ADAPTIVE_COUNT): Remove.
4084 (max_adaptive_count): Define.
4085 * nptl/pthread_mutex_conf.c: New file.
4086 * nptl/pthread_mutex_conf.h: New file.
4087 * sysdeps/generic/adaptive_spin_count.h: New file.
4088 * sysdeps/nptl/dl-tunables.list: New file.
4089 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Use
4090 max_adaptive_count () not MAX_ADAPTIVE_COUNT.
4091 * nptl/pthread_mutex_timedlock.c (__pthrad_mutex_timedlock):
4092 Likewise.
4093
4094 2018-12-01 Paul Pluzhnikov <ppluzhnikov@google.com>
4095
4096 [BZ #20544]
4097 * stdlib/cxa_atexit.c (__internal_atexit): assert func != NULL.
4098 * stdlib/on_exit.c (__on_exit): Likewise.
4099 * stdlib/Makefile (tests): Add tst-bz20544.
4100 * stdlib/tst-bz20544.c: New test.
4101
4102 2018-11-30 Rafael Ávila de Espíndola <rafael@espindo.la>
4103
4104 [BZ #19767]
4105 * sysdeps/unix/sysv/linux/i386/init-first.c: Don't check SHARED.
4106 * sysdeps/unix/sysv/linux/i386/sysdep.h (ALWAYS_USE_VSYSCALL):
4107 New.
4108
4109 2018-11-30 Florian Weimer <fweimer@redhat.com>
4110
4111 * scripts/abilist.awk: Print "0x0" for size 0. Handle "g"/"D".
4112 Extend error logging.
4113 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.2.6): Adjust _end
4114 symbol.
4115
4116 2018-11-30 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4117
4118 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Use
4119 __sigismember instead of sigismember.
4120 * sysdeps/posix/system.c [SIGCANCEL] (cancel_handler_args,
4121 cancel_handler): New definitions.
4122 (do_system): Use posix_spawn instead of fork and execl and remove
4123 reentracy code.
4124 * sysdeps/generic/not-errno.h (__kill_noerrno): New prototype.
4125 * sysdeps/unix/sysv/linux/not-errno.h (__kill_noerrno): Likewise.
4126 * sysdeps/unix/sysv/linux/ia64/system.c: Remove file.
4127 * sysdeps/unix/sysv/linux/s390/system.c: Likewise.
4128 * sysdeps/unix/sysv/linux/sparc/system.c: Likewise.
4129 * sysdeps/unix/sysv/linux/system.c: Likewise.
4130
4131 [BZ #22834]
4132 [BZ #17490]
4133 * NEWS: Add new semantic for atfork with popen and system.
4134 * libio/iopopen.c (_IO_new_proc_open): use posix_spawn instead of
4135 fork and execl.
4136
4137 2018-11-30 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
4138
4139 [BZ #23690]
4140 * elf/dl-runtime.c (_dl_profile_fixup): Guarantee memory
4141 modification order when accessing reloc_result->addr.
4142 * include/link.h (reloc_result): Add field init.
4143 * nptl/Makefile (tests): Add tst-audit-threads.
4144 (modules-names): Add tst-audit-threads-mod1 and
4145 tst-audit-threads-mod2.
4146 Add rules to build tst-audit-threads.
4147 * nptl/tst-audit-threads-mod1.c: New file.
4148 * nptl/tst-audit-threads-mod2.c: Likewise.
4149 * nptl/tst-audit-threads.c: Likewise.
4150 * nptl/tst-audit-threads.h: Likewise.
4151
4152 2018-11-30 Joseph Myers <joseph@codesourcery.com>
4153
4154 * scripts/gen-as-const.py: New file.
4155 * scripts/gen-as-const.awk: Remove.
4156 * Makerules ($(common-objpfx)%.h $(common-objpfx)%.h.d): Use
4157 gen-as-const.py.
4158 ($(objpfx)test-as-const-%.c): Likewise.
4159
4160 2018-11-29 H.J. Lu <hongjiu.lu@intel.com>
4161
4162 * elf/dl-exception.c: Include <_itoa.h>.
4163
4164 2018-11-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4165
4166 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Directly return value
4167 returned by __f_setlk.
4168
4169 2018-11-29 H.J. Lu <hongjiu.lu@intel.com>
4170 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4171
4172 * elf/Makefile (tests-internal): Add tst-create_format1.
4173 * elf/dl-exception.c (_dl_exception_create_format): Support
4174 %x, %lx and %zx.
4175 * elf/tst-create_format1.c: New file.
4176
4177 2018-11-29 Charles-Antoine Couret <charles-antoine.couret@essensium.com>
4178
4179 * argp/argp-fmtstream.c (__argp_fmtstream_update): Use [_LIBC]
4180 conditional on calls to _IO_fwide and putwc_unlocked. (Merge from
4181 gnulib.)
4182 * argp/argp-help.c (__argp_failure): Likewise.
4183
4184 2018-11-29 Mao Han <han_mao@c-sky.com>
4185
4186 * elf/elf.h (EM_CSKY, R_CKCORE_NONE, R_CKCORE_ADDR32)
4187 (R_CKCORE_PCRELIMM8BY4, R_CKCORE_PCRELIMM11BY2, R_CKCORE_PCREL32)
4188 (R_CKCORE_PCRELJSR_IMM11BY2, R_CKCORE_RELATIVE, R_CKCORE_COPY)
4189 (R_CKCORE_GLOB_DAT, R_CKCORE_JUMP_SLOT, R_CKCORE_GOTOFF)
4190 (R_CKCORE_GOTPC, R_CKCORE_GOT32, R_CKCORE_PLT32, R_CKCORE_ADDRGOT)
4191 (R_CKCORE_ADDRPLT, R_CKCORE_PCREL_IMM26BY2, R_CKCORE_PCREL_IMM16BY2)
4192 (R_CKCORE_PCREL_IMM16BY4, R_CKCORE_PCREL_IMM10BY2)
4193 (R_CKCORE_PCREL_IMM10BY4, R_CKCORE_ADDR_HI16, R_CKCORE_ADDR_LO16)
4194 (R_CKCORE_GOTPC_HI16, R_CKCORE_GOTPC_LO16, R_CKCORE_GOTOFF_HI16)
4195 (R_CKCORE_GOTOFF_LO16, R_CKCORE_GOT12, R_CKCORE_GOT_HI16)
4196 (R_CKCORE_GOT_LO16, R_CKCORE_PLT12, R_CKCORE_PLT_HI16)
4197 (R_CKCORE_PLT_LO16, R_CKCORE_ADDRGOT_HI16, R_CKCORE_ADDRGOT_LO16)
4198 (R_CKCORE_ADDRPLT_HI16, R_CKCORE_ADDRPLT_LO16)
4199 (R_CKCORE_PCREL_JSR_IMM26BY2, R_CKCORE_TOFFSET_LO16)
4200 (R_CKCORE_DOFFSET_LO16, R_CKCORE_PCREL_IMM18BY2)
4201 (R_CKCORE_DOFFSET_IMM18, R_CKCORE_DOFFSET_IMM18BY2)
4202 (R_CKCORE_DOFFSET_IMM18BY4, R_CKCORE_GOT_IMM18BY4)
4203 (R_CKCORE_PLT_IMM18BY4, R_CKCORE_PCREL_IMM7BY4, R_CKCORE_TLS_LE32)
4204 (R_CKCORE_TLS_IE32, R_CKCORE_TLS_GD32, R_CKCORE_TLS_LDM32)
4205 (R_CKCORE_TLS_LDO32, R_CKCORE_TLS_DTPMOD32, R_CKCORE_TLS_DTPOFF32)
4206 (R_CKCORE_TLS_TPOFF32): New defines.
4207
4208 2018-11-29 Florian Weimer <fweimer@redhat.com>
4209
4210 * posix/Makefile (before-compile): Remove testcases.h and
4211 ptestcases.h.
4212 (generated): Add testcases.h and ptestcases.h.
4213 (testcases.h, ptestcases.h): Move to $(objpfx).
4214 (runtests.o): Add dependency on testcases.h.
4215 (runptests.o): Add dependency on ptestcases.h.
4216 * posix/testcases.h, posix/ptestcases.h: Remove files.
4217 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps): Do
4218 not touch posix/testcases.h and posix/ptestcases.h.
4219
4220 2018-11-28 Florian Weimer <fweimer@redhat.com>
4221
4222 support: Add signal support to support_capture_subprocess_check.
4223 * support/capture_subprocess.h (support_capture_subprocess_check):
4224 Adjust comment and rename parameter.
4225 * support/support_capture_subprocess_check.c
4226 (print_actual_status): New function.
4227 (support_capture_subprocess_check): Support negative
4228 status_or_signal. Call print_actual_status.
4229 * support/tst-support_capture_subprocess.c (do_test): Call
4230 support_capture_subprocess_check.
4231 * libio/tst-vtables-common.c (termination_status)
4232 (init_termination_status): Remove.
4233 (check_for_termination): Adjust support_capture_subprocess_check
4234 call.
4235 (do_test): Remove call to init_termination_status.
4236
4237 2018-11-28 Joseph Myers <joseph@codesourcery.com>
4238
4239 * scripts/build-many-glibcs.py (Glibc.build_glibc): Use original
4240 source directory instead of a copy.
4241 (CommandList.create_copy_dir): Remove.
4242
4243 2018-11-28 Stefan Liebler <stli@linux.ibm.com>
4244
4245 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
4246
4247 2018-11-28 Florian Weimer <fweimer@redhat.com>
4248
4249 * support/support.h (support_quote_string): Do not use str
4250 parameter name.
4251
4252 2018-11-27 Joseph Myers <joseph@codesourcery.com>
4253
4254 * sysdeps/mach/hurd/Makefile ($(common-objpfx)stamp-errnos): Use
4255 $(hurd-objpfx)bits/errno.h-tmp, not $(hurd)/bits/errno.h-tmp.
4256
4257 2018-11-27 Florian Weimer <fweimer@redhat.com>
4258
4259 * support/support.h (support_quote_string): Declare.
4260 * support/support_quote_string.c: New file.
4261 * support/tst-support_quote_string.c: Likewise.
4262 * support/Makefile (libsupport-routines): Add
4263 support_quote_string.
4264 (tests): Add tst-support_quote_string.
4265
4266 2018-11-27 Florian Weimer <fweimer@redhat.com>
4267
4268 [BZ #23927]
4269 CVE-2018-19591
4270 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex): Avoid
4271 descriptor leak in case of ENODEV error.
4272
4273 2018-11-27 Rafael Ávila de Espíndola <rafael@espindo.la>
4274
4275 [BZ #19767]
4276 * sysdeps/unix/sysv/linux/aarch64/init-first.c: Remove #ifdef SHARED.
4277 * sysdeps/unix/sysv/linux/aarch64/libc-vdso.h: Remove #ifdef SHARED.
4278 * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Define ALWAYS_USE_VSYSCALL.
4279
4280 2018-11-26 Carlos O'Donell <carlos@redhat.com>
4281
4282 * scripts/abilist.awk: Handle .tdata. Error for unknown combinations.
4283 Error for unknown lines.
4284
4285 2018-11-26 Joseph Myers <joseph@codesourcery.com>
4286
4287 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps):
4288 Touch additional files.
4289
4290 2018-11-26 Florian Weimer <fweimer@redhat.com>
4291
4292 [BZ #23907]
4293 * malloc/malloc.c (_int_free): Validate tc_idx before checking for
4294 double-frees.
4295
4296 2018-11-26 Rafael Ávila de Espíndola <rafael@espindo.la>
4297
4298 [BZ #19767]
4299 * sysdeps/unix/sysv/linux/powerpc/init-first.c: Remove #ifdef SHARED.
4300 * sysdeps/unix/sysv/linux/powerpc/libc-vdso.h: Remove #ifdef
4301 SHARED. Include sysdep.h.
4302 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Define
4303 ALWAYS_USE_VSYSCALL.
4304 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Define
4305 ALWAYS_USE_VSYSCALL.
4306
4307 2018-11-23 Rafael Ávila de Espíndola <rafael@espindo.la>
4308
4309 [BZ #19767]
4310 * nptl/Makefile (tests-static): Add tst-cond11-static.
4311 (tests): Likewise.
4312 * nptl/tst-cond11-static.c: New File.
4313 * sysdeps/unix/sysv/linux/Makefile (tests-static): Add
4314 tst-affinity-static.
4315 (tests): Likewise.
4316 * sysdeps/unix/sysv/linux/sysdep-vdso.h: Check USE_VSYSCALL
4317 instead of SHARED.
4318 * sysdeps/unix/sysv/linux/sysdep.h (ALWAYS_USE_VSYSCALL): New.
4319 (USE_VSYSCALL): Likewise.
4320 * sysdeps/unix/sysv/linux/tst-affinity-static.c: New file.
4321 * sysdeps/unix/sysv/linux/x86/libc-vdso.h: Check USE_VSYSCALL
4322 instead of SHARED.
4323 * sysdeps/unix/sysv/linux/x86_64/init-first.c: Don't check
4324 SHARED.
4325 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (ALWAYS_USE_VSYSCALL):
4326 New.
4327
4328 2018-11-23 Joseph Myers <joseph@codesourcery.com>
4329
4330 [BZ #23915]
4331 * sysdeps/unix/sysv/linux/arm/kernel-features.h
4332 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_COPY_FILE_RANGE):
4333 Undefine.
4334
4335 2018-11-23 H.J. Lu <hongjiu.lu@intel.com>
4336
4337 * sysdeps/x86/Makefile (tests): Add tst-cet-legacy-1a.
4338 (tst-cet-legacy-1a-ARGS): New.
4339 ($(objpfx)tst-cet-legacy-1a): New target.
4340 * sysdeps/x86/tst-cet-legacy-1a.c: New file.
4341
4342 2018-11-22 Joseph Myers <joseph@codesourcery.com>
4343
4344 * conform/conformtest.py (CompileSubTest.__init__): Set
4345 self.run_early to False.
4346 (ExecuteSubTest.__init__): Likewise.
4347 (HeaderTests.run): Try running all non-optional, non-XFAILed
4348 compilation tests in a single execution of the compiler.
4349
4350 * conform/conformtest.py (CompileSubTest): New class.
4351 (ExecuteSubTest): Likewise.
4352 (ElementTest.run): Rename to gen_subtests. Append tests to
4353 self.subtests instead of running them.
4354 (ConstantTest.run): Likewise.
4355 (SymbolTest.run): Likewise.
4356 (TypeTest.run): Likewise.
4357 (TagTest.run): Likewise.
4358 (FunctionTest.run): Likewise.
4359 (VariableTest.run): Likewise.
4360 (MacroFunctionTest.run): Likewise.
4361 (MacroStrTest.run): Likewise.
4362 (HeaderTests.handle_test_line): Generate subtests for tests.
4363 (HeaderTests.run): Run subtests for tests.
4364
4365 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
4366
4367 * math/Versions (GLIBC_2.29): Add pow.
4368 * math/w_pow_compat.c (__pow_compat): Change to versioned compat
4369 symbol.
4370 * math/w_pow.c: New file.
4371 * sysdeps/i386/fpu/w_pow.c: New file.
4372 * sysdeps/ia64/fpu/e_pow.S: Add versioned symbols.
4373 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Rename to __pow
4374 and add necessary aliases.
4375 * sysdeps/ieee754/dbl-64/w_pow.c: New file.
4376 * sysdeps/m68k/m680x0/fpu/w_pow.c: New file.
4377 * sysdeps/mach/hurd/i386/libm.abilist: Update.
4378 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
4379 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
4380 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
4381 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
4382 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
4383 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
4384 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
4385 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
4386 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
4387 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
4388 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
4389 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
4390 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
4391 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
4392 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
4393 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
4394 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
4395 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
4396 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
4397 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
4398 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
4399 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
4400 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
4401 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c (__ieee754_pow): Rename to
4402 __pow.
4403 * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c (__ieee754_pow): Likewise.
4404 * sysdeps/x86_64/fpu/multiarch/e_pow.c (__ieee754_pow): Likewise.
4405 * sysdeps/x86_64/fpu/multiarch/w_pow.c: New file.
4406
4407 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
4408
4409 * math/Versions (GLIBC_2.29): Add log2.
4410 * math/w_log2_compat.c (__log2_compat): Change to versioned compat
4411 symbol.
4412 * math/w_log2.c: New file.
4413 * sysdeps/i386/fpu/w_log2.c: New file.
4414 * sysdeps/ia64/fpu/e_log2.S: Add versioned symbols.
4415 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Rename to __log2
4416 and add necessary aliases.
4417 * sysdeps/ieee754/dbl-64/w_log2.c: New file.
4418 * sysdeps/m68k/m680x0/fpu/w_log2.c: New file.
4419 * sysdeps/mach/hurd/i386/libm.abilist: Update.
4420 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
4421 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
4422 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
4423 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
4424 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
4425 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
4426 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
4427 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
4428 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
4429 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
4430 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
4431 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
4432 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
4433 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
4434 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
4435 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
4436 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
4437 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
4438 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
4439 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
4440 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
4441 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
4442 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
4443
4444 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
4445
4446 * math/Versions (GLIBC_2.29): Add log.
4447 * math/w_log_compat.c (__log_compat): Change to versioned compat
4448 symbol.
4449 * math/w_log.c: New file.
4450 * sysdeps/i386/fpu/w_log.c: New file.
4451 * sysdeps/ia64/fpu/e_log.S: Update.
4452 * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Rename to __log
4453 and add necessary aliases.
4454 * sysdeps/ieee754/dbl-64/w_log.c: New file.
4455 * sysdeps/m68k/m680x0/fpu/w_log.c: New file.
4456 * sysdeps/mach/hurd/i386/libm.abilist: Update.
4457 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
4458 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
4459 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
4460 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
4461 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
4462 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
4463 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
4464 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
4465 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
4466 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
4467 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
4468 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
4469 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
4470 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
4471 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
4472 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
4473 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
4474 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
4475 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
4476 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
4477 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
4478 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
4479 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
4480 * sysdeps/x86_64/fpu/multiarch/e_log-avx.c (__ieee754_log): Rename to
4481 __log.
4482 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c (__ieee754_log): Likewise.
4483 * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c (__ieee754_log): Likewise.
4484 * sysdeps/x86_64/fpu/multiarch/e_log.c (__ieee754_log): Likewise.
4485 * sysdeps/x86_64/fpu/multiarch/w_log.c: New file.
4486
4487 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
4488
4489 * math/Versions (GLIBC_2.29): Add exp and exp2.
4490 * math/w_exp2_compat.c (__exp2_compat): Change to versioned compat
4491 symbol, handle NO_LONG_DOUBLE and LONG_DOUBLE_COMPAT explicitly.
4492 * math/w_exp_compat.c (__exp_compat): Likewise.
4493 * math/w_exp.c: New file.
4494 * math/w_exp2.c: New file.
4495 * sysdeps/i386/fpu/w_exp.c: New file.
4496 * sysdeps/i386/fpu/w_exp2.c: New file.
4497 * sysdeps/ia64/fpu/e_exp.S: Add versioned symbols.
4498 * sysdeps/ia64/fpu/e_exp2.S: Likewise.
4499 * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Rename to __exp
4500 and add necessary aliases.
4501 * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Rename to __exp2
4502 and add necessary aliases.
4503 * sysdeps/ieee754/dbl-64/w_exp.c: New file.
4504 * sysdeps/ieee754/dbl-64/w_exp2.c: New file.
4505 * sysdeps/m68k/m680x0/fpu/w_exp.c: New file.
4506 * sysdeps/m68k/m680x0/fpu/w_exp2.c: New file.
4507 * sysdeps/mach/hurd/i386/libm.abilist: Update.
4508 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
4509 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
4510 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
4511 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
4512 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
4513 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
4514 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
4515 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
4516 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
4517 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
4518 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
4519 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
4520 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
4521 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
4522 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
4523 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
4524 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
4525 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
4526 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
4527 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
4528 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
4529 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
4530 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
4531 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__exp1): Remove.
4532 (__ieee754_exp): Rename to __exp.
4533 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__exp1): Remove.
4534 (__ieee754_exp): Rename to __exp.
4535 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__exp1): Remove.
4536 (__ieee754_exp): Rename to __exp.
4537 * sysdeps/x86_64/fpu/multiarch/e_exp.c (__ieee754_exp): Rename to
4538 __exp.
4539 * sysdeps/x86_64/fpu/multiarch/w_exp.c: New file.
4540
4541 2018-11-20 DJ Delorie <dj@redhat.com>
4542
4543 * malloc/malloc.c (tcache_entry): Add key field.
4544 (tcache_put): Set it.
4545 (tcache_get): Likewise.
4546 (_int_free): Check for double free in tcache.
4547 * malloc/tst-tcfree1.c: New.
4548 * malloc/tst-tcfree2.c: New.
4549 * malloc/Makefile: Run the new tests.
4550 * manual/probes.texi: Document memory_tcache_double_free probe.
4551
4552 * dlfcn/dlerror.c (check_free): Prevent double frees.
4553
4554 2018-11-20 Wilco Dijkstra <wdijkstr@arm.com>
4555
4556 * sysdeps/aarch64/memset.S (MEMSET): Improve non-zero memset loop.
4557
4558 2018-11-20 Joseph Myers <joseph@codesourcery.com>
4559
4560 * conform/conformtest.py (ElementTest.run): Use unique identifiers
4561 in tests. Use names for format arguments.
4562 (ConstantTest.run): Likewise.
4563 (SymbolTest.run): Likewise.
4564 (TypeTest.run): Likewise.
4565 (TagTest.run): Likewise.
4566 (FunctionTest.run): Likewise.
4567 (VariableTest.run): Likewise.
4568 (MacroFunctionTest.run): Likewise.
4569 (MacroStrTest.run): Likewise.
4570 (HeaderTests.__init__): Set self.num_tests.
4571 (HeaderTests.handle_test_line): Set test.num. Increment
4572 self.num_tests.
4573
4574 2018-11-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
4575
4576 * sysdeps/mach/hurd/f_setlk.c: Include <unistd.h>.
4577 (__f_setlk): When whence is SEEK_CUR, use __lseek64 to convert it to
4578 SEEK_SET.
4579
4580 2018-11-19 Mao Han <han_mao@c-sky.com>
4581
4582 * scripts/config.guess: Update to version 2018-08-29.
4583 * scripts/config.sub: Update to version 2018-08-29.
4584
4585 2018-11-19 Florian Weimer <fweimer@redhat.com>
4586
4587 support: Print timestamps in timeout handler.
4588 * support/support_test_main.c (print_timestamp): New function.
4589 (signal_handler): Use it to print the termination time and the
4590 time of the last write to standard output.
4591
4592 2018-11-16 Zack Weinberg <zackw@panix.com>
4593 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4594
4595 * include/monetary.h (STRFMON_LDBL_IS_DBL): New constant.
4596 (__vstrfmon_l): Rename to __vstrfmon_l_internal and add flags
4597 argument.
4598 * stdlib/strfmon_l.c (__vstrfmon_l): Rename to __vstrfmon_l_internal
4599 and add flags argument. Check flags instead of __ldbl_is_dbl when
4600 deciding whether to set is_long_double.
4601 (__strfmon_l): Call __vstrfmon_l_internal instead of __vstrfmon_l,
4602 passing zero for flags argument.
4603 * stdlib/strfmon.c (strfmon): Same change as made to __strfmon_l.
4604
4605 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
4606 (__nldbl___vstrfmon, __nldbl___vstrfmon_l)
4607 (__nldbl_strfmon, __nldbl___strfmon_l): Call __vstrfmon_l_internal
4608 directly, passing STRFMON_LDBL_IS_DBL for flags argument. Normalize
4609 variable names. Remove libc_hidden_def/libc_hidden_proto from
4610 __nldbl___vstrfmon and __nldbl___vstrfmon_l, because they are no
4611 longer called from within the library.
4612 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Don't use NLDBL_DECL
4613 for __nldbl___vstrfmon_l, declare it explicitly.
4614
4615 * manual/locale.texi: Update a reference to vstrfmon_l in comments.
4616
4617 2018-11-15 Samuel Thibault <samuel.thibault@ens-lyon.org>
4618
4619 * sysdeps/mach/hurd/bits/fcntl.h (F_GETLK64, F_SETLK64, F_SETLKW64): New
4620 macros
4621 [__USE_FILE_OFFSET64] (F_GETLK, F_SETLK, F_SETLKW): Define to F_GETLK64,
4622 F_SETLK64, F_SETLKW64, respectively.
4623 * sysdeps/mach/hurd/f_setlk.c: New file.
4624 * sysdeps/mach/hurd/f_setlk.h: New file.
4625 * sysdeps/mach/hurd/Makefile [$(subdir) = io] (sysdeps_routines): Add
4626 f_setlk.
4627 * sysdeps/mach/hurd/fcntl.c: Include "f_setlk.h".h".
4628 (__libc_fcntl): Move non-flock operations to...
4629 * sysdeps/mach/hurd/vfcntl.c (__libc_vfcntl): ... New file.
4630 * sysdeps/mach/hurd/fcntl.c (fcntl64): Add missing alias.
4631
4632 2018-11-15 Paul Eggert <eggert@cs.ucla.edu>
4633
4634 mktime: DEBUG_MKTIME cleanup
4635 The DEBUG_MKTIME code no longer works in glibc or in Gnulib.
4636 And it’s no longer needed now that glibc and Gnulib both have
4637 their own testing mechanisms for mktime.
4638 * time/mktime.c (DEBUG_MKTIME): Remove. All uses removed.
4639
4640 mktime: fix non-EOVERFLOW errno handling
4641 [BZ#23789]
4642 mktime was not properly reporting failures when the underlying
4643 localtime_r fails with errno != EOVERFLOW; it incorrectly treated
4644 them like EOVERFLOW failures, and set errno to EOVERFLOW.
4645 The problem could happen on non-glibc platforms, with Gnulib.
4646 * time/mktime.c (guess_time_tm): Remove, replacing with ...
4647 (tm_diff): ... this simpler function, which does not change errno.
4648 All callers changed to deal with errno themselves.
4649 (ranged_convert, __mktime_internal): Return failure immediately if
4650 the underlying function reports any failure other than EOVERFLOW.
4651 (__mktime_internal): Set errno to EOVERFLOW if the spring-forward
4652 gap code fails.
4653
4654 mktime: fix bug with Y2038 DST transition
4655 [BZ#23789]
4656 * time/mktime.c (ranged_convert): On 32-bit platforms, don’t
4657 mishandle a DST transition that jumps over the Y2038 boundary.
4658 No such DST transitions are known so this is only a theoretical
4659 bug, but we might as well do things right.
4660
4661 mktime: make more room for overflow
4662 [BZ#23789]
4663 * time/mktime.c (long_int): Now 4⨯ int, not just 3⨯.
4664 This is so that we can add tm_diff results to a previous guess,
4665 which will be useful in a later patch.
4666
4667 mktime: simplify offset guess
4668 [BZ#23789]
4669 * time/mktime.c (__mktime_internal): Omit excess precision.
4670
4671 mktime: new test for mktime failure
4672 [BZ#23789]
4673 Based on a test suggested by Albert Aribaud in:
4674 https://www.sourceware.org/ml/libc-alpha/2018-10/msg00662.html
4675 * time/Makefile (tests): Add bug-mktime4.
4676 * time/bug-mktime4.c: New file.
4677
4678 mktime: fix EOVERFLOW bug
4679 [BZ#23789]
4680 * time/mktime.c [!_LIBC && !DEBUG_MKTIME]:
4681 Include libc-config.h, not config.h, for __set_errno.
4682 (guess_time_tm, __mktime_internal): Set errno to EOVERFLOW on overflow.
4683
4684 2018-11-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
4685
4686 * sysdeps/mach/hurd/dl-sysdep.c (check_no_hidden): Use
4687 __attribute_copy__ to copy attributes from name. Drop static qualifier
4688 to avoid warnings about leaf attribute not having effect on static
4689 functions.
4690
4691 2018-11-13 Florian Weimer <fweimer@redhat.com>
4692
4693 * malloc/malloc.c (fastbin_push_entry): New function.
4694 (fastbin_pop_entry): Likewise. Replaces REMOVE_FB.
4695 (REMOVE_FB): Remove macro.
4696 (_int_malloc): Use fastbin_pop_entry and reindent.
4697 (_int_free): Use fastbin_push_entry.
4698 (malloc_consolidate): Use atomic_exchange_acquire.
4699
4700 2018-11-13 Joseph Myers <joseph@codesourcery.com>
4701
4702 * sysdeps/mips/__longjmp.c (__longjmp): Define alias manually with
4703 alias attribute, not with strong_alias.
4704
4705 * include/libc-symbols.h [SHARED && !NO_HIDDEN && !__ASSEMBLER__]
4706 (__hidden_ver2): New macro. Use old definition of __hidden_ver1
4707 with additional parameter thread.
4708 [SHARED && !NO_HIDDEN && !__ASSEMBLER__] (__hidden_ver1): Define
4709 in terms of __hidden_ver2.
4710 (hidden_tls_def): New macro.
4711 (libc_hidden_tls_def): Likewise.
4712 (rtld_hidden_tls_def): Likewise.
4713 (libm_hidden_tls_def): Likewise.
4714 (libmvec_hidden_tls_def): Likewise.
4715 (libresolv_hidden_tls_def): Likewise.
4716 (librt_hidden_tls_def): Likewise.
4717 (libdl_hidden_tls_def): Likewise.
4718 (libnss_files_hidden_tls_def): Likewise.
4719 (libnsl_hidden_tls_def): Likewise.
4720 (libnss_nisplus_hidden_tls_def): Likewise.
4721 (libutil_hidden_tls_def): Likewise.
4722 (libutil_hidden_tls_def): Likweise.
4723 * sysdeps/powerpc/nofpu/sim-full.c (__sim_exceptions_thread): Use
4724 libc_hidden_tls_def.
4725 (__sim_disabled_exceptions_thread): Likewise.
4726 (__sim_round_mode_thread): Likewise.
4727
4728 * sysdeps/sparc/sparc-ifunc.h [SHARED]
4729 (sparc_ifunc_redirected_hidden_def): Use __attribute_copy__ to
4730 copy attributes from name.
4731
4732 2018-11-12 Joseph Myers <joseph@codesourcery.com>
4733
4734 * sysdeps/arm/arm-ifunc.h [SHARED] (arm_libc_ifunc_hidden_def):
4735 Use __attribute_copy__ to copy attributes from name.
4736
4737 * sysdeps/i386/i686/fpu/multiarch/e_expf.c [SHARED]: Use __THROW
4738 with __hidden_ver1 call.
4739 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c [SHARED]: Likewise.
4740 * sysdeps/i386/i686/fpu/multiarch/e_logf.c [SHARED]: Likewise.
4741 * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Include <math.h>.
4742 (__cosf): Do not declare here.
4743 * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: Include <math.h>.
4744 (__sincosf): Do not declare here.
4745 * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: Include <math.h>.
4746 (__sinf): Do not declare here.
4747
4748 * sysdeps/ia64/fpu/sfp-machine.h (__LITTLE_ENDIAN): Remove.
4749 (__BIG_ENDIAN): Likewise.
4750 (__BYTE_ORDER): Likewise.
4751 (strong_alias): Likewise.
4752 (_strong_alias): Likewise.
4753
4754 2018-11-12 Florian Weimer <fweimer@redhat.com>
4755
4756 * malloc/malloc.c (unlink_chunk): Turn the unlink macro into this
4757 function. Move after the definition of in_smallbin_range. Do not
4758 use __builtin_expect for paths that lead to a noreturn function.
4759 Drop remaining __builtin_expect (p->fd_nextsize != NULL, 0)
4760 because it is unclear whether this is in fact an unlikely
4761 condition.
4762 (_int_malloc, _int_free): Adjust.
4763 (malloc_consolidate, _int_realloc): Adjust. Remove bck, fwd
4764 variables.
4765 * malloc/arena.c (heap_trim): Likewise.
4766
4767 2018-11-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
4768
4769 * sysdeps/mach/hurd/spawni.c (__spawni): Add ccwdir port. Test and use
4770 it, free it if needed.
4771 (reauthenticate): Test and use ccwdir.
4772 (child_init_port): In non-resetids case, test and use ccwdir.
4773 (child_chdir): New nested function to set ccwdir.
4774 * hurd/hurd/userlink.h (_hurd_userlink_move): New function.
4775 * hurd/hurd/port.h (_hurd_port_move): New function.
4776 * sysdeps/mach/hurd/spawni.c (NEW_ULINK_TABLE): New macro.
4777 (EXPAND_DTABLE): Use NEW_ULINK_TABLE macro for ulink_dtable.
4778 * hurd/Versions (_hurd_port_move): Export function.
4779 * sysdeps/mach/hurd/i386/libc.abilist (_hurd_port_move): Expect
4780 symbol.
4781 * sysdeps/mach/hurd/spawni.c (__spawni): Use orig_dtablesize instead
4782 of dtablesize for allocating dtable_cloexec.
4783
4784 2018-11-09 Martin Sebor <msebor@redhat.com>
4785
4786 * include/libc-symbols.h (__attribute_copy__): Define macro unless
4787 it's already defined.
4788 (_strong_alias): Use __attribute_copy__.
4789 (_weak_alias, __hidden_ver1, __hidden_nolink2): Same.
4790 * misc/sys/cdefs.h (__attribute_copy__): New macro.
4791 * sysdeps/x86_64/multiarch/memchr.c (memchr): Use __attribute_copy__.
4792 * sysdeps/x86_64/multiarch/memcmp.c (memcmp): Same.
4793 * sysdeps/x86_64/multiarch/mempcpy.c (mempcpy): Same.
4794 * sysdeps/x86_64/multiarch/memset.c (memset): Same.
4795 * sysdeps/x86_64/multiarch/stpcpy.c (stpcpy): Same.
4796 * sysdeps/x86_64/multiarch/strcat.c (strcat): Same.
4797 * sysdeps/x86_64/multiarch/strchr.c (strchr): Same.
4798 * sysdeps/x86_64/multiarch/strcmp.c (strcmp): Same.
4799 * sysdeps/x86_64/multiarch/strcpy.c (strcpy): Same.
4800 * sysdeps/x86_64/multiarch/strcspn.c (strcspn): Same.
4801 * sysdeps/x86_64/multiarch/strlen.c (strlen): Same.
4802 * sysdeps/x86_64/multiarch/strncmp.c (strncmp): Same.
4803 * sysdeps/x86_64/multiarch/strncpy.c (strncpy): Same.
4804 * sysdeps/x86_64/multiarch/strnlen.c (strnlen): Same.
4805 * sysdeps/x86_64/multiarch/strpbrk.c (strpbrk): Same.
4806 * sysdeps/x86_64/multiarch/strrchr.c (strrchr): Same.
4807 * sysdeps/x86_64/multiarch/strspn.c (strspn): Same.
4808
4809 2018-11-09 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4810
4811 * misc/tst-efgcvt.c: Include support/check.h and
4812 support/test-driver.c. Do not include test-skeleton.c.
4813 (error_count): Remove.
4814 (output_error): Replace increments to error_count with calls to
4815 support_record_failure.
4816 (output_r_error): Likewise.
4817 (special): Likewise.
4818 (do_test): Unconditionally return zero.
4819 (TEST_FUNCTION): Remove.
4820
4821 2018-11-09 Joseph Myers <joseph@codesourcery.com>
4822
4823 * conform/Makefile ($(conformtest-header-tests)): Create $(@D),
4824 not $(@D)/scratch.
4825 ($(linknamespace-header-tests)): Likewise.
4826
4827 * conform/conformtest.py: New file.
4828 * conform/conformtest.pl: Remove.
4829 * conform/GlibcConform.pm: Likewise.
4830 * conform/glibcconform.py (KEYWORDS_C90): New constant.
4831 (KEYWORDS_C99): Likewise.
4832 (KEYWORDS): Likewise.
4833 * conform/Makefile ($(conformtest-header-tests)): Use
4834 conformtest.py instead of conformtest.pl. Do not pass --tmpdir
4835 option. Use --header instead of --headers.
4836 * conform/data/arpa/inet.h-data: Remove trailing semicolons on
4837 function entries.
4838 * conform/data/spawn.h-data: Likewise.
4839 * conform/data/fcntl.h-data (openat): Add space after function
4840 name.
4841 * conform/data/wchar.h-data (wcscasecmp): Likewise.
4842 (wcscasecmp_l): Likewise.
4843 * conform/data/termios.h-data (c_cc): Add space after element
4844 name.
4845
4846 2018-11-08 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4847
4848 * argp/tst-ldbl-argp.c (do_one_test): Use TEST_COMPARE_STRING,
4849 instead of manually comparing and reporting mismatching strings.
4850 * misc/tst-ldbl-error.c (do_one_test): Likewise.
4851 * misc/tst-ldbl-warn.c (do_one_test): Likewise.
4852
4853 2018-11-08 Joseph Myers <joseph@codesourcery.com>
4854
4855 * sysdeps/unix/sysv/linux/kernel-features.h: Remove comment about
4856 __ASSUME_SOCKETCALL.
4857 * sysdeps/unix/sysv/linux/i386/kernel-features.h
4858 (__ASSUME_SOCKETCALL): Remove.
4859 * sysdeps/unix/sysv/linux/m68k/kernel-features.h
4860 (__ASSUME_SOCKETCALL): Likewise.
4861 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
4862 (__ASSUME_SOCKETCALL): Likewise.
4863 * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
4864 (__ASSUME_SOCKETCALL): Likewise.
4865 * sysdeps/unix/sysv/linux/s390/kernel-features.h
4866 (__ASSUME_SOCKETCALL): Likewise.
4867 * sysdeps/unix/sysv/linux/sh/kernel-features.h
4868 (__ASSUME_SOCKETCALL): Likewise.
4869 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
4870 (__ASSUME_SOCKETCALL): Likewise.
4871
4872 2018-11-08 H.J. Lu <hongjiu.lu@intel.com>
4873
4874 [BZ #23509]
4875 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Skip
4876 note parsing if a NT_GNU_PROPERTY_TYPE_0 note has been processed.
4877 Update the l_cet field when processing NT_GNU_PROPERTY_TYPE_0 note.
4878 Check multiple NT_GNU_PROPERTY_TYPE_0 notes.
4879 * sysdeps/x86/link_map.h (l_cet): Expand to 3 bits, Add
4880 lc_unknown.
4881
4882 2018-11-08 Alexandra Hájková <ahajkova@redhat.com>
4883
4884 [BZ #17630]
4885 * resolv/tst-resolv-network.c: Add test for getnetbyname.
4886
4887 2018-11-07 Joseph Myers <joseph@codesourcery.com>
4888
4889 [BZ #23867]
4890 * sysdeps/unix/sysv/linux/arm/kernel-features.h
4891 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_MLOCK2): Undefine.
4892 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
4893 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_MLOCK2): Undefine.
4894
4895 2018-11-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4896
4897 * support/support_test_compare_string.c
4898 (support_test_compare_string): Fix printf format.
4899
4900 2018-11-07 Florian Weimer <fweimer@redhat.com>
4901
4902 Implement TEST_COMPARE_STRING.
4903 * support/check.h (TEST_COMPARE_STRING): Define.
4904 (support_test_compare_string): Declare.
4905 * support/Makefile (libsupport-routines): Add
4906 support_test_compare_string.
4907 (tests): Add tst-test_compare_string.
4908 * support/support_test_compare_string.c: New file.
4909 * support/tst-test_compare_string.c: Likewise.
4910
4911 2018-11-07 Andreas Schwab <schwab@suse.de>
4912
4913 [BZ #23864]
4914 * sysdeps/unix/sysv/linux/riscv/kernel-features.h
4915 (__ASSUME_SET_ROBUST_LIST) [__LINUX_KERNEL_VERSION < 0x041400]:
4916 Undef.
4917
4918 2018-11-06 Joseph Myers <joseph@codesourcery.com>
4919
4920 [BZ #23862]
4921 * sysdeps/unix/sysv/linux/sh/kernel-features.h
4922 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_EXECVEAT): Undefine.
4923 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_MLOCK2): Likewise.
4924 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_COPY_FILE_RANGE):
4925 Likewise.
4926
4927 2018-11-06 Florian Weimer <fweimer@redhat.com>
4928
4929 [BZ #17405]
4930 * posix/Makefile (routines): Add spawn_faction_addchdir.
4931 (tests): Add tst-spawn-chdir.
4932 * posix/Versions (GLIBC_2.29): Add
4933 posix_spawn_file_actions_addchdir_np.
4934 * posix/spawn_faction_addchdir.c: New file.
4935 * posix/spawn_faction_destroy.c
4936 (__posix_spawn_file_actions_destroy): Handle spawn_do_chdir.
4937 * posix/spawn.h (posix_spawn_file_actions_addchdir_np): Declare.
4938 * posix/spawn_int.h (struct __spawn_action): Add spawn_do_chdir,
4939 chdir_action.
4940 * posix/tst-spawn-chdir.c: New file.
4941 * sysdeps/posix/spawni.c (__spawni_child): Handle spawn_do_chdir.
4942 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
4943 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.29): Add
4944 posix_spawn_file_actions_addchdir_np.
4945 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.29):
4946 Likewise.
4947 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.29):
4948 Likewise.
4949 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.29): Likewise.
4950 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.29):
4951 Likewise.
4952 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.29):
4953 Likewise.
4954 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.29):
4955 Likewise.
4956 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.29):
4957 Likewise.
4958 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.29):
4959 Likewise.
4960 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.29):
4961 Likewise.
4962 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
4963 (GLIBC_2.29): Likewise.
4964 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
4965 (GLIBC_2.29): Likewise.
4966 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
4967 (GLIBC_2.29): Likewise.
4968 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
4969 (GLIBC_2.29): Likewise.
4970 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.29):
4971 Likewise.
4972 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
4973 (GLIBC_2.29): Likewise.
4974 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
4975 (GLIBC_2.29): Likewise.
4976 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
4977 (GLIBC_2.29): Likewise.
4978 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
4979 (GLIBC_2.29): Likewise.
4980 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.29):
4981 Likewise.
4982 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.29):
4983 Likewise.
4984 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.29):
4985 Likewise.
4986 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.29): Likewise.
4987 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.29):
4988 Likewise.
4989 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.29):
4990 Likewise.
4991 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.29):
4992 Likewise.
4993 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.29):
4994 Likewise.
4995
4996 2018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4997
4998 * misc/Makefile (tests): Add tst-ldbl-error.
4999 * misc/tst-ldbl-error.c: New file.
5000
5001 2018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5002
5003 * misc/Makefile (tests): Add tst-ldbl-warn.
5004 * misc/tst-ldbl-warn.c: New file.
5005
5006 2018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5007
5008 * argp/Makefile (tests): Add tst-ldbl-argp.
5009 * argp/tst-ldbl-argp.c: New file.
5010
5011 2018-11-05 Arjun Shankar <arjun@redhat.com>
5012
5013 * iconv/gconv_conf.c (__gconv_read_conf): Remove NULL check for
5014 __gconv_path_elem and call __gconv_get_path unconditionally.
5015
5016 2018-11-05 Andreas Schwab <schwab@suse.de>
5017
5018 [BZ #22927]
5019 * resolv/gai_misc.c (__gai_enqueue_request): Don't crash if
5020 creating the first helper thread failed.
5021
5022 2018-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
5023
5024 * sysdeps/mach/hurd/msync.c: New file.
5025
5026 2018-11-02 Florian Weimer <fweimer@redhat.com>
5027
5028 * support/shell-container.c (copy_func): Call
5029 support_copy_file_range instead of copy_file_range to support
5030 cross-device copies.
5031
5032 2018-11-02 Florian Weimer <fweimer@redhat.com>
5033
5034 * support/test-container.c: Include <libc-pointer-arith.h> for
5035 ALIGN_UP.
5036
5037 2018-11-01 Zong Li <zong@andestech.com>
5038
5039 * soft-fp/op-8.h (_FP_FRAC_SET_8, _FP_FRAC_ADD_8, _FP_FRAC_SUB_8)
5040 (_FP_FRAC_CLZ_8, _FP_MINFRAC_8, _FP_FRAC_NEGP_8, _FP_FRAC_ZEROP_8)
5041 (_FP_FRAC_HIGHBIT_DW_8, _FP_FRAC_COPY_4_8, _FP_FRAC_COPY_8_4)
5042 (__FP_FRAC_SET_8): Add implementation for RV32 use.
5043
5044 * soft-fp/op-4.h (_FP_FRAC_SUB_3, _FP_FRAC_SUB_4): Use temporary
5045 variable to avoid overlap arguments.
5046
5047 2018-11-01 Joseph Myers <joseph@codesourcery.com>
5048
5049 * posix/bug-regex22.c (main): Use puts with distinct error
5050 messages for unexpected success of re_compile_pattern, not printf
5051 with NULL argument to %s.
5052
5053 * stdio-common/bug22.c: Include <libc-diag.h>.
5054 (do_test): Disable -Wformat-overflow= warnings around fprintf
5055 calls outputting more than INT_MAX characters.
5056 * stdio-common/tst-printf.c: Disable -Wformat-overflow= warnings
5057 around printf call with NULL %s argument.
5058
5059 [BZ #23848]
5060 * sysdeps/unix/sysv/linux/sparc/kernel-features.h [!__arch64__ &&
5061 __LINUX_KERNEL_VERSION < 0x040400] (__ASSUME_SENDMSG_SYSCALL):
5062 Undefine.
5063 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
5064 (__ASSUME_RECVMSG_SYSCALL): Likewise.
5065 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
5066 (__ASSUME_SENDTO_SYSCALL): Likewise.
5067 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
5068 (__ASSUME_ACCEPT_SYSCALL): Undefine under this condition, not just
5069 [!__arch64__].
5070 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
5071 (__ASSUME_CONNECT_SYSCALL): Likewise.
5072 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
5073 (__ASSUME_RECVFROM_SYSCALL): Likewise.
5074 [__LINUX_KERNEL_VERSION >= 0x040400] (__ASSUME_BIND_SYSCALL):
5075 Define.
5076 [__LINUX_KERNEL_VERSION >= 0x040400] (__ASSUME_LISTEN_SYSCALL):
5077 Likewise.
5078 [__LINUX_KERNEL_VERSION >= 0x040400]
5079 (__ASSUME_SETSOCKOPT_SYSCALL): Likewise.
5080 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (bind):
5081 Remove.
5082 (listen): Likewise.
5083 (setsockopt): Likewise.
5084
5085 2018-11-01 Fredrik Noring <noring@nocrew.org>
5086
5087 * sysdeps/mips/sys/tas.h (_test_and_set): Handle the R5900 CPU
5088 with the ISA override.
5089
5090 2018-10-31 Rafael Avila de Espindola <rafael@espindo.la>
5091
5092 * sysdeps/unix/sysv/linux/sysdep-vdso.h: Simplify an #if #else
5093 #endif.
5094
5095 2018-10-31 Samuel Thibault <samuel.thibault@ens-lyon.org>
5096
5097 * manual/errno.texi (EIEIO): Document how translators should
5098 translate the error message.
5099 * sysdeps/mach/hurd/errnos.awk: Avoid printing errnos.d. Avoid
5100 printing trailing whitespaces refused by git.
5101 * sysdeps/gnu/errlist.c (EIEIO): Regenerate.
5102 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
5103 * hurd/Makefile (user-interfaces): Add pci.
5104
5105 2018-10-30 Joseph Myers <joseph@codesourcery.com>
5106
5107 * conform/linknamespace.py: New file.
5108 * conform/linknamespace.pl: Remove file.
5109 * conform/Makefile ($(linknamespace-header-tests)): Use
5110 linknamespace.py instead of linknamespace.pl. Do not use --tmpdir
5111 option.
5112
5113 2018-10-30 Florian Weimer <fweimer@redhat.com>
5114
5115 * stdlib/test-bz22786.c (do_test): Additional free calls to avoid
5116 memory leaks.
5117
5118 2018-10-30 Florian Weimer <fweimer@redhat.com>
5119
5120 * support/blob_repeat.c (allocate_big): Call mkstemp directly.
5121
5122 2018-10-30 Florian Weimer <fweimer@redhat.com>
5123
5124 * stdlib/tst-strtod-overflow.c (do_test): Switch to
5125 support_blob_repeat.
5126
5127 2018-10-30 Florian Weimer <fweimer@redhat.com>
5128
5129 Avoid spurious test failures in stdlib/test-bz22786.
5130 * support/Makefile (libsupport-routines): Add blob_repeat.
5131 (tests): Add tst-support_blob_repeat.
5132 * support/blob_repeat.h: New file.
5133 * support/blob_repeat.c: Likewise.
5134 * support/tst-support_blob_repeat.c: Likewise.
5135 * stdlib/test-bz22786.c (do_test): Replace malloc and memset with
5136 support_blob_repeat_allocate.
5137
5138 2018-10-30 Andreas Schwab <schwab@suse.de>
5139
5140 [BZ #23125]
5141 * sysdeps/riscv/start.S (ENTRY_POINT): Mark ra as undefined.
5142 Don't use tail call.
5143 * elf/tst-unwind-main.c: New file.
5144 * elf/Makefile (tests): Add tst-unwind-main.
5145 (CFLAGS-tst-unwind-main.c): Define.
5146
5147 2018-10-29 Sergi Almacellas Abellana <sergi@koolpi.com>
5148
5149 [BZ #23791]
5150 * localedata/locales/ca_ES (LC_MONETARY): set p_cs_precedes and
5151 n_cs_precedes to 0.
5152 * localedata/locales/ca_ES (LC_MONETARY): set grouping to 3;3
5153
5154 2018-10-29 Joseph Myers <joseph@codesourcery.com>
5155
5156 * conform/glibcconform.py: Do not import shutil.
5157 (list_exported_functions): Use tempfile.TemporaryDirectory instead
5158 of mkdtemp.
5159
5160 * configure.ac (PYTHON_PROG): Use AC_CHECK_PROG_VER. Set
5161 critic_missing for versions before 3.4.
5162 * configure: Regenerated.
5163 * manual/install.texi (Tools for Compilation): Document
5164 requirement for Python to build glibc.
5165 * INSTALL: Regenerated.
5166 * Rules [PYTHON]: Make code unconditional.
5167 * benchtests/Makefile [PYTHON]: Likewise.
5168 * conform/Makefile [PYTHON]: Likewise.
5169 * manual/Makefile [PYTHON]: Likewise.
5170 * math/Makefile [PYTHON]: Likewise.
5171
5172 2018-10-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
5173
5174 * hurd/hurdsig.c (_hurd_interrupted_rpc_timeout): Set to 60000.
5175 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): When the server does not
5176 answer to interrupt_operation, return EIEIO instead of EINTR.
5177 * sysdeps/mach/hurd/i386/intr-msg.h (INTR_MSG_TRAP): Make
5178 _hurd_intr_rpc_msg_about_to global point to start of controlled
5179 assembly snippet. Make it check canceled flag.
5180 * hurd/hurdsig.c (_hurdsig_abort_rpcs): Only mutate thread if it passed
5181 the _hurd_intr_rpc_msg_about_to point.
5182 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Remove comment on mutation
5183 issue, remove cancel flag check.
5184
5185 2018-10-26 Joseph Myers <joseph@codesourcery.com>
5186
5187 * scripts/build-many-glibcs.py: Remove compatibility for missing
5188 os.cpu_count and re.fullmatch.
5189
5190 2018-10-26 Szabolcs Nagy <szabolcs.nagy@arm.com>
5191
5192 [BZ #23822]
5193 * sysdeps/ia64/fpu/e_exp2f.S (exp2f): Use WEAK_LIBM_ENTRY.
5194 * sysdeps/ia64/fpu/e_log2f.S (log2f): Likewise.
5195 * sysdeps/ia64/fpu/e_exp2f.S (powf): Likewise.
5196
5197 2018-10-25 Joseph Myers <joseph@codesourcery.com>
5198
5199 * sysdeps/unix/sysv/linux/sys/inotify.h (IN_MASK_CREATE): New
5200 macro.
5201
5202 2018-10-25 Florian Weimer <fweimer@redhat.com>
5203
5204 [BZ #23562]
5205 [BZ #23821]
5206 XFAIL siginfo_t si_band conform test on sparc64.
5207 * sysdeps/unix/sysv/linux/sparc/bits/siginfo-arch.h
5208 (__SI_BAND_TYPE): Only override long int default type on sparc64.
5209 * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile
5210 (conformtest-xfail-conds): Add sparc64-linux.
5211 * conform/data/signal.h-data (siginfo_t): XFAIL si_band test on
5212 sparc64.
5213 * conform/data/sys/wait.h-data (siginfo_t): Likewise.
5214
5215 2018-10-25 Joseph Myers <joseph@codesourcery.com>
5216
5217 * elf/elf.h (NT_MIPS_DSP): New macro.
5218 (NT_MIPS_FP_MODE): Likewise.
5219
5220 2018-10-25 Zong Li <zong@andestech.com>
5221
5222 * elf/Makefile (LDFLAGS-tst-execstack-mod.so): Change variable
5223 name by adding the file extension (.so).
5224
5225 2018-10-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
5226
5227 * sysdeps/mach/hurd/i386/Makefile [$(subdir) = conform]
5228 (test-xfail-ISO11/threads.h/linknamespace,
5229 test-xfail-ISO11/threads.h/conform): Add.
5230
5231 2018-10-24 Joseph Myers <joseph@codesourcery.com>
5232
5233 * math/gen-libm-test.py: Import os.
5234 (ALL_FLOATS_MANUAL): New constant.
5235 (ALL_FLOATS_SUFFIX): Likewise.
5236 (Ulps.all_functions): New function.
5237 (real_all_ulps): Likewise.
5238 (generate_err_table_sub): Likewise.
5239 (generate_err_table): Likewise.
5240 (main): Handle -s and -m options.
5241 * manual/libm-err-tab.pl: Remove.
5242 * manual/Makefile ($(objpfx)stamp-libm-err): Use gen-libm-test.py
5243 instead of libm-err-tab.pl.
5244 [$(PERL) != no]: Change condition to [$(if $(PYTHON),$(PERL),no)
5245 != no].
5246 * manual/install.texi (Tools for Compilation): Document
5247 requirement for Python to build manual.
5248 * INSTALL: Regenerated.
5249
5250 2018-10-24 Albert ARIBAUD <albert.aribaud@3adev.fr>
5251
5252 * bits/time64.h: New file.
5253 * include/time.h: Replace internal_time_t with __time64_t.
5254 * posix/bits/types (__time64_t): Add.
5255 * stdlib/Makefile: Add bits/time64.h to includes.
5256 * time/tzfile.c: Replace internal_time_t with __time64_t.
5257
5258 2018-10-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5259
5260 * include/spawn.h (__posix_spawn, posix_spawn_file_actions_addclose,
5261 __posix_spawn_file_actions_adddup2, __posix_spawn_file_actions_destroy,
5262 __posix_spawn_file_actions_init, __posix_spawnattr_init,
5263 __posix_spawnattr_destroy, __posix_spawnattr_setflags,
5264 __posix_spawnattr_setsigdefault, __posix_spawnattr_setsigmask): New
5265 prototype.
5266 * posix/spawn.c (__posix_spawn): Add libc_hidden_def.
5267 * posix/spawn_faction_addclose.c
5268 (__posix_spawn_file_actions_addclose): Add hidden definition.
5269 * posix/spawn_faction_adddup2.c
5270 (__posix_spawn_file_actions_adddup2): Likewise.
5271 * posix/spawn_faction_destroy.c
5272 (__posix_spawn_file_actions_destroy): Likewise.
5273 * posix/spawn_faction_init.c (__posix_spawn_file_actions_init):
5274 Likewise.
5275 * posix/spawnattr_destroy.c (__posix_spawnattr_destroy): Likewise.
5276 * posix/spawnattr_init.c (__posix_spawnattr_init): Likewise.
5277 * posix/spawnattr_setdefault.c (__posix_spawnattr_setsigdefault):
5278 Likewise.
5279 * posix/spawnattr_setflags.c (__posix_spawnattr_setflags): Likewise.
5280 * posix/spawnattr_setsigmask.c (__posix_spawnattr_setsigmask):
5281 Likewise.
5282
5283 2018-10-24 Andreas Schwab <schwab@suse.de>
5284
5285 [BZ #18093]
5286 * elf/dl-cache.c (_dl_load_cache_lookup): Check for truncated old
5287 format cache.
5288 * elf/cache.c (print_cache): Likewise.
5289
5290 2018-10-24 Albert ARIBAUD <albert.aribaud@3adev.fr>
5291
5292 * bits/timesize.h: New file.
5293 * stdlib/Makefile (headers): Add bits/timesize.h.
5294 * sysdeps/unix/sysv/linux/bits/msq-pad.h
5295 (__MSQ_PAD_AFTER_TIME): Use __TIMESIZE instead of __WORDSIZE.
5296 * sysdeps/unix/sysv/linux/bits/sem-pad.h
5297 (__SEM_PAD_AFTER_TIME): Likewise.
5298 * sysdeps/unix/sysv/linux/bits/shm-pad.h
5299 (__SHM_PAD_AFTER_TIME): Likewise.
5300 * sysdeps/unix/sysv/linux/hppa/bits/msq-pad.h
5301 (__MSQ_PAD_BEFORE_TIME): Likewise.
5302 * sysdeps/unix/sysv/linux/hppa/bits/sem-pad.h
5303 (__SEM_PAD_BEFORE_TIME): Likewise.
5304 * sysdeps/unix/sysv/linux/hppa/bits/shm-pad.h
5305 (__SHM_PAD_BEFORE_TIME, __SHM_PAD_BETWEEN_TIME_AND_SEGSZ): Likewise.
5306 * sysdeps/unix/sysv/linux/mips/bits/msq-pad.h
5307 (__MSQ_PAD_AFTER_TIME, __MSQ_PAD_BEFORE_TIME): Likewise.
5308 * sysdeps/unix/sysv/linux/powerpc/bits/msq-pad.h
5309 (__MSQ_PAD_BEFORE_TIME): Likewise.
5310 * sysdeps/unix/sysv/linux/powerpc/bits/sem-pad.h
5311 (__SEM_PAD_BEFORE_TIME): Likewise.
5312 * sysdeps/unix/sysv/linux/powerpc/bits/shm-pad.h
5313 (__SHM_PAD_BEFORE_TIME, __SHM_PAD_BETWEEN_TIME_AND_SEGSZ): Likewise.
5314 * sysdeps/unix/sysv/linux/sparc/bits/msq-pad.h
5315 (__MSQ_PAD_BEFORE_TIME): Likewise.
5316 * sysdeps/unix/sysv/linux/sparc/bits/sem-pad.h
5317 (__SEM_PAD_BEFORE_TIME): Likewise.
5318 * sysdeps/unix/sysv/linux/sparc/bits/shm-pad.h
5319 (__SHM_PAD_BEFORE_TIME): Likewise.
5320 * sysdeps/unix/sysv/linux/x86/bits/msq-pad.h: Delete file.
5321 * sysdeps/unix/sysv/linux/x86/bits/shm-pad.h: Likewise.
5322 * sysdeps/unix/sysv/linux/x86/bits/timesize.h: New file.
5323
5324 2018-10-24 H.J. Lu <hongjiu.lu@intel.com>
5325
5326 * benchtests/Makefile (CPPFLAGS-nonlib): Add -DUSE_RDTSCP if
5327 USE_RDTSCP is defined.
5328 * sysdeps/x86/hp-timing.h (HP_TIMING_NOW): Use RDTSCP if
5329 USE_RDTSCP is defined.
5330
5331 2018-10-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5332
5333 * misc/tst-preadvwritev2-common.c (IOV_MAX): Define if not
5334 defined.
5335
5336 [BZ #23709]
5337 * sysdeps/x86/cpu-features.c (init_cpu_features): Set TSX bits
5338 independently of other flags.
5339
5340 2018-10-23 Florian Weimer <fweimer@redhat.com>
5341
5342 * time/tst-mktime2.c (N_STRINGS): Remove.
5343 (set_timezone): New function.
5344 (spring_forward_gap): Call it. Use FAIL_EXIT1.
5345 (mktime_test1): Report localtime failure and check errno value.
5346 Use TEST_COMPARE.
5347 (irix_6_4_bug, bigtime_test): Use TEST_COMPARE.
5348 (do_test): Remove alarm call. Use set_timezone and array_length.
5349
5350 2018-10-23 Andreas Schwab <schwab@suse.de>
5351
5352 * sysdeps/unix/sysv/linux/riscv/setcontext.S (__setcontext)
5353 (__start_context): Use END instead of PSEUDO_END.
5354
5355 2018-10-22 Joseph Myers <joseph@codesourcery.com>
5356
5357 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
5358 version to 4.19.
5359
5360 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
5361 version to 4.19.
5362
5363 [BZ #23793]
5364 * wcsmbs/c32rtomb.c: New file.
5365 * wcsmbs/mbrtoc32.c: Likewise.
5366 * wcsmbs/tst-c32-state.c: Likewise.
5367 * wcsmbs/mbrtowc.c (mbrtoc32): Do not define as alias.
5368 * wcsmbs/wcrtomb.c (c32rtomb): Likewise.
5369 * wcsmbs/Makefile (routines): Add mbrtoc32 and c32rtomb.
5370 (tests): Add tst-c32-state.
5371 [$(run-built-tests) = yes] ($(objpfx)tst-c32-state.out): Depend on
5372 $(gen-locales).
5373
5374 2018-10-21 H.J. Lu <hongjiu.lu@intel.com>
5375
5376 * sysdeps/x86/hp-timing.h: Don't include <x86intrin.h>.
5377 (HP_TIMING_NOW): Replace _rdtsc with __builtin_ia32_rdtsc.
5378
5379 2018-10-19 Joseph Myers <joseph@codesourcery.com>
5380
5381 [BZ #23794]
5382 * wcsmbs/c16rtomb.c (c16rtomb): Save first character of surrogate
5383 pair and return 0 in that case, and use saved character to
5384 interpret following character.
5385 * wcsmbs/tst-c16-surrogate.c: New file.
5386 * wcsmbs/Makefile (tests): Add tst-c16-surrogate.c.
5387 [$(run-built-tests) = yes] ($(objpfx)tst-c16-surrogate.out):
5388 Depend on $(gen-locales)
5389
5390 2018-10-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
5391
5392 [BZ #23562]
5393 * sysdeps/unix/sysv/linux/bits/types/siginfo_t.h
5394 (struct siginfo_t): Use correct type for si_band.
5395
5396 2018-10-19 Florian Weimer <fweimer@redhat.com>
5397
5398 [BZ #23689]
5399 * resource/bits/types/struct_rusage.h (struct rusage): Update
5400 comment on struct. Remove extraneous field comment.
5401
5402 2018-10-18 David S. Miller <davem@davemloft.net>
5403
5404 * sysdeps/unix/sysv/linux/sparc/init-first.c: New file.
5405 * sysdeps/unix/sysv/linux/sparc/libc-vdso.h: New file.
5406 * sysdeps/unix/sysv/linux/sparc/Makefile: Add dl-vdso to
5407 sysdep_routines in subdir elf.
5408 * sysdeps/unix/sysv/linux/sparc/Versions: Add GLIBC_PRIVATE
5409 version for __vdso_clock_gettime.
5410 * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_VSYSCALL_CALL):
5411 Define.
5412 (HAVE_CLOCK_GETTIME_VSYSCALL): Define.
5413 (HAVE_GETTIMEOFDAY_VSYSCALL): Define.
5414
5415 * sysdeps/sparc/fpu/libm-test-ulps: Regenerated.
5416
5417 2018-10-17 H.J. Lu <hongjiu.lu@intel.com>
5418
5419 * sysdeps/i386/init-arch.h: Removed.
5420 * sysdeps/i386/i586/init-arch.h: Likewise.
5421 * sysdeps/i386/i686/init-arch.h: Likewise.
5422 * sysdeps/i386/i686/hp-timing.h: Likewise.
5423 * sysdeps/x86_64/hp-timing.h: Likewise.
5424 * sysdeps/i386/isa.h: New file.
5425 * sysdeps/i386/i586/isa.h: Likewise.
5426 * sysdeps/i386/i686/isa.h: Likewise.
5427 * sysdeps/x86_64/isa.h: Likewise.
5428 * sysdeps/x86/hp-timing.h: New file.
5429 * sysdeps/x86/init-arch.h: Include <isa.h>.
5430
5431 2018-10-17 Joseph Myers <joseph@codesourcery.com>
5432
5433 * math/libm-test-pow.inc (pow_test_data): Do not allow
5434 divide-by-zero exception for pow(+/- 0, -Inf).
5435
5436 2018-10-17 Zack Weinberg <zackw@panix.com>
5437
5438 * manual/job.texi (Job Control is Optional): Remove node, as
5439 job control has not been optional in quite some time.
5440 (Job Control): Mention briefly that systems older than
5441 POSIX.1-2001 might not support job control.
5442 * manual/conf.texi (_POSIX_JOB_CONTROL): Will always be
5443 defined on systems conforming to POSIX.1-2001.
5444
5445 2018-10-17 Arjun Shankar <arjun@redhat.com>
5446
5447 [BZ #22062]
5448 * iconv/gconv_conf.c (__gconv_get_path): Remove locking and fix
5449 indentation.
5450 * (__gconv_read_conf): Mark function static.
5451 * (once): New static variable.
5452 * (__gconv_load_conf): New function.
5453 * iconv/gconv_int.h (__gconv_load_conf): Likewise.
5454 * iconv/gconv_db.c (once): Remove static variable.
5455 * (__gconv_compare_alias): Use __gconv_load_conf instead of
5456 __gconv_read_conf.
5457 * (__gconv_find_transform): Likewise.
5458 * iconv/tst-iconv-mt.c: New test.
5459 * iconv/Makefile: Add tst-iconv_mt.
5460
5461 2018-10-17 Joseph Myers <joseph@codesourcery.com>
5462
5463 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
5464 bits/shm-pad.h.
5465 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/shm-pad.h>.
5466 (shmatt_t): Define as __syscall_ulong_t.
5467 (__SHM_PAD_TIME): New macro, depending on [__SHM_PAD_BEFORE_TIME]
5468 and [__SHM_PAD_AFTER_TIME].
5469 (struct shmid_ds): Define time fields using __SHM_PAD_TIME.
5470 Define shm_segsz and associated padding based on
5471 [__SHM_SEGSZ_AFTER_TIME] and [__SHM_PAD_BETWEEN_TIME_AND_SEGSZ].
5472 Use __syscall_ulong_t instead of unsigned long int.
5473 [__USE_MISC] (struct shminfo): Use __syscall_ulong_t instead of
5474 unsigned long int.
5475 [__USE_MISC] (struct shm_info): Likewise.
5476 * sysdeps/unix/sysv/linux/bits/shm-pad.h: New file.
5477 * sysdeps/unix/sysv/linux/hppa/bits/shm-pad.h: Likewise.
5478 * sysdeps/unix/sysv/linux/mips/bits/shm-pad.h: Likewise.
5479 * sysdeps/unix/sysv/linux/powerpc/bits/shm-pad.h: Likewise.
5480 * sysdeps/unix/sysv/linux/sparc/bits/shm-pad.h: Likewise.
5481 * sysdeps/unix/sysv/linux/x86/bits/shm-pad.h: Likewise.
5482 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Remove.
5483 * sysdeps/unix/sysv/linux/mips/bits/shm.h: Likewise.
5484 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
5485 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
5486 * sysdeps/unix/sysv/linux/x86/bits/shm.h: Likewise.
5487
5488 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
5489 bits/shmlba.h.
5490 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/shmlba.h>.
5491 (SHMLBA): Remove macro.
5492 (__getpagesize): Remove function declaration.
5493 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Include
5494 <bits/shmlba.h>.
5495 (SHMLBA): Remove macro.
5496 * sysdeps/unix/sysv/linux/mips/bits/shm.h: Include
5497 <bits/shmlba.h>.
5498 (SHMLBA): Remove macro.
5499 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Include
5500 <bits/shmlba.h>.
5501 (SHMLBA): Remove macro.
5502 (__getpagesize): Remove function declaration.
5503 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Include
5504 <bits/shmlba.h>.
5505 (SHMLBA): Remove macro.
5506 (__getshmlba): Remove function declaration.
5507 * sysdeps/unix/sysv/linux/x86/bits/shm.h: Include <bits/shmlba.h>.
5508 (SHMLBA): Remove macro.
5509 (__getpagesize): Remove function declaration.
5510 * sysdeps/unix/sysv/linux/arm/bits/shm.h: Remove file.
5511 * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
5512 * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
5513 * sysdeps/unix/sysv/linux/bits/shmlba.h: New file.
5514 * sysdeps/unix/sysv/linux/arm/bits/shmlba.h: Likewise.
5515 * sysdeps/unix/sysv/linux/hppa/bits/shmlba.h: Likewise.
5516 * sysdeps/unix/sysv/linux/ia64/bits/shmlba.h: Likewise.
5517 * sysdeps/unix/sysv/linux/mips/bits/shmlba.h: Likewise.
5518 * sysdeps/unix/sysv/linux/sh/bits/shmlba.h: Likewise.
5519 * sysdeps/unix/sysv/linux/sparc/bits/shmlba.h: Likewise.
5520
5521 2018-10-17 Stefan Liebler <stli@linux.ibm.com>
5522
5523 [BZ #23275]
5524 * nptl/tst-mutex10.c: New File.
5525 * nptl/Makefile (tests): Add tst-mutex10.
5526 (tst-mutex10-ENV): New variable.
5527 * sysdeps/unix/sysv/linux/s390/force-elision.h: (FORCE_ELISION):
5528 Ensure that elision path is used if elision is available.
5529 * sysdeps/unix/sysv/linux/powerpc/force-elision.h (FORCE_ELISION):
5530 Likewise.
5531 * sysdeps/unix/sysv/linux/x86/force-elision.h: (FORCE_ELISION):
5532 Likewise.
5533 * nptl/pthreadP.h (PTHREAD_MUTEX_TYPE, PTHREAD_MUTEX_TYPE_ELISION)
5534 (PTHREAD_MUTEX_PSHARED): Use atomic_load_relaxed.
5535 * nptl/pthread_mutex_consistent.c (pthread_mutex_consistent): Likewise.
5536 * nptl/pthread_mutex_getprioceiling.c (pthread_mutex_getprioceiling):
5537 Likewise.
5538 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full)
5539 (__pthread_mutex_cond_lock_adjust): Likewise.
5540 * nptl/pthread_mutex_setprioceiling.c (pthread_mutex_setprioceiling):
5541 Likewise.
5542 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Likewise.
5543 * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock): Likewise.
5544 * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full): Likewise.
5545 * sysdeps/nptl/bits/thread-shared-types.h (struct __pthread_mutex_s):
5546 Add comments.
5547 * nptl/pthread_mutex_destroy.c (__pthread_mutex_destroy):
5548 Use atomic_load_relaxed and atomic_store_relaxed.
5549 * nptl/pthread_mutex_init.c (__pthread_mutex_init):
5550 Use atomic_store_relaxed.
5551
5552 2018-10-17 Andreas Schwab <schwab@suse.de>
5553
5554 * benchtests/bench-strtod.c (TIMEOUT): Don't define.
5555 * crypt/badsalttest.c (TIMEOUT): Likewise.
5556 * crypt/sha256c-test.c (TIMEOUT): Likewise.
5557 * dirent/tst-fdopendir.c (TIMEOUT): Likewise.
5558 * io/test-lfs.c (TIMEOUT): Likewise.
5559 * libio/tst-atime.c (TIMEOUT): Likewise.
5560 * localedata/tst-leaks.c (TIMEOUT): Likewise.
5561 * nptl/tst-cancel19.c (TIMEOUT): Likewise.
5562 * nptl/tst-cancel22.c (TIMEOUT): Likewise.
5563 * nptl/tst-cancel25.c (TIMEOUT): Likewise.
5564 * nptl/tst-cancel7.c (TIMEOUT): Likewise.
5565 * nptl/tst-cond-except.c (TIMEOUT): Likewise.
5566 * nptl/tst-cond11.c (TIMEOUT): Likewise.
5567 * nptl/tst-cond14.c (TIMEOUT): Likewise.
5568 * nptl/tst-cond15.c (TIMEOUT): Likewise.
5569 * nptl/tst-cond24.c (TIMEOUT): Likewise.
5570 * nptl/tst-cond25.c (TIMEOUT): Likewise.
5571 * nptl/tst-kill2.c (TIMEOUT): Likewise.
5572 * nptl/tst-kill3.c (TIMEOUT): Likewise.
5573 * nptl/tst-mutex4.c (TIMEOUT): Likewise.
5574 * nptl/tst-mutex5.c (TIMEOUT): Likewise.
5575 * nptl/tst-mutex9.c (TIMEOUT): Likewise.
5576 * nptl/tst-once2.c (TIMEOUT): Likewise.
5577 * nptl/tst-once3.c (TIMEOUT): Likewise.
5578 * nptl/tst-once4.c (TIMEOUT): Likewise.
5579 * nptl/tst-robust8.c (TIMEOUT): Likewise.
5580 * nptl/tst-robust9.c (TIMEOUT): Likewise.
5581 * nptl/tst-rwlock16.c (TIMEOUT): Likewise.
5582 * nptl/tst-sem14.c (TIMEOUT): Likewise.
5583 * nptl/tst-sem6.c (TIMEOUT): Likewise.
5584 * nptl/tst-signal3.c (TIMEOUT): Likewise.
5585 * nptl/tst-spin4.c (TIMEOUT): Likewise.
5586 * nptl/tst-tls3.c (TIMEOUT): Likewise.
5587 * nptl/tst-tls4.c (TIMEOUT): Likewise.
5588 * posix/tst-chmod.c (TIMEOUT): Likewise.
5589 * posix/tst-getaddrinfo4.c (TIMEOUT): Likewise.
5590 * posix/tst-getaddrinfo5.c (TIMEOUT): Likewise.
5591 * posix/tst-preadwrite-common.c (TIMEOUT): Likewise.
5592 * posix/tst-regex2.c (TIMEOUT): Likewise.
5593 * posix/tst-waitid.c (TIMEOUT): Likewise.
5594 * rt/tst-aio.c (TIMEOUT): Likewise.
5595 * rt/tst-aio10.c (TIMEOUT): Likewise.
5596 * rt/tst-aio4.c (TIMEOUT): Likewise.
5597 * rt/tst-aio5.c (TIMEOUT): Likewise.
5598 * rt/tst-aio6.c (TIMEOUT): Likewise.
5599 * rt/tst-aio64.c (TIMEOUT): Likewise.
5600 * rt/tst-aio7.c (TIMEOUT): Likewise.
5601 * rt/tst-aio9.c (TIMEOUT): Likewise.
5602 * rt/tst-clock.c (TIMEOUT): Likewise.
5603 * rt/tst-cpuclock1.c (TIMEOUT): Likewise.
5604 * rt/tst-cpuclock2.c (TIMEOUT): Likewise.
5605 * rt/tst-mqueue2.c (TIMEOUT): Likewise.
5606 * rt/tst-mqueue4.c (TIMEOUT): Likewise.
5607 * rt/tst-mqueue5.c (TIMEOUT): Likewise.
5608 * rt/tst-timer4.c (TIMEOUT): Likewise.
5609 * stdio-common/tst-fseek.c (TIMEOUT): Likewise.
5610 * stdio-common/tst-rndseek.c (TIMEOUT): Likewise.
5611 * stdlib/tst-empty-env.c (TIMEOUT): Likewise.
5612 * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Likewise.
5613 * time/tst-ftime.c (TIMEOUT): Likewise.
5614 * timezone/tst-tzset.c (TIMEOUT): Likewise.
5615
5616 2018-10-16 Anton Youdkevitch <anton.youdkevitch@bell-sw.com>
5617
5618 * sysdeps/aarch64/multiarch/memcpy_thunderx.S: Remove thunderx2 code.
5619 * sysdeps/aarch64/multiarch/memcpy_thunderx2.S: New implementation
5620 for thunderX2.
5621
5622 2018-10-15 Joseph Myers <joseph@codesourcery.com>
5623
5624 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
5625 bits/sem-pad.h.
5626 * sysdeps/unix/sysv/linux/bits/sem.h: Include <bits/sem-pad.h>
5627 instead of <bits/wordsize.h>.
5628 (__SEM_PAD_TIME): New macro, depending on [__SEM_PAD_BEFORE_TIME]
5629 and [__SEM_PAD_AFTER_TIME].
5630 (struct semid_ds): Define time fields using __SEM_PAD_TIME. Use
5631 __syscall_ulong_t instead of unsigned long int.
5632 * sysdeps/unix/sysv/linux/bits/sem-pad.h: New file.
5633 * sysdeps/unix/sysv/linux/hppa/bits/sem-pad.h: Likewise.
5634 * sysdeps/unix/sysv/linux/mips/bits/sem-pad.h: Likewise.
5635 * sysdeps/unix/sysv/linux/powerpc/bits/sem-pad.h: Likewise.
5636 * sysdeps/unix/sysv/linux/sparc/bits/sem-pad.h: Likewise.
5637 * sysdeps/unix/sysv/linux/x86/bits/sem-pad.h: Likewise.
5638 * sysdeps/unix/sysv/linux/hppa/bits/sem.h: Remove.
5639 * sysdeps/unix/sysv/linux/mips/bits/sem.h: Likewise.
5640 * sysdeps/unix/sysv/linux/powerpc/bits/sem.h: Likewise.
5641 * sysdeps/unix/sysv/linux/sparc/bits/sem.h: Likewise.
5642 * sysdeps/unix/sysv/linux/x86/bits/sem.h: Likewise.
5643
5644 2018-10-14 Paul Eggert <eggert@cs.ucla.edu>
5645
5646 regex: simplify by using intprops.h
5647 [BZ#23744]
5648 * posix/regex_internal.h [_LIBC]: Include intprops.h.
5649 (TYPE_SIGNED, INT_ADD_WRAPV) [_LIBC]: Remove.
5650 intprops.h defines them.
5651
5652 regex: __builtin_expect → __glibc_unlikely
5653 [BZ#23744]
5654 This refactoring was prompted by a problem when the regex code is
5655 used as part of Gnulib and when the builder’s compiler does not grok
5656 __builtin_expect. Problem reported for Gawk by Nelson H.F. Beebe in:
5657 https://lists.gnu.org/r/bug-gnulib/2018-09/msg00137.html
5658 Although this refactoring does not fix the problem directly,
5659 we might as well have Gawk use the now-preferred glibc style for when
5660 __builtin_expect is unavailable.
5661 * posix/regex_internal.h (BE): Remove.
5662 All uses replaced by __glibc_unlikely or __glibc_likely.
5663
5664 2018-10-11 Joseph Myers <joseph@codesourcery.com>
5665
5666 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
5667 bits/msq-pad.h.
5668 * sysdeps/unix/sysv/linux/bits/msq.h: Include <bits/msq-pad.h>
5669 instead of <bits/wordsize.h>.
5670 (msgqnum_t): Define as __syscall_ulong_t.
5671 (msglen_t): Likewise.
5672 (__MSQ_PAD_TIME): New macro, depending on [__MSQ_PAD_BEFORE_TIME]
5673 and [__MSQ_PAD_AFTER_TIME].
5674 (struct msqid_ds): Define time fields using __MSQ_PAD_TIME. Use
5675 __syscall_ulong_t instead of unsigned long int.
5676 * sysdeps/unix/sysv/linux/bits/msq-pad.h: New file.
5677 * sysdeps/unix/sysv/linux/hppa/bits/msq-pad.h: Likewise.
5678 * sysdeps/unix/sysv/linux/mips/bits/msq-pad.h: Likewise.
5679 * sysdeps/unix/sysv/linux/powerpc/bits/msq-pad.h: Likewise.
5680 * sysdeps/unix/sysv/linux/sparc/bits/msq-pad.h: Likewise.
5681 * sysdeps/unix/sysv/linux/x86/bits/msq-pad.h: Likewise.
5682 * sysdeps/unix/sysv/linux/hppa/bits/msq.h: Remove.
5683 * sysdeps/unix/sysv/linux/mips/bits/msq.h: Likewise.
5684 * sysdeps/unix/sysv/linux/powerpc/bits/msq.h: Likewise.
5685 * sysdeps/unix/sysv/linux/sparc/bits/msq.h: Likewise.
5686 * sysdeps/unix/sysv/linux/x86/bits/msq.h: Likewise.
5687
5688 2018-10-10 Joseph Myers <joseph@codesourcery.com>
5689
5690 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/wordsize.h>.
5691 (struct shmid_ds): Condition padding after time fields on
5692 [__WORDSIZE == 32].
5693 * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Remove file.
5694 * sysdeps/unix/sysv/linux/generic/bits/shm.h: Likewise.
5695 * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
5696
5697 * sysdeps/unix/sysv/linux/bits/sem.h: Include <bits/wordsize.h>.
5698 (struct semid_ds): Condition padding after time fields on
5699 [__WORDSIZE == 32].
5700 * sysdeps/unix/sysv/linux/alpha/bits/sem.h: Remove file.
5701 * sysdeps/unix/sysv/linux/generic/bits/sem.h: Likewise.
5702 * sysdeps/unix/sysv/linux/ia64/bits/sem.h: Likewise.
5703 * sysdeps/unix/sysv/linux/s390/bits/sem.h: Likewise.
5704
5705 * sysdeps/unix/sysv/linux/bits/msq.h: Include <bits/wordsize.h>.
5706 (struct msqid_ds): Condition padding after time fields on
5707 [__WORDSIZE == 32].
5708 * sysdeps/unix/sysv/linux/alpha/bits/msq.h: Remove file.
5709 * sysdeps/unix/sysv/linux/generic/bits/msq.h: Likewise.
5710 * sysdeps/unix/sysv/linux/ia64/bits/msq.h: Likewise.
5711 * sysdeps/unix/sysv/linux/s390/bits/msq.h: Likewise.
5712
5713 2018-10-09 Szabolcs Nagy <szabolcs.nagy@arm.com>
5714
5715 * nss/tst-nss-files-hosts-multi.c (TIMEOUT): Define.
5716
5717 2018-10-09 Szabolcs Nagy <szabolcs.nagy@arm.com>
5718
5719 * libio/tst-readline.c (TIMEOUT): Define.
5720
5721 2018-10-08 Paul Eggert <eggert@cs.ucla.edu>
5722
5723 mktime fix for Gnulib + coreutils
5724 [BZ#23745]
5725 This fix affects only Gnulib. Problem discovered when
5726 mktime.c was used as part of Gnulib in bleeding-edge Coreutils.
5727 * time/mktime.c:
5728 (my_tzset) [!_LIBC && !NEED_MKTIME_WORKING && !NEED_MKTIME_WINDOWS]:
5729 Do not define since it is not used. Defining an unused static
5730 function prompts a warning from GCC when Coreutils is configured
5731 with --enable-gcc-warnings.
5732
5733 2018-10-08 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
5734
5735 * benchtests/scripts/compare_bench.py (main): set float type on
5736 threshold argument.
5737
5738 2018-10-08 Rafal Luzynski <digitalfreak@lingonborough.com>
5739
5740 [BZ #23740]
5741 * localedata/locales/kl_GL (mon): Update, the relative case.
5742 (alt_mon): Add, fill with month names in the nominative case.
5743 (d_t_fmt): Set to "%a %b %d %Y %T %Z".
5744 (d_fmt): Set to "%b %d %Y".
5745
5746 2018-10-04 Joseph Myers <joseph@codesourcery.com>
5747
5748 * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Include
5749 <bits/mman-linux.h>.
5750 (PROT_READ): Don't define here.
5751 (PROT_WRITE): Likewise.
5752 (PROT_EXEC): Likewise.
5753 (PROT_NONE): Likewise.
5754 (PROT_GROWSDOWN): Likewise.
5755 (PROT_GROWSUP): Likewise.
5756 (MAP_SHARED): Likewise.
5757 (MAP_PRIVATE): Likewise.
5758 [__USE_MISC] (MAP_SHARED_VALIDATE): Likewise.
5759 [__USE_MISC] (MAP_FILE): Likewise.
5760 [__USE_MISC] (MAP_ANONYMOUS): Likewise.
5761 [__USE_MISC] (MAP_ANON): Likewise.
5762 [__USE_MISC] (MAP_HUGE_SHIFT): Likewise.
5763 [__USE_MISC] (MAP_HUGE_MASK): Likewise.
5764 (MCL_CURRENT): Likewise.
5765 (MCL_FUTURE): Likewise.
5766 (MCL_ONFAULT): Likewise.
5767 [__USE_MISC] (MADV_NORMAL): Likewise.
5768 [__USE_MISC] (MADV_RANDOM): Likewise.
5769 [__USE_MISC] (MADV_SEQUENTIAL): Likewise.
5770 [__USE_MISC] (MADV_WILLNEED): Likewise.
5771 [__USE_MISC] (MADV_DONTNEED): Likewise.
5772 [__USE_MISC] (MADV_FREE): Likewise.
5773 [__USE_MISC] (MADV_REMOVE): Likewise.
5774 [__USE_MISC] (MADV_DONTFORK): Likewise.
5775 [__USE_MISC] (MADV_DOFORK): Likewise.
5776 [__USE_MISC] (MADV_HWPOISON): Likewise.
5777 [__USE_XOPEN2K] (POSIX_MADV_NORMAL): Likewise.
5778 [__USE_XOPEN2K] (POSIX_MADV_RANDOM): Likewise.
5779 [__USE_XOPEN2K] (POSIX_MADV_SEQUENTIAL): Likewise.
5780 [__USE_XOPEN2K] (POSIX_MADV_WILLNEED): Likewise.
5781 [__USE_XOPEN2K] (POSIX_MADV_DONTNEED): Likewise.
5782 (__MAP_ANONYMOUS): New macro.
5783 [__USE_MISC] (MAP_TYPE): Undefine and redefine after
5784 <bits/mman-linux.h> inclusion.
5785 (MAP_FIXED): Likewise.
5786 (MS_SYNC): Likewise.
5787 (MS_ASYNC): Likewise.
5788 (MS_INVALIDATE): Likewise.
5789 [__USE_MISC] (MADV_MERGEABLE): Likewise.
5790 [__USE_MISC] (MADV_UNMERGEABLE): Likewise.
5791 [__USE_MISC] (MADV_HUGEPAGE): Likewise.
5792 [__USE_MISC] (MADV_NOHUGEPAGE): Likewise.
5793 [__USE_MISC] (MADV_DONTDUMP): Likewise.
5794 [__USE_MISC] (MADV_DODUMP): Likewise.
5795 [__USE_MISC] (MADV_WIPEONFORK): Likewise.
5796 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
5797
5798 [BZ #23735]
5799 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (NO_MATH_REDIRECT):
5800 Define.
5801 * sysdeps/ieee754/ldbl-opt/test-nldbl-redirect.c: New file.
5802 * sysdeps/ieee754/ldbl-opt/Makefile [$(subdir) = math] (tests):
5803 Add test-nldbl-redirect.
5804 [$(subdir) = math] (CFLAGS-test-nldbl-redirect.c): New variable.
5805 [$(subdir) = math] ($(objpfx)test-nldbl-redirect): Depend on
5806 $(objpfx)libnldbl_nonshared.a.
5807
5808 2018-10-04 Stefan Liebler <stli@linux.ibm.com>
5809
5810 * support/support.h (support_objdir_elf_ldso): New variable.
5811 * support/support_paths.c (support_objdir_elf_ldso): Likewise.
5812 * support/Makefile (CFLAGS-support_paths.c): Add definition
5813 for OBJDIR_ELF_LDSO_PATH.
5814 * support/test-container.c (main): Search for the ld.so
5815 which is also used by the testsuite.
5816
5817 2018-10-02 Rafal Luzynski <digitalfreak@lingonborough.com>
5818
5819 [BZ #20209]
5820 * localedata/locales/kl_GL: (abday): Fix spelling of Sun (Sunday),
5821 should be "sap" rather than "sab".
5822 (day): Fix spelling of Sunday, should be "sapaat" rather than
5823 "sabaat".
5824
5825 2018-10-02 Joseph Myers <joseph@codesourcery.com>
5826
5827 * math/libm-test-fma.inc (fma_test_data): Add more tests.
5828
5829 2018-10-02 Martin Jansa <Martin.Jansa@gmail.com>
5830
5831 [BZ #19444]
5832 * sysdeps/ieee754/soft-fp/s_fdiv.c: Include <libc-diag.h> and use
5833 DIAG_PUSH_NEEDS_COMMENT, DIAG_IGNORE_NEEDS_COMMENT and
5834 DIAG_POP_NEEDS_COMMENT to disable -Wmaybe-uninitialized.
5835
5836 2018-10-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5837
5838 * sysdeps/unix/sysv/linux/fd_to_filename.h: Add missing includes.
5839
5840 2018-10-02 H.J. Lu <hongjiu.lu@intel.com>
5841
5842 * sysdeps/unix/sysv/linux/x86/Makefile (CFLAGS-elision-lock.c):
5843 Add -mrtm.
5844 (CFLAGS-elision-unlock.c): Likewise.
5845 (CFLAGS-elision-timed.c): Likewise.
5846 (CFLAGS-elision-trylock.c): Likewise.
5847 * sysdeps/unix/sysv/linux/x86/hle.h: Rewritten.
5848
5849 2018-10-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5850
5851 [BZ #21037]
5852 * libio/Makefile (tests): Add tst-memstream4 and tst-wmemstream4.
5853 * libio/freopen.c (freopen): Sync stream before reopen and adjust to
5854 new fd_to_filename interface.
5855 * libio/freopen64.c (freopen64): Likewise.
5856 * libio/tst-memstream.h: New file.
5857 * libio/tst-memstream4.c: Likewise.
5858 * libio/tst-wmemstream4.c: Likewise.
5859 * sysdeps/generic/fd_to_filename.h (fd_to_filename): Change signature.
5860 * sysdeps/unix/sysv/linux/fd_to_filename.h (fd_to_filename): Likewise
5861 and remove internal dynamic allocation.
5862
5863 2018-10-01 Joseph Myers <joseph@codesourcery.com>
5864
5865 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_GNU]
5866 (MREMAP_MAYMOVE): Do not define here.
5867 [__USE_GNU] (MREMAP_FIXED): Likewise.
5868 * sysdeps/unix/sysv/linux/bits/mman-shared.h [__USE_GNU]
5869 (MREMAP_MAYMOVE): Define here instead.
5870 [__USE_GNU] (MREMAP_FIXED): Likewise.
5871 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_GNU]
5872 (MREMAP_MAYMOVE): Remove.
5873 [__USE_GNU] (MREMAP_FIXED): Likewise.
5874
5875 2018-09-28 Joseph Myers <joseph@codesourcery.com>
5876
5877 * math/fromfp.h: Do not include <math_private.h>.
5878 * math/s_cacosh_template.c: Likewise.
5879 * math/s_casin_template.c: Likewise.
5880 * math/s_casinh_template.c: Likewise.
5881 * math/s_ccos_template.c: Likewise.
5882 * math/s_cproj_template.c: Likewise.
5883 * math/s_fdim_template.c: Likewise.
5884 * math/s_fmaxmag_template.c: Likewise.
5885 * math/s_fminmag_template.c: Likewise.
5886 * math/s_iseqsig_template.c: Likewise.
5887 * math/s_ldexp_template.c: Likewise.
5888 * math/s_nextdown_template.c: Likewise.
5889 * math/w_log1p_template.c: Likewise.
5890 * math/w_scalbln_template.c: Likewise.
5891 * sysdeps/aarch64/fpu/feholdexcpt.c: Likewise.
5892 * sysdeps/aarch64/fpu/fesetround.c: Likewise.
5893 * sysdeps/aarch64/fpu/fgetexcptflg.c: Likewise.
5894 * sysdeps/aarch64/fpu/ftestexcept.c: Likewise.
5895 * sysdeps/aarch64/fpu/s_llrint.c: Likewise.
5896 * sysdeps/aarch64/fpu/s_llrintf.c: Likewise.
5897 * sysdeps/aarch64/fpu/s_lrint.c: Likewise.
5898 * sysdeps/aarch64/fpu/s_lrintf.c: Likewise.
5899 * sysdeps/i386/fpu/s_atanl.c: Likewise.
5900 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
5901 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
5902 * sysdeps/i386/fpu/s_fdim.c: Likewise.
5903 * sysdeps/i386/fpu/s_logbl.c: Likewise.
5904 * sysdeps/i386/fpu/s_rintl.c: Likewise.
5905 * sysdeps/i386/fpu/s_significandl.c: Likewise.
5906 * sysdeps/ia64/fpu/s_matherrf.c: Likewise.
5907 * sysdeps/ia64/fpu/s_matherrl.c: Likewise.
5908 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
5909 * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
5910 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
5911 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
5912 * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
5913 * sysdeps/ieee754/k_standardf.c: Likewise.
5914 * sysdeps/ieee754/k_standardl.c: Likewise.
5915 * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
5916 * sysdeps/ieee754/ldbl-64-128/s_finitel.c: Likewise.
5917 * sysdeps/ieee754/ldbl-64-128/s_fpclassifyl.c: Likewise.
5918 * sysdeps/ieee754/ldbl-64-128/s_isinfl.c: Likewise.
5919 * sysdeps/ieee754/ldbl-64-128/s_isnanl.c: Likewise.
5920 * sysdeps/ieee754/ldbl-64-128/s_signbitl.c: Likewise.
5921 * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
5922 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
5923 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
5924 * sysdeps/ieee754/s_signgam.c: Likewise.
5925 * sysdeps/powerpc/power5+/fpu/s_modf.c: Likewise.
5926 * sysdeps/powerpc/power5+/fpu/s_modff.c: Likewise.
5927 * sysdeps/powerpc/power7/fpu/s_logbf.c: Likewise.
5928 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
5929 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
5930 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
5931 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
5932 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
5933 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
5934 * sysdeps/riscv/rvd/s_finite.c: Likewise.
5935 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
5936 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
5937 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
5938 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
5939 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
5940 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
5941 * sysdeps/riscv/rvf/fegetround.c: Likewise.
5942 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
5943 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
5944 * sysdeps/riscv/rvf/fesetround.c: Likewise.
5945 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
5946 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
5947 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
5948 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
5949 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
5950 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
5951 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
5952 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
5953 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
5954 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
5955 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
5956 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
5957 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
5958 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
5959 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
5960 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
5961 * sysdeps/riscv/rv64/rvd/s_rint.c: Include <stdbool.h> instead of
5962 <math_private.h>.
5963 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
5964
5965 2018-09-28 H.J. Lu <hongjiu.lu@intel.com>
5966
5967 [BZ #23716]
5968 * sysdeps/i386/dl-cet.c: Removed.
5969 * sysdeps/i386/dl-machine.h (_dl_runtime_resolve_shstk): New
5970 prototype.
5971 (_dl_runtime_profile_shstk): Likewise.
5972 (elf_machine_runtime_setup): Use _dl_runtime_profile_shstk or
5973 _dl_runtime_resolve_shstk if SHSTK is enabled by kernel.
5974
5975 2018-09-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5976
5977 [BZ #23579]
5978 * misc/tst-preadvwritev2-common.c (do_test_with_invalid_fd,
5979 do_test_with_invalid_iov): New tests.
5980 * misc/tst-preadvwritev2.c, misc/tst-preadvwritev64v2.c (do_test):
5981 Call do_test_with_invalid_fd and do_test_with_invalid_iov.
5982 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Use fallback code iff
5983 errno is ENOSYS.
5984 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
5985 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
5986 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likewise.
5987
5988 2018-09-27 Joseph Myers <joseph@codesourcery.com>
5989
5990 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
5991 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT]
5992 (MATH_REDIRECT_BINARY_ARGS): New macro.
5993 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
5994 && !NO_MATH_REDIRECT] (copysign): Redirect using MATH_REDIRECT.
5995 * sysdeps/alpha/fpu/s_copysign.c: Define NO_MATH_REDIRECT before
5996 header inclusion.
5997 * sysdeps/alpha/fpu/s_copysignf.c: Likewise.
5998 * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
5999 * sysdeps/ieee754/float128/s_copysignf128.c: Likewise.
6000 * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
6001 * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
6002 * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
6003 * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
6004 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
6005 Likewise.
6006 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c:
6007 Likewise.
6008 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Likewise.
6009 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: Likewise.
6010 * sysdeps/riscv/rvd/s_copysign.c: Likewise.
6011 * sysdeps/riscv/rvf/s_copysignf.c: Likewise.
6012 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c:
6013 Likewise.
6014 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.c:
6015 Likewise.
6016 * sysdeps/generic/math_private_calls.h
6017 [!__MATH_DECLARING_LONG_DOUBLE || !NO_LONG_DOUBLE] (__copysign):
6018 Do not declare and define as an inline function.
6019 * math/divtc3.c (__divtc3): Use copysign functions instead of
6020 __copysign variants.
6021 * math/multc3.c (__multc3): Likewise.
6022 * sysdeps/generic/math-type-macros.h (M_COPYSIGN): Likewise.
6023 * sysdeps/ieee754/dbl-64/e_atan2.c (signArctan2): Likewise.
6024 * sysdeps/ieee754/dbl-64/e_atanh.c (__ieee754_atanh): Likewise.
6025 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
6026 Likewise.
6027 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
6028 (__ieee754_yn): Likewise.
6029 * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
6030 * sysdeps/ieee754/dbl-64/s_atan.c (__signArctan): Likewise.
6031 * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): Likewise.
6032 * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
6033 * sysdeps/ieee754/dbl-64/s_sin.c (do_sin): Likewise.
6034 (__sin): Likewise.
6035 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
6036 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
6037 Likewise.
6038 * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
6039 Likewise.
6040 * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
6041 Likewise.
6042 * sysdeps/ieee754/flt-32/e_atanhf.c (__ieee754_atanhf): Likewise.
6043 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
6044 Likewise.
6045 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise.
6046 (__ieee754_ynf): Likewise.
6047 * sysdeps/ieee754/flt-32/s_asinhf.c (__asinhf): Likewise.
6048 * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
6049 * sysdeps/ieee754/k_standard.c (__kernel_standard): Likewise.
6050 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
6051 Likewise.
6052 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
6053 (__ieee754_ynl): Likewise.
6054 * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
6055 * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
6056 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
6057 Likewise.
6058 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
6059 (__ieee754_ynl): Likewise.
6060 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c (__fmal): Likewise.
6061 * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
6062 * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
6063 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
6064 Likewise.
6065 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
6066 (__ieee754_ynl)
6067 * sysdeps/ieee754/ldbl-96/s_asinhl.c (__asinhl): Likewise.
6068 * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
6069 * sysdeps/ieee754/ldbl-opt/nldbl-copysign.c (copysignl): Likewise.
6070 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
6071 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
6072
6073 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
6074 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (round): Redirect
6075 using MATH_REDIRECT.
6076 * sysdeps/aarch64/fpu/s_round.c: Define NO_MATH_REDIRECT before
6077 header inclusion.
6078 * sysdeps/aarch64/fpu/s_roundf.c: Likewise.
6079 * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
6080 * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
6081 * sysdeps/ieee754/float128/s_roundf128.c: Likewise.
6082 * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
6083 * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
6084 * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
6085 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c: Likewise.
6086 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c: Likewise.
6087 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: Likewise.
6088 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Likewise.
6089 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
6090 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
6091 * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
6092 (round): Redirect to __round.
6093 (__roundl): Call round instead of __round.
6094 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__round):
6095 Remove macro.
6096 [_ARCH_PWR5X] (__roundf): Likewise.
6097 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Use round
6098 functions instead of __round variants.
6099 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
6100 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive):
6101 Likewise.
6102 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive):
6103 Likewise.
6104 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive):
6105 Likewise.
6106 * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Likewise.
6107 * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lroundl): Redirect to
6108 __lroundl.
6109 (__ieee754_expl): Call roundl instead of __roundl.
6110
6111 2018-09-27 Andreas Schwab <schwab@suse.de>
6112
6113 [BZ #23717]
6114 * stdlib/tst-setcontext9.c (f1a): Make st2 static.
6115 (do_test): Make st1 static.
6116
6117 2018-09-26 Andreas Schwab <schwab@suse.de>
6118
6119 [BZ #23707]
6120 * sysdeps/powerpc/powerpc32/dl-start.S: Add unwind information.
6121 * elf/Makefile (tests): Add tst-unwind-ctor.
6122 (modules-names): Add tst-unwind-ctor-lib.
6123 ($(objpfx)tst-unwind-ctor): Depend on
6124 $(objpfx)tst-unwind-ctor-lib.so.
6125
6126 2018-09-26 Joseph Myers <joseph@codesourcery.com>
6127
6128 * sysdeps/unix/sysv/linux/bits/mman-map-flags-generic.h: New
6129 file. Most contents moved from ....
6130 * sysdeps/unix/sysv/linux/bits/mman.h: ... here. Move contents to
6131 and include <bits/mman-map-flags-generic.h>.
6132 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
6133 (sysdep_headers): Add bits/mman-map-flags-generic.h.
6134 * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Include
6135 <bits/mman-map-flags-generic.h>.
6136 [__USE_MISC] (MAP_GROWSUP): Only define this macro, not other
6137 macros defined in <bits/mman-map-flags-generic.h>.
6138 * sysdeps/unix/sysv/linux/x86/bits/mman.h: Include
6139 <bits/mman-map-flags-generic.h>.
6140 [__USE_MISC] (MAP_32BIT): Only define this macro, not other macros
6141 defined in <bits/mman-map-flags-generic.h>.
6142
6143 2018-09-26 Andreas Schwab <schwab@suse.de>
6144
6145 * Makefile ($(common-objpfx)testrun.sh): Remove leading space from
6146 output.
6147
6148 2018-09-25 Adam J. Richte <adam_richter2004@yahoo.com>
6149 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6150 Fangrui Song <maskray@google.com>
6151
6152 [BZ #20480]
6153 * config.make.in (have-textrel_ifunc): New define.
6154 * configure.ac: Add check if linker supports textrel relocation with
6155 ifunc.
6156 * elf/Makefile [have-textrel_ifunc == yes] (ifunc-pie-tests): Add
6157 tst-ifunc-textrel.
6158 (CFLAGS-tst-ifunc-textrel.c): New rule.
6159 * elf/dl-reloc.c (_dl_relocate_object): Use all required flags on
6160 DT_TEXTREL segments, not only PROT_READ and PROT_WRITE.
6161 * elf/tst-ifunc-textrel.c: New file.
6162
6163 2018-09-25 Joseph Myers <joseph@codesourcery.com>
6164
6165 * sysdeps/unix/sysv/linux/sys/procfs.h: Include
6166 <bits/procfs-prregset.h>.
6167 (prgregset_t): Define using __prgregset_t.
6168 (prfpregset_t): Define using __prfpregset_t.
6169 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
6170 (sysdep_headers): Add bits/procfs-prregset.h.
6171 * sysdeps/unix/sysv/linux/bits/procfs-prregset.h: New file.
6172 * sysdeps/unix/sysv/linux/alpha/bits/procfs-prregset.h: Likewise.
6173 * sysdeps/unix/sysv/linux/alpha/bits/procfs.h: Likewise.
6174 * sysdeps/unix/sysv/linux/alpha/sys/procfs.h: Remove file.
6175
6176 * sysdeps/unix/sysv/linux/sys/procfs.h: Include
6177 <bits/procfs-id.h> and <bits/procfs-extra.h>.
6178 (struct elf_prpsinfo): Use __pr_uid_t and __pr_gid_t as types of
6179 pr_uid and pr_gid.
6180 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
6181 (sysdep_headers): Add bits/procfs-id.h and bits/procfs-extra.h.
6182 * sysdeps/unix/sysv/linux/bits/procfs-extra.h: New file.
6183 * sysdeps/unix/sysv/linux/bits/procfs-id.h: Likewise.
6184 * sysdeps/unix/sysv/linux/arm/bits/procfs-id.h: Likewise.
6185 * sysdeps/unix/sysv/linux/arm/bits/procfs.h: Likewise.
6186 * sysdeps/unix/sysv/linux/m68k/bits/procfs-id.h: Likewise.
6187 * sysdeps/unix/sysv/linux/m68k/bits/procfs.h: Likewise.
6188 * sysdeps/unix/sysv/linux/s390/bits/procfs-extra.h: Likewise.
6189 * sysdeps/unix/sysv/linux/s390/bits/procfs-id.h: Likewise.
6190 * sysdeps/unix/sysv/linux/s390/bits/procfs.h: Likewise.
6191 * sysdeps/unix/sysv/linux/sh/bits/procfs-id.h: Likewise.
6192 * sysdeps/unix/sysv/linux/sh/bits/procfs.h: Likewise.
6193 * sysdeps/unix/sysv/linux/sparc/bits/procfs-extra.h: Likewise.
6194 * sysdeps/unix/sysv/linux/sparc/bits/procfs-id.h: Likewise.
6195 * sysdeps/unix/sysv/linux/sparc/bits/procfs.h: Likewise.
6196 * sysdeps/unix/sysv/linux/x86/bits/procfs-id.h: Likewise.
6197 * sysdeps/unix/sysv/linux/x86/bits/procfs.h: Likewise.
6198 * sysdeps/unix/sysv/linux/arm/sys/procfs.h: Remove file.
6199 * sysdeps/unix/sysv/linux/m68k/sys/procfs.h: Likewise.
6200 * sysdeps/unix/sysv/linux/s390/sys/procfs.h: Likewise.
6201 * sysdeps/unix/sysv/linux/sh/sys/procfs.h: Likewise.
6202 * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Likewise.
6203 * sysdeps/unix/sysv/linux/x86/sys/procfs.h: Likewise.
6204
6205 * sysdeps/unix/sysv/linux/sys/procfs.h: Replace with file based on
6206 AArch64 version. Include <bits/procfs.h>.
6207 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
6208 (sysdep_headers): Add bits/procfs.h.
6209 * sysdeps/unix/sysv/linux/bits/procfs.h: New file.
6210 * sysdeps/unix/sysv/linux/aarch64/bits/procfs.h: Likewise.
6211 * sysdeps/unix/sysv/linux/hppa/bits/procfs.h: Likewise.
6212 * sysdeps/unix/sysv/linux/ia64/bits/procfs.h: Likewise.
6213 * sysdeps/unix/sysv/linux/microblaze/bits/procfs.h: Likewise.
6214 * sysdeps/unix/sysv/linux/mips/bits/procfs.h: Likewise.
6215 * sysdeps/unix/sysv/linux/nios2/bits/procfs.h: Likewise.
6216 * sysdeps/unix/sysv/linux/powerpc/bits/procfs.h: Likewise.
6217 * sysdeps/unix/sysv/linux/riscv/bits/procfs.h: Likewise.
6218 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Remove file.
6219 * sysdeps/unix/sysv/linux/hppa/sys/procfs.h: Likewise.
6220 * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Likewise.
6221 * sysdeps/unix/sysv/linux/microblaze/sys/procfs.h: Likewise.
6222 * sysdeps/unix/sysv/linux/mips/sys/procfs.h: Likewise.
6223 * sysdeps/unix/sysv/linux/nios2/sys/procfs.h: Likewise.
6224 * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: Likewise.
6225 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h: Likewise.
6226
6227 2018-09-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6228
6229 * posix/tst-spawn.c (do_prepare, handle_restart, do_test):
6230 Use libsupport.
6231
6232 2018-09-25 Arjun Shankar <arjun@redhat.com>
6233
6234 * iconv/gconv_int.h (__gconv_path_elem): Remove.
6235 (__gconv_max_path_elem_len): Likewise.
6236 (__gconv_nmodules): Likewise.
6237 (__gconv_get_path): Likewise.
6238 (path_elem): Move to ...
6239 * iconv/gconv_conf.c: ... here.
6240 (__gconv_get_path): Mark function static.
6241 * iconv/gconv_int.h (GCONV_NCHAR_GOAL): Move to ...
6242 * iconv/gconv_open.c: ... here.
6243
6244 2018-09-24 Andreas Schwab <schwab@suse.de>
6245
6246 * scripts/haveversions.awk: New file.
6247 * Makerules ($(common-objpfx)Versions.def)
6248 ($(common-objpfx)Versions.all, $(common-objpfx)Versions.v.i)
6249 ($(common-objpfx)sysd-versions, $(common-objpfx)versions.stmp):
6250 Move rules ...
6251 * Makeconfig ($(common-objpfx)Versions.def)
6252 ($(common-objpfx)Versions.all, $(common-objpfx)Versions.v.i)
6253 ($(common-objpfx)sysd-versions, $(common-objpfx)versions.stmp):
6254 ... here.
6255 ($(common-objpfx)Versions.mk): New rule. Include it.
6256 * nis/Makefile [!have-GLIBC_2.28]: Don't build any targets.
6257 Emit error if build-obsolete-nsl = yes.
6258 * manual/install.texi (Configuring and compiling): Describe
6259 --enable-obsolete-nsl as unavaiable after version 2.28.
6260 * INSTALL: Regenerate.
6261
6262 2018-09-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6263
6264 * NEWS: Add note about new TLE support on powerpc64le.
6265 * sysdeps/powerpc/nptl/tcb-offsets.sym (TM_CAPABLE): Remove.
6266 * sysdeps/powerpc/nptl/tls.h (tcbhead_t): Rename tm_capable to
6267 __ununsed1.
6268 (TLS_INIT_TP, TLS_DEFINE_INIT_TP): Remove tm_capable setup.
6269 (THREAD_GET_TM_CAPABLE, THREAD_SET_TM_CAPABLE): Remove macros.
6270 * sysdeps/powerpc/powerpc32/sysdep.h,
6271 sysdeps/powerpc/powerpc64/sysdep.h (ABORT_TRANSACTION_IMPL,
6272 ABORT_TRANSACTION): Remove macros.
6273 * sysdeps/powerpc/sysdep.h (ABORT_TRANSACTION): Likewise.
6274 * sysdeps/unix/sysv/linux/powerpc/elision-conf.c (elision_init): Set
6275 __pthread_force_elision iff PPC_FEATURE2_HTM_NOSC is set.
6276 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h,
6277 sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
6278 sysdeps/unix/sysv/linux/powerpc/syscall.S (ABORT_TRANSACTION): Remove
6279 usage.
6280 * sysdeps/unix/sysv/linux/powerpc/not-errno.h: Remove file.
6281
6282 2018-09-21 Rafal Luzynski <digitalfreak@lingonborough.com>
6283
6284 [BZ #10425]
6285 * localedata/locales/it_IT (d_t_fmt): Use "%a %-d %b %Y, %T".
6286 (date_fmt): Use "%a %-d %b %Y, %T, %Z".
6287 * localedata/locales/it_CH (d_t_fmt): Use "%a %-d %b %Y, %T"
6288 which is the same as in it_IT.
6289 (d_fmt): Use "%d.%m.%Y" which is the same as in de_CH.
6290 (date_fmt): Use "%a %-d %b %Y, %T, %Z" which is the same as in it_IT.
6291
6292 2018-09-20 Joseph Myers <joseph@codesourcery.com>
6293
6294 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
6295 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (trunc): Redirect
6296 using MATH_REDIRECT.
6297 * sysdeps/aarch64/fpu/s_trunc.c: Define NO_MATH_REDIRECT before
6298 header inclusion.
6299 * sysdeps/aarch64/fpu/s_truncf.c: Likewise.
6300 * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
6301 * sysdeps/ieee754/float128/s_truncf128.c: Likewise.
6302 * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
6303 * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
6304 * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
6305 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c: Likewise.
6306 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c: Likewise.
6307 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: Likewise.
6308 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Likewise.
6309 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
6310 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
6311 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Likewise.
6312 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Likewise.
6313 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Likewise.
6314 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Likewise.
6315 * sysdeps/m68k/m680x0/fpu/s_trunc_template.c: Likewise.
6316 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
6317 (ceil): Redirect to __ceil.
6318 (floor): Redirect to __floor.
6319 (trunc): Redirect to __trunc.
6320 (__truncl): Call trunc instead of __trunc.
6321 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__trunc):
6322 Remove macro.
6323 [_ARCH_PWR5X] (__truncf): Likewise.
6324 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r): Use
6325 trunc functions instead of __trunc variants.
6326 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
6327 Likewise.
6328 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
6329 Likewise.
6330 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
6331 Likewise.
6332 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
6333 Likewise.
6334
6335 * sysdeps/x86/cpu-features.h [__geode__ || __k6__]: Handle like
6336 [__i586__ || __pentium__].
6337 [__i486__]: Handle explicitly.
6338 (HAS_CPUID): Define to 1 if above macros are undefined.
6339 (HAS_I586): Likewise.
6340 (HAS_I686): Likewise.
6341
6342 2018-09-20 Florian Weimer <fweimer@redhat.com>
6343
6344 * misc/tst-gethostid.c: New file.
6345 * misc/Makefile [$(build-shared)] (tests): Add tst-gethostid.
6346 (tst-gethostid): Link with -ldl.
6347
6348 2018-09-20 Mingli Yu <Mingli.Yu@windriver.com>
6349
6350 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Check for NULL
6351 value from gethostbyname_r.
6352
6353 2018-09-19 Carlos O'Donell <carlos@redhat.com>
6354
6355 * stdlib/tst-setcontext9.c (f1): Rename to...
6356 (f1a): ... this.
6357 (f1b): New function implementing lower half of f1 in alternate stack.
6358
6359 2018-09-19 Paul Eggert <eggert@cs.ucla.edu>
6360
6361 Fix mktime localtime offset confusion
6362 [BZ #23603]
6363 * include/time.h (__mktime_internal): The localtime offset is now
6364 of type long int instead of time_t. This is the longstanding type
6365 in glibc, and it is more than enough to represent difference
6366 between localtime and gmtime even if it is 32 bits and time_t is
6367 64. Changing it now will let us avoid an unnecessary change when
6368 time_t is widened to 64 bits on 32-bit platforms.
6369 * time/mktime-internal.h (mktime_offset_t): Now long int.
6370
6371 Merge mktime, timegm from upstream Gnulib
6372 [BZ #23603][BZ #16346]
6373 This fixes some obscure problems with integer overflow.
6374 Although it looks scary, it is almost all a byte-for-byte copy
6375 from Gnulib, and the Gnulib code has been tested reasonably well.
6376 * include/intprops.h: New file, copied from Gnulib.
6377 * include/verify.h, time/mktime-internal.h:
6378 New tiny files, simplified from Gnulib.
6379 * time/mktime.c: Copy from Gnulib. This has the following changes:
6380 Do not include config.h if DEBUG_MKTIME is nonzero.
6381 Include stdbool.h, intprops.h, verify.h.
6382 Include string.h only if needed.
6383 Include stdlib.h on MS-Windows.
6384 Include mktime-internal.h.
6385 (DEBUG_MKTIME): Default to 0, and simplify later uses.
6386 (NEED_MKTIME_INTERNAL, NEED_MKTIME_WINDOWS)
6387 (NEED_MKTIME_WORKING): Give default values to pacify -Wundef,
6388 which glibc uses. Default NEED_MKTIME_WORKING to DEBUG_MKTIME, to
6389 simplify later conditionals; default the others to zero. Use
6390 these conditionals to express only the code needed on the current
6391 platform. In uses of these conditionals, explicitly spell out how
6392 _LIBC affects things, so it’s easier to review from a glibc
6393 viewpoint.
6394 (WRAPV): Remove; no longer needed now that we have
6395 systematic overflow checking.
6396 (my_tzset, __tzset) [!_LIBC]: New function and macro, to better
6397 compartmentalize tzset issues. Move system-dependent tzsettish
6398 code here from mktime.
6399 (verify): Remove; now done by verify.h. All uses changed.
6400 (long_int): Use a more-conservative definition, to avoid
6401 integer overflow.
6402 (SHR): Remove, replacing with ...
6403 (shr): New function, which means we needn’t worry about side
6404 effects in args, and conversion analysis is simpler.
6405 (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT, TYPE_SIGNED, TYPE_MINIMUM)
6406 (TYPE_MAXIMUM, TIME_T_MIN, TIME_T_MAX, TIME_T_MIDPOINT)
6407 (time_t_avg, time_t_add_ok): Remove.
6408 (mktime_min, mktime_max): New constants.
6409 (leapyear, isdst_differ): Use bool for booleans.
6410 (ydhms_diff, guess_time_tm, ranged_convert, __mktime_internal):
6411 Use long_int, not time_t, for mktime differences.
6412 (long_int_avg): New function, replacing time_t_avg.
6413 INT_ADD_WRAPV replaces time_t_add_ok.
6414 (guess_time_tm): 6th arg is now long_int, not time_t const *.
6415 All uses changed.
6416 (convert_time): New function.
6417 (ranged_convert): Use it.
6418 (__mktime_internal): Last arg now points to mktime_offset_t, not
6419 time_t. All uses changed. This is a no-op on glibc, where
6420 mktime_offset_t is always time_t. Use int, not time_t, for UTC
6421 offset guess. Directly check for integer overflow instead of
6422 using a heuristic that works only 99.9...% of the time.
6423 Access *OFFSET only once, to avoid an unlikely race if the
6424 compiler delays a load and if this cascades into a signed integer
6425 overflow.
6426 (mktime): Move tzsettish code to my_tzset, and move
6427 localtime_offset to within mktime so that it doesn’t
6428 need a separate ifdef.
6429 (main) [DEBUG_MKTIME]: Speed up by using localtime_r
6430 instead of localtime.
6431 * time/timegm.c: Copy from Gnulib. This has the following changes:
6432 Include mktime-internal.h.
6433 [!_LIBC]: Include config.h and time.h. Do not include
6434 timegm.h or time_r.h. Make __mktime_internal a macro,
6435 and include mktime-internal.h to get its declaration.
6436 (timegm): Temporary is now mktime_offset_t, not time_t.
6437 This affects only Gnulib.
6438
6439 2018-09-19 Wilco Dijkstra <wdijkstr@arm.com>
6440
6441 [BZ #23637]
6442 * string/test-strstr.c (pr23637): New function.
6443 (test_main): Add tests with longer needles.
6444 * string/strcasestr.c (AVAILABLE): Fix readahead distance.
6445 * string/strstr.c (AVAILABLE): Likewise.
6446
6447 2018-09-19 Szabolcs Nagy <szabolcs.nagy@arm.com>
6448
6449 * sysdeps/ieee754/flt-32/e_powf.c (checkint): Fix documentation.
6450
6451 2018-09-19 Szabolcs Nagy <szabolcs.nagy@arm.com>
6452
6453 * NEWS: Mention pow improvements.
6454 * math/Makefile (type-double-routines): Add e_pow_log_data.
6455 * sysdeps/generic/math_private.h (__exp1): Remove.
6456 * sysdeps/i386/fpu/e_pow_log_data.c: New file.
6457 * sysdeps/ia64/fpu/e_pow_log_data.c: New file.
6458 * sysdeps/ieee754/dbl-64/Makefile (CFLAGS-e_pow.c): Allow fma
6459 contraction.
6460 * sysdeps/ieee754/dbl-64/e_exp.c (__exp1): Remove.
6461 (exp_inline): Remove.
6462 (__ieee754_exp): Only single double input is handled.
6463 * sysdeps/ieee754/dbl-64/e_pow.c: Rewrite.
6464 * sysdeps/ieee754/dbl-64/e_pow_log_data.c: New file.
6465 * sysdeps/ieee754/dbl-64/math_config.h (issignaling_inline): Define.
6466 (__pow_log_data): Define.
6467 * sysdeps/ieee754/dbl-64/upow.h: Remove.
6468 * sysdeps/ieee754/dbl-64/upow.tbl: Remove.
6469 * sysdeps/m68k/m680x0/fpu/e_pow_log_data.c: New file.
6470 * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_pow-fma.c): Allow fma
6471 contraction.
6472 (CFLAGS-e_pow-fma4.c): Likewise.
6473
6474 2018-09-18 Paul Eggert <eggert@cs.ucla.edu>
6475
6476 Simplify tzfile fstat failure code
6477 [BZ #21716]
6478 * time/tzfile.c (__tzfile_read): Simplify slightly.
6479
6480 Fix tzfile low-memory assertion failure
6481 [BZ #21716]
6482 * time/tzfile.c (__tzfile_read): Check for memory exhaustion
6483 when registering time zone abbreviations.
6484
6485 2018-09-18 Joseph Myers <joseph@codesourcery.com>
6486
6487 * sysdeps/unix/sysv/linux/bits/mman.h: New file.
6488 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h: Remove.
6489 * sysdeps/unix/sysv/linux/arm/bits/mman.h: Likewise.
6490 * sysdeps/unix/sysv/linux/m68k/bits/mman.h: Likewise.
6491 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h: Likewise.
6492 * sysdeps/unix/sysv/linux/nios2/bits/mman.h: Likewise.
6493 * sysdeps/unix/sysv/linux/riscv/bits/mman.h: Likewise.
6494 * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
6495 * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
6496
6497 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c (ceil): Redirect to
6498 __ceil.
6499 (__ceill): Call ceil instead of __ceil.
6500 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c (floor): Redirect to
6501 __floor.
6502 (__floorl): Call floor instead of __floor.
6503
6504 2018-09-17 Joseph Myers <joseph@codesourcery.com>
6505
6506 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
6507 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (ceil): Redirect
6508 using MATH_REDIRECT.
6509 * sysdeps/aarch64/fpu/s_ceil.c: Define NO_MATH_REDIRECT before
6510 header inclusion.
6511 * sysdeps/aarch64/fpu/s_ceilf.c: Likewise.
6512 * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
6513 * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
6514 * sysdeps/ieee754/float128/s_ceilf128.c: Likewise.
6515 * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
6516 * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
6517 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
6518 * sysdeps/m68k/m680x0/fpu/s_ceil_template.c: Likewise.
6519 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: Likewise.
6520 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c: Likewise.
6521 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: Likewise.
6522 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Likewise.
6523 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
6524 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
6525 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Likewise.
6526 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Likewise.
6527 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Likewise.
6528 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Likewise.
6529 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__ceil):
6530 Remove macro.
6531 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Use ceil
6532 functions instead of __ceil variants.
6533 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
6534 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive):
6535 Likewise.
6536 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive):
6537 Likewise.
6538 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Likewise.
6539 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive):
6540 Likewise.
6541 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
6542 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
6543
6544 [BZ #21286]
6545 * sysdeps/unix/sysv/linux/bits/siginfo-consts.h (SI_DETHREAD): New
6546 constant.
6547 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (ILL_BADIADDR): Likewise.
6548 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (FPE_FLTUNK): Likewise.
6549 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (FPE_CONDTRAP): Likewise.
6550 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ACCADI): Likewise.
6551 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ADIDERR): Likewise.
6552 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ADIPERR): Likewise.
6553 [__USE_XOPEN_EXTENDED] (TRAP_BRANCH): Likewise.
6554 [__USE_XOPEN_EXTENDED] (TRAP_HWBKPT): Likewise.
6555 [__USE_XOPEN_EXTENDED] (TRAP_UNK): Likweise.
6556 * sysdeps/unix/sysv/linux/ia64/bits/siginfo-consts-arch.h
6557 (ILL_BADIADDR): Remove constant.
6558 (TRAP_BRANCH): Likewise.
6559 (TRAP_HWBKPT): Likewise.
6560
6561 2018-09-14 Joseph Myers <joseph@codesourcery.com>
6562
6563 [BZ #23656]
6564 * sysdeps/unix/sysv/linux/mips/sys/procfs.h (struct elf_prstatus):
6565 Remove [_MIPS_SIM = _ABIN32] conditional case.
6566 (struct elf_prpsinfo): Likewise.
6567
6568 [BZ #23649]
6569 * sysdeps/unix/sysv/linux/microblaze/sys/procfs.h (struct
6570 elf_prpsinfo): Use unsigned int for pr_uid and pr_gid.
6571 * sysdeps/unix/sysv/linux/mips/sys/procfs.h (struct elf_prpsinfo):
6572 Likewise.
6573 * sysdeps/unix/sysv/linux/nios2/sys/procfs.h (struct
6574 elf_prpsinfo): Likewise.
6575 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h (struct
6576 elf_prpsinfo): Likewise.
6577 * sysdeps/unix/sysv/linux/sys/procfs.h (struct elf_prpsinfo):
6578 Likewise.
6579
6580 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
6581 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (rint): Redirect
6582 using MATH_REDIRECT.
6583 * sysdeps/aarch64/fpu/s_rint.c: Define NO_MATH_REDIRECT before
6584 header inclusion.
6585 * sysdeps/aarch64/fpu/s_rintf.c: Likewise.
6586 * sysdeps/alpha/fpu/s_rint.c: Likewise.
6587 * sysdeps/alpha/fpu/s_rintf.c: Likewise.
6588 * sysdeps/i386/fpu/s_rintl.c: Likewise.
6589 * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
6590 * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
6591 * sysdeps/ieee754/float128/s_rintf128.c: Likewise.
6592 * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
6593 * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
6594 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
6595 * sysdeps/m68k/coldfire/fpu/s_rint.c: Likewise.
6596 * sysdeps/m68k/coldfire/fpu/s_rintf.c: Likewise.
6597 * sysdeps/m68k/m680x0/fpu/s_rint.c: Likewise.
6598 * sysdeps/m68k/m680x0/fpu/s_rintf.c: Likewise.
6599 * sysdeps/m68k/m680x0/fpu/s_rintl.c: Likewise.
6600 * sysdeps/powerpc/fpu/s_rint.c: Likewise.
6601 * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
6602 * sysdeps/riscv/rv64/rvd/s_rint.c: Likewise.
6603 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
6604 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.c: Likewise.
6605 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.c: Likewise.
6606 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Likewise.
6607 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Likewise.
6608 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Likewise.
6609 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Likewise.
6610 * sysdeps/x86_64/fpu/math_private.h: Remove file.
6611 * math/e_scalb.c (invalid_fn): Use rint functions instead of
6612 __rint variants.
6613 * math/e_scalbf.c (invalid_fn): Likewise.
6614 * math/e_scalbl.c (invalid_fn): Likewise.
6615 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
6616 Likewise.
6617 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
6618 Likewise.
6619 * sysdeps/ieee754/k_standard.c (__kernel_standard): Likewise.
6620 * sysdeps/ieee754/k_standardl.c (__kernel_standard_l): Likewise.
6621 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
6622 Likewise.
6623 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
6624 Likewise.
6625 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
6626 Likewise.
6627 * sysdeps/powerpc/powerpc32/fpu/s_llrint.c (__llrint): Likewise.
6628 * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c (__llrintf): Likewise.
6629
6630 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
6631 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (MATH_REDIRECT):
6632 New macro.
6633 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
6634 && !NO_MATH_REDIRECT] (MATH_REDIRECT_LDBL): Likewise.
6635 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
6636 && !NO_MATH_REDIRECT] (MATH_REDIRECT_F128): Likewise.
6637 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
6638 && !NO_MATH_REDIRECT] (MATH_REDIRECT_UNARY_ARGS): Likewise.
6639 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
6640 && !NO_MATH_REDIRECT] (sqrt): Redirect using MATH_REDIRECT.
6641 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
6642 && !NO_MATH_REDIRECT] (floor): Likewise.
6643 * sysdeps/aarch64/fpu/s_floor.c: Define NO_MATH_REDIRECT before
6644 header inclusion.
6645 * sysdeps/aarch64/fpu/s_floorf.c: Likewise.
6646 * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
6647 * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
6648 * sysdeps/ieee754/float128/s_floorf128.c: Likewise.
6649 * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
6650 * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
6651 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
6652 * sysdeps/m68k/m680x0/fpu/s_floor_template.c: Likewise.
6653 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c: Likewise.
6654 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c: Likewise.
6655 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: Likewise.
6656 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Likewise.
6657 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
6658 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
6659 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Likewise.
6660 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Likewise.
6661 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Likewise.
6662 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Likewise.
6663 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__floor):
6664 Remove macro.
6665 [_ARCH_PWR5X] (__floorf): Likewise.
6666 * sysdeps/x86_64/fpu/math_private.h [__SSE4_1__] (__floor): Remove
6667 inline function.
6668 [__SSE4_1__] (__floorf): Likewise.
6669 * math/w_lgamma_main.c (LGFUNC (__lgamma)): Use floor functions
6670 instead of __floor variants.
6671 * math/w_lgamma_r_compat.c (__lgamma_r): Likewise.
6672 * math/w_lgammaf_main.c (LGFUNC (__lgammaf)): Likewise.
6673 * math/w_lgammaf_r_compat.c (__lgammaf_r): Likewise.
6674 * math/w_lgammal_main.c (LGFUNC (__lgammal)): Likewise.
6675 * math/w_lgammal_r_compat.c (__lgammal_r): Likewise.
6676 * math/w_tgamma_compat.c (__tgamma): Likewise.
6677 * math/w_tgamma_template.c (M_DECL_FUNC (__tgamma)): Likewise.
6678 * math/w_tgammaf_compat.c (__tgammaf): Likewise.
6679 * math/w_tgammal_compat.c (__tgammal): Likewise.
6680 * sysdeps/ieee754/dbl-64/e_lgamma_r.c (sin_pi): Likewise.
6681 * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2):
6682 Likewise.
6683 * sysdeps/ieee754/dbl-64/lgamma_neg.c (__lgamma_neg): Likewise.
6684 * sysdeps/ieee754/flt-32/e_lgammaf_r.c (sin_pif): Likewise.
6685 * sysdeps/ieee754/flt-32/lgamma_negf.c (__lgamma_negf): Likewise.
6686 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
6687 Likewise.
6688 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
6689 * sysdeps/ieee754/ldbl-128/lgamma_negl.c (__lgamma_negl):
6690 Likewise.
6691 * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Likewise.
6692 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c (__ieee754_lgammal_r):
6693 Likewise.
6694 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
6695 * sysdeps/ieee754/ldbl-128ibm/lgamma_negl.c (__lgamma_negl):
6696 Likewise.
6697 * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Likewise.
6698 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Likewise.
6699 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Likewise.
6700 * sysdeps/ieee754/ldbl-96/lgamma_negl.c (__lgamma_negl): Likewise.
6701 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
6702 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
6703
6704 2018-09-12 Joseph Myers <joseph@codesourcery.com>
6705
6706 * elf/Makefile (modules-names-tests): New variable.
6707
6708 2018-09-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
6709
6710 * NEWS: Mention log2 improvements.
6711 * math/Makefile (type-double-routines): Add e_log2_data.
6712 * sysdeps/i386/fpu/e_log2_data.c: New file.
6713 * sysdeps/ia64/fpu/e_log2_data.c: New file.
6714 * sysdeps/ieee754/dbl-64/e_log2.c: Rewrite.
6715 * sysdeps/ieee754/dbl-64/e_log2_data.c: New file.
6716 * sysdeps/ieee754/dbl-64/math_config.h (__log2_data): Add.
6717 * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: Remove.
6718 * sysdeps/m68k/m680x0/fpu/e_log2_data.c: New file.
6719
6720 2018-09-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
6721
6722 * NEWS: Mention log improvement.
6723 * math/Makefile (type-double-routines): Add e_log_data.
6724 * sysdeps/i386/fpu/e_log_data.c: New file.
6725 * sysdeps/ia64/fpu/e_log_data.c: New file.
6726 * sysdeps/ieee754/dbl-64/e_log.c: Rewrite.
6727 * sysdeps/ieee754/dbl-64/e_log_data.c: New file.
6728 * sysdeps/ieee754/dbl-64/math_config.h (__log_data): Add.
6729 * sysdeps/ieee754/dbl-64/ulog.h: Remove.
6730 * sysdeps/ieee754/dbl-64/ulog.tbl: Remove.
6731 * sysdeps/m68k/m680x0/fpu/e_log_data.c: New file.
6732
6733 2018-09-12 H.J. Lu <hongjiu.lu@intel.com>
6734 Xuepeng Guo <xuepeng.guo@intel.com>
6735
6736 [BZ #23606]
6737 * sysdeps/i386/start.S: Include <sysdep.h>
6738 (_start): Use ENTRY/END to insert ENDBR32 at entry when CET is
6739 enabled. Add cfi_undefined (eip).
6740
6741 2018-09-11 Joseph Myers <joseph@codesourcery.com>
6742
6743 * sysdeps/x86_64/fpu/math_private.h (MOVD): Remove macro.
6744 (MOVQ): Likewise.
6745 (EXTRACT_WORDS64): Likewise.
6746 (INSERT_WORDS64): Likewise.
6747 (GET_FLOAT_WORD): Likewise.
6748 (SET_FLOAT_WORD): Likewise.
6749
6750 * scripts/build-many-glibcs.py (Context.__init__): Add full_gcc
6751 argument.
6752 (Config.build_gcc): Use --disable-libsanitizer for first GCC
6753 build, but not for second build if --full-gcc. Use
6754 --enable-languages=all for second build if --full-gcc.
6755 (get_parser): Add --full-gcc option.
6756 (main): Update call to Context.
6757
6758 2018-09-10 Rafal Luzynski <digitalfreak@lingonborough.com>
6759
6760 [BZ #10797]
6761 * localedata/locales/de_CH (mon_thousands_sep): Use "<U2019>" (Right
6762 Single Quotation Mark).
6763 (thousands_sep): Likewise.
6764 * localedata/locales/it_CH (LC_NUMERIC): Use “copy "de_CH"”.
6765 * localedata/locales/it_IT (thousands_sep): Use ".".
6766 (grouping): Use "3;3".
6767
6768 2018-09-10 Joseph Myers <joseph@codesourcery.com>
6769
6770 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
6771 x86_64 and i686 configs using --enable-obsolete-rpc
6772 --enable-obsolete-nsl.
6773
6774 2018-09-06 Stefan Liebler <stli@linux.ibm.com>
6775
6776 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
6777
6778 2018-09-06 Stefan Liebler <stli@linux.ibm.com>
6779
6780 * sysdeps/unix/sysv/linux/spawni.c (maybe_script_execute):
6781 Increment size of new_argv by one.
6782
6783 2018-09-05 Rafal Luzynski <digitalfreak@lingonborough.com>
6784
6785 [BZ #17426]
6786 * localedata/locales/anp_IN (d_fmt): Use "%-d//%-m//%y".
6787 * localedata/locales/ar_IN (d_fmt): Likewise.
6788 * localedata/locales/bhb_IN (d_fmt): Likewise.
6789 * localedata/locales/bho_IN (d_fmt): Likewise.
6790 * localedata/locales/bn_BD (d_fmt): Likewise.
6791 * localedata/locales/bn_IN (d_fmt): Likewise.
6792 * localedata/locales/doi_IN (d_fmt): Likewise.
6793 * localedata/locales/gu_IN (d_fmt): Likewise.
6794 * localedata/locales/hi_IN (d_fmt): Likewise.
6795 * localedata/locales/hne_IN (d_fmt): Likewise.
6796 * localedata/locales/kn_IN (d_fmt): Likewise.
6797 * localedata/locales/mag_IN (d_fmt): Likewise.
6798 * localedata/locales/mai_IN (d_fmt): Likewise.
6799 * localedata/locales/mjw_IN (d_fmt): Likewise.
6800 * localedata/locales/ml_IN (d_fmt): Likewise.
6801 * localedata/locales/mni_IN (d_fmt): Likewise.
6802 * localedata/locales/mr_IN (d_fmt): Likewise.
6803 * localedata/locales/pa_IN (d_fmt): Likewise.
6804 * localedata/locales/raj_IN (d_fmt): Likewise.
6805 * localedata/locales/sat_IN (d_fmt): Likewise.
6806 * localedata/locales/sd_IN (d_fmt): Likewise.
6807 * localedata/locales/sd_IN@devanagari (d_fmt): Likewise.
6808 * localedata/locales/ta_IN (d_fmt): Likewise.
6809 * localedata/locales/ta_LK (d_fmt): Likewise.
6810 * localedata/locales/tcy_IN (d_fmt): Likewise.
6811 * localedata/locales/ur_IN (d_fmt): Likewise.
6812
6813 * localedata/locales/brx_IN (d_fmt): Use "%-m//%-d//%y".
6814 * localedata/locales/ks_IN (d_fmt): Likewise.
6815 * localedata/locales/ks_IN@devanagari (d_fmt): Likewise.
6816
6817 * localedata/locales/kok_IN (d_fmt): Use "%-d-%-m-%y".
6818 * localedata/locales/ne_NP (d_fmt): Use "%y//%-m//%-d".
6819 * localedata/locales/sa_IN (d_fmt): Use "%-d-%m-%y".
6820 * localedata/locales/te_IN (d_fmt): Use "%d-%m-%y".
6821
6822 2018-09-05 Szabolcs Nagy <szabolcs.nagy@arm.com>
6823
6824 * NEWS: Mention exp and exp2 improvements.
6825 * math/Makefile (libm-support): Remove t_exp.
6826 (type-double-routines): Add math_err and e_exp_data.
6827 * sysdeps/aarch64/libm-test-ulps: Update.
6828 * sysdeps/arm/libm-test-ulps: Update.
6829 * sysdeps/i386/fpu/e_exp_data.c: New file.
6830 * sysdeps/i386/fpu/math_err.c: New file.
6831 * sysdeps/i386/fpu/t_exp.c: Remove.
6832 * sysdeps/ia64/fpu/e_exp_data.c: New file.
6833 * sysdeps/ia64/fpu/math_err.c: New file.
6834 * sysdeps/ia64/fpu/t_exp.c: Remove.
6835 * sysdeps/ieee754/dbl-64/e_exp.c: Rewrite.
6836 * sysdeps/ieee754/dbl-64/e_exp2.c: Rewrite.
6837 * sysdeps/ieee754/dbl-64/e_exp_data.c: New file.
6838 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Update error bound.
6839 * sysdeps/ieee754/dbl-64/eexp.tbl: Remove.
6840 * sysdeps/ieee754/dbl-64/math_config.h: New file.
6841 * sysdeps/ieee754/dbl-64/math_err.c: New file.
6842 * sysdeps/ieee754/dbl-64/t_exp.c: Remove.
6843 * sysdeps/ieee754/dbl-64/t_exp2.h: Remove.
6844 * sysdeps/ieee754/dbl-64/uexp.h: Remove.
6845 * sysdeps/ieee754/dbl-64/uexp.tbl: Remove.
6846 * sysdeps/m68k/m680x0/fpu/e_exp_data.c: New file.
6847 * sysdeps/m68k/m680x0/fpu/math_err.c: New file.
6848 * sysdeps/m68k/m680x0/fpu/t_exp.c: Remove.
6849 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
6850 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
6851
6852 2018-09-05 Joseph Myers <joseph@codesourcery.com>
6853
6854 * sysdeps/alpha/fpu/math_private.h: Remove.
6855
6856 * sysdeps/generic/math_private.h
6857 [__HAVE_DISTINCT_FLOAT128 && !__GNUC_PREREQ (7, 0)] (__isinff128):
6858 Move this inline function ....
6859 [__HAVE_DISTINCT_FLOAT128] (fabsf128): And this one ....
6860 * include/math.h [!_ISOMAC]: To here....
6861
6862 2018-09-04 Joseph Myers <joseph@codesourcery.com>
6863
6864 * sysdeps/generic/fenv_private.h [FE_ALL_EXCEPT == 0]: Move this
6865 code ....
6866 [!FE_HAVE_ROUNDING_MODES]: And this code ....
6867 * include/fenv.h [!_ISOMAC]: ... to here.
6868 * math/fraiseexcpt.c (__feraiseexcept): Undefine as macro.
6869 (feraiseexcept): Likewise.
6870 * math/fromfp.h: Do not include <fenv_private.h>.
6871 * math/s_cexp_template.c: Likewise.
6872 * math/s_csin_template.c: Likewise.
6873 * math/s_csinh_template.c: Likewise.
6874 * math/s_ctan_template.c: Likewise.
6875 * math/s_ctanh_template.c: Likewise.
6876 * math/s_iseqsig_template.c: Likewise.
6877 * math/w_acos_compat.c: Likewise.
6878 * math/w_acosf_compat.c: Likewise.
6879 * math/w_acosl_compat.c: Likewise.
6880 * math/w_asin_compat.c: Likewise.
6881 * math/w_asinf_compat.c: Likewise.
6882 * math/w_asinl_compat.c: Likewise.
6883 * math/w_j0_compat.c: Likewise.
6884 * math/w_j0f_compat.c: Likewise.
6885 * math/w_j0l_compat.c: Likewise.
6886 * math/w_j1_compat.c: Likewise.
6887 * math/w_j1f_compat.c: Likewise.
6888 * math/w_j1l_compat.c: Likewise.
6889 * math/w_jn_compat.c: Likewise.
6890 * math/w_jnf_compat.c: Likewise.
6891 * math/w_log10_compat.c: Likewise.
6892 * math/w_log10f_compat.c: Likewise.
6893 * math/w_log10l_compat.c: Likewise.
6894 * math/w_log2_compat.c: Likewise.
6895 * math/w_log2f_compat.c: Likewise.
6896 * math/w_log2l_compat.c: Likewise.
6897 * math/w_log_compat.c: Likewise.
6898 * math/w_logf_compat.c: Likewise.
6899 * math/w_logl_compat.c: Likewise.
6900 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
6901 * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
6902 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
6903 * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
6904 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
6905 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
6906 * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
6907 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
6908 * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
6909 * sysdeps/ieee754/k_standardl.c: Likewise.
6910 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
6911 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
6912 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
6913 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
6914 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
6915 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
6916 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
6917 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
6918 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
6919 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
6920 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
6921 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
6922 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
6923 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
6924 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
6925 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
6926 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
6927 * math/w_ilogb_template.c: Include <fenv.h> instead of
6928 <fenv_private.h>.
6929 * math/w_llogb_template.c: Likewise.
6930 * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
6931 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
6932
6933 2018-09-03 Joseph Myers <joseph@codesourcery.com>
6934
6935 * sysdeps/generic/math_private.h: Do not include <fenv_private.h>.
6936 * math/fromfp.h: Include <fenv_private.h>.
6937 * math/math-narrow.h: Likewise.
6938 * math/s_cexp_template.c: Likewise.
6939 * math/s_csin_template.c: Likewise.
6940 * math/s_csinh_template.c: Likewise.
6941 * math/s_ctan_template.c: Likewise.
6942 * math/s_ctanh_template.c: Likewise.
6943 * math/s_iseqsig_template.c: Likewise.
6944 * math/w_acos_compat.c: Likewise.
6945 * math/w_acosf_compat.c: Likewise.
6946 * math/w_acosl_compat.c: Likewise.
6947 * math/w_asin_compat.c: Likewise.
6948 * math/w_asinf_compat.c: Likewise.
6949 * math/w_asinl_compat.c: Likewise.
6950 * math/w_ilogb_template.c: Likewise.
6951 * math/w_j0_compat.c: Likewise.
6952 * math/w_j0f_compat.c: Likewise.
6953 * math/w_j0l_compat.c: Likewise.
6954 * math/w_j1_compat.c: Likewise.
6955 * math/w_j1f_compat.c: Likewise.
6956 * math/w_j1l_compat.c: Likewise.
6957 * math/w_jn_compat.c: Likewise.
6958 * math/w_jnf_compat.c: Likewise.
6959 * math/w_llogb_template.c: Likewise.
6960 * math/w_log10_compat.c: Likewise.
6961 * math/w_log10f_compat.c: Likewise.
6962 * math/w_log10l_compat.c: Likewise.
6963 * math/w_log2_compat.c: Likewise.
6964 * math/w_log2f_compat.c: Likewise.
6965 * math/w_log2l_compat.c: Likewise.
6966 * math/w_log_compat.c: Likewise.
6967 * math/w_logf_compat.c: Likewise.
6968 * math/w_logl_compat.c: Likewise.
6969 * sysdeps/aarch64/fpu/feholdexcpt.c: Likewise.
6970 * sysdeps/aarch64/fpu/fesetround.c: Likewise.
6971 * sysdeps/aarch64/fpu/fgetexcptflg.c: Likewise.
6972 * sysdeps/aarch64/fpu/ftestexcept.c: Likewise.
6973 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
6974 * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
6975 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
6976 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
6977 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
6978 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
6979 * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
6980 * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
6981 * sysdeps/ieee754/dbl-64/gamma_product.c: Likewise.
6982 * sysdeps/ieee754/dbl-64/lgamma_neg.c: Likewise.
6983 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
6984 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
6985 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
6986 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
6987 * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
6988 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
6989 * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
6990 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
6991 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
6992 * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
6993 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
6994 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
6995 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
6996 * sysdeps/ieee754/dbl-64/x2y2m1.c: Likewise.
6997 * sysdeps/ieee754/float128/float128_private.h: Likewise.
6998 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
6999 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
7000 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
7001 * sysdeps/ieee754/flt-32/lgamma_negf.c: Likewise.
7002 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
7003 * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
7004 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
7005 * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
7006 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
7007 * sysdeps/ieee754/k_standardl.c: Likewise.
7008 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
7009 * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
7010 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
7011 * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
7012 * sysdeps/ieee754/ldbl-128/gamma_productl.c: Likewise.
7013 * sysdeps/ieee754/ldbl-128/lgamma_negl.c: Likewise.
7014 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
7015 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
7016 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
7017 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
7018 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
7019 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
7020 * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
7021 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
7022 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
7023 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
7024 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
7025 * sysdeps/ieee754/ldbl-128ibm/lgamma_negl.c: Likewise.
7026 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
7027 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
7028 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
7029 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
7030 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
7031 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
7032 * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
7033 * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
7034 * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
7035 * sysdeps/ieee754/ldbl-96/gamma_productl.c: Likewise.
7036 * sysdeps/ieee754/ldbl-96/lgamma_negl.c: Likewise.
7037 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
7038 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
7039 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
7040 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
7041 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
7042 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
7043 * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
7044 * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
7045 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
7046 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
7047 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
7048 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
7049 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
7050 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
7051 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
7052 * sysdeps/riscv/rvd/s_finite.c: Likewise.
7053 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
7054 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
7055 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
7056 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
7057 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
7058 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
7059 * sysdeps/riscv/rvf/fegetround.c: Likewise.
7060 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
7061 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
7062 * sysdeps/riscv/rvf/fesetround.c: Likewise.
7063 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
7064 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
7065 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
7066 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
7067 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
7068 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
7069 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
7070 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
7071 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
7072 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
7073 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
7074 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
7075 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
7076 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
7077 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
7078 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
7079
7080 2018-08-31 Paul Pluzhnikov <ppluzhnikov@google.com>
7081
7082 [BZ #20271]
7083 * include/stdio.h (__libc_fatal): Mention newline in comment.
7084 * grp/initgroups.c (internal_getgrouplist): Add missing newline.
7085 * nptl/pthread_cond_wait.c (__pthread_cond_wait_common): Likewise.
7086 * nscd/initgrcache.c (addinitgroupsX): Likewise.
7087 * nss/nsswitch.c (__nss_next2): Likewise.
7088 * sysdeps/aarch64/dl-irel.h (elf_irela): Likewise.
7089 * sysdeps/arm/dl-irel.h (elf_irel): Likewise.
7090 * sysdeps/generic/unwind-dw2.c (execute_cfa_program): Likewise.
7091 * sysdeps/i386/dl-irel.h (elf_irel): Likewise.
7092 * sysdeps/powerpc/powerpc32/dl-irel.h (elf_irel): Likewise.
7093 * sysdeps/powerpc/powerpc64/dl-irel.h (elf_irel): Likewise.
7094 * sysdeps/s390/dl-irel.h (elf_irel): Likewise.
7095 * sysdeps/sparc/sparc32/dl-irel.h (elf_irel): Likewise.
7096 * sysdeps/sparc/sparc64/dl-irel.h (elf_irel): Likewise.
7097 * sysdeps/x86_64/dl-irel.h (elf_irel): Likewise.
7098 * sysdeps/nptl/futex-internal.h (futex_wake): Likewise.
7099 * sysdeps/unix/sysv/linux/netlink_assert_response.c
7100 (__netlink_assert_response): Likewise.
7101
7102 2018-08-31 Joseph Myers <joseph@codesourcery.com>
7103
7104 * conform/glibcconform.py: New file.
7105 * conform/list-header-symbols.py: Likewise.
7106 * conform/list-header-symbols.pl: Remove.
7107 * conform/Makefile (tests-special): Only add linknamespace tests
7108 if [PYTHON].
7109 ($(linknamespace-symlists-tests)): Use list-header-symbols.py.
7110
7111 2018-08-31 H.J. Lu <hongjiu.lu@intel.com>
7112
7113 [BZ #23597]
7114 * support/Makefile (libsupport-routines): Add
7115 support_copy_file_range and xcopy_file_range.
7116 * support/support.h: Include <sys/types.h>.
7117 (support_copy_file_range): New prototype.
7118 * support/support_copy_file_range.c: New file. Copied and
7119 modified from io/copy_file_range-compat.c.
7120 * support/test-container.c (copy_one_file): Call xcopy_file_rang
7121 instead of copy_file_range.
7122 * support/xcopy_file_range.c: New file.
7123 * support/xunistd.h (xcopy_file_range): New prototype.
7124
7125 2018-08-30 Carlos O'Donell <carlos@redhat.com>
7126
7127 * elf/tst-dlopen-aout.c: Include support/xthread.h. Use
7128 xpthread_create and xpthread_join.
7129
7130 2018-08-30 Florian Weimer <fweimer@redhat.com>
7131
7132 * stdlib/stdlib.h (reallocarray): Make available under __USE_MISC.
7133
7134 2018-08-30 Stefan Liebler <stli@linux.ibm.com>
7135
7136 * stdlib/test-bz22786.c (do_test): Return EXIT_UNSUPPORTED
7137 if malloc fails.
7138
7139 2018-08-29 Joseph Myers <joseph@codesourcery.com>
7140
7141 * math/gen-libm-test.py (gen_test_args_res): Also treat plus_oflow
7142 and minus_oflow as non-finite.
7143
7144 2018-08-28 Joseph Myers <joseph@codesourcery.com>
7145
7146 * sysdeps/aarch64/fpu/fenv_private.h: New file. Based on ....
7147 * sysdeps/aarch64/fpu/math_private.h: ... this file. All contents
7148 moved to fenv_private.h except for ...
7149 (TOINT_INTRINSICS): Kept in math_private.h.
7150 (roundtoint): Likewise.
7151 (converttoint): Likewise.
7152 * sysdeps/arm/fenv_private.h: Change multiple-include guard to
7153 [ARM_FENV_PRIVATE_H]. Include next <fenv_private.h>.
7154 * sysdeps/arm/math_private.h: Remove.
7155 * sysdeps/generic/fenv_private.h: New file. Contents moved from
7156 ....
7157 * sysdeps/generic/math_private.h: ... this file. Include
7158 <stdbool.h>. Do not include <fenv.h> or <get-rounding-mode.h>.
7159 Include <fenv_private.h>. Remove functions and macros moved to
7160 fenv_private.h.
7161 * sysdeps/i386/fpu/math_private.h: Remove.
7162 * sysdeps/mips/math_private.h: Move to ....
7163 * sysdeps/mips/fpu/fenv_private.h: ... here. Change
7164 multiple-include guard to [MIPS_FENV_PRIVATE_H]. Remove
7165 [__mips_hard_float] conditional. Include next <fenv_private.h>.
7166 * sysdeps/powerpc/fpu/fenv_private.h: Change multiple-include
7167 guard to [POWERPC_FENV_PRIVATE_H]. Include next <fenv_private.h>.
7168 * sysdeps/powerpc/fpu/math_private.h: Do not include
7169 <fenv_private.h>.
7170 * sysdeps/riscv/rvf/math_private.h: Move to ....
7171 * sysdeps/riscv/rvf/fenv_private.h: ... here. Change
7172 multiple-include guard to [RISCV_FENV_PRIVATE_H]. Include next
7173 <fenv_private.h>.
7174 * sysdeps/sparc/fpu/fenv_private.h: Change multiple-include guard
7175 to [SPARC_FENV_PRIVATE_H]. Include next <fenv_private.h>.
7176 * sysdeps/sparc/fpu/math_private.h: Remove.
7177 * sysdeps/i386/fpu/fenv_private.h: Move to ....
7178 * sysdeps/x86/fpu/fenv_private.h: ... here. Change
7179 multiple-include guard to [X86_FENV_PRIVATE_H]. Include next
7180 <fenv_private.h>.
7181 * sysdeps/x86_64/fpu/math_private.h: Do not include
7182 <sysdeps/i386/fpu/fenv_private.h>.
7183
7184 2018-08-28 Florian Weimer <fweimer@redhat.com>
7185
7186 [BZ #23578]
7187 * posix/tst-regcomp-truncated.c: New file.
7188 * posix/Makefile (tests): Add it.
7189 (tst-regcomp-truncated.out): Depend on generated locales.
7190
7191 2018-08-28 Florian Weimer <fweimer@redhat.com>
7192
7193 * support/test-container.c (main): Treat unshare failure with
7194 EPERM as an unsupported test.
7195
7196 2018-08-28 Florian Weimer <fweimer@redhat.com>
7197
7198 [BZ #23520]
7199 nscd: Fix use-after-free in addgetnetgrentX and its callers.
7200 * nscd/netgroupcache.c
7201 (addgetnetgrentX): Add tofreep parameter. Do not free
7202 heap-allocated buffer.
7203 (addinnetgrX): Free buffer allocated bt addgetnetgrentX.
7204 (addgetnetgrentX_ignore): New function.
7205 (addgetnetgrent): Call it.
7206 (readdgetnetgrent): Likewise.
7207
7208 2018-08-28 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
7209
7210 * string/memmem.c: Use memcmp for first match.
7211
7212 2018-08-28 Rafal Luzynski <digitalfreak@lingonborough.com>
7213
7214 [BZ #17426]
7215 * localedata/locales/en_IN (d_fmt): Use "%d/%m/%y".
7216
7217 2018-08-27 DJ Delorie <dj@redhat.com>
7218
7219 * support/Makefile (others): Don't list programs explicitly as a
7220 dependency of "others".
7221
7222 2018-08-27 Joseph Myers <joseph@codesourcery.com>
7223
7224 * sysdeps/generic/math-tests-trap-force.h: New file.
7225 * sysdeps/generic/math-tests.h: Include <math-tests-trap-force.h>.
7226 (EXCEPTION_SET_FORCES_TRAP): Do not define here.
7227 * sysdeps/powerpc/math-tests.h: Remove file.
7228 * sysdeps/powerpc/fpu/math-tests-trap-force.h: New file.
7229
7230 2018-08-27 Martin Kuchta <martin.kuchta@netapp.com>
7231 Torvald Riegel <triegel@redhat.com>
7232
7233 [BZ #23538]
7234 * nptl/pthread_cond_common.c (__condvar_quiesce_and_switch_g1):
7235 Update r to include the set wake-request flag if waiters are
7236 remaining after spinning.
7237
7238 2018-08-27 Joseph Myers <joseph@codesourcery.com>
7239
7240 * sysdeps/gnu/netinet/udp.h (UDP_SEGMENT): New macro.
7241
7242 2018-08-25 Paul Eggert <eggert@cs.ucla.edu>
7243
7244 [BZ #23578]
7245 regex: fix uninitialized memory access
7246 I introduced this bug into gnulib in commit
7247 8335a4d6c7b4448cd0bcb6d0bebf1d456bcfdb17 dated 2006-04-10;
7248 eventually it was merged into glibc. The bug was found by
7249 project-repo <bugs@feusi.co> and reported here:
7250 https://lists.gnu.org/r/sed-devel/2018-08/msg00017.html
7251 Diagnosis and draft fix reported by Assaf Gordon here:
7252 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00071.html
7253 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00142.html
7254 * posix/regex_internal.c (build_wcs_upper_buffer):
7255 Fix bug when mbrtowc returns 0.
7256
7257 2018-08-24 Carlos O'Donell <carlos@redhat.com>
7258
7259 * po/be.po: Update translation.
7260
7261 2018-08-24 DJ Delorie <dj@delorie.com>
7262
7263 * support/Makefile (LDLIBS-links-dso-program): Add -lgcc and
7264 $(libunwind).
7265
7266 2018-08-24 Paul Pluzhnikov <ppluzhnikov@google.com>
7267
7268 [BZ #23400]
7269 * stdlib/test-bz22786.c (do_test): Fix undefined behavior, don't
7270 create temporary files in source tree.
7271
7272 2018-08-24 Joseph Myers <joseph@codesourcery.com>
7273
7274 * sysdeps/generic/math-tests-trap.h: New file.
7275 * sysdeps/generic/math-tests.h: Include <math-tests-trap.h>.
7276 (EXCEPTION_ENABLE_SUPPORTED): Do not define here.
7277 * sysdeps/aarch64/math-tests.h: Remove file.
7278 * sysdeps/arm/math-tests.h: Likewise.
7279 * sysdeps/riscv/math-tests.h: Likewise.
7280 * sysdeps/aarch64/math-tests-trap.h: New file.
7281 * sysdeps/arm/math-tests-trap.h: Likewise.
7282 * sysdeps/riscv/math-tests-trap.h: Likewise.
7283
7284 2018-08-24 Wilco Dijkstra <wdijkstr@arm.com>
7285
7286 * math/Makefile: Remove empty files k_sin(f).c, k_cos(f).c.
7287 Remove unused files e_rem_pio2(f).c, k_rem_pio2f.c.
7288 * sysdeps/i386/fpu/e_rem_pio2.c: Delete file.
7289 * sysdeps/ia64/fpu/e_rem_pio2.c: Likewise.
7290 * sysdeps/ia64/fpu/e_rem_pio2f.c: Likewise.
7291 * sysdeps/ia64/fpu/k_rem_pio2f.c: Likewise.
7292 * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
7293 * sysdeps/ieee754/dbl-64/k_cos.c: Likewise.
7294 * sysdeps/ieee754/dbl-64/k_sin.c: Likewise.
7295 * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
7296 * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
7297 * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
7298 * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
7299 * sysdeps/m68k/m680x0/fpu/e_rem_pio2.c: Likewise
7300 * sysdeps/m68k/m680x0/fpu/e_rem_pio2f.c: Likewise
7301 * sysdeps/m68k/m680x0/fpu/k_rem_pio2f.c: Likewise
7302 * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
7303 * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
7304
7305 2018-08-23 Joseph Myers <joseph@codesourcery.com>
7306
7307 * sysdeps/generic/math-tests-exceptions.h: New file.
7308 * sysdeps/generic/math-tests.h: Include <math-tests-exceptions.h>.
7309 (EXCEPTION_TESTS_float): Do not define here.
7310 (EXCEPTION_TESTS_double): Likewise.
7311 (EXCEPTION_TESTS_long_double): Likewise.
7312 (EXCEPTION_TESTS_float128): Likewise.
7313 * sysdeps/arm/math-tests.h [__SOFTFP__] (EXCEPTION_TESTS_float):
7314 Likewise.
7315 [__SOFTFP__] (EXCEPTION_TESTS_double): Likewise.
7316 [__SOFTFP__] (EXCEPTION_TESTS_long_double): Likewise.
7317 * sysdeps/arm/nofpu/math-tests-exceptions.h: New file.
7318 * sysdeps/m68k/coldfire/math-tests.h: Remove file.
7319 * sysdeps/mips/math-tests.h: Likewise.
7320 * sysdeps/nios2/math-tests.h: Likewise.
7321 * sysdeps/riscv/math-tests.h [!__riscv_flen]
7322 (EXCEPTION_TESTS_float): Do not define here.
7323 [!__riscv_flen] (EXCEPTION_TESTS_double): Likewise.
7324 [!__riscv_flen] (EXCEPTION_TESTS_long_double): Likewise.
7325 * sysdeps/riscv/nofpu/math-tests-exceptions.h: New file.
7326
7327 2018-08-23 Wilco Dijkstra <wdijkstr@arm.com>
7328
7329 * NEWS: Move optimized sinf entry to 2.29.
7330
7331 2018-08-23 Wilco Dijkstra <wdijkstr@arm.com>
7332
7333 * sysdeps/ieee754/flt-32/s_tanf.c (__tanf): Use fast range reduction.
7334
7335 2018-08-22 DJ Delorie <dj@redhat.com>
7336
7337 * Makefile (testroot.pristine): New rules to initialize the
7338 test-in-container "testroot".
7339 * Makerules (all-testsuite): Add tests-container.
7340 * Rules (tests-expected): Add tests-container.
7341 (binaries-all-tests): Likewise.
7342 (tests-container): New, run these tests in the testroot container.
7343 * support/Makefile (others): Add *-container, support_paths.c,
7344 xmkdirp, and links-dso-program.
7345 * support/links-dso-program-c.c: New.
7346 * support/links-dso-program.cc: New.
7347 * support/test-container.c: New.
7348 * support/shell-container.c: New.
7349 * support/echo-container.c: New.
7350 * support/true-container.c: New.
7351 * support/xmkdirp.c: New.
7352 * support/xsymlink.c: New.
7353 * support/support_paths.c: New.
7354 * support/support.h: Add support paths prototypes.
7355 * support/xunistd.h: Add xmkdirp () and xsymlink ().
7356
7357 * nss/tst-nss-test3.c: Convert to test-in-container.
7358 * nss/tst-nss-test3.root/: New.
7359
7360 2018-08-22 Paul Eggert <eggert@cs.ucla.edu>
7361
7362 regex: port Gnulib code to z/OS POSIX environment
7363 Problem reported by Arnold Robbins in:
7364 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00129.html
7365 * posix/regex_internal.h (__iswalnum, __towlower, __towupper) [!_LIBC]:
7366 Undef.
7367
7368 2018-08-22 Joseph Myers <joseph@codesourcery.com>
7369
7370 * math/test-double-vlen2.h: Don't include <math-tests-rounding.h>.
7371 (ROUNDING_TESTS_double): Remove.
7372 * math/test-double-vlen4.h: Don't include <math-tests-rounding.h>.
7373 (ROUNDING_TESTS_double): Remove.
7374 * math/test-double-vlen8.h: Don't include <math-tests-rounding.h>.
7375 (ROUNDING_TESTS_double): Remove.
7376 * math/test-float-vlen16.h: Don't include <math-tests-rounding.h>.
7377 (ROUNDING_TESTS_float): Remove.
7378 * math/test-float-vlen4.h: Don't include <math-tests-rounding.h>.
7379 (ROUNDING_TESTS_float): Remove.
7380 * math/test-float-vlen8.h: Don't include <math-tests-rounding.h>.
7381 (ROUNDING_TESTS_float): Remove.
7382 * math/libm-test-driver.c (IF_ROUND_INIT_FE_DOWNWARD): Check
7383 !TEST_MATHVEC here.
7384 (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
7385 (IF_ROUND_INIT_FE_UPWARD): Likewise.
7386
7387 * sysdeps/generic/math-tests-rounding.h: New file.
7388 * sysdeps/generic/math-tests.h: Include <math-tests-rounding.h>.
7389 (ROUNDING_TESTS_float): Do not define here.
7390 (ROUNDING_TESTS_double): Likewise.
7391 (ROUNDING_TESTS_long_double): Likewise.
7392 (ROUNDING_TESTS_float128): Likewise.
7393 * math/test-double-vlen2.h: Include <math-tests-rounding.h>.
7394 (ROUNDING_TESTS_double): Undefine before defining.
7395 * math/test-double-vlen4.h: Include <math-tests-rounding.h>.
7396 (ROUNDING_TESTS_double): Undefine before defining.
7397 * math/test-double-vlen8.h: Include <math-tests-rounding.h>.
7398 (ROUNDING_TESTS_double): Undefine before defining.
7399 * math/test-float-vlen16.h: Include <math-tests-rounding.h>.
7400 (ROUNDING_TESTS_float): Undefine before defining.
7401 * math/test-float-vlen4.h: Include <math-tests-rounding.h>.
7402 (ROUNDING_TESTS_float): Undefine before defining.
7403 * math/test-float-vlen8.h: Include <math-tests-rounding.h>.
7404 (ROUNDING_TESTS_float): Undefine before defining.
7405 * sysdeps/arm/nofpu/math-tests-rounding.h: New file.
7406 * sysdeps/arm/math-tests.h [__SOFTFP__] (ROUNDING_TESTS_float): Do
7407 not define here.
7408 [__SOFTFP__] (ROUNDING_TESTS_double): Likewise.
7409 [__SOFTFP__] (ROUNDING_TESTS_long_double): Likewise.
7410 * sysdeps/riscv/nofpu/math-tests-rounding.h: New file.
7411 * sysdeps/riscv/math-tests.h [!__riscv_flen]
7412 (ROUNDING_TESTS_float): Do not define here.
7413 [!__riscv_flen] (ROUNDING_TESTS_double): Likewise.
7414 [!__risv_flen] (ROUNDING_TESTS_long_double): Likewise.
7415 * sysdeps/m68k/coldfire/math-tests.h [!__mcffpu__]
7416 (ROUNDING_TESTS_float): Likewise.
7417 [!__mcffpu__] (ROUNDING_TESTS_double): Likewise.
7418 [!__mcffpu__] (ROUNDING_TESTS_long_double): Likewise.
7419 * sysdeps/mips/math-tests.h [__mips_soft_float]
7420 (ROUNDING_TESTS_float): Likewise.
7421 [__mips_soft_float] (ROUNDING_TESTS_double): Likewise.
7422 [__mips_soft_float] (ROUNDING_TESTS_long_double): Likewise.
7423 * sysdeps/nios2/math-tests.h (ROUNDING_TESTS_float): Likewise.
7424 (ROUNDING_TESTS_double): Likewise.
7425 (ROUNDING_TESTS_long_double): Likewise.
7426
7427 2018-08-21 Tobias Klauser <tklauser@distanz.ch>
7428
7429 * sysdeps/unix/sysv/linux/bits/socket.h (PF_MAX): Set to 45.
7430 (PF_XDP): New macro.
7431 (AF_XDP): New macro.
7432 (SOL_XDP): New macro.
7433
7434 2018-08-21 Joseph Myers <joseph@codesourcery.com>
7435
7436 * sysdeps/gnu/netinet/tcp.h (TCP_ZEROCOPY_RECEIVE): New macro.
7437 (TCP_INQ): Likewise.
7438 (TCP_CM_INQ): Likewise.
7439 (TCP_REPAIR_ON): Likewise.
7440 (TCP_REPAIR_OFF): Likewise.
7441 (TCP_REPAIR_OFF_NO_WP): Likewise.
7442 (struct tcp_zerocopy_receive): New type.
7443
7444 2018-08-21 Florian Weimer <fweimer@redhat.com>
7445
7446 * support/support.h (support_descriptor_supports_holes): Declare.
7447 * support/Makefile (libsupport-routines): Add
7448 support_descriptor_supports_holes.
7449 * support/support_descriptor_supports_holes.c: New file.
7450 * io/tst-copy_file_range.c: Call support_descriptor_supports_holes
7451 and stop testing if holes are not supported.
7452 * io/test-lfs.c (do_prepare): Likewise.
7453 * sysdeps/unix/sysv/linux/tst-fallocate-common.c (do_prepare):
7454 Likewise.
7455 * timezone/tst-tzset.c (create_tz_file): Likewise.
7456 * misc/tst-preadvwritev-common.c (temp_fd_supports_holes) New
7457 variable.
7458 (do_prepare): Set it.
7459 * misc/tst-preadvwritev64.c (do_test): Use temp_fd_supports_holes.
7460
7461 2018-08-21 Florian Weimer <fweimer@redhat.com>
7462
7463 [BZ #17248]
7464 * Makeconfig (+cflags): Do not sort (and deduplicate).
7465
7466 2018-08-21 Florian Weimer <fweimer@redhat.com>
7467
7468 * debug/readlink_chk.c (__readlink_chk): Always call __readlink.
7469 * sysdeps/unix/sysv/linux/generic/readlink_chk.c: Remove file.
7470
7471 2018-08-20 Florian Weimer <fweimer@redhat.com>
7472
7473 * sysdeps/unix/sysv/linux/generic/readlink_chk.c: Remove
7474 HAVE_INLINED_SYSCALLS conditionals. Use INLINE_SYSCALL_CALL.
7475
7476 2018-08-20 Joseph Myers <joseph@codesourcery.com>
7477
7478 * sysdeps/unix/sysv/linux/sys/signalfd.h (struct
7479 signalfd_siginfo): Add ssi_addr_lsb, ssi_syscall, ssi_call_addr
7480 and ssi_arch members.
7481
7482 * elf/elf.c (NT_VMCOREDD): New macro.
7483 (AT_MINSIGSTKSZ): Likewise.
7484
7485 2018-08-20 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
7486
7487 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
7488 (libm-sysdep_routines): Remove s_sinf-ppc64, s_sinf-power8,
7489 s_cosf-ppc64 and s_cosf-power8.
7490 * sysdeps/powerpc/fpu/s_cosf.c: Remove file.
7491 * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
7492 * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
7493 * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
7494 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-power8.S: Likewise.
7495 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-ppc64.c: Likewise.
7496 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf.c: Likewise.
7497 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: Likewise.
7498 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
7499 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf.c: Likewise.
7500 * sysdeps/powerpc/powerpc64/power8/fpu/s_cosf.S: Likewise.
7501 * sysdeps/powerpc/powerpc64/power8/fpu/s_sinf.S: Likewise.
7502
7503 2018-08-17 Florian Weimer <fweimer@redhat.com>
7504
7505 * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
7506
7507 2018-08-17 Istvan Kurucsai <pistukem@gmail.com>
7508
7509 * malloc/malloc.c (_int_malloc): Additional binning code checks.
7510
7511 2018-08-16 Florian Weimer <fweimer@redhat.com>
7512
7513 * configure.ac: Add --with-nonshared-cflags option.
7514 * config.make.in (extra-nonshared-cflags): Set variable.
7515 * Makeconfig (CFLAGS-.oS): Use it.
7516 * manual/install.texi (Configuring and compiling): Document
7517 --with-nonshared-cflags.
7518 * configure: Regenerate.
7519 * INSTALL: Likewise.
7520
7521 2018-08-16 Florian Weimer <fweimer@redhat.com>
7522
7523 * Makeconfig (ASFLAGS): Always append required assembler flags.
7524
7525 2018-08-16 Moritz Eckert <m.eckert@cs.ucsb.edu>
7526
7527 * malloc/malloc.c (_int_free): Check for corrupt prev_size vs size.
7528 (malloc_consolidate): Likewise.
7529
7530 2018-08-16 Pochang Chen <johnchen902@gmail.com>
7531
7532 * malloc/malloc.c (_int_malloc.c): Verify size of top chunk.
7533
7534 2018-08-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
7535
7536 * benchtests/bench-strlen.c (do_test): Allocate buffers before
7537 every strlen call.
7538
7539 * benchtests/bench-strlen.c: Print performance numbers in json.
7540
7541 2018-08-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
7542
7543 * sysdeps/powerpc/powerpc64/multiarch/Makefile
7544 (sysdep_routines): Build strcmp-power9 and strncmp-power9
7545 only for little endian.
7546 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
7547 (strncmp): Move __strncmp_power9 inside ifdef __LITTLE_ENDIAN__.
7548 (STRCMP): Move __strcmp_power9 inside ifdef __LITTLE_ENDIAN__.
7549 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S:
7550 Add check for little endian.
7551 * sysdeps/powerpc/powerpc64/multiarch/strcmp.c
7552 (__strcmp_power9): Add check for little endian.
7553 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S:
7554 Add check for little endian.
7555 * sysdeps/powerpc/powerpc64/multiarch/strncmp.c
7556 (__strncmp_power9): Add check for little endian.
7557 * sysdeps/powerpc/powerpc64/power9/strcmp.S: Removed ifdef
7558 __LITTLE_ENDIAN__ and moved to sysdeps/powerpc/powerpc64/le/power9.
7559 * sysdeps/powerpc/powerpc64/power9/strncmp.S: Likewise.
7560 * sysdeps/powerpc/powerpc64/le/power9/strcmp.S: New file.
7561 * sysdeps/powerpc/powerpc64/le/power9/strncmp.S: Likewise.
7562
7563 2018-08-15 Siddhesh Poyarekar <siddhesh@sourceware.org>
7564
7565 * sysdeps/aarch64/strlen.S (__strlen): Rename to STRLEN.
7566 [!STRLEN](STRLEN): Set to __strlen.
7567 * sysdeps/aarch64/multiarch/strlen.c: New file.
7568 * sysdeps/aarch64/multiarch/strlen_generic.S: Likewise.
7569 * sysdeps/aarch64/multiarch/strlen_asimd.S: Likewise.
7570 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
7571 (__libc_ifunc_impl_list): Add strlen.
7572 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
7573 strlen_generic and strlen_asimd.
7574
7575 2018-08-15 Wilco Dijkstra <wdijkstr@arm.com>
7576
7577 * sysdeps/ieee754/flt-32/e_lgammaf_r.c (sin_pif): Use __sinf/__cosf.
7578 * sysdeps/ieee754/flt-32/k_cosf.c (__kernel_cosf): Remove all code.
7579 * sysdeps/ieee754/flt-32/k_sinf.c (__kernel_sinf): Likewise.
7580
7581 2018-08-15 Wilco Dijkstra <wdijkstr@arm.com>
7582
7583 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate to fix spaces.
7584
7585 2018-08-14 Florian Weimer <fweimer@redhat.com>
7586
7587 [BZ #23519]
7588 * include/stdio.h (__vfxprintf): Declare.
7589 * stdio-common/fxprintf.c (__vfxprintf): New function.
7590 (__fxprintf): Call it.
7591 * misc/err.c (convert_and_print): Remove function.
7592 (vwarnx, vwarn): Call __fxprintf and __vfxprintf.
7593 * misc/error.c [_LIBC] (error_tail): Call __vfxprintf.
7594 * misc/Makefile (tests): Add tst-warn-wide.
7595 * misc/tst-warn-wide.c: New file.
7596
7597 2018-08-14 Wilco Dijkstra <wdijkstr@arm.com>
7598 Szabolcs Nagy <szabolcs.nagy@arm.com>
7599
7600 * NEWS: Mention sinf, cosf, sincosf.
7601 * sysdeps/aarch64/libm-test-ulps: Update ULP for sinf, cosf, sincosf.
7602 * sysdeps/x86_64/fpu/libm-test-ulps: Update ULP for sinf and cosf.
7603 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: Add definitions of
7604 constants rather than including generic sincosf.h.
7605 * sysdeps/x86_64/fpu/s_sincosf_data.c: Remove.
7606 * sysdeps/ieee754/flt-32/s_cosf.c (cosf): Rewrite.
7607 * sysdeps/ieee754/flt-32/s_sincosf.h (reduced_sin): Remove.
7608 (reduced_cos): Remove.
7609 (sinf_poly): New function.
7610 * sysdeps/ieee754/flt-32/s_sinf.c (sinf): Rewrite.
7611
7612 2018-08-14 Florian Weimer <fweimer@redhat.com>
7613
7614 [BZ #23521]
7615 [BZ #23522]
7616 * nss/nss_files/files-alias.c (get_next_alias): During :include:
7617 processing, bail out if no room, and close the stream before
7618 returning ERANGE.
7619 * nss/Makefile (tests): Add tst-nss-files-alias-leak.
7620 (tst-nss-files-alias-leak): Link with libdl.
7621 (tst-nss-files-alias-leak.out): Depend on nss_files.
7622
7623 * nss/tst-nss-files-alias-leak.c: New file.
7624
7625 2018-08-14 Florian Weimer <fweimer@redhat.com>
7626
7627 * nscd/nscd_conf.c (nscd_parse_file): Deallocate old storage for
7628 server_user, stat_user.
7629
7630 2018-08-13 Joseph Myers <joseph@codesourcery.com>
7631
7632 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
7633 version to 4.18.
7634 (io_pgetevents): New syscall.
7635 (rseq): Likewise.
7636
7637 * manual/install.texi (Configuring and compiling): Do not list
7638 tools used for testing pretty printers here.
7639 (Tools for Compilation): List Python, PExpect and GDB here.
7640 Update descriptions of uses of Perl and Python.
7641 * INSTALL: Regenerate.
7642
7643 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
7644 version to 4.18.
7645
7646 2018-08-13 Florian Weimer <fweimer@redhat.com>
7647
7648 * misc/error.c (error): Add missing va_end call.
7649 (error_at_line): Likewise.
7650
7651 2018-08-13 Florian Weimer <fweimer@redhat.com>
7652
7653 * stdlib/mbstowcs.c (mbstowcs): Remove outdated comment.
7654
7655 2018-08-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
7656
7657 * benchtests/scripts/benchout.schema.json (properties): Add
7658 new properties.
7659
7660 * benchtests/bench-skeleton.c (main): Add duration and
7661 iterations attributes.
7662
7663 2018-08-10 Paul Eggert <eggert@cs.ucla.edu>
7664
7665 regex: Gnulib unibyte RRI uses bytes not chars
7666 Adjust the non-glibc code to agree with what Gawk needs for
7667 rational range interpretation (RRI) for regular expression ranges.
7668 In unibyte locales, Gawk wants ranges to use the underlying byte
7669 rather than the character code point. This change does not affect
7670 glibc proper.
7671 * posix/regcomp.c (parse_byte) [!LIBC && RE_ENABLE_I18N]:
7672 In unibyte locales, use the byte value rather than
7673 running it through btowc.
7674
7675 2018-08-10 Joseph Myers <joseph@codesourcery.com>
7676
7677 * sysdeps/generic/math-tests-snan.h: New file.
7678 * sysdeps/generic/math-tests.h: Include <math-tests-snan.h>.
7679 (SNAN_TESTS_float): Do not define here.
7680 (SNAN_TESTS_double): Likewise.
7681 (SNAN_TESTS_long_double): Likewise.
7682 (SNAN_TESTS_float128): Likewise.
7683 * sysdeps/i386/fpu/math-tests-snan.h: New file.
7684 * sysdeps/i386/fpu/math-tests.h: Remove file.
7685 * sysdeps/ia64/math-tests-snan.h: New file.
7686 * sysdeps/ia64/math-tests.h: Remove file.
7687 * sysdeps/x86/math-tests.h: Likewise.
7688 * sysdeps/x86_64/fpu/math-tests-snan.h: New file.
7689
7690 2018-08-10 Wilco Dijkstra <wdijkstr@arm.com>
7691 Szabolcs Nagy <szabolcs.nagy@arm.com>
7692
7693 * math/Makefile: Add s_sincosf_data.c.
7694 * sysdeps/ia64/fpu/s_sincosf_data.c: New file.
7695 * sysdeps/ieee754/flt-32/s_sincosf.h (abstop12): Add new function.
7696 (sincosf_poly): Likewise.
7697 (reduce_small): Likewise.
7698 (reduce_large): Likewise.
7699 * sysdeps/ieee754/flt-32/s_sincosf.c (sincosf): Rewrite.
7700 * sysdeps/ieee754/flt-32/s_sincosf_data.c: New file with sincosf data.
7701 * sysdeps/m68k/m680x0/fpu/s_sincosf_data.c: New file.
7702 * sysdeps/x86_64/fpu/s_sincosf_data.c: New file.
7703
7704 2018-08-10 Wilco Dijkstra <wdijkstr@arm.com>
7705 Szabolcs Nagy <szabolcs.nagy@arm.com>
7706
7707 * sysdeps/aarch64/fpu/math_private.h (roundtoint): Use round.
7708 (converttoint): Use lround.
7709 * sysdeps/ieee754/flt-32/math_config.h (roundtoint): Declare and
7710 document the semantics when TOINT_INTRINSICS is set.
7711 (converttoint): Likewise.
7712 (TOINT_RINT): Remove.
7713 (TOINT_SHIFT): Remove.
7714 * sysdeps/ieee754/flt-32/e_expf.c (__expf): Remove the TOINT_RINT code
7715 path.
7716
7717 2018-08-10 Florian Weimer <fweimer@redhat.com>
7718
7719 [BZ #23497]
7720 * sysdeps/unix/sysv/linux/getdents64.c (handle_overflow): New
7721 function.
7722 (__old_getdents64): Use getdents64. Convert entries without
7723 moving them.
7724 * sysdeps/unix/sysv/linux/tst-readdir64-compat.c: New file.
7725 * sysdeps/unix/sysv/linux/Makefile (tests-internal): Add
7726 tst-readdir64-compat.
7727
7728 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
7729
7730 * sysdeps/s390/s390-32/s390-mcount.S (_mcount):
7731 Fix unwind.
7732
7733 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
7734
7735 * sysdeps/s390/s390-64/Versions (__fentry__): Add.
7736 * sysdeps/s390/s390-64/s390x-mcount.S: Move the common
7737 code to s390x-mcount.h and #include it.
7738 * sysdeps/s390/s390-64/s390x-mcount.h: New file.
7739 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist
7740 (__fentry__): Add.
7741
7742 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
7743
7744 * stdlib/Versions: Remove __fentry__.
7745 * sysdeps/i386/Versions: Add __fentry__.
7746 * sysdeps/x86_64/Versions: Add __fentry__.
7747
7748 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
7749
7750 * sysdeps/s390/Makefile: Register the new tests.
7751 * sysdeps/s390/tst-dl-runtime-mod.S: New file.
7752 * sysdeps/s390/tst-dl-runtime-profile-audit.c: New file.
7753 * sysdeps/s390/tst-dl-runtime-profile-noaudit.c: New file.
7754 * sysdeps/s390/tst-dl-runtime-resolve-audit.c: New file.
7755 * sysdeps/s390/tst-dl-runtime-resolve-noaudit.c: New file.
7756 * sysdeps/s390/tst-dl-runtime.c: New file.
7757
7758 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
7759
7760 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_profile):
7761 Do not clobber R0.
7762
7763 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
7764
7765 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
7766 Do not clobber R0.
7767
7768 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
7769
7770 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_profile):
7771 Do not clobber R0.
7772
7773 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
7774
7775 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
7776 Do not clobber R0.
7777
7778 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
7779
7780 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_profile):
7781 Use symbolic offsets for stack variables.
7782
7783 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
7784
7785 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
7786 Use symbolic offsets for stack variables.
7787
7788 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
7789
7790 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_profile):
7791 Use symbolic offsets for stack variables.
7792
7793 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
7794
7795 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
7796 Use symbolic offsets for stack variables.
7797
7798 2018-08-09 Joseph Myers <joseph@codesourcery.com>
7799
7800 * math/gen-libm-test.py: New file.
7801 * math/gen-libm-test.pl: Remove.
7802 * math/Makefile [$(PERL) != no]: Change condition to [PYTHON].
7803 ($(objpfx)libm-test-ulps.h): Use gen-libm-test.py instead of
7804 gen-libm-test.pl.
7805 ($(libm-test-c-noauto-obj)): Likewise.
7806 ($(libm-test-c-auto-obj)): Likewise.
7807 ($(libm-test-c-narrow-obj)): Likewise.
7808 (regen-ulps): Likewise.
7809 * math/README.libm-test: Update references to gen-libm-test.pl.
7810 * math/libm-test-driver.c (struct test_fj_f_data): Update comment
7811 referencing gen-libm-test.pl.
7812 * math/libm-test-nexttoward.inc (nexttoward_test_data): Likewise.
7813 * math/libm-test-support.c: Likewise.
7814 * math/libm-test-support.h: Likewise.
7815 * sysdeps/generic/libm-test-ulps: Likewise.
7816
7817 2018-08-08 Siddhesh Poyarekar <siddhesh@sourceware.org>
7818
7819 * sysdeps/aarch64/strlen.S [TEST_PAGE_CROSS](MIN_PAGE_SIZE):
7820 Fix value.
7821
7822 2018-08-08 Joseph Myers <joseph@codesourcery.com>
7823
7824 * math/libm-test-nextdown.inc (do_test): Move comment to ....
7825 * math/libm-test-nexttoward.inc (nexttoward_test_data): ... here.
7826
7827 2018-08-08 Samuel Thibault <samuel.thibault@ens-lyon.org>
7828
7829 * htl/Versions (__pthread_getspecific, __pthread_setspecific): Add
7830 symbols.
7831 * sysdeps/htl/pthreadP.h [IS_IN (libpthread)] (__pthread_getspecific,
7832 __pthread_setspecific): Add hidden proto.
7833 * sysdeps/htl/pt-getspecific.c (__pthread_getspecific): Add hidden def.
7834 * sysdeps/htl/pt-setspecific.c (__pthread_setspecific): Add hidden def.
7835
7836 2018-08-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
7837
7838 * benchtests/bench-string.h (buf1_size, buf2_size): New
7839 variables.
7840 (init_sizes): New function.
7841 (test_init): Use it.
7842 (alloc_buf, exit_error): New functions.
7843 (alloc_bufs): Use ALLOC_BUF.
7844 (realloc_bufs): Remove.
7845 * benchtests/bench-memcmp.c (do_test): Adjust.
7846 * benchtests/bench-memset-large.c (do_test): Likewise.
7847 * benchtests/bench-memset-walk.c (do_test): Likewise.
7848 * benchtests/bench-memset.c (do_test): Likewise.
7849 * benchtests/bench-strncmp.c (do_test): Likewise.
7850
7851 2018-08-06 Andreas Schwab <schwab@suse.de>
7852
7853 * sysdeps/riscv/nptl/tls.h (DB_THREAD_SELF): Use REGISTER instead
7854 of CONST_THREAD_AREA.
7855
7856 2018-08-06 H.J. Lu <hongjiu.lu@intel.com>
7857
7858 * sysdeps/x86/cpu-features.h (STATE_SAVE_OFFSET): Removed.
7859 (STATE_SAVE_MASK): Likewise.
7860 Don't check __ASSEMBLER__ to include <cpu-features-offsets.h>.
7861 * sysdeps/x86/sysdep.h (STATE_SAVE_OFFSET): New.
7862 (STATE_SAVE_MASK): Likewise.
7863 * sysdeps/x86_64/dl-trampoline.S: Include <cpu-features-offsets.h>
7864 instead of <cpu-features.h>.
7865
7866 2018-08-03 DJ Delorie <dj@redhat.com>
7867
7868 * sysdeps/riscv/rvf/math_private.h (libc_feholdexcept_setround_riscv):
7869 Move libc_fesetround_riscv after libc_feholdexcept_riscv.
7870
7871 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Update.
7872
7873 2018-08-03 Joseph Myers <joseph@codesourcery.com>
7874
7875 * math/libm-test-ilogb.inc (ilogb_test_data): Use ',' not ';'
7876 after TEST_* calls.
7877 * math/libm-test-llogb.inc (llogb_test_data): Likewise.
7878 * math/libm-test-logb.inc (logb_test_data): Likewise.
7879
7880 2018-08-03 Wilco Dijkstra <wdijkstr@arm.com>
7881
7882 * string/strcasestr.c (STRCASESTR): Simplify and speedup first match.
7883 * string/strstr.c (AVAILABLE): Likewise.
7884
7885 2018-08-03 H.J. Lu <hongjiu.lu@intel.com>
7886
7887 * sysdeps/i386/i686/multiarch/bzero-ia32.S: Don't include
7888 <init-arch.h>.
7889 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core-avx2.S: Likewise.
7890 * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core-avx2.S: Likewise.
7891 * sysdeps/x86_64/multiarch/memset-sse2-unaligned-erms.S: Likewise.
7892
7893 2018-08-03 Carlos O'Donell <carlos@redhat.com>
7894
7895 * po/be.po: Update translation.
7896
7897 * po/be.po: Update translation.
7898
7899 2018-08-03 H.J. Lu <hongjiu.lu@intel.com>
7900
7901 * sysdeps/x86/cpu-features-offsets.sym
7902 (rtld_global_ro_offsetof): Removed.
7903 (CPU_FEATURES_SIZE): Likewise.
7904 (CPUID_OFFSET): Likewise.
7905 (CPUID_SIZE): Likewise.
7906 (CPUID_EAX_OFFSET): Likewise.
7907 (CPUID_EBX_OFFSET): Likewise.
7908 (CPUID_ECX_OFFSET): Likewise.
7909 (CPUID_EDX_OFFSET): Likewise.
7910 (FAMILY_OFFSET): Likewise.
7911 (MODEL_OFFSET): Likewise.
7912 (FEATURE_OFFSET): Likewise.
7913 (FEATURE_SIZ): Likewise.
7914 (COMMON_CPUID_INDEX_1): Likewise.
7915 (COMMON_CPUID_INDEX_7): Likewise.
7916 (FEATURE_INDEX_1): Likewise.
7917 (RTLD_GLOBAL_RO_DL_X86_CPU_FEATURES_OFFSET): Updated.
7918
7919 2018-08-02 Carlos O'Donell <carlos@redhat.com>
7920
7921 * localedata/Makefile (INSTALL-SUPPORTED-LOCALES): Remove.
7922 (INSTALL-SUPPORTED-LOCALE-ARCHIVE): Define.
7923 (INSTALL-SUPPORTED-LOCALE-FILES): Define.
7924 (install-locales): Depend on install-locale-archive.
7925 (install-locale-archive): Define.
7926 (install-locale-files): Define.
7927 (build-one-locale): Define macro.
7928 * manual/install.texi (Running make install): Document.
7929 * manual/INSTALL: Regenerate.
7930
7931 2018-08-02 Siddhesh Poyarekar <siddhesh@sourceware.org>
7932
7933 * benchtests/scripts/compare_strings.py: Import traceback.
7934 (parse_file): Pretty-print error.
7935
7936 * NEWS: Mention the change.
7937 * elf/dl-tunables.list: Rename tune namespace to cpu.
7938 * sysdeps/powerpc/dl-tunables.list: Likewise.
7939 * sysdeps/x86/dl-tunables.list: Likewise.
7940 * sysdeps/aarch64/dl-tunables.list: Rename tune.cpu to
7941 cpu.name.
7942 * elf/dl-hwcaps.c (_dl_important_hwcaps): Adjust.
7943 * elf/dl-hwcaps.h (GET_HWCAP_MASK): Likewise.
7944 * manual/README.tunables: Likewise.
7945 * manual/tunables.texi: Likewise.
7946 * sysdeps/powerpc/cpu-features.c: Likewise.
7947 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c
7948 (init_cpu_features): Likewise.
7949 * sysdeps/x86/cpu-features.c: Likewise.
7950 * sysdeps/x86/cpu-features.h: Likewise.
7951 * sysdeps/x86/cpu-tunables.c: Likewise.
7952 * sysdeps/x86_64/Makefile: Likewise.
7953 * sysdeps/x86/dl-cet.c: Likewise.
7954
7955 2018-08-02 Joseph Myers <joseph@codesourcery.com>
7956
7957 [BZ #23479]
7958 * sysdeps/mips/bits/fenv.h (FE_INEXACT): Define only if
7959 [__mips_hard_float].
7960 (FE_UNDERFLOW): Likewise.
7961 (FE_OVERFLOW): Likewise.
7962 (FE_DIVBYZERO): Likewise.
7963 (FE_INVALID): Likewise.
7964 (FE_ALL_EXCEPT): Define to 0 if [!__mips_hard_float].
7965 (FE_TOWARDZERO): Define only if [__mips_hard_float].
7966 (FE_UPWARD): Likewise.
7967 (FE_DOWNWARD): Likewise.
7968 (__FE_UNDEFINED): Define if [!__mips_hard_float]
7969 (FE_NOMASK_ENV): Define only if [__mips_hard_float].
7970 * sysdeps/mips/mips64/sfp-machine.h (_FP_DECL_EX): Define only if
7971 [__mips_hard_float].
7972 (FP_ROUNDMODE): Likewise.
7973 (FP_RND_NEAREST): Likewise.
7974 (FP_RND_ZERO): Likewise.
7975 (FP_RND_PINF): Likewise.
7976 (FP_RND_MINF): Likewise.
7977 (FP_EX_INVALID): Likewise.
7978 (FP_EX_OVERFLOW): Likewise.
7979 (FP_EX_UNDERFLOW): Likewise.
7980 (FP_EX_DIVZERO): Likewise.
7981 (FP_EX_INEXACT): Likewise.
7982 (FP_INIT_ROUNDMODE): Likewise.
7983 * sysdeps/mips/nofpu/fesetenv.c: New file.
7984 * sysdeps/mips/nofpu/feupdateenv.c: Likewise.
7985
7986 2018-08-01 Joseph Myers <joseph@codesourcery.com>
7987
7988 * math/test-misc.c (do_test) [LDBL_MANT_DIG > DBL_MANT_DIG]: Make
7989 code using FE_UNDERFLOW conditional on [FE_UNDERFLOW], code using
7990 FE_OVERFLOW conditional on [FE_OVERFLOW] and code using FE_UPWARD
7991 conditional on [FE_UPWARD].
7992
7993 2018-08-01 Paul Eggert <eggert@cs.ucla.edu>
7994
7995 regex: fix memory leak in Gnulib
7996 Problem and fix reported by Assaf Gordon in:
7997 https://lists.gnu.org/r/bug-gnulib/2018-07/txtqLKNwBdefE.txt
7998 * posix/regcomp.c (free_charset) [!_LIBC]: Free range_starts and
7999 range_ends members too, as they are defined in 'struct
8000 re_charset_t' even if not _LIBC. This affects only Gnulib.
8001
8002 2018-08-01 H.J. Lu <hongjiu.lu@intel.com>
8003
8004 * sysdeps/x86/cpu-features.c (get_common_indeces): Renamed to
8005 ...
8006 (get_common_indices): This.
8007 (init_cpu_features): Updated.
8008
8009 2018-08-01 Joseph Myers <joseph@codesourcery.com>
8010
8011 * sysdeps/generic/math-tests-snan-payload.h: New file.
8012 * sysdeps/hppa/math-tests-snan-payload.h: Likewise.
8013 * sysdeps/mips/math-tests-snan-payload.h: Likewise.
8014 * sysdeps/riscv/math-tests-snan-payload.h: Likewise.
8015 * sysdeps/generic/math-tests.h: Include
8016 <math-tests-snan-payload.h>.
8017 (SNAN_TESTS_PRESERVE_PAYLOAD): Do not define macro here.
8018 * sysdeps/hppa/math-tests.h: Remove file.
8019 * sysdeps/mips/math-tests.h [!__mips_nan2008]
8020 (SNAN_TESTS_PRESERVE_PAYLOAD): Do not define macro here.
8021 * sysdeps/riscv/math-tests.h (SNAN_TESTS_PRESERVE_PAYLOAD):
8022 Likewise.
8023
8024 * sysdeps/generic/math-tests-snan-cast.h: New file.
8025 * sysdeps/powerpc/math-tests-snan-cast.h: Likewise.
8026 * sysdeps/generic/math-tests.h: Include <math-tests-snan-cast.h>.
8027 (SNAN_TESTS_TYPE_CAST): Do not define macro here.
8028 * sysdeps/powerpc/math-tests.h (SNAN_TESTS_TYPE_CAST): Likewise.
8029
8030 2018-08-01 Carlos O'Donel <carlos@redhat.com>
8031
8032 * version.h (RELEASE): Set to "development".
8033 (VERSION): Set to "2.28.9000".
8034 * NEWS (2.29): New section.
8035
8036 * version.h (RELEASE): Set to "stable".
8037 (VERSION): Set to "2.28".
8038 * include/features.h (__GLIBC_MINOR__): Set to 2.28.
8039 * NEWS: Add the list of bugs fixed in 2.28.
8040
8041 * po/ca.po: Update to latest version.
8042 * po/cs.po: Likewise
8043 * po/da.po: Likewise
8044 * po/el.po: Likewise
8045 * po/eo.po: Likewise
8046 * po/es.po: Likewise
8047 * po/fi.po: Likewise
8048 * po/fr.po: Likewise
8049 * po/gl.po: Likewise
8050 * po/hu.po: Likewise
8051 * po/ia.po: Likewise
8052 * po/id.po: Likewise
8053 * po/it.po: Likewise
8054 * po/ja.po: Likewise
8055 * po/ko.po: Likewise
8056 * po/lt.po: Likewise
8057 * po/nb.po: Likewise
8058 * po/nl.po: Likewise
8059 * po/pt_BR.po: Likewise
8060 * po/ru.po: Likewise
8061 * po/rw.po: Likewise
8062 * po/sk.po: Likewise
8063 * po/sl.po: Likewise
8064 * po/tr.po: Likewise
8065 * po/zh_CN.po: Likewise
8066 * po/zh_TW.po: Likewise
8067
8068 2018-07-31 Samuel Thibault <samuel.thibault@ens-lyon.org>
8069
8070 * sysdeps/mach/hurd/i386/init-first.c (init1): Move ELF hdr and TLS
8071 initialization...
8072 (init): ... before initializing libpthread.
8073
8074 * mach/mach.h (__mach_setup_tls, mach_setup_tls): Add prototypes.
8075 * mach/setup-thread.c (__mach_setup_thread): Move TLS setup to...
8076 (__mach_setup_tls): ... new function.
8077 (mach_setup_tls): New alias.
8078 * hurd/hurdsig.c (_hurdsig_init): Call __mach_setup_tls after
8079 __mach_setup_thread.
8080 * sysdeps/mach/hurd/profil.c (update_waiter): Likewise.
8081 * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Likewise.
8082 * mach/Versions [libc] (mach_setup_tls): Add symbol.
8083 * sysdeps/mach/hurd/i386/libc.abilist (mach_setup_tls): Likewise.
8084
8085 2018-07-31 Carlos O'Donell <carlos@redhat.com>
8086
8087 * manual/install.texi: Update versions.
8088 * INSTALL: Regenerate.
8089
8090 * manual/contrib.texi (Contributors): Update contributions.
8091
8092 2018-07-31 Carlos O'Donell <carlos@redhat.com>
8093
8094 * po/be.po: Update translations.
8095
8096 2018-07-31 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8097
8098 * sysdeps/sh/libm-test-ulps: Update.
8099
8100 2018-07-30 Carlos O'Donell <carlos@redhat.com>
8101
8102 * po/bg.po: Update translations.
8103 * po/de.po: Likewise.
8104 * po/hr.po: Likewise.
8105 * po/pt_BR.po: Likewise.
8106 * po/sv.po: Likewise.
8107 * po/vi.po: Likewise.
8108
8109 2018-07-30 H.J. Lu <hongjiu.lu@intel.com>
8110
8111 [BZ #23467]
8112 * sysdeps/unix/sysv/linux/x86/Makefile (tests): Add
8113 tst-cet-property-1 and tst-cet-property-2 if CET is enabled.
8114 (CFLAGS-tst-cet-property-1.o): New.
8115 (ASFLAGS-tst-cet-property-dep-2.o): Likewise.
8116 ($(objpfx)tst-cet-property-2): Likewise.
8117 ($(objpfx)tst-cet-property-2.out): Likewise.
8118 * sysdeps/unix/sysv/linux/x86/tst-cet-property-1.c: New file.
8119 * sysdeps/unix/sysv/linux/x86/tst-cet-property-2.c: Likewise.
8120 * sysdeps/unix/sysv/linux/x86/tst-cet-property-dep-2.S: Likewise.
8121 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Parse
8122 each property item until GNU_PROPERTY_X86_FEATURE_1_AND is found.
8123
8124 2018-07-30 H.J. Lu <hongjiu.lu@intel.com>
8125
8126 [BZ #23458]
8127 * sysdeps/x86/Makefile (tests): Add tst-get-cpu-features-static.
8128
8129 2018-07-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
8130
8131 * sysdeps/mach/hurd/dl-unistd.h (__access, __brk, __lseek, __read,
8132 __sbrk): Do not set attribute_hidden.
8133 * sysdeps/mach/hurd/not-errno.h: New file.
8134 * sysdeps/mach/hurd/i386/ld.abilist: Update accordingly.
8135 * sysdeps/mach/hurd/i386/localplt.data: Update accordingly.
8136
8137 2018-07-27 Carlos O'Donell <carlos@redhat.com>
8138
8139 * po/uk.po: Update translations.
8140 * po/cs.po: Likewise.
8141 * po/pl.po: Likewise.
8142
8143 2018-07-27 H.J. Lu <hongjiu.lu@intel.com>
8144
8145 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Don't
8146 parse beyond the note end.
8147
8148 2018-07-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8149
8150 * sysdeps/unix/sysv/linux/tst-ofdlocks.c: Return unsupported if
8151 kernel does not support OFD locks.
8152 * sysdeps/unix/sysv/linux/tst-ofdlocks-compat.c: Likewise.
8153
8154 2018-07-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
8155
8156 * sysdeps/mach/hurd/Versions (libc): Make __access and
8157 __access_noerrno external so they can override the ld symbols.
8158 (ld): Make __access, __read, __sbrk, __strtoul_internal, __write,
8159 __writev, __open64, __access_noerrno extern so they can be overrided.
8160 * sysdeps/mach/hurd/i386/libc.abilist: Update accordingly.
8161 * sysdeps/mach/hurd/i386/ld.abilist: Update accordingly.
8162
8163 2018-07-26 Carlos O'Donell <carlos@redhat.com>
8164
8165 * po/libc.pot: Regenerate.
8166
8167 2018-07-26 Joseph Myers <joseph@codesourcery.com>
8168
8169 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
8170
8171 2018-07-26 H.J. Lu <hongjiu.lu@intel.com>
8172
8173 [BZ #23459]
8174 * sysdeps/x86/cpu-features.c (get_extended_indices): New
8175 function.
8176 (init_cpu_features): Call get_extended_indices for both Intel
8177 and AMD CPUs.
8178 * sysdeps/x86/cpu-features.h (COMMON_CPUID_INDEX_80000001):
8179 Remove "for AMD" comment.
8180
8181 2018-07-26 H.J. Lu <hongjiu.lu@intel.com>
8182
8183 [BZ # 23456]
8184 * sysdeps/x86/cpu-features.h (index_cpu_LZCNT): Set to
8185 COMMON_CPUID_INDEX_80000001.
8186
8187 2018-07-26 Stefan Liebler <stli@linux.ibm.com>
8188
8189 * string/tst-xbzero-opt.c (use_test_buffer): New function.
8190 (prepare_test_buffer): Call use_test_buffer as compiler barrier.
8191
8192 2018-07-26 Florian Weimer <fweimer@redhat.com>
8193
8194 * htl/lockfile.c (flockfile, funlockfile, ftrylockfile): Use weak
8195 aliases for symbols not in the implementation namespace.
8196
8197 2018-07-25 Carlos O'Donell <carlos@redhat.com>
8198
8199 [BZ #23393]
8200 * localedata/locales/iso14651_t1_common: Deinterlace uppercase and
8201 lowercase in LATIN script.
8202 * localedata/Makefile (test-input): Add en_US.UTF-8.
8203 * localedata/en_US.UTF-8.in: New file.
8204 * posix/tst-fnmatch.input: Add comments and new tests for en_US.UTF-8,
8205 and restore old tests.
8206 * posix/tst-regexloc.c (do_test): Add back range expression test.
8207
8208 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
8209
8210 * sysdeps/unix/sysv/linux/ia64/tst-setcontext4.c: New file.
8211
8212 2018-07-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8213
8214 * nptl/threads.h: Move to ...
8215 * sysdeps/nptl/threads.h: ... here.
8216 * sysdeps/hurd/stdc-predef.h: New file.
8217
8218 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
8219
8220 * sysdeps/unix/sysv/linux/x86/Makefile (tests): Add
8221 tst-cet-setcontext-1 if CET is enabled.
8222 (CFLAGS-tst-cet-setcontext-1.c): Add -mshstk.
8223 * sysdeps/unix/sysv/linux/x86/tst-cet-setcontext-1.c: New file.
8224
8225 2018-07-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8226
8227 * include/threads.h: Move to ...
8228 * sysdeps/nptl/threads.h: ... here.
8229 * sysdeps/htl/threads.h: New file.
8230 * conform/Makefile (linknamespace-libs-ISO11): Use
8231 static-thread-library instead of linking libpthread.
8232 (linknamespace-libs-XPG4): Revert wrong libcrypt.a addition.
8233
8234 2018-07-25 Florian Weimer <fweimer@redhat.com>
8235
8236 * nptl/tst-mtx-timedlock.c (do_test): Implement carry from
8237 nanoseconds into seconds.
8238 * nptl/tst-cnd-basic.c (signal_parent): Lock and unlock mutex.
8239 (do_test): Likewise.
8240 * nptl/tst-cnd-timedwait.c (signal_parent): Likewise.
8241 (do_test): Likewise. Avoid nanosecond overflow and spurious
8242 timeouts due to system load.
8243 * nptl/tst-cnd-broadcast.c (waiting_threads): New variable.
8244 (child_wait): Increment it.
8245 (do_test): Wait as long as necessary until all expected threads
8246 have arrived.
8247
8248 2018-07-25 Vedvyas Shanbhogue <vedvyas.shanbhogue@intel.com>
8249 H.J. Lu <hongjiu.lu@intel.com>
8250
8251 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h (ucontext_t): Add
8252 __ssp.
8253 * sysdeps/unix/sysv/linux/x86_64/__start_context.S: Include
8254 <asm/prctl.h> and "ucontext_i.h" when shadow stack is enabled.
8255 (__push___start_context): New.
8256 * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Include
8257 <asm/prctl.h>.
8258 (__getcontext): Record the current shadow stack base. Save the
8259 caller's shadow stack pointer and base.
8260 * sysdeps/unix/sysv/linux/x86_64/makecontext.c: Include
8261 <pthread.h>, <libc-pointer-arith.h> and <sys/prctl.h>.
8262 (__push___start_context): New prototype.
8263 (__makecontext): Call __push___start_context to allocate a new
8264 shadow stack, push __start_context onto the new stack as well
8265 as the new shadow stack.
8266 * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Include
8267 <asm/prctl.h>.
8268 (__setcontext): Restore the target shadow stack.
8269 * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Include
8270 <asm/prctl.h>.
8271 (__swapcontext): Record the current shadow stack base. Save
8272 the caller's shadow stack pointer and base. Restore the target
8273 shadow stack.
8274 * sysdeps/unix/sysv/linux/x86_64/sysdep.h
8275 (STACK_SIZE_TO_SHADOW_STACK_SIZE_SHIFT): New.
8276 * sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym (oSSP): New.
8277
8278 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
8279
8280 * stdlib/Makefile ((tests): Add tst-setcontext6, tst-setcontext7,
8281 tst-setcontext8 and tst-setcontext9.
8282 * stdlib/tst-setcontext6.c: New file.
8283 * stdlib/tst-setcontext7.c: Likewise.
8284 * stdlib/tst-setcontext8.c: Likewise.
8285 * stdlib/tst-setcontext9.c: Likewise.
8286
8287 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
8288
8289 * stdlib/Makefile ((tests): Add tst-setcontext5.
8290 * stdlib/tst-setcontext5.c: New file.
8291
8292 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
8293
8294 * stdlib/Makefile (tests): Add tst-setcontext4.
8295 * stdlib/tst-setcontext4.c: New file.
8296
8297 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
8298
8299 * stdlib/Makefile (tests): Add tst-swapcontext1.
8300 * stdlib/tst-swapcontext1.c: New test.
8301
8302 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
8303
8304 * sysdeps/x86/Makefile (tests): Add tst-cet-legacy-1,
8305 tst-cet-legacy-2, tst-cet-legacy-2a, tst-cet-legacy-3,
8306 tst-cet-legacy-4, tst-cet-legacy-4a, tst-cet-legacy-4b
8307 and tst-cet-legacy-4c.
8308 (modules-names): Add tst-cet-legacy-mod-1, tst-cet-legacy-mod-2
8309 and tst-cet-legacy-mod-4.
8310 (CFLAGS-tst-cet-legacy-2.c): New.
8311 (CFLAGS-tst-cet-legacy-mod-1.c): Likewise.
8312 (CFLAGS-tst-cet-legacy-mod-2.c): Likewise.
8313 (CFLAGS-tst-cet-legacy-3.c): Likewise.
8314 (CFLAGS-tst-cet-legacy-4.c): Likewise.
8315 (CFLAGS-tst-cet-legacy-mod-4.c): Likewise.
8316 ($(objpfx)tst-cet-legacy-1): Likewise.
8317 ($(objpfx)tst-cet-legacy-2): Likewise.
8318 ($(objpfx)tst-cet-legacy-2.out): Likewise.
8319 ($(objpfx)tst-cet-legacy-2a): Likewise.
8320 ($(objpfx)tst-cet-legacy-2a.out): Likewise.
8321 ($(objpfx)tst-cet-legacy-4): Likewise.
8322 ($(objpfx)tst-cet-legacy-4.out): Likewise.
8323 ($(objpfx)tst-cet-legacy-4a): Likewise.
8324 ($(objpfx)tst-cet-legacy-4a.out): Likewise.
8325 (tst-cet-legacy-4a-ENV): Likewise.
8326 ($(objpfx)tst-cet-legacy-4b): Likewise.
8327 ($(objpfx)tst-cet-legacy-4b.out): Likewise.
8328 (tst-cet-legacy-4b-ENV): Likewise.
8329 ($(objpfx)tst-cet-legacy-4c): Likewise.
8330 ($(objpfx)tst-cet-legacy-4c.out): Likewise.
8331 (tst-cet-legacy-4c-ENV): Likewise.
8332 * sysdeps/x86/tst-cet-legacy-1.c: New file.
8333 * sysdeps/x86/tst-cet-legacy-2.c: Likewise.
8334 * sysdeps/x86/tst-cet-legacy-2a.c: Likewise.
8335 * sysdeps/x86/tst-cet-legacy-3.c: Likewise.
8336 * sysdeps/x86/tst-cet-legacy-4.c: Likewise.
8337 * sysdeps/x86/tst-cet-legacy-4a.c: Likewise.
8338 * sysdeps/x86/tst-cet-legacy-4b.c: Likewise.
8339 * sysdeps/x86/tst-cet-legacy-4c.c: Likewise.
8340 * sysdeps/x86/tst-cet-legacy-mod-1.c: Likewise.
8341 * sysdeps/x86/tst-cet-legacy-mod-2.c: Likewise.
8342 * sysdeps/x86/tst-cet-legacy-mod-4.c: Likewise.
8343
8344 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
8345
8346 * sysdeps/i386/nptl/tcb-offsets.sym (SSP_BASE_OFFSET): New.
8347 * sysdeps/i386/nptl/tls.h (tcbhead_t): Replace __glibc_reserved2
8348 with ssp_base.
8349 * sysdeps/x86_64/nptl/tcb-offsets.sym (SSP_BASE_OFFSET): New.
8350 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Replace __glibc_reserved2
8351 with ssp_base.
8352
8353 2018-07-25 Andreas Schwab <schwab@suse.de>
8354
8355 [BZ #23442]
8356 * locale/weightwc.h (findidx): Handle the case where usrc is a
8357 prefix of cp but one character too short.
8358
8359 2018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8360
8361 * NEWS: Add ISO C threads addition.
8362
8363 2018-07-24 Florian Weimer <fweimer@redhat.com>
8364
8365 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
8366 [__LINUX_KERNEL_VERSION < 0x040D00] (__ASSUME_MLOCK2)
8367 (__ASSUME_COPY_FILE_RANGE): Undefine. Kernel support was added in
8368 4.13.
8369
8370 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
8371
8372 * sysdeps/unix/sysv/linux/x86/include/asm/prctl.h: New file.
8373 * sysdeps/unix/sysv/linux/x86/cpu-features.c: Include
8374 <sys/prctl.h> and <asm/prctl.h>.
8375 (get_cet_status): Call arch_prctl with ARCH_CET_STATUS.
8376 * sysdeps/unix/sysv/linux/x86/dl-cet.h: Include <sys/prctl.h>
8377 and <asm/prctl.h>.
8378 (dl_cet_allocate_legacy_bitmap): Call arch_prctl with
8379 ARCH_CET_LEGACY_BITMAP.
8380 (dl_cet_disable_cet): Call arch_prctl with ARCH_CET_DISABLE.
8381 (dl_cet_lock_cet): Call arch_prctl with ARCH_CET_LOCK.
8382 * sysdeps/x86/libc-start.c: Include <startup.h>.
8383
8384 2018-07-24 Florian Weimer <fweimer@redhat.com>
8385
8386 * sysdeps/unix/sysv/linux/sh/kernel-features.h (__ASSUME_STATX):
8387 Undefine. Suggested by Romain Naour <romain.naour@gmail.com>.
8388
8389 2018-07-24 Rical Jasan <rj@2c3t.io>
8390 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8391 Juan Manuel Torres Palma <jmtorrespalma@gmail.com>
8392
8393 [BZ #14092]
8394 * manual/debug.texi: Update adjacent chapter name.
8395 * manual/probes.texi: Likewise.
8396 * manual/threads.texi (ISO C Threads): New section.
8397 (POSIX Threads): Convert to a section.
8398
8399 2018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8400 Juan Manuel Torres Palma <jmtorrespalma@gmail.com>
8401
8402 [BZ# 14092]
8403 * nptl/Makefile (tests): Add new test files.
8404 * nptl/tst-call-once.c : New file. Tests C11 functions and types.
8405 * nptl/tst-cnd-basic.c: Likewise.
8406 * nptl/tst-cnd-broadcast.c: Likewise.
8407 * nptl/tst-cnd-timedwait.c: Likewise.
8408 * nptl/tst-mtx-basic.c: Likewise.
8409 * nptl/tst-mtx-recursive.c: Likewise.
8410 * nptl/tst-mtx-timedlock.c: Likewise.
8411 * nptl/tst-mtx-trylock.c: Likewise.
8412 * nptl/tst-thrd-basic.c: Likewise.
8413 * nptl/tst-thrd-detach.c: Likewise.
8414 * nptl/tst-thrd-sleep.c: Likewise.
8415 * nptl/tst-tss-basic.c: Likewise.
8416
8417 2018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8418
8419 [BZ #14092]
8420 * sysdeps/unix/sysv/linux/aarch64/libc.abilist [GLIBC_2.28]
8421 (thrd_current, thrd_equal, thrd_sleep, thrd_yield): Add C11 thread
8422 symbols.
8423 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
8424 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
8425 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
8426 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
8427 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
8428 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
8429 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
8430 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
8431 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
8432 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
8433 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
8434 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
8435 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
8436 Likewise.
8437 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
8438 Likewise.
8439 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
8440 Likewise.
8441 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
8442 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
8443 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
8444 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
8445 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
8446 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
8447 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
8448 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
8449 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
8450 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist [[GLIBC_2.28]
8451 (call_once, cnd_broadcast, cnd_destroy, cnd_init, cnd_signal,
8452 cnd_timedwait, cnd_wait, mtx_destroy, mtx_init, mtx_lock,
8453 mtx_timedlock, mtx_trylock, mtx_unlokc, thrd_create, thrd_detach,
8454 thrd_exit, thrd_join, tss_create, tss_delete, tss_get, tss_set):
8455 Likewise.
8456 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist: Likewise.
8457 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: Likewise.
8458 * sysdeps/unix/sysv/linux/arm/libpthread.abilist: Likewise.
8459 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist: Likewise.
8460 * sysdeps/unix/sysv/linux/i386/libpthread.abilist: Likewise.
8461 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist: Likewise.
8462 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist: Likewise.
8463 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist: Likewise.
8464 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist: Likewise.
8465 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist: Likewise.
8466 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist: Likewise.
8467 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist: Likewise.
8468 ikewise.
8469 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist:
8470 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread-le.abilist:
8471 Likewise.
8472 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread.abilist:
8473 Likewise.
8474 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist: Likewise.
8475 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist: Likewise.
8476 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist: Likewise.
8477 * sysdeps/unix/sysv/linux/sh/libpthread.abilist: Likewise.
8478 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist: Likewise.
8479 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist: Likewise.
8480 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: Likewise.
8481 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: Likewise.
8482
8483 [BZ #14092]
8484 * conform/data/threads.h-data (thread_local): New macro.
8485 (TSS_DTOR_ITERATIONS): Likewise.
8486 (tss_t): New type.
8487 (tss_dtor_t): Likewise.
8488 (tss_create): New function.
8489 (tss_get): Likewise.
8490 (tss_set): Likewise.
8491 (tss_delete): Likewise.
8492 * nptl/Makefile (libpthread-routines): Add tss_create, tss_delete,
8493 tss_get, and tss_set objects.
8494 * nptl/Versions (libpthread) [GLIBC_2.28]: Likewise.
8495 * nptl/tss_create.c: New file.
8496 * nptl/tss_delete.c: Likewise.
8497 * nptl/tss_get.c: Likewise.
8498 * nptl/tss_set.c: Likewise.
8499 * sysdeps/nptl/threads.h (thread_local): New define.
8500 (TSS_DTOR_ITERATIONS): Likewise.
8501 (tss_t): New typedef.
8502 (tss_dtor_t): Likewise.
8503 (tss_create): New prototype.
8504 (tss_get): Likewise.
8505 (tss_set): Likewise.
8506 (tss_delete): Likewise.
8507
8508 [BZ #14092]
8509 * conform/data/threads.h-data (cnd_t): New type.
8510 (cnd_init): New function.
8511 (cnd_signal): Likewise.
8512 (cnd_broadcast): Likewise.
8513 (cnd_wait): Likewise.
8514 (cnd_timedwait): Likewise.
8515 (cnd_destroy): Likewise.
8516 * nptl/Makefile (libpthread-routines): Add cnd_broadcast,
8517 cnd_destroy, cnd_init, cnd_signal, cnd_timedwait, and cnd_wait
8518 object.
8519 * nptl/Versions (libpthread) [GLIBC_2.28]: Likewise.
8520 * nptl/cnd_broadcast.c: New file.
8521 * nptl/cnd_destroy.c: Likewise.
8522 * nptl/cnd_init.c: Likewise.
8523 * nptl/cnd_signal.c: Likewise.
8524 * nptl/cnd_timedwait.c: Likewise.
8525 * nptl/cnd_wait.c: Likewise.
8526 * sysdeps/nptl/threads.h (cnd_t): New type.
8527 (cnd_init): New prototype.
8528 (cnd_signa): Likewise.
8529 (cnd_broadcast): Likewise.
8530 (cnd_wait): Likewise.
8531 (cnd_timedwait): Likewise.
8532 (cnd_destroy): Likewise.
8533
8534 [BZ #14092]
8535 * conform/data/threads.h-data (ONCE_FLAG_INIT): New macro.
8536 (once_flag): New type.
8537 (call_once): New function.
8538 * nptl/Makefile (libpthread-routines): Add call_once object.
8539 * nptl/Versions (libphread) [GLIBC_2.28]: Add call_once symbol.
8540 * nptl/call_once.c: New file.
8541 * sysdeps/nptl/threads.h (ONCE_FLAG_INIT): New define.
8542 (once_flag): New type.
8543 (call_once): New prototype.
8544
8545 [BZ #14092]
8546 * conform/data/threads.h-data (mtx_plain): New constant.
8547 (mtx_recursive): Likewise.
8548 (mtx_timed): Likewise.
8549 (mtx_t): New type.
8550 (mtx_init): New function.
8551 (mtx_lock): Likewise.
8552 (mtx_timedlock): Likewise.
8553 (mtx_trylock): Likewise.
8554 (mtx_unlock): Likewise.
8555 (mtx_destroy): Likewise.
8556 * nptl/Makefile (libpthread-routines): Add mtx_destroy, mtx_init,
8557 mtx_lock, mtx_timedlock, mtx_trylock, and mtx_unlock object.
8558 * nptl/Versions (libpthread) [GLIBC_2.28]): Add mtx_init, mtx_lock,
8559 mtx_timedlock, mtx_trylock, mtx_unlock, and mtx_destroy.
8560 * nptl/mtx_destroy.c: New file.
8561 * nptl/mtx_init.c: Likewise.
8562 * nptl/mtx_lock.c: Likewise.
8563 * nptl/mtx_timedlock.c: Likewise.
8564 * nptl/mtx_trylock.c: Likewise.
8565 * nptl/mtx_unlock.c: Likewise.
8566 * sysdeps/nptl/threads.h (mtx_plain): New enumeration.
8567 (mtx_recursive): Likewise.
8568 (mtx_timed): Likewise.
8569 (mtx_t): New type.
8570 (mtx_init): New prototype.
8571 (mtx_lock): Likewise.
8572 (mtx_timedlock): Likewise.
8573 (mtx_trylock): Likewise.
8574 (mtx_unlock): Likewise.
8575 (mtx_destroy): Likewise.
8576
8577 [BZ #14092]
8578 * conform/Makefile (conformtest-headers-ISO11): Add threads.h.
8579 (linknamespace-libs-ISO11): Add libpthread.a.
8580 * conform/data/threads.h-data: New file: add C11 thrd_* types and
8581 functions.
8582 * include/stdc-predef.h (__STDC_NO_THREADS__): Remove definition.
8583 * nptl/Makefile (headers): Add threads.h.
8584 (libpthread-routines): Add new C11 thread thrd_create, thrd_current,
8585 thrd_detach, thrd_equal, thrd_exit, thrd_join, thrd_sleep, and
8586 thrd_yield.
8587 * nptl/Versions (libpthread) [GLIBC_2.28]): Add new C11 thread
8588 thrd_create, thrd_current, thrd_detach, thrd_equal, thrd_exit,
8589 thrd_join, thrd_sleep, and thrd_yield symbols.
8590 * nptl/descr.h (struct pthread): Add c11 field.
8591 * nptl/pthreadP.h (ATTR_C11_THREAD): New define.
8592 * nptl/pthread_create.c (START_THREAD_DEFN): Call C11 thread start
8593 routine with expected function prototype.
8594 (__pthread_create_2_1): Add C11 threads check based on attribute
8595 value.
8596 * sysdeps/unix/sysdep.h (INTERNAL_SYSCALL_CANCEL): New macro.
8597 * nptl/thrd_create.c: New file.
8598 * nptl/thrd_current.c: Likewise.
8599 * nptl/thrd_detach.c: Likewise.
8600 * nptl/thrd_equal.c: Likewise.
8601 * nptl/thrd_exit.c: Likewise.
8602 * nptl/thrd_join.c: Likewise.
8603 * nptl/thrd_priv.h: Likewise.
8604 * nptl/thrd_sleep.c: Likewise.
8605 * nptl/thrd_yield.c: Likewise.
8606 * include/threads.h: Likewise.
8607
8608 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
8609
8610 * bits/indirect-return.h: New file.
8611 * misc/sys/cdefs.h (__glibc_has_attribute): New.
8612 * sysdeps/x86/bits/indirect-return.h: Likewise.
8613 * stdlib/Makefile (headers): Add bits/indirect-return.h.
8614 * stdlib/ucontext.h: Include <bits/indirect-return.h>.
8615 (swapcontext): Add __INDIRECT_RETURN.
8616 * string/tst-xbzero-opt.c (ALWAYS_INLINE): New.
8617 (prepare_test_buffer): Use it.
8618
8619 2018-07-24 Andreas Schwab <schwab@suse.de>
8620
8621 [BZ #23448]
8622 * iconvdata/ibm1364.c (MAX_NEEDED_OUTPUT) [FROM_LOOP]: Define.
8623 (MAX_NEEDED_INPUT) [TO_LOOP]: Define.
8624
8625 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
8626
8627 * sysdeps/unix/sysv/linux/i386/vfork.S (SYSCALL_ERROR_HANDLER):
8628 Redefine if shadow stack is enabled.
8629 (SYSCALL_ERROR_LABEL): Likewise.
8630 (__vfork): Pop shadow stack and jump back to to caller directly
8631 when shadow stack is in use.
8632 * sysdeps/unix/sysv/linux/x86_64/vfork.S (SYSCALL_ERROR_HANDLER):
8633 Redefine if shadow stack is enabled.
8634 (SYSCALL_ERROR_LABEL): Likewise.
8635 (__vfork): Pop shadow stack and jump back to to caller directly
8636 when shadow stack is in use.
8637
8638 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
8639
8640 * sysdeps/x86_64/tst-quadmod1.S (func): Add endbr64 if IBT is
8641 enabled.
8642 (foo): Likewise.
8643 * sysdeps/x86_64/tst-quadmod2.S (func) : Likewise.
8644 (foo): Likewise.
8645
8646 2018-07-20 Joseph Myers <joseph@codesourcery.com>
8647
8648 * scripts/build-many-glibcs.py (Context.checkout): Default
8649 binutils version to 2.31 branch.
8650
8651 2018-07-20 Zong Li <zong@andestech.com>
8652
8653 * scripts/build-many-glibcs.py (Context.checkout_tar): Change the
8654 URL of gcc's tarball.
8655
8656 2018-07-20 Florian Weimer <fweimer@redhat.com>
8657
8658 [BZ #23396]
8659 * posix/regcomp.c (build_equiv_class): When comparing weights, do
8660 not compare an extra byte after the end of the weights.
8661
8662 2018-07-20 Samuel Thibault <samuel.thibault@ens-lyon.org>
8663
8664 * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Set multiple_threads
8665 to 1.
8666 * sysdeps/hurd/include/hurd/port.h [!_ISOMAC]: Do not declare libc
8667 hidden prototypes.
8668 * sysdeps/mach/include/mach-shortcuts-hidden.h [!_ISOMAC]: Likewise.
8669 * sysdeps/mach/include/mach/mach_traps.h [!_ISOMAC]: Likewise.
8670 * scripts/check-execstack.awk: Consider `xfail' variable containing a
8671 list of libraries whose stack executability is expected.
8672 * elf/Makefile ($(objpfx)check-execstack.out): Pass
8673 $(check-execstack-xfail) to check-execstack.awk through `xfail'
8674 variable.
8675 * sysdeps/mach/hurd/i386/Makefile (check-execstack-xfail): Set to ld.so
8676 libc.so libpthread.so.
8677
8678 2018-07-20 Thomas Schwinge <tschwinge@gnu.org>
8679
8680 * sysdeps/mach/hurd/socket.c (__socket): Handle SOCK_CLOEXEC and
8681 SOCK_NONBLOCK.
8682 * sysdeps/mach/hurd/socketpair.c (__socketpair): Handle SOCK_CLOEXEC
8683 and SOCK_NONBLOCK.
8684 * sysdeps/mach/hurd/pipe2.c: New file, copy from pipe.c. Evolve it to
8685 implement __pipe2.
8686 * sysdeps/mach/hurd/pipe.c (__pipe): Reimplement using __pipe2.
8687
8688 2018-07-19 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
8689
8690 * benchtests/scripts/compare_bench.py (__main__): use the argparse
8691 library to improve command line parsing.
8692 (__main__): make schema file as optional parameter (--schema),
8693 defaulting to benchtests/scripts/benchout.schema.json.
8694 (main): move out of the parsing stuff to __main_  and leave it
8695 only as caller of main comparison functions.
8696
8697 2018-07-19 H.J. Lu <hongjiu.lu@intel.com>
8698
8699 * NEWS: Add a note for Intel CET status.
8700 * manual/install.texi: Likewise.
8701 * INSTALL: Regenerated.
8702
8703 2018-07-18 Quentin PAGÈS <provaires@quentino.fr>
8704
8705 [BZ #23140]
8706 * localedata/locales/oc_FR (mon): Rename to...
8707 (alt_mon): This, then update October (typo fix).
8708 (mon): New content (genitive case, month names preceded by
8709 "de" or "d’").
8710
8711 [BZ #23422]
8712 * localedata/locales/oc_FR (abday): Update all items.
8713 (day): Update Wednesday and Saturday (typo fixes).
8714 (abmon): Update all items, except May.
8715 (d_fmt): Update "%d.%m.%Y" -> "%d/%m/%Y".
8716 (LC_IDENTIFICATION): Bump the revision number and date.
8717 Keep the "category" entries in alphabetic order.
8718 (LC_ADDRESS): Remove no longer needed comment.
8719 (LC_COLLATE): Use “copy "ca_ES"”.
8720 (LC_NAME): Set the correct values of "name_fmt", "name_mr", and
8721 "name_mrs".
8722
8723 2018-07-18 Joseph Myers <joseph@codesourcery.com>
8724
8725 * grp/tst_fgetgrent.c: Include <unistd.h>.
8726 (main): Use mkstemp instead of tmpnam.
8727 * io/test-utime.c (main): Likewise.
8728 * posix/annexc.c (macrofile): Change to modifiable array.
8729 (main): Remove macrofile here.
8730 (get_null_defines): Use mkstemp instead of tmpnam. Do not remove
8731 macrofile here.
8732 (check_header): Do not remove macrofile here.
8733 * posix/bug-getopt1.c: Include <stdlib.h>.
8734 (do_test): Use mkstemp instead of tmpnam.
8735 * posix/bug-getopt2.c: Include <stdlib.h>.
8736 (do_test): Use mkstemp instead of tmpnam.
8737 * posix/bug-getopt3.c: Include <stdlib.h>.
8738 (do_test): Use mkstemp instead of tmpnam.
8739 * posix/bug-getopt4.c: Include <stdlib.h>.
8740 (do_test): Use mkstemp instead of tmpnam.
8741 * posix/bug-getopt5.c: Include <stdlib.h>.
8742 (do_test): Use mkstemp instead of tmpnam.
8743 * stdio-common/bug7.c: Include <stdlib.h> and <unistd.h>.
8744 (main): Use mkstemp instead of tmpnam.
8745 * stdio-common/tst-fdopen.c: Include <stdlib.h>.
8746 (main): Use mkstemp instead of tmpnam.
8747 * stdio-common/tst-ungetc.c: Include <stdlib.h>.
8748 (main): use mkstemp instead of tmpnam.
8749 * stdlib/isomac.c (macrofile): Change to modifiable array.
8750 (main): Remove macrofile here.
8751 (get_null_defines): Use mkstemp instead of tmpnam. Do not remove
8752 macrofile here.
8753 (check_header): Do not remove macrofile here.
8754
8755 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8756
8757 * manual/tunables.texi: Document glibc.tune.x86_ibt and
8758 glibc.tune.x86_shstk.
8759
8760 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8761
8762 * NEWS: Mention --enable-cet.
8763 * manual/install.texi: Document --enable-cet.
8764 * INSTALL: Regenerated.
8765
8766 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8767
8768 * sysdeps/x86_64/multiarch/memcmp-sse4.S (BRANCH_TO_JMPTBL_ENTRY):
8769 Add _CET_NOTRACK before indirect jump to jump table.
8770
8771 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8772
8773 * sysdeps/i386/i686/multiarch/memset-sse2-rep.S
8774 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
8775 to jump table.
8776
8777 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8778
8779 * sysdeps/i386/i686/multiarch/strcat-sse2.S
8780 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
8781 to jump table.
8782
8783 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8784
8785 * sysdeps/i386/i686/multiarch/strcpy-sse2.S
8786 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
8787 to jump table.
8788
8789 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8790
8791 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S
8792 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
8793 to jump table.
8794
8795 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8796
8797 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S
8798 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
8799 to jump table.
8800 (BRANCH_TO_JMPTBL_ENTRY_TAIL): Likewise.
8801
8802 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8803
8804 * sysdeps/i386/i686/multiarch/memcmp-sse4.S
8805 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
8806 to jump table.
8807
8808 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8809
8810 * sysdeps/i386/i686/multiarch/memset-sse2.S
8811 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
8812 to jump table.
8813
8814 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8815
8816 * sysdeps/i386/i686/memcmp.S (memcmp): Add _CET_NOTRACK before
8817 indirect jump to jump table.
8818
8819 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8820
8821 * sysdeps/x86_64/multiarch/memcpy-ssse3.S
8822 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
8823 to jump table.
8824 (MEMCPY): Likewise.
8825
8826 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8827
8828 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S
8829 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
8830 to jump table.
8831 (MEMCPY): Likewise.
8832
8833 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8834
8835 * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Add
8836 _CET_NOTRACK before indirect jump to jump table.
8837
8838 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8839
8840 * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S
8841 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
8842 to jump table.
8843
8844 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8845
8846 * sysdeps/x86_64/strcmp.S (STRCMP): Add _CET_NOTRACK before
8847 indirect jump to jump table.
8848
8849 2018-07-18 Valery Timiriliyev <timiriliyev@gmail.com>
8850
8851 [BZ #22241]
8852 * localedata/Makefile (test-input): Add sah_RU.UTF-8.
8853 (LOCALES): Likewise.
8854 * localedata/SUPPORTED (sah_RU/UTF-8): New entry.
8855 * localedata/locales/sah_RU: New file.
8856 * localedata/sah_RU.UTF-8.in: New file.
8857
8858 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
8859
8860 * sysdeps/i386/add_n.S: Include <sysdep.h>, instead of
8861 "sysdep.h".
8862 (__mpn_add_n): Save and restore %ebx if IBT is enabed. Add
8863 _CET_ENDBR to indirect jump targets and adjust jump destination
8864 for _CET_ENDBR.
8865 * sysdeps/i386/i686/add_n.S: Include <sysdep.h>, instead of
8866 "sysdep.h".
8867 (__mpn_add_n): Save and restore %ebx if IBT is enabed. Add
8868 _CET_ENDBR to indirect jump targets and adjust jump destination
8869 for _CET_ENDBR.
8870 * sysdeps/i386/sub_n.S: Include <sysdep.h>, instead of
8871 "sysdep.h".
8872 (__mpn_sub_n): Save and restore %ebx if IBT is enabed. Add
8873 _CET_ENDBR to indirect jump targets and adjust jump destination
8874 for _CET_ENDBR.
8875
8876 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
8877
8878 * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Add
8879 _CET_ENDBR.
8880
8881 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
8882
8883 * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_return): Add
8884 _CET_ENDBR.
8885 (_dl_tlsdesc_undefweak): Likewise.
8886 (_dl_tlsdesc_dynamic): Likewise.
8887 (_dl_tlsdesc_resolve_abs_plus_addend): Likewise.
8888 (_dl_tlsdesc_resolve_rel): Likewise.
8889 (_dl_tlsdesc_resolve_rela): Likewise.
8890 (_dl_tlsdesc_resolve_hold): Likewise.
8891 * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_return): Likewise.
8892 (_dl_tlsdesc_undefweak): Likewise.
8893 (_dl_tlsdesc_dynamic): Likewise.
8894 (_dl_tlsdesc_resolve_rela): Likewise.
8895 (_dl_tlsdesc_resolve_hold): Likewise.
8896
8897 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
8898
8899 * sysdeps/i386/crti.S (_init): Add _CET_ENDBR.
8900 (_fini): Likewise.
8901 * sysdeps/x86_64/crti.S (_init): Likewise.
8902 (_fini): Likewise.
8903
8904 2018-07-17 Rafal Luzynski <digitalfreak@lingonborough.com>
8905
8906 [BZ #23140]
8907 * localedata/locales/os_RU (mon): Rename to...
8908 (alt_mon): This.
8909 (mon): Import from CLDR (genitive case).
8910
8911 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
8912
8913 * sysdeps/x86/cpu-features.c: Always include <dl-cet.h> and
8914 cet-tunables.h> when CET is enabled.
8915
8916 2018-07-16 H.J. Lu <hongjiu.lu@intel.com>
8917
8918 [BZ #21598]
8919 * configure.ac: Add --enable-cet.
8920 * configure: Regenerated.
8921 * elf/Makefille (all-built-dso): Add a comment.
8922 * elf/dl-load.c (filebuf): Moved before "dynamic-link.h".
8923 Include <dl-prop.h>.
8924 (_dl_map_object_from_fd): Call _dl_process_pt_note on PT_NOTE
8925 segment.
8926 * elf/dl-open.c: Include <dl-prop.h>.
8927 (dl_open_worker): Call _dl_open_check.
8928 * elf/rtld.c: Include <dl-prop.h>.
8929 (dl_main): Call _rtld_process_pt_note on PT_NOTE segment. Call
8930 _rtld_main_check.
8931 * sysdeps/generic/dl-prop.h: New file.
8932 * sysdeps/i386/dl-cet.c: Likewise.
8933 * sysdeps/unix/sysv/linux/x86/cpu-features.c: Likewise.
8934 * sysdeps/unix/sysv/linux/x86/dl-cet.h: Likewise.
8935 * sysdeps/x86/cet-tunables.h: Likewise.
8936 * sysdeps/x86/check-cet.awk: Likewise.
8937 * sysdeps/x86/configure: Likewise.
8938 * sysdeps/x86/configure.ac: Likewise.
8939 * sysdeps/x86/dl-cet.c: Likewise.
8940 * sysdeps/x86/dl-procruntime.c: Likewise.
8941 * sysdeps/x86/dl-prop.h: Likewise.
8942 * sysdeps/x86/libc-start.h: Likewise.
8943 * sysdeps/x86/link_map.h: Likewise.
8944 * sysdeps/i386/dl-trampoline.S (_dl_runtime_resolve): Add
8945 _CET_ENDBR.
8946 (_dl_runtime_profile): Likewise.
8947 (_dl_runtime_resolve_shstk): New.
8948 (_dl_runtime_profile_shstk): Likewise.
8949 * sysdeps/linux/x86/Makefile (sysdep-dl-routines): Add dl-cet
8950 if CET is enabled.
8951 (CFLAGS-.o): Add -fcf-protection if CET is enabled.
8952 (CFLAGS-.os): Likewise.
8953 (CFLAGS-.op): Likewise.
8954 (CFLAGS-.oS): Likewise.
8955 (asm-CPPFLAGS): Add -fcf-protection -include cet.h if CET
8956 is enabled.
8957 (tests-special): Add $(objpfx)check-cet.out.
8958 (cet-built-dso): New.
8959 (+$(cet-built-dso:=.note)): Likewise.
8960 (common-generated): Add $(cet-built-dso:$(common-objpfx)%=%.note).
8961 ($(objpfx)check-cet.out): New.
8962 (generated): Add check-cet.out.
8963 * sysdeps/x86/cpu-features.c: Include <dl-cet.h> and
8964 <cet-tunables.h>.
8965 (TUNABLE_CALLBACK (set_x86_ibt)): New prototype.
8966 (TUNABLE_CALLBACK (set_x86_shstk)): Likewise.
8967 (init_cpu_features): Call get_cet_status to check CET status
8968 and update dl_x86_feature_1 with CET status. Call
8969 TUNABLE_CALLBACK (set_x86_ibt) and TUNABLE_CALLBACK
8970 (set_x86_shstk). Disable and lock CET in libc.a.
8971 * sysdeps/x86/cpu-tunables.c: Include <cet-tunables.h>.
8972 (TUNABLE_CALLBACK (set_x86_ibt)): New function.
8973 (TUNABLE_CALLBACK (set_x86_shstk)): Likewise.
8974 * sysdeps/x86/sysdep.h (_CET_NOTRACK): New.
8975 (_CET_ENDBR): Define if not defined.
8976 (ENTRY): Add _CET_ENDBR.
8977 * sysdeps/x86/dl-tunables.list (glibc.tune): Add x86_ibt and
8978 x86_shstk.
8979 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve): Add
8980 _CET_ENDBR.
8981 (_dl_runtime_profile): Likewise.
8982
8983 2018-07-16 Rogerio A. Cardoso <rcardoso@linux.vnet.ibm.com>
8984
8985 [BZ #21895]
8986 * sysdeps/powerpc/powerpc64/__longjmp-common.S: Remove condition code for
8987 restore r2 on longjmp.
8988 * sysdeps/powerpc/powerpc64/Makefile: Added tst-setjmp-bug21895-static to
8989 test list.
8990 Added rules to build test tst-setjmp-bug21895-static.
8991 Added module setjmp-bug21895 and rules to build a shared object from it.
8992 * sysdeps/powerpc/powerpc64/setjmp-bug21895.c: New test file.
8993 * sysdeps/powerpc/powerpc64/tst-setjmp-bug21895-static.c: New test file.
8994
8995 2018-07-15 Wilco Dijkstra <wdijkstr@arm.com>
8996
8997 * benchtests/bench-strcasestr.c: Rename __strnlen to strnlen.
8998 * benchtests/bench-strstr.c: Likewise.
8999 * string/memmem.c (FASTSEARCH): Define.
9000 * string/str-two-way.h (two_way_short_needle): Minor cleanups.
9001 Add support for FASTSEARCH.
9002 * string/strcasestr.c (AVAILABLE): Use read-ahead __strnlen.
9003 * string/strstr.c (AVAILABLE): Use read-ahead __strnlen.
9004 (FASTSEARCH): Define.
9005 * string/test-strcasestr.c: Rename __strnlen to strnlen.
9006 * string/test-strstr.c: Likewise.
9007
9008 2018-07-15 H.J. Lu <hongjiu.lu@intel.com>
9009
9010 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Undef
9011 SHADOW_STACK_POINTER_OFFSET after including <jmp_buf-ssp.h>.
9012
9013 2018-07-14 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
9014 H.J. Lu <hongjiu.lu@intel.com>
9015
9016 * sysdeps/i386/__longjmp.S: Include <jmp_buf-ssp.h>.
9017 (__longjmp): Restore shadow stack pointer if shadow stack is
9018 enabled, SHADOW_STACK_POINTER_OFFSET is defined and __longjmp
9019 isn't defined for __longjmp_cancel.
9020 * sysdeps/i386/bsd-_setjmp.S: Include <jmp_buf-ssp.h>.
9021 (_setjmp): Save shadow stack pointer if shadow stack is enabled
9022 and SHADOW_STACK_POINTER_OFFSET is defined.
9023 * sysdeps/i386/bsd-setjmp.S: Include <jmp_buf-ssp.h>.
9024 (setjmp): Save shadow stack pointer if shadow stack is enabled
9025 and SHADOW_STACK_POINTER_OFFSET is defined.
9026 * sysdeps/i386/setjmp.S: Include <jmp_buf-ssp.h>.
9027 (__sigsetjmp): Save shadow stack pointer if shadow stack is
9028 enabled and SHADOW_STACK_POINTER_OFFSET is defined.
9029 * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Include
9030 <jmp_buf-ssp.h>.
9031 (____longjmp_chk): Restore shadow stack pointer if shadow stack
9032 is enabled and SHADOW_STACK_POINTER_OFFSET is defined.
9033 * sysdeps/unix/sysv/linux/x86/Makefile (gen-as-const-headers):
9034 Remove jmp_buf-ssp.sym.
9035 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
9036 <jmp_buf-ssp.h>.
9037 (____longjmp_chk): Restore shadow stack pointer if shadow stack
9038 is enabled and SHADOW_STACK_POINTER_OFFSET is defined.
9039 * sysdeps/x86/Makefile (gen-as-const-headers): Add
9040 jmp_buf-ssp.sym.
9041 * sysdeps/x86/jmp_buf-ssp.sym: New dummy file.
9042 * sysdeps/x86_64/__longjmp.S: Include <jmp_buf-ssp.h>.
9043 (__longjmp): Restore shadow stack pointer if shadow stack is
9044 enabled, SHADOW_STACK_POINTER_OFFSET is defined and __longjmp
9045 isn't defined for __longjmp_cancel.
9046 * sysdeps/x86_64/setjmp.S: Include <jmp_buf-ssp.h>.
9047 (__sigsetjmp): Save shadow stack pointer if shadow stack is
9048 enabled and SHADOW_STACK_POINTER_OFFSET is defined.
9049
9050 2018-07-14 H.J. Lu <hongjiu.lu@intel.com>
9051
9052 [BZ #22563]
9053 * nptl/pthread_create.c: Include <tls-setup.h>.
9054 (__pthread_create_2_1): Call tls_setup_tcbhead.
9055 * sysdeps/generic/tls-setup.h: New file.
9056 * sysdeps/x86/nptl/tls-setup.h: Likewise.
9057 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
9058 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET):
9059 Likewise.
9060 * sysdeps/i386/nptl/tls.h (tcbhead_t): Rename __glibc_reserved1
9061 to feature_1.
9062 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Likewise.
9063 * sysdeps/x86/sysdep.h (X86_FEATURE_1_IBT): New.
9064 (X86_FEATURE_1_SHSTK): Likewise.
9065 (CET_ENABLED): Likewise.
9066 (IBT_ENABLED): Likewise.
9067 (SHSTK_ENABLED): Likewise.
9068
9069 2018-07-13 Rafal Luzynski <digitalfreak@lingonborough.com>
9070
9071 [BZ #23208]
9072 * localedata/Makefile (test-input): Add dsb_DE.UTF-8.
9073 (LOCALES): Likewise.
9074 * localedata/dsb_DE.UTF-8.in: New file.
9075 * localedata/locales/dsb_DE (LC_COLLATE): Fix syntax error.
9076
9077 2018-07-12 Florian Weimer <fweimer@redhat.com>
9078
9079 * nptl/allocatestack.c [_STACK_GROWS_UP] (allocate_stack): Call
9080 __mprotect, not mprotect.
9081
9082 2018-07-11 Florian Weimer <fweimer@redhat.com>
9083
9084 * io/Makefile (headers): Add bits/statx.h.
9085
9086 2018-07-10 Mike FABIAN <mfabian@redhat.com>
9087
9088 * localedata/charmaps/UTF-8: Use correct Unicode version 11.0.0 in comment.
9089 * localedata/locales/i18n_ctype: Use correct Unicode version in comments
9090 and headers.
9091 * localedata/unicode-gen/utf8_gen.py: Add option to specify Unicode version
9092 * localedata/unicode-gen/Makefile: Use option to specify Unicode version
9093 for utf8_gen.py
9094
9095 2018-07-10 Florian Weimer <fweimer@redhat.com>
9096
9097 * io/Makefile (routines): Add statx.
9098 (tests-internal): Add tst-statx.
9099 * io/Versions (GLIBC_2.28): Export statx.
9100 * io/bits/statx.h: New file.
9101 * io/sys/stat.h [__USE_GNU]: Include it.
9102 * io/fcntl.h [__USE_GNU] (AT_STATX_SYNC_TYPE)
9103 (AT_STATX_SYNC_AS_STAT, AT_STATX_FORCE_SYNC, AT_STATX_DONT_SYNC):
9104 Define.
9105 * io/statx.c: New file.
9106 * io/statx_generic.: Likewise.
9107 * io/tst-statx.: Likewise.
9108 * include/bits/statx.h: Likewise.
9109 * sysdeps/unix/sysv/linux/kernel-features.h
9110 [__LINUX_KERNEL_VERSION >= 0x040B00] (__ASSUME_STATX): Define.
9111 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
9112 [__LINUX_KERNEL_VERSION < 0x040D00] (__ASSUME_STATX): Undefine.
9113 * sysdeps/unix/sysv/linux/ia64/kernel-features.h (__ASSUME_STATX):
9114 Undefine.
9115 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
9116 [__LINUX_KERNEL_VERSION < 0x040C00] (__ASSUME_STATX): Undefine.
9117 * sysdeps/unix/sysv/linux/statx.c: New file.
9118 * manual/filesys.texi: Note that statx is undocumented.
9119 * sysdeps/**/libc*.abilist: Update.
9120
9121 2018-07-10 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9122
9123 * sysdeps/unix/sysv/linux/tst-ofdlocks-compat.c: Add a comment about
9124 a kernel issue which lead to test failure in some cases.
9125
9126 2018-07-10 Florian Weimer <fweimer@redhat.com>
9127
9128 [BZ #23036]
9129 * posix/regexec.c (check_node_accept_bytes): When comparing
9130 weights, do not compare an extra byte after the end of the
9131 weights.
9132
9133 2018-07-10 Florian Weimer <fweimer@redhat.com>
9134
9135 * libio/readline.c: Fix copyright year.
9136 * libio/tst-readline.c Likewise.
9137 * nss/tst-nss-files-hosts-getent.c: Likewise.
9138
9139 2018-07-06 Florian Weimer <fweimer@redhat.com>
9140
9141 [BZ #18991]
9142 * nss/nss_files/files-XXX.c (internal_getent): Use
9143 __libc_readline_unlocked. Seek back to the start of the line if
9144 parsing failes with ERANGE.
9145 (get_contents_ret, get_contents): Remove.
9146 * nss/tst-nss-files-hosts-getent.c: New file.
9147 * nss/Makefile (tests): Add tst-nss-files-hosts-getent.
9148 (tst-nss-files-hosts-getent): Link with -ldl.
9149
9150 2018-07-06 Florian Weimer <fweimer@redhat.com>
9151
9152 * include/stdio.h (__libc_readline_unlocked): Declare.
9153 (__ftello64, __fseeko64): Declare aliases.
9154 * libio/readline.c: New file.
9155 * libio/tst-readline.c: Likewise.
9156 (routines): Add readline.
9157 (tests-internal): Add tst-readlime.
9158 * libio/Versions (GLIBC_PRIVATE): Export __fseeko64, __ftello64,
9159 __libc_readline_unlocked.
9160 * libio/fseeko.c (__fseeko): Rename from fseeko.
9161 (fseeko): Add alias.
9162 [__OFF_T_MATCHES_OFF64_T] (fseeko64, __fseeko64): Likewise.
9163 * libio/fseeko64.c (__fseeko64): Rename from fseeko64.
9164 (fseeko64): Add alias.
9165 * libio/ftello.c [__OFF_T_MATCHES_OFF64_T] (__ftello64): Add alias.
9166 * libio/ftello64.c (__ftello64): Rename from ftello64.
9167 (ftello64): Add alias.
9168
9169 2018-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
9170
9171 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h (HWCAP_IMPORTANT): Add
9172 HWCAP_ATOMICS.
9173
9174 2018-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
9175
9176 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (init_cpu_features):
9177 Use dl_hwcap without masking.
9178 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h (HWCAP_IMPORTANT):
9179 Remove HWCAP_CPUID.
9180
9181 2018-07-06 Florian Weimer <fweimer@redhat.com>
9182
9183 * conform/conformtest.pl (checknamespace): Escape literal braces
9184 in regular expressions.
9185
9186 2018-07-06 Amit Pawar <amit.pawar@amd.com>
9187
9188 * sysdeps/x86/cpu-features.c (get_common_indeces):
9189 AVX_Fast_Unaligned_Load is enabled when AVX2 is detected.
9190 * sysdeps/x86/cpu-features.c (init_cpu_features):
9191 AVX_Fast_Unaligned_Load is disabled for Excavator core.
9192
9193 2018-07-05 Florian Weimer <fweimer@redhat.com>
9194
9195 * csu/Makefile (CFLAGS-static-reloc.os): Build with stack
9196 protector.
9197 (CFLAGS-elf-init.oS): Likewise.
9198
9199 2018-07-05 Florian Weimer <fweimer@redhat.com>
9200 Carlos O'Donell <carlos@redhat.com>
9201
9202 * debug/Makefile (CFLAGS-stack_chk_fail_local.c): Remove
9203 $(no-stack-protector). stack_chk_fail_local.c can be compiled
9204 with stack protector enabled because there is no risk of infinite
9205 recursion.
9206
9207 2018-07-05 Maciej W. Rozycki <macro@mips.com>
9208
9209 [BZ #19818]
9210 [BZ #23307]
9211 * libc-abis (ABSOLUTE): New ABI.
9212 * sysdeps/unix/sysv/linux/mips/libc-abis (ABSOLUTE): New ABI.
9213 * NEWS: Mention the new ABI.
9214
9215 2018-07-05 Florian Weimer <fweimer@redhat.com>
9216
9217 [BZ # 17662]
9218 * libio/stdio.h [__USE_GNU] (RENAME_NOREPLACE, RENAME_EXCHANGE)
9219 (RENAME_WHITEOUT): Define.
9220 [__USE_GNU] (renameat2): Declare.
9221 * stdio-common/Makefile (routines): Add renameat2.
9222 (tests): Add tst-renameat2.
9223 * stdio-common/Versions (GLIBC_2_28): Export renameat2.
9224 * stdio-common/renameat2.c: New file.
9225 * stdio-common/tst-renameat2.c: Likewise.
9226 * sysdeps/unix/sysv/linux/renameat2.c: Likewise.
9227 * manual/filesys.texi (Temporary Files): Note that renameat2 is
9228 undocumented.
9229 * sysdeps/unix/sysv/linux/kernel-features.h
9230 [__LINUX_KERNEL_VERSION >= 0x030F00] (__ASSUME_RENAMEAT2): Define.
9231 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
9232 [__LINUX_KERNEL_VERSION < 0x031100] (__ASSUME_RENAMEAT2): Undefine.
9233 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
9234 [__LINUX_KERNEL_VERSION < 0x031100] (__ASSUME_RENAMEAT2): Undefine.
9235 * sysdeps/unix/sysv/linux/sh/kernel-features.h
9236 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_RENAMEAT2): Undefine.
9237 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
9238 [__LINUX_KERNEL_VERSION < 0x031000] (__ASSUME_RENAMEAT2): Undefine.
9239 * include/stdio.h (__renameat): Add alias for renameat.
9240 * stdio-common/renameat.c (__renameat): Rename from renameat.
9241 Add hidden definition and alias.
9242 * sysdeps/unix/sysv/linux/renameat.c: Likewise.
9243 * sysdeps/mach/hurd/renameat.c: Likewise.
9244 * sysdeps/**/libc*.abilist: Add renameat2.
9245
9246 2018-07-04 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9247
9248 * posix/bug-regex33.c: Fix build after regex sync.
9249
9250 2018-07-04 Carlos O'Donell <carlos@redhat.com>
9251
9252 [BZ #23164]
9253 * localedata/tst-langinfo-setlocale.c: New file.
9254 * localedata/tst-langinfo-setlocale-static.c: New file.
9255 * localedata/tst-langinfo-newlocale.c: New file.
9256 * localedata/tst-langinfo-newlocale-static.c: New file.
9257 * localedata/Makefile (test-srcs): Remove tst-langinfo. Add
9258 tst-langinfo-setlocale, tst-langinfo-setlocale-static,
9259 tst-langinfo-newlocale, tst-langinfo-newlocale-static.
9260 (tests-static): Remove tst-langinfo-static. Add
9261 tst-langinfo-newlocale-static, tst-langinfo-setlocale-static.
9262 (tests-special): Remove $(objpfx)tst-langinfo.out,
9263 $(objpfx)tst-langinfo-static.out. Add
9264 $(objpfx)tst-langinfo-setlocale.out,
9265 $(objpfx)tst-langinfo-newlocale.out,
9266 $(objpfx)tst-langinfo-setlocale-static.out,
9267 $(objpfx)tst-langinfo-newlocale-static.out.
9268 ($(objpfx)tst-langinfo.out): Remove.
9269 ($(objpfx)tst-langinfo-static.out): Remove.
9270 ($(objpfx)tst-langinfo-newlocale.out): New target.
9271 ($(objpfx)tst-langinfo-newlocale-static.out): New target.
9272 (test-xfail-tst-langinfo-newlocale-static): Add.
9273 ($(objpfx)tst-langinfo-setlocale.out): New target.
9274 ($(objpfx)tst-langinfo-setlocale-static.out): New target.
9275 * localedata/tst-langinfo.c: Call test_locale.
9276 * localedata/tst-langinfo.sh: Add LC_MONETARY CURRENCY_SYMBOL test
9277 data.
9278
9279 2018-07-04 Florian Weimer <fweimer@redhat.com>
9280
9281 testrun.sh: Implement --tool=strace, --tool=valgrind
9282 * Makefile (testrun-script): Define variable.
9283 (testrun.sh): Use variable.
9284 * manual/install.texi (Tools for Compilation): make 4.0 or later
9285 is required.
9286 * configure.ac: Check for make 4.0 or later.
9287 * INSTALL: Regenerate.
9288 * configure: Likewise.
9289
9290 2018-07-04 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9291
9292 [BZ #23233]
9293 [BZ #21163]
9294 [BZ #18986]
9295 [BZ #13762]
9296 * posix/Makefile (tests): Add bug-regex37 and bug-regex38.
9297 * posix/PCRE.tests: Remove invalid test.
9298 * posix/bug-regex28.c: Fix expected values for used syntax.
9299 * posix/bug-regex37.c: New file.
9300 * posix/bug-regex38.c: Likewise.
9301 * posix/regcomp.c: Sync with gnulib.
9302 * posix/regex.c: Likewise.
9303 * posix/regex.h: Likewise.
9304 * posix/regex_internal.c: Likewise.
9305 * posix/regex_internal.h: Likewise.
9306 * posix/regexec.c: Likewise.
9307
9308 2018-06-26 Mike FABIAN <mfabian@redhat.com>
9309
9310 [BZ #23308]
9311 * unicode-gen/Makefile (UNICODE_VERSION): Set to 11.0.0.
9312 * localedata/unicode-gen/DerivedCoreProperties.txt: Update to Unicode 11.0.0.
9313 * localedata/unicode-gen/EastAsianWidth.txt: likewise.
9314 * localedata/unicode-gen/PropList.txt: likewise.
9315 * localedata/unicode-gen/UnicodeData.txt: likewise.
9316 * localedata/charmaps/UTF-8: Regenerate.
9317 * localedata/locales/i18n_ctype: likewise.
9318 * localedata/locales/tr_TR: likewise.
9319 * localedata/locales/translit_circle: likewise.
9320 * localedata/locales/translit_cjk_compat: likewise.
9321 * localedata/locales/translit_combining: likewise.
9322 * localedata/locales/translit_compat: likewise.
9323 * localedata/locales/translit_font: likewise.
9324 * localedata/locales/translit_fraction: likewise.
9325
9326 2018-07-03 Florian Weimer <fweimer@redhat.com>
9327
9328 [BZ #23363]
9329 * stdio-common/tst-printf.c (DEC, INT, UNS, fp_test): Remove.
9330 * stdio-common/tst-printf.sh: Adjust expected output.
9331 * LICENSES: Update.
9332
9333 2018-07-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9334
9335 * sysdeps/mach/hurd/i386/libc.abilist [GLIBC_2.28] (fcntl): Remove
9336 symbol.
9337
9338 2018-07-02 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
9339
9340 * stdio-common/Makefile (test-srcs): Add tst-printfsz-islongdouble.
9341 (tests-special) Add $(objpfx)tst-printfsz-islongdouble.out.
9342 ($(objpfx)tst-printfsz-islongdouble.out): New build and run rule.
9343 * stdio-common/tst-printfsz-islongdouble.c: New file.
9344 * stdio-common/tst-printfsz-islongdouble.sh: Likewise.
9345 * sysdeps/ieee754/ldbl-128ibm-compat/Makefile:
9346 [subdir == stdio-common] (routines): Add ieee128-printf_size.
9347 [subdir == stdio-common] (tests-internal): Add
9348 test-printf-size-ieee128, and test-printf-size-ibm128.
9349 [subdir == stdio-common] (CFLAGS-test-printf-size-ieee128.c)
9350 (CFLAGS-test-printf-size-ibm128.c): New variables.
9351 [subdir == stdio-common] (tests-special): Add
9352 $(objpfx)test-printf-size-ieee128.out and
9353 $(objpfx)test-printf-size-ibm128.out.
9354 [subdir == stdio-common] ($(objpfx)test-printf-size-ieee128.out)
9355 ($(objpfx)test-printf-size-ibm128.out): New build and run rules.
9356 * sysdeps/ieee754/ldbl-128ibm-compat/Versions (libc): Add
9357 __printf_sizeieee128.
9358 * sysdeps/ieee754/ldbl-128ibm-compat/ieee128-printf_size.c:
9359 New file.
9360 * sysdeps/ieee754/ldbl-128ibm-compat/test-printf-size-ibm128.c:
9361 Likewise.
9362 * sysdeps/ieee754/ldbl-128ibm-compat/test-printf-size-ieee128.c:
9363 Likewise.
9364
9365 2018-07-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
9366
9367 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Use uint32_t.
9368 (exp2f_inline): Likewise.
9369 * sysdeps/ieee754/flt-32/math_config.h (__math_oflowf): Likewise.
9370 (__math_uflowf): Likewise.
9371 (__math_may_uflowf): Likewise.
9372 (__math_divzerof): Likewise.
9373 (__math_invalidf): Likewise.
9374 * sysdeps/ieee754/flt-32/math_errf.c (xflowf): Likewise.
9375 (__math_oflowf): Likewise.
9376 (__math_uflowf): Likewise.
9377 (__math_may_uflowf): Likewise.
9378 (__math_divzerof): Likewise.
9379 (__math_invalidf): Likewise.
9380
9381 2018-06-29 DJ Delorie <dj@redhat.com>
9382 Carlos O'Donell <carlos@redhat.com>
9383
9384 [BZ #23329]
9385 * include/libc-symbols.h: Comment the freeres framework.
9386 * include/set-hooks.h: Include libc-symbols.h. Fix comment.
9387 * dlfcn/Makefile (libdl-routines): Add dlfreeres.
9388 * dlfcn/Versions (GLIBC_PRIVATE): Add __libdl_freeres.
9389 * dlfcn/dlerror.c: Include libc-symbols.h
9390 (__dlerror_main_freeres): New function.
9391 * dlfcn/dlfreeres.c: New file.
9392 * dlfcn/sdlfreeres.c: New file.
9393 * include/dlfcn.h: Declare __dlerror_main_freeres.
9394 * malloc/set-freeres.c: Declare __libdl_freeres, and
9395 __libpthread_freeres.
9396 (__libc_subfreeres): Call __libdl_freeres, and __libpthread_freeres if
9397 the releavant libraries are loaded.
9398 * malloc/thread-freeres.c: Add comments.
9399 * nptl/Makefile (libpthread-routines): Add nptlfreeres.
9400 * nptl/Version (GLIBC_PRIVATE): Add __libpthread_freeres.
9401 * nptl/allocatestack.c (__nptl_free_stacks): New function.
9402 (__free_stacks): Rename to...
9403 (free_stacks): ...this. Mark static.
9404 (queue_stack): Call free_stacks.
9405 * nptl/libc_pthread_init.c [SHARED] (freeres_libpthread): Delete.
9406 * nptl/nptl-init.c: Delete delcaration of nptl_freeres.
9407 * sysdeps/nptl/pthread-functions.h (pthread_functions): Remove
9408 ptr_freeres element from struct.
9409 (pthread_functions): Remove .ptr_freeres from struct initializer.
9410 [SHARED] (nptl_freeres): Remove.
9411 * nptl/nptlfreeres.c: New file.
9412 * nptl/pthreadP.h
9413 [IS_IN (libpthread) && SHARED ] (__unwind_freeres): Rename to...
9414 [IS_IN (libpthread)] (__nptl_unwind_freeres): ...this. Mark
9415 attribute_hidden.
9416 (__free_stacks): Rename to...
9417 (__nptl_stacks_freeres): ...this.
9418 (__shm_directory_freeres): Declare.
9419 * nptl/unwind-forcedunwind.c (__unwind_freeres): Rename to...
9420 (__nptl_unwind_freeres): ...this.
9421 * resolv/res-close.c: Add comment.
9422 * resolv/resolv_conf.c: Include libc-symbols.h.
9423 * string/strerror_l.c: Include libc-symbols.h.
9424 * sunrpc/rpc_thread.c: Include libc-symbols.h.
9425 * sysdeps/mach/strerror_l.c: Inlcude libc-symbols.h
9426 * sysdeps/unix/sysv/linux/shm-directory.c (freeit): Rename to...
9427 [IS_IN (libpthread)] (__shm_directory_freeres): ...this.
9428
9429 2018-06-29 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
9430
9431 * stdlib/tst-strfmon_l.c: Add tests for long double.
9432
9433 2018-06-29 Michael Wolf <milupo@sorbzilla.de>
9434
9435 [BZ #23208]
9436 * localedata/SUPPORTED (dsb_DE/UTF-8): New entry.
9437 * localedata/locales/dsb_DE: New file.
9438
9439 2018-06-29 Rafal Luzynski <digitalfreak@lingonborough.com>
9440
9441 [BZ #23140]
9442 * localedata/locales/hy_AM (mon): Synchronize with CLDR (lowercase,
9443 genitive case).
9444 (alt_mon): New entry, import from CLDR (nominative case).
9445
9446 2018-06-29 Sylvain Lesage <severo@rednegra.net>
9447
9448 [BZ #22996]
9449 * localedata/locales/es_BO (LC_PAPER): Change to “copy "en_US"”.
9450
9451 2018-06-29 Siddhesh Poyarekar <siddhesh@sourceware.org>
9452
9453 * sysdeps/aarch64/multiarch/memcpy_falkor.S (__memcpy_falkor):
9454 Use vector registers.
9455
9456 * sysdeps/aarch64/multiarch/memmove_falkor.S
9457 (__memcpy_falkor): Use vector registers.
9458
9459 2018-06-29 Martin Sebor <msebor@redhat.com>
9460
9461 * manual/stdio.texi (Customizing Printf): Mention interaction
9462 with GCC built-ins.
9463
9464 2018-06-29 Maciej W. Rozycki <macro@mips.com>
9465
9466 [BZ #23307]
9467 * elf/dl-lookup.c (check_match): Do not reject a symbol whose
9468 `st_value' is 0 if `st_shndx' is SHN_ABS.
9469 * elf/tst-absolute-zero.c: New file.
9470 * elf/tst-absolute-zero-lib.c: New file.
9471 * elf/tst-absolute-zero-lib.lds: New file.
9472 * elf/Makefile (tests): Add `tst-absolute-zero'.
9473 (modules-names): Add `tst-absolute-zero-lib'.
9474 (LDLIBS-tst-absolute-zero-lib.so): New variable.
9475 ($(objpfx)tst-absolute-zero-lib.so): New dependency.
9476 ($(objpfx)tst-absolute-zero: New dependency.
9477
9478 2018-06-29 Zack Weinberg <zackw@panix.com>
9479
9480 * configure.ac: New command-line option --disable-crypt.
9481 Force --disable-nss-crypt when --disable-crypt is given, with a
9482 warning if it was explicitly enabled.
9483 * configure: Regenerate.
9484 * config.make.in: New boolean substitution variable $(build-crypt).
9485 * Makeconfig: Only include 'crypt' in all-subdirs and rpath-dirs
9486 when $(build-crypt).
9487 * manual/install.texi: Document --disable-crypt.
9488 * INSTALL: Regenerate.
9489
9490 * crypt/Makefile: Remove code conditional on $(crypt-in-libc),
9491 which is never set.
9492 * conform/Makefile: Only include libcrypt.a in
9493 linknamespace-libs-xsi and linknamespace-libs-XPG4
9494 when $(build-crypt).
9495 * elf/Makefile (CFLAGS-tst-linkall-static.c): Only define
9496 USE_CRYPT to 1 when $(build-crypt).
9497 (tst-linkall-static): Only link libcrypt.a when $(build-crypt).
9498 (localplt-built-dso): Only add libcrypt.so when $(build-crypt).
9499 * elf/tst-linkall-static.c: Only include crypt.h when USE_CRYPT.
9500
9501 2018-06-29 Zack Weinberg <zackw@panix.com>
9502
9503 * crypt/crypt.h, posix/unistd.h: Update comments and
9504 prototypes for crypt and crypt_r.
9505
9506 * manual/crypt.texi (Cryptographic Functions): New initial
9507 exposition.
9508 (crypt): Section renamed to 'Passphrase Storage'. Full rewrite.
9509 (Unpredictable Bytes): Improve initial exposition. Clarify error
9510 behavior of getentropy and getrandom.
9511 * manual/examples/genpass.c: Generate a salt using getentropy
9512 instead of the current time. Use hash $5$ (SHA-2-256).
9513 * manual/examples/testpass.c: Demonstrate validation against
9514 hashes generated with three different one-way functions.
9515
9516 * manual/intro.texi: crypt.texi does not need an overview
9517 anymore.
9518
9519 * manual/nss.texi, manual/memory.texi, manual/socket.texi
9520 * manual/terminal.texi: Consistently refer to "passphrases"
9521 * instead of "passwords", and to the "user database" instead
9522 * of the "password database".
9523 * manual/users.texi: Similarly. Add notes about how actual
9524 passphrase hashes are now stored in the shadow database.
9525 Remove 20-year-old junk todo note.
9526
9527 2018-06-29 Zack Weinberg <zackw@panix.com>
9528
9529 * manual/crypt.texi: Use a normal top-level @node declaration.
9530 Move most of the introductory text to the 'crypt' section.
9531 Move the example programs below the @deftypefun for 'crypt_r'.
9532 Move the 'getpass' section...
9533 * manual/terminal.texi: ...here.
9534
9535 2018-06-29 Zack Weinberg <zackw@panix.com>
9536 Florian Weimer <fweimer@redhat.com>
9537
9538 * posix/unistd.h: Do not declare encrypt.
9539 (_XOPEN_CRYPT): Remove macro definition.
9540 (crypt): Declare only for _USE_MISC.
9541 * stdlib/stdlib.h: Do not declare setkey.
9542 * crypt/crypt.h: Do not declare encrypt, setkey, encrypt_r, setkey_r.
9543 * sunrpc/Makefile: Do not install des_crypt.h nor rpc_des.h.
9544
9545 * crypt/crypt-entry.c: Make fcrypt a compat symbol.
9546 * crypt/crypt_util.c: Make encrypt, encrypt_r, setkey, setkey_r
9547 into compat symbols. Don't define initial_perm if it's not
9548 going to be used.
9549 * crypt/cert.c: Link explicitly with the expected versions for
9550 setkey and encrypt. If they are not available at all, mark
9551 the test as unsupported.
9552
9553 * sunrpc/des_crypt.c: Unconditionally block linkage with
9554 cbc_crypt and ecb_crypt for new binaries.
9555 * sunrpc/des_soft.c: Unconditionally block linkage with
9556 des_setparity for new binaries.
9557
9558 * manual/crypt.texi: Remove the entire "DES Encryption"
9559 section. Also remove the paragraph talking about FIPS 140-2
9560 from the introduction.
9561 * manual/string.texi (strfry, memfrob): Revise. Recommend use
9562 of libgcrypt for "real" encryption, not DES.
9563 * manual/conf.texi (Constants for Sysconf): Mention that
9564 _XOPEN_CRYPT is no longer impelemented.
9565
9566 * conform/data/unistd.h-data: Remove crypt function declaration.
9567
9568 2018-06-29 Florian Weimer <fweimer@redhat.com>
9569
9570 [BZ #23351]
9571 * malloc/hooks.c: Update comments on restoring of dumped heaps.
9572 (disallow_malloc_check): Remove variable.
9573 (__malloc_check_init): Adjust.
9574 (malloc_set_state): Update comment.
9575 * malloc/malloc.c (__malloc_get_state, __malloc_set_state): Remove
9576 declarations.
9577
9578 2018-06-29 Rafal Luzynski <digitalfreak@lingonborough.com>
9579
9580 [BZ #23140]
9581 * localedata/locales/ast_ES (mon): Rename to...
9582 (alt_mon): This.
9583 (mon): Import from CLDR (genitive case).
9584
9585 2018-06-29 Daniel Alvarez <dalvarez@redhat.com>
9586 Jakub Sitnicki <jkbs@redhat.com>
9587
9588 [BZ #21812]
9589 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs_internal): Retry
9590 on NLM_F_DUMP_INTR.
9591
9592 2018-06-28 Szabolcs Nagy <szabolcs.nagy@arm.com>
9593
9594 * manual/llio.texi: Remove spurious space.
9595
9596 2018-06-28 Florian Weimer <fweimer@redhat.com>
9597
9598 [BZ #23349]
9599 * time/bits/types/struct_timespec.h: Change header inclusion guard to
9600 _STRUCT_TIMESPEC.
9601
9602 2018-06-28 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
9603
9604 * sysdeps/ieee754/ldbl-128ibm-compat/Versions: Add __strfromieee128,
9605 __strtoieee128, __strtoieee128_l,__wcstoieee128 and __wcstoieee128_l.
9606 * sysdeps/ieee754/ldbl-128ibm-compat/strfromf128.c: New file.
9607 * sysdeps/ieee754/ldbl-128ibm-compat/strtof128.c: New file.
9608 * sysdeps/ieee754/ldbl-128ibm-compat/strtof128_l.c: New file.
9609 * sysdeps/ieee754/ldbl-128ibm-compat/wcstof128.c: New file.
9610 * sysdeps/ieee754/ldbl-128ibm-compat/wcstof128_l.c: New file.
9611
9612 2018-06-27 Maciej W. Rozycki <macro@mips.com>
9613
9614 [BZ #23266]
9615 * nis/nss_nisplus/nisplus-parser.c (_nss_nisplus_parse_pwent):
9616 Copy and null-terminate entries that are not terminated, in
9617 addition to empty ones.
9618
9619 2018-06-27 Florian Weimer <fweimer@redhat.com>
9620
9621 [BZ #18023]
9622 * include/alloca.h (stackinfo_alloca_round, extend_alloca)
9623 (extend_alloca_account): Remove.
9624 * manual/stdio.texi (Variable Arguments Output): Update comment.
9625
9626 2018-06-27 Joseph Myers <joseph@codesourcery.com>
9627
9628 * nptl/sockperf.c: Remove file.
9629
9630 2018-06-27 Florian Weimer <fweimer@redhat.com>
9631
9632 [BZ #18023]
9633 * elf/dl-deps.c (_dl_map_object_deps): Use struct
9634 scratch_buffer instead of extend_alloca.
9635
9636 2018-06-27 Florian Weimer <fweimer@redhat.com>
9637
9638 [BZ #18023]
9639 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Use struct
9640 scratch_buffer instead of extend_alloca. Update comments.
9641
9642 2018-06-27 Florian Weimer <fweimer@redhat.com>
9643
9644 [BZ #18023]
9645 * posix/wordexp.c (parse_tilde): Use struct scratch_buffer
9646 instead of extend_alloca.
9647
9648 2018-06-26 Joseph Myers <joseph@codesourcery.com>
9649
9650 [BZ #13888]
9651 * posix/Makefile (CFLAGS-tst-spawn3.c): New variable.
9652 * posix/tst-spawn3.c (do_test): Put tst-spwan3.pid in OBJPFX, not
9653 /tmp.
9654 * scripts/test-installation.pl: Put temporary files in build
9655 directory, not /tmp.
9656 * stdio-common/Makefile (CFLAGS-bug3.c): New variable.
9657 (CFLAGS-bug4.c): Likewise.
9658 (CFLAGS-bug5.c): Likewise.
9659 (CFLAGS-test-fseek.c): Likewise.
9660 (CFLAGS-test-popen.c): Likewise.
9661 (CFLAGS-test_rdwr.c): Likewise.
9662 * stdio-common/bug3.c (main): Put temporary file in OBJPFX, not
9663 /tmp.
9664 * stdio-common/bug4.c (main): Likewise.
9665 * stdio-common/bug5.c (main): Likewise.
9666 * stdio-common/test-fseek.c (TESTFILE): Likewise.
9667 * stdio-common/test-popen.c (do_test): Likewise.
9668 * stdio-common/test_rdwr.c (main): Likewise.
9669
9670 2018-06-26 Patsy Franklin <pfrankli@redhat.com>
9671
9672 * nptl/sem_open.c [!__HAVE_64B_ATOMICS] (sem_open): Don't update pad.
9673 (sem_open): Set sem.newsem.pad to zero for valgrind.
9674
9675 2018-06-26 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9676
9677 [BZ #20251]
9678 * NEWS: Mention fcntl64 addition.
9679 * csu/check_fds.c: Replace __fcntl_nocancel by __fcntl64_nocancel.
9680 * login/utmp_file.c: Likewise.
9681 * sysdeps/posix/fdopendir.c: Likewise.
9682 * sysdeps/posix/opendir.c: Likewise.
9683 * sysdeps/unix/pt-fcntl.c: Likewise.
9684 * include/fcntl.h (__libc_fcntl64, __fcntl64,
9685 __fcntl64_nocancel_adjusted): New prototype.
9686 (__fcntl_nocancel_adjusted): Remove prototype.
9687 * io/Makefile (routines): Add fcntl64.
9688 (CFLAGS-fcntl64.c): New rule.
9689 * io/Versions [GLIBC_2.28] (fcntl64): New symbol.
9690 [GLIBC_PRIVATE] (__libc_fcntl): Rename to __libc_fcntl64.
9691 * io/fcntl.h (fcntl64): Add prototype and redirect if
9692 __USE_FILE_OFFSET64 is defined.
9693 * io/fcntl64.c: New file.
9694 * manual/llio.text: Add a note for which commands fcntl acts a
9695 cancellation point.
9696 * nptl/Makefile (CFLAGS-fcntl64.c): New rule.
9697 * sysdeps/mach/hurd/fcntl.c: Alias fcntl to fcntl64 symbols.
9698 * sysdeps/mach/hurd/i386/libc.abilist [GLIBC_2.28] (fcntl, fcntl64):
9699 New symbols.
9700 * sysdeps/unix/sysv/linux/fcntl.c (__libc_fcntl): Fix F_GETLK64,
9701 F_OFD_GETLK, F_SETLK64, F_SETLKW64, F_OFD_SETLK, and F_OFD_SETLKW for
9702 non-LFS case.
9703 * sysdeps/unix/sysv/linux/fcntl64.c: New file.
9704 * sysdeps/unix/sysv/linux/fcntl_nocancel.c (__fcntl_nocancel): Rename
9705 to __fcntl64_nocancel.
9706 (__fcntl_nocancel_adjusted): Rename to __fcntl64_nocancel_adjusted.
9707 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): Rename
9708 to __fcntl64_nocancel.
9709 * sysdeps/generic/not-cancel.h: Likewise.
9710 * sysdeps/unix/sysv/linux/tst-ofdlocks.c: New file.
9711 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-ofdlocks.
9712 * sysdeps/unix/sysv/linux/aarch64/libc.abilist [GLIBC_2.28]
9713 (fcntl64): New symbol.
9714 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
9715 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
9716 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
9717 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
9718 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
9719 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
9720 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
9721 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
9722 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
9723 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
9724 * sysdeps/unix/sysv/linux/arm/libc.abilist [GLIBC_2.28] (fcntl,
9725 fcntl64): Likewise.
9726 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
9727 * sysdeps/unix/sysv/linux/i386/libc.abilis: Likewise.
9728 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
9729 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
9730 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
9731 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
9732 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
9733 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
9734 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
9735 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
9736 Likewise.
9737 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
9738 Likewise.
9739 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
9740 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
9741 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
9742
9743 2018-06-26 Florian Weimer <fweimer@redhat.com>
9744
9745 Run thread shutdown functions in an explicit order.
9746 * malloc/thread-freeres.c (__libc_thread_subfreeres): Remove hook
9747 definition.
9748 (__libc_thread_freeres): Call thread shutdown functions
9749 explicitly.
9750 * include/rpc/rpc.h (__rpc_thread_destroy): Add hidden attribute.
9751 * include/string.h (__strerror_thread_freeres): Declare.
9752 * malloc/arena.c (__malloc_arena_thread_freeres): Renamed from
9753 arena_thread_freeres. No longer static. Remove thread shutdown
9754 hook registration.
9755 * malloc/malloc-internal.h (__malloc_arena_thread_freeres):
9756 Declare.
9757 * resolv/res-close.c (__res_thread_freeres): Renamed from
9758 res_thread_freeres. No longer static. Remove thread shutdown
9759 hook registration.
9760 * resolv/resolv-internal.h (__res_thread_freeres): Declare.
9761 * resolv/resolv_conf.c (freeres): Remove incorrect section
9762 attribute and use libc_freeres_fn.
9763 * string/strerror_l.c (__strerror_thread_freeres): Renamed from
9764 strerror_thread_freeres. No longer static. Remove thread
9765 shutdown hook registration.
9766 * sysdeps/mach/strerror_l.c (__strerror_thread_freeres): Likewise.
9767 * sunrpc/rpc_thread.c (__rpc_thread_destroy): Remove thread
9768 shutdown hook registration.
9769 * Makerules (shlib.lds): Do not provide section boundary symbols
9770 for __libc_thread_subfreeres.
9771 * manual/memory.texi (Basic Allocation): Update comment.
9772
9773 2018-06-26 Florian Weimer <fweimer@redhat.com>
9774
9775 Remove always-defined _RPC_THREAD_SAFE_ macro.
9776 * sunrpc/Makefile (sunrpc-CPPFLAGS, CPPFLAGS, BUILD_CPPFLAGS):
9777 Do not define _RPC_THREAD_SAFE_.
9778 * include/rpc/rpc.h: Remove _RPC_THREAD_SAFE_ preprocessor
9779 conditional.
9780 * sunrpc/clnt_perr.c: Likewise.
9781 * sunrpc/clnt_raw.c: Likewise.
9782 * sunrpc/clnt_simp.c: Likewise.
9783 * sunrpc/key_call.c: Likewise.
9784 * sunrpc/rpc_common.c: Likewise.
9785 * sunrpc/rpc_main.c: Likewise.
9786 * sunrpc/rpc_thread.c: Likewise.
9787 * sunrpc/svc.c: Likewise.
9788 * sunrpc/svc_raw.c: Likewise.
9789 * sunrpc/svc_simple.c: Likewise.
9790 * sumrpc/svcauth_des.c: Likewise.
9791
9792 2018-06-26 Florian Weimer <fweimer@redhat.com>
9793
9794 * libio/Makefile (tests-internal): Add tst-vtables,
9795 tst-vtables-interposed.
9796 * libio/tst-vtables.c: New file.
9797 * libio/tst-vtables-common.c: Likewise.
9798 * libio/tst-vtables-interposed.c: Likewise.
9799
9800 2018-06-26 Florian Weimer <fweimer@redhat.com>
9801
9802 * support/support_test_main.c (support_test_main): Only call
9803 setvbuf if not disables.
9804 * support/test-driver.c (main): Check TEST_NO_SETVBUF.
9805 * support/test-driver.h (struct test_config): Add no_setvbuf member.
9806
9807 2018-06-26 Florian Weimer <fweimer@redhat.com>
9808
9809 [BZ #23313]
9810 * libio/vtables.c (check_stdfiles_vtables): New ELF constructor.
9811
9812 2018-06-25 Florian Weimer <fweimer@redhat.com>
9813
9814 [BZ #18023]
9815 * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
9816 Use struct scratch_buffer instead of extend_alloca.
9817
9818 2018-06-25 Florian Weimer <fweimer@redhat.com>
9819
9820 [BZ #18023]
9821 * nss/getent.c (initgroups_keys): Use dynarray instead of
9822 extend_alloca.
9823
9824 2018-06-25 Florian Weimer <fweimer@redhat.com>
9825
9826 [BZ #18023]
9827 * nis/nss_nis/nis-initgroups.c (get_uid, _nss_nis_initgroups_dyn):
9828 Use struct scratch_buffer instead of extend_alloca.
9829
9830 2018-06-25 Florian Weimer <fweimer@redhat.com>
9831
9832 [BZ #18023]
9833 * nss/nss_compat/compat-initgroups.c (getgrent_next_nss): Fall
9834 back to malloc directly, without stack allocations.
9835
9836 2018-06-25 Florian Weimer <fweimer@redhat.com>
9837
9838 [BZ #18023]
9839 * nscd/aicache.c (addhstaiX): Use struct scratch_buffer instead
9840 of extend_alloca.
9841
9842 2018-06-25 Florian Weimer <fweimer@redhat.com>
9843
9844 [BZ #18023]
9845 * nscd/grpcache.c (addgrbyX): Use struct scratch_buffer instead
9846 of extend_alloca.
9847 * nscd/hstcache.c (addhstbyX): Likewise.
9848 * nscd/pwdcache.c (addpwbyX): Likewise.
9849 * nscd/servicescache.c (addservbyX): Likewise.
9850
9851 2018-06-25 Florian Weimer <fweimer@redhat.com>
9852
9853 [BZ #18023]
9854 * nscd/connections.c (read_cmdline): New function.
9855 (restart): Use it. Update comment.
9856
9857 2018-06-25 Rafal Luzynski <digitalfreak@lingonborough.com>
9858
9859 [BZ #23140]
9860 * localedata/locales/csb_PL (mon): Rename to...
9861 (alt_mon): This.
9862 (abmon): Rename to...
9863 (ab_alt_mon): This.
9864 (mon): Add with proper genitive forms, copy from Wikipedia.
9865 (abmon): Likewise.
9866
9867 2018-06-25 Rafal Luzynski <digitalfreak@lingonborough.com>
9868
9869 [BZ #19485]
9870 * localedata/locales/csb_PL (mon): Fix typos:
9871 "łżëkwiôt" -> "łżëkwiat" (April); "lëpinc" -> "lëpińc" (July).
9872 (yesstr): Add, value is "jo".
9873 (nostr): Add, value is "nié".
9874
9875 2018-06-22 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
9876
9877 * sysdeps/m68k/m680x0/fpu/s_log1p.c: Set as the generic file for
9878 all log1p and significand functions on m680x0.
9879 * sysdeps/m68k/m680x0/fpu/s_log1pf.c: Include s_log1p.c instead
9880 of s_significand.c..
9881 * sysdeps/m68k/m680x0/fpu/s_log1pl.c: Likewise.
9882 * sysdeps/m68k/m680x0/fpu/s_significandf.c: Likewise.
9883 * sysdeps/m68k/m680x0/fpu/s_significandl.c: Likewise.
9884 * sysdeps/m68k/m680x0/fpu/s_significand.c: Move all the code to
9885 s_log1p.c and include it..
9886
9887 2018-06-21 Vincent Chen <vincentc@andestech.com>
9888
9889 * elf/elf.h (R_NDS32_NONE): New define.
9890 (R_NDS32_32_RELA): Likewise.
9891 (R_NDS32_COPY): Likewise.
9892 (R_NDS32_GLOB_DAT): Likewise.
9893 (R_NDS32_JUMP_SLOT): Likewise.
9894 (R_NDS32_RELATIVE): Likewise.
9895 (R_NDS32_TLS_TPOFF): Likewise.
9896 (R_NDS32_TLS_DESC): Likewise.
9897
9898 2018-06-21 Mark Wielaard <mark@klomp.org>
9899
9900 * elf/elf.h (R_BPF_MAP_FD): Removed.
9901 (R_BPF_64_64, R_BPF_64_32): New.
9902
9903 2018-06-21 Florian Weimer <fweimer@redhat.com>
9904
9905 [BZ #23253]
9906 * sysdeps/generic/math_private.h (default_libc_feholdsetround_ctx):
9907 Renamed from libc_feholdsetround_ctx.
9908 (default_libc_feresetround_ctx): Renamed from
9909 libc_feresetround_ctx.
9910 (default_libc_feholdsetround_noex_ctx): Renamed from
9911 libc_feholdsetround_noex_ctx.
9912 (default_libc_feresetround_noex_ctx): Renamed from
9913 libc_feresetround_noex_ctx.
9914 [!HAVE_RM_CTX] (libc_feholdsetround_ctx, libc_feresetround_ctx)
9915 (libc_feholdsetround_noex_ctx, libc_feresetround_noex_ctx): Macros
9916 forwardning to the old implementations under the new names.
9917 * sysdeps/i386/fpu/fenv_private.h [__SSE_MATH__]
9918 (libc_feholdexcept_setround_ctx, libc_fesetenv_ctx)
9919 (libc_feupdateenv_ctx, libc_feholdsetround_ctx)
9920 (libc_feresetround_ctx): Forward to default implements for i386
9921 and MATH_SET_BOTH_ROUNDING_MODES.
9922 * sysdeps/i386/Makefile [$(subdir) == math] (CFLAGS-e_gamma_r.c):
9923 Add -DMATH_SET_BOTH_ROUNDING_MODES.
9924
9925 2018-06-20 Joseph Myers <joseph@codesourcery.com>
9926
9927 * string/tst-cmp.c: Include <libc-diag.h>.
9928 (strncmp_max): Disable -Wstringop-overflow= around call to
9929 strncmp.
9930 (strncasecmp_max): Disable -Wstringop-overflow= around call to
9931 strncasecmp.
9932
9933 * string/bug-strpbrk1.c: Include <libc-diag.h>.
9934 (main): Disable -Wunused-value around call to strpbrk.
9935 * string/bug-strspn1.c: Include <libc-diag.h>.
9936 (main): Disable -Wunused-value around call to strspn.
9937
9938 2018-06-20 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
9939 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
9940
9941 * sysdeps/ieee754/ldbl-128ibm-compat/Versions: New file.
9942 * sysdeps/ieee754/ldbl-128ibm-compat/libm-alias-float128.h: New file.
9943
9944 2018-06-20 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
9945
9946 * math/Makefile (libm-calls): Move s_significandF to...
9947 (gen-libm-calls): ... here.
9948 * math/s_significand_template.c: New file.
9949 * math/s_significand.c: Removed.
9950 * math/s_significandf.c: Removed.
9951 * math/s_significandl.c: Removed.
9952 * sysdeps/ieee754/ldbl-opt/s_significand.c: Removed.
9953 * sysdeps/ieee754/ldbl-opt/s_significandl.c: Removed.
9954
9955 * math/e_exp2_template.c (declare_mgen_finite_alias,
9956 declare_mgen_finite_alias_s, declare_mgen_finite_alias_x): Move to...
9957 * sysdeps/generic/math-type-macros.h (declare_mgen_finite_alias,
9958 declare_mgen_finite_alias_s, declare_mgen_finite_alias_x): ... here.
9959
9960 2018-06-20 Florian Weimer <fweimer@redhat.com>
9961
9962 * libio/libioP.h (IO_validate_vtable): Avoid ptrdiff_t overflow.
9963
9964 2018-06-19 Joseph Myers <joseph@codesourcery.com>
9965
9966 [BZ #23280]
9967 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Pass sign of
9968 floating-point number to strtod functions rather than possibly
9969 negating result of those functions.
9970 * stdio-common/tst-scanf-round.c: New file.
9971 * stdio-common/Makefile (tests): Add tst-scanf-round.
9972 ($(objpfx)tst-scanf-round): Depend on $(libm).
9973
9974 2018-06-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
9975
9976 * sysdeps/mach/hurd/localplt.data: Move to...
9977 * sysdeps/mach/hurd/i386/localplt.data: new file. Add + REL
9978 R_386_GLOB_DAT like on Linux i386.
9979
9980 2018-06-18 Joseph Myers <joseph@codesourcery.com>
9981
9982 * sysdeps/unix/sysv/linux/alpha/bits/shm.h [__USE_MISC]
9983 (SHM_STAT_ANY): New macro.
9984 * sysdeps/unix/sysv/linux/arm/bits/shm.h [__USE_MISC]
9985 (SHM_STAT_ANY): Likewise.
9986 * sysdeps/unix/sysv/linux/bits/shm.h [__USE_MISC]
9987 (SHM_STAT_ANY): Likewise.
9988 * sysdeps/unix/sysv/linux/generic/bits/shm.h [__USE_MISC]
9989 (SHM_STAT_ANY): Likewise.
9990 * sysdeps/unix/sysv/linux/hppa/bits/shm.h [__USE_MISC]
9991 (SHM_STAT_ANY): Likewise.
9992 * sysdeps/unix/sysv/linux/ia64/bits/shm.h [__USE_MISC]
9993 (SHM_STAT_ANY): Likewise.
9994 * sysdeps/unix/sysv/linux/mips/bits/shm.h [__USE_MISC]
9995 (SHM_STAT_ANY): Likewise.
9996 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h [__USE_MISC]
9997 (SHM_STAT_ANY): Likewise.
9998 * sysdeps/unix/sysv/linux/s390/bits/shm.h [__USE_MISC]
9999 (SHM_STAT_ANY): Likewise.
10000 * sysdeps/unix/sysv/linux/sh/bits/shm.h [__USE_MISC]
10001 (SHM_STAT_ANY): Likewise.
10002 * sysdeps/unix/sysv/linux/sparc/bits/shm.h [__USE_MISC]
10003 (SHM_STAT_ANY): Likewise.
10004 * sysdeps/unix/sysv/linux/x86/bits/shm.h [__USE_MISC]
10005 (SHM_STAT_ANY): Likewise.
10006
10007 * sysdeps/unix/sysv/linux/alpha/bits/sem.h [__USE_MISC]
10008 (SEM_STAT_ANY): New macro.
10009 * sysdeps/unix/sysv/linux/bits/sem.h [__USE_MISC]
10010 (SEM_STAT_ANY): Likewise.
10011 * sysdeps/unix/sysv/linux/generic/bits/sem.h [__USE_MISC]
10012 (SEM_STAT_ANY): Likewise.
10013 * sysdeps/unix/sysv/linux/hppa/bits/sem.h [__USE_MISC]
10014 (SEM_STAT_ANY): Likewise.
10015 * sysdeps/unix/sysv/linux/ia64/bits/sem.h [__USE_MISC]
10016 (SEM_STAT_ANY): Likewise.
10017 * sysdeps/unix/sysv/linux/mips/bits/sem.h [__USE_MISC]
10018 (SEM_STAT_ANY): Likewise.
10019 * sysdeps/unix/sysv/linux/powerpc/bits/sem.h [__USE_MISC]
10020 (SEM_STAT_ANY): Likewise.
10021 * sysdeps/unix/sysv/linux/s390/bits/sem.h [__USE_MISC]
10022 (SEM_STAT_ANY): Likewise.
10023 * sysdeps/unix/sysv/linux/sparc/bits/sem.h [__USE_MISC]
10024 (SEM_STAT_ANY): Likewise.
10025 * sysdeps/unix/sysv/linux/x86/bits/sem.h [__USE_MISC]
10026 (SEM_STAT_ANY): Likewise.
10027
10028 * sysdeps/unix/sysv/linux/alpha/bits/msq.h [__USE_MISC]
10029 (MSG_STAT_ANY): New macro.
10030 * sysdeps/unix/sysv/linux/bits/msq.h [__USE_MISC]
10031 (MSG_STAT_ANY): Likewise.
10032 * sysdeps/unix/sysv/linux/generic/bits/msq.h [__USE_MISC]
10033 (MSG_STAT_ANY): Likewise.
10034 * sysdeps/unix/sysv/linux/hppa/bits/msq.h [__USE_MISC]
10035 (MSG_STAT_ANY): Likewise.
10036 * sysdeps/unix/sysv/linux/ia64/bits/msq.h [__USE_MISC]
10037 (MSG_STAT_ANY): Likewise.
10038 * sysdeps/unix/sysv/linux/mips/bits/msq.h [__USE_MISC]
10039 (MSG_STAT_ANY): Likewise.
10040 * sysdeps/unix/sysv/linux/powerpc/bits/msq.h [__USE_MISC]
10041 (MSG_STAT_ANY): Likewise.
10042 * sysdeps/unix/sysv/linux/s390/bits/msq.h [__USE_MISC]
10043 (MSG_STAT_ANY): Likewise.
10044 * sysdeps/unix/sysv/linux/sparc/bits/msq.h [__USE_MISC]
10045 (MSG_STAT_ANY): Likewise.
10046 * sysdeps/unix/sysv/linux/x86/bits/msq.h [__USE_MISC]
10047 (MSG_STAT_ANY): Likewise.
10048
10049 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
10050 (MAP_TYPE): Change value to 0x2b.
10051
10052 2018-06-18 Florian Weimer <fweimer@redhat.com>
10053
10054 [BZ #15722]
10055 * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Create Netlink
10056 socket with SOCK_CLOEXEC.
10057
10058 2018-06-18 Joseph Myers <joseph@codesourcery.com>
10059
10060 [BZ #23303]
10061 * sysdeps/powerpc/powerpc64/le/Makefile
10062 (CFLAGS-tst-strtod-nan-sign.c): Add -mfloat128.
10063 (CFLAGS-tst-wcstod-nan-sign.c): Likewise.
10064 (gnulib-tests): Also add $(f128-loader-link) for
10065 tst-strtod-nan-sign abd tst-wcstod-nan-sign.
10066
10067 2018-06-15 Samuel Thibault <samuel.thibault@ens-lyon.org>
10068
10069 * include/sys/sendfile.h (__sendfile64): Declare hidden prototype.
10070 * sysdeps/mach/hurd/sendfile.c (sendfile): Call __sendfile64 instead
10071 of sendfile.
10072 * sysdeps/mach/hurd/sendfile64.c (sendfile64): Rename to __sendfile64.
10073 (sendfile64): New strong alias.
10074 * sysdeps/mach/hurd/lseek.c: Include <errno.h>.
10075 * sysdeps/mach/hurd/lseek.c (__libc_lseek): Check that the value
10076 returned by __lseek64 can fit off_t, return EOVERFLOW otherwise.
10077 * sysdeps/htl/pthreadP.h (___pthread_get_cleanup_stack): Add hidden
10078 attribute.
10079 * htl/pt-join.c (__pthread_get_cleanup_stack): Define to
10080 ___pthread_get_cleanup_stack.
10081 * sysdeps/mach/hurd/localplt.data (ld.so): Make ref to __open optional.
10082 * sysdeps/mach/include/mach-shortcuts-hidden.h: New file.
10083 * mach/shortcut.awk: Make syscall stubs include
10084 <mach-shortcuts-hidden.h> and add hidden definition.
10085 * sysdeps/mach/include/mach.h: Include <mach-shortcuts-hidden.h>.
10086 (__mach_msg): Add hidden prototype.
10087 * mach/msg.c: Include <mach.h>.
10088 (__mach_msg): Add hidden definition.
10089 * mach/Makefile ($(mach-syscalls:%=$(objpfx))): Add hidden definition.
10090 * sysdeps/mach/include/mach/mach_traps.h (__mach_reply_port,
10091 __mach_thread_self, __mach_task_self, __mach_host_self, __swtch,
10092 __swtch_pri, __thread_switch, __evc_wait): Add hidden prototypes.
10093 * sysdeps/mach/hurd/localplt.data (siglongjmp, longjmp,
10094 __libc_lseek64, _IO_funlockfile): Whitelist PLT references.
10095 * sysdeps/hurd/include/hurd/signal.h (_hurd_self_sigstate): Add hidden
10096 prototype and definition.
10097 * sysdeps/mach/hurd/i386/____longjmp_chk.S (____longjmp_chk): Use
10098 hidden target for _hurd_self_sigstate.
10099
10100 2018-06-15 Joseph Myers <joseph@codesourcery.com>
10101
10102 [BZ #23007]
10103 * stdlib/tst-strtod-nan-sign-main.c: New file.
10104 * stdlib/tst-strtod-nan-sign.c: Likewise.
10105 * wcsmbs/tst-wcstod-nan-sign.c: Likewise.
10106 * stdlib/Makefile (tests): Add tst-strtod-nan-sign.
10107 ($(objpfx)tst-strtod-nan-sign): Depend on $(libm).
10108 * wcsmbs/Makefile (tests) Add tst-wcstod-nan-sign.
10109 ($(objpfx)tst-wcstod-nan-sign): Depend on $(libm).
10110
10111 2018-06-15 Herman ten Brugge <hermantenbrugge@home.nl>
10112
10113 [BZ #23007]
10114 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Return NaN of
10115 appropriate sign.
10116
10117 2018-06-14 Florian Weimer <fweimer@redhat.com>
10118
10119 [BZ #23290]
10120 * localedata/charmaps/IBM273: Map codepoint 0xbc to U+00AF, so
10121 that the result stays within the ISO-8859-1 range.
10122 * iconvdata/ibm273.c (HAS_HOLES): Define as 0 because all 256
10123 characters are defined in IBM273.
10124
10125 2018-06-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
10126
10127 * sysdeps/mach/include/mach/mach_traps.h (__mach_thread_self,
10128 __mach_task_self): Remove attribute_hidden.
10129
10130 2018-06-14 Joseph Myers <joseph@codesourcery.com>
10131
10132 * string/tester.c (test_strncat) [__GNUC_PREREQ (7, 0)]: Also
10133 ignore -Wrestrict for one test.
10134
10135 2018-06-14 Steve Ellcey <sellcey@caviumnetworks.com>
10136 Szabolcs Nagy <szabolcs.nagy@arm.com>
10137
10138 * sysdeps/unix/sysv/linux/aarch64/gettimeofday.c: New file.
10139
10140 2018-06-14 Florian Weimer <fweimer@redhat.com>
10141
10142 * scripts/update-abilist.sh: Accept empty list of files to patch.
10143
10144 2018-06-13 Samuel Thibault <samuel.thibault@ens-lyon.org>
10145
10146 * sysdeps/mach/hurd/i386/Makefile (test-xfail-check-abi-libhurduser,
10147 test-xfail-check-abi-libmachuser): Add.
10148 * sysdeps/mach/hurd/localplt.data (ld.so): Add __open64, rename
10149 __libc_read and __libc_write to __read and __write.
10150 * sysdeps/hurd/include/hurd/port.h: New file.
10151 * mach/mach/mach_traps.h (__mach_reply_port, __mach_thread_self,
10152 __mach_task_self, __mach_host_self, __swtch, __swtch_pri,
10153 __thread_switch, __evc_wait): Move declarations to...
10154 * sysdeps/mach/include/mach/mach_traps.h: ... new file, and add
10155 attribute_hidden.
10156 * sysdeps/mach/hurd/i386/____longjmp_chk.S (____longjmp_chk): Do not
10157 use PLT to call _hurd_self_sigstate.
10158
10159 2018-06-13 Joseph Myers <joseph@codesourcery.com>
10160
10161 [BZ #23279]
10162 * stdlib/strtod_l.c (round_and_return): Handle an exponent of
10163 MAX_EXP as overflowing.
10164 * stdlib/gen-tst-strtod-round.c (string_to_fp): Clear MPFR
10165 overflow flag.
10166 (round_str): Output also whether result overflows in each rounding
10167 mode.
10168 * stdlib/tst-strtod-round-data: Add more tests.
10169 * stdlib/tst-strtod-round-data.h: Regenerated.
10170 * stdlib/tst-strtod-round-skeleton.c (_XNTRY): Update comment.
10171 (TEST): Handle extra arguments for overflow flags.
10172 (struct test_overflow): New type.
10173 [!FE_OVERFLOW] (FE_OVERFLOW): Define to 0.
10174 (GEN_ONE_TEST): Clear all exceptions. Test overflow flag.
10175 (test_in_one_mode): Take argument with overflow information.
10176 (do_test): Update calls to test_in_one_mode.
10177
10178 2018-06-12 Carlos O'Donell <carlos@redhat.com>
10179
10180 * elf/dl-load (_dl_dst_substitute): Correct comment.
10181 (_dl_dst_count): Likewise.
10182
10183 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Call
10184 lll_futex_timed_wait.
10185
10186 2018-06-12 Joseph Myers <joseph@codesourcery.com>
10187
10188 [BZ #23277]
10189 * math/bits/mathcalls.h [__USE_ISOC99] (nan): Do not use __const__
10190 attribute.
10191 * math/test-nan-const.c: New file.
10192 * math/Makefile (tests): Add test-nan-const.
10193 (CFLAGS-test-nan-const.c): New variable.
10194
10195 2018-06-12 H.J. Lu <hongjiu.lu@intel.com>
10196
10197 * benchtests/scripts/compare_strings.py (process_results): Add
10198 funcs argument. Compare only functions which are selected.
10199 (main): Check if base function is among selected functions.
10200 Pass selected functions to process_results.
10201 (__main__): Add -f/--functions argument.
10202
10203 2018-06-12 Minfeng Kang <minfeng.kang@hxt-semitech.com>
10204 Hongbo Zhang <hongbo.zhang@linaro.org>
10205
10206 * sysdeps/aarch64/multiarch/memcpy.c (libc_ifunc): reuse
10207 __memcpy_falkor for phecda core.
10208 * sysdeps/aarch64/multiarch/memmove.c (libc_ifunc): reuse
10209 __memmove_falkor for phecda core.
10210 * sysdeps/aarch64/multiarch/memset.c (libc_ifunc): reuse
10211 __memset_falkor for phecda core.
10212 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c: add MIDR entry
10213 for phecda core.
10214 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_PHECDA): add
10215 macro to identify phecda core.
10216
10217 2018-06-12 Carlos O'Donell <carlos@redhat.com>
10218 Andreas Schwab <schwab@suse.de>
10219 Dmitry V. Levin <ldv@altlinux.org>
10220 Florian Weimer <fweimer@redhat.com>
10221
10222 [BZ #23102]
10223 [BZ #21942]
10224 [BZ #18018]
10225 [BZ #23259]
10226 CVE-2011-0536
10227 * elf/dl-dst.h: Remove DL_DST_COUNT.
10228 * elf/dl-deps.c (expand_dst): Call _dl_dst_count.
10229 * elf/dl-load.c (is_trusted_path_normalize): Don't handle colons.
10230 (is_dst): Comment. Support ELF gABI.
10231 (_dl_dst_count): Comment. Simplify and count DSTs.
10232 (_dl_dst_substitute): Comment. Support __libc_enable_secure handling.
10233 (expand_dybamic_string_token): Comment. Call _dl_dst_count. Rename
10234 locals.
10235
10236 2018-06-12 Zack Weinberg <zackw@panix.com>
10237
10238 * elf/dl-load.c, elf/dl-misc.c, elf/dl-profile.c, elf/rtld.c
10239 * sysdeps/unix/sysv/linux/dl-sysdep.c
10240 Include not-cancel.h. Use __close_nocancel instead of __close,
10241 __open64_nocancel instead of __open, __read_nocancel instead of
10242 __libc_read, and __write_nocancel instead of __libc_write.
10243
10244 * csu/check_fds.c (check_one_fd)
10245 * sysdeps/posix/fdopendir.c (__fdopendir)
10246 * sysdeps/posix/opendir.c (__alloc_dir): Use __fcntl_nocancel
10247 instead of __fcntl and/or __libc_fcntl.
10248
10249 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np)
10250 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np)
10251 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system):
10252 Use __open64_nocancel instead of __open_nocancel.
10253
10254 * sysdeps/unix/sysv/linux/not-cancel.h: Move all of the
10255 hidden_proto declarations to the end and issue them if either
10256 IS_IN(libc) or IS_IN(rtld).
10257 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
10258 Add close_nocancel, fcntl_nocancel, nanosleep_nocancel,
10259 open_nocancel, open64_nocancel, openat_nocancel, pause_nocancel,
10260 read_nocancel, waitpid_nocancel, write_nocancel.
10261
10262 * io/Versions [GLIBC_PRIVATE]: Add __libc_fcntl,
10263 __fcntl_nocancel, __open64_nocancel, __write_nocancel.
10264 * posix/Versions: Add __nanosleep_nocancel, __pause_nocancel.
10265
10266 * nptl/pt-fcntl.c: New file.
10267 * nptl/Makefile (pthread-compat-wrappers): Remove fcntl.
10268 (libpthread-routines): Add pt-fcntl.
10269 * include/fcntl.h (__fcntl_nocancel_adjusted): New function.
10270 (__libc_fcntl): Remove attribute_hidden.
10271 * sysdeps/unix/sysv/linux/fcntl.c (__libc_fcntl): Call
10272 __fcntl_nocancel_adjusted, not fcntl_common.
10273 (__fcntl_nocancel): Move to new file fcntl_nocancel.c.
10274 (fcntl_common): Rename to __fcntl_nocancel_adjusted; also move
10275 to fcntl_nocancel.c.
10276 * sysdeps/unix/sysv/linux/fcntl_nocancel.c: New file.
10277 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fcntl.c: Remove file.
10278 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
10279 Define FCNTL_ADJUST_CMD here, as a self-contained macro.
10280
10281 * sysdeps/unix/sysv/linux/close.c: Move __close_nocancel to...
10282 * sysdeps/unix/sysv/linux/close_nocancel.c: ...this new file.
10283 * sysdeps/unix/sysv/linux/nanosleep.c: Move __nanosleep_nocancel to...
10284 * sysdeps/unix/sysv/linux/nanosleep_nocancel.c: ...this new file.
10285 * sysdeps/unix/sysv/linux/open.c: Move __open_nocancel to...
10286 * sysdeps/unix/sysv/linux/open_nocancel.c: ...this new file.
10287 * sysdeps/unix/sysv/linux/open64.c: Move __open64_nocancel to...
10288 * sysdeps/unix/sysv/linux/open64_nocancel.c: ...this new file.
10289 * sysdeps/unix/sysv/linux/openat.c: Move __openat_nocancel to...
10290 * sysdeps/unix/sysv/linux/openat_nocancel.c: ...this new file.
10291 * sysdeps/unix/sysv/linux/openat64.c: Move __openat64_nocancel to...
10292 * sysdeps/unix/sysv/linux/openat64_nocancel.c: ...this new file.
10293 * sysdeps/unix/sysv/linux/pause.c: Move __pause_nocancel to...
10294 * sysdeps/unix/sysv/linux/pause_nocancel.c: ...this new file.
10295 * sysdeps/unix/sysv/linux/read.c: Move __read_nocancel to...
10296 * sysdeps/unix/sysv/linux/read_nocancel.c: ...this new file.
10297 * sysdeps/unix/sysv/linux/waitpid.c: Move __waitpid_nocancel to...
10298 * sysdeps/unix/sysv/linux/waitpid_nocancel.c: ...this new file.
10299 * sysdeps/unix/sysv/linux/write.c: Move __write_nocancel to...
10300 * sysdeps/unix/sysv/linux/write_nocancel.c: ...this new file.
10301
10302 * sysdeps/unix/sysv/linux/nios2/Makefile: Don't override
10303 libpthread-routines.
10304 * sysdeps/unix/sysv/linux/nios2/pt-vfork.S: New file which
10305 defines nothing.
10306
10307 * sysdeps/mach/hurd/dl-sysdep.c: Define __read instead of
10308 __libc_read, and __write instead of __libc_write. Define
10309 __open64 in addition to __open.
10310
10311 2018-06-12 H.J. Lu <hongjiu.lu@intel.com>
10312
10313 [BZ #23250]
10314 [BZ #10686]
10315 * sysdeps/i386/nptl/tls.h (tcbhead_t): Change __private_tm[4]
10316 to _private_tm[3] and add __glibc_reserved2.
10317 Add _Static_assert of offset of __private_ss == 0x30.
10318 * sysdeps/x86_64/nptl/tls.h: Add _Static_assert of offset of
10319 __private_ss == 0x40 for ILP32 and == 0x70 for LP64.
10320
10321 2018-06-12 Florian Weimer <fweimer@redhat.com>
10322
10323 x86: Make strncmp usable from rtld.
10324 * sysdeps/i386/i686/multiarch/strncmp-c.c: Only rename strncmp to
10325 __strncmp_ia32 if in libc (and not in rtld).
10326 * sysdeps/x86_64/multiarch/strncmp-sse2.S: Rename strcmp to
10327 strncmp if not in libc (and not to __strncmp_sse2).
10328
10329 2018-06-12 Rafal Luzynski <digitalfreak@lingonborough.com>
10330
10331 [BZ #23140]
10332 * localedata/locales/gd_GB (mon): Rename to...
10333 (alt_mon): This.
10334 (mon): Import from CLDR (genitive case).
10335 * localedata/locales/hsb_DE (mon): Rename to...
10336 (alt_mon): This.
10337 (mon): Import from CLDR (genitive case).
10338 * localedata/locales/wa_BE (mon): Rename to...
10339 (alt_mon): This.
10340 (mon): Add, fill with the proper genitive forms, but CLDR data
10341 is incomplete; completed according to the comments in this file.
10342 (d_t_fmt): Do not use "di" before the month name, no longer needed.
10343
10344 * localedata/locales/wa_BE (country_name): Reword
10345 "Beljike" -> "Beldjike".
10346
10347 2018-06-11 Joseph Myers <joseph@codesourcery.com>
10348
10349 [BZ #23272]
10350 * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Start by handling all
10351 cases of non-finite arguments.
10352 * math/libm-test-fma.inc (fma_test_data): Add more tests.
10353
10354 2018-06-10 John David Anglin <danglin@gcc.gnu.org>
10355
10356 [BZ #23174]
10357 * sysdeps/unix/sysv/linux/hppa/Makefile: xfail check-execstack.
10358
10359 2018-06-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10360
10361 [BZ #23264]
10362 * include/unistd.h (__execvpex): New prototype.
10363 * posix/Makefile (tests): Add tst-spawn4.
10364 (tests-internal): Add tst-spawn4-compat.
10365 * posix/execvpe.c (__execvpe_common, __execvpex): New functions.
10366 * posix/tst-spawn4-compat.c: New file.
10367 * posix/tst-spawn4.c: Likewise.
10368 * sysdeps/unix/sysv/linux/spawni.c (__spawni): Do not interpret invalid
10369 binaries as shell scripts.
10370 * sysdeps/posix/spawni.c (__spawni): Likewise.
10371
10372 2018-06-08 H.J. Lu <hongjiu.lu@intel.com>
10373
10374 [BZ #23145]
10375 * elf/Makefile (tests-special): Add $(objpfx)check-initfini.out.
10376 ($(all-built-dso:=.dynsym): New target.
10377 (common-generated): Add $(all-built-dso:$(common-objpfx)%=%.dynsym).
10378 ($(objpfx)check-initfini.out): New target.
10379 (generated): Add check-initfini.out.
10380 * scripts/check-initfini.awk: New file.
10381 * sysdeps/aarch64/crti.S (_init): Mark as hidden.
10382 (_fini): Likewise.
10383 * sysdeps/alpha/crti.S (_init): Mark as hidden.
10384 (_fini): Likewise.
10385 * sysdeps/arm/crti.S (_init): Mark as hidden.
10386 (_fini): Likewise.
10387 * sysdeps/hppa/crti.S (_init): Mark as hidden.
10388 (_fini): Likewise.
10389 * sysdeps/i386/crti.S (_init): Mark as hidden.
10390 (_fini): Likewise.
10391 * sysdeps/ia64/crti.S (_init): Mark as hidden.
10392 (_fini): Likewise.
10393 * sysdeps/m68k/crti.S (_init): Mark as hidden.
10394 (_fini): Likewise.
10395 * sysdeps/microblaze/crti.S (_init): Mark as hidden.
10396 (_fini): Likewise.
10397 * sysdeps/mips/mips32/crti.S (_init): Mark as hidden.
10398 (_fini): Likewise.
10399 * sysdeps/mips/mips64/n32/crti.S (_init): Mark as hidden.
10400 (_fini): Likewise.
10401 * sysdeps/mips/mips64/n64/crti.S (_init): Mark as hidden.
10402 (_fini): Likewise.
10403 * sysdeps/nios2/crti.S (_init): Mark as hidden.
10404 (_fini): Likewise.
10405 * sysdeps/powerpc/powerpc32/crti.S (_init): Mark as hidden.
10406 (_fini): Likewise.
10407 * sysdeps/powerpc/powerpc64/crti.S (_init): Mark as hidden.
10408 (_fini): Likewise.
10409 * sysdeps/s390/s390-32/crti.S (_init): Mark as hidden.
10410 (_fini): Likewise.
10411 * sysdeps/s390/s390-64/crti.S (_init): Mark as hidden.
10412 (_fini): Likewise.
10413 * sysdeps/sh/crti.S (_init): Mark as hidden.
10414 (_fini): Likewise.
10415 * sysdeps/sparc/crti.S (_init): Mark as hidden.
10416 (_fini): Likewise.
10417 * sysdeps/x86_64/crti.S (_init): Mark as hidden.
10418 (_fini): Likewise.
10419
10420 2018-06-06 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
10421
10422 * sysdeps/powerpc/powerpc64/le/fpu/e_sqrtf128.c
10423 [__HAVE_FLOAT128_UNLIKE_LDBL] (TFtype, TF): Restrict TFtype
10424 and TF redirection to KFtype and KF only when the default
10425 long double type is not the IEEE 128-bit floating point type.
10426
10427 2018-06-05 Joseph Myers <joseph@codesourcery.com>
10428
10429 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_DIT): New
10430 macro.
10431 (HWCAP_USCAT): Likewise.
10432 (HWCAP_ILRCPC): Likewise.
10433 (HWCAP_FLAGM): Likewise.
10434 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
10435 Increase to 28.
10436 (_dl_aarch64_cap_flags): Add new flag names.
10437
10438 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h [__USE_MISC]
10439 (MAP_FIXED_NOREPLACE): New macro.
10440 * sysdeps/unix/sysv/linux/alpha/bits/mman.h [__USE_MISC]
10441 (MAP_FIXED_NOREPLACE): Likewise.
10442 * sysdeps/unix/sysv/linux/arm/bits/mman.h [__USE_MISC]
10443 (MAP_FIXED_NOREPLACE): Likewise.
10444 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
10445 (MAP_FIXED_NOREPLACE): Likewise.
10446 * sysdeps/unix/sysv/linux/ia64/bits/mman.h [__USE_MISC]
10447 (MAP_FIXED_NOREPLACE): Likewise.
10448 * sysdeps/unix/sysv/linux/m68k/bits/mman.h [__USE_MISC]
10449 (MAP_FIXED_NOREPLACE): Likewise.
10450 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h [__USE_MISC]
10451 (MAP_FIXED_NOREPLACE): Likewise.
10452 * sysdeps/unix/sysv/linux/mips/bits/mman.h [__USE_MISC]
10453 (MAP_FIXED_NOREPLACE): Likewise.
10454 * sysdeps/unix/sysv/linux/nios2/bits/mman.h [__USE_MISC]
10455 (MAP_FIXED_NOREPLACE): Likewise.
10456 * sysdeps/unix/sysv/linux/powerpc/bits/mman.h [__USE_MISC]
10457 (MAP_FIXED_NOREPLACE): Likewise.
10458 * sysdeps/unix/sysv/linux/riscv/bits/mman.h [__USE_MISC]
10459 (MAP_FIXED_NOREPLACE): Likewise.
10460 * sysdeps/unix/sysv/linux/s390/bits/mman.h [__USE_MISC]
10461 (MAP_FIXED_NOREPLACE): Likewise.
10462 * sysdeps/unix/sysv/linux/sh/bits/mman.h [__USE_MISC]
10463 (MAP_FIXED_NOREPLACE): Likewise.
10464 * sysdeps/unix/sysv/linux/sparc/bits/mman.h [__USE_MISC]
10465 (MAP_FIXED_NOREPLACE): Likewise.
10466 * sysdeps/unix/sysv/linux/x86/bits/mman.h [__USE_MISC]
10467 (MAP_FIXED_NOREPLACE): Likewise.
10468
10469 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
10470 version to 4.17.
10471
10472 2018-06-04 Joseph Myers <joseph@codesourcery.com>
10473
10474 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
10475 version to 4.17
10476
10477 2018-06-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
10478
10479 * bits/shm.h (struct shmid_ds): Make shm_segsz field size_t instead of
10480 int.
10481 * sysdeps/gnu/bits/shm.h (struct shmid_ds): Likewise.
10482
10483 2018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
10484
10485 * benchtests/scripts/compare_string.py: (process_results) Catch
10486 exception in non-existent base_func and catch exception in
10487 non-existent attribute.
10488 (parse_file) Catch exception if input file does not exist.
10489
10490 2018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
10491
10492 * benchtests/scripts/compare_string.py: Add --no-diff and --no-header
10493 options to avoid diff calculation and omit header, respectively.
10494 (main): process --no-diff and --no-header
10495
10496 2018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
10497 H.J. Lu <hongjiu.lu@intel.com>
10498
10499 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
10500 strcmp-avx2, strncmp-avx2, wcscmp-avx2, wcscmp-sse2, wcsncmp-avx2 and
10501 wcsncmp-sse2.
10502 * sysdeps/x86_64/multiarch/ifunc-impl-list.c
10503 (__libc_ifunc_impl_list): Add tests for __strcmp_avx2,
10504 __strncmp_avx2, __wcscmp_avx2, __wcsncmp_avx2, __wcscmp_sse2
10505 and __wcsncmp_sse2.
10506 * sysdeps/x86_64/multiarch/strcmp.c (OPTIMIZE (avx2)):
10507 (IFUNC_SELECTOR): Return OPTIMIZE (avx2) on AVX 2 machines if
10508 AVX unaligned load is fast and vzeroupper is preferred.
10509 * sysdeps/x86_64/multiarch/strncmp.c: Likewise.
10510 * sysdeps/x86_64/multiarch/strcmp-avx2.S: New file.
10511 * sysdeps/x86_64/multiarch/strncmp-avx2.S: Likewise.
10512 * sysdeps/x86_64/multiarch/wcscmp-avx2.S: Likewise.
10513 * sysdeps/x86_64/multiarch/wcscmp-sse2.S: Likewise.
10514 * sysdeps/x86_64/multiarch/wcscmp.c: Likewise.
10515 * sysdeps/x86_64/multiarch/wcsncmp-avx2.S: Likewise.
10516 * sysdeps/x86_64/multiarch/wcsncmp-sse2.c: Likewise.
10517 * sysdeps/x86_64/multiarch/wcsncmp.c: Likewise.
10518 * sysdeps/x86_64/wcscmp.S (__wcscmp): Add alias only if __wcscmp
10519 is undefined.
10520
10521 2018-06-01 Florian Weimer <fweimer@redhat.com>
10522
10523 * sysdeps/i386/fpu/libm-test-ulps: Update with results from
10524 configuring with --disable-multi-arch, building with
10525 “-march=x86-64 -mtune=generic -mfpmath=sse” and running on a
10526 Haswell-era CPU.
10527
10528 2018-06-01 Florian Weimer <fweimer@redhat.com>
10529
10530 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Update with
10531 results from building with “-march=x86-64 -mtune=generic
10532 -mfpmath=sse” and running on a Haswell-era CPU.
10533
10534 2018-06-01 Joseph Myers <joseph@codesourcery.com>
10535
10536 [BZ #18473]
10537 * soft-fp/sqrttf2.c: Remove file.
10538 * soft-fp/sqrtdf2.c: Move to ....
10539 * sysdeps/powerpc/nofpu/sqrtdf2.c: ... here. Include
10540 <shlib-compat.h>.
10541 (__sqrtdf2): Make conditional on
10542 [SHLIB_COMPAT (libc, GLIBC_2_3_2, GLIBC_2_28)]. Define as compat
10543 symbol.
10544 * soft-fp/sqrtsf2.c: Move to ....
10545 * sysdeps/powerpc/nofpu/sqrtsf2.c: ... here. Include
10546 <shlib-compat.h>.
10547 (__sqrtsf2): Make conditional on
10548 [SHLIB_COMPAT (libc, GLIBC_2_3_2, GLIBC_2_28)]. Define as compat
10549 symbol.
10550 * soft-fp/Makefile (gcc-single-routines): Remove sqrtsf2.
10551 (gcc-double-routines): Remove sqrtdf2.
10552 (gcc-quad-routines): Remove sqrttf2.
10553 * sysdeps/nios2/Makefile [$(subdir) = soft-fp] (sysdep_routines):
10554 Do not filter out sqrtsf2 and sqrtdf2.
10555 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = soft-fp]
10556 (sysdep_routines): Add sqrtsf2 and sqrtdf2.
10557
10558 2018-06-01 Florian Weimer <fweimer@redhat.com>
10559
10560 * sysdeps/generic/libcidn.abilist: Remove file.
10561
10562 2018-06-01 Florian Weimer <fweimer@redhat.com>
10563
10564 [BZ #23236]
10565 * libio/strfile.h (struct _IO_str_fields): Rename members to
10566 discourage their use and add comment.
10567 (_IO_STR_DYNAMIC): Remove unused macro.
10568 * libio/strops.c (_IO_str_init_static_internal): Do not use
10569 callback pointers. Call malloc and free.
10570 (_IO_str_overflow): Do not use callback pointers. Call malloc
10571 and free.
10572 (enlarge_userbuf): Likewise.
10573 (_IO_str_finish): Call free.
10574 * libio/wstrops.c (_IO_wstr_init_static): Initialize
10575 _allocate_buffer_unused.
10576 (_IO_wstr_overflow): Do not use callback pointers. Call malloc
10577 and free.
10578 (enlarge_userbuf): Likewise.
10579 (_IO_wstr_finish): Call free.
10580 * debug/vasprintf_chk.c (__vasprintf_chk): Initialize
10581 _allocate_buffer_unused, _free_buffer_unused.
10582 * libio/memstream.c (__open_memstream): Likewise.
10583 * libio/vasprintf.c (_IO_vasprintf): Likewise.
10584 * libio/wmemstream.c (open_wmemstream): Likewise.
10585
10586 2018-05-30 Paul Pluzhnikov <ppluzhnikov@google.com>
10587
10588 * sysdeps/x86_64/fpu/libm-test-ulps (log_vlen8_avx2): Update for
10589 AMD Ryzen 7 1800X.
10590
10591 2018-05-30 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
10592
10593 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/Makefile: New file to
10594 add w_sqrtf128-power9 and w_sqrtf128-ppc64le to libm-sysdep_routines.
10595 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128-power9.c:
10596 New file.
10597 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128-ppc64le.c:
10598 Likewise.
10599 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128.c: Likewise.
10600
10601 2018-05-29 Florian Weimer <fweimer@redhat.com>
10602
10603 * support/Makefile (libsupport-routines): Add
10604 xpthread_barrierattr_destroy, xpthread_barrierattr_init,
10605 xpthread_barrierattr_setpshared.
10606 * support/xpthread_barrierattr_destroy.c: New file.
10607 * support/xpthread_barrierattr_init.c: Likewise.
10608 * support/xpthread_barrierattr_setpshared.c: Likewise.
10609
10610 2018-05-29 H.J. Lu <hongjiu.lu@intel.com>
10611
10612 [BZ #23206]
10613 * elf/dl-reloc-static-pie.c (_dl_relocate_static_pie): Initialize
10614 _r_debug and update DT_DEBUG for debugger.
10615
10616 2018-05-29 Florian Weimer <fweimer@redhat.com>
10617
10618 * stdlib/Makefile (tst-strtod1i.out): Depend on generated locales.
10619 (tst-strtod5i.out): Likewise.
10620
10621 2018-05-25 Joseph Myers <joseph@codesourcery.com>
10622
10623 * sysdeps/sparc/sparc64/Implies: Remove sparc/sparc64/soft-fp.
10624 * sysdeps/sparc/sparc64/Makefile [$(subdir) = soft-fp]
10625 (sparc64-quad-routines): New variable. Moved from ....
10626 [$(subdir) = soft-fp] (sysdep_routines): Add
10627 $(sparc64-quad-routines). Moved from ....
10628 [$(subdir) = math] (CPPFLAGS): Add -I../soft-fp/. Moved from ....
10629 * sysdeps/sparc/sparc64/soft-fp/Makefile: ... here. Remove file.
10630 * sysdeps/sparc/sparc64/Versions (libc): Add GLIBC_2.2 symbols
10631 moved from ....
10632 * sysdeps/sparc/sparc64/soft-fp/Versions: ... here. Remove file.
10633 * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: Remove file.
10634 * sysdeps/sparc/sparc64/soft-fp/qp_add.c: Move to ....
10635 * sysdeps/sparc/sparc64/qp_add.c: ... here.
10636 * sysdeps/sparc/sparc64/soft-fp/qp_cmp.c: Move to ....
10637 * sysdeps/sparc/sparc64/qp_cmp.c: ... here.
10638 * sysdeps/sparc/sparc64/soft-fp/qp_cmpe.c: Move to ....
10639 * sysdeps/sparc/sparc64/qp_cmpe.c: ... here.
10640 * sysdeps/sparc/sparc64/soft-fp/qp_div.c: Move to ....
10641 * sysdeps/sparc/sparc64/qp_div.c: ... here.
10642 * sysdeps/sparc/sparc64/soft-fp/qp_dtoq.c: Move to ....
10643 * sysdeps/sparc/sparc64/qp_dtoq.c: ... here.
10644 * sysdeps/sparc/sparc64/soft-fp/qp_feq.c: Move to ....
10645 * sysdeps/sparc/sparc64/qp_feq.c: ... here.
10646 * sysdeps/sparc/sparc64/soft-fp/qp_fge.c: Move to ....
10647 * sysdeps/sparc/sparc64/qp_fge.c: ... here.
10648 * sysdeps/sparc/sparc64/soft-fp/qp_fgt.c: Move to ....
10649 * sysdeps/sparc/sparc64/qp_fgt.c: ... here.
10650 * sysdeps/sparc/sparc64/soft-fp/qp_fle.c: Move to ....
10651 * sysdeps/sparc/sparc64/qp_fle.c: ... here.
10652 * sysdeps/sparc/sparc64/soft-fp/qp_flt.c: Move to ....
10653 * sysdeps/sparc/sparc64/qp_flt.c: ... here.
10654 * sysdeps/sparc/sparc64/soft-fp/qp_fne.c: Move to ....
10655 * sysdeps/sparc/sparc64/qp_fne.c: ... here.
10656 * sysdeps/sparc/sparc64/soft-fp/qp_itoq.c: Move to ....
10657 * sysdeps/sparc/sparc64/qp_itoq.c: ... here.
10658 * sysdeps/sparc/sparc64/soft-fp/qp_mul.c: Move to ....
10659 * sysdeps/sparc/sparc64/qp_mul.c: ... here.
10660 * sysdeps/sparc/sparc64/soft-fp/qp_neg.S: Move to ....
10661 * sysdeps/sparc/sparc64/qp_neg.S: ... here.
10662 * sysdeps/sparc/sparc64/soft-fp/qp_qtod.c: Move to ....
10663 * sysdeps/sparc/sparc64/qp_qtod.c: ... here.
10664 * sysdeps/sparc/sparc64/soft-fp/qp_qtoi.c: Move to ....
10665 * sysdeps/sparc/sparc64/qp_qtoi.c: ... here.
10666 * sysdeps/sparc/sparc64/soft-fp/qp_qtos.c: Move to ....
10667 * sysdeps/sparc/sparc64/qp_qtos.c: ... here.
10668 * sysdeps/sparc/sparc64/soft-fp/qp_qtoui.c: Move to ....
10669 * sysdeps/sparc/sparc64/qp_qtoui.c: ... here.
10670 * sysdeps/sparc/sparc64/soft-fp/qp_qtoux.c: Move to ....
10671 * sysdeps/sparc/sparc64/qp_qtoux.c: ... here.
10672 * sysdeps/sparc/sparc64/soft-fp/qp_qtox.c: Move to ....
10673 * sysdeps/sparc/sparc64/qp_qtox.c: ... here.
10674 * sysdeps/sparc/sparc64/soft-fp/qp_sqrt.c: Move to ....
10675 * sysdeps/sparc/sparc64/qp_sqrt.c: ... here.
10676 * sysdeps/sparc/sparc64/soft-fp/qp_stoq.c: Move to ....
10677 * sysdeps/sparc/sparc64/qp_stoq.c: ... here.
10678 * sysdeps/sparc/sparc64/soft-fp/qp_sub.c: Move to ....
10679 * sysdeps/sparc/sparc64/qp_sub.c: ... here.
10680 * sysdeps/sparc/sparc64/soft-fp/qp_uitoq.c: Move to ....
10681 * sysdeps/sparc/sparc64/qp_uitoq.c: ... here.
10682 * sysdeps/sparc/sparc64/soft-fp/qp_util.c: Move to ....
10683 * sysdeps/sparc/sparc64/qp_util.c: ... here.
10684 * sysdeps/sparc/sparc64/soft-fp/qp_uxtoq.c: Move to ....
10685 * sysdeps/sparc/sparc64/qp_uxtoq.c: ... here.
10686 * sysdeps/sparc/sparc64/soft-fp/qp_xtoq.c: Move to ....
10687 * sysdeps/sparc/sparc64/qp_xtoq.c: ... here.
10688 * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h: Move to ....
10689 * sysdeps/sparc/sparc64/sfp-machine.h: ... here.
10690
10691 * sysdeps/sparc/sparc32/Implies: Remove sparc/sparc32/soft-fp.
10692 * sysdeps/sparc/sparc32/Makefile [$(subdir) = soft-fp]
10693 (sparc32-quad-routines): New variable. Moved from ....
10694 [$(subdir) = soft-fp] (sysdep_routines): Add
10695 $(sparc32-quad-routines). Moved from ....
10696 * sysdeps/sparc/sparc32/soft-fp/Makefile: ... here. Remove file.
10697 * sysdeps/sparc/sparc32/Versions (libc): Add GLIBC_2.4 symbols
10698 moved from ....
10699 * sysdeps/sparc/sparc32/soft-fp/Versions: ... here. Remove file.
10700 * sysdeps/sparc/sparc32/soft-fp/q_add.c: Move to ....
10701 * sysdeps/sparc/sparc32/q_add.c: ... here.
10702 * sysdeps/sparc/sparc32/soft-fp/q_cmp.c: Move to ....
10703 * sysdeps/sparc/sparc32/q_cmp.c: ... here.
10704 * sysdeps/sparc/sparc32/soft-fp/q_cmpe.c: Move to ....
10705 * sysdeps/sparc/sparc32/q_cmpe.c: ... here.
10706 * sysdeps/sparc/sparc32/soft-fp/q_div.c: Move to ....
10707 * sysdeps/sparc/sparc32/q_div.c: ... here.
10708 * sysdeps/sparc/sparc32/soft-fp/q_dtoq.c: Move to ....
10709 * sysdeps/sparc/sparc32/q_dtoq.c: ... here.
10710 * sysdeps/sparc/sparc32/soft-fp/q_feq.c: Move to ....
10711 * sysdeps/sparc/sparc32/q_feq.c: ... here.
10712 * sysdeps/sparc/sparc32/soft-fp/q_fge.c: Move to ....
10713 * sysdeps/sparc/sparc32/q_fge.c: ... here.
10714 * sysdeps/sparc/sparc32/soft-fp/q_fgt.c: Move to ....
10715 * sysdeps/sparc/sparc32/q_fgt.c: ... here.
10716 * sysdeps/sparc/sparc32/soft-fp/q_fle.c: Move to ....
10717 * sysdeps/sparc/sparc32/q_fle.c: ... here.
10718 * sysdeps/sparc/sparc32/soft-fp/q_flt.c: Move to ....
10719 * sysdeps/sparc/sparc32/q_flt.c: ... here.
10720 * sysdeps/sparc/sparc32/soft-fp/q_fne.c: Move to ....
10721 * sysdeps/sparc/sparc32/q_fne.c: ... here.
10722 * sysdeps/sparc/sparc32/soft-fp/q_itoq.c: Move to ....
10723 * sysdeps/sparc/sparc32/q_itoq.c: ... here.
10724 * sysdeps/sparc/sparc32/soft-fp/q_lltoq.c: Move to ....
10725 * sysdeps/sparc/sparc32/q_lltoq.c: ... here.
10726 * sysdeps/sparc/sparc32/soft-fp/q_mul.c: Move to ....
10727 * sysdeps/sparc/sparc32/q_mul.c: ... here.
10728 * sysdeps/sparc/sparc32/soft-fp/q_neg.c: Move to ....
10729 * sysdeps/sparc/sparc32/q_neg.c: ... here.
10730 * sysdeps/sparc/sparc32/soft-fp/q_qtod.c: Move to ....
10731 * sysdeps/sparc/sparc32/q_qtod.c: ... here.
10732 * sysdeps/sparc/sparc32/soft-fp/q_qtoi.c: Move to ....
10733 * sysdeps/sparc/sparc32/q_qtoi.c: ... here.
10734 * sysdeps/sparc/sparc32/soft-fp/q_qtoll.c: Move to ....
10735 * sysdeps/sparc/sparc32/q_qtoll.c: ... here.
10736 * sysdeps/sparc/sparc32/soft-fp/q_qtos.c: Move to ....
10737 * sysdeps/sparc/sparc32/q_qtos.c: ... here.
10738 * sysdeps/sparc/sparc32/soft-fp/q_qtou.c: Move to ....
10739 * sysdeps/sparc/sparc32/q_qtou.c: ... here.
10740 * sysdeps/sparc/sparc32/soft-fp/q_qtoull.c: Move to ....
10741 * sysdeps/sparc/sparc32/q_qtoull.c: ... here.
10742 * sysdeps/sparc/sparc32/soft-fp/q_sqrt.c: Move to ....
10743 * sysdeps/sparc/sparc32/q_sqrt.c: ... here.
10744 * sysdeps/sparc/sparc32/soft-fp/q_stoq.c: Move to ....
10745 * sysdeps/sparc/sparc32/q_stoq.c: ... here.
10746 * sysdeps/sparc/sparc32/soft-fp/q_sub.c: Move to ....
10747 * sysdeps/sparc/sparc32/q_sub.c: ... here.
10748 * sysdeps/sparc/sparc32/soft-fp/q_ulltoq.c: Move to ....
10749 * sysdeps/sparc/sparc32/q_ulltoq.c: ... here.
10750 * sysdeps/sparc/sparc32/soft-fp/q_util.c: Move to ....
10751 * sysdeps/sparc/sparc32/q_util.c: ... here.
10752 * sysdeps/sparc/sparc32/soft-fp/q_utoq.c: Move to ....
10753 * sysdeps/sparc/sparc32/q_utoq.c: ... here.
10754 * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h: Move to ....
10755 * sysdeps/sparc/sparc32/sfp-machine.h: ... here.
10756
10757 2018-05-24 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
10758 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
10759
10760 * sysdeps/powerpc/Implies: Removed. Previous contents copied to...
10761 * sysdeps/powerpc/powerpc32/Implies-after: ... here.
10762 * sysdeps/powerpc/powerpc64/be/Implies-after: ... here.
10763 * sysdeps/powerpc/powerpc64/le/Implies-before: ... and here.
10764
10765 2018-05-24 Joseph Myers <joseph@codesourcery.com>
10766
10767 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/Implies: Remove
10768 powerpc/soft-fp.
10769 * sysdeps/unix/sysv/linux/powerpc/powerpc32/e500/nofpu/Implies:
10770 Likewise.
10771 * sysdeps/powerpc/soft-fp/sfp-machine.h: Move to ....
10772 * sysdeps/powerpc/nofpu/sfp-machine.h: ... here.
10773
10774 2018-05-24 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
10775
10776 [BZ #23171]
10777 * math/math.h [C++] (iseqsig): Fix parameter type for the long
10778 double version.
10779
10780 2018-05-23 Joseph Myers <joseph@codesourcery.com>
10781
10782 * sysdeps/sh/Implies: Remove sh/soft-fp.
10783 * sysdeps/sh/soft-fp/sfp-machine.h: Move to ....
10784 * sysdeps/sh/sfp-machine.h: ... here.
10785
10786 2018-05-23 H.J. Lu <hongjiu.lu@intel.com>
10787
10788 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
10789 (__mempcpy_erms): Skip zero length.
10790 (__memmove_erms): Likewise.
10791 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
10792 (__memset_erms): Likewise.
10793
10794 2018-05-23 Joseph Myers <joseph@codesourcery.com>
10795
10796 * sysdeps/alpha/Implies: Remove alpha/soft-fp.
10797 * sysdeps/alpha/Makefile [$(subdir) = soft-fp] (sysdep_routines):
10798 Add functions moved from ....
10799 [$(subdir) = math] (CPPFLAGS): Add -I../soft-fp. Moved from ....
10800 * sysdeps/alpha/soft-fp/Makefile: ... here. Remove file.
10801 * sysdeps/alpha/Versions (libc): Add GLIBC_2.3.4 symbols moved
10802 from ....
10803 * sysdeps/alpha/soft-fp/Versions: ... here. Remove file.
10804 * sysdeps/alpha/soft-fp/e_sqrtl.c: Move to ....
10805 * sysdeps/alpha/e_sqrtl.c: ... here.
10806 * sysdeps/alpha/soft-fp/local-soft-fp.h: Move to ....
10807 * sysdeps/alpha/local-soft-fp.h: ... here.
10808 * sysdeps/alpha/soft-fp/ots_add.c: Move to ....
10809 * sysdeps/alpha/ots_add.c: ... here.
10810 * sysdeps/alpha/soft-fp/ots_cmp.c: Move to ....
10811 * sysdeps/alpha/ots_cmp.c: ... here.
10812 * sysdeps/alpha/soft-fp/ots_cmpe.c: Move to ....
10813 * sysdeps/alpha/ots_cmpe.c: ... here.
10814 * sysdeps/alpha/soft-fp/ots_cvtqux.c: Move to ....
10815 * sysdeps/alpha/ots_cvtqux.c: ... here.
10816 * sysdeps/alpha/soft-fp/ots_cvtqx.c: Move to ....
10817 * sysdeps/alpha/ots_cvtqx.c: ... here.
10818 * sysdeps/alpha/soft-fp/ots_cvttx.c: Move to ....
10819 * sysdeps/alpha/ots_cvttx.c: ... here.
10820 * sysdeps/alpha/soft-fp/ots_cvtxq.c: Move to ....
10821 * sysdeps/alpha/ots_cvtxq.c: ... here.
10822 * sysdeps/alpha/soft-fp/ots_cvtxt.c: Move to ....
10823 * sysdeps/alpha/ots_cvtxt.c: ... here.
10824 * sysdeps/alpha/soft-fp/ots_div.c: Move to ....
10825 * sysdeps/alpha/ots_div.c: ... here.
10826 * sysdeps/alpha/soft-fp/ots_mul.c: Move to ....
10827 * sysdeps/alpha/ots_mul.c: ... here.
10828 * sysdeps/alpha/soft-fp/ots_nintxq.c: Move to ....
10829 * sysdeps/alpha/ots_nintxq.c: ... here.
10830 * sysdeps/alpha/soft-fp/ots_sub.c: Move to ....
10831 * sysdeps/alpha/ots_sub.c: ... here.
10832 * sysdeps/alpha/soft-fp/sfp-machine.h: Move to ....
10833 * sysdeps/alpha/sfp-machine.h: ... here.
10834
10835 2018-05-23 Florian Weimer <fweimer@redhat.com>
10836
10837 [BZ #19728]
10838 [BZ #19729]
10839 [BZ #22247]
10840 CVE-2016-6261
10841 CVE-2016-6263
10842 CVE-2017-14062
10843 Switch to extern IDNA implementation (libidn2).
10844 * libidn: Remove subdirectory.
10845 * LICENSES: Do not mention licensing conditions for the removed
10846 libidn code.
10847 * config.h.in (HAVE_LIBIDN): Remove.
10848 * include/dlfcn.h (__libc_dlopen): Update comment.
10849 * include/idna.h: Remove file.
10850 * inet/Makefile (routines): Add idna.
10851 (tests-static, tests-internal): Add tst-idna_name_classify.
10852 (LOCALES): Generate locales for tests.
10853 (tst-idna_name_classify.out): Depend on generated locales.
10854 * inet/idna_name_classify.c: New file.
10855 * inet/tst-idna_name_classify.c: Likewise.
10856 * inet/net-internal.h (__idna_to_dns_encoding)
10857 (__idna_from_dns_encoding): Declare.
10858 * inet/net-internal.h (enum idna_name_classification): Define.
10859 (__idna_name_classify): Declare.
10860 * inet/Versions (GLIBC_PRIVATE): Add __idna_to_dns_encoding,
10861 __idna_from_dns_encoding.
10862 * inet/getnameinfo.c (DEPRECATED_NI_IDN): Define.
10863 (gni_host_inet_name): Call __idna_from_dns_encoding. Use punycode
10864 name as a fallback in case of encoding errors.
10865 (getnameinfo): Use DEPRECATED_NI_IDN.
10866 * inet/idna.c: New file.
10867 * nscd/gai.c: Do not include <libidn/idn-stub.c>.
10868 * resolv/Makefile (tests): Add tst-resolv-ai_idn,
10869 tst-resolv-ai_idn-latin1, tst-resolv-ai_idn-nolibidn2.
10870 (modules-names): Add tst-no-libidn2.
10871 (extra-test-objs): Add tst-no-libidn2.os.
10872 (LDFLAGS-tst-no-libidn2.so): Set soname.
10873 (LOCALES): Set, and generate locales.
10874 (tst-resolv-ai_idn): Link with -ldl -lresolv -lpthread.
10875 (tst-resolv-ai_idn-latin1): Likewise.
10876 (tst-resolv-ai_idn-nolibidn2): Likewise.
10877 (tst-resolv-ai_idn.out): Depend on locales.
10878 (tst-resolv-ai_idn-latin1.out): Depend on locales.
10879 (tst-resolv-ai_idn-nolibidn2.out): Depend on locales and
10880 tst-no-libidn2.so.
10881 * resolv/netdb.h (AI_IDN_ALLOW_UNASSIGNED)
10882 (AI_IDN_USE_STD3_ASCII_RULES, NI_IDN_ALLOW_UNASSIGNED)
10883 (NI_IDN_USE_STD3_ASCII_RULES): Deprecate.
10884 * resolv/tst-resolv-ai_idn.c: New file.
10885 * resolv/tst-resolv-ai_idn-latin1.c: Likewise.
10886 * resolv/tst-resolv-ai_idn-nolibidn2.c: Likewise.
10887 * resolv/tst-no-libidn2.c: Likewise.
10888 * support/support_format_addrinfo.c (format_ai_flags): Do not
10889 handle AI_IDN_ALLOW_UNASSIGNED, AI_IDN_USE_STD3_ASCII_RULES.
10890 * sysdeps/posix/getaddrinfo.c (DEPRECATED_AI_IDN): Define.
10891 (gaih_inet): Call __idna_to_dns_encoding and
10892 __idna_from_dns_encoding, and use the original (punycode) name if
10893 __idna_from_dns_encoding fails due to an encoding error.
10894 (getaddrinfo): Use DEPRECATED_AI_IDN.
10895 * sysdeps/unix/inet/Subdirs (libidn): Remove.
10896 * sysdeps/unix/inet/configure: Remove file.
10897 * sysdeps/unix/inet/configure.ac: Likewise.
10898
10899 2018-05-23 Florian Weimer <fweimer@redhat.com>
10900
10901 Implement allocate_once.
10902 * include/allocate_once.h: New file.
10903 * misc/allocate_once.c: Likewise.
10904 * misc/tst-allocate_once.c: Likewise.
10905 * misc/Makefile (routines): Add allocate_once.
10906 (tests-internal): Add tst-allocate_once.
10907 (generated): Add tst-allocate_once.mtrace,
10908 tst-allocate_once-mem.out.
10909 (tests-special): Add tst-allocate_once-mem.out.
10910 (tst-allocate_once-ENV): Set MALLOC_TRACE.
10911 (tst-allocate_once-mem.out): Call mtrace.
10912 * misc/Versions (GLIBC_PRIVATE): Add __libc_allocate_once_slow.
10913
10914 2018-05-23 H.J. Lu <hongjiu.lu@intel.com>
10915
10916 [BZ #23196]
10917 * string/test-memcpy.c (do_test1): New function.
10918 (test_main): Call it.
10919
10920 2018-05-23 Andreas Schwab <schwab@suse.de>
10921
10922 [BZ #23196]
10923 CVE-2018-11237
10924 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S
10925 (L(preloop_large)): Save initial destination pointer in %r11 and
10926 use it instead of %rax after the loop.
10927 * string/test-mempcpy.c (MIN_PAGE_SIZE): Define.
10928
10929 2018-05-22 Joseph Myers <joseph@codesourcery.com>
10930
10931 * sysdeps/aarch64/Implies: Remove aarch64/soft-fp.
10932 * sysdeps/aarch64/Makefile [$(subdir) = math] (CPPFLAGS): Add
10933 -I../soft-fp. Moved from ....
10934 * sysdeps/aarch64/soft-fp/Makefile: ... here. Remove file.
10935 * sysdeps/aarch64/soft-fp/e_sqrtl.c: Move to ....
10936 * sysdeps/aarch64/e_sqrtl.c: ... here.
10937 * sysdeps/aarch64/soft-fp/sfp-machine.h: Move to ....
10938 * sysdeps/aarch64/sfp-machine.h: ... here.
10939
10940 * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Ignore
10941 -Wmaybe-uninitialized around access to fq[0].
10942 * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f):
10943 Likewise.
10944
10945 [BZ #18471]
10946 * sysdeps/unix/make-syscalls.sh (emit_weak_aliases): Use weak
10947 aliases for non-libc case of versioned symbols.
10948 * sysdeps/unix/sysv/linux/lseek64.c: Include <shlib-compat.h>.
10949 (llseek): Define as compat symbol if
10950 [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_28)], not as weak alias
10951 with link warning.
10952 * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (llseek):
10953 Make into a compat symbol, disabled for minimum symbol version
10954 GLIBC_2.28 and later.
10955 * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Remove file.
10956
10957 2018-05-22 Florian Weimer <fweimer@redhat.com>
10958
10959 * sysdeps/i386/Makefile [$(subdir) == math] (sysdep-CFLAGS): Do
10960 not add -mpreferred-stack-boundary=4.
10961 [$(subdir) == csu] (sysdep-CFLAGS): Likewise.
10962 (stack-align-test-flags): Likewise.
10963 [$(subdir) == stdlib] (CFLAGS-exit.c, CFLAGS-cxa_finalize.c):
10964 Likewise.
10965 [$(subdir) == elf] (CFLAGS-dl-init.c, CFLAGS-dl-fini.c)
10966 (CFLAGS-dl-open.c, CFLAGS-dl-close.c, CFLAGS-dl-error.c): Likewise.
10967 [$(subdir) == dlfcn] (CFLAGS-dlopen.c, CFLAGS-dlopenold.c)
10968 (CFLAGS-dlclose.c, CFLAGS-dlerror.c): Likewise.
10969 * sysdeps/i386/nptl/Makefile [$(subdir) == nptl]
10970 (CFLAGS-pthread_create.c, CFLAGS-tst-align.c)
10971 (CFLAGS-tst-align2.c): Likewise.
10972
10973 2018-05-21 H.J. Lu <hongjiu.lu@intel.com>
10974
10975 * sysdeps/x86/cpu-features.h (bit_arch_Prefer_FSRM): New.
10976 (index_arch_Prefer_FSRM): Likewise.
10977 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
10978 Also check Prefer_FSRM.
10979 * sysdeps/x86_64/multiarch/ifunc-memmove.h (IFUNC_SELECTOR):
10980 Also return OPTIMIZE (erms) for Prefer_FSRM.
10981
10982 2018-05-21 H.J. Lu <hongjiu.lu@intel.com>
10983
10984 * sysdeps/x86/cpu-features.h (bit_cpu_FSRM): New.
10985 (index_cpu_FSRM): Likewise.
10986 (reg_FSRM): Likewise.
10987
10988 2018-05-18 Joseph Myers <joseph@codesourcery.com>
10989
10990 * math/gen-tgmath-tests.py: Import sys.
10991 (Tests.__init__): Initialize macros_seen.
10992 (Tests.add_tests): Add macro to macros_seen. Only generate tests
10993 if requested to do so for this macro.
10994 (Tests.add_all_tests): Take argument for macro for which to
10995 generate tests.
10996 (Tests.check_macro_list): New function.
10997 (main): Handle check-list argument and argument specifying macro
10998 for which to generate tests.
10999 * math/Makefile [PYTHON] (tgmath3-macros): New variable.
11000 [PYTHON] (tgmath3-macro-tests): Likewise.
11001 [PYTHON] (tests): Add $(tgmath3-macro-tests) not test-tgmath3.
11002 [PYTHON] (generated): Add $(addsuffix .c,$(tgmath3-macro-tests))
11003 not test-tgmath3.c.
11004 [PYTHON] (CFLAGS-test-tgmath3.c): Remove.
11005 [PYTHON] ($(tgmath3-macro-tests:%=$(objpfx)%.o): Add -fno-builtin
11006 to CFLAGS.
11007 [PYTHON] ($(objpfx)test-tgmath3.c): Replace rule by....
11008 [PYTHON] ($(foreach
11009 m,$(tgmath3-macros),$(objpfx)test-tgmath3-$(m).c): ... this. New
11010 rule.
11011 [PYTHON] (tests-special): Add
11012 $(objpfx)test-tgmath3-macro-list.out.
11013 [PYTHON] ($(objpfx)test-tgmath3-macro-list.out): New rule.
11014
11015 * sysdeps/unix/sysv/linux/syscalls.list (nfsservctl): Make into a
11016 compat symbol, disabled for minimum symbol version GLIBC_2.28 and
11017 later.
11018
11019 [BZ #22639]
11020 * time/tzset.c (SECSPERDAY): Cast to time_t.
11021 * time/tst-y2039.c: New file.
11022 * time/Makefile (tests): Add tst-y2039.
11023
11024 2018-05-17 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
11025
11026 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
11027 (PREFETCH_ONE_SET): Remove duplicate line.
11028
11029 2018-05-17 Florian Weimer <fweimer@redhat.com>
11030
11031 * sysdeps/generic/math-type-macros-double.h: Include
11032 <math-nan-payload-double.h> after <libm-alias-double.h>.
11033 * sysdeps/generic/math-type-macros-float.h: Include
11034 <math-nan-payload-float.h> after <libm-alias-float.h>.
11035 * sysdeps/generic/math-type-macros-float128.h: Include
11036 <math-nan-payload-float128.h> after <libm-alias-float128.h>.
11037 * sysdeps/generic/math-type-macros-ldouble.h: Include
11038 <math-nan-payload-ldouble.h> after <libm-alias-ldouble.h>.
11039
11040 2018-05-17 Andreas Schwab <schwab@suse.de>
11041
11042 * resolv/res_send.c (__res_context_send): Don't set errno when
11043 returing error after malloc failure.
11044
11045 2018-05-17 H.J. Lu <hongjiu.lu@intel.com>
11046
11047 * nptl/allocatestack.c (allocate_stack): Remove the
11048 !__ASSUME_PRIVATE_FUTEX paths.
11049 * nptl/descr.h (header): Remove the !__ASSUME_PRIVATE_FUTEX path.
11050 * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
11051 Likewise.
11052 * sysdeps/i386/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Removed.
11053 * sysdeps/powerpc/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
11054 * sysdeps/sh/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
11055 * sysdeps/x86_64/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
11056 * sysdeps/i386/nptl/tls.h: (tcbhead_t): Remve the
11057 !__ASSUME_PRIVATE_FUTEX path.
11058 * sysdeps/s390/nptl/tls.h (tcbhead_t): Likewise.
11059 * sysdeps/sparc/nptl/tls.h (tcbhead_t): Likewise.
11060 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Likewise.
11061 * sysdeps/unix/sysv/linux/i386/lowlevellock.S: Remove the
11062 !__ASSUME_PRIVATE_FUTEX macros.
11063 * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Likewise.
11064 * sysdeps/unix/sysv/linux/x86_64/cancellation.S: Likewise.
11065 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
11066 * sysdeps/unix/sysv/linux/kernel-features.h
11067 (__ASSUME_PRIVATE_FUTEX): Removed.
11068
11069 2018-05-17 Joseph Myers <joseph@codesourcery.com>
11070
11071 * math/Makefile (libm-narrow-fns): Add div.
11072 (libm-test-funcs-narrow): Likewise.
11073 * math/Versions (GLIBC_2.28): Add narrowing divide functions.
11074 * math/bits/mathcalls-narrow.h (div): Use __MATHCALL_NARROW.
11075 * math/gen-auto-libm-tests.c (test_functions): Add div.
11076 * math/math-narrow.h (CHECK_NARROW_DIV): New macro.
11077 (NARROW_DIV_ROUND_TO_ODD): Likewise.
11078 (NARROW_DIV_TRIVIAL): Likewise.
11079 * sysdeps/ieee754/float128/float128_private.h (__fdivl): New
11080 macro.
11081 (__ddivl): Likewise.
11082 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fdiv and
11083 ddiv.
11084 (CFLAGS-nldbl-ddiv.c): New variable.
11085 (CFLAGS-nldbl-fdiv.c): Likewise.
11086 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
11087 __nldbl_ddivl.
11088 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_ddivl): New
11089 prototype.
11090 * manual/arith.texi (Misc FP Arithmetic): Document fdiv, fdivl,
11091 ddivl, fMdivfN, fMdivfNx, fMxdivfN and fMxdivfNx.
11092 * math/auto-libm-test-in: Add tests of div.
11093 * math/auto-libm-test-out-narrow-div: New generated file.
11094 * math/libm-test-narrow-div.inc: New file.
11095 * sysdeps/i386/fpu/s_f32xdivf64.c: Likewise.
11096 * sysdeps/ieee754/dbl-64/s_f32xdivf64.c: Likewise.
11097 * sysdeps/ieee754/dbl-64/s_fdiv.c: Likewise.
11098 * sysdeps/ieee754/float128/s_f32divf128.c: Likewise.
11099 * sysdeps/ieee754/float128/s_f64divf128.c: Likewise.
11100 * sysdeps/ieee754/float128/s_f64xdivf128.c: Likewise.
11101 * sysdeps/ieee754/ldbl-128/s_ddivl.c: Likewise.
11102 * sysdeps/ieee754/ldbl-128/s_f64xdivf128.c: Likewise.
11103 * sysdeps/ieee754/ldbl-128/s_fdivl.c: Likewise.
11104 * sysdeps/ieee754/ldbl-128ibm/s_ddivl.c: Likewise.
11105 * sysdeps/ieee754/ldbl-128ibm/s_fdivl.c: Likewise.
11106 * sysdeps/ieee754/ldbl-96/s_ddivl.c: Likewise.
11107 * sysdeps/ieee754/ldbl-96/s_fdivl.c: Likewise.
11108 * sysdeps/ieee754/ldbl-opt/nldbl-ddiv.c: Likewise.
11109 * sysdeps/ieee754/ldbl-opt/nldbl-fdiv.c: Likewise.
11110 * sysdeps/ieee754/soft-fp/s_ddivl.c: Likewise.
11111 * sysdeps/ieee754/soft-fp/s_fdiv.c: Likewise.
11112 * sysdeps/ieee754/soft-fp/s_fdivl.c: Likewise.
11113 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11114 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
11115 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
11116 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
11117 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
11118 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
11119 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
11120 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
11121 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
11122 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
11123 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
11124 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
11125 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
11126 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
11127 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
11128 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
11129 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
11130 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
11131 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
11132 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
11133 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
11134 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
11135 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
11136 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
11137 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
11138 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
11139
11140 2018-05-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11141
11142 [BZ #23178]
11143 * nscd/nscd-client.h (sendfileall): Remove prototype.
11144 * nscd/connections.c [HAVE_SENDFILE] (sendfileall): Remove function.
11145 (handle_request): Use writeall instead of sendfileall.
11146 * nscd/aicache.c (addhstaiX): Likewise.
11147 * nscd/grpcache.c (cache_addgr): Likewise.
11148 * nscd/hstcache.c (cache_addhst): Likewise.
11149 * nscd/initgrcache.c (addinitgroupsX): Likewise.
11150 * nscd/netgroupcache.c (addgetnetgrentX, addinnetgrX): Likewise.
11151 * nscd/pwdcache.c (cache_addpw): Likewise.
11152 * nscd/servicescache.c (cache_addserv): Likewise.
11153 * sysdeps/unix/sysv/linux/Makefile [$(subdir) == nscd]
11154 (sysdep-CFLAGS): Remove -DHAVE_SENDFILE.
11155 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_SENDFILE):
11156 Remove define.
11157
11158 2018-05-16 H.J. Lu <hongjiu.lu@intel.com>
11159
11160 * sysdeps/x86_64/multiarch/strncat-c.c (STRNCAT_PRIMARY): Removed.
11161 Include <string/strncat.c>.
11162 * sysdeps/x86_64/multiarch/strncat.c (__strncat): New strong
11163 alias.
11164 (__GI___strncat): New hidden alias.
11165
11166 2018-05-16 Joseph Myers <joseph@codesourcery.com>
11167
11168 * sysdeps/mips/mips32/libm-test-ulps: Update.
11169 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
11170
11171 2018-05-16 Florian Weimer <fweimer@redhat.com>
11172
11173 * support/Makefile (libsupport-routines): Add support_quote_blob,
11174 support_test_compare_blob.
11175 (tests): Add tst-support_quote_blob, tst-test_compare_blob.
11176 * support/check.h (TEST_COMPARE_BLOB): Define.
11177 (support_test_compare_blob): Declare.
11178 * support/support.h (support_quote_blob): Declare.
11179 * support/support_quote_blob.c: New file.
11180 * support/support_test_compare_blob.c: Likewise.
11181 * support/tst-support_quote_blob.c: Likewise.
11182 * support/tst-test_compare_blob.c: Likewise.
11183
11184 2018-05-16 Florian Weimer <fweimer@redhat.com>
11185
11186 * stdlib/strtod_nan.c: Include <math-type-macros-double.h> instead
11187 of <strtod_nan_double.h>.
11188 * stdlib/strtod_nan_main.c (STRTOD_NAN): Use SET_NAN_PAYLOAD
11189 instead of SET_MANTISSA.
11190 * stdlib/strtof_nan.c: Include <math-type-macros-float.h> instead
11191 of include <strtod_nan_float.h>.
11192 * stdlib/strtold_nan.c: Include <math-type-macros-ldouble.h>
11193 instead of <strtod_nan_ldouble.h>.
11194 * stdlib/strtod_nan_double.h: Move to ...
11195 * sysdeps/generic/math-nan-payload-double.h: ... here.
11196 (FLOAT): Remove definition.
11197 (SET_MANTISSA): Rename to ...
11198 (SET_NAN_PAYLOAD): ... this.
11199 * stdlib/strtod_nan_float.h: Move to ...
11200 * sysdeps/generic/math-nan-payload-float.h: ... here.
11201 (FLOAT): Remove definition.
11202 (SET_MANTISSA): Rename to ...
11203 (SET_NAN_PAYLOAD): ... this.
11204 * sysdeps/generic/math-type-macros-double.h: Include
11205 <math-nan-payload-double.h>. Include <math/math-svid-compat.h>
11206 instead of <math-svid-compat.h>.
11207 * sysdeps/generic/math-type-macros-float.h: Include
11208 <math-nan-payload-float.h>. Include <math/math-svid-compat.h>
11209 instead of <math-svid-compat.h>.
11210 * sysdeps/generic/math-type-macros-float128.h: Include
11211 <math-nan-payload-float128.h>.
11212 * sysdeps/generic/math-type-macros-ldouble.h: Include
11213 <math-nan-payload-ldouble.h>. Include <math/math-svid-compat.h>
11214 instead of <math-svid-compat.h>.
11215 * sysdeps/generic/math-type-macros.h: Document SET_NAN_PAYLOAD and
11216 check for definition.
11217 * sysdeps/ieee754/float128/strtod_nan_float128.h: Move to ...
11218 * sysdeps/ieee754/float128/math-nan-payload-float128.h: ... here.
11219 Include <ieee754_float128.h>.
11220 (FLOAT): Remove definition.
11221 (SET_MANTISSA): Rename to ...
11222 (SET_NAN_PAYLOAD): ... this.
11223 * sysdeps/ieee754/float128/strtof128_nan.c: Include
11224 <math-type-macros-float128.h> instead of <strtod_nan_float128.h>.
11225 Do not include <float128_private.h>.
11226 * sysdeps/ieee754/float128/wcstof128_nan.c: Likewise.
11227 * sysdeps/ieee754/ldbl-128/strtod_nan_ldouble.h: Move to ...
11228 * sysdeps/ieee754/ldbl-128/math-nan-payload-ldouble.h: ... here.
11229 (FLOAT): Remove definition.
11230 (SET_MANTISSA): Rename to ...
11231 (SET_NAN_PAYLOAD): ... this.
11232 * sysdeps/ieee754/ldbl-128ibm/strtod_nan_ldouble.h: Move to ...
11233 * sysdeps/ieee754/ldbl-128ibm/math-nan-payload-ldouble.h: ... here.
11234 (FLOAT): Remove definition.
11235 (SET_MANTISSA): Rename to ...
11236 (SET_NAN_PAYLOAD): ... this.
11237 * sysdeps/ieee754/ldbl-96/strtod_nan_ldouble.h: Move to ...
11238 * sysdeps/ieee754/ldbl-96/math-nan-payload-ldouble.h: ... here.
11239 (FLOAT): Remove definition.
11240 (SET_MANTISSA): Rename to ...
11241 (SET_NAN_PAYLOAD): ... this.
11242 * wcsmbs/wcstod_nan.c: Include <math-type-macros-double.h> instead
11243 of "../stdlib/strtod_nan_double.h".
11244 * wcsmbs/wcstof_nan.c: Include <math-type-macros-float.h> instead
11245 of "../stdlib/strtod_nan_float.h".
11246 * wcsmbs/wcstold_nan.c: Include <math-type-macros-ldouble.h>
11247 instead of "../stdlib/strtod_nan_ldouble.h".
11248 * manual/arith.texi (Parsing of Floats): Adjust comment.
11249
11250 2018-05-16 Joseph Myers <joseph@codesourcery.com>
11251
11252 * math/Makefile (libm-narrow-fns): Add mul.
11253 (libm-test-funcs-narrow): Likewise.
11254 * math/Versions (GLIBC_2.28): Add narrowing multiply functions.
11255 * math/bits/mathcalls-narrow.h (mul): Use __MATHCALL_NARROW.
11256 * math/gen-auto-libm-tests.c (test_functions): Add mul.
11257 * math/math-narrow.h (CHECK_NARROW_MUL): New macro.
11258 (NARROW_MUL_ROUND_TO_ODD): Likewise.
11259 (NARROW_MUL_TRIVIAL): Likewise.
11260 * soft-fp/op-common.h (FP_TRUNC_COOKED): Likewise.
11261 * sysdeps/ieee754/float128/float128_private.h (__fmull): New
11262 macro.
11263 (__dmull): Likewise.
11264 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fmul and
11265 dmul.
11266 (CFLAGS-nldbl-dmul.c): New variable.
11267 (CFLAGS-nldbl-fmul.c): Likewise.
11268 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
11269 __nldbl_dmull.
11270 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_dmull): New
11271 prototype.
11272 * manual/arith.texi (Misc FP Arithmetic): Document fmul, fmull,
11273 dmull, fMmulfN, fMmulfNx, fMxmulfN and fMxmulfNx.
11274 * math/auto-libm-test-in: Add tests of mul.
11275 * math/auto-libm-test-out-narrow-mul: New generated file.
11276 * math/libm-test-narrow-mul.inc: New file.
11277 * sysdeps/i386/fpu/s_f32xmulf64.c: Likewise.
11278 * sysdeps/ieee754/dbl-64/s_f32xmulf64.c: Likewise.
11279 * sysdeps/ieee754/dbl-64/s_fmul.c: Likewise.
11280 * sysdeps/ieee754/float128/s_f32mulf128.c: Likewise.
11281 * sysdeps/ieee754/float128/s_f64mulf128.c: Likewise.
11282 * sysdeps/ieee754/float128/s_f64xmulf128.c: Likewise.
11283 * sysdeps/ieee754/ldbl-128/s_dmull.c: Likewise.
11284 * sysdeps/ieee754/ldbl-128/s_f64xmulf128.c: Likewise.
11285 * sysdeps/ieee754/ldbl-128/s_fmull.c: Likewise.
11286 * sysdeps/ieee754/ldbl-128ibm/s_dmull.c: Likewise.
11287 * sysdeps/ieee754/ldbl-128ibm/s_fmull.c: Likewise.
11288 * sysdeps/ieee754/ldbl-96/s_dmull.c: Likewise.
11289 * sysdeps/ieee754/ldbl-96/s_fmull.c: Likewise.
11290 * sysdeps/ieee754/ldbl-opt/nldbl-dmul.c: Likewise.
11291 * sysdeps/ieee754/ldbl-opt/nldbl-fmul.c: Likewise.
11292 * sysdeps/ieee754/soft-fp/s_dmull.c: Likewise.
11293 * sysdeps/ieee754/soft-fp/s_fmul.c: Likewise.
11294 * sysdeps/ieee754/soft-fp/s_fmull.c: Likewise.
11295 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11296 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
11297 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
11298 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
11299 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
11300 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
11301 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
11302 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
11303 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
11304 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
11305 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
11306 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
11307 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
11308 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
11309 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
11310 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
11311 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
11312 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
11313 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
11314 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
11315 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
11316 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
11317 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
11318 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
11319 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
11320 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
11321
11322 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
11323
11324 * sysdeps/i386/crti.S (_init): Replace PREINIT_FUNCTION@PLT
11325 with *%eax in call.
11326
11327 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
11328
11329 * sysdeps/i386/ldsodefs.h: Removed.
11330 * sysdeps/x86_64/ldsodefs.h: Moved to ...
11331 * sysdeps/x86/ldsodefs.h: This.
11332 (La_i86_regs): New.
11333 (La_i86_retval): Likewise.
11334 (ARCH_PLTENTER_MEMBERS): Add i86_gnu_pltenter.
11335 (ARCH_PLTEXIT_MEMBERS): i86_gnu_pltexit.
11336
11337 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
11338
11339 * sysdeps/x86_64/multiarch/strlen-avx2.S (STRLEN): Remove the
11340 unnecessary testl.
11341
11342 2018-05-13 Alan Modra <amodra@gmail.com>
11343
11344 * sysdeps/hppa/dl-machine.h (elf_machine_rela): Add
11345 R_PARISC_TLS_DTPOFF32 reloc addend.
11346
11347 2018-05-11 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
11348
11349 * bits/floatn-common.h: Define __HAVE_FLOAT128_UNLIKE_LDBL.
11350 * math/math.h: Restrict the prototype definition for the functions
11351 issignaling(_Float128) and iszero(_Float128); and template
11352 __iseqsig_type<_Float128>, from __HAVE_DISTINCT_FLOAT128 to
11353 __HAVE_FLOAT128_UNLIKE_LDBL.
11354 * sysdeps/powerpc/bits/floatn.h [__HAVE_FLOAT128
11355 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
11356 && __LDBL_MANT_DIG__ == 113]: Use long double suffix for
11357 __f128() constants; define the type _Float128 as long double;
11358 and reuse long double in __CFLOAT128.
11359
11360 2018-05-11 Joseph Myers <joseph@codesourcery.com>
11361
11362 * sysdeps/generic/math_private.h: Do not include
11363 <math-barriers.h>.
11364 * stdlib/strtod_l.c: Include <math-barriers.h> instead of
11365 <math_private.h>.
11366 * math/fromfp.h: Include <math-barriers.h>.
11367 * math/math-narrow.h: Likewise.
11368 * math/s_nextafter.c: Likewise.
11369 * math/s_nexttowardf.c: Likewise.
11370 * sysdeps/aarch64/fpu/s_llrint.c: Likewise.
11371 * sysdeps/aarch64/fpu/s_llrintf.c: Likewise.
11372 * sysdeps/aarch64/fpu/s_lrint.c: Likewise.
11373 * sysdeps/aarch64/fpu/s_lrintf.c: Likewise.
11374 * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
11375 * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
11376 * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
11377 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
11378 * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
11379 * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
11380 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
11381 * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
11382 * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
11383 * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
11384 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
11385 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
11386 * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
11387 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
11388 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
11389 * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
11390 * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
11391 * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
11392 * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
11393 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
11394 * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
11395 * sysdeps/ieee754/k_standardl.c: Likewise.
11396 * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
11397 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
11398 * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
11399 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
11400 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
11401 * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
11402 * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
11403 * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
11404 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
11405 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
11406 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
11407 * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
11408 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
11409 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
11410 * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
11411 * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
11412 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
11413 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
11414 * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
11415 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
11416 * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Likewise.
11417 * sysdeps/m68k/m680x0/fpu/s_nextafterl.c: Likewise.
11418
11419 2018-05-11 Florian Weimer <fweimer@redhat.com>
11420
11421 Use 64-bit epoch values in the time zone file parser.
11422 * include/time.h (internal_time_t): Define.
11423 (__tzfile_compute): Use it.
11424 * time/tzfile.c (struct leap): Use internal_time_t for epoch
11425 member.
11426 (transitions): Switch to internal_time_t.
11427 (__tzfile_read): Likewise. Remove code dealing with 4-byte time_t
11428 types.
11429 (__tzfile_compute): Use internal_time_t for timer argument. Check
11430 for truncation before calling __offtime.
11431
11432 2018-05-11 Florian Weimer <fweimer@redhat.com>
11433
11434 [BZ #23166]
11435 * include/rpc/clnt.h (rpc_createerr): Declare hidden alias.
11436 * include/rpc/svc.h (svc_pollfd, svc_max_pollfd, svc_fdset):
11437 Likewise.
11438 * sunrpc/rpc_common.c (svc_fdset, rpc_createerr, svc_pollfd)
11439 (svc_max_pollfd): Add nocommon attribute and hidden alias. Do not
11440 export without --enable-obsolete-rpc.
11441 * sunrpc/svcauth_des.c (svcauthdes_stats): Turn into compatibility
11442 symbol. This should not have been exported, ever.
11443
11444 2018-05-11 Rafal Luzynski <digitalfreak@lingonborough.com>
11445
11446 [BZ #23152]
11447 * localedata/locales/gd_GB (abmon): Fix typo in May:
11448 "Mhàrt" -> "Cèit". Adjust the comment according to the change.
11449
11450 2018-05-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
11451
11452 * sysdeps/aarch64/multiarch/memcpy_falkor.S (__memcpy_falkor):
11453 Use multiple registers to copy data in loop tail.
11454
11455 * sysdeps/aarch64/multiarch/memmove_falkor.S
11456 (__memmove_falkor): Use multiple registers to move data in
11457 loop tail.
11458
11459 2018-05-10 Joseph Myers <joseph@codesourcery.com>
11460
11461 * math/math-underflow.h: New file.
11462 * sysdeps/generic/math_private.h: Do not include <float.h>.
11463 (fabs_tg): Remove macro. Moved to math-underflow.h.
11464 (min_of_type_f): Likewise.
11465 (min_of_type_): Likewise.
11466 (min_of_type_l): Likewise.
11467 (min_of_type_f128): Likewise.
11468 (min_of_type): Likewise.
11469 (math_check_force_underflow): Likewise.
11470 (math_check_force_underflow_nonneg): Likewise.
11471 (math_check_force_underflow_complex): Likewise.
11472 * math/e_exp2_template.c: Include <math-underflow.h>.
11473 * math/k_casinh_template.c: Likewise.
11474 * math/s_catan_template.c: Likewise.
11475 * math/s_catanh_template.c: Likewise.
11476 * math/s_ccosh_template.c: Likewise.
11477 * math/s_cexp_template.c: Likewise.
11478 * math/s_clog10_template.c: Likewise.
11479 * math/s_clog_template.c: Likewise.
11480 * math/s_csin_template.c: Likewise.
11481 * math/s_csinh_template.c: Likewise.
11482 * math/s_csqrt_template.c: Likewise.
11483 * math/s_ctan_template.c: Likewise.
11484 * math/s_ctanh_template.c: Likewise.
11485 * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
11486 * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
11487 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
11488 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
11489 * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
11490 * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
11491 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
11492 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
11493 * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
11494 * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
11495 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
11496 * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
11497 * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
11498 * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
11499 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
11500 * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
11501 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
11502 * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
11503 * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
11504 * sysdeps/ieee754/flt-32/e_atanhf.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_sinhf.c: Likewise.
11509 * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
11510 * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
11511 * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
11512 * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
11513 * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
11514 * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
11515 * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
11516 * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
11517 * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
11518 * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
11519 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
11520 * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
11521 * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
11522 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
11523 * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
11524 * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
11525 * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
11526 * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
11527 * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
11528 * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
11529 * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
11530 * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
11531 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
11532 * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
11533 * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
11534 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
11535 * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
11536 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
11537 * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
11538 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
11539 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
11540 * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
11541 * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
11542 * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
11543 * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
11544 * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
11545 * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
11546 * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
11547 * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
11548 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
11549 * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
11550 * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
11551 * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
11552 * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
11553 * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
11554 * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
11555 * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
11556 * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
11557 * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
11558 * sysdeps/ieee754/ldbl-96/k_tanl.c: Likewise.
11559 * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
11560 * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
11561 * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
11562 * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
11563 * sysdeps/x86/fpu/powl_helper.c: Likewise.
11564 * sysdeps/ieee754/dbl-64/s_nextup.c: Include <float.h>.
11565 * sysdeps/ieee754/flt-32/s_nextupf.c: Likewise.
11566 * sysdeps/ieee754/ldbl-128/s_nextupl.c: Likewise.
11567 * sysdeps/ieee754/ldbl-128ibm/s_nextupl.c: Likewise.
11568 * sysdeps/ieee754/ldbl-96/s_nextupl.c: Likewise.
11569
11570 2018-05-09 Joseph Myers <joseph@codesourcery.com>
11571
11572 * sysdeps/generic/math-barriers.h: New file.
11573 * sysdeps/generic/math_private.h [!math_opt_barrier]
11574 (math_opt_barrier): Move to math-barriers.h.
11575 [!math_opt_barrier] (math_force_eval): Likewise.
11576 * sysdeps/aarch64/fpu/math-barriers.h: New file.
11577 * sysdeps/aarch64/fpu/math_private.h (math_opt_barrier): Move to
11578 math-barriers.h.
11579 (math_force_eval): Likewise.
11580 * sysdeps/alpha/fpu/math-barriers.h: New file.
11581 * sysdeps/alpha/fpu/math_private.h (math_opt_barrier): Move to
11582 math-barriers.h.
11583 (math_force_eval): Likewise.
11584 * sysdeps/x86/fpu/math-barriers.h: New file.
11585 * sysdeps/i386/fpu/fenv_private.h (math_opt_barrier): Move to
11586 math-barriers.h.
11587 (math_force_eval): Likewise.
11588 * sysdeps/m68k/m680x0/fpu/math_private.h: Move to....
11589 * sysdeps/m68k/m680x0/fpu/math-barriers.h: ... here. Adjust
11590 multiple-include guard for rename.
11591 * sysdeps/powerpc/fpu/math-barriers.h: New file.
11592 * sysdeps/powerpc/fpu/math_private.h (math_opt_barrier): Move to
11593 math-barriers.h.
11594 (math_force_eval): Likewise.
11595
11596 2018-05-09 Paul Pluzhnikov <ppluzhnikov@google.com>
11597
11598 [BZ #22786]
11599 CVE-2018-11236
11600 * stdlib/canonicalize.c (__realpath): Fix overflow in path length
11601 computation.
11602 * stdlib/Makefile (test-bz22786): New test.
11603 * stdlib/test-bz22786.c: New test.
11604
11605 2018-05-09 Joseph Myers <joseph@codesourcery.com>
11606
11607 * include/math-narrow-eval.h: New file. Contents moved from ....
11608 * sysdeps/generic/math_private.h: ... here.
11609 (math_narrow_eval): Remove macro. Moved to math-narrow-eval.h.
11610 [FLT_EVAL_METHOD != 0] (excess_precision): Likewise.
11611 * math/s_fdim_template.c: Include <math-narrow-eval.h>.
11612 * stdlib/strtod_l.c: Likewise.
11613 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
11614 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
11615 * sysdeps/i386/fpu/s_fdim.c: Likewise.
11616 * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
11617 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
11618 * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
11619 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
11620 * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
11621 * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
11622 * sysdeps/ieee754/dbl-64/gamma_productf.c: Likewise.
11623 * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
11624 * sysdeps/ieee754/dbl-64/lgamma_neg.c: Likewise.
11625 * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
11626 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
11627 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
11628 * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
11629 * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
11630 * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
11631 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
11632 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
11633 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
11634 * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
11635 * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
11636 * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
11637 * sysdeps/ieee754/flt-32/lgamma_negf.c: Likewise.
11638 * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
11639 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
11640 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
11641 * sysdeps/ieee754/ldbl-96/gamma_product.c: Likewise.
11642
11643 2018-05-08 Andreas Schwab <schwab@suse.de>
11644
11645 * sysdeps/nptl/internaltypes.h: Fix comment.
11646
11647 2018-05-07 H.J. Lu <hongjiu.lu@intel.com>
11648
11649 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
11650 (MEMSET_SYMBOL (__memset, erms)): Mark the debugger symbol as
11651 hidden.
11652
11653 2018-05-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
11654
11655 * benchtests/bench-memcpy-walk.c (test_main): Move declaration
11656 of I into loop header.
11657 * benchtests/bench-memmove-walk.c
11658 (test_main): Likewise.
11659
11660 2018-05-07 Alexandre Oliva <oliva@gnu.org>
11661
11662 Revert:
11663 2018-04-30 Raymond Nicholson <rain1@airmail.cc>
11664 * manual/startup.texi (Aborting a Program): Remove inappropriate joke.
11665
11666 2018-05-05 Paul Pluzhnikov <ppluzhnikov@google.com>
11667
11668 [BZ #20419]
11669 * elf/dl-load.c (open_verify): Fix stack overflow.
11670 * elf/Makefile (tst-big-note): New test.
11671 * elf/tst-big-note-lib.S: New.
11672 * elf/tst-big-note.c: New.
11673
11674 2018-05-04 Joseph Myers <joseph@codesourcery.com>
11675
11676 * scripts/abilist.awk: Ignore absolute symbols.
11677 * sysdeps/mach/hurd/i386/ld.abilist: Remove absolute symbols.
11678 * sysdeps/mach/hurd/i386/libBrokenLocale.abilist: Likewise.
11679 * sysdeps/mach/hurd/i386/libanl.abilist: Likewise.
11680 * sysdeps/mach/hurd/i386/libc.abilist: Likewise.
11681 * sysdeps/mach/hurd/i386/libcrypt.abilist: Likewise.
11682 * sysdeps/mach/hurd/i386/libdl.abilist: Likewise.
11683 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
11684 * sysdeps/mach/hurd/i386/libnsl.abilist: Likewise.
11685 * sysdeps/mach/hurd/i386/libpthread.abilist: Likewise.
11686 * sysdeps/mach/hurd/i386/libresolv.abilist: Likewise.
11687 * sysdeps/mach/hurd/i386/librt.abilist: Likewise.
11688 * sysdeps/mach/hurd/i386/libutil.abilist: Likewise.
11689 * sysdeps/unix/sysv/linux/aarch64/ld.abilist: Likewise.
11690 * sysdeps/unix/sysv/linux/aarch64/libBrokenLocale.abilist: Likewise.
11691 * sysdeps/unix/sysv/linux/aarch64/libanl.abilist: Likewise.
11692 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Likewise.
11693 * sysdeps/unix/sysv/linux/aarch64/libcrypt.abilist: Likewise.
11694 * sysdeps/unix/sysv/linux/aarch64/libdl.abilist: Likewise.
11695 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
11696 * sysdeps/unix/sysv/linux/aarch64/libnsl.abilist: Likewise.
11697 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist: Likewise.
11698 * sysdeps/unix/sysv/linux/aarch64/libresolv.abilist: Likewise.
11699 * sysdeps/unix/sysv/linux/aarch64/librt.abilist: Likewise.
11700 * sysdeps/unix/sysv/linux/aarch64/libthread_db.abilist: Likewise.
11701 * sysdeps/unix/sysv/linux/aarch64/libutil.abilist: Likewise.
11702 * sysdeps/unix/sysv/linux/alpha/ld.abilist: Likewise.
11703 * sysdeps/unix/sysv/linux/alpha/libBrokenLocale.abilist: Likewise.
11704 * sysdeps/unix/sysv/linux/alpha/libanl.abilist: Likewise.
11705 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
11706 * sysdeps/unix/sysv/linux/alpha/libcrypt.abilist: Likewise.
11707 * sysdeps/unix/sysv/linux/alpha/libdl.abilist: Likewise.
11708 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
11709 * sysdeps/unix/sysv/linux/alpha/libnsl.abilist: Likewise.
11710 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: Likewise.
11711 * sysdeps/unix/sysv/linux/alpha/libresolv.abilist: Likewise.
11712 * sysdeps/unix/sysv/linux/alpha/librt.abilist: Likewise.
11713 * sysdeps/unix/sysv/linux/alpha/libthread_db.abilist: Likewise.
11714 * sysdeps/unix/sysv/linux/alpha/libutil.abilist: Likewise.
11715 * sysdeps/unix/sysv/linux/arm/ld.abilist: Likewise.
11716 * sysdeps/unix/sysv/linux/arm/libBrokenLocale.abilist: Likewise.
11717 * sysdeps/unix/sysv/linux/arm/libanl.abilist: Likewise.
11718 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
11719 * sysdeps/unix/sysv/linux/arm/libcrypt.abilist: Likewise.
11720 * sysdeps/unix/sysv/linux/arm/libdl.abilist: Likewise.
11721 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
11722 * sysdeps/unix/sysv/linux/arm/libnsl.abilist: Likewise.
11723 * sysdeps/unix/sysv/linux/arm/libpthread.abilist: Likewise.
11724 * sysdeps/unix/sysv/linux/arm/libresolv.abilist: Likewise.
11725 * sysdeps/unix/sysv/linux/arm/librt.abilist: Likewise.
11726 * sysdeps/unix/sysv/linux/arm/libthread_db.abilist: Likewise.
11727 * sysdeps/unix/sysv/linux/arm/libutil.abilist: Likewise.
11728 * sysdeps/unix/sysv/linux/hppa/ld.abilist: Likewise.
11729 * sysdeps/unix/sysv/linux/hppa/libBrokenLocale.abilist: Likewise.
11730 * sysdeps/unix/sysv/linux/hppa/libanl.abilist: Likewise.
11731 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
11732 * sysdeps/unix/sysv/linux/hppa/libcrypt.abilist: Likewise.
11733 * sysdeps/unix/sysv/linux/hppa/libdl.abilist: Likewise.
11734 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
11735 * sysdeps/unix/sysv/linux/hppa/libnsl.abilist: Likewise.
11736 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist: Likewise.
11737 * sysdeps/unix/sysv/linux/hppa/libresolv.abilist: Likewise.
11738 * sysdeps/unix/sysv/linux/hppa/librt.abilist: Likewise.
11739 * sysdeps/unix/sysv/linux/hppa/libthread_db.abilist: Likewise.
11740 * sysdeps/unix/sysv/linux/hppa/libutil.abilist: Likewise.
11741 * sysdeps/unix/sysv/linux/i386/ld.abilist: Likewise.
11742 * sysdeps/unix/sysv/linux/i386/libBrokenLocale.abilist: Likewise.
11743 * sysdeps/unix/sysv/linux/i386/libanl.abilist: Likewise.
11744 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
11745 * sysdeps/unix/sysv/linux/i386/libcrypt.abilist: Likewise.
11746 * sysdeps/unix/sysv/linux/i386/libdl.abilist: Likewise.
11747 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
11748 * sysdeps/unix/sysv/linux/i386/libnsl.abilist: Likewise.
11749 * sysdeps/unix/sysv/linux/i386/libpthread.abilist: Likewise.
11750 * sysdeps/unix/sysv/linux/i386/libresolv.abilist: Likewise.
11751 * sysdeps/unix/sysv/linux/i386/librt.abilist: Likewise.
11752 * sysdeps/unix/sysv/linux/i386/libthread_db.abilist: Likewise.
11753 * sysdeps/unix/sysv/linux/i386/libutil.abilist: Likewise.
11754 * sysdeps/unix/sysv/linux/ia64/ld.abilist: Likewise.
11755 * sysdeps/unix/sysv/linux/ia64/libBrokenLocale.abilist: Likewise.
11756 * sysdeps/unix/sysv/linux/ia64/libanl.abilist: Likewise.
11757 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
11758 * sysdeps/unix/sysv/linux/ia64/libcrypt.abilist: Likewise.
11759 * sysdeps/unix/sysv/linux/ia64/libdl.abilist: Likewise.
11760 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
11761 * sysdeps/unix/sysv/linux/ia64/libnsl.abilist: Likewise.
11762 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist: Likewise.
11763 * sysdeps/unix/sysv/linux/ia64/libresolv.abilist: Likewise.
11764 * sysdeps/unix/sysv/linux/ia64/librt.abilist: Likewise.
11765 * sysdeps/unix/sysv/linux/ia64/libthread_db.abilist: Likewise.
11766 * sysdeps/unix/sysv/linux/ia64/libutil.abilist: Likewise.
11767 * sysdeps/unix/sysv/linux/m68k/coldfire/ld.abilist: Likewise.
11768 * sysdeps/unix/sysv/linux/m68k/coldfire/libBrokenLocale.abilist:
11769 Likewise.
11770 * sysdeps/unix/sysv/linux/m68k/coldfire/libanl.abilist: Likewise.
11771 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
11772 * sysdeps/unix/sysv/linux/m68k/coldfire/libcrypt.abilist: Likewise.
11773 * sysdeps/unix/sysv/linux/m68k/coldfire/libdl.abilist: Likewise.
11774 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
11775 * sysdeps/unix/sysv/linux/m68k/coldfire/libnsl.abilist: Likewise.
11776 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist: Likewise.
11777 * sysdeps/unix/sysv/linux/m68k/coldfire/libresolv.abilist: Likewise.
11778 * sysdeps/unix/sysv/linux/m68k/coldfire/librt.abilist: Likewise.
11779 * sysdeps/unix/sysv/linux/m68k/coldfire/libthread_db.abilist: Likewise.
11780 * sysdeps/unix/sysv/linux/m68k/coldfire/libutil.abilist: Likewise.
11781 * sysdeps/unix/sysv/linux/m68k/m680x0/ld.abilist: Likewise.
11782 * sysdeps/unix/sysv/linux/m68k/m680x0/libBrokenLocale.abilist:
11783 Likewise.
11784 * sysdeps/unix/sysv/linux/m68k/m680x0/libanl.abilist: Likewise.
11785 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
11786 * sysdeps/unix/sysv/linux/m68k/m680x0/libcrypt.abilist: Likewise.
11787 * sysdeps/unix/sysv/linux/m68k/m680x0/libdl.abilist: Likewise.
11788 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
11789 * sysdeps/unix/sysv/linux/m68k/m680x0/libnsl.abilist: Likewise.
11790 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist: Likewise.
11791 * sysdeps/unix/sysv/linux/m68k/m680x0/libresolv.abilist: Likewise.
11792 * sysdeps/unix/sysv/linux/m68k/m680x0/librt.abilist: Likewise.
11793 * sysdeps/unix/sysv/linux/m68k/m680x0/libthread_db.abilist: Likewise.
11794 * sysdeps/unix/sysv/linux/m68k/m680x0/libutil.abilist: Likewise.
11795 * sysdeps/unix/sysv/linux/microblaze/ld.abilist: Likewise.
11796 * sysdeps/unix/sysv/linux/microblaze/libBrokenLocale.abilist: Likewise.
11797 * sysdeps/unix/sysv/linux/microblaze/libanl.abilist: Likewise.
11798 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
11799 * sysdeps/unix/sysv/linux/microblaze/libcrypt.abilist: Likewise.
11800 * sysdeps/unix/sysv/linux/microblaze/libdl.abilist: Likewise.
11801 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
11802 * sysdeps/unix/sysv/linux/microblaze/libnsl.abilist: Likewise.
11803 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist: Likewise.
11804 * sysdeps/unix/sysv/linux/microblaze/libresolv.abilist: Likewise.
11805 * sysdeps/unix/sysv/linux/microblaze/librt.abilist: Likewise.
11806 * sysdeps/unix/sysv/linux/microblaze/libthread_db.abilist: Likewise.
11807 * sysdeps/unix/sysv/linux/microblaze/libutil.abilist: Likewise.
11808 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
11809 * sysdeps/unix/sysv/linux/mips/mips32/ld.abilist: Likewise.
11810 * sysdeps/unix/sysv/linux/mips/mips32/libBrokenLocale.abilist:
11811 Likewise.
11812 * sysdeps/unix/sysv/linux/mips/mips32/libanl.abilist: Likewise.
11813 * sysdeps/unix/sysv/linux/mips/mips32/libcidn.abilist: Likewise.
11814 * sysdeps/unix/sysv/linux/mips/mips32/libcrypt.abilist: Likewise.
11815 * sysdeps/unix/sysv/linux/mips/mips32/libdl.abilist: Likewise.
11816 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
11817 * sysdeps/unix/sysv/linux/mips/mips32/libnsl.abilist: Likewise.
11818 * sysdeps/unix/sysv/linux/mips/mips32/libnss_compat.abilist: Likewise.
11819 * sysdeps/unix/sysv/linux/mips/mips32/libnss_db.abilist: Likewise.
11820 * sysdeps/unix/sysv/linux/mips/mips32/libnss_dns.abilist: Likewise.
11821 * sysdeps/unix/sysv/linux/mips/mips32/libnss_files.abilist: Likewise.
11822 * sysdeps/unix/sysv/linux/mips/mips32/libnss_hesiod.abilist: Likewise.
11823 * sysdeps/unix/sysv/linux/mips/mips32/libnss_nis.abilist: Likewise.
11824 * sysdeps/unix/sysv/linux/mips/mips32/libnss_nisplus.abilist: Likewise.
11825 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist: Likewise.
11826 * sysdeps/unix/sysv/linux/mips/mips32/libresolv.abilist: Likewise.
11827 * sysdeps/unix/sysv/linux/mips/mips32/librt.abilist: Likewise.
11828 * sysdeps/unix/sysv/linux/mips/mips32/libthread_db.abilist: Likewise.
11829 * sysdeps/unix/sysv/linux/mips/mips32/libutil.abilist: Likewise.
11830 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
11831 * sysdeps/unix/sysv/linux/mips/mips64/libBrokenLocale.abilist:
11832 Likewise.
11833 * sysdeps/unix/sysv/linux/mips/mips64/libanl.abilist: Likewise.
11834 * sysdeps/unix/sysv/linux/mips/mips64/libcrypt.abilist: Likewise.
11835 * sysdeps/unix/sysv/linux/mips/mips64/libdl.abilist: Likewise.
11836 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
11837 * sysdeps/unix/sysv/linux/mips/mips64/libnsl.abilist: Likewise.
11838 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist: Likewise.
11839 * sysdeps/unix/sysv/linux/mips/mips64/librt.abilist: Likewise.
11840 * sysdeps/unix/sysv/linux/mips/mips64/libthread_db.abilist: Likewise.
11841 * sysdeps/unix/sysv/linux/mips/mips64/libutil.abilist: Likewise.
11842 * sysdeps/unix/sysv/linux/mips/mips64/n32/ld.abilist: Likewise.
11843 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
11844 * sysdeps/unix/sysv/linux/mips/mips64/n32/libresolv.abilist: Likewise.
11845 * sysdeps/unix/sysv/linux/mips/mips64/n64/ld.abilist: Likewise.
11846 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
11847 * sysdeps/unix/sysv/linux/mips/mips64/n64/libresolv.abilist: Likewise.
11848 * sysdeps/unix/sysv/linux/nios2/ld.abilist: Likewise.
11849 * sysdeps/unix/sysv/linux/nios2/libBrokenLocale.abilist: Likewise.
11850 * sysdeps/unix/sysv/linux/nios2/libanl.abilist: Likewise.
11851 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
11852 * sysdeps/unix/sysv/linux/nios2/libcrypt.abilist: Likewise.
11853 * sysdeps/unix/sysv/linux/nios2/libdl.abilist: Likewise.
11854 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
11855 * sysdeps/unix/sysv/linux/nios2/libnsl.abilist: Likewise.
11856 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist: Likewise.
11857 * sysdeps/unix/sysv/linux/nios2/libresolv.abilist: Likewise.
11858 * sysdeps/unix/sysv/linux/nios2/librt.abilist: Likewise.
11859 * sysdeps/unix/sysv/linux/nios2/libthread_db.abilist: Likewise.
11860 * sysdeps/unix/sysv/linux/nios2/libutil.abilist: Likewise.
11861 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist: Likewise.
11862 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
11863 * sysdeps/unix/sysv/linux/powerpc/powerpc32/ld.abilist: Likewise.
11864 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libBrokenLocale.abilist:
11865 Likewise.
11866 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libanl.abilist: Likewise.
11867 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libcrypt.abilist: Likewise.
11868 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libdl.abilist: Likewise.
11869 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libnsl.abilist: Likewise.
11870 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist:
11871 Likewise.
11872 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libresolv.abilist:
11873 Likewise.
11874 * sysdeps/unix/sysv/linux/powerpc/powerpc32/librt.abilist: Likewise.
11875 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libthread_db.abilist:
11876 Likewise.
11877 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libutil.abilist: Likewise.
11878 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
11879 Likewise.
11880 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
11881 Likewise.
11882 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld-le.abilist: Likewise.
11883 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld.abilist: Likewise.
11884 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale-le.abilist:
11885 Likewise.
11886 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale.abilist:
11887 Likewise.
11888 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl-le.abilist:
11889 Likewise.
11890 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl.abilist: Likewise.
11891 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
11892 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
11893 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt-le.abilist:
11894 Likewise.
11895 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt.abilist: Likewise.
11896 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl-le.abilist: Likewise.
11897 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl.abilist: Likewise.
11898 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
11899 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
11900 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl-le.abilist:
11901 Likewise.
11902 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl.abilist: Likewise.
11903 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread-le.abilist:
11904 Likewise.
11905 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread.abilist:
11906 Likewise.
11907 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv-le.abilist:
11908 Likewise.
11909 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv.abilist:
11910 Likewise.
11911 * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt-le.abilist: Likewise.
11912 * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt.abilist: Likewise.
11913 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db-le.abilist:
11914 Likewise.
11915 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db.abilist:
11916 Likewise.
11917 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil-le.abilist:
11918 Likewise.
11919 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil.abilist: Likewise.
11920 * sysdeps/unix/sysv/linux/riscv/rv64/ld.abilist: Likewise.
11921 * sysdeps/unix/sysv/linux/riscv/rv64/libBrokenLocale.abilist:
11922 Likewise.
11923 * sysdeps/unix/sysv/linux/riscv/rv64/libanl.abilist: Likewise.
11924 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
11925 * sysdeps/unix/sysv/linux/riscv/rv64/libcrypt.abilist: Likewise.
11926 * sysdeps/unix/sysv/linux/riscv/rv64/libdl.abilist: Likewise.
11927 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
11928 * sysdeps/unix/sysv/linux/riscv/rv64/libnsl.abilist: Likewise.
11929 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist: Likewise.
11930 * sysdeps/unix/sysv/linux/riscv/rv64/libresolv.abilist: Likewise.
11931 * sysdeps/unix/sysv/linux/riscv/rv64/librt.abilist: Likewise.
11932 * sysdeps/unix/sysv/linux/riscv/rv64/libthread_db.abilist: Likewise.
11933 * sysdeps/unix/sysv/linux/riscv/rv64/libutil.abilist: Likewise.
11934 * sysdeps/unix/sysv/linux/s390/libanl.abilist: Likewise.
11935 * sysdeps/unix/sysv/linux/s390/s390-32/ld.abilist: Likewise.
11936 * sysdeps/unix/sysv/linux/s390/s390-32/libBrokenLocale.abilist:
11937 Likewise.
11938 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
11939 * sysdeps/unix/sysv/linux/s390/s390-32/libcrypt.abilist: Likewise.
11940 * sysdeps/unix/sysv/linux/s390/s390-32/libdl.abilist: Likewise.
11941 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
11942 * sysdeps/unix/sysv/linux/s390/s390-32/libnsl.abilist: Likewise.
11943 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist: Likewise.
11944 * sysdeps/unix/sysv/linux/s390/s390-32/libresolv.abilist: Likewise.
11945 * sysdeps/unix/sysv/linux/s390/s390-32/librt.abilist: Likewise.
11946 * sysdeps/unix/sysv/linux/s390/s390-32/libthread_db.abilist: Likewise.
11947 * sysdeps/unix/sysv/linux/s390/s390-32/libutil.abilist: Likewise.
11948 * sysdeps/unix/sysv/linux/s390/s390-64/ld.abilist: Likewise.
11949 * sysdeps/unix/sysv/linux/s390/s390-64/libBrokenLocale.abilist:
11950 Likewise.
11951 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
11952 * sysdeps/unix/sysv/linux/s390/s390-64/libcrypt.abilist: Likewise.
11953 * sysdeps/unix/sysv/linux/s390/s390-64/libdl.abilist: Likewise.
11954 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
11955 * sysdeps/unix/sysv/linux/s390/s390-64/libnsl.abilist: Likewise.
11956 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist: Likewise.
11957 * sysdeps/unix/sysv/linux/s390/s390-64/libresolv.abilist: Likewise.
11958 * sysdeps/unix/sysv/linux/s390/s390-64/librt.abilist: Likewise.
11959 * sysdeps/unix/sysv/linux/s390/s390-64/libthread_db.abilist: Likewise.
11960 * sysdeps/unix/sysv/linux/s390/s390-64/libutil.abilist: Likewise.
11961 * sysdeps/unix/sysv/linux/sh/ld.abilist: Likewise.
11962 * sysdeps/unix/sysv/linux/sh/libBrokenLocale.abilist: Likewise.
11963 * sysdeps/unix/sysv/linux/sh/libanl.abilist: Likewise.
11964 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
11965 * sysdeps/unix/sysv/linux/sh/libcrypt.abilist: Likewise.
11966 * sysdeps/unix/sysv/linux/sh/libdl.abilist: Likewise.
11967 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
11968 * sysdeps/unix/sysv/linux/sh/libnsl.abilist: Likewise.
11969 * sysdeps/unix/sysv/linux/sh/libpthread.abilist: Likewise.
11970 * sysdeps/unix/sysv/linux/sh/libresolv.abilist: Likewise.
11971 * sysdeps/unix/sysv/linux/sh/librt.abilist: Likewise.
11972 * sysdeps/unix/sysv/linux/sh/libthread_db.abilist: Likewise.
11973 * sysdeps/unix/sysv/linux/sh/libutil.abilist: Likewise.
11974 * sysdeps/unix/sysv/linux/sparc/sparc32/ld.abilist: Likewise.
11975 * sysdeps/unix/sysv/linux/sparc/sparc32/libBrokenLocale.abilist:
11976 Likewise.
11977 * sysdeps/unix/sysv/linux/sparc/sparc32/libanl.abilist: Likewise.
11978 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
11979 * sysdeps/unix/sysv/linux/sparc/sparc32/libcrypt.abilist: Likewise.
11980 * sysdeps/unix/sysv/linux/sparc/sparc32/libdl.abilist: Likewise.
11981 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
11982 * sysdeps/unix/sysv/linux/sparc/sparc32/libnsl.abilist: Likewise.
11983 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist: Likewise.
11984 * sysdeps/unix/sysv/linux/sparc/sparc32/libresolv.abilist: Likewise.
11985 * sysdeps/unix/sysv/linux/sparc/sparc32/librt.abilist: Likewise.
11986 * sysdeps/unix/sysv/linux/sparc/sparc32/libthread_db.abilist: Likewise.
11987 * sysdeps/unix/sysv/linux/sparc/sparc32/libutil.abilist: Likewise.
11988 * sysdeps/unix/sysv/linux/sparc/sparc64/ld.abilist: Likewise.
11989 * sysdeps/unix/sysv/linux/sparc/sparc64/libBrokenLocale.abilist:
11990 Likewise.
11991 * sysdeps/unix/sysv/linux/sparc/sparc64/libanl.abilist: Likewise.
11992 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
11993 * sysdeps/unix/sysv/linux/sparc/sparc64/libcrypt.abilist: Likewise.
11994 * sysdeps/unix/sysv/linux/sparc/sparc64/libdl.abilist: Likewise.
11995 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
11996 * sysdeps/unix/sysv/linux/sparc/sparc64/libnsl.abilist: Likewise.
11997 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist: Likewise.
11998 * sysdeps/unix/sysv/linux/sparc/sparc64/libresolv.abilist: Likewise.
11999 * sysdeps/unix/sysv/linux/sparc/sparc64/librt.abilist: Likewise.
12000 * sysdeps/unix/sysv/linux/sparc/sparc64/libthread_db.abilist: Likewise.
12001 * sysdeps/unix/sysv/linux/sparc/sparc64/libutil.abilist: Likewise.
12002 * sysdeps/unix/sysv/linux/x86_64/64/ld.abilist: Likewise.
12003 * sysdeps/unix/sysv/linux/x86_64/64/libBrokenLocale.abilist: Likewise.
12004 * sysdeps/unix/sysv/linux/x86_64/64/libanl.abilist: Likewise.
12005 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
12006 * sysdeps/unix/sysv/linux/x86_64/64/libcrypt.abilist: Likewise.
12007 * sysdeps/unix/sysv/linux/x86_64/64/libdl.abilist: Likewise.
12008 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
12009 * sysdeps/unix/sysv/linux/x86_64/64/libnsl.abilist: Likewise.
12010 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: Likewise.
12011 * sysdeps/unix/sysv/linux/x86_64/64/libresolv.abilist: Likewise.
12012 * sysdeps/unix/sysv/linux/x86_64/64/librt.abilist: Likewise.
12013 * sysdeps/unix/sysv/linux/x86_64/64/libthread_db.abilist: Likewise.
12014 * sysdeps/unix/sysv/linux/x86_64/64/libutil.abilist: Likewise.
12015 * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: Likewise.
12016 * sysdeps/unix/sysv/linux/x86_64/x32/ld.abilist: Likewise.
12017 * sysdeps/unix/sysv/linux/x86_64/x32/libBrokenLocale.abilist: Likewise.
12018 * sysdeps/unix/sysv/linux/x86_64/x32/libanl.abilist: Likewise.
12019 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
12020 * sysdeps/unix/sysv/linux/x86_64/x32/libcrypt.abilist: Likewise.
12021 * sysdeps/unix/sysv/linux/x86_64/x32/libdl.abilist: Likewise.
12022 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
12023 * sysdeps/unix/sysv/linux/x86_64/x32/libnsl.abilist: Likewise.
12024 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: Likewise.
12025 * sysdeps/unix/sysv/linux/x86_64/x32/libresolv.abilist: Likewise.
12026 * sysdeps/unix/sysv/linux/x86_64/x32/librt.abilist: Likewise.
12027 * sysdeps/unix/sysv/linux/x86_64/x32/libthread_db.abilist: Likewise.
12028 * sysdeps/unix/sysv/linux/x86_64/x32/libutil.abilist: Likewise.
12029
12030 2018-05-04 Stefan Liebler <stli@linux.vnet.ibm.com>
12031
12032 [BZ #23137]
12033 * sysdeps/nptl/lowlevellock.h (lll_wait_tid):
12034 Use atomic_load_acquire to load __tid.
12035
12036 2018-05-02 H.J. Lu <hongjiu.lu@intel.com>
12037
12038 * sysdeps/unix/sysv/linux/x86_64/swapcontext.S (__swapcontext):
12039 Restore the pointer into %rdx, after syscall and use %rdx,
12040 instead of %rsi, to restore context.
12041
12042 2018-05-02 H.J. Lu <hongjiu.lu@intel.com>
12043
12044 * sysdeps/unix/sysv/linux/x86_64/setcontext.S (__setcontext):
12045 Pop the pointer into %rdx after syscall and use %rdx, instead
12046 of %rsi, to restore context.
12047
12048 2018-05-02 H.J. Lu <hongjiu.lu@intel.com>
12049
12050 * nptl/pthread_create.c (START_THREAD_DEFN): Clear previous
12051 handlers after setjmp.
12052 * setjmp/longjmp.c (__libc_longjmp): Don't define alias if
12053 defined.
12054 * sysdeps/unix/sysv/linux/x86/setjmpP.h: Include
12055 <libc-pointer-arith.h>.
12056 (_JUMP_BUF_SIGSET_BITS_PER_WORD): New.
12057 (_JUMP_BUF_SIGSET_NSIG): Changed to 96.
12058 (_JUMP_BUF_SIGSET_NWORDS): Changed to use ALIGN_UP and
12059 _JUMP_BUF_SIGSET_BITS_PER_WORD.
12060 * sysdeps/x86/Makefile (sysdep_routines): Add __longjmp_cancel.
12061 * sysdeps/x86/__longjmp_cancel.S: New file.
12062 * sysdeps/x86/longjmp.c: Likewise.
12063 * sysdeps/x86/nptl/pt-longjmp.c: Likewise.
12064
12065 2018-05-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12066
12067 * NEWS: Add ustat.h deprecation entry.
12068 * bits/ustat.h: Remove file.
12069 * misc/sys/ustat.h: Likewise.
12070 * misc/ustat.h: Likewise.
12071 * sysdeps/unix/sysv/linux/generic/ustat.c: Likewise.
12072 * misc/Makefile (headers): Remove ustat.h and sys/ustat.h.
12073 * misc/ustat.c (__ustat): Rename to __old_ustat and export only in
12074 compatibility mode.
12075 * sysdeps/unix/sysv/linux/ustat.c (__ustat): Likewise.
12076 * sysdeps/unix/sysv/linux/mips/ustat.c: Define DEV_TO_KDEV and use
12077 generic Linux implementation.
12078
12079 2018-04-30 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
12080
12081 * math/w_exp_compat.c: Replace hidden_def with libm_hidden_def..
12082 * math/w_expl_compat.c: Likewise.
12083 * math/w_exp_template.c: Likewise. Remove hidden_def_x.
12084
12085 2018-04-30 Raymond Nicholson <rain1@airmail.cc>
12086
12087 * manual/startup.texi (Aborting a Program): Remove inappropriate joke.
12088
12089 2018-04-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12090
12091 * sysdeps/unix/sysv/linux/arm/readahead.c: Remove file.
12092 * sysdeps/unix/sysv/linux/mips/mips32/readahead.c: Likewise.
12093 * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (readahead):
12094 Remove.
12095 * sysdeps/unix/sysv/linux/mips/mips64/n64/syscalls.list: Likewise.
12096 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
12097 * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
12098 * sysdeps/unix/sysv/linux/readahead.c (__readahead): Assume
12099 __NR_readahead existence, and use INLINE_SYSCALL_CALL, __ALIGNMENT_ARG,
12100 and SYSCALL_LL64.
12101
12102 2018-04-27 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
12103
12104 * math/e_exp2_template.c: Replace M_SUF (M_LN2) with M_MLIT (M_LN2).
12105
12106 * math/w_acos_template.c: Replace M_SUF (fabs) with M_FABS.
12107 * math/w_asin_template.c: Likewise.
12108 * math/w_atanh_template.c: Likewise.
12109
12110 2018-04-27 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
12111
12112 * sysdeps/powerpc/preconfigure [machine == powerpc64] (machine): Define
12113 to powerpc/powerpc64/be for big-endian.
12114 [machine == powerpc64le]: Define to powerpc/powerpc64/le for
12115 little-endian.
12116
12117 * sysdeps/powerpc/powerpc64/power4/Implies: Move to powerpc64/be.
12118 * sysdeps/powerpc/powerpc64/power4/fpu/Implies: Likewise.
12119 * sysdeps/powerpc/powerpc64/power4/fpu/multiarch/Implies: Likewise.
12120 * sysdeps/powerpc/powerpc64/power4/multiarch/Implies: Likewise.
12121 * sysdeps/powerpc/powerpc64/power5+/Implies: Likewise.
12122 * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Likewise.
12123 * sysdeps/powerpc/powerpc64/power5+/fpu/multiarch/Implies: Likewise.
12124 * sysdeps/powerpc/powerpc64/power5+/multiarch/Implies: Likewise.
12125 * sysdeps/powerpc/powerpc64/power5/Implies: Likewise.
12126 * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Likewise.
12127 * sysdeps/powerpc/powerpc64/power5/fpu/multiarch/Implies: Likewise.
12128 * sysdeps/powerpc/powerpc64/power5/multiarch/Implies: Likewise.
12129 * sysdeps/powerpc/powerpc64/power6/Implies: Likewise.
12130 * sysdeps/powerpc/powerpc64/power6/fpu/Implies: Likewise.
12131 * sysdeps/powerpc/powerpc64/power6/fpu/multiarch/Implies: Likewise.
12132 * sysdeps/powerpc/powerpc64/power6/multiarch/Implies: Likewise.
12133 * sysdeps/powerpc/powerpc64/power6x/Implies: Likewise.
12134 * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Likewise.
12135 * sysdeps/powerpc/powerpc64/power6x/fpu/multiarch/Implies: Likewise.
12136 * sysdeps/powerpc/powerpc64/power6x/multiarch/Implies: Likewise.
12137 * sysdeps/powerpc/powerpc64/power7/Implies: Likewise.
12138 * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Likewise.
12139 * sysdeps/powerpc/powerpc64/power7/fpu/multiarch/Implies: Likewise.
12140 * sysdeps/powerpc/powerpc64/power7/multiarch/Implies: Likewise.
12141 * sysdeps/powerpc/powerpc64/power8/Implies: Likewise.
12142 * sysdeps/powerpc/powerpc64/power8/fpu/Implies: Likewise.
12143 * sysdeps/powerpc/powerpc64/power8/fpu/multiarch/Implies: Likewise.
12144 * sysdeps/powerpc/powerpc64/power8/multiarch/Implies: Likewise.
12145 * sysdeps/powerpc/powerpc64/power9/Implies: Likewise.
12146 * sysdeps/powerpc/powerpc64/power9/fpu/Implies: Likewise.
12147 * sysdeps/powerpc/powerpc64/power9/fpu/multiarch/Implies: Likewise.
12148 * sysdeps/powerpc/powerpc64/power9/multiarch/Implies: Likewise.
12149
12150 * sysdeps/powerpc/powerpc64/be/power4/Implies: Move from powerpc64 and
12151 adjusted to imply powerpc64 and older processors on powerpc64/be.
12152 * sysdeps/powerpc/powerpc64/be/power4/fpu/Implies: Likewise.
12153 * sysdeps/powerpc/powerpc64/be/power4/fpu/multiarch/Implies: Likewise.
12154 * sysdeps/powerpc/powerpc64/be/power4/multiarch/Implies: Likewise.
12155 * sysdeps/powerpc/powerpc64/be/power5+/Implies: Likewise.
12156 * sysdeps/powerpc/powerpc64/be/power5+/fpu/Implies: Likewise.
12157 * sysdeps/powerpc/powerpc64/be/power5+/fpu/multiarch/Implies: Likewise.
12158 * sysdeps/powerpc/powerpc64/be/power5+/multiarch/Implies: Likewise.
12159 * sysdeps/powerpc/powerpc64/be/power5/Implies: Likewise.
12160 * sysdeps/powerpc/powerpc64/be/power5/fpu/Implies: Likewise.
12161 * sysdeps/powerpc/powerpc64/be/power5/fpu/multiarch/Implies: Likewise.
12162 * sysdeps/powerpc/powerpc64/be/power5/multiarch/Implies: Likewise.
12163 * sysdeps/powerpc/powerpc64/be/power6/Implies: Likewise.
12164 * sysdeps/powerpc/powerpc64/be/power6/fpu/Implies: Likewise.
12165 * sysdeps/powerpc/powerpc64/be/power6/fpu/multiarch/Implies: Likewise.
12166 * sysdeps/powerpc/powerpc64/be/power6/multiarch/Implies: Likewise.
12167 * sysdeps/powerpc/powerpc64/be/power6x/Implies: Likewise.
12168 * sysdeps/powerpc/powerpc64/be/power6x/fpu/Implies: Likewise.
12169 * sysdeps/powerpc/powerpc64/be/power6x/fpu/multiarch/Implies: Likewise.
12170 * sysdeps/powerpc/powerpc64/be/power6x/multiarch/Implies: Likewise.
12171 * sysdeps/powerpc/powerpc64/be/power7/Implies: Likewise.
12172 * sysdeps/powerpc/powerpc64/be/power7/fpu/Implies: Likewise.
12173 * sysdeps/powerpc/powerpc64/be/power7/fpu/multiarch/Implies: Likewise.
12174 * sysdeps/powerpc/powerpc64/be/power7/multiarch/Implies: Likewise.
12175 * sysdeps/powerpc/powerpc64/be/power8/Implies: Likewise.
12176 * sysdeps/powerpc/powerpc64/be/power8/fpu/Implies: Likewise.
12177 * sysdeps/powerpc/powerpc64/be/power8/fpu/multiarch/Implies: Likewise.
12178 * sysdeps/powerpc/powerpc64/be/power8/multiarch/Implies: Likewise.
12179 * sysdeps/powerpc/powerpc64/be/power9/Implies: Likewise.
12180 * sysdeps/powerpc/powerpc64/be/power9/fpu/Implies: Likewise.
12181 * sysdeps/powerpc/powerpc64/be/power9/fpu/multiarch/Implies: Likewise.
12182 * sysdeps/powerpc/powerpc64/be/power9/multiarch/Implies: Likewise.
12183
12184 * sysdeps/powerpc/powerpc64/970/Implies: Move to powerpc64/be.
12185 * sysdeps/powerpc/powerpc64/be/970/Implies: Move from powerpc64/be.
12186 * sysdeps/powerpc/powerpc64/be/a2/Implies: New file.
12187 * sysdeps/powerpc/powerpc64/be/cell/Implies: Likewise.
12188
12189 * sysdeps/powerpc/powerpc64/be/Implies: New file.
12190 * sysdeps/powerpc/powerpc64/be/fpu/Implies: Likewise.
12191 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Implies: Likewise.
12192 * sysdeps/powerpc/powerpc64/be/multiarch/Implies: Likewise.
12193
12194 * sysdeps/powerpc/powerpc64le/Implies: Move to powerpc64/le.
12195 * sysdeps/powerpc/powerpc64le/Implies-before: Likewise.
12196 * sysdeps/powerpc/powerpc64le/Makefile: Likewise.
12197 * sysdeps/powerpc/powerpc64le/configure: Likewise.
12198 * sysdeps/powerpc/powerpc64le/configure.ac: Likewise.
12199 * sysdeps/powerpc/powerpc64le/fpu/Implies: Likewise.
12200 * sysdeps/powerpc/powerpc64le/fpu/e_sqrtf128.c: Likewise.
12201 * sysdeps/powerpc/powerpc64le/fpu/multiarch/Implies: Likewise.
12202 * sysdeps/powerpc/powerpc64le/fpu/sfp-machine.h: Likewise.
12203 * sysdeps/powerpc/powerpc64le/multiarch/Implies: Likewise.
12204 * sysdeps/powerpc/powerpc64le/power9/fpu/e_sqrtf128.c: Likewise.
12205
12206 * sysdeps/powerpc/powerpc64/le/Implies: Move from powerpc64le.
12207 * sysdeps/powerpc/powerpc64/le/Implies-before: Likewise.
12208 * sysdeps/powerpc/powerpc64/le/Makefile: Likewise.
12209 * sysdeps/powerpc/powerpc64/le/configure: Likewise.
12210 * sysdeps/powerpc/powerpc64/le/configure.ac: Likewise.
12211 * sysdeps/powerpc/powerpc64/le/fpu/Implies: Likewise.
12212 * sysdeps/powerpc/powerpc64/le/fpu/e_sqrtf128.c: Likewise.
12213 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/Implies: Likewise.
12214 * sysdeps/powerpc/powerpc64/le/fpu/sfp-machine.h: Likewise.
12215 * sysdeps/powerpc/powerpc64/le/multiarch/Implies: Likewise.
12216 * sysdeps/powerpc/powerpc64/le/power9/fpu/e_sqrtf128.c: Likewise.
12217
12218 * sysdeps/powerpc/powerpc64le/power7/Implies: Move to powerpc64/le.
12219 * sysdeps/powerpc/powerpc64le/power7/fpu/Implies: Likewise.
12220 * sysdeps/powerpc/powerpc64le/power7/fpu/multiarch/Implies: Likewise.
12221 * sysdeps/powerpc/powerpc64le/power7/multiarch/Implies: Likewise.
12222 * sysdeps/powerpc/powerpc64le/power8/Implies: Likewise.
12223 * sysdeps/powerpc/powerpc64le/power8/fpu/Implies: Likewise.
12224 * sysdeps/powerpc/powerpc64le/power8/fpu/multiarch/Implies: Likewise.
12225 * sysdeps/powerpc/powerpc64le/power8/multiarch/Implies: Likewise.
12226 * sysdeps/powerpc/powerpc64le/power9/Implies: Likewise.
12227 * sysdeps/powerpc/powerpc64le/power9/fpu/Implies: Likewise.
12228 * sysdeps/powerpc/powerpc64le/power9/fpu/multiarch/Implies: Likewise.
12229 * sysdeps/powerpc/powerpc64le/power9/multiarch/Implies: Likewise.
12230
12231 * sysdeps/powerpc/powerpc64/le/power7/Implies: Move from powerpc64le
12232 and adjusted to imply olders processors.
12233 * sysdeps/powerpc/powerpc64/le/power7/fpu/Implies: Likewise.
12234 * sysdeps/powerpc/powerpc64/le/power7/fpu/multiarch/Implies: Likewise.
12235 * sysdeps/powerpc/powerpc64/le/power7/multiarch/Implies: Likewise.
12236 * sysdeps/powerpc/powerpc64/le/power8/Implies: Likewise.
12237 * sysdeps/powerpc/powerpc64/le/power8/fpu/Implies: Likewise.
12238 * sysdeps/powerpc/powerpc64/le/power8/fpu/multiarch/Implies: Likewise.
12239 * sysdeps/powerpc/powerpc64/le/power8/multiarch/Implies: Likewise.
12240 * sysdeps/powerpc/powerpc64/le/power9/Implies: Likewise.
12241 * sysdeps/powerpc/powerpc64/le/power9/fpu/Implies: Likewise.
12242 * sysdeps/powerpc/powerpc64/le/power9/fpu/multiarch/Implies: Likewise.
12243 * sysdeps/powerpc/powerpc64/le/power9/multiarch/Implies: Likewise.
12244
12245 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/Implies: Move to
12246 powerpc64/le.
12247 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/float128-abi.h: Likewise.
12248 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/fpu/Implies: Likewise.
12249
12250 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/Implies: Move from
12251 powerpc64le.
12252 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/float128-abi.h: Likewise.
12253 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/fpu/Implies: Likewise.
12254
12255 * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: Move to
12256 powerpc64/be.
12257 * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
12258 * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: Likewise.
12259 * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/fpu/Implies: Likewise.
12260
12261 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/970/Implies: Move from
12262 powerpc64 and adjusted.
12263 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/a2/Implies: Likewise.
12264 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/cell/Implies: Likewise.
12265 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/cell/fpu/Implies:
12266 Likewise.
12267
12268 2018-04-27 Joseph Myers <joseph@codesourcery.com>
12269
12270 * sysdeps/tile: Remove.
12271 * sysdeps/unix/sysv/linux/tile: Likewise.
12272 * README (tilegx-*-linux-gnu): Remove from list of supported
12273 configurations.
12274 * manual/contrib.texi (Contributors): Mention Chris Metcalf's
12275 contribution of support for generic Linux kernel syscall
12276 interface.
12277 * scripts/build-many-glibcs.py (Context.add_all_configs): Remove
12278 tilegx configurations.
12279 (Config.install_linux_headers): Do not handle tile.
12280 * sysdeps/unix/sysv/linux/aarch64/ldsodefs.h: Do not mention Tile
12281 in comment.
12282 * sysdeps/unix/sysv/linux/nios2/Makefile: Likewise.
12283 * sysdeps/unix/sysv/linux/posix_fadvise.c: Likewise.
12284 [__ASSUME_FADVISE64_64_NO_ALIGN] (__ALIGNMENT_ARG): Remove
12285 conditional undefine and redefine.
12286 * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not mention Tile
12287 in comment.
12288 [__ASSUME_FADVISE64_64_NO_ALIGN] (__ALIGNMENT_ARG): Remove
12289 conditional undefine and redefine.
12290
12291 2018-04-26 Aurelien Jarno <aurelien@aurel32.net>
12292
12293 * signal/tst-sigaction.c: New file to test BZ #23069.
12294 * signal/Makefile (tests): Fix indentation. Add tst-sigaction.
12295
12296 2018-04-26 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
12297
12298 [BZ #22766]
12299 * include/dlfcn.h [__libc_dl_open]: Replace RTLD_LAZY with RTLD_NOW.
12300 * sysdeps/gnu/unwind-resume.c (__lib_gcc_s_init): Replace
12301 __libc_dlopen_mode() using RTLD_NOW with __libc_dlopen.
12302 * sysdeps/nptl/unwind-forcedunwind.c: Likewise.
12303
12304 2018-04-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12305
12306 * sysdeps/unix/sysv/linux/getdirentries.c (getdirentries): Build iff
12307 _DIRENT_MATCHES_DIRENT64 is not defined.
12308 * sysdeps/unix/sysv/linux/getdirentries64.c (getdirentries64): Open
12309 implementation and alias to getdirentries if _DIRENT_MATCHES_DIRENT64
12310 is defined.
12311 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries.c: Remove file.
12312 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries64.c: Remove file.
12313
12314 2018-04-25 Joseph Myers <joseph@codesourcery.com>
12315
12316 * scripts/build-many-glibcs.py (Context.checkout): Default GCC
12317 version to GCC 8 branch.
12318
12319 2018-04-24 Joseph Myers <joseph@codesourcery.com>
12320
12321 * sysdeps/mach/hurd/dl-sysdep.c: Include <not-errno.h>.
12322 (check_no_hidden): Use type of original function when declaring
12323 alias.
12324
12325 * sysdeps/unix/sysv/linux/sys/ptrace.h
12326 (PTRACE_SECCOMP_GET_METADATA): New enum value and macro.
12327 * sysdeps/unix/sysv/linux/bits/ptrace-shared.h
12328 (struct __ptrace_seccomp_metadata): New type.
12329 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h
12330 (PTRACE_SECCOMP_GET_METADATA): Likewise.
12331 * sysdeps/unix/sysv/linux/arm/sys/ptrace.h
12332 (PTRACE_SECCOMP_GET_METADATA): Likewise.
12333 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h
12334 (PTRACE_SECCOMP_GET_METADATA): Likewise.
12335 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h
12336 (PTRACE_SECCOMP_GET_METADATA): Likewise.
12337 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h
12338 (PTRACE_SECCOMP_GET_METADATA): Likewise.
12339 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h
12340 (PTRACE_SECCOMP_GET_METADATA): Likewise.
12341 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h
12342 (PTRACE_SECCOMP_GET_METADATA): Likewise.
12343 * sysdeps/unix/sysv/linux/x86/sys/ptrace.h
12344 (PTRACE_SECCOMP_GET_METADATA): Likewise.
12345
12346 2018-04-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12347
12348 * dirent/alphasort.c (alphasort): Build iff _DIRENT_MATCHES_DIRENT64 is
12349 defined.
12350 * dirent/versionsort.c (versionsort): Likewise.
12351 * dirent/alphasort64.c (alphasort64): Build regardless and alias to
12352 alphasort if _DIRENT_MATCHES_DIRENT64 is defined.
12353 * dirent/versionsort64.c (versionsort64): Likewise.
12354 * sysdeps/unix/sysv/linux/i386/alphasort64.c: Remove file.
12355 * sysdeps/unix/sysv/linux/arm/alphasort64.c: Likewise.
12356 * sysdeps/unix/sysv/linux/arm/versionsort64.c: Likewise.
12357 * sysdeps/unix/sysv/linux/m68k/alphasort64.c: Likewise.
12358 * sysdeps/unix/sysv/linux/m68k/versionsort64.c: Likewise.
12359 * sysdeps/unix/sysv/linux/s390/s390-32/alphasort64.c: Likewise.
12360 * sysdeps/unix/sysv/linux/s390/s390-32/versionsort64.c: Likewise.
12361 * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
12362 * sysdeps/unix/sysv/linux/alphasort64.c: New file.
12363 * sysdeps/unix/sysv/linux/versionsort64.c: Likewise.
12364 * sysdeps/unix/sysv/linux/powerpc/powerpc32/alphasort64.c: Likewise.
12365 * sysdeps/unix/sysv/linux/powerpc/powerpc32/versionsort64.c: Likewise.
12366 * sysdeps/unix/sysv/linux/sparc/sparc32/alphasort64.c: Likewise.
12367 * sysdeps/unix/sysv/linux/sparc/sparc32/versionsort64.c: Likewise.
12368
12369 2018-04-23 Joseph Myers <joseph@codesourcery.com>
12370
12371 * elf/elf.h (NT_PPC_PKEY): New macro.
12372
12373 2018-04-23 Dragan Stanojevic - Nevidljivi <invisible@hidden-city.net>
12374
12375 [BZ #23094]
12376 * localedata/locales/hr_HR: fix thousands_sep and
12377 mon_thousands_sep
12378
12379 2018-04-20 Joseph Myers <joseph@codesourcery.com>
12380
12381 * sysdeps/unix/sysv/linux/alpha/bits/termios.h [__USE_MISC]
12382 (XTABS): Define to TAB3.
12383
12384 2018-04-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12385
12386 * sysdeps/hppa/fpu/libm-test-ulps: Update.
12387
12388 * dirent/scandir-tail-common.c: New file.
12389 * dirent/scandir-tail.c: Use scandir-tail-common.c.
12390 (__scandir_tail): Build iff _DIRENT_MATCHES_DIRENT64 is not defined.
12391 * dirent/scandir.c: Use scandir-tail-common.c.
12392 * dirent/scandirat.c: Likewise.
12393 * dirent/scandir64-tail.c: Use scandir-tail-common.c.
12394 * dirent/scandir64.c (scandir64): Always build and alias to scandir
12395 if _DIRENT_MATCHES_DIRENT64 is defined.
12396 * dirent/scandirat64.c (scandirat64): Likewise.
12397 * include/dirent.h (__scandir_tail): Only define iff
12398 _DIRENT_MATCHES_DIRENT64 is not defined.
12399 (__scandir64_tail): Define regardless.
12400 (__scandirat, scandirat64): Remove libc_hidden_proto.
12401 * sysdeps/unix/sysv/linux/arm/scandir64.c: Remove file.
12402 * sysdeps/unix/sysv/linux/m68k/scandir64.c: Likewise.
12403 * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Likewise.
12404 * sysdeps/unix/sysv/linux/s390/s390-32/scandir64.c: Likewise.
12405 * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
12406 * sysdeps/unix/sysv/linux/sparc/sparc32/scandir64.c: Likewise.
12407 * sysdeps/unix/sysv/linux/scandir64.c: New file.
12408
12409 2018-04-20 Joseph Myers <joseph@codesourcery.com>
12410
12411 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_ASIMDFHM):
12412 New macro.
12413 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
12414 Increase to 24.
12415 (_dl_aarch64_cap_flags): Add asimdfhm.
12416
12417 2018-04-19 Chung-Lin Tang <cltang@codesourcery.com>
12418
12419 * sysdeps/nios2/libm-test-ulps: Update.
12420
12421 2018-04-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12422
12423 * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c (__getdents64):
12424 Only alias to __getdents for _DIRENT_MATCHES_DIRENT64.
12425
12426 * sysdeps/unix/sysv/linux/alpha/getdents.c: Add comments with alpha
12427 requirements.
12428 (_DIRENT_MATCHES_DIRENT64): Undef
12429 * sysdeps/unix/sysv/linux/alpha/getdents64.c: Likewise.
12430 * sysdeps/unix/sysv/linux/arm/getdents64.c: Remove file.
12431 * sysdeps/unix/sysv/linux/generic/getdents.c: Likewise.
12432 * sysdeps/unix/sysv/linux/generic/getdents64.c: Likewise.
12433 * sysdeps/unix/sysv/linux/generic/wordsize-32/getdents.c: Likewise.
12434 * sysdeps/unix/sysv/linux/getdents.c: Simplify implementation by
12435 use getdents64 syscalls as base.
12436 * sysdeps/unix/sysv/linux/getdents64.c: Likewise and add compatibility
12437 symbol if required.
12438 * sysdeps/unix/sysv/linux/hppa/getdents64.c: Likewise.
12439 * sysdeps/unix/sysv/linux/i386/getdents64.c: Likewise.
12440 * sysdeps/unix/sysv/linux/m68k/getdents64.c: Likewise.
12441 * sysdeps/unix/sysv/linux/powerpc/getdents64.c: Likewise.
12442 * sysdeps/unix/sysv/linux/s390/s390-32/getdents64.c: Likewise.
12443 * sysdeps/unix/sysv/linux/sparc/sparc32/getdents64.c: Likewise.
12444 * sysdeps/unix/sysv/linux/wordsize-64/getdents.c: Likewise.
12445 * sysdeps/unix/sysv/linux/wordsize-64/getdents64.c: Likewise.
12446 * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
12447 (__get_clockfreq_via_proc_openprom): Use __getdents64.
12448 * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c: New file.
12449
12450 2018-04-19 Stefan Liebler <stli@linux.vnet.ibm.com>
12451
12452 * scripts/test_printers_common.py (init_test): Disable lock elision.
12453
12454 2018-04-19 Stefan Liebler <stli@linux.vnet.ibm.com>
12455
12456 * math/test-tgmath.c (count_double, count_float,
12457 count_ldouble, count_cdouble, count_cfloat,
12458 count_cldouble): Use volatile int.
12459
12460 2018-04-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
12461
12462 * sysdeps/mach/hurd/i386/Makefile [$(subdir) = conform]
12463 (conformtest-xfail-conds): Add i386-gnu.
12464 * conform/data/fcntl.h-data (flock.l_type, flock.l_whence): XFAIL on
12465 i386-gnu.
12466 * conform/data/sys/ipc.h-data (ipc_perm.uid, ipc_perm.gid,
12467 ipc_perm.cuid, ipc_perm.cgid): Likewise.
12468 * conform/data/sys/msg.h-data (msqid_ds.msg_lspid,
12469 msqid_ds.msg_lrpid): Likewise.
12470 * conform/data/sys/shm.h-data (shmid_ds.shm_lpid, shmid_ds.shm_cpid):
12471 Likewise.
12472 * conform/data/sys/stat.h-data (stat.st_dev): Likewise.
12473 * conform/data/sys/statvfs.h-data (statvfs.f_fsid): Likewise.
12474 * sysdeps/mach/hurd/bits/statvfs.h (struct statvfs): Make f_bsize,
12475 f_namemax, f_frsize, and f_flag fields unsigned long int instead of
12476 unsigned int.
12477 (struct statvfs64): Likewise.
12478 * sysdeps/mach/hurd/bits/statfs.h (struct statfs, struct statfs64):
12479 Likewise.
12480 * bits/in.h [!__USE_MISC]: Do not define struct ip_opts.
12481 * conform/data/netinet/in.h-data: Allow sin_ and sin6_ prefix.
12482 * sysdeps/gnu/bits/msq.h (struct msqid_ds): Use __wait_queue struct
12483 instead of wait_queue.
12484 * sysdeps/gnu/bits/shm.h (struct shmid_ds): Use __vm_area_struct
12485 instead of vm_area_struct.
12486 * bits/sched.h: Include <bits/types/struct_sched_param.h> and move
12487 struct sched_param definition to it.
12488 * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
12489 * bits/types/struct_sched_param.h: New file.
12490 * sysdeps/htl/bits/types/struct___pthread_attr.h: Include
12491 <bits/types/struct_sched_param.h> instead of <sched.h>.
12492 * posix/Makefile (headers): Add bits/types/struct_sched_param.h.
12493 * sysdeps/pthread/bits/types/sigevent_t.h: New file, based on the
12494 generic version but include <bits/pthreadtypes.h> to make struct
12495 sigevent's sigev_notify_attributes field a pthread_attr_t*.
12496 * bits/types/siginfo_t.h: Remove siginfo struct name, unused and
12497 non-compliant.
12498 * bits/termios.h [__USE_XOPEN || __USE_XOPEN2K8] (IXANY): Define.
12499 [__USE_XOPEN && !__USE_XOPEN2K] (IUCLC, OLCUC): Define.
12500 [__USE_XOPEN] (OFDEL): New macro.
12501 [__USE_XOPEN && !__USE_XOPEN2K] (XCASE): New macro.
12502 * bits/resource.h (RLIM_SAVED_MAX, RLIM_SAVED_CUR): New macros.
12503 * sysdeps/hurd/include/hurd.h [!_ISOMAC]: Do not declare libc hidden
12504 prototypes.
12505 * sysdeps/hurd/include/hurd/fd.h [!_ISOMAC]: Likewise.
12506 * sysdeps/hurd/include/hurd/signal.h [!_ISOMAC]: Likewise.
12507 * sysdeps/arm/sys/ucontext.h: Remove fpregset struct name, unused and
12508 non-compliant.
12509 * sysdeps/i386/sys/ucontext.h: Likewise.
12510 * sysdeps/m68k/sys/ucontext.h: Likewise.
12511 * sysdeps/mips/sys/ucontext.h: Likewise.
12512 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h: Likewise.
12513 * sysdeps/mach/hurd/i386/Makefile
12514 (test-xfail-POSIX/fcntl.h/conform): Add.
12515 (test-xfail-POSIX/signal.h/conform): Add.
12516 (test-xfail-POSIX/semaphore.h/conform): Add.
12517 (test-xfail-POSIX/regex.h/conform): Add.
12518 (test-xfail-POSIX/aio.h/conform): Add.
12519 (test-xfail-POSIX/mqueue.h/conform): Add.
12520 (test-xfail-POSIX/sys/types.h/conform): Add.
12521 (test-xfail-UNIX98/fcntl.h/conform): Add.
12522 (test-xfail-UNIX98/netdb.h/conform): Add.
12523 (test-xfail-UNIX98/signal.h/conform): Add.
12524 (test-xfail-UNIX98/semaphore.h/conform): Add.
12525 (test-xfail-UNIX98/regex.h/conform): Add.
12526 (test-xfail-UNIX98/aio.h/conform): Add.
12527 (test-xfail-UNIX98/ftw.h/conform): Add.
12528 (test-xfail-UNIX98/mqueue.h/conform): Add.
12529 (test-xfail-UNIX98/netinet/in.h/conform): Add.
12530 (test-xfail-UNIX98/sys/wait.h/conform): Add.
12531 (test-xfail-UNIX98/sys/sem.h/conform): Add.
12532 (test-xfail-UNIX98/sys/uio.h/conform): Add.
12533 (test-xfail-UNIX98/sys/socket.h/conform): Add.
12534 (test-xfail-UNIX98/sys/types.h/conform): Add.
12535 (test-xfail-UNIX98/stdlib.h/conform): Add.
12536 (test-xfail-UNIX98/arpa/inet.h/conform): Add.
12537 (test-xfail-POSIX2008/fcntl.h/conform): Add.
12538 (test-xfail-POSIX2008/netdb.h/conform): Add.
12539 (test-xfail-POSIX2008/signal.h/conform): Add.
12540 (test-xfail-POSIX2008/semaphore.h/conform): Add.
12541 (test-xfail-POSIX2008/regex.h/conform): Add.
12542 (test-xfail-POSIX2008/aio.h/conform): Add.
12543 (test-xfail-POSIX2008/mqueue.h/conform): Add.
12544 (test-xfail-POSIX2008/netinet/in.h/conform): Add.
12545 (test-xfail-POSIX2008/sys/wait.h/conform): Add.
12546 (test-xfail-POSIX2008/sys/socket.h/conform): Add.
12547 (test-xfail-POSIX2008/sys/types.h/conform): Add.
12548 (test-xfail-POSIX2008/arpa/inet.h/conform): Add.
12549 (test-xfail-XOPEN2K/fcntl.h/conform): Add.
12550 (test-xfail-XOPEN2K/netdb.h/conform): Add.
12551 (test-xfail-XOPEN2K/signal.h/conform): Add.
12552 (test-xfail-XOPEN2K/semaphore.h/conform): Add.
12553 (test-xfail-XOPEN2K/regex.h/conform): Add.
12554 (test-xfail-XOPEN2K/aio.h/conform): Add.
12555 (test-xfail-XOPEN2K/ftw.h/conform): Add.
12556 (test-xfail-XOPEN2K/mqueue.h/conform): Add.
12557 (test-xfail-XOPEN2K/netinet/in.h/conform): Add.
12558 (test-xfail-XOPEN2K/sys/wait.h/conform): Add.
12559 (test-xfail-XOPEN2K/sys/sem.h/conform): Add.
12560 (test-xfail-XOPEN2K/sys/uio.h/conform): Add.
12561 (test-xfail-XOPEN2K/sys/socket.h/conform): Add.
12562 (test-xfail-XOPEN2K/sys/types.h/conform): Add.
12563 (test-xfail-XOPEN2K/stdlib.h/conform): Add.
12564 (test-xfail-XOPEN2K/arpa/inet.h/conform): Add.
12565 (test-xfail-XOPEN2K8/fcntl.h/conform): Add.
12566 (test-xfail-XOPEN2K8/netdb.h/conform): Add.
12567 (test-xfail-XOPEN2K8/signal.h/conform): Add.
12568 (test-xfail-XOPEN2K8/semaphore.h/conform): Add.
12569 (test-xfail-XOPEN2K8/regex.h/conform): Add.
12570 (test-xfail-XOPEN2K8/aio.h/conform): Add.
12571 (test-xfail-XOPEN2K8/ftw.h/conform): Add.
12572 (test-xfail-XOPEN2K8/mqueue.h/conform): Add.
12573 (test-xfail-XOPEN2K8/netinet/in.h/conform): Add.
12574 (test-xfail-XOPEN2K8/sys/wait.h/conform): Add.
12575 (test-xfail-XOPEN2K8/sys/sem.h/conform): Add.
12576 (test-xfail-XOPEN2K8/sys/uio.h/conform): Add.
12577 (test-xfail-XOPEN2K8/sys/socket.h/conform): Add.
12578 (test-xfail-XOPEN2K8/sys/types.h/conform): Add.
12579 (test-xfail-XOPEN2K8/stdlib.h/conform): Add.
12580 (test-xfail-XOPEN2K8/arpa/inet.h/conform): Add.
12581 * conform/data/signal.h-data (SA_SIGINFO, SA_NOCLDWAIT): XFAIL on
12582 i386-gnu.
12583 * conform/data/sys/wait.h-data (WIFCONTINUED, WEXITED, WSTOPPED,
12584 WCONTINUED, WNOWAIT): XFAIL on i386-gnu.
12585
12586 2018-04-18 Joseph Myers <joseph@codesourcery.com>
12587
12588 * scripts/build-many-glibcs.py (Context.add_all_configs): Use
12589 --enable-obsolete for powerpc-linux-gnuspe.
12590
12591 2018-04-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
12592
12593 * conform/data/sys/un.h-data: Allow sun_ prefix.
12594 * sysdeps/mach/include/lock-intern.h: Do not declare libc hidden
12595 prototypes.
12596 * sysdeps/mach/include/mach.h: Likewise.
12597 * sysdeps/mach/include/mach/mig_support.h: Likewise.
12598 * sysdeps/mach/include/mach_error.h: Likewise.
12599
12600 2018-04-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12601
12602 * sysdeps/arm/armv6t2/memchr.S (memchr): Remove ARM code path.
12603 * sysdeps/arm/armv6t2/strlen.S (memchr): Likewise.
12604 * sysdeps/arm/armv7/multiarch/memchr_neon.S (memchr): Likewise.
12605 * sysdeps/arm/armv7/strcmp.S (strcmp): Likewise.
12606
12607 2018-04-16 Andreas Schwab <schwab@suse.de>
12608
12609 [BZ #19527]
12610 * iconvdata/gconv-modules (ARMSCII8//, ShiftJISX0213//): New aliases.
12611
12612 2018-04-15 Patrick McGehearty <patrick.mcgehearty@oracle.com>
12613
12614 * sysdeps/ieee754/dbl-64/e_exp.c: faster __ieee754_exp()
12615 * sysdeps/ieee754/dbl-64/eexp.tbl: New file for e_exp.c
12616
12617 2018-04-12 DJ Delorie <dj@redhat.com>
12618
12619 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
12620 version to 4.16.
12621
12622 2018-04-12 Stefan Liebler <stli@linux.vnet.ibm.com>
12623
12624 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h
12625 (struct kernel_sigaction): Use the same definition on 31bit as is used
12626 on 64bit.
12627
12628 2018-04-09 Florian Weimer <fweimer@redhat.com>
12629
12630 [BZ #23037]
12631 * resolv/res_send.c (send_dg): Use designated initializers instead
12632 of assignment to zero-initialize other fields of struct mmsghdr.
12633
12634 2018-04-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12635
12636 * sysdeps/posix/readdir.c (__READDIR, __GETDENTS, DIRENTY_TYPE,
12637 __READDIR_ALIAS): Undefine after usage.
12638 * sysdeps/posix/readdir_r.c (__READDIR_R, __GETDENTS, DIRENT_TYPE,
12639 __READDIR_R_ALIAS): Likewise.
12640 * sysdeps/unix/sysv/linux/arm/readdir64.c: Remove file.
12641 * sysdeps/unix/sysv/linux/arm/readdir64_r.c: Likewise.
12642 * sysdeps/unix/sysv/linux/m68k/readdir64.c: Likewise.
12643 * sysdeps/unix/sysv/linux/m68k/readdir64_r.c: Likewise.
12644 * sysdeps/unix/sysv/linux/powerpc/readdir64.c: Likewise.
12645 * sysdeps/unix/sysv/linux/powerpc/readdir64_r.c: Likewise.
12646 * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
12647 * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
12648 * sysdeps/unix/sysv/linux/s390/s390-32/readdir64.c: Likewise.
12649 * sysdeps/unix/sysv/linux/s390/s390-32/readdir64_r.c: Likewise.
12650 * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64.c: Likewise.
12651 * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64_r.c: Likewise.
12652 * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
12653 * sysdeps/unix/sysv/linux/wordsize-64/readdir64.c: Likewise.
12654 * sysdeps/unix/sysv/linux/wordsize-64/readdir64_r.c: Likewise.
12655 * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Likewise.
12656 * sysdeps/unix/sysv/linux/readdir.c: New file.
12657 * sysdeps/unix/sysv/linux/readdir_r.c: Likewise.
12658 * sysdeps/unix/sysv/linux/readdir64.c: Add compat symbol if required.
12659 * sysdeps/unix/sysv/linux/readdir64_r.c: Likewise.
12660
12661 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Update.
12662
12663 2018-04-06 Andreas Schwab <schwab@linux-m68k.org>
12664
12665 * manual/charset.texi (Converting a Character): Fix typo.
12666
12667 2018-04-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12668
12669 * sysdeps/sparc/fpu/libm-test-ulps: Update.
12670
12671 * sysdeps/arm/libm-test-ulps: Update.
12672
12673 * sysdeps/unix/sysv/linux/aarch64/sigaction.c: Use default Linux version
12674 as base implementation.
12675 * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
12676 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
12677 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
12678 * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
12679 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
12680 * sysdeps/unix/sysv/linux/alpha/kernel_sigaction.h: Add include guards,
12681 remove unrequired definitions and update comments.
12682 * sysdeps/unix/sysv/linux/kernel_sigaction.h: Likewise.
12683 * sysdeps/unix/sysv/linux/mips/kernel_sigaction.h: Likewise.
12684 * sysdeps/unix/sysv/linux/ia64/kernel_sigaction.h: New file.
12685 * sysdeps/unix/sysv/linux/m68k/kernel_sigaction.h: Likewise.
12686 * sysdeps/unix/sysv/linux/nios2/kernel_sigaction.h: Likewise.
12687 * sysdeps/unix/sysv/linux/powerpc/kernel_sigaction: Likewise.
12688 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Likewise.
12689 * sysdeps/unix/sysv/linux/sh/kernel_sigaction.h: Likewise.
12690 * sysdeps/unix/sysv/linux/sparc/kernel_sigaction.h: Likewise.
12691 * sysdeps/unix/sysv/linux/tile/kernel_sigaction.h: Likewise.
12692 * sysdeps/unix/sysv/linux/ia64/sigaction.c: Remove file.
12693 * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
12694 * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c: Likewise.
12695 * sysdeps/unix/sysv/linux/sigaction.c: Add STUB, SET_SA_RESTORER,
12696 and RESET_SA_RESTORER hooks.
12697
12698 2018-04-05 Stefan Liebler <stli@linux.vnet.ibm.com>
12699
12700 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
12701
12702 2018-04-05 Florian Weimer <fweimer@redhat.com>
12703
12704 * manual/examples/mbstouwcs.c (mbstouwcs): Fix loop termination,
12705 integer overflow, memory leak on error, and indeterminate errno
12706 value. Add a null wide character to terminate the result string.
12707 * manual/charset.texi (Converting a Character): Mention embedded
12708 null bytes in the mbrtowc input string. Explain what happens in
12709 the -2 result case. Do not claim that mbrtowc is simple or
12710 obvious to use. Adjust the description of the code example. Use
12711 @code, not @var, for concrete variables.
12712
12713 2018-04-05 Florian Weimer <fweimer@redhat.com>
12714
12715 * manual/examples/mbstouwcs.c: New file.
12716 * manual/charset.texi (Converting a Character): Include it.
12717
12718 2018-04-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
12719
12720 * include/dirent.h (dirfd): Add hidden proto.
12721 * dirent/dirfd.c (dirfd): Add hidden def.
12722 * sysdeps/mach/hurd/dirfd.c (dirfd): Add hidden def.
12723 * sysdeps/posix/dirfd.c (dirfd): Add hidden def.
12724
12725 2018-04-04 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
12726
12727 * sysdeps/powerpc/fpu/libm-test-ulps: Increase double-precision
12728 sin, cos and sincos to 1 ULP.
12729
12730 2018-04-04 Maciej W. Rozycki <macro@mips.com>
12731
12732 [BZ #19818]
12733 * sysdeps/generic/ldsodefs.h (SYMBOL_ADDRESS): Handle SHN_ABS
12734 symbols.
12735 * elf/dl-addr.c (determine_info): Ignore SHN_ABS symbols.
12736 * elf/tst-absolute-sym.c: New file.
12737 * elf/tst-absolute-sym-lib.c: New file.
12738 * elf/tst-absolute-sym-lib.lds: New file.
12739 * elf/Makefile (tests): Add `tst-absolute-sym'.
12740 (modules-names): Add `tst-absolute-sym-lib'.
12741 (LDLIBS-tst-absolute-sym-lib.so): New variable.
12742 ($(objpfx)tst-absolute-sym-lib.so): New dependency.
12743 ($(objpfx)tst-absolute-sym): New dependency.
12744
12745 [BZ #19818]
12746 * sysdeps/generic/ldsodefs.h (LOOKUP_VALUE_ADDRESS): Add `set'
12747 parameter.
12748 (SYMBOL_ADDRESS): New macro.
12749 [!ELF_FUNCTION_PTR_IS_SPECIAL] (DL_SYMBOL_ADDRESS): Use
12750 SYMBOL_ADDRESS for symbol address calculation.
12751 * elf/dl-runtime.c (_dl_fixup): Likewise.
12752 (_dl_profile_fixup): Likewise.
12753 * elf/dl-symaddr.c (_dl_symbol_address): Likewise.
12754 * elf/rtld.c (dl_main): Likewise.
12755 * sysdeps/aarch64/dl-machine.h (elf_machine_rela): Likewise.
12756 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Likewise.
12757 * sysdeps/arm/dl-machine.h (elf_machine_rel): Likewise.
12758 (elf_machine_rela): Likewise.
12759 * sysdeps/hppa/dl-machine.h (elf_machine_rela): Likewise.
12760 * sysdeps/hppa/dl-symaddr.c (_dl_symbol_address): Likewise.
12761 * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
12762 (elf_machine_rela): Likewise.
12763 * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
12764 * sysdeps/m68k/dl-machine.h (elf_machine_rela): Likewise.
12765 * sysdeps/microblaze/dl-machine.h (elf_machine_rela): Likewise.
12766 * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
12767 Likewise.
12768 (elf_machine_reloc): Likewise.
12769 (elf_machine_got_rel): Likewise.
12770 * sysdeps/mips/dl-trampoline.c (__dl_runtime_resolve): Likewise.
12771 * sysdeps/nios2/dl-machine.h (elf_machine_rela): Likewise.
12772 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
12773 Likewise.
12774 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
12775 Likewise.
12776 * sysdeps/riscv/dl-machine.h (elf_machine_rela): Likewise.
12777 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
12778 Likewise.
12779 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela):
12780 Likewise.
12781 * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
12782 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela):
12783 Likewise.
12784 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
12785 Likewise.
12786 * sysdeps/tile/dl-machine.h (elf_machine_rela): Likewise.
12787 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
12788
12789 2018-04-04 Zack Weinberg <zackw@panix.com>
12790
12791 * sysdeps/generic/internal-signals.h: Include signal.h,
12792 sigsetops.h, and stdbool.h.
12793 (__libc_signal_block_all): Actually block all signals.
12794 (__libc_signal_block_app): Likewise.
12795 (__libc_signal_restore_set): Actually restore the signal mask.
12796
12797 2018-04-04 Florian Weimer <fweimer@redhat.com>
12798
12799 inet: Actually build and run tst-deadline.
12800 * inet/Makefile (tests-internal): Add tst-deadline and do not
12801 overwrite the variable.
12802 (tests-static-internal): Remove variable.
12803
12804 2018-04-03 H.J. Lu <hongjiu.lu@intel.com>
12805
12806 [BZ #22947]
12807 * bits/uio-ext.h (RWF_APPEND): New.
12808 * sysdeps/unix/sysv/linux/bits/uio-ext.h (RWF_APPEND): Likewise.
12809 * manual/llio.texi: Document RWF_APPEND.
12810 * misc/tst-preadvwritev2-common.c (RWF_APPEND): New.
12811 (RWF_SUPPORTED): Add RWF_APPEND.
12812
12813 2018-04-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12814
12815 [BZ #22391]
12816 * nptl/sigaction.c (__sigaction): Use __is_internal_signal to
12817 check for internal nptl signals.
12818 * nptl/sigaction.c (__sigaction): Likewise.
12819 * signal/sigaddset.c (sigaddset): Likewise.
12820 * signal/sigdelset.c (sigdelset): Likewise.
12821 * sysdeps/posix/signal.c (__bsd_signal): Likewise.
12822 * sysdeps/posix/sigset.c (sigset): Call and check sigaddset return
12823 value.
12824 * signal/sigfillset.c (sigfillset): User __clear_internal_signals
12825 to filter out internal nptl signals.
12826 * signal/tst-sigset.c (do_test): Check ech signal indidually and
12827 also check realtime signals using standard macros.
12828 * sysdeps/generic/internal-signals.h (__clear_internal_signals,
12829 __is_internal_signal, __libc_signal_block_all,
12830 __libc_signal_block_app, __libc_signal_restore_set): New functions.
12831 * sysdeps/nptl/sigfillset.c: Remove file.
12832 * sysdeps/unix/sysv/linux/internal-signals.h (__is_internal_signal):
12833 Change return to bool.
12834 (__clear_internal_signals): Remove SIGTIMER clean since it is
12835 equal to SIGCANEL on Linux.
12836 * sysdeps/unix/sysv/linux/sigtimedwait.c (__sigtimedwait): Assume
12837 signal set was constructed using standard functions.
12838
12839 2018-04-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
12840
12841 * sysdeps/mach/hurd/if_index.c (__if_nametoindex): Return ENODEV if
12842 ifname is too long.
12843 * hurd/hurdsig.c (interrupted_reply_port_location): Use
12844 DIAG_IGNORE_NEEDS_COMMENT to silence warning with GCC 6 and before.
12845 * sysdeps/mach/hurd/i386/exc2signal.c (_hurd_exception2signal): Add
12846 hidden def.
12847 * mach/spin-lock.c (__mutex_unlock): Add hidden def.
12848 * signal/sigaddset.c: Include <sigsetopts.h>.
12849 * signal/sigdelset.c: Likewise.
12850
12851 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
12852
12853 * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Cleanup ifdefs.
12854 (__cos): Likewise.
12855 * sysdeps/ieee754/dbl-64/s_sin.c (__sincos): Refactor using the same
12856 logic as sin and cos.
12857
12858 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
12859
12860 * sysdeps/ieee754/dbl-64/s_sin.c (do_sin): Use TAYLOR_SIN for small
12861 inputs. Return correct sign.
12862 (do_sincos): Remove small input check before do_sin, let do_sin set
12863 the sign.
12864 (__sin): Likewise.
12865 (__cos): Likewise.
12866
12867 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
12868
12869 * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SLOW): Remove.
12870 (do_cos_slow): Likewise.
12871 (do_sin_slow): Likewise.
12872 (reduce_and_compute): Likewise.
12873 (slow): Likewise.
12874 (slow1): Likewise.
12875 (slow2): Likewise.
12876 (sloww): Likewise.
12877 (sloww1): Likewise.
12878 (sloww2): Likewise.
12879 (bslow): Likewise.
12880 (bslow1): Likewise.
12881 (bslow2): Likewise.
12882 (cslow2): Likewise.
12883
12884 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
12885
12886 * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SIN): Remove cor parameter.
12887 (do_cos): Remove corp parameter and calculations.
12888 (do_sin): Likewise.
12889 (do_sincos): Remove cor variable.
12890 (__sin): Use do_sincos for huge inputs.
12891 (__cos): Likewise.
12892 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
12893 (reduce_and_compute_sincos): Remove unused function.
12894
12895 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
12896
12897 * sysdeps/ieee754/dbl-64/s_sin.c (reduce_sincos_1): Rename to
12898 reduce_sincos, improve accuracy to 136 bits.
12899 (do_sincos_1): Rename to do_sincos, remove fallbacks to slow functions.
12900 (__sin): Use improved reduction and simplified do_sincos calculation.
12901 (__cos): Likewise.
12902 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
12903
12904 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
12905
12906 * sysdeps/ieee754/dbl-64/s_sin.c (reduce_sincos_2): Remove function.
12907 (do_sincos_2): Likewise.
12908 (__sin): Remove middle range reduction case.
12909 (__cos): Likewise.
12910 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Remove middle range
12911 reduction case.
12912
12913 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
12914
12915 * sysdeps/aarch64/libm-test-ulps: Update ULP for sin, cos, sincos.
12916 * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Remove slow paths for small
12917 inputs.
12918 (__cos): Likewise.
12919 * sysdeps/x86_64/fpu/libm-test-ulps: Update ULP for sin, cos, sincos.
12920
12921 2018-04-03 Joseph Myers <joseph@codesourcery.com>
12922
12923 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
12924 version to 4.16
12925
12926 2018-04-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12927
12928 * sysdeps/posix/opendir.c (o_directory_works, tryopen_o_directory):
12929 Remove definitions.
12930 (opendir_oflags): Use O_DIRECTORY regardless.
12931 (__opendir, __opendirat): Remove need_isdir_precheck usage.
12932 * sysdeps/unix/sysv/linux/opendir.c: Remove file.
12933
12934 2018-04-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
12935
12936 * sysdeps/mach/hurd/bits/local_lim.h (_POSIX_THREAD_KEYS_MAX,
12937 _POSIX_THREAD_DESTRUCTOR_ITERATIONS, _POSIX_THREAD_THREADS_MAX): Define
12938 macros.
12939 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_THREADS,
12940 _POSIX_THREAD_ATTR_STACKSIZE, _POSIX_THREAD_ATTR_STACKADDR,
12941 _POSIX_SEMAPHORES, _POSIX_READER_WRITER_LOCKS, _POSIX_TIMEOUTS,
12942 _POSIX_SPIN_LOCKS, _POSIX_BARRIERS): Define macros to 200809L.
12943 * sysdeps/mach/hurd/net/if_ppp.h: Remove file.
12944 * sysdeps/mach/hurd/Makefile (sysdep_headers): Remove net/if_ppp.h.
12945
12946 * htl/Makefile: Bump licence to LGPL 2.1+.
12947 * htl/alloca_cutoff.c: Likewise.
12948 * htl/cthreads-compat.c: Likewise.
12949 * htl/lockfile.c: Likewise.
12950 * htl/pt-alloc.c: Likewise.
12951 * htl/pt-cancel.c: Likewise.
12952 * htl/pt-cleanup.c: Likewise.
12953 * htl/pt-create.c: Likewise.
12954 * htl/pt-dealloc.c: Likewise.
12955 * htl/pt-detach.c: Likewise.
12956 * htl/pt-exit.c: Likewise.
12957 * htl/pt-getattr.c: Likewise.
12958 * htl/pt-initialize.c: Likewise.
12959 * htl/pt-internal.h: Likewise.
12960 * htl/pt-join.c: Likewise.
12961 * htl/pt-self.c: Likewise.
12962 * htl/pt-setcancelstate.c: Likewise.
12963 * htl/pt-setcanceltype.c: Likewise.
12964 * htl/pt-sigmask.c: Likewise.
12965 * htl/pt-spin-inlines.c: Likewise.
12966 * htl/pt-testcancel.c: Likewise.
12967 * htl/pt-yield.c: Likewise.
12968 * htl/tests/test-1.c: Likewise.
12969 * htl/tests/test-10.c: Likewise.
12970 * htl/tests/test-11.c: Likewise.
12971 * htl/tests/test-12.c: Likewise.
12972 * htl/tests/test-13.c: Likewise.
12973 * htl/tests/test-14.c: Likewise.
12974 * htl/tests/test-15.c: Likewise.
12975 * htl/tests/test-16.c: Likewise.
12976 * htl/tests/test-17.c: Likewise.
12977 * htl/tests/test-2.c: Likewise.
12978 * htl/tests/test-3.c: Likewise.
12979 * htl/tests/test-4.c: Likewise.
12980 * htl/tests/test-5.c: Likewise.
12981 * htl/tests/test-6.c: Likewise.
12982 * htl/tests/test-7.c: Likewise.
12983 * htl/tests/test-8.c: Likewise.
12984 * htl/tests/test-9.c: Likewise.
12985 * htl/tests/test-__pthread_destroy_specific-skip.c: Likewise.
12986 * sysdeps/htl/bits/cancelation.h: Likewise.
12987 * sysdeps/htl/bits/pthread-np.h: Likewise.
12988 * sysdeps/htl/bits/pthread.h: Likewise.
12989 * sysdeps/htl/bits/pthreadtypes.h: Likewise.
12990 * sysdeps/htl/bits/semaphore.h: Likewise.
12991 * sysdeps/htl/bits/types/__pthread_key.h: Likewise.
12992 * sysdeps/htl/bits/types/struct___pthread_attr.h: Likewise.
12993 * sysdeps/htl/bits/types/struct___pthread_barrier.h: Likewise.
12994 * sysdeps/htl/bits/types/struct___pthread_barrierattr.h: Likewise.
12995 * sysdeps/htl/bits/types/struct___pthread_cond.h: Likewise.
12996 * sysdeps/htl/bits/types/struct___pthread_condattr.h: Likewise.
12997 * sysdeps/htl/bits/types/struct___pthread_mutex.h: Likewise.
12998 * sysdeps/htl/bits/types/struct___pthread_mutexattr.h: Likewise.
12999 * sysdeps/htl/bits/types/struct___pthread_once.h: Likewise.
13000 * sysdeps/htl/bits/types/struct___pthread_rwlock.h: Likewise.
13001 * sysdeps/htl/bits/types/struct___pthread_rwlockattr.h: Likewise.
13002 * sysdeps/htl/old_pt-atfork.c: Likewise.
13003 * sysdeps/htl/pt-atfork.c: Likewise.
13004 * sysdeps/htl/pt-attr-destroy.c: Likewise.
13005 * sysdeps/htl/pt-attr-getdetachstate.c: Likewise.
13006 * sysdeps/htl/pt-attr-getguardsize.c: Likewise.
13007 * sysdeps/htl/pt-attr-getinheritsched.c: Likewise.
13008 * sysdeps/htl/pt-attr-getschedparam.c: Likewise.
13009 * sysdeps/htl/pt-attr-getschedpolicy.c: Likewise.
13010 * sysdeps/htl/pt-attr-getscope.c: Likewise.
13011 * sysdeps/htl/pt-attr-getstack.c: Likewise.
13012 * sysdeps/htl/pt-attr-getstackaddr.c: Likewise.
13013 * sysdeps/htl/pt-attr-getstacksize.c: Likewise.
13014 * sysdeps/htl/pt-attr-init.c: Likewise.
13015 * sysdeps/htl/pt-attr-setdetachstate.c: Likewise.
13016 * sysdeps/htl/pt-attr-setguardsize.c: Likewise.
13017 * sysdeps/htl/pt-attr-setinheritsched.c: Likewise.
13018 * sysdeps/htl/pt-attr-setschedparam.c: Likewise.
13019 * sysdeps/htl/pt-attr-setschedpolicy.c: Likewise.
13020 * sysdeps/htl/pt-attr-setscope.c: Likewise.
13021 * sysdeps/htl/pt-attr-setstack.c: Likewise.
13022 * sysdeps/htl/pt-attr-setstackaddr.c: Likewise.
13023 * sysdeps/htl/pt-attr-setstacksize.c: Likewise.
13024 * sysdeps/htl/pt-attr.c: Likewise.
13025 * sysdeps/htl/pt-barrier-destroy.c: Likewise.
13026 * sysdeps/htl/pt-barrier-init.c: Likewise.
13027 * sysdeps/htl/pt-barrier-wait.c: Likewise.
13028 * sysdeps/htl/pt-barrier.c: Likewise.
13029 * sysdeps/htl/pt-barrierattr-destroy.c: Likewise.
13030 * sysdeps/htl/pt-barrierattr-getpshared.c: Likewise.
13031 * sysdeps/htl/pt-barrierattr-init.c: Likewise.
13032 * sysdeps/htl/pt-barrierattr-setpshared.c: Likewise.
13033 * sysdeps/htl/pt-cond-brdcast.c: Likewise.
13034 * sysdeps/htl/pt-cond-destroy.c: Likewise.
13035 * sysdeps/htl/pt-cond-init.c: Likewise.
13036 * sysdeps/htl/pt-cond-signal.c: Likewise.
13037 * sysdeps/htl/pt-cond-timedwait.c: Likewise.
13038 * sysdeps/htl/pt-cond-wait.c: Likewise.
13039 * sysdeps/htl/pt-cond.c: Likewise.
13040 * sysdeps/htl/pt-condattr-destroy.c: Likewise.
13041 * sysdeps/htl/pt-condattr-getclock.c: Likewise.
13042 * sysdeps/htl/pt-condattr-getpshared.c: Likewise.
13043 * sysdeps/htl/pt-condattr-init.c: Likewise.
13044 * sysdeps/htl/pt-condattr-setclock.c: Likewise.
13045 * sysdeps/htl/pt-condattr-setpshared.c: Likewise.
13046 * sysdeps/htl/pt-destroy-specific.c: Likewise.
13047 * sysdeps/htl/pt-equal.c: Likewise.
13048 * sysdeps/htl/pt-getconcurrency.c: Likewise.
13049 * sysdeps/htl/pt-getcpuclockid.c: Likewise.
13050 * sysdeps/htl/pt-getschedparam.c: Likewise.
13051 * sysdeps/htl/pt-getspecific.c: Likewise.
13052 * sysdeps/htl/pt-init-specific.c: Likewise.
13053 * sysdeps/htl/pt-key-create.c: Likewise.
13054 * sysdeps/htl/pt-key-delete.c: Likewise.
13055 * sysdeps/htl/pt-key.h: Likewise.
13056 * sysdeps/htl/pt-mutex-destroy.c: Likewise.
13057 * sysdeps/htl/pt-mutex-getprioceiling.c: Likewise.
13058 * sysdeps/htl/pt-mutex-init.c: Likewise.
13059 * sysdeps/htl/pt-mutex-lock.c: Likewise.
13060 * sysdeps/htl/pt-mutex-setprioceiling.c: Likewise.
13061 * sysdeps/htl/pt-mutex-timedlock.c: Likewise.
13062 * sysdeps/htl/pt-mutex-trylock.c: Likewise.
13063 * sysdeps/htl/pt-mutex-unlock.c: Likewise.
13064 * sysdeps/htl/pt-mutexattr-destroy.c: Likewise.
13065 * sysdeps/htl/pt-mutexattr-getprioceiling.c: Likewise.
13066 * sysdeps/htl/pt-mutexattr-getprotocol.c: Likewise.
13067 * sysdeps/htl/pt-mutexattr-getpshared.c: Likewise.
13068 * sysdeps/htl/pt-mutexattr-gettype.c: Likewise.
13069 * sysdeps/htl/pt-mutexattr-init.c: Likewise.
13070 * sysdeps/htl/pt-mutexattr-setprioceiling.c: Likewise.
13071 * sysdeps/htl/pt-mutexattr-setprotocol.c: Likewise.
13072 * sysdeps/htl/pt-mutexattr-setpshared.c: Likewise.
13073 * sysdeps/htl/pt-mutexattr-settype.c: Likewise.
13074 * sysdeps/htl/pt-mutexattr.c: Likewise.
13075 * sysdeps/htl/pt-once.c: Likewise.
13076 * sysdeps/htl/pt-rwlock-attr.c: Likewise.
13077 * sysdeps/htl/pt-rwlock-destroy.c: Likewise.
13078 * sysdeps/htl/pt-rwlock-init.c: Likewise.
13079 * sysdeps/htl/pt-rwlock-rdlock.c: Likewise.
13080 * sysdeps/htl/pt-rwlock-timedrdlock.c: Likewise.
13081 * sysdeps/htl/pt-rwlock-timedwrlock.c: Likewise.
13082 * sysdeps/htl/pt-rwlock-tryrdlock.c: Likewise.
13083 * sysdeps/htl/pt-rwlock-trywrlock.c: Likewise.
13084 * sysdeps/htl/pt-rwlock-unlock.c: Likewise.
13085 * sysdeps/htl/pt-rwlock-wrlock.c: Likewise.
13086 * sysdeps/htl/pt-rwlockattr-destroy.c: Likewise.
13087 * sysdeps/htl/pt-rwlockattr-getpshared.c: Likewise.
13088 * sysdeps/htl/pt-rwlockattr-init.c: Likewise.
13089 * sysdeps/htl/pt-rwlockattr-setpshared.c: Likewise.
13090 * sysdeps/htl/pt-setconcurrency.c: Likewise.
13091 * sysdeps/htl/pt-setschedparam.c: Likewise.
13092 * sysdeps/htl/pt-setschedprio.c: Likewise.
13093 * sysdeps/htl/pt-setspecific.c: Likewise.
13094 * sysdeps/htl/pt-spin.c: Likewise.
13095 * sysdeps/htl/pt-startup.c: Likewise.
13096 * sysdeps/htl/pthread.h: Likewise.
13097 * sysdeps/htl/sem-close.c: Likewise.
13098 * sysdeps/htl/sem-destroy.c: Likewise.
13099 * sysdeps/htl/sem-getvalue.c: Likewise.
13100 * sysdeps/htl/sem-init.c: Likewise.
13101 * sysdeps/htl/sem-open.c: Likewise.
13102 * sysdeps/htl/sem-post.c: Likewise.
13103 * sysdeps/htl/sem-timedwait.c: Likewise.
13104 * sysdeps/htl/sem-trywait.c: Likewise.
13105 * sysdeps/htl/sem-unlink.c: Likewise.
13106 * sysdeps/htl/sem-wait.c: Likewise.
13107 * sysdeps/hurd/htl/pt-kill.c: Likewise.
13108 * sysdeps/i386/htl/pt-machdep.h: Likewise.
13109 * sysdeps/mach/htl/pt-block.c: Likewise.
13110 * sysdeps/mach/htl/pt-spin.c: Likewise.
13111 * sysdeps/mach/htl/pt-stack-alloc.c: Likewise.
13112 * sysdeps/mach/htl/pt-thread-alloc.c: Likewise.
13113 * sysdeps/mach/htl/pt-thread-start.c: Likewise.
13114 * sysdeps/mach/htl/pt-thread-terminate.c: Likewise.
13115 * sysdeps/mach/htl/pt-timedblock.c: Likewise.
13116 * sysdeps/mach/htl/pt-wakeup.c: Likewise.
13117 * sysdeps/mach/hurd/htl/bits/pthread-np.h: Likewise.
13118 * sysdeps/mach/hurd/htl/bits/types/struct___pthread_mutex.h: Likewise.
13119 * sysdeps/mach/hurd/htl/pt-attr-setstackaddr.c: Likewise.
13120 * sysdeps/mach/hurd/htl/pt-attr-setstacksize.c: Likewise.
13121 * sysdeps/mach/hurd/htl/pt-docancel.c: Likewise.
13122 * sysdeps/mach/hurd/htl/pt-hurd-cond-timedwait.c: Likewise.
13123 * sysdeps/mach/hurd/htl/pt-hurd-cond-wait.c: Likewise.
13124 * sysdeps/mach/hurd/htl/pt-mutex-consistent.c: Likewise.
13125 * sysdeps/mach/hurd/htl/pt-mutex-destroy.c: Likewise.
13126 * sysdeps/mach/hurd/htl/pt-mutex-getprioceiling.c: Likewise.
13127 * sysdeps/mach/hurd/htl/pt-mutex-init.c: Likewise.
13128 * sysdeps/mach/hurd/htl/pt-mutex-lock.c: Likewise.
13129 * sysdeps/mach/hurd/htl/pt-mutex-setprioceiling.c: Likewise.
13130 * sysdeps/mach/hurd/htl/pt-mutex-timedlock.c: Likewise.
13131 * sysdeps/mach/hurd/htl/pt-mutex-transfer-np.c: Likewise.
13132 * sysdeps/mach/hurd/htl/pt-mutex-trylock.c: Likewise.
13133 * sysdeps/mach/hurd/htl/pt-mutex-unlock.c: Likewise.
13134 * sysdeps/mach/hurd/htl/pt-mutex.h: Likewise.
13135 * sysdeps/mach/hurd/htl/pt-mutexattr-destroy.c: Likewise.
13136 * sysdeps/mach/hurd/htl/pt-mutexattr-getprioceiling.c: Likewise.
13137 * sysdeps/mach/hurd/htl/pt-mutexattr-getprotocol.c: Likewise.
13138 * sysdeps/mach/hurd/htl/pt-mutexattr-getpshared.c: Likewise.
13139 * sysdeps/mach/hurd/htl/pt-mutexattr-getrobust.c: Likewise.
13140 * sysdeps/mach/hurd/htl/pt-mutexattr-gettype.c: Likewise.
13141 * sysdeps/mach/hurd/htl/pt-mutexattr-init.c: Likewise.
13142 * sysdeps/mach/hurd/htl/pt-mutexattr-setprioceiling.c: Likewise.
13143 * sysdeps/mach/hurd/htl/pt-mutexattr-setprotocol.c: Likewise.
13144 * sysdeps/mach/hurd/htl/pt-mutexattr-setpshared.c: Likewise.
13145 * sysdeps/mach/hurd/htl/pt-mutexattr-setrobust.c: Likewise.
13146 * sysdeps/mach/hurd/htl/pt-mutexattr-settype.c: Likewise.
13147 * sysdeps/mach/hurd/htl/pt-sigstate-destroy.c: Likewise.
13148 * sysdeps/mach/hurd/htl/pt-sigstate-init.c: Likewise.
13149 * sysdeps/mach/hurd/htl/pt-sigstate.c: Likewise.
13150 * sysdeps/mach/hurd/htl/pt-sysdep.c: Likewise.
13151 * sysdeps/mach/hurd/htl/pt-sysdep.h: Likewise.
13152 * sysdeps/mach/hurd/i386/htl/pt-machdep.c: Likewise.
13153 * sysdeps/mach/hurd/i386/htl/pt-setup.c: Likewise.
13154
13155 * NEWS: Announce that glibc now builds unpatched on GNU/Hurd.
13156 * README: Remove the mention of out-of-tree patches needed for
13157 GNU/Hurd.
13158
13159 * sysdeps/mach/hurd/bits/stat.h [!__USE_MISC && __USE_ATFILE]
13160 (UTIME_NOW, UTIME_OMIT): Define macros.
13161
13162 * htl/cthreads-compat.c (__cthread_detach): Call __pthread_detach
13163 instead of pthread_detach.
13164 (__cthread_fork): Call __pthread_create instead of pthread_create.
13165 (__cthread_keycreate): Call __pthread_key_create instead of
13166 pthread_key_create.
13167 (__cthread_getspecific): Call __pthread_getspecific instead of
13168 pthread_getspecific.
13169 (__cthread_setspecific): Call __pthread_setspecific instead of
13170 pthread_setspecific.
13171 * htl/pt-alloc.c (__pthread_alloc): Call __pthread_mutex_lock and
13172 __pthread_mutex_unlock instead of pthread_mutex_lock and
13173 pthread_mutex_unlock.
13174 * htl/pt-cleanup.c (__pthread_get_cleanup_stack): Rename to
13175 ___pthread_get_cleanup_stack.
13176 (__pthread_get_cleanup_stack): New strong alias.
13177 * htl/pt-create.c: Include <pthreadP.h>.
13178 (entry_point): Call __pthread_exit instead of pthread_exit.
13179 (pthread_create): Rename to __pthread_create.
13180 (pthread_create): New strong alias.
13181 * htl/pt-detach.c (pthread_detach): Rename to __pthread_detach.
13182 (pthread_detach): New strong alias.
13183 (__pthread_detach): Call __pthread_cond_broadcast instead of
13184 pthread_cond_broadcast.
13185 * htl/pt-exit.c: Include <pthreadP.h>.
13186 (__pthread_exit): Call __pthread_setcancelstate and
13187 ___pthread_get_cleanup_stack instead of pthread_setcancelstate and
13188 __pthread_get_cleanup_stack.
13189 * htl/pt-testcancel.c: Include <pthreadP.h>.
13190 (pthread_testcancel): Call __pthread_exit instead of pthread_exit.
13191 * sysdeps/htl/pt-attr-getstack.c: Include <pthreadP.h>
13192 (__pthread_attr_getstack): Call __pthread_attr_getstackaddr and
13193 __pthread_attr_getstacksize instead of pthread_attr_getstackaddr and
13194 pthread_attr_getstacksize.
13195 * sysdeps/htl/pt-attr-getstackaddr.c (pthread_attr_getstackaddr):
13196 Rename to __pthread_attr_getstackaddr.
13197 (pthread_attr_getstackaddr): New strong alias.
13198 * sysdeps/htl/pt-attr-getstacksize.c (pthread_attr_getstacksize):
13199 Rename to __pthread_attr_getstacksize.
13200 (pthread_attr_getstacksize): New strong alias.
13201 * sysdeps/htl/pt-attr-setstack.c: Include <pthreadP.h>.
13202 (pthread_attr_setstack): Rename to __pthread_attr_setstack.
13203 (pthread_attr_setstack): New strong alias.
13204 (__pthread_attr_setstack): Call __pthread_attr_getstacksize,
13205 __pthread_attr_setstacksize and __pthread_attr_setstackaddr instead of
13206 pthread_attr_getstacksize, pthread_attr_setstacksize and
13207 pthread_attr_setstackaddr.
13208 * sysdeps/htl/pt-attr-setstackaddr.c (pthread_attr_setstackaddr):
13209 Rename to __pthread_attr_setstackaddr.
13210 (pthread_attr_setstackaddr): New strong alias.
13211 * sysdeps/htl/pt-attr-setstacksize.c (pthread_attr_setstacksize):
13212 Rename to __pthread_attr_setstacksize.
13213 (pthread_attr_setstacksize): New strong alias.
13214 * sysdeps/htl/pt-cond-timedwait.c: Include <pthreadP.h>.
13215 (__pthread_cond_timedwait_internal): Use __pthread_exit instead of
13216 pthread_exit.
13217 * sysdeps/htl/pt-key-create.c: Include <pthreadP.h>.
13218 (__pthread_key_create): New hidden def.
13219 * sysdeps/htl/pt-key.h: Include <pthreadP.h>.
13220 * sysdeps/htl/pthreadP.h (_pthread_mutex_init,
13221 __pthread_cond_broadcast, __pthread_create, __pthread_detach,
13222 __pthread_exit, __pthread_key_create, __pthread_getspecific,
13223 __pthread_setspecific, __pthread_setcancelstate,
13224 __pthread_attr_getstackaddr, __pthread_attr_setstackaddr,
13225 __pthread_attr_getstacksize, __pthread_attr_setstacksize,
13226 __pthread_attr_setstack, ___pthread_get_cleanup_stack): New
13227 declarations.
13228 (__pthread_key_create, _pthread_mutex_init): New hidden declarations.
13229 * sysdeps/mach/hurd/htl/pt-attr-setstackaddr.c
13230 (pthread_attr_setstackaddr): Rename to __pthread_attr_setstackaddr.
13231 (pthread_attr_setstackaddr): New strong alias.
13232 * sysdeps/mach/hurd/htl/pt-attr-setstacksize.c
13233 (pthread_attr_setstacksize): Rename to __pthread_attr_setstacksize.
13234 (pthread_attr_setstacksize): New strong alias.
13235 * sysdeps/mach/hurd/htl/pt-docancel.c: Include <pthreadP.h>.
13236 (call_exit): Call __pthread_exit instead of pthread_exit.
13237 * sysdeps/mach/hurd/htl/pt-mutex-init.c: Include <pthreadP.h>.
13238 (_pthread_mutex_init): New hidden definition.
13239 * sysdeps/mach/hurd/htl/pt-sysdep.c: Include <pthreadP.h>.
13240 (_init_routine): Call __pthread_attr_init and __pthread_attr_setstack
13241 instead of pthread_attr_init and pthread_attr_setstack.
13242
13243 * hurd/hurdauth.c (_S_msg_add_auth): Call __vm_allocate and
13244 __vm_deallocate instead of vm_allocate and vm_deallocate.
13245 * hurd/hurdmsg.c (_S_msg_set_env_variable): Call __setenv instead of
13246 setenv.
13247 * hurd/hurdprio.c (_hurd_priority_which_map): Call __geteuid instead
13248 of geteuid.
13249 * hurd/path-lookup.c (file_name_path_scan): Call __strdup instead of
13250 strdup.
13251 * hurd/siginfo.c: Include <libioP.h>.
13252 (_hurd_siginfo_handler): Call _IO_puts instead of puts.
13253 * hurd/xattr.c (_hurd_xattr_get, _hurd_xattr_set): Call __munmap instead of
13254 munmap.
13255 * mach/devstream.c: Include <libioP.h>.
13256 (dealloc_ref): Call __mach_port_deallocate instead of
13257 mach_port_deallocate.
13258 (mach_open_devstream): Call _IO_fopencookie instead of fopencookie.
13259 Call __mach_port_deallocate instead of mach_port_deallocate.
13260 * stdlib/canonicalize.c (__realpath): Call __pathconf instead of
13261 pathconf.
13262 * sysdeps/mach/hurd/ifreq.c (__ifreq): Call __munmap instead of
13263 munmap.
13264 * sysdeps/mach/hurd/ifreq.h (__if_freereq): Likewise.
13265 * sysdeps/mach/hurd/ptrace.c (ptrace): Call __kill instead of kill.
13266 * sysdeps/mach/hurd/sendfile64.c (sendfile64): Call __munmap instead
13267 of munmap.
13268 * sysdeps/mach/hurd/socketpair.c (__socketpair): Call __close instead
13269 of close.
13270 * sysdeps/posix/clock_getres.c (realtime_getres): Call __sysconf
13271 instead of sysconf.
13272 * sysdeps/pthread/timer_gettime.c (timer_gettime): Call
13273 __clock_gettime instead of clock_gettime.
13274 * sysdeps/pthread/timer_routines.c (thread_func): Likewise.
13275 * sysdeps/pthread/timer_settime.c (timer_settime): Likewise.
13276 * sysdeps/unix/bsd/gtty.c (gtty): Call __ioctl instead of ioctl.
13277 * sysdeps/unix/bsd/stty.c (stty): Likewise.
13278 * sysdeps/unix/bsd/tcflow.c (tcflow): Call __tcgetattr instead of
13279 tcgetattr.
13280 * sysdeps/unix/clock_nanosleep.c (__clock_nanosleep): Call
13281 __clock_gettime and __nanosleep instead of clock_gettime and
13282 nanosleep.
13283 * hurd/catch-signal.c (hurd_catch_signal): Rename to
13284 __hurd_catch_signal.
13285 (hurd_catch_signal): New strong alias.
13286 (hurd_safe_memset, hurd_safe_copyout, hurd_safe_copyin): Call
13287 __hurd_catch_signal instead of hurd_catch_signal.
13288 * hurd/exc2signal.c (_hurd_exception2signal): Add hidden def.
13289 * hurd/hurdexec.c (_hurd_init): Add hidden def.
13290 * hurd/hurdinit.c (_hurd_init): Add hidden def.
13291 * hurd/hurdsig.c: Include <mach/mig_support.h>.
13292 (_hurd_thread_sigstate): Add hidden def.
13293 (_hurd_internal_post_signal): Use __mutex_unlock instead of
13294 mutex_unlock.
13295 * hurd/intern-fd.c (_hurd_intern_fd): Add hidden def.
13296 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Add hidden def.
13297 * hurd/path-lookup.c (hurd_file_name_path_lookup): Rename to
13298 __hurd_file_name_path_lookup.
13299 (hurd_file_name_path_lookup): New strong alias.
13300 (file_name_path_lookup): Call __hurd_file_name_path_lookup instead of
13301 hurd_file_name_path_lookup.
13302 * mach/errstring.c (mach_error_type): Add hidden def.
13303 * mach/msg-destroy.c (__mach_msg_destroy): Add hidden def.
13304 * mach/mutex-init.c (__mutex_init): Add hidden def.
13305 * mach/spin-lock.c (__spin_lock_locked, __spin_lock, __spin_unlock,
13306 __spin_try_lock, __mutex_lock, __mutex_trylock): Add hidden defs.
13307 * mach/spin-solid.c (__spin_lock_solid): Add hidden def.
13308 * sysdeps/mach/hurd/getcwd.c
13309 (_hurd_canonicalize_directory_name_internal): Rename to
13310 __hurd_canonicalize_directory_name_internal.
13311 (_hurd_canonicalize_directory_name_internal): New strong alias.
13312 (__canonicalize_directory_name_internal, __getcwd): Call
13313 __hurd_canonicalize_directory_name_internal instead of
13314 _hurd_canonicalize_directory_name_internal.
13315 * sysdeps/mach/hurd/mig-reply.c: Include <mach/mig_support.h>.
13316 (__mig_get_reply_port, __mig_dealloc_reply_port, __mig_init): Add
13317 hidden defs.
13318 * sysdeps/hurd/include/hurd.h: New file.
13319 * sysdeps/hurd/include/hurd/fd.h: New file.
13320 * sysdeps/hurd/include/hurd/signal.h: New file.
13321 * sysdeps/mach/include/lock-intern.h: New file.
13322 * sysdeps/mach/include/mach.h: New file.
13323 * sysdeps/mach/include/mach/mig_support.h: New file.
13324 * sysdeps/mach/include/mach_error.h: New file.
13325 * sysdeps/hurd/include/hurd/signal.h (_hurd_raise_signal): Add hidden
13326 prototype.
13327 * hurd/hurd-raise.c (_hurd_raise_signal): Add hidden def.
13328 * hurd/Makefile ($(inlines:%=$(objpfx)%.c): Define
13329 _HEADER_H_HIDDEN_DEF macro.
13330 * sysdeps/hurd/include/hurd/fd.h (_hurd_fd_error,
13331 _hurd_fd_error_signal): Add hidden prototype.
13332 [_HURD_FD_H_HIDDEN_DEF] (_hurd_fd_error, _hurd_fd_error_signal): Add
13333 hidden def.
13334 * libio/iolibio.h (_IO_puts): New hidden prototype.
13335 * libio/ioputs.c (_IO_puts): New hidden def.
13336 * sysdeps/mach/hurd/localplt.data: New file.
13337
13338 2018-04-02 Agustina Arzille <avarzille@riseup.net>
13339 Amos Jeffries <squid3@treenet.co.nz>
13340 David Michael <fedora.dm0@gmail.com>
13341 Marco Gerards <marco@gnu.org>
13342 Marcus Brinkmann <marcus@gnu.org>
13343 Neal H. Walfield <neal@gnu.org>
13344 Pino Toscano <toscano.pino@tiscali.it>
13345 Richard Braun <rbraun@sceen.net>
13346 Roland McGrath <roland@gnu.org>
13347 Samuel Thibault <samuel.thibault@ens-lyon.org>
13348 Thomas DiModica <ricinwich@yahoo.com>
13349 Thomas Schwinge <tschwinge@gnu.org>
13350
13351 * htl: New directory.
13352 * sysdeps/htl: New directory.
13353 * sysdeps/hurd/htl: New directory.
13354 * sysdeps/i386/htl: New directory.
13355 * sysdeps/mach/htl: New directory.
13356 * sysdeps/mach/hurd/htl: New directory.
13357 * sysdeps/mach/hurd/i386/htl: New directory.
13358 * nscd/Depend, resolv/Depend, rt/Depend: Add htl dependency.
13359 * sysdeps/mach/hurd/i386/Implies: Add mach/hurd/i386/htl imply.
13360 * sysdeps/mach/hurd/i386/libpthread.abilist: New file.
13361
13362 2018-04-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
13363
13364 * sysdeps/pthread/timer_routines.c (__timer_thread_start): Block all
13365 signals in thread created for runing timers.
13366
13367 2018-04-01 Florian Weimer <fweimer@redhat.com>
13368
13369 * support/support_format_addrinfo.c (support_format_addrinfo):
13370 Include unknown error number in formatted result.
13371
13372 2018-03-29 Florian Weimer <fweimer@redhat.com>
13373
13374 * sysdeps/unix/sysv/linux/i386/tst-bz21269.c (do_test): Also
13375 capture SIGBUS.
13376
13377 2018-03-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13378
13379 * sysdeps/unix/sysv/linux/arch-fork.h [__ASSUME_CLONE_BACKWARDS]
13380 (arch_fork): Issue INLINE_CLONE_SYSCALL if defined.
13381 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
13382 (__ASSUME_CLONE_BACKWARDS): Define.
13383
13384 2018-03-27 Jesse Hathaway <jesse@mbuki-mvuki.org>
13385
13386 [BZ #23024]
13387 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Return
13388 early when linux sentinel value is set.
13389
13390 2018-03-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
13391
13392 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_MEMLOCK): Define.
13393
13394 2018-03-27 Andreas Schwab <schwab@suse.de>
13395
13396 [BZ #23005]
13397 * resolv/res_send.c (__res_context_send): Return ENOMEM if
13398 allocation of private copy of nsaddr_list fails.
13399
13400 2018-03-26 Joseph Myers <joseph@codesourcery.com>
13401
13402 [BZ #16552]
13403 * sysdeps/unix/sysv/linux/generic/umount.c: Move to ....
13404 * sysdeps/unix/sysv/linux/umount.c: ... here.
13405 * sysdeps/unix/sysv/linux/arm/umount.c: Remove file.
13406 * sysdeps/unix/sysv/linux/hppa/umount.c: Likewise.
13407 * sysdeps/unix/sysv/linux/ia64/umount.c: Likewise.
13408 * sysdeps/unix/sysv/linux/mips/mips64/umount.c: Likewise.
13409 * sysdeps/unix/sysv/linux/powerpc/powerpc64/umount.c: Likewise.
13410 * sysdeps/unix/sysv/linux/umount.S: Likewise.
13411 * sysdeps/unix/sysv/linux/x86_64/umount.c: Likewise.
13412
13413 2018-03-26 Andreas Schwab <schwab@suse.de>
13414
13415 * elf/elf.h (R_RISCV_BRANCH, R_RISCV_JAL, R_RISCV_CALL)
13416 (R_RISCV_CALL_PLT, R_RISCV_GOT_HI20, R_RISCV_TLS_GOT_HI20)
13417 (R_RISCV_TLS_GD_HI20, R_RISCV_PCREL_HI20, R_RISCV_PCREL_LO12_I)
13418 (R_RISCV_PCREL_LO12_S, R_RISCV_HI20, R_RISCV_LO12_I)
13419 (R_RISCV_LO12_S, R_RISCV_TPREL_HI20, R_RISCV_TPREL_LO12_I)
13420 (R_RISCV_TPREL_LO12_S, R_RISCV_TPREL_ADD, R_RISCV_ADD8)
13421 (R_RISCV_ADD16, R_RISCV_ADD32, R_RISCV_ADD64, R_RISCV_SUB8)
13422 (R_RISCV_SUB16, R_RISCV_SUB32, R_RISCV_SUB64)
13423 (R_RISCV_GNU_VTINHERIT, R_RISCV_GNU_VTENTRY, R_RISCV_ALIGN)
13424 (R_RISCV_RVC_BRANCH, R_RISCV_RVC_JUMP, R_RISCV_RVC_LUI)
13425 (R_RISCV_GPREL_I, R_RISCV_GPREL_S, R_RISCV_TPREL_I)
13426 (R_RISCV_TPREL_S, R_RISCV_RELAX, R_RISCV_SUB6, R_RISCV_SET6)
13427 (R_RISCV_SET8, R_RISCV_SET16, R_RISCV_SET32, R_RISCV_32_PCREL)
13428 (R_RISCV_NUM): Define.
13429
13430 2018-03-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
13431
13432 * include/errno.h [IS_IN(rtld) && !RTLD_PRIVATE_ERRNO]: Do not use the
13433 TLS declaration of errno.
13434 * sysdeps/generic/libc-start.h [!SHARED] (ARCH_SETUP_TLS): Define to
13435 __libc_setup_tls.
13436 * sysdeps/unix/sysv/linux/powerpc/libc-start.h [!SHARED]
13437 (ARCH_SETUP_TLS): Likewise.
13438 * sysdeps/mach/hurd/libc-start.h: New file copied from
13439 sysdeps/generic/libc-start.h, but define ARCH_SETUP_TLS to empty.
13440 * csu/libc-start.c [!SHARED] (LIBC_START_MAIN): Call ARCH_SETUP_TLS
13441 instead of __libc_setup_tls.
13442 * sysdeps/mach/hurd/i386/init-first.c [!SHARED] (init1): Call
13443 __libc_setup_tls before initializing libpthread and running _hurd_init
13444 which starts the signal thread.
13445 * sysdeps/generic/ldsodefs.h [SHARED] (__pthread_initialize_minimal):
13446 Declare function.
13447 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
13448
13449 2018-03-24 H.J. Lu <hongjiu.lu@intel.com>
13450
13451 [BZ #22998]
13452 * elf/Makefile (tests): Add $(tests-execstack-$(have-z-execstack))
13453 after it is defined.
13454
13455 2018-03-23 Andrew Senkevich <andrew.senkevich@intel.com>
13456 Max Horn <max@quendi.de>
13457
13458 [BZ #22644]
13459 CVE-2017-18269
13460 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Fixed
13461 branch conditions.
13462 * string/test-memmove.c (do_test2): New testcase.
13463
13464 2018-03-22 Joseph Myers <joseph@codesourcery.com>
13465
13466 * sysdeps/generic/frame.h: Remove file.
13467 * sysdeps/arm/frame.h: Likewise.
13468 * sysdeps/hppa/frame.h: Likewise.
13469 * sysdeps/generic/sigcontextinfo.h (SIGCONTEXT_EXTRA_ARGS): Remove
13470 macro.
13471 (GET_FRAME): Likewise.
13472 (GET_STACK): Likewise.
13473 (CALL_SIGHANDLER): Likewise.
13474 * sysdeps/mach/hurd/i386/sigcontextinfo.h (SIGCONTEXT_EXTRA_ARGS):
13475 Likewise.
13476 (GET_FRAME): Likewise.
13477 (GET_STACK): Likewise.
13478 (CALL_SIGHANDLER): Likewise.
13479 * sysdeps/unix/sysv/linux/alpha/sigcontextinfo.h
13480 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13481 (GET_FRAME): Likewise.
13482 (GET_STACK): Likewise.
13483 (CALL_SIGHANDLER): Likewise.
13484 * sysdeps/unix/sysv/linux/arm/sigcontextinfo.h
13485 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13486 (GET_FRAME): Likewise.
13487 (GET_STACK): Likewise.
13488 (ADVANCE_STACK_FRAME): Likewise.
13489 (CALL_SIGHANDLER): Likewise.
13490 * sysdeps/unix/sysv/linux/i386/sigcontextinfo.h
13491 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13492 (GET_FRAME): Likewise.
13493 (GET_STACK): Likewise.
13494 (CALL_SIGHANDLER): Likewise.
13495 * sysdeps/unix/sysv/linux/ia64/sigcontextinfo.h
13496 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13497 (GET_FRAME): Likewise.
13498 (GET_STACK): Likewise.
13499 (CALL_SIGHANDLER): Likewise.
13500 * sysdeps/unix/sysv/linux/m68k/sigcontextinfo.h
13501 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13502 (GET_FRAME): Likewise.
13503 (GET_STACK): Likewise.
13504 (CALL_SIGHANDLER): Likewise.
13505 * sysdeps/unix/sysv/linux/microblaze/sigcontextinfo.h
13506 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13507 (GET_FRAME): Likewise.
13508 (GET_STACK): Likewise.
13509 (CALL_SIGHANDLER): Likewise.
13510 * sysdeps/unix/sysv/linux/mips/sigcontextinfo.h
13511 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13512 (GET_FRAME): Likewise.
13513 (GET_STACK): Likewise.
13514 (CALL_SIGHANDLER): Likewise.
13515 * sysdeps/unix/sysv/linux/powerpc/sigcontextinfo.h
13516 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13517 (GET_FRAME): Likewise.
13518 (GET_STACK): Likewise.
13519 (CALL_SIGHANDLER): Likewise.
13520 * sysdeps/unix/sysv/linux/riscv/sigcontextinfo.h
13521 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13522 (GET_FRAME): Likewise.
13523 (GET_STACK): Likewise.
13524 (CALL_SIGHANDLER): Likewise.
13525 * sysdeps/unix/sysv/linux/s390/sigcontextinfo.h
13526 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13527 (GET_FRAME): Likewise.
13528 (GET_STACK): Likewise.
13529 (CALL_SIGHANDLER): Likewise.
13530 * sysdeps/unix/sysv/linux/sh/sigcontextinfo.h
13531 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13532 (GET_FRAME): Likewise.
13533 (GET_STACK): Likewise.
13534 (CALL_SIGHANDLER): Likewise.
13535 * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h
13536 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13537 (FIRST_FRAME_POINTER): Likewise.
13538 (ADVANCE_STACK_FRAME): Likewise.
13539 (GET_STACK): Likewise.
13540 (GET_FRAME): Likewise.
13541 (CALL_SIGHANDLER): Likewise.
13542 * sysdeps/unix/sysv/linux/sparc/sparc64/sigcontextinfo.h
13543 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13544 (ADVANCE_STACK_FRAME): Likewise.
13545 (GET_STACK): Likewise.
13546 (GET_FRAME): Likewise.
13547 (CALL_SIGHANDLER): Likewise.
13548 * sysdeps/unix/sysv/linux/tile/sigcontextinfo.h
13549 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13550 (GET_FRAME): Likewise.
13551 (GET_STACK): Likewise.
13552 (CALL_SIGHANDLER): Likewise.
13553 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h
13554 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13555 (GET_FRAME): Likewise.
13556 (GET_STACK): Likewise.
13557 (CALL_SIGHANDLER): Likewise.
13558
13559 2018-03-21 Joseph Myers <joseph@codesourcery.com>
13560
13561 * sysdeps/x86_64/backtrace.c: Move to ....
13562 * debug/backtrace.c: ... here.
13563 * sysdeps/aarch64/backtrace.c: Remove file.
13564 * sysdeps/alpha/backtrace.c: Likewise.
13565 * sysdeps/hppa/backtrace.c: Likewise.
13566 * sysdeps/ia64/backtrace.c: Likewise.
13567 * sysdeps/mips/backtrace.c: Likewise.
13568 * sysdeps/nios2/backtrace.c: Likewise.
13569 * sysdeps/riscv/backtrace.c: Likewise.
13570 * sysdeps/sh/backtrace.c: Likewise.
13571 * sysdeps/tile/backtrace.c: Likewise.
13572
13573 2018-03-20 Joseph Myers <joseph@codesourcery.com>
13574
13575 [BZ #22987]
13576 * sysdeps/powerpc/bits/mathinline.h (fdim): Remove inline
13577 function.
13578 (fdimf): Likewise.
13579 * sysdeps/sparc/fpu/bits/mathinline.h: Remove file.
13580
13581 [BZ #17343]
13582 * stdlib/random_r.c (__random_r): Use unsigned arithmetic for
13583 possibly overflowing computations.
13584
13585 2018-03-20 Samuel Thibault <samuel.thibault@ens-lyon.org>
13586
13587 * manual/errno.texi (EOWNERDEAD, ENOTRECOVERABLE): Remove errno
13588 values from Linux-specific section now that it is in the GNU section.
13589 * sysdeps/gnu/errlist.c: Regenerate.
13590
13591 2018-03-20 Joseph Myers <joseph@codesourcery.com>
13592
13593 * math/Makefile (libm-narrow-fns): Add sub.
13594 (libm-test-funcs-narrow): Likewise.
13595 * math/Versions (GLIBC_2.28): Add narrowing subtract functions.
13596 * math/bits/mathcalls-narrow.h (sub): Use __MATHCALL_NARROW.
13597 * math/gen-auto-libm-tests.c (test_functions): Add sub.
13598 * math/math-narrow.h (CHECK_NARROW_SUB): New macro.
13599 (NARROW_SUB_ROUND_TO_ODD): Likewise.
13600 (NARROW_SUB_TRIVIAL): Likewise.
13601 * sysdeps/ieee754/float128/float128_private.h (__fsubl): New
13602 macro.
13603 (__dsubl): Likewise.
13604 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fsub and
13605 dsub.
13606 (CFLAGS-nldbl-dsub.c): New variable.
13607 (CFLAGS-nldbl-fsub.c): Likewise.
13608 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
13609 __nldbl_dsubl.
13610 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_dsubl): New
13611 prototype.
13612 * manual/arith.texi (Misc FP Arithmetic): Document fsub, fsubl,
13613 dsubl, fMsubfN, fMsubfNx, fMxsubfN and fMxsubfNx.
13614 * math/auto-libm-test-in: Add tests of sub.
13615 * math/auto-libm-test-out-narrow-sub: New generated file.
13616 * math/libm-test-narrow-sub.inc: New file.
13617 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
13618 * sysdeps/ieee754/dbl-64/s_f32xsubf64.c: Likewise.
13619 * sysdeps/ieee754/dbl-64/s_fsub.c: Likewise.
13620 * sysdeps/ieee754/float128/s_f32subf128.c: Likewise.
13621 * sysdeps/ieee754/float128/s_f64subf128.c: Likewise.
13622 * sysdeps/ieee754/float128/s_f64xsubf128.c: Likewise.
13623 * sysdeps/ieee754/ldbl-128/s_dsubl.c: Likewise.
13624 * sysdeps/ieee754/ldbl-128/s_f64xsubf128.c: Likewise.
13625 * sysdeps/ieee754/ldbl-128/s_fsubl.c: Likewise.
13626 * sysdeps/ieee754/ldbl-128ibm/s_dsubl.c: Likewise.
13627 * sysdeps/ieee754/ldbl-128ibm/s_fsubl.c: Likewise.
13628 * sysdeps/ieee754/ldbl-96/s_dsubl.c: Likewise.
13629 * sysdeps/ieee754/ldbl-96/s_fsubl.c: Likewise.
13630 * sysdeps/ieee754/ldbl-opt/nldbl-dsub.c: Likewise.
13631 * sysdeps/ieee754/ldbl-opt/nldbl-fsub.c: Likewise.
13632 * sysdeps/ieee754/soft-fp/s_dsubl.c: Likewise.
13633 * sysdeps/ieee754/soft-fp/s_fsub.c: Likewise.
13634 * sysdeps/ieee754/soft-fp/s_fsubl.c: Likewise.
13635 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
13636 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
13637 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
13638 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
13639 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
13640 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
13641 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
13642 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
13643 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
13644 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
13645 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
13646 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
13647 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
13648 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
13649 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
13650 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
13651 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
13652 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
13653 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
13654 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
13655 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
13656 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
13657 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
13658 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
13659 * sysdeps/unix/sysv/linux/tile/tilegx32/libm.abilist: Likewise.
13660 * sysdeps/unix/sysv/linux/tile/tilegx64/libm.abilist: Likewise.
13661 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
13662 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
13663
13664 2018-03-19 Joseph Myers <joseph@codesourcery.com>
13665
13666 [BZ #20079]
13667 * elf/elf.h (SHT_X86_64_UNWIND): New macro.
13668
13669 2018-03-19 Wilco Dijkstra <wdijkstr@arm.com>
13670
13671 * benchtests/bench-timing.h (attribute_hidden): Undefine.
13672
13673 2018-03-18 Richard Braun <rbraun@sceen.net>
13674
13675 * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Use a temporary
13676 thread reference.
13677
13678 2018-03-18 Agustina Arzille <avarzille@riseup.net>
13679
13680 * sysdeps/mach/libc-lock.h (__libc_cleanup_frame): Define structure.
13681 (__libc_cleanup_fct): Define function.
13682 (__libc_cleanup_region_start, __libc_cleanup_region_end,
13683 __libc_cleanup_end): Rewrite implementation using
13684 __attribute__ ((__cleanup__)).
13685 (__libc_cleanup_push, __libc_cleanup_pop): New macros.
13686 * hurd/Makefile (routines): Add hurdlock.
13687 * hurd/Versions (GLIBC_PRIVATE): Added new entry to export the above
13688 interface.
13689 (HURD_CTHREADS_0.3): Remove __libc_getspecific.
13690 * hurd/hurdpid.c: Include <lowlevellock.h>
13691 (_S_msg_proc_newids): Use lll_wait to synchronize.
13692 * hurd/hurdsig.c: (reauth_proc): Use __mutex_lock and __mutex_unlock.
13693 * hurd/setauth.c: Include <hurdlock.h>, use integer for synchronization.
13694 * mach/Makefile (lock-headers): Remove machine-lock.h.
13695 * mach/lock-intern.h: Include <lowlevellock.h> instead of
13696 <machine-lock.h>.
13697 (__spin_lock_t): New type.
13698 (__SPIN_LOCK_INITIALIZER): New macro.
13699 (__spin_lock, __spin_unlock, __spin_try_lock, __spin_lock_locked,
13700 __mutex_init, __mutex_lock_solid, __mutex_unlock_solid, __mutex_lock,
13701 __mutex_unlock, __mutex_trylock): Use lll to implement locks.
13702 * mach/mutex-init.c: Include <lowlevellock.h> instead of <cthreads.h>.
13703 (__mutex_init): Initialize with lll.
13704 * manual/errno.texi (EOWNERDEAD, ENOTRECOVERABLE): New errno values.
13705 * sysdeps/mach/Makefile: Add libmachuser as dependencies for libs
13706 needing lll.
13707 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
13708 * sysdeps/mach/hurd/cthreads.c (__libc_getspecific): Remove function.
13709 * sysdeps/mach/hurd/bits/libc-lock.h: Remove file.
13710 * sysdeps/mach/hurd/setpgid.c: Include <lowlevellock.h>.
13711 (__setpgid): Use lll for synchronization.
13712 * sysdeps/mach/hurd/setsid.c: Likewise with __setsid.
13713 * sysdeps/mach/bits/libc-lock.h: Include <tls.h> and <lowlevellock.h>
13714 instead of <cthreads.h>.
13715 (_IO_lock_inexpensive): New macro
13716 (__libc_lock_recursive_t, __rtld_lock_recursive_t): New structures.
13717 (__libc_lock_self0): New declaration.
13718 (__libc_lock_owner_self): New macro.
13719 (__libc_key_t): Remove type.
13720 (_LIBC_LOCK_INITIALIZER): New macro.
13721 (__libc_lock_define_initialized, __libc_lock_init, __libc_lock_fini,
13722 __libc_lock_fini_recursive, __rtld_lock_fini_recursive,
13723 __libc_lock_lock, __libc_lock_trylock, __libc_lock_unlock,
13724 __libc_lock_define_initialized_recursive,
13725 __rtld_lock_define_initialized_recursive,
13726 __libc_lock_init_recursive, __libc_lock_trylock_recursive,
13727 __libc_lock_lock_recursive, __libc_lock_unlock_recursive,
13728 __rtld_lock_initialize, __rtld_lock_trylock_recursive,
13729 __rtld_lock_lock_recursive, __rtld_lock_unlock_recursive
13730 __libc_once_define, __libc_mutex_unlock): Reimplement with lll.
13731 (__libc_lock_define_recursive, __rtld_lock_define_recursive,
13732 _LIBC_LOCK_RECURSIVE_INITIALIZER, _RTLD_LOCK_RECURSIVE_INITIALIZER):
13733 New macros.
13734 Include <libc-lockP.h> to reimplement libc_key* with pthread_key*.
13735 * hurd/hurdlock.c: New file.
13736 * hurd/hurdlock.h: New file.
13737 * mach/lowlevellock.h: New file
13738
13739 2018-03-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
13740
13741 * sysdeps/mach/hurd/cthreads.c: Include <cthreads.h>.
13742 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Return ELOOP
13743 when opening a symlink with O_NOFOLLOW.
13744 * hurd/hurdlookup.c (__hurd_file_name_lookup): Do not append '/' to
13745 path when flags contains O_NOFOLLOW.
13746 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Return ENOTDIR
13747 if flags contains O_DIRECTORY and the result is a directory.
13748 * sysdeps/mach/hurd/i386/init-first.c (init): Also find ELF headers by
13749 oneself when the pointer given in D is nul (as set by ext2fs).
13750 * sysdeps/mach/hurd/mlockall.c: New file.
13751 * sysdeps/mach/hurd/munlockall.c: New file.
13752
13753 2018-03-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
13754
13755 * hurd/hurdsig.c: Include <pthread.h>.
13756 (_hurdsig_init): Call pthread_getattr_np and pthread_attr_getstack to
13757 get the signal thread stack layout.
13758 * hurd/Makefile (headers): Remove threadvar.h.
13759 (inline-headers): Remove threadvar.h.
13760 * hurd/Versions (GLIBC_2.0: Remove __hurd_sigthread_stack_base,
13761 __hurd_sigthread_stack_end, __hurd_sigthread_variables,
13762 __hurd_threadvar_max, __hurd_errno_location.
13763 (HURD_CTHREADS_0.3): Add pthread_getattr_np, pthread_attr_getstack.
13764 * hurd/hurd/signal.h: Do not include <hurd/threadvar.h>.
13765 (_hurd_self_sigstate): Use THREAD_SELF to get _hurd_sigstate.
13766 (_HURD_SIGNAL_H_EXTERN_INLINE): Use THREAD_SELF to get _hurd_sigstate,
13767 unless TLS is not initialized yet, in which case we do not need a
13768 critical section yet anyway.
13769 * hurd/hurd/threadvar.h: Include <tls.h>, do not include
13770 <machine-sp.h>.
13771 (__hurd_sigthread_variables, __hurd_threadvar_max): Remove variables
13772 declarations.
13773 (__hurd_threadvar_index): Remove enum.
13774 (_HURD_THREADVAR_H_EXTERN_INLINE): Remove macro.
13775 (__hurd_threadvar_location_from_sp,__hurd_threadvar_location): Remove
13776 inlines.
13777 (__hurd_reply_port0): New variable declaration.
13778 (__hurd_local_reply_port): New macro.
13779 * hurd/hurdsig.c (__hurd_sigthread_variables): Remove variable.
13780 (interrupted_reply_port_location): Add thread_t parameter. Use it
13781 with THREAD_TCB to access thread-local variables.
13782 (_hurdsig_abort_rpcs): Pass ss->thread to
13783 interrupted_reply_port_location.
13784 (_hurd_internal_post_signal): Likewise.
13785 (_hurdsig_init): Use presence of cthread_fork instead of
13786 __hurd_threadvar_stack_mask to start signal thread by hand.
13787 Remove signal thread threadvar initialization.
13788 * hurd/hurdstartup.c: Do not include <hurd/threadvar.h>
13789 * hurd/sigunwind.c: Include <hurd/threadvar.h>
13790 (_hurdsig_longjmp_from_handler): Use __hurd_local_reply_port instead
13791 of threadvar.
13792 * sysdeps/mach/hurd/Versions (libc.GLIBC_PRIVATE): Add
13793 __libc_lock_self0.
13794 (ld.GLIBC_2.0): Remove __hurd_sigthread_stack_base,
13795 __hurd_sigthread_stack_end, __hurd_sigthread_variables.
13796 (ld.GLIBC_PRIVATE): Add __libc_lock_self0.
13797 * sysdeps/mach/hurd/cthreads.c: Add __libc_lock_self0.
13798 * sysdeps/mach/hurd/dl-sysdep.c (errno, __hurd_sigthread_stack_base,
13799 __hurd_sigthread_stack_end, __hurd_sigthread_variables, threadvars,
13800 __hurd_threadvar_stack_offset, __hurd_threadvar_stack_mask): Do not
13801 define variables.
13802 * sysdeps/mach/hurd/errno-loc.c: Do not include <errno.h> and
13803 <hurd/threadvar.h>.
13804 [IS_IN(rtld)] (rtld_errno): New variable.
13805 [IS_IN(rtld)] (__errno_location): New weak function.
13806 [!IS_IN(rtld)]: Include "../../../csu/errno-loc.c".
13807 * sysdeps/mach/hurd/errno.c: Remove file.
13808 * sysdeps/mach/hurd/fork.c: Include <hurd/threadvar.h>
13809 (__fork): Remove THREADVAR_SPACE macro and its use.
13810 * sysdeps/mach/hurd/i386/init-first.c (__hurd_threadvar_max): Remove
13811 variable.
13812 (init): Do not initialize threadvar.
13813 * sysdeps/mach/hurd/i386/libc.abilist (__hurd_threadvar_max): Remove
13814 symbol.
13815 * sysdeps/mach/hurd/i386/sigreturn.c (__sigreturn): Use
13816 __hurd_local_reply_port instead of threadvar.
13817 * sysdeps/mach/hurd/i386/tls.h (tcbhead_t): Add reply_port and
13818 _hurd_sigstate fields.
13819 (HURD_DESC_TLS, __LIBC_NO_TLS, THREAD_TCB): New macro.
13820 * sysdeps/mach/hurd/i386/trampoline.c: Remove outdated comment.
13821 * sysdeps/mach/hurd/libc-lock.h: Do not include <hurd/threadvar.h>.
13822 (__libc_lock_owner_self): Use &__libc_lock_self0 and THREAD_SELF
13823 instead of threadvar.
13824 * sysdeps/mach/hurd/libc-tsd.h: Remove file.
13825 * sysdeps/mach/hurd/mig-reply.c (GETPORT, reply_port): Remove macros.
13826 (use_threadvar, global_reply_port): Remove variables.
13827 (__hurd_reply_port0): New variable.
13828 (__mig_get_reply_port): Use __hurd_local_reply_port and
13829 __hurd_reply_port0 instead of threadvar.
13830 (__mig_dealloc_reply_port): Likewise.
13831 (__mig_init): Do not initialize threadvar.
13832 * sysdeps/mach/hurd/profil.c: Fix comment.
13833 * hurd/Versions (HURD_CTHREADS_0.3): Rename weak refs cthread_fork,
13834 cthread_detach, pthread_getattr_np, pthread_attr_getstack,
13835 cthread_keycreate, cthread_getspecific, cthread_setspecific to
13836 __cthread_fork, __cthread_detach, __pthread_getattr_np,
13837 __pthread_attr_getstack, __cthread_keycreate, __cthread_getspecific,
13838 __cthread_setspecific.
13839 * hurd/hurdsig.c (_hurdsig_init): Use __cthread_fork,
13840 __cthread_detach, __pthread_getattr_np, __pthread_attr_getstack,
13841 __cthread_t instead of cthread_fork, cthread_detach,
13842 pthread_getattr_np, pthread_attr_getstack.
13843 * sysdeps/mach/hurd/cthreads.c (cthread_keycreate): Rename to
13844 __cthread_keycreate.
13845 (cthread_getspecific): Rename to __cthread_getspecific.
13846 (cthread_setspecific): Rename to __cthread_setspecific.
13847 (__libc_getspecific): Use __cthread_getspecific instead of
13848 cthread_getspecific.
13849 * sysdeps/mach/hurd/libc-lock.h (__libc_key_create): Use
13850 __cthread_keycreate instead of cthread_keycreate.
13851 (__libc_setspecific): Use __cthread_setspecific instead of
13852 cthread_setspecific.
13853 * sysdeps/mach/libc-lock.h (__libc_key_create, __libc_setspecific):
13854 Likewise.
13855 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Always include
13856 <dl-sysdep.h>. Test for value of RTLD_PRIVATE_ERRNO instead of
13857 testing whether it is defined.
13858
13859 2018-03-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
13860
13861 * sysdeps/generic/thread_state.h (MACHINE_NEW_THREAD_STATE_FLAVOR):
13862 Define macro.
13863 * sysdeps/mach/thread_state.h (MACHINE_THREAD_STATE_FIX_NEW): New macro.
13864 * sysdeps/mach/i386/thread_state.h
13865 (MACHINE_NEW_THREAD_STATE_FLAVOR): New macro, defined to
13866 i386_THREAD_STATE.
13867 (MACHINE_THREAD_STATE_FLAVOR): Define to i386_REGS_SEGS_STATE instead of
13868 i386_THREAD_STATE.
13869 (MACHINE_THREAD_STATE_FIX_NEW): New macro, reads segments.
13870
13871 * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler): Use
13872 i386_REGS_SEGS_STATE instead of i386_THREAD_STATE.
13873
13874 * sysdeps/mach/hurd/i386/tls.h (TCB_ALIGNMENT, HURD_SEL_LDT): New
13875 macros.
13876 (_hurd_tls_fork): Add original thread parameter, Duplicate existing LDT
13877 descriptor instead of creating a new one.
13878 (_hurd_tls_new): New function, creates a new descriptor and updates tcb.
13879
13880 * mach/setup-thread.c: Include <ldsodefs.h>.
13881 (__mach_setup_thread): Call _dl_allocate_tls, pass
13882 MACHINE_NEW_THREAD_STATE_FLAVOR to __thread_set_state instead of
13883 MACHINE_THREAD_STATE_FLAVOR, before getting
13884 MACHINE_THREAD_STATE_FLAVOR, calling _hurd_tls_new, and setting
13885 MACHINE_THREAD_STATE_FLAVOR with the result.
13886 * hurd/hurdfault.c (_hurdsig_fault_init): Call
13887 MACHINE_THREAD_STATE_FIX_NEW.
13888 * sysdeps/mach/hurd/fork.c (__fork): Call _hurd_tls_fork for sigthread
13889 too. Add original thread parameter.
13890
13891 2018-03-16 Joseph Myers <joseph@codesourcery.com>
13892
13893 * sysdeps/x86/fpu/bits/mathinline.h [__USE_MISC] (__finite):
13894 Remove inline function.
13895
13896 * sysdeps/i386/fpu/libm-test-ulps: Update.
13897 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
13898
13899 2018-03-16 Wilco Dijkstra <wdijkstr@arm.com>
13900
13901 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Revert previous
13902 commit.
13903
13904 2018-03-15 Joseph Myers <joseph@codesourcery.com>
13905
13906 * sysdeps/x86/fpu/bits/mathinline.h [__FAST_MATH__]
13907 (__sincos_code): Remove define and undefine.
13908 [__FAST_MATH__] (__sincos): Remove inline function.
13909 [__FAST_MATH__] (__sincosf): Remove inline function.
13910 [__FAST_MATH__] (__sincosl): Remove inline function.
13911 (__atan2l): Remove inline functions.
13912 [!__GNUC_PREREQ (3, 4)] (__atan2_code): Remove macro.
13913 [!__GNUC_PREREQ (3, 4) && __FAST_MATH__] (atan2): Remove inline
13914 function.
13915 (floor): Remove inline function.
13916 (ceil): Likewise.
13917 [__FAST_MATH__] (__ldexp_code): Remove macro.
13918 [__FAST_MATH__] (ldexp): Remove inline function.
13919 [__FAST_MATH__ && __USE_ISOC99] (ldexpf): Likewise.
13920 [__FAST_MATH__ && __USE_ISOC99] (ldexpl): Likewise.
13921 [__FAST_MATH__ && __USE_ISOC99] (rint): Likewise.
13922 [__USE_ISOC99] (__lrint_code): Remove macro.
13923 [__USE_ISOC99] (__llrint_code): Likewise.
13924 [__USE_ISOC99] (lrintf): Remove inline function.
13925 [__USE_ISOC99] (lrint): Likewise.
13926 [__USE_ISOC99] (lrintl): Likewise.
13927 [__USE_ISOC99] (llrint): Likewise.
13928 [__USE_ISOC99] (llrintf): Likewise.
13929 [__USE_ISOC99] (llrintl): Likewise.
13930
13931 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
13932
13933 * sysdeps/aarch64/fpu/math_private.h (__ieee754_sqrt): Remove.
13934 (__ieee754_sqrtf): Remove.
13935 * sysdeps/alpha/fpu/math_private.h (__ieee754_sqrt): Remove.
13936 (__ieee754_sqrtf): Remove.
13937 * sysdeps/generic/math-type-macros.h (M_SQRT): Use sqrt.
13938 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Remove.
13939 * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Remove.
13940 (__ieee754_sqrtf): Remove.
13941 * sysdeps/s390/fpu/bits/mathinline.h: Remove file.
13942 * sysdeps/sparc/fpu/bits/mathinline.h (sqrt) Remove.
13943 (sqrtf): Remove.
13944 (sqrtl): Remove.
13945 (__ieee754_sqrt): Remove.
13946 (__ieee754_sqrtf): Remove.
13947 (__ieee754_sqrtl): Remove.
13948 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Remove.
13949 * sysdeps/x86/fpu/math_private.h (__ieee754_sqrt): Remove.
13950 * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Remove.
13951 (__ieee754_sqrtf): Remove.
13952 (__ieee754_sqrtl): Remove.
13953
13954 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
13955
13956 * sysdeps/ieee754/dbl-64/e_acosh.c (__ieee754_acosh): Use sqrt.
13957 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Likewise.
13958 * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
13959 * sysdeps/ieee754/dbl-64/e_j0.c (__ieee754_j0): Likewise.
13960 * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_j1): Likewise.
13961 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
13962 * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
13963 * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c (__ieee754_acosh):
13964 Likewise.
13965 * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Likewise.
13966 * sysdeps/ieee754/flt-32/e_acoshf.c (__ieee754_acoshf): Likewise.
13967 * sysdeps/ieee754/flt-32/e_asinf.c (__ieee754_asinf): Likewise.
13968 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
13969 * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Likewise.
13970 * sysdeps/ieee754/flt-32/e_j0f.c (__ieee754_j0f): Likewise.
13971 * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_j1f): Likewise.
13972 * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Likewise.
13973 * sysdeps/ieee754/flt-32/s_asinhf.c (__asinhf): Likewise.
13974 * sysdeps/ieee754/ldbl-128/e_acoshl.c (__ieee754_acoshl): Use sqrtl.
13975 * sysdeps/ieee754/ldbl-128/e_acosl.c (__ieee754_acosl): Likewise.
13976 * sysdeps/ieee754/ldbl-128/e_asinl.c (__ieee754_asinl): Likewise.
13977 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive): Likewise.
13978 * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl): Likewise.
13979 * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Likewise.
13980 * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
13981 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
13982 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
13983 * sysdeps/ieee754/ldbl-128/s_asinhl.c (__ieee754_asinhl): Likewise.
13984 * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Likewise.
13985 * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Likewise.
13986 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
13987 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive): Likewise.
13988 * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Likewise.
13989 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c (__ieee754_j0l): Likewise.
13990 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c (__ieee754_j1l): Likewise
13991 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
13992 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
13993 * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__ieee754_asinhl): Likewise.
13994 * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Use sqrtl.
13995 * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
13996 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive): Likewise.
13997 * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
13998 * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Likewise.
13999 * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
14000 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
14001 * sysdeps/ieee754/ldbl-96/s_asinhl.c (__ieee754_asinhl): Likewise.
14002 * sysdeps/m68k/m680x0/fpu/e_pow.c (__ieee754_pow): Likewise.
14003 * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Likewise.
14004 * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Likewise.
14005
14006 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
14007
14008 * include/math.h (sqrt): Declare with asm redirect.
14009 (sqrtf): Likewise.
14010 (sqrtl): Likewise.
14011 (sqrtf128): Likewise.
14012 * Makeconfig: Add -fno-math-errno for libc/libm, but build testsuite,
14013 nonlib and libnldbl with -fmath-errno.
14014 * math/w_sqrt_compat.c: Define NO_MATH_REDIRECT.
14015 * math/w_sqrt_template.c: Likewise.
14016 * math/w_sqrtf_compat.c: Likewise.
14017 * math/w_sqrtl_compat.c: Likewise.
14018 * sysdeps/i386/fpu/w_sqrt.c: Likewise.
14019 * sysdeps/i386/fpu/w_sqrt_compat.c: Likewise.
14020 * sysdeps/generic/math-type-macros-float128.h: Remove math.h and
14021 complex.h.
14022
14023 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
14024
14025 * benchtests/Makefile: Define _ISOMAC.
14026 * benchtests/bench-strcoll.c: Add missing sys/stat.h include.
14027 * benchtests/bench-string.h: Define inhibit_loop_to_libcall macro.
14028 * benchtests/bench-strstr.c: Define empty libc_hidden_builtin_def.
14029 * benchtests/bench-strtok.c (oldstrtok): Use rawmemchr.
14030 * benchtests/bench-timing.h: Define attribute_hidden.
14031
14032 2018-03-15 Siddhesh Poyarekar <siddhesh@sourceware.org>
14033
14034 * sysdeps/aarch64/strncmp.S (strncmp): Use lsr instead of
14035 mov + lsr.
14036
14037 2018-03-15 Rafal Luzynski <digitalfreak@lingonborough.com>
14038
14039 [BZ #22963]
14040 * localedata/locales/cs_CZ (mon): Rename to...
14041 (alt_mon): This.
14042 (mon): Import from CLDR (genitive case).
14043
14044 2018-03-15 Rafal Luzynski <digitalfreak@lingonborough.com>
14045
14046 [BZ #22937]
14047 * localedata/locales/el_CY (abmon): Rename to...
14048 (ab_alt_mon): This.
14049 (abmon): Import from CLDR (abbreviated genitive case).
14050 * localedata/locales/el_GR (abmon): Rename to...
14051 (ab_alt_mon): This.
14052 (abmon): Import from CLDR (abbreviated genitive case).
14053
14054 2018-03-15 Rafal Luzynski <digitalfreak@lingonborough.com>
14055
14056 [BZ #22932]
14057 * localedata/locales/lt_LT (abmon): Synchronize with CLDR.
14058
14059 2018-03-15 Robert Buj <robert.buj@gmail.com>
14060
14061 [BZ #22848]
14062 * localedata/locales/ca_ES (abmon): Rename to...
14063 (ab_alt_mon): This, then synchronize with CLDR (nominative case).
14064 (mon): Rename to...
14065 (alt_mon): This.
14066 (abmon): Import from CLDR (genitive case, month names preceded by
14067 "de" or "d’").
14068 (mon): Likewise.
14069 (abday): Synchronize with CLDR.
14070 (d_t_fmt): Likewise.
14071 (d_fmt): Likewise.
14072 (am_pm): Likewise.
14073
14074 (LC_TIME): Improve indentation.
14075 (LC_TELEPHONE): Likewise.
14076 (LC_NAME): Likewise.
14077 (LC_ADDRESS): Likewise.
14078
14079 2018-03-14 Joseph Myers <joseph@codesourcery.com>
14080
14081 * sysdeps/x86/fpu/bits/mathinline.h [!__GNUC_PREREQ (3, 4)]
14082 (lrintf): Remove definitions used only with old GCC.
14083 [!__GNUC_PREREQ (3, 4)] (lrint): Likewise.
14084 [!__GNUC_PREREQ (3, 4)] (llrintf): Likewise.
14085 [!__GNUC_PREREQ (3, 4)] (llrint): Likewise.
14086 [!__GNUC_PREREQ (3, 4)] (fmaxf): Likewise.
14087 [!__GNUC_PREREQ (3, 4)] (fmax): Likewise.
14088 [!__GNUC_PREREQ (3, 4)] (fminf): Likewise.
14089 [!__GNUC_PREREQ (3, 4)] (fmin): Likewise.
14090 [!__GNUC_PREREQ (3, 4)] (rint): Likewise.
14091 [!__GNUC_PREREQ (3, 4)] (rintf): Likewise.
14092 [!__GNUC_PREREQ (3, 4)] (nearbyint): Likewise.
14093 [!__GNUC_PREREQ (3, 4)] (nearbyintf): Likewise.
14094 [!__GNUC_PREREQ (3, 4)] (ceil): Likewise.
14095 [!__GNUC_PREREQ (3, 4)] (ceilf): Likewise.
14096 [!__GNUC_PREREQ (3, 4)] (floor): Likewise.
14097 [!__GNUC_PREREQ (3, 4)] (floorf): Likewise.
14098 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (tan): Likewise.
14099 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (fmod): Likewise.
14100 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (sin): Likewise.
14101 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (cos): Likewise.
14102 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log10): Likewise.
14103 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (asin): Likewise.
14104 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (acos): Likewise.
14105 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (atan): Likewise.
14106 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log1p): Likewise.
14107 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (logb): Likewise.
14108 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log2): Likewise.
14109 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (drem): Likewise.
14110 [__FAST_MATH__] (__M_SQRT2): Remove macro.
14111
14112 2018-03-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
14113
14114 * sysdeps/aarch64/strncmp.S (strncmp): Use a separate shift
14115 instruction to unbreak builds with binutils 2.26 and older.
14116
14117 2018-03-13 Siddhesh Poyarekar <siddhesh@sourceware.org>
14118
14119 * sysdeps/aarch64/strncmp.S (count): New macro.
14120 (strncmp): Store misaligned length in SRC1 in COUNT.
14121 (mutual_align): Adjust.
14122 (misaligned8): Load dword at a time when it is safe.
14123
14124 2018-03-12 Zack Weinberg <zackw@panix.com>
14125
14126 [BZ #1190]
14127 [BZ #19476]
14128 * libio/fileops.c (_IO_new_file_underflow): Return EOF immediately
14129 if the _IO_EOF_SEEN bit is already set; update commentary.
14130 * libio/oldfileops.c (_IO_old_file_underflow): Likewise.
14131 * libio/wfileops.c (_IO_wfile_underflow): Likewise.
14132
14133 * support/support_openpty.c, support/tty.h: New files.
14134 * support/Makefile (libsupport-routines): Add support_openpty.
14135
14136 * libio/tst-fgetc-after-eof.c, wcsmbs/test-fgetwc-after-eof.c:
14137 New test cases.
14138 * libio/Makefile (tests): Add tst-fgetc-after-eof.
14139 * wcsmbs/Makefile (tests): Add tst-fgetwc-after-eof.
14140
14141 2018-03-12 Dmitry V. Levin <ldv@altlinux.org>
14142
14143 * po/pt_BR.po: Update translations.
14144
14145 2018-03-12 David Michael <fedora.dm0@gmail.com>
14146
14147 * sysdeps/mach/hurd/reboot.c: Include <hurd/paths.h>
14148 (reboot): Lookup _SERVERS_STARTUP instead of calling proc_getmsgport to
14149 get a port to the startup server.
14150
14151 2018-03-11 Zack Weinberg <zackw@panix.com>
14152
14153 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include math.h
14154 before nldbl-compat.h.
14155
14156 2018-03-10 Zack Weinberg <zackw@panix.com>
14157
14158 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Don't include
14159 math.h or math_private.h.
14160
14161 * sysdeps/alpha/fpu/s_isnan.c
14162 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c
14163 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c
14164 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c
14165 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c
14166 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c
14167 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c
14168 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c
14169 * sysdeps/ieee754/ldbl-128ibm/s_roundl.c
14170 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c
14171 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot.c
14172 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf.c:
14173 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf.c
14174 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot.c
14175 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c:
14176 Include math_private.h.
14177
14178 * sysdeps/ieee754/ldbl-64-128/s_finitel.c
14179 * sysdeps/ieee754/ldbl-64-128/s_fpclassifyl.c
14180 * sysdeps/ieee754/ldbl-64-128/s_isinfl.c
14181 * sysdeps/ieee754/ldbl-64-128/s_isnanl.c
14182 * sysdeps/ieee754/ldbl-64-128/s_signbitl.c
14183 * sysdeps/powerpc/power7/fpu/s_logb.c:
14184 Include math.h and math_private.h.
14185
14186 * sysdeps/unix/sysv/linux/alpha/clone.S (__clone): Wrap manual
14187 uses of $at in .set noat / .set at.
14188
14189 2018-03-10 H.J. Lu <hongjiu.lu@intel.com>
14190
14191 * include/setjmp.h (__libc_longjmp): Remove libc_hidden_proto.
14192 * setjmp/longjmp.c (__libc_longjmp): Remove libc_hidden_def.
14193 * sysdeps/s390/longjmp.c (__libc_longjmp): Likewise.
14194 * sysdeps/unix/sysv/linux/sparc/sparc64/longjmp.S (__libc_longjmp):
14195 Likewise.
14196
14197 2018-03-09 Florian Weimer <fweimer@redhat.com>
14198
14199 * malloc/malloc.c (prev_size, set_prev_size, prev_chunk): Fix typo
14200 in comment.
14201
14202 2018-03-09 Aurelien Jarno <aurelien@aurel32.net>
14203
14204 [BZ #22919]
14205 * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S (__startcontext):
14206 Add nop before __startcontext, add explaining comments.
14207
14208 2018-03-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14209
14210 [BZ #22926]
14211 * sysdeps/powerpc/powerpc32/sysdep.h (ABORT_TRANSACTION_IMPL): Define
14212 empty for __SPE__.
14213 * sysdeps/powerpc/sysdep.h (ABORT_TRANSACTION): Likewise.
14214 * sysdeps/unix/sysv/linux/powerpc/elision-lock.c (__lll_lock_elision):
14215 Do not build hardware transactional code for __SPE__.
14216 * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c
14217 (__lll_trylock_elision): Likewise.
14218 * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c
14219 (__lll_unlock_elision): Likewise.
14220
14221 * sysdeps/nptl/fork.c (ARCH_FORK): Replace by arch_fork.
14222 * sysdeps/unix/sysv/linux/alpha/arch-fork.h: Remove file.
14223 * sysdeps/unix/sysv/linux/riscv/arch-fork.h: Likewise.
14224 * sysdeps/unix/sysv/linux/aarch64/arch-fork.h: Likewise.
14225 * sysdeps/unix/sysv/linux/arm/arch-fork.h: Likewise.
14226 * sysdeps/unix/sysv/linux/hppa/arch-fork.h: Likewise.
14227 * sysdeps/unix/sysv/linux/i386/arch-fork.h: Likewise.
14228 * sysdeps/unix/sysv/linux/ia64/arch-fork.h: Likewise.
14229 * sysdeps/unix/sysv/linux/m68k/arch-fork.h: Likewise.
14230 * sysdeps/unix/sysv/linux/microblaze/arch-fork.h: Likewise.
14231 * sysdeps/unix/sysv/linux/mips/arch-fork.h: Likewise.
14232 * sysdeps/unix/sysv/linux/nios2/arch-fork.h: Likewise.
14233 * sysdeps/unix/sysv/linux/powerpc/arch-fork.h: Likewise.
14234 * sysdeps/unix/sysv/linux/s390/arch-fork.h: Likewise.
14235 * sysdeps/unix/sysv/linux/sh/arch-fork.h: Likewise.
14236 * sysdeps/unix/sysv/linux/sparc/arch-fork.h: Likewise.
14237 * sysdeps/unix/sysv/linux/tile/arch-fork.h: Likewise.
14238 * sysdeps/unix/sysv/linux/x86_64/arch-fork.h: Likewise.
14239 * sysdeps/unix/sysv/linux/arch-fork.h (arch_fork): New function.
14240 * sysdeps/unix/sysv/linux/aarch64/kernel-features.h: New file.
14241 * sysdeps/unix/sysv/linux/riscv/kernel-features.h: Likewise.
14242 * sysdeps/unix/sysv/linux/arm/kernel-features.h
14243 (__ASSUME_CLONE_BACKWARDS): Define.
14244 * sysdeps/unix/sysv/linux/createthread.c (ARCH_CLONE): Define to
14245 __clone2 if __NR_clone2 is defined.
14246 * sysdeps/unix/sysv/linux/hppa/kernel-features.h
14247 (__ASSUME_CLONE_BACKWARDS): Likewise.
14248 * sysdeps/unix/sysv/linux/i386/kernel-features.h
14249 (__ASSUME_CLONE_BACKWARDS): Likewise.
14250 * sysdeps/unix/sysv/linux/ia64/kernel-features.h
14251 (__ASSUME_CLONE2): Likewise.
14252 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
14253 (__ASSUME_CLONE_BACKWARDS3): Likewise.
14254 * sysdeps/unix/sysv/linux/kernel-features.h: Document possible clone
14255 variants and the define architecture can use.
14256 (__ASSUME_CLONE_DEFAULT): Define as default.
14257 * sysdeps/unix/sysv/linux/mips/kernel-features.h
14258 (__ASSUME_CLONE_BACKWARDS): Likewise.
14259 * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
14260 (__ASSUME_CLONE_BACKWARDS): Likewise.
14261 * sysdeps/unix/sysv/linux/s390/kernel-features.h
14262 (__ASSUME_CLONE_BACKWARDS2): Likewise.
14263
14264 2018-03-06 Siddhesh Poyarekar <siddhesh@sourceware.org>
14265
14266 * sysdeps/aarch64/memcmp.S (more16): Fix loop16 branch target.
14267
14268 * sysdeps/aarch64/memcmp.S: Widen comparison to 16 bytes at a
14269 time.
14270
14271 * benchtests/bench-strncmp.c (test_main): Remove 0 length tests.
14272 (do_test_limit): Likewise.
14273
14274 * benchtests/bench-strncmp.c (do_test_limit): Reallocate buffers
14275 for every implementation.
14276 (do_test): Likewise.
14277
14278 * benchtests/bench-strncmp.c: Convert output to json.
14279
14280 2018-03-06 Samuel Thibault <samuel.thibault@ens-lyon.org>
14281
14282 * io/futimens.c: Add missing start-of-file descriptive comment.
14283 * io/utime.c: Likewise.
14284 * misc/futimesat.c: Likewise.
14285 * misc/utimes.c: Likewise.
14286 * sysdeps/mach/hurd/futimesat.c: Likewise.
14287 * sysdeps/mach/hurd/utimes.c: Likewise.
14288 * sysdeps/posix/utime.c: Likewise.
14289 * sysdeps/posix/utimes.c: Likewise.
14290 * sysdeps/unix/sysv/linux/futimesat.c: Likewise.
14291 * sysdeps/unix/sysv/linux/generic/futimesat.c: Likewise.
14292 * sysdeps/unix/sysv/linux/generic/utimes.c: Likewise.
14293 * sysdeps/unix/sysv/linux/utimes.c: Likewise.
14294
14295 2018-03-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
14296
14297 * sysdeps/mach/hurd/utime-helper.c (hurd_futimens): Rename function to
14298 hurd_futimes.
14299 * sysdeps/mach/hurd/utimes.c (__utimes): Update call accordingly.
14300 * sysdeps/mach/hurd/lutimes.c (__lutimes): Likewise.
14301 * sysdeps/mach/hurd/futimens.c: Include "utime-helper.c".
14302 (__futimens): Move implementation to...
14303 * sysdeps/mach/hurd/utime-helper.c (utime_ts_from_tspec,
14304 utime_tvalue_from_tspec): ... new helper functions.
14305 (hurd_futimens): New function.
14306 * sysdeps/mach/hurd/futimesat.c: New file.
14307 * sysdeps/mach/hurd/utimensat.c: New file.
14308
14309 2018-03-05 Flávio Cruz <flaviocruz@gmail.com>
14310
14311 * sysdeps/mach/hurd/bits/stat.h [__USE_ATFILE] (UTIME_NOW,
14312 UTIME_OMIT): New macros.
14313 * sysdeps/mach/hurd/futimens.c (__futimens): Try to use __file_utimens
14314 before reverting to converting time spec to time value and calling
14315 __file_utimes.
14316 * sysdeps/mach/hurd/utime-helper.c: New file.
14317 * sysdeps/mach/hurd/futimes.c: Include "utime-helper.c".
14318 (__futimes): Try to use utime_ts_from_tval and __file_utimens before
14319 reverting to utime_tvalue_from_tval and __file_utimes.
14320 * sysdeps/mach/hurd/lutimes.c: Include "utime-helper.c".
14321 (__lutimes): Just call hurd_futimens after lookup.
14322 * sysdeps/mach/hurd/utimes.c: Likewise.
14323
14324 2018-03-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
14325
14326 * bits/sigaction.h: Add include guard.
14327 * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h: Likewise.
14328 * sysdeps/unix/sysv/linux/bits/sigaction.h: Likewise.
14329 * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h: Likewise.
14330 * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h: Likewise.
14331 * sysdeps/unix/sysv/linux/mips/bits/sigaction.h: Likewise.
14332 * sysdeps/unix/sysv/linux/s390/bits/sigaction.h: Likewise.
14333 * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h: Likewise.
14334 * sysdeps/unix/sysv/linux/tile/bits/sigaction.h: Likewise.
14335 * hurd/hurd/signal.h: Include <bits/sigaction.h>.
14336
14337 2018-03-05 Joseph Myers <joseph@codesourcery.com>
14338
14339 * iconv/loop.c (UNICODE_TAG_HANDLER): Disable
14340 -Wmaybe-uninitialized for -Os.
14341 * sysdeps/s390/multiarch/8bit-generic.c (BODY): Add comment about
14342 this disabling.
14343
14344 2018-03-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14345
14346 * bits/dirent.h (__INO_T_MATCHES_INO64_T): Define regardless whether
14347 __INO_T_MATCHES_INO64_T is defined.
14348 * sysdeps/unix/sysv/linux/bits/dirent.h: Likewise.
14349 * dirent/alphasort.c: Check _DIRENT_MATCHES_DIRENT64 value instead
14350 of definition.
14351 * dirent/alphasort64.c: Likewise.
14352 * dirent/scandir.c: Likewise.
14353 * dirent/scandir64-tail.c: Likewise.
14354 * dirent/scandir64.c: Likewise.
14355 * dirent/scandirat.c: Likewise.
14356 * dirent/scandirat64.c: Likewise.
14357 * dirent/versionsort.c: Likewise.
14358 * dirent/versionsort64.c: Likewise.
14359 * include/dirent.h: Likewise.
14360
14361 * nptl/tst-cancel4-common.h (set_socket_buffer): New function.
14362 * nptl/tst-cancel4-common.c (do_test): Call set_socket_buffer
14363 for socketpair endpoint.
14364 * nptl/tst-cancel4.c (tf_send): Call set_socket_buffer and use
14365 WRITE_BUFFER_SIZE as buffer size for sending socket.
14366 (tf_sendto): Use SOCK_STREAM instead of SOCK_DGRAM and fix an
14367 issue on system where send is implemented with sendto syscall.
14368 * sysdeps/unix/sysv/linux/mips/mips64/Makefile [$(subdir) = socket]
14369 (CFLAGS-recv.c, CFLAGS-send.c): Remove rules.
14370 [$(subdir) = nptl] (CFLAGS-recv.c, CFLAGS-send.c): Likewise.
14371 * sysdeps/unix/sysv/linux/riscv/rv64/Makefile: Remove file.
14372
14373 [BZ #21269]
14374 * sysdeps/unix/sysv/linux/i386/Makefile (tests): Add tst-bz21269.
14375 * sysdeps/unix/sysv/linux/i386/sigaction.c (SET_SA_RESTORER): Clear
14376 sa_restorer for vDSO case.
14377 * sysdeps/unix/sysv/linux/i386/tst-bz21269.c: New file.
14378
14379 2018-03-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
14380
14381 * scripts/check-installed-headers.sh: Ignore Hurd and Mach headers.
14382 * hurd/hurd/id.h: Include <hurd/hurd_types.h>
14383 * hurd/hurd/ioctl.h: Include <mach/port.h>
14384 * hurd/hurd/lookup.h: Include <hurd/hurd_types.h>
14385 * mach/Makefile ($(objpfx)mach-shortcuts.h): Make it include
14386 <mach/mach_types.h> and <mach/message.h>.
14387 (headers): Move mach/param.h to bits/mach/param.h.
14388 * sysdeps/mach/i386/mach/param.h: Move file to ...
14389 * sysdeps/mach/i386/bits/mach/param.h: ... here. Update path in #error.
14390 * sysdeps/mach/hurd/bits/param.h: Include <bits/mach/param.h> instead
14391 of <mach/param.h>.
14392 * hurd/hurd/port.h: Do not include <hurd/signal.h>.
14393 * hurd/hurd/userlink.h [!defined __USE_EXTERN_INLINES ||
14394 !defined _LIBC || !IS_IN (libc)]: Do not include <hurd/signal.h>.
14395 * hurd/hurd/fd.h (_hurd_fd_error): Fix struct initializer to be
14396 trivial, for C++ conformity.
14397 * sysdeps/mach/hurd/dl-sysdep.c: Include <mach/machine/vm_param.h>.
14398 * mach/Machrules ($(patsubst %,$(objpfx)%.h,$(user-interfaces)):
14399 Process mig output through $(migheadersed).
14400 * hurd/Makefile (migheadersed): Define variable.
14401 * mach/mach/mig_support.h [defined __USE_GNU]: Do not #error out.
14402 * scripts/check-installed-headers.sh: Do not ignore Hurd and Mach
14403 headers.
14404 * hurd/hurd.h: Include <bits/types/sigset_t.h>
14405 * hurd/hurd/fd.h: Include <sys/select.h> and <bits/types/sigset_t.h>
14406 (_hurd_fd_read, _hurd_fd_write): Use __loff_t instead of loff_t.
14407 * hurd/hurd/signal.h: Include <bits/types/stack_t.h> and
14408 <bits/types/sigset_t.h>.
14409 [!defined __USE_GNU]: Do not #error out.
14410 (struct hurd_sigstate): Use _NSIG instead of NSIG.
14411 * hurd/hurd/sigpreempt.h (__need_size_t): Define.
14412 Include <stddef.h> and <bits/types/sigset_t.h>
14413 (struct hurd_signal_preemptor, hurd_catch_signal): Use __sighandler_t
14414 instead of sighandler_t.
14415 * stdlib/errno.h (error_t): Move definition to...
14416 * bits/types/error_t.h: ... new header.
14417 * stdlib/Makefile (headers): Add bits/types/error_t.h.
14418 * sysdeps/mach/hurd/bits/errno.h (error_t): Move definition to...
14419 * sysdeps/mach/hurd/bits/types/error_t.h: ... new header.
14420 * sysdeps/mach/hurd/errnos.awk (error_t): Likewise.
14421 * hurd/hurd.h: Include <bits/types/error_t.h>
14422 * hurd/hurd/fd.h: Include <bits/types/error_t.h>
14423 * hurd/hurd/id.h: Include <errno.h> and <bits/types/error_t.h>
14424 * hurd/hurd/lookup.h: Include <errno.h> and <bits/types/error_t.h>
14425 * hurd/hurd/resource.h: Include <bits/types/error_t.h>
14426 * hurd/hurd/signal.h: Include <bits/types/error_t.h>
14427 * hurd/hurd/sigpreempt.h: Include <bits/types/error_t.h>
14428 * sysdeps/mach/hurd/futimens.c: New file.
14429
14430 2018-03-03 Andreas Schwab <schwab@linux-m68k.org>
14431
14432 [BZ #22918]
14433 * nss/nsswitch.h (DEFINE_DATABASE): Don't define __nss_*_database.
14434 * nss/nsswitch.c (DEFINE_DATABASE): Define __nss_*_database here.
14435 * nscd/gai.c (__nss_hosts_database): Readd definition.
14436 * posix/tst-rfc3484.c (__nss_hosts_database): Likewise.
14437 * posix/tst-rfc3484-3.c (__nss_hosts_database): Likewise.
14438 * posix/tst-rfc3484-2.c (__nss_hosts_database): Likewise.
14439
14440 2018-03-02 Joseph Myers <joseph@codesourcery.com>
14441
14442 * sysdeps/powerpc/ifunc-sel.h (ifunc_sel): Make always_inline.
14443 (ifunc_one): Likewise.
14444
14445 2018-03-01 DJ Delorie <dj@delorie.com>
14446
14447 [BZ #22342]
14448 * nscd/netgroupcache.c (addinnetgrX): Include trailing NUL in
14449 key value.
14450
14451 2018-03-01 Maciej W. Rozycki <macro@mips.com>
14452
14453 * nptl_db/td_ta_thr_iter.c (iterate_thread_list): Remove
14454 `match_pid' parameter.
14455 (td_ta_thr_iter): Update accordingly.
14456
14457 2018-03-01 Florian Weimer <fweimer@redhat.com>
14458
14459 * nptl/Makefile (install-lib-ldscripts): Remove.
14460 (install): Remove rule.
14461 ($(inst_libdir)/libpthread.so): Likewise.
14462
14463 2018-03-01 Mike FABIAN <mfabian@redhat.com>
14464
14465 [BZ #22896]
14466 * localedata/locales/an_ES: update month and day names,
14467 improve d_fmt, improve postal_fmt, add country_post,
14468 add country_isbn
14469
14470 2018-03-01 Mike FABIAN <mfabian@redhat.com>
14471
14472 * localedata/locales/bg_BG (LC_COLLATE): The comment mentioned
14473 Ukrainian instead of Bulgarian.
14474
14475 2018-03-01 Florian Weimer <fweimer@redhat.com>
14476
14477 * nptl/Makefile (libpthread.so): Drop libpthread_nonshared.a
14478 reference.
14479
14480 2018-03-01 Florian Weimer <fweimer@redhat.com>
14481
14482 Move pthread_atfork to libc. Remove libpthread_nonshared.a.
14483 * nptl/Makefile (routines): Add pthread_atfork.
14484 (static-only-routines): Set to pthread_atfork.
14485 (libpthread-routines): Remove pthread_atfork.
14486 (libpthread-static-only-routines): Remove.
14487 (install): Update comment.
14488 (libpthread.so): Do not install libpthread_nonshared.a.
14489 (tests): Do not link with libpthread_nonshared.a.
14490 (generated): Remove libpthread_nonshared.a.
14491 * nptl/pthread_atfork.c (pthread_atfork): Turn into weak alias.
14492 * sysdeps/nptl/Makeconfig (shared-thread-library): Do not link
14493 with libpthread_nonshared.a.
14494
14495 2018-02-28 Joseph Myers <joseph@codesourcery.com>
14496
14497 [BZ #22902]
14498 * sysdeps/i386/fpu/fenv_private.h [!__x86_64__]
14499 (libc_feholdexcept_setroundf128): New macro.
14500 [!__x86_64__] (libc_feupdateenv_testf128): Likewise.
14501
14502 [BZ #15105]
14503 * sysdeps/wordsize-32/strtoumax.c (strtoumax): Use
14504 libc_hidden_def.
14505 * sysdeps/wordsize-64/strtoumax.c (strtoumax): Likewise.
14506 * include/inttypes.h: New file.
14507
14508 2018-02-27 Joseph Myers <joseph@codesourcery.com>
14509
14510 * locale/weightwc.h (findidx): Ignore -Wmaybe-uninitialized for
14511 -Os in two more places.
14512
14513 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14514
14515 See this bug https://sourceware.org/bugzilla/show_bug.cgi?id=22898
14516 * localedata/cmn_TW.UTF-8.in: Remove the lines which cannot
14517 be sorted correctly at the moment because of a bug.
14518
14519 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14520
14521 [BZ #22550] - es_ES locale (and other es_* locales): collation should
14522 treat ñ as a primary different character, sync the collation
14523 for Spanish with CLDR.
14524 [BZ #21547] - Tibetan script collation broken (Dzongkha and Tibetan).
14525 * localedata/Makefile: Add new test files.
14526 * localedata/lv_LV.UTF-8.in: Adapt test file to new collation order.
14527 * localedata/sv_SE.ISO-8859-1.in: Adapt test file to new
14528 collation order.
14529 * localedata/uk_UA.UTF-8.in: Adapt test file to new collation order.
14530 * localedata/am_ET.UTF-8.in: New test file.
14531 * localedata/az_AZ.UTF-8.in: Likewise.
14532 * localedata/be_BY.UTF-8.in: Likewise.
14533 * localedata/ber_DZ.UTF-8.in: Likewise.
14534 * localedata/ber_MA.UTF-8.in: Likewise.
14535 * localedata/bg_BG.UTF-8.in: Likewise.
14536 * localedata/br_FR.UTF-8.in: Likewise.
14537 * localedata/cmn_TW.UTF-8.in: Likewise.
14538 * localedata/crh_UA.UTF-8.in: Likewise.
14539 * localedata/csb_PL.UTF-8.in: Likewise.
14540 * localedata/cv_RU.UTF-8.in: Likewise.
14541 * localedata/cy_GB.UTF-8.in: Likewise.
14542 * localedata/dz_BT.UTF-8.in: Likewise.
14543 * localedata/eo.UTF-8.in: Likewise.
14544 * localedata/es_ES.UTF-8.in: Likewise.
14545 * localedata/fa_IR.UTF-8.in: Likewise.
14546 * localedata/fi_FI.UTF-8.in: Likewise.
14547 * localedata/fil_PH.UTF-8.in: Likewise.
14548 * localedata/fur_IT.UTF-8.in: Likewise.
14549 * localedata/gez_ER.UTF-8@abegede.in: Likewise.
14550 * localedata/ha_NG.UTF-8.in: Likewise.
14551 * localedata/ig_NG.UTF-8.in: Likewise.
14552 * localedata/ik_CA.UTF-8.in: Likewise.
14553 * localedata/kk_KZ.UTF-8.in: Likewise.
14554 * localedata/ku_TR.UTF-8.in: Likewise.
14555 * localedata/ky_KG.UTF-8.in: Likewise.
14556 * localedata/ln_CD.UTF-8.in: Likewise.
14557 * localedata/mi_NZ.UTF-8.in: Likewise.
14558 * localedata/ml_IN.UTF-8.in: Likewise.
14559 * localedata/mn_MN.UTF-8.in: Likewise.
14560 * localedata/mr_IN.UTF-8.in: Likewise.
14561 * localedata/mt_MT.UTF-8.in: Likewise.
14562 * localedata/nb_NO.UTF-8.in: Likewise.
14563 * localedata/om_KE.UTF-8.in: Likewise.
14564 * localedata/os_RU.UTF-8.in: Likewise.
14565 * localedata/ps_AF.UTF-8.in: Likewise.
14566 * localedata/ro_RO.UTF-8.in: Likewise.
14567 * localedata/ru_RU.UTF-8.in: Likewise.
14568 * localedata/sc_IT.UTF-8.in: Likewise.
14569 * localedata/se_NO.UTF-8.in: Likewise.
14570 * localedata/sq_AL.UTF-8.in: Likewise.
14571 * localedata/sv_SE.UTF-8.in: Likewise.
14572 * localedata/szl_PL.UTF-8.in: Likewise.
14573 * localedata/tg_TJ.UTF-8.in: Likewise.
14574 * localedata/tk_TM.UTF-8.in: Likewise.
14575 * localedata/tt_RU.UTF-8.in: Likewise.
14576 * localedata/tt_RU.UTF-8@iqtelif.in: Likewise.
14577 * localedata/ug_CN.UTF-8.in: Likewise.
14578 * localedata/uz_UZ.UTF-8.in: Likewise.
14579 * localedata/vi_VN.UTF-8.in: Likewise.
14580 * localedata/yi_US.UTF-8.in: Likewise.
14581 * localedata/yo_NG.UTF-8.in: Likewise.
14582 * localedata/zh_CN.UTF-8.in: Likewise.
14583 * localedata/locales/am_ET: Adapt collation rules to new iso14651_t1_common
14584 file and fix bugs in the collation.
14585 * localedata/locales/az_AZ: Likewise.
14586 * localedata/locales/be_BY: Likewise.
14587 * localedata/locales/ber_DZ: Likewise.
14588 * localedata/locales/ber_MA: Likewise.
14589 * localedata/locales/bg_BG: Likewise.
14590 * localedata/locales/br_FR: Likewise.
14591 * localedata/locales/br_FR@euro: Likewise.
14592 * localedata/locales/ca_ES: Likewise.
14593 * localedata/locales/cns11643_stroke: Likewise.
14594 * localedata/locales/crh_UA: Likewise.
14595 * localedata/locales/cs_CZ: Likewise.
14596 * localedata/locales/csb_PL: Likewise.
14597 * localedata/locales/cv_RU: Likewise.
14598 * localedata/locales/cy_GB: Likewise.
14599 * localedata/locales/da_DK: Likewise.
14600 * localedata/locales/dz_BT: Likewise.
14601 * localedata/locales/en_CA: Likewise.
14602 * localedata/locales/eo: Likewise.
14603 * localedata/locales/es_CU: Likewise.
14604 * localedata/locales/es_EC: Likewise.
14605 * localedata/locales/es_ES: Likewise.
14606 * localedata/locales/es_US: Likewise.
14607 * localedata/locales/et_EE: Likewise.
14608 * localedata/locales/fa_IR: Likewise.
14609 * localedata/locales/fi_FI: Likewise.
14610 * localedata/locales/fil_PH: Likewise.
14611 * localedata/locales/fur_IT: Likewise.
14612 * localedata/locales/gez_ER@abegede: Likewise.
14613 * localedata/locales/ha_NG: Likewise.
14614 * localedata/locales/hr_HR: Likewise.
14615 * localedata/locales/hsb_DE: Likewise.
14616 * localedata/locales/hu_HU: Likewise.
14617 * localedata/locales/ig_NG: Likewise.
14618 * localedata/locales/ik_CA: Likewise.
14619 * localedata/locales/is_IS: Likewise.
14620 * localedata/locales/iso14651_t1_pinyin: Likewise.
14621 * localedata/locales/kk_KZ: Likewise.
14622 * localedata/locales/ku_TR: Likewise.
14623 * localedata/locales/ky_KG: Likewise.
14624 * localedata/locales/ln_CD: Likewise.
14625 * localedata/locales/lt_LT: Likewise.
14626 * localedata/locales/lv_LV: Likewise.
14627 * localedata/locales/mi_NZ: Likewise.
14628 * localedata/locales/ml_IN: Likewise.
14629 * localedata/locales/mn_MN: Likewise.
14630 * localedata/locales/mr_IN: Likewise.
14631 * localedata/locales/mt_MT: Likewise.
14632 * localedata/locales/nb_NO: Likewise.
14633 * localedata/locales/om_KE: Likewise.
14634 * localedata/locales/os_RU: Likewise.
14635 * localedata/locales/pl_PL: Likewise.
14636 * localedata/locales/ps_AF: Likewise.
14637 * localedata/locales/ro_RO: Likewise.
14638 * localedata/locales/ru_RU: Likewise.
14639 * localedata/locales/ru_UA: Likewise.
14640 * localedata/locales/sc_IT: Likewise.
14641 * localedata/locales/se_NO: Likewise.
14642 * localedata/locales/si_LK: Likewise.
14643 * localedata/locales/sq_AL: Likewise.
14644 * localedata/locales/sv_FI: Likewise.
14645 * localedata/locales/sv_FI@euro: Likewise.
14646 * localedata/locales/sv_SE: Likewise.
14647 * localedata/locales/szl_PL: Likewise.
14648 * localedata/locales/tg_TJ: Likewise.
14649 * localedata/locales/ti_ER: Likewise.
14650 * localedata/locales/tk_TM: Likewise.
14651 * localedata/locales/tl_PH: Likewise.
14652 * localedata/locales/tr_TR: Likewise.
14653 * localedata/locales/tt_RU: Likewise.
14654 * localedata/locales/tt_RU@iqtelif: Likewise.
14655 * localedata/locales/ug_CN: Likewise.
14656 * localedata/locales/uk_UA: Likewise.
14657 * localedata/locales/uz_UZ: Likewise.
14658 * localedata/locales/uz_UZ@cyrillic: Likewise.
14659 * localedata/locales/vi_VN: Likewise.
14660 * localedata/locales/yi_US: Likewise.
14661 * localedata/locales/yo_NG: Likewise.
14662
14663 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14664
14665 * gen-locales.mk: Make test files which contain @ modifiers in their
14666 name work.
14667 * localedata/gen-locale.sh: Likewise.
14668
14669 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14670
14671 * posix/tst-fnmatch.input: Fix results for range expressions
14672 for non C locales.
14673 * posix/tst-regexloc.c: Do not use a range expression for
14674 de_DE.ISO-8859-1 locale.
14675
14676 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14677
14678 * posix/bug-regex5.c: Fix test case because with the new
14679 iso14651_t1_common file, the da_DK locale now has 6 collating elements
14680 in the ISO-8859-1 range instead of 4 with the old iso14651_t1_common
14681 file.
14682
14683 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14684
14685 * localedata/da_DK.ISO-8859-1.in: In the new iso14651_t1_common file
14686 downloaded from ISO, the collation order of @-. and space has changed.
14687 Therefore, this test file needed to be adapted.
14688 * localedata/fr_CA.UTF-8.in: Likewise.
14689 * localedata/fr_FR.UTF-8.in: Likewise.
14690 * localedata/uk_UA.UTF-8.in: Likewise.
14691
14692 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14693
14694 * localedata/cs_CZ.UTF-8.in: adapt this test file to the collation
14695 order of ȥ in the new iso14651_t1_common file.
14696 * localedata/pl_PL.UTF-8.in: Likewise.
14697
14698 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14699
14700 * localedata/locales/iso14651_t1_common: Add sections for various
14701 scripts to the iso14651_t1_common file.
14702
14703 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14704
14705 * localedata/locales/iso14651_t1_common: Use the code point of a
14706 character in the fourth collation level instead of IGNORE for all
14707 entries which have IGNORE on all 4 levels.
14708
14709 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14710
14711 * localedata/locales/iso14651_t1_common: Add some convenient collation
14712 symbols like <AFTER-A>, <BEFORE-A> to make tailoring easier using
14713 rules similar to those in CLDR.
14714
14715 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14716
14717 * localedata/locales/iso14651_t1_common: The new version of this
14718 file downloaded from ISO contained several syntax errors which
14719 are fixed by this patch.
14720
14721 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14722
14723 * localedata/locales/iso14651_t1_common: replace all <U.....>
14724 with <U000.....> because glibc understands only 4 digit or 8 digit
14725
14726 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14727
14728 * localedata/locales/iso14651_t1_common: Necessary changes
14729 to make the file downloaded from ISO usable by glibc.
14730
14731 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14732
14733 [BZ #14095]
14734 * localedata/locales/iso14651_t1_common: Update file to
14735 latest version from ISO (ISO14651_2016_TABLE1_en.txt).
14736
14737 2018-02-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
14738
14739 * sysdeps/pthread/timer_routines.c: Include <timer_routines.h> instead
14740 of <nptl/pthreadP.h>
14741 (thread_attr_compare): Move function to...
14742 [!defined DELAYTIMER_MAX] (DELAYTIMER_MAX): Define to INT_MAX.
14743 * sysdeps/nptl/timer_routines.h: ... new header.
14744 * sysdeps/mach/hurd/gai_misc.h: New file.
14745
14746 2018-02-26 Joseph Myers <joseph@codesourcery.com>
14747
14748 * string/strcoll_l.c: Include <libc-diag.h>.
14749 (STRCOLL): Ignore -Wmaybe-uninitialized for -Os around
14750 declarations of seq1 and seq2.
14751
14752 [BZ #15105]
14753 * stdlib/atoi.c (atoi): Use libc_hidden_def.
14754 * include/stdlib.h [!_ISOMAC] (atoi): Use libc_hidden_proto.
14755
14756 2018-02-26 Dmitry V. Levin <ldv@altlinux.org>
14757
14758 [BZ #22433]
14759 [BZ #22807]
14760 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (__ptrace_request): Add
14761 PTRACE_GETREGS, PTRACE_SETREGS, PTRACE_GETFPREGS, PTRACE_SETFPREGS,
14762 PTRACE_GETVRREGS, PTRACE_SETVRREGS, PTRACE_GETEVRREGS,
14763 PTRACE_SETEVRREGS, PTRACE_GETREGS64, PTRACE_SETREGS64,
14764 PTRACE_GET_DEBUGREG, PTRACE_SET_DEBUGREG, PTRACE_GETVSRREGS,
14765 PTRACE_SETVSRREGS, and PTRACE_SINGLEBLOCK.
14766
14767 2018-02-26 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
14768
14769 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Undefine Linux
14770 macros used in __ptrace_request.
14771
14772 2018-02-23 H.J. Lu <hongjiu.lu@intel.com>
14773
14774 [BZ #22792]
14775 * Makerules ($(common-objpfx)%.h): Pass -DGEN_AS_CONST_HEADERS
14776 to $(CC).
14777 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Include
14778 <tcb-offsets.h> only if GEN_AS_CONST_HEADERS isn't defined.
14779 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Don't include
14780 <tcb-offsets.h>.
14781
14782 2018-02-23 Joseph Myers <joseph@codesourcery.com>
14783
14784 [BZ #15105]
14785 * ctype/ctype.c (tolower): Use libc_hidden_def.
14786 (toupper): Likewise.
14787 * include/ctype.h [!_ISOMAC] (tolower): Use libc_hidden_proto.
14788 [!_ISOMAC] (toupper): Likewise.
14789
14790 2018-02-23 Mike FABIAN <mfabian@redhat.com>
14791
14792 * localedata/Makefile: Remove --quiet argument when
14793 installing locales
14794
14795 2018-02-23 Mike FABIAN <mfabian@redhat.com>
14796
14797 [BZ #17438]
14798 * localedata/locales/pt_BR (LC_TIME): use / instead of -
14799 in d_fmt.
14800 * localedata/locales/pt_PT (LC_TIME): likewise
14801
14802 2018-02-23 Mike FABIAN <mfabian@redhat.com>
14803
14804 [BZ #22646]
14805 * localedata/locales/es_CL (LC_TIME): copy "es_BO".
14806 * localedata/locales/es_CU (LC_TIME): copy "es_BO".
14807 * localedata/locales/es_EC (LC_TIME): copy "es_BO".
14808
14809 2018-02-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14810
14811 * sysdeps/sparc/fpu/libm-test-ulps: Update.
14812
14813 * nptl/Makefile (routines): Remove unregister-atfork.
14814 * nptl/register-atfork.c (fork_handler_pool): Remove variable.
14815 (fork_handler_alloc): Remove function.
14816 (fork_handlers, fork_handler_init): New variables.
14817 (__fork_lock): Rename to atfork_lock.
14818 (__register_atfork, __unregister_atfork, libc_freeres_fn): Rewrite
14819 to use a dynamic array to add/remove atfork handlers.
14820 * sysdeps/nptl/fork.c (__libc_fork): Likewise.
14821 * sysdeps/nptl/fork.h (__fork_lock, __fork_handlers, __linkin_atfork):
14822 Remove declaration.
14823 (fork_handler): Remove next, refcntr, and need_signal member.
14824 (__run_fork_handler_type): New enum.
14825 (__run_fork_handlers): New prototype.
14826 * nptl/register-atfork.c: Remove file.
14827 * sysdeps/nptl/libc-lockP.h (__libc_atfork): Remove declaration.
14828
14829 * sysdeps/nptl/nptl-signals.h: Move to ...
14830 * sysdeps/generic/internal-signals.h: ... here. Adjust internal
14831 comments.
14832 * sysdeps/unix/sysv/linux/internal-signals.h: Add include guards.
14833 (__nptl_is_internal_signal): Rename to __is_internal_signal and remove
14834 unnecessary check for SIGTIMER.
14835 (__nptl_clear_internal_signals): Rename to __clear_internal_signals and
14836 remove unnecessary removal of SIGTIMER.
14837 * sysdeps/unix/sysv/linux/raise.c: Adjust nptl-signal.h to
14838 include-signals.h rename.
14839 * nptl/pthreadP.h: Likewise.
14840 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Call
14841 __is_internal_signal instead of __nptl_is_internal_signal.
14842
14843 2018-02-22 Andrew Waterman <andrew@sifive.com>
14844
14845 [BZ # 22884]
14846 * sysdeps/riscv/rvd/s_fmax.c (__fmax): Handle sNaNs correctly.
14847 * sysdeps/riscv/rvd/s_fmin.c (__fmin): Likewise.
14848 * sysdeps/riscv/rvf/s_fmaxf.c (__fmaxf): Likewise.
14849 * sysdeps/riscv/rvf/s_fminf.c (__fminf): Likewise.
14850
14851 2018-02-22 DJ Delorie <dj@delorie.com>
14852
14853 * sysdeps/riscv/tls-macros.h: Do not initialize $gp.
14854
14855 2018-02-22 Siddhesh Poyarekar <siddhesh@sourceware.org>
14856
14857 * sysdeps/aarch64/strcmp.S (do_misaligned): Jump back to
14858 do_misaligned, not misaligned8.
14859
14860 2018-02-22 Steve Ellcey <sellcey@cavium.com>
14861
14862 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
14863 Add memcpy_thunderx2.
14864 * sysdeps/aarch64/multiarch/ifunc-impl-list.c (MAX_IFUNC):
14865 Increment to 4.
14866 (__libc_ifunc_impl_list): Add __memcpy_thunderx2.
14867 * sysdeps/aarch64/multiarch/memcpy.c (libc_ifunc): Add IS_THUNDERX2
14868 and IS_THUNDERX2PA checks.
14869 * sysdeps/aarch64/multiarch/memcpy_thunderx.S (USE_THUNDERX2):
14870 Use macro to set name appropriately.
14871 (memcpy): Use USE_THUNDERX2 macro to modify prefetches.
14872 * sysdeps/aarch64/multiarch/memcpy_thunderx2.S: New file.
14873 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_THUNDERX2PA):
14874 New macro.
14875 (IS_THUNDERX2): New macro.
14876
14877 2018-02-22 Stefan Liebler <stli@linux.vnet.ibm.com>
14878
14879 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
14880
14881 2018-02-21 Zack Weinberg <zackw@panix.com>
14882
14883 * libio/libio.h (_IO_pos_BAD, _IO_pos_0, _IO_pos_adjust):
14884 Define here, unconditionally.
14885 * libio/iolibio.h (_IO_pos_BAD): Don't define here.
14886 * libio/libioP.h: Remove #if 0 blocks.
14887 (_IO_pos_BAD, _IO_pos_0, _IO_pos_adjust): Don't define here.
14888 (_IO_va_start, COERCE_FILE, MAYBE_SET_EINVAL): Don't define.
14889 (CHECK_FILE): Don't use MAYBE_SET_EINVAL or COERCE_FILE. Fix style.
14890
14891 * libio/clearerr.c, libio/fputc.c, libio/getchar.c:
14892 Assume weak_alias is always defined.
14893
14894 * libio/fileops.c, libio/genops.c, libio/oldfileops.c
14895 * libio/oldpclose.c, libio/pclose.c, libio/wfileops.c:
14896 Remove #if 0 and #ifdef TODO blocks.
14897 Assume text_set_element is always defined.
14898
14899 * libio/iofdopen.c, libio/iogetdelim.c, libio/oldiofdopen.c
14900 Use __set_errno (EINVAL) instead of MAYBE_SET_EINVAL.
14901 * libio/tst-mmap-eofsync.c: Make #if 1 block unconditional.
14902
14903 * libio/libio.h (_IOS_ATEND, _IOS_APPEND, _IOS_TRUNC)
14904 (_IOS_NOCREATE, _IOS_NOREPLACE, _IOS_BIN, _OLD_STDIO_MAGIC)
14905 (_IO_SKIPWS, _IO_LEFT, _IO_RIGHT, _IO_INTERNAL, _IO_DEC)
14906 (_IO_OCT, _IO_HEX, _IO_SHOWBASE, _IO_SHOWPOINT, _IO_UPPERCASE)
14907 (_IO_SHOWPOS, _IO_SCIENTIFIC, _IO_FIXED, _IO_UNITBUF, _IO_STDIO)
14908 (_IO_DONT_CLOSE, _IO_BOOLALPHA, _IO_BAD_SEEN): Remove, unused.
14909 Reformat bit flags for _flags field to make occupancy clearer.
14910 Update commentary.
14911 * libio/bits/types/struct_FILE.h (_IO_EOF_SEEN, _IO_ERR_SEEN):
14912 Keep definitions consistent with those in libio/libio.h.
14913
14914 * libio/libio.h (_IO_file_flags): Remove macro.
14915 All uses changed to _flags.
14916
14917 * libio/libio.h (_IO_UNIFIED_JUMPTABLES, _STDIO_USES_IOSTREAM)
14918 (__HAVE_COLUMN, _IO_BE): Don't define.
14919 (_IO_peekc_unlocked, _IO_getwc_unlocked, _IO_putwc_unlocked)
14920 (_IO_fwide_maybe_incompatible): Use __glibc_unlikely.
14921 * libio/libioP.h (EOF): Don't define.
14922 * libio/iofdopen.c, libio/iofopen.c, libio/iopopen.c
14923 * libio/iovdprintf.c, libio/oldiofdopen.c, libio/oldiofopen.c
14924 * libio/oldiopopen.c, debug/vdprintf_chk.c: Remove #if block
14925 testing _IO_UNIFIED_JUMPTABLES.
14926
14927 * libio/libio.h (_IO_FILE): Delete; all uses changed to FILE.
14928 (_IO_fpos_t): Delete; all uses changed to __fpos_t.
14929 (_IO_fpos64_t): Delete; all uses changed to __fpos64_t.
14930 (_IO_size_t): Delete; all uses changed to size_t.
14931 (_IO_ssize_t): Delete; all uses changed to ssize_t or __ssize_t.
14932 (_IO_off_t): Delete; all uses changed to off_t.
14933 (_IO_off64_t): Delete; all uses changed to off64_t.
14934 (_IO_pid_t): Delete; all uses changed to pid_t.
14935 (_IO_uid_t): Delete; all uses changed to uid_t.
14936 (_IO_wint_t): Delete; all uses changed to wint_t.
14937 (_IO_va_list): Delete; all uses changed to va_list or __gnuc_va_list.
14938 (_IO_BUFSIZ): Delete; all uses changed to BUFSIZ.
14939 (_IO_cookie_io_functions_t): Delete; all uses changed to
14940 cookie_io_functions_t.
14941 (__io_read_fn): Delete; all uses changed to cookie_read_function_t.
14942 (__io_write_fn): Delete; all uses changed to cookie_write_function_t.
14943 (__io_seek_fn): Delete; all uses changed to cookie_seek_function_t.
14944 (__io_close_fn): Delete: all uses changed to cookie_close_function_t.
14945
14946 * libio/iofopncook.c: Remove unnecessary forward declarations.
14947 * libio/iolibio.h: Correct outdated commentary.
14948 * malloc/malloc.c (__malloc_stats): Remove unnecessary casts.
14949 * stdio-common/fxprintf.c (__fxprintf_nocancel):
14950 Remove unnecessary casts.
14951 * stdio-common/getline.c: Use _IO_getdelim directly.
14952 Don't redefine ssize_t.
14953 * stdio-common/printf_fp.c, stdio_common/printf_fphex.c
14954 * stdio-common/printf_size.c: Don't redefine size_t or FILE.
14955 Remove outdated comments.
14956 * stdio-common/vfscanf.c: Don't redefine va_list.
14957
14958 * libio/iolibio.h, libio/libioP.h: Remove extern "C".
14959 * libio/libio.h: Remove __BEGIN_DECLS and __END_DECLS.
14960 Remove preprocessor conditionals on _LIBC and __USE_GNU,
14961 which are always true, and __cplusplus, which is always false.
14962
14963 2018-02-21 Joseph Myers <joseph@codesourcery.com>
14964
14965 [BZ #15105]
14966 [BZ #19463]
14967 * libio/fputc_u.c (fputc_unlocked): Use libc_hidden_def.
14968 * libio/putc_u.c (putc_unlocked): Rename to __putc_unlocked and
14969 define as weak alias of __putc_unlocked. Use libc_hidden_weak.
14970 * include/stdio.h [!_ISOMAC] (fputc_unlocked): Use
14971 libc_hidden_proto.
14972 [!_ISOMAC] (putc_unlocked): Likewise.
14973 [!_ISOMAC] (__putc_unlocked): Declare as hidden function, and
14974 define inline if [__USE_EXTERN_INLINES].
14975 * misc/syslog.c (__vsyslog_chk): Call __putc_unlocked instead of
14976 putc_unlocked.
14977
14978 [BZ #15105]
14979 [BZ #19463]
14980 * libio/getc_u.c (getc_unlocked): Use libc_hidden_weak.
14981 * include/stdio.h [!_ISOMAC] (__getc_unlocked): Use
14982 attribute_hidden, and define inline if [__USE_EXTERN_INLINES].
14983 [!_ISOMAC] (getc_unlocked): Use libc_hidden_proto.
14984 * misc/getttyent.c (__getttyent): Call __getc_unlocked instead of
14985 getc_unlocked.
14986 * time/tzfile.c (__tzfile_read): Likewise.
14987
14988 2018-02-21 Mike FABIAN <mfabian@redhat.com>
14989
14990 [BZ #22517]
14991 * localedata/locales/et_EE (LC_COLLATE): add missing “reorder-end”
14992
14993 2018-02-21 Rical Jasan <ricaljasan@pacific.net>
14994
14995 * io/fcntl.h: Fix a typo in a comment.
14996
14997 2018-02-21 Rical Jasan <ricaljasan@pacific.net>
14998
14999 [BZ #22862]
15000 * include/features.h: Add _ISOC11_SOURCE to test for whether to
15001 define _DEFAULT_SOURCE.
15002 * manual/creature.texi (_DEFAULT_SOURCE): Improve documentation.
15003
15004 2018-02-21 Florian Weimer <fweimer@redhat.com>
15005
15006 [BZ #20890]
15007 * elf/cache.c (save_cache): Call fsync on temporary file before
15008 renaming it.
15009 (save_aux_cache): Call fdatasync on temporary file before renaming
15010 it.
15011
15012 2018-02-21 Florian Weimer <fweimer@redhat.com>
15013
15014 [BZ #22787]
15015 * include/caller.h: Remove file.
15016 * elf/dl-caller.c: Likewise.
15017 * elf/Makefile (dl-routines): Remove dl-caller.
15018 (shared-only-routines): Do not add dl-caller.
15019 * elf/dl-load.c (_dl_map_object_from_fd): Do not call
15020 __check_caller.
15021 * elf/dl-open.c (struct dl_open_args): Remove caller_dl_open
15022 member.
15023 (dl_open_worker): Do not call __check_caller.
15024 (_dl_open): Do not set caller_dl_open member.
15025 * elf/rtld.c (_rtld_global_ro): Do not initialize
15026 _dl_check_caller member.
15027 * sysdeps/generic/ldsodefs.h (rtld_global): Remove
15028 _dl_check_caller member.
15029 (_dl_check_caller): Remove declaration.
15030 * sysdeps/unix/sysv/linux/dl-execstack.c
15031 (_dl_make_stack_executable): Do not call __check_caller.
15032
15033 2018-02-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
15034
15035 * sysdeps/mach/hurd/dl-sysdep.c (_dl_random): New variable.
15036 * sysdeps/mach/hurd/sysdep-cancel.h: New file.
15037
15038 2018-02-20 Rical Jasan <ricaljasan@pacific.net>
15039
15040 * manual/creature.texi (_ISOC99_SOURCE): Update the dated
15041 description.
15042
15043 2018-02-20 Rical Jasan <ricaljasan@pacific.net>
15044
15045 [BZ #16335]
15046 * manual/creature.texi (_POSIX_C_SOURCE): Document special values
15047 of 199606L, 200112L, and 200809L.
15048 (_XOPEN_SOURCE): Document special values of 600 and 700.
15049 (_ISOC11_SOURCE): Document macro.
15050 (_ATFILE_SOURCE): Likewise.
15051 (_FORTIFY_SOURCE): Likewise.
15052
15053 2018-02-19 Joseph Myers <joseph@codesourcery.com>
15054
15055 [BZ #15105]
15056 [BZ #19463]
15057 * libio/ferror_u.c (ferror_unlocked): Rename to __ferror_unlocked
15058 and define as weak alias of __ferror_unlocked. Use
15059 libc_hidden_weak.
15060 * include/stdio.h [!_ISOMAC] (ferror_unlocked): Use
15061 libc_hidden_proto.
15062 [!_ISOMAC] (__ferror_unlocked) New declaration, and inline
15063 function if [__USE_EXTERN_INLINES].
15064 * time/getdate.c (__getdate_r): Call __ferror_unlocked instead of
15065 ferror_unlocked.
15066
15067 2018-02-19 Rical Jasan <ricaljasan@pacific.net>
15068
15069 [BZ #6889]
15070 * manual/filesys.texi (get_current_dir_name): Clarify behaviour.
15071
15072 2018-02-18 Aurelien Jarno <aurelien@aurel32.net>
15073
15074 [BZ #22818]
15075 * posix/tst-glob_lstat_compat.c [__alpha__] (glob): Access
15076 the GLIBC_2.1 version.
15077
15078 2018-02-18 Aurelien Jarno <aurelien@aurel32.net>
15079
15080 [BZ #21508]
15081 * catgets/xopen-msg.awk: Ignore POT-Creation-Date line.
15082 * intl/Makefile ($(objpfx)tst-gettext-de.po): Generate
15083 intl/tst-gettext-de.po from po/de.po by removing the
15084 POT-Creation-Date line.
15085 ($(objpfx)msgs.h): Depend on $(objpfx)tst-gettext-de.po instead of
15086 ../po/de.po.
15087 * intl/tst-gettext.sh: Use ${objpfx}tst-gettext-de.po instead of
15088 ../po/de.po.
15089
15090 2018-02-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
15091
15092 * mach/Makefile (headers): Add mach/param.h.
15093 * sysdeps/mach/hurd/bits/param.h: Include <mach/param.h>.
15094 * sysdeps/mach/i386/mach/param.h: New file, defines EXEC_PAGESIZE
15095 * sysdeps/mach/hurd/ptsname.c: Include <sys/stat.h>.
15096 (__ptsname_r): Move implementation to...
15097 (__ptsname_internal): ... new function. Add filling the STP
15098 structure.
15099
15100 2018-02-17 John David Anglin <danglin@gcc.gnu.org>
15101
15102 * sysdeps/hppa/fpu/libm-test-ulps (pow): Increase double and
15103 idouble to 1 ULP.
15104
15105 2018-02-16 Rical Jasan <ricaljasan@pacific.net>
15106
15107 * manual/platform.texi (__riscv_flush_icache): Fix @deftypefun
15108 syntax.
15109
15110 2018-02-16 Stefan Liebler <stli@linux.vnet.ibm.com>
15111
15112 * nptl/Makefile (tst-mutex8-ENV): Delete.
15113 * nptl/tst-mutex8.c (check_type):
15114 Add runtime check if mutex will be elided.
15115
15116 2018-02-15 Joseph Myers <joseph@codesourcery.com>
15117
15118 [BZ #20980]
15119 [BZ #21234]
15120 * manual/install.texi (Configuring and compiling): Describe
15121 passing CC and CFLAGS on configure command line, not as
15122 environment variables. Use @code markup on those variables.
15123 Specify what options go in CC and what go in CFLAGS. Note the
15124 requirement to compile with optimization.
15125 * INSTALL: Regenerated.
15126
15127 [BZ #18124]
15128 * sysdeps/hppa/bsd-setjmp.S: Include <sysdep.h>.
15129 (setjmp): Use HIDDEN_JUMPTARGET with __sigsetjmp.
15130 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Call
15131 __sigprocmask instead of sigprocmask.
15132 * sysdeps/unix/sysv/linux/hppa/setcontext.S (__setcontext):
15133 Likewise.
15134 * sysdeps/unix/sysv/linux/hppa/localplt.data: Remove entries for
15135 __sigsetjmp and sigprocmask.
15136
15137 [BZ #15105]
15138 * include/argz.h (argz_next): Use libc_hidden_proto.
15139 (__argz_next): Likewise.
15140 * string-argz-next.c (__argz_next): Use libc_hidden_def.
15141 (argz_next): Use libc_hidden_weak.
15142
15143 [BZ #15105]
15144 * include/sys/socket.h [!_ISOMAC] (__cmsg_nxthdr): Use
15145 libc_hidden_proto.
15146 * sysdeps/unix/sysv/linux/cmsg_nxthdr.c (__cmsg_nxthdr): Use
15147 libc_hidden_def.
15148
15149 [BZ #15105]
15150 * include/stdio.h [!_ISOMAC && IS_IN (libc)] (fputs): Use
15151 libc_hidden_proto.
15152 * libio/iofputs.c (fputs): Use libc_hidden_weak.
15153
15154 [BZ #15105]
15155 [BZ #19463]
15156 * libio/feof_u.c (feof_unlocked): Rename to __feof_unlocked and
15157 define as weak alias of __feof_unlocked. Use libc_hidden_weak.
15158 * include/stdio.h (feof_unlocked): Use libc_hidden_proto.
15159 (__feof_unlocked): New declaration, and inline function if
15160 [__USE_EXTERN_INLINES].
15161 * iconv/gconv_conf.c (read_conf_file): Call __feof_unlocked
15162 instead of feof_unlocked.
15163 * intl/localealias.c [_LIBC] (FEOF): Likewise.
15164 * nss/nsswitch.c (nss_parse_file): Likewise.
15165 * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area):
15166 Likewise.
15167 * time/getdate.c (__getdate_r): Likewise.
15168 * sysdeps/posix/getaddrinfo.c [IS_IN (libc)] (feof_unlocked):
15169 Define as macro to call __feof_unlocked.
15170
15171 2018-02-15 Wilco Dijkstra <wdijkstr@arm.com>
15172
15173 * sysdeps/aarch64/fpu/fpu_control.h: Use <> in include.
15174
15175 2018-02-15 Wilco Dijkstra <wdijkstr@arm.com>
15176
15177 * math/Makefile: Remove mpexp.c and mplog.c
15178 * sysdeps/i386/fpu/mpexp.c: Delete file.
15179 * sysdeps/i386/fpu/mplog.c: Likewise.
15180 * sysdeps/ia64/fpu/mpexp.c: Likewise.
15181 * sysdeps/ia64/fpu/mplog.c: Likewise.
15182 * sysdeps/ieee754/dbl-64/e_exp.c: Remove mention of mpexp and mplog.
15183 * sysdeps/ieee754/dbl-64/mpa.h (__pow_mp): Remove unused function.
15184 * sysdeps/ieee754/dbl-64/mpexp.c: Delete file.
15185 * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
15186 * sysdeps/m68k/m680x0/fpu/mpexp.c: Likewise.
15187 * sysdeps/m68k/m680x0/fpu/mplog.c: Likewise.
15188 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove mpexp* and mplog*.
15189 * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: Remove unused defines.
15190 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c: Likewise.
15191 * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
15192 * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: Delete file.
15193 * sysdeps/x86_64/fpu/multiarch/mpexp-fma.c: Likewise.
15194 * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
15195 * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: Likewise.
15196 * sysdeps/x86_64/fpu/multiarch/mplog-fma.c: Likewise.
15197 * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
15198
15199 2018-02-15 Stefan Liebler <stli@linux.vnet.ibm.com>
15200
15201 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
15202
15203 2018-02-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15204
15205 * sysdeps/sh/libm-test-ulps: Update.
15206
15207 2018-02-12 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
15208
15209 * sysdeps/powerpc/fpu/libm-test-ulps (pow): Increase double and
15210 idouble to 1 ULP.
15211
15212 2018-02-12 Zack Weinberg <zackw@panix.com>
15213
15214 [BZ #19239]
15215 * posix/sys/types.h: Don't include sys/sysmacros.h.
15216 * misc/sys/sysmacros.h: Remove the conditional deprecation
15217 warnings for the macros defined by this header.
15218
15219 2018-02-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
15220
15221 * manual/probes.texi: Remove slowexp probes.
15222 * math/Makefile: Remove slowexp.
15223 * sysdeps/generic/math_private.h (__slowexp): Remove.
15224 * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Remove __slowexp and
15225 document error bounds.
15226 * sysdeps/i386/fpu/slowexp.c: Remove.
15227 * sysdeps/ia64/fpu/slowexp.c: Remove.
15228 * sysdeps/ieee754/dbl-64/slowexp.c: Remove.
15229 * sysdeps/ieee754/dbl-64/uexp.h (err_0): Remove.
15230 * sysdeps/m68k/m680x0/fpu/slowexp.c: Remove.
15231 * sysdeps/powerpc/power4/fpu/Makefile (CPPFLAGS-slowexp.c): Remove.
15232 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove slowexp-fma.
15233 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Remove.
15234 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Remove.
15235 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Remove.
15236 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Remove.
15237 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Remove.
15238 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Remove.
15239
15240 2018-02-12 Wilco Dijkstra <wdijkstr@arm.com>
15241
15242 [BZ #13932]
15243 * sysdeps/ieee754/dbl-64/uexp.h (err_1): Remove.
15244 * benchtests/pow-inputs: Update comment for slow path cases.
15245 * manual/probes.texi (slowpow_p10): Delete removed probe.
15246 (slowpow_p10): Likewise.
15247 * math/Makefile: Remove halfulp.c and slowpow.c.
15248 * sysdeps/aarch64/libm-test-ulps: Set ULP of pow to 1.
15249 * sysdeps/generic/math_private.h (__exp1): Remove error argument.
15250 (__halfulp): Remove.
15251 (__slowpow): Remove.
15252 * sysdeps/i386/fpu/halfulp.c: Delete file.
15253 * sysdeps/i386/fpu/slowpow.c: Likewise.
15254 * sysdeps/ia64/fpu/halfulp.c: Likewise.
15255 * sysdeps/ia64/fpu/slowpow.c: Likewise.
15256 * sysdeps/ieee754/dbl-64/e_exp.c (__exp1): Remove error argument,
15257 improve comments and add error analysis.
15258 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Add error analysis.
15259 (power1): Remove function:
15260 (log1): Remove error argument, add error analysis.
15261 (my_log2): Remove function.
15262 * sysdeps/ieee754/dbl-64/halfulp.c: Delete file.
15263 * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
15264 * sysdeps/m68k/m680x0/fpu/halfulp.c: Likewise.
15265 * sysdeps/m68k/m680x0/fpu/slowpow.c: Likewise.
15266 * sysdeps/powerpc/power4/fpu/Makefile: Remove CPPFLAGS-slowpow.c.
15267 * sysdeps/x86_64/fpu/libm-test-ulps: Set ULP of pow to 1.
15268 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove slowpow-fma.c,
15269 slowpow-fma4.c, halfulp-fma.c, halfulp-fma4.c.
15270 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c (__slowpow): Remove define.
15271 * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c (__slowpow): Likewise.
15272 * sysdeps/x86_64/fpu/multiarch/halfulp-fma.c: Delete file.
15273 * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
15274 * sysdeps/x86_64/fpu/multiarch/slowpow-fma.c: Likewise.
15275 * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
15276
15277 2018-02-11 Samuel Thibault <samuel.thibault@ens-lyon.org>
15278
15279 * nscd/connections.c (RWLOCK_INITIALIZER): Define to
15280 PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP or
15281
15282 2018-02-10 Dmitry V. Levin <ldv@altlinux.org>
15283
15284 [BZ #22433]
15285 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (__ptrace_request):
15286 Remove arm-specific PTRACE_GET_THREAD_AREA, PTRACE_GETHBPREGS,
15287 and PTRACE_SETHBPREGS.
15288
15289 2018-02-10 Zack Weinberg <zackw@panix.com>
15290
15291 [BZ #22830]
15292 * malloc/malloc.c (__malloc_stats): Restore stderr->_flags2
15293 correctly.
15294 * malloc/tst-malloc-stats-cancellation.c: New test case.
15295 * malloc/Makefile: Add new test case.
15296
15297 2018-02-10 Wilco Dijkstra <wdijkstr@arm.com>
15298
15299 * sysdeps/aarch64/fpu/fpu_control.h: Add features.h to fix build error.
15300
15301 2018-02-10 Joseph Myers <joseph@codesourcery.com>
15302
15303 * math/Makefile (libm-narrow-fns): Add add.
15304 (libm-test-funcs-narrow): Likewise.
15305 * math/Versions (GLIBC_2.28): Add narrowing add functions.
15306 * math/bits/mathcalls-narrow.h (add): Use __MATHCALL_NARROW .
15307 * math/gen-auto-libm-tests.c (test_functions): Add add.
15308 * math/math-narrow.h (CHECK_NARROW_ADD): New macro.
15309 (NARROW_ADD_ROUND_TO_ODD): Likewise.
15310 (NARROW_ADD_TRIVIAL): Likewise.
15311 * sysdeps/ieee754/float128/float128_private.h (__faddl): New
15312 macro.
15313 (__daddl): Likewise.
15314 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fadd and
15315 dadd.
15316 (CFLAGS-nldbl-dadd.c): New variable.
15317 (CFLAGS-nldbl-fadd.c): Likewise.
15318 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
15319 __nldbl_daddl.
15320 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_daddl): New
15321 prototype.
15322 * manual/arith.texi (Misc FP Arithmetic): Document fadd, faddl,
15323 daddl, fMaddfN, fMaddfNx, fMxaddfN and fMxaddfNx.
15324 * math/auto-libm-test-in: Add tests of add.
15325 * math/auto-libm-test-out-narrow-add: New generated file.
15326 * math/libm-test-narrow-add.inc: New file.
15327 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
15328 * sysdeps/ieee754/dbl-64/s_f32xaddf64.c: Likewise.
15329 * sysdeps/ieee754/dbl-64/s_fadd.c: Likewise.
15330 * sysdeps/ieee754/float128/s_f32addf128.c: Likewise.
15331 * sysdeps/ieee754/float128/s_f64addf128.c: Likewise.
15332 * sysdeps/ieee754/float128/s_f64xaddf128.c: Likewise.
15333 * sysdeps/ieee754/ldbl-128/s_daddl.c: Likewise.
15334 * sysdeps/ieee754/ldbl-128/s_f64xaddf128.c: Likewise.
15335 * sysdeps/ieee754/ldbl-128/s_faddl.c: Likewise.
15336 * sysdeps/ieee754/ldbl-128ibm/s_daddl.c: Likewise.
15337 * sysdeps/ieee754/ldbl-128ibm/s_faddl.c: Likewise.
15338 * sysdeps/ieee754/ldbl-96/s_daddl.c: Likewise.
15339 * sysdeps/ieee754/ldbl-96/s_faddl.c: Likewise.
15340 * sysdeps/ieee754/ldbl-opt/nldbl-dadd.c: Likewise.
15341 * sysdeps/ieee754/ldbl-opt/nldbl-fadd.c: Likewise.
15342 * sysdeps/ieee754/soft-fp/s_daddl.c: Likewise.
15343 * sysdeps/ieee754/soft-fp/s_fadd.c: Likewise.
15344 * sysdeps/ieee754/soft-fp/s_faddl.c: Likewise.
15345 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
15346 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
15347 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
15348 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
15349 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
15350 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
15351 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
15352 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
15353 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
15354 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
15355 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
15356 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
15357 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
15358 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
15359 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
15360 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
15361 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
15362 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
15363 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
15364 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
15365 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
15366 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
15367 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
15368 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
15369 * sysdeps/unix/sysv/linux/tile/tilegx32/libm.abilist: Likewise.
15370 * sysdeps/unix/sysv/linux/tile/tilegx64/libm.abilist: Likewise.
15371 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
15372 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
15373
15374 * sysdeps/powerpc/powerpc64le/Makefile [$(subdir) = math]
15375 (f128-pairs): New variable.
15376 [$(subdir) = math] ($(foreach suf,$(all-object-suffixes),$(foreach
15377 pair,$(f128-pairs),$(objpfx)test-$(pair)%$(suf)))): Add -mfloat128
15378 to CFLAGS.
15379 [$(subdir) = math] ($(foreach pair,$(f128-pairs),test-$(pair)%)):
15380 Also make tests add $(f128-loader-link) to gnulib-tests.
15381
15382 2018-02-09 DJ Delorie <dj@redhat.com>
15383
15384 [BZ #22827]
15385 * sysdeps/unix/sysv/linux/riscv/readelflib.c (process_elf_file): Use
15386 64-bit ELF type for 64-bit ELF objects.
15387
15388 2018-02-09 Joseph Myers <joseph@codesourcery.com>
15389
15390 * math/libm-test-driver.c (snan_tests_arg): New variable.
15391 * math/libm-test-support.h (snan_tests_arg): New declaration.
15392 * math/libm-test-support.c (enable_test): Check snan_tests_arg.
15393
15394 * math/Makefile (test-type-pairs): New variable.
15395 (test-type-pairs-f64xf128-yes): Likewise.
15396 (tests): Add test-narrow-macros.
15397 (libm-test-funcs-narrow): New variable.
15398 (libm-test-c-narrow): Likewise.
15399 (generated): Add $(libm-test-c-narrow).
15400 (libm-tests-base-narrow): New variable.
15401 (libm-tests-narrow): Likewise.
15402 (libm-tests): Add $(libm-tests-narrow).
15403 (libm-tests-for-type): Handle $(libm-tests-narrow).
15404 (libm-test-c-narrow-obj): New variable.
15405 ($(libm-test-c-narrow-obj)): New rule.
15406 ($(foreach t,$(libm-tests-narrow),$(objpfx)$(t).c)): Likewise.
15407 ($(foreach f,$(libm-test-funcs-narrow),$(objpfx)$(o)-$(f).o)): Use
15408 $(o-iterator) to set dependencies and CFLAGS.
15409 * math/gen-auto-libm-tests.c: Document use for narrowing
15410 functions.
15411 (output_for_one_input_case): Take argument NARROW.
15412 (generate_output): Likewise. Update call to
15413 output_for_one_input_case.
15414 (main): Take --narrow option. Update call to generate_output.
15415 * math/gen-libm-test.pl (_apply_lit): Take macro name as argument.
15416 (apply_lit): Update call to _apply_lit.
15417 (apply_arglit): New function.
15418 (parse_args): Handle "a" arguments.
15419 (parse_auto_input): Handle format names using ":".
15420 * math/README.libm-test: Document "a" parameter type.
15421 * math/libm-test-support.h (ARG_TYPE_MIN): New macro.
15422 (ARG_TYPE_TRUE_MIN): Likewise.
15423 (ARG_TYPE_MAX): Likwise.
15424 (ARG_MIN_EXP): Likewise.
15425 (ARG_MAX_EXP): Likewise.
15426 (ARG_MANT_DIG): Likewise.
15427 (TEST_COND_arg_ibm128): Likewise.
15428 (TEST_COND_ibm128_libgcc): Define conditional on [ARG_FLOAT].
15429 (TEST_COND_arg_fmt): New macro.
15430 (init_max_error): Update prototype.
15431 * math/libm-test-support.c (test_ibm128): New variable.
15432 (init_max_error): Take argument testing_ibm128 and set test_ibm128
15433 instead of using [TEST_COND_ibm128] conditional.
15434 (test_exceptions): Use test_ibm128 instead of TEST_COND_ibm128.
15435 * math/libm-test-driver.c (STR_ARG_FLOAT): New macro.
15436 [TEST_NARROW] (TEST_MSG): New definition.
15437 (arg_plus_zero): New macro.
15438 (arg_minus_zero): Likewise.
15439 (arg_plus_infty): Likewise.
15440 (arg_minus_infty): Likewise.
15441 (arg_qnan_value_pl): Likewise.
15442 (arg_qnan_value): Likewise.
15443 (arg_snan_value_pl): Likewise.
15444 (arg_snan_value): Likewise.
15445 (arg_max_value): Likewise.
15446 (arg_min_value): Likewise.
15447 (arg_min_subnorm_value): Likewise.
15448 [ARG_FLOAT] (struct test_aa_f_data): New struct type.
15449 (RUN_TEST_LOOP_aa_f): New macro.
15450 (TEST_SUFF): New macro.
15451 (TEST_SUFF_STR): Likewise.
15452 [!TEST_MATHVEC] (VEC_SUFF): Don't define.
15453 (TEST_COND_any_ibm128): New macro.
15454 (START): Use TEST_SUFF and TEST_SUFF_STR in initializer for
15455 this_func. Update call to init_max_error.
15456 * math/test-double.h (FUNC_NARROW_PREFIX): New macro.
15457 * math/test-float.h (FUNC_NARROW_PREFIX): Likewise.
15458 * math/test-float128.h (FUNC_NARROW_PREFIX): Likewise.
15459 * math/test-float32.h (FUNC_NARROW_PREFIX): Likewise.
15460 * math/test-float32x.h (FUNC_NARROW_PREFIX): Likewise.
15461 * math/test-float64.h (FUNC_NARROW_PREFIX): Likewise.
15462 * math/test-float64x.h (FUNC_NARROW_PREFIX): Likewise.
15463 * math/test-math-scalar.h (TEST_NARROW): Likewise.
15464 * math/test-math-vector.h (TEST_NARROW): Likewise.
15465 * math/test-arg-double.h: New file.
15466 * math/test-arg-float128.h: Likewise.
15467 * math/test-arg-float32x.h: Likewise.
15468 * math/test-arg-float64.h: Likewise.
15469 * math/test-arg-float64x.h: Likewise.
15470 * math/test-arg-ldouble.h: Likewise.
15471 * math/test-math-narrow.h: Likewise.
15472 * math/test-narrow-macros.c: Likewise.
15473 * sysdeps/ieee754/ldbl-opt/test-narrow-macros-ldbl-64.c: Likewise.
15474 * sysdeps/ieee754/ldbl-opt/Makefile (tests): Add
15475 test-narrow-macros-ldbl-64.
15476 (CFLAGS-test-narrow-macros-ldbl-64.c): New variable.
15477
15478 * math/bits/mathcalls-narrow.h: New file.
15479 * include/bits/mathcalls-narrow.h: Likewise.
15480 * math/math-narrow.h: Likewise.
15481 * math/math.h (__MATHCALL_NARROW_ARGS_1): New macro.
15482 (__MATHCALL_NARROW_ARGS_2): Likewise.
15483 (__MATHCALL_NARROW_ARGS_3): Likewise.
15484 (__MATHCALL_NARROW_NORMAL): Likewise.
15485 (__MATHCALL_NARROW_REDIR): Likewise.
15486 (__MATHCALL_NARROW): Likewise.
15487 [__GLIBC_USE (IEC_60559_BFP_EXT)]: Repeatedly include
15488 <bits/mathcalls-narrow.h> with _Mret_, _Marg_ and __MATHCALL_NAME
15489 defined.
15490 [__GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
15491 * math/Makefile (headers): Add bits/mathcalls-narrow.h.
15492 (libm-narrow-fns): New variable.
15493 (libm-narrow-types-basic): Likewise.
15494 (libm-narrow-types-ldouble-yes): Likewise.
15495 (libm-narrow-types-float128-yes): Likewise.
15496 (libm-narrow-types-float128-alias-yes): Likewise.
15497 (libm-narrow-types): Likewise.
15498 (libm-routines): Add narrowing functions.
15499 * sysdeps/i386/fpu/fenv_private.h [__x86_64__]
15500 (libc_feholdexcept_setroundf128): New macro.
15501 [__x86_64__] (libc_feupdateenv_testf128): Likewise.
15502 * sysdeps/ieee754/float128/float128_private.h: Include
15503 <math/math-narrow.h>.
15504 [libc_feholdexcept_setroundf128] (libc_feholdexcept_setroundl):
15505 Undefine and redefine.
15506 [libc_feupdateenv_testf128] (libc_feupdateenv_testl): Likewise.
15507 (libm_alias_float_ldouble): Undefine and redefine.
15508 (libm_alias_double_ldouble): Likewise.
15509
15510 * math/Makefile [$(PERL) != no] (libm-test-incs): Remove variable.
15511
15512 2018-02-09 Wilco Dijkstra <wdijkstr@arm.com>
15513
15514 * sysdeps/aarch64/fpu/fpu_control.h: Use builtins for accessing
15515 FPCR/FPSR.
15516
15517 2018-02-09 Rical Jasan <ricaljasan@pacific.net>
15518
15519 * manual/creature.texi: Convert references to gcc.info to gcc.
15520 * manual/stdio.texi: Likewise.
15521 * manual/string.texi: Likewise.
15522
15523 2018-02-07 Joseph Myers <joseph@codesourcery.com>
15524
15525 [BZ #17979]
15526 * posix/bits/types.h (__int_least8_t): New typedef.
15527 (__uint_least8_t): Likewise.
15528 (__int_least16_t): Likewise.
15529 (__uint_least16_t): Likewise.
15530 (__int_least32_t): Likewise.
15531 (__uint_least32_t): Likewise.
15532 (__int_least64_t): Likewise.
15533 (__uint_least64_t): Likewise.
15534 * sysdeps/generic/stdint.h (int_least8_t): Define using
15535 __int_least8_t.
15536 (int_least16_t): Define using __int_least16_t.
15537 (int_least32_t): Define using __int_least32_t.
15538 (int_least64_t): Define using __int_least64_t.
15539 (uint_least8_t): Define using __uint_least8_t.
15540 (uint_least16_t): Define using __uint_least16_t.
15541 (uint_least32_t): Define using __uint_least32_t.
15542 (uint_least64_t): Define using __uint_least64_t.
15543 * wcsmbs/uchar.h: Include <bits/types.h>.
15544 (char16_t): Define using __uint_least16_t conditional only on
15545 [!__USE_ISOCXX11].
15546 (char32_t): Define using __uint_least32_t conditional only on
15547 [!__USE_ISOCXX11].
15548 * wcsmbs/test-char-types.c: New file.
15549 * wcsmbs/Makefile (tests): Add test-char-types.
15550
15551 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
15552 version to 4.0.1.
15553
15554 2018-02-07 Zack Weinberg <zackw@panix.com>
15555
15556 * bits/_G_config.h: Move back to sysdeps/generic/_G_config.h.
15557 Delete all contents except for definitions of _G_HAVE_MMAP and
15558 _G_HAVE_MREMAP. Add commentary explaining those two symbols.
15559 * sysdeps/unix/sysv/linux/bits/_G_config.h: Move back to
15560 sysdeps/unix/sysv/linux/_G_config.h. Make same content
15561 change as above.
15562
15563 * libio/libio.h: Don't include bits/_G_config.h here.
15564 Include stddef.h with __need_wchar_t defined. Include
15565 bits/types/__mbstate_t.h, bits/types/wint_t.h, and gconv.h.
15566 Define _IO_iconv_t here, directly.
15567 Don't define _IO_HAVE_ST_BLKSIZE.
15568 * libio/libioP.h: Include _G_config.h here. Move include of
15569 shlib-compat.h up with rest of includes. Simplify conditionals
15570 controlling definition of _IO_JUMPS_OFFSET.
15571
15572 * csu/init.c: Remove always-true #if around entire file.
15573 Don't include stdio.h. Set _IO_stdin_used to hardwired
15574 constant 0x20001, and update commentary.
15575 * include/stdio.h, sysdeps/ieee754/ldbl-opt/nldbl-compat.h:
15576 Replace all uses of _G_va_list with __gnuc_va_list.
15577 * libio/filedoalloc.c: Use #if defined _STATBUF_ST_BLKSIZE
15578 instead of #if _IO_HAVE_ST_BLKSIZE.
15579 * libio/fileops.c: Test _G_HAVE_MREMAP with #if, not #ifdef.
15580 * libio/iofdopen.c, libio/iofopen.c: Test _G_HAVE_MMAP with #if,
15581 not #ifdef.
15582
15583 * libio/bits/libio.h: Move back to libio/libio.h and adjust
15584 multiple-include guard to match.
15585 Merge contents of libio/bits/libio-ldbl.h and include/libio.h
15586 into this file.
15587 Remove preprocessor conditionals that are always true and/or
15588 redundant to other preprocessor conditionals in the same nest.
15589 Include shlib-compat.h unconditionally.
15590 Error out if _LIBC is not defined, or if _ISOMAC is defined,
15591 or if _IO_MTSAFE_IO is defined but _IO_lock_t_defined is not
15592 defined after including stdio.h.
15593 Use __BEGIN_DECLS/__END_DECLS.
15594
15595 * libio/bits/libio-ldbl.h, include/bits/libio.h: Delete file.
15596 * include/stdio.h, libio/iolibio.h, libio/libioP.h: Include
15597 libio.h as <libio/libio.h> rather than as <bits/libio.h>.
15598
15599 2018-02-07 Zack Weinberg <zackw@panix.com>
15600
15601 * libio/bits/types/__fpos_t.h, libio/bits/types/__fpos64_t.h:
15602 New single-type headers split from _G_config.h.
15603 * libio/bits/types/cookie_io_functions_t.h
15604 * libio/bits/types/struct_FILE.h
15605 New single-type headers split from libio.h.
15606
15607 * libio/Makefile: Install the above new headers. Don't install
15608 libio.h, _G_config.h, bits/libio.h, bits/_G_config.h, or
15609 bits/libio-ldbl.h.
15610 * libio/_G_config.h, libio/libio.h: Delete file.
15611
15612 * libio/bits/libio.h: Remove improper-inclusion guard.
15613 Include stdio.h and don't repeat anything that it does.
15614 Define _IO_fpos_t as __fpos_t, _IO_fpos64_t as __fpos64_t,
15615 _IO_BUFSIZ as BUFSIZ, _IO_va_list as __gnuc_va_list,
15616 __io_read_fn as cookie_read_function_t,
15617 __io_write_fn as cookie_write_function_t,
15618 __io_seek_fn as cookie_seek_function_t,
15619 __io_close_fn as cookie_close_function_t,
15620 and _IO_cookie_io_functions_t as cookie_io_functions_t.
15621 Define _STDIO_USES_IOSTREAM, __HAVE_COLUMN, and _IO_file_flags
15622 here, in the "compatibility defines" section. Remove an #if 0
15623 block. Use the "body" macros from bits/types/struct_FILE.h to
15624 define _IO_getc_unlocked, _IO_putc_unlocked, _IO_feof_unlocked,
15625 and _IO_ferror_unlocked.
15626 Move prototypes of __uflow and __overflow...
15627
15628 * libio/stdio.h: ...here. Don't include bits/libio.h.
15629 Don't define _STDIO_USES_IOSTREAM. Get __gnuc_va_list
15630 directly from stdarg.h. Include bits/types/__fpos_t.h,
15631 bits/types/__fpos64_t.h, bits/types/struct_FILE.h,
15632 and, when __USE_GNU, bits/types/cookie_io_functions_t.h.
15633 Use __gnuc_va_list, not _G_va_list; __fpos_t, not _G_fpos_t;
15634 __fpos64_t, not _G_fpos64_t; FILE, not struct _IO_FILE;
15635 cookie_io_functions_t, not _IO_cookie_io_functions_t;
15636 __ssize_t, not _IO_ssize_t. Unconditionally define
15637 BUFSIZ as 8192 and EOF as (-1).
15638
15639 * libio/bits/stdio.h: Add multiple-include guard. Use the "body"
15640 macros from bits/types/struct_FILE.h instead of _IO_* macros
15641 from libio.h; use __gnuc_va_list instead of va_list and __ssize_t
15642 instead of _IO_ssize_t.
15643 * libio/bits/stdio2.h: Similarly.
15644
15645 * libio/iolibio.h: Add multiple-include guard.
15646 Include bits/libio.h after stdio.h.
15647 * libio/libioP.h: Add multiple-include guard.
15648 Include stdio.h and bits/libio.h before iolibio.h.
15649
15650 * include/bits/types/__fpos_t.h, include/bits/types/__fpos64_t.h
15651 * include/bits/types/cookie_io_functions_t.h
15652 * include/bits/types/struct_FILE.h: New wrappers.
15653
15654 * bits/_G_config.h, sysdeps/unix/sysv/linux/_G_config.h:
15655 Get definitions of _G_fpos_t and _G_fpos64_t from
15656 bits/types/__fpos_t.h and bits/types/__fpos64_t.h
15657 respectively. Remove improper-inclusion guards.
15658
15659 * conform/data/stdio.h-data: Update expectations of va_list.
15660 * scripts/check-installed-headers.sh: Remove special case for
15661 libio.h and _G_config.h.
15662
15663 2018-02-07 Joseph Myers <joseph@codesourcery.com>
15664
15665 [BZ #15105]
15666 [BZ #19463]
15667 * include/sys/sysmacros.h [!_ISOMAC]
15668 (__SYSMACROS_NEED_IMPLEMENTATION): Define macro.
15669 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC]
15670 (_SYS_SYSMACROS_H_WRAPPER): Likewise.
15671 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_major): Use
15672 libc_hidden_proto.
15673 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_minor): Likewise.
15674 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_makedev):
15675 Likewise.
15676 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__SYSMACROS_DECL_TEMPL):
15677 Undefine and redefine to add use __gnu_dev_ prefix.
15678 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__SYSMACROS_IMPL_TEMPL):
15679 Likewise.
15680 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_major): Declare
15681 and define as hidden inline function.
15682 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_minor):
15683 Likewise.
15684 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_makedev):
15685 Likewise.
15686 * misc/makedev.c (OUT_OF_LINE_IMPL_TEMPL): Use __gnu_dev_ prefix.
15687 (gnu_dev_major): Use weak_alias and libc_hidden_weak.
15688 (gnu_dev_minor): Likewise.
15689 (gnu_dev_makedev): Likewise.
15690 * csu/check_fds.c (check_one_fd): Use __gnu_dev_makedev instead of
15691 makedev.
15692 * posix/wordexp.c (exec_comm_child): Likewise.
15693 * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Use __gnu_dev_minor
15694 instead of minor and __gnu_dev_major instead of major.
15695 * sysdeps/unix/sysv/linux/device-nrs.h (DEV_TTY_P): Use
15696 __gnu_dev_major instead of major.
15697 * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): Use
15698 __gnu_dev_major instead of gnu_dev_major and __gnu_dev_minor
15699 instead of gnu_dev_minor.
15700 * sysdeps/unix/sysv/linux/ptsname.c (MASTER_P): Likewise.
15701 (SLAVE_P): Likewise.
15702 (__ptsname_internal): Use __gnu_dev_minor instead of minor.
15703 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Use __gnu_dev_major
15704 instead of major.
15705
15706 [BZ #21313]
15707 * locale/weight.h (findidx): Disable -Wmaybe-uninitialized for -Os
15708 in another place.
15709 * locale/weightwc.h (findidx): Likewise.
15710
15711 2018-02-07 Wilco Dijkstra <wdijkstr@arm.com>
15712
15713 * manual/probes.texi (slowlog): Delete documentation of removed probe.
15714 (slowlog_inexact): Likewise
15715 * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Remove slow paths.
15716 * sysdeps/ieee754/dbl-64/ulog.h: Remove unused declarations.
15717
15718 2018-02-07 Igor Gnatenko <ignatenko@redhat.com>
15719
15720 [BZ #22797]
15721 * sysdeps/unix/sysv/linux/bits/mman-shared.h (pkey_get): Add
15722 missing second underscore to parameter name.
15723
15724 2018-02-06 Joseph Myers <joseph@codesourcery.com>
15725
15726 [BZ #14508]
15727 [BZ #15512]
15728 [BZ #17082]
15729 [BZ #20530]
15730 * bits/byteswap.h: Update file comment. Do not include
15731 <bits/byteswap-16.h>.
15732 (__bswap_constant_16): Cast result to __uint16_t. Use signed 0xff
15733 constant.
15734 (__bswap_16): Define as inline function.
15735 (__bswap_constant_32): Reformat definition.
15736 (__bswap_32): Always define as inline function, not macro, using
15737 __uint32_t. Use __builtin_bswap32 if [__GNUC_PREREQ (4, 3)],
15738 otherwise __bswap_constant_32.
15739 (__bswap_constant_64): Reformat definition. Do not use
15740 __extension__ here.
15741 (__bswap_64): Always define as inline function, not macro. Use
15742 __extension__ on function definition. Use __builtin_bswap64 if
15743 [__GNUC_PREREQ (4, 3)], otherwise __bswap_constant_64.
15744 * string/test-endian-file-scope.c: New file.
15745 * string/test-endian-sign-conversion.c: Likewise.
15746 * string/Makefile (headers): Remove bits/byteswap-16.h.
15747 (tests): Add test-endian-file-scope and
15748 test-endian-sign-conversion.
15749 (CFLAGS-test-endian-sign-conversion.c): New variable.
15750 * bits/byteswap-16.h: Remove file.
15751 * sysdeps/ia64/bits/byteswap-16.h: Likewise.
15752 * sysdeps/ia64/bits/byteswap.h: Likewise.
15753 * sysdeps/m68k/bits/byteswap.h: Likewise.
15754 * sysdeps/s390/bits/byteswap-16.h: Likewise.
15755 * sysdeps/s390/bits/byteswap.h: Likewise.
15756 * sysdeps/tile/bits/byteswap.h: Likewise.
15757 * sysdeps/x86/bits/byteswap-16.h: Likewise.
15758 * sysdeps/x86/bits/byteswap.h: Likewise.
15759
15760 [BZ #17721]
15761 * misc/sys/cdefs.h [!__GNUC__ && (__cplusplus || (__STDC_VERSION__
15762 && __STDC_VERSION__ >= 199901L))] (__inline): Define to inline.
15763 [!__GNUC_PREREQ (2,92) && __STDC_VERSION__ && __STDC_VERSION__ >=
15764 199901L] (__restrict): Define to restrict.
15765
15766 [BZ #19667]
15767 * string/testcopy.c: Include <support/support.h>. Do not include
15768 <malloc.h>. Use <support/test-driver.c>.
15769 (main): Rename to do_test. Make static. Use xmalloc instead of
15770 malloc.
15771
15772 [BZ #13575]
15773 * posix/bits/posix1_lim.h: Include <bits/wordsize.h>.
15774 [!SSIZE_MAX && !(__WORDSIZE == 64 || __WORDSIZE32_SIZE_ULONG)]
15775 (SSIZE_MAX): Define to INT_MAX.
15776 * posix/test-ssize-max.c: New file.
15777 * posix/Makefile (tests): Add test-ssize-max.
15778
15779 [BZ #19668]
15780 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c: Include
15781 <support/support.h>. Do not include <malloc.h>.
15782 (query_auxv): Use xmalloc instead of malloc.
15783
15784 [BZ #14553]
15785 * posix/sys/types.h (loff_t): Only define for [__USE_MISC].
15786 * sysdeps/unix/sysv/linux/sys/quota.h (dqoff): Use __loff_t
15787 instead of loff_t.
15788
15789 2018-02-06 Florian Weimer <fweimer@redhat.com>
15790
15791 [BZ #18023]
15792 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
15793 Use scratch_buffer instead of extend_alloca.
15794
15795 2018-02-06 Zack Weinberg <zackw@panix.com>
15796
15797 * libio/stdio.h: Don't define getc or putc as macros.
15798 * libio/bits/stdio.h (getchar, putchar): Use getc and putc,
15799 not _IO_getc and _IO_putc.
15800
15801 * stdio-common/tstgetln.c: Don't redefine FILE, va_list, or BUFSIZ.
15802 * stdio-common/tstgetln.c: Don't redefine ssize_t.
15803
15804 2018-02-06 Joseph Myers <joseph@codesourcery.com>
15805
15806 * sysdeps/gnu/netinet/tcp.h (TCP_FASTOPEN_KEY): New macro.
15807 (TCP_FASTOPEN_NO_COOKIE): Likewise.
15808
15809 * sysdeps/unix/sysv/linux/bits/in.h (IPV6_FREEBIND): New macro.
15810
15811 [BZ #14890]
15812 * elf/elf.h (NT_PRFPREG): New macro.
15813 (NT_S390_VXRS_LOW): Likewise.
15814 (NT_S390_VXRS_HIGH): Likewise.
15815 (NT_S390_GS_CB): Likewise.
15816 (NT_S390_GS_BC): Likewise.
15817 (NT_S390_RI_CB): Likewise.
15818
15819 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h [__USE_MISC]
15820 (MAP_SYNC): New macro.
15821 * sysdeps/unix/sysv/linux/arm/bits/mman.h [__USE_MISC] (MAP_SYNC):
15822 Likewise.
15823 * sysdeps/unix/sysv/linux/ia64/bits/mman.h [__USE_MISC]
15824 (MAP_SYNC): Likewise.
15825 * sysdeps/unix/sysv/linux/m68k/bits/mman.h [__USE_MISC]
15826 (MAP_SYNC): Likewise.
15827 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h [__USE_MISC]
15828 (MAP_SYNC): Likewise.
15829 * sysdeps/unix/sysv/linux/nios2/bits/mman.h [__USE_MISC]
15830 (MAP_SYNC): Likewise.
15831 * sysdeps/unix/sysv/linux/riscv/bits/mman.h [__USE_MISC]
15832 (MAP_SYNC): Likewise.
15833 * sysdeps/unix/sysv/linux/s390/bits/mman.h [__USE_MISC]
15834 (MAP_SYNC): Likewise.
15835 * sysdeps/unix/sysv/linux/sh/bits/mman.h [__USE_MISC] (MAP_SYNC):
15836 Likewise.
15837 * sysdeps/unix/sysv/linux/x86/bits/mman.h [__USE_MISC] (MAP_SYNC):
15838 Likewise.
15839
15840 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_MISC]
15841 (MAP_SHARED_VALIDATE): New macro.
15842 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
15843 (MAP_SHARED_VALIDATE): Likewise.
15844
15845 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
15846
15847 * elf/dl-addr.c (determine_info): Use ADDRIDX with DT_GNU_HASH.
15848 * elf/dl-lookup.c (_dl_setup_hash): Likewise.
15849 * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
15850
15851 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
15852
15853 * elf/elf.h (DT_SYMTAB_SHNDX): New. Set to 34.
15854 (DT_NUM): Updated to 35.
15855
15856 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
15857
15858 * sysdeps/i386/dl-machine.h (elf_machine_rel): Replace
15859 __builtin_expect with __glibc_likely and __glibc_unlikely.
15860 (elf_machine_rela): Likewise.
15861 (elf_machine_lazy_rel): Likewise.
15862
15863 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
15864
15865 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Replace
15866 __builtin_expect with __glibc_likely and __glibc_unlikely.
15867 (elf_machine_lazy_rel): Likewise.
15868
15869 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
15870
15871 [BZ #22638]
15872 * sysdeps/sparc/sparc32/start.S (_start): Check PIC instead of
15873 SHARED.
15874 * sysdeps/sparc/sparc64/start.S (_start): Likewise.
15875
15876 2018-02-05 Andreas Schwab <schwab@suse.de>
15877
15878 [BZ #22761]
15879 * assert/assert-perr.c (__assert_perror_fail): Append %n to format
15880 string.
15881
15882 2018-02-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
15883
15884 * stdlib/test-atexit-race-common.c [!defined PTHREAD_STACK_MIN]: Do
15885 not check against PTHREAD_STACK_MIN.
15886
15887 2018-02-02 Sean McKean <smckean83@gmail.com>
15888
15889 [BZ #22735]
15890 * time/time.h (clock): Reference CLOCKS_PER_SEC in comment.
15891
15892 2018-02-02 Florian Weimer <fweimer@redhat.com>
15893
15894 [BZ #22753]
15895 * sysdeps/posix/preadv2.c (preadv2): Handle offset == -1.
15896 * sysdeps/posix/preadv64v2.c (preadv64v2): Likewise.
15897 * sysdeps/posix/pwritev2.c (pwritev2): Likewise.
15898 * sysdeps/posix/pwritev64v2.c (pwritev64v2): Likweise.
15899 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Likewise.
15900 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
15901 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
15902 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likweise.
15903 * manual/llio.texi (Scatter-Gather): Mention offset -1.
15904 * misc/tst-preadvwritev-common.c (do_test_without_offset): New.
15905 * misc/tst-preadvwritev2.c (do_test): Call it.
15906 * misc/tst-preadvwritev64v2.c (do_test): Likewise.
15907
15908 2018-02-02 Siddhesh Poyarekar <siddhesh@sourceware.org>
15909
15910 * sysdeps/aarch64/memcmp.S: Use L() macro for labels.
15911
15912 * benchtests/bench-memcmp.c: Print json instead of plain text.
15913
15914 * benchtests/bench-memcmp.c (do_test): Call realloc_buf for
15915 every test run.
15916
15917 2018-02-01 Joseph Myers <joseph@codesourcery.com>
15918
15919 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
15920 version to 4.15.
15921 (s390_sthyi): New syscall.
15922
15923 * sysdeps/generic/ldbl-classify-compat.h: New file.
15924 * sysdeps/arm/ldbl-classify-compat.h: Likewise.
15925 * sysdeps/m68k/coldfire/ldbl-classify-compat.h: Likewise.
15926 * sysdeps/microblaze/ldbl-classify-compat.h: Likewise.
15927 * sysdeps/mips/ldbl-classify-compat.h: Likewise.
15928 * sysdeps/nios2/ldbl-classify-compat.h: Likewise.
15929 * sysdeps/sh/ldbl-classify-compat.h: Likewise.
15930 * sysdeps/ieee754/dbl-64/s_finite.c: Include
15931 <ldbl-classify-compat.h>.
15932 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
15933 * sysdeps/ieee754/dbl-64/s_isinf.c: Include
15934 <ldbl-classify-compat.h>.
15935 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
15936 * sysdeps/ieee754/dbl-64/s_isnan.c: Include
15937 <ldbl-classify-compat.h>.
15938 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
15939 * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Include
15940 <ldbl-classify-compat.h>.
15941 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
15942 * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Include
15943 <ldbl-classify-compat.h>.
15944 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
15945 * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Include
15946 <ldbl-classify-compat.h>.
15947 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
15948 * sysdeps/arm/math_private.h (LDBL_CLASSIFY_COMPAT): Remove macro.
15949 * sysdeps/mips/math_private.h (LDBL_CLASSIFY_COMPAT): Likewise.
15950 * sysdeps/m68k/coldfire/math_private.h: Remove file.
15951 * sysdeps/microblaze/math_private.h: Likewise.
15952 * sysdeps/nios2/math_private.h: Likewise.
15953 * sysdeps/sh/math_private.h: Likewise.
15954
15955 * sysdeps/m68k/coldfire/fpu/math_private.h: Move to ....
15956 * sysdeps/m68k/coldfire/math_private.h: ... here.
15957 * sysdeps/m68k/coldfire/nofpu/math_private.h: Remove file.
15958 * sysdeps/tile/math_private.h: Likewise.
15959 * sysdeps/microblaze/math_private.h (libc_feholdexcept_setround):
15960 Remove macro.
15961 * sysdeps/nios2/math_private.h (libc_feholdexcept_setround):
15962 Likewise.
15963
15964 * sysdeps/m68k/coldfire/nofpu/math_private.h (libc_fesetround):
15965 Remove macro.
15966 (libc_fetestexcept): Likewise.
15967 (libc_feupdateenv_test): Likewise.
15968 * sysdeps/microblaze/math_private.h (libc_fesetround): Likewise.
15969 (libc_fetestexcept): Likewise.
15970 (libc_feupdateenv_test): Likewise.
15971 * sysdeps/nios2/math_private.h (libc_fesetround): Likewise.
15972 (libc_fetestexcept): Likewise.
15973 (libc_feupdateenv_test): Likewise.
15974 * sysdeps/tile/math_private.h (libc_fesetround): Likewise.
15975 (libc_fetestexcept): Likewise.
15976 (libc_feupdateenv_test): Likewise.
15977
15978 * sysdeps/generic/math_private.h
15979 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (feholdexcept):
15980 New inline function.
15981 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__feholdexcept):
15982 Likewise.
15983
15984 * include/fenv.h [!_ISOMAC && !FE_TONEAREST]: Give #error.
15985 [!_ISOMAC] (FE_HAVE_ROUNDING_MODES): New macro.
15986 * sysdeps/generic/math_private.h
15987 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (fegetenv): New
15988 inline function.
15989 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__fegetenv):
15990 Likewise.
15991 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (fesetenv):
15992 Likewise.
15993 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__fesetenv):
15994 Likewise.
15995 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (feupdateenv):
15996 Likewise.
15997 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__feupdateenv):
15998 Likewise.
15999 [!FE_HAVE_ROUNDING_MODES] (fegetround): Likewise.
16000 [!FE_HAVE_ROUNDING_MODES] (__fegetround): Likewise.
16001 [!FE_HAVE_ROUNDING_MODES] (fesetround): Likewise.
16002 [!FE_HAVE_ROUNDING_MODES] (__fesetround): Likewise.
16003 * sysdeps/tile/math_private.h (fegetenv): Remove inline function.
16004 (__fegetenv): Likewise.
16005 (fesetenv): Likewise.
16006 (__fesetenv): Likewise.
16007 (feupdateenv): Likewise.
16008 (__feupdateenv): Likewise.
16009 (fegetround): Likewise.
16010 (__fegetround): Likewise.
16011 (fesetround): Likewise.
16012 (__fesetround): Likewise.
16013
16014 * sysdeps/generic/math_private.h [FE_ALL_EXCEPT == 0]
16015 (feraiseexcept): New macro.
16016 [FE_ALL_EXCEPT == 0] (__feraiseexcept): Likewise.
16017 * sysdeps/m68k/coldfire/nofpu/math_private.h (feraiseexcept):
16018 Remove macro.
16019 (__feraiseexcept): Likewise.
16020 (feclearexcept): Likewise.
16021 * sysdeps/microblaze/math_private.h (feraiseexcept): Likewise.
16022 (__feraiseexcept): Likewise.
16023 (feclearexcept): Likewise.
16024 * sysdeps/nios2/math_private.h (feraiseexcept): Likewise.
16025 (__feraiseexcept): Likewise.
16026 (feclearexcept): Likewise.
16027 * sysdeps/tile/math_private.h (feraiseexcept): Likewise.
16028 (__feraiseexcept): Likewise.
16029 (feclearexcept): Likewise.
16030 (fetestexcept): Likewise.
16031
16032 * sysdeps/m68k/coldfire/math-tests.h: New file.
16033
16034 * sysdeps/m68k/fpu/bits/fenv.h: Move to ....
16035 * sysdeps/m68k/bits/fenv.h: ... here.
16036 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_INEXACT): Do
16037 not define.
16038 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_DIVBYZERO):
16039 Likewise.
16040 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_UNDERFLOW):
16041 Likewise.
16042 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_OVERFLOW):
16043 Likewise.
16044 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_INVALID):
16045 Likewise.
16046 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_ALL_EXCEPT):
16047 Define to 0.
16048 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__]
16049 (__FE_UNDEFINED): New enum constant.
16050 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_TOWARDZERO):
16051 Do not define.
16052 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_DOWNWARD):
16053 Likewise.
16054 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_UPWARD):
16055 Likewise.
16056 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (fenv_t): Define
16057 to match generic bits/fenv.h.
16058 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_NOMASK_ENV):
16059 Do not define.
16060
16061 * soft-fp/double.h (union _FP_UNION_D): Do not use attribute
16062 packed on bits.
16063 * soft-fp/extended.h (union _FP_UNION_E): Likewise.
16064 * soft-fp/half.h (union _FP_UNION_H): Likewise.
16065 * soft-fp/quad.h (union _FP_UNION_Q): Likewise.
16066 * soft-fp/single.h (union _FP_UNION_S): Likewise.
16067
16068 2018-02-01 Carlos O'Donell <carlos@redhat.com>
16069 Ramin Seyed-Moussavi <lordrasmus@gmail.com>
16070 Joseph Myers <joseph@codesourcery.com>
16071
16072 [BZ #21314]
16073 * sysdeps/ieee754/dbl-64/s_log1p.c: Include <libc-diag.h>.
16074 (__log1p): Disable -Wmaybe-uninitialized for -Os around
16075 computation using c.
16076 * sysdeps/ieee754/flt-32/s_log1pf.c: Include <libc-diag.h>.
16077 (__log1pf): Disable -Wmaybe-uninitialized for -Os around
16078 computation using c.
16079
16080 2018-02-01 Dmitry V. Levin <ldv@altlinux.org>
16081
16082 * version.h (RELEASE): Set to "development".
16083 (VERSION): Set to "2.27.9000".
16084 * NEWS (2.28): New section.
16085
16086 * version.h (RELEASE): Set to "stable".
16087 (VERSION): Set to "2.27".
16088 * include/features.h (__GLIBC_MINOR__): Set to 2.27.
16089
16090 * NEWS: Add the list of bugs fixed in 2.27.
16091
16092 2018-02-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
16093
16094 * stdlib/test-atexit-race-common.c (do_test): Check stack size
16095 against PTHREAD_STACK_MIN.
16096
16097 2018-02-01 Dmitry V. Levin <ldv@altlinux.org>
16098
16099 * manual/contrib.texi (Palmer Dabbelt, Arjun Shankar, Florian Weimer):
16100 New entries.
16101 (Rafal Luzynski, Andreas Schwab): Update.
16102
16103 2018-02-01 Rafal Luzynski <digitalfreak@lingonborough.com>
16104
16105 [BZ #10871]
16106 * NEWS: List the languages which actually use the alternative
16107 months feature in this release. Also explain that "alt_mon" and
16108 "ab_alt_mon" are optional.
16109
16110 2018-01-31 Il'ya Malakhov <ilmalakhov@yandex.ru>
16111
16112 [BZ #22765]
16113 * crypt/badsalttest.c (do_test): Set cd.initialized to 0.
16114
16115 2018-01-31 Dmitry V. Levin <ldv@altlinux.org>
16116
16117 * manual/install.texi (Tools for Compilation): Update the newest
16118 versions of gcc, binutils, texinfo, gawk, bison, and sed.
16119 * INSTALL: Regenerated.
16120
16121 2018-01-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
16122
16123 * sysdeps/pthread/allocalim.h (__libc_use_alloca): Use __glibc_likely
16124 instead of __builtin_expect.
16125
16126 2018-01-30 Florian Weimer <fweimer@redhat.com>
16127
16128 * nss/bug17079.c (do_test): Use nss_files only for reading passwd
16129 data.
16130 * nss/tst-nss-getpwent.c (do_test): Likewise.
16131
16132 2018-01-30 Rafal Luzynski <digitalfreak@lingonborough.com>
16133
16134 [BZ #10871]
16135 * localedata/locales/hr_HR (mon): Rename to...
16136 (alt_mon): This.
16137 (mon): Import from CLDR (genitive case).
16138 (d_t_fmt): Update the comment.
16139
16140 2018-01-29 Andreas Schwab <schwab@linux-m68k.org>
16141
16142 * sysdeps/posix/fpathconf.c (__fpathconf): Verify the values of
16143 _POSIX_CHOWN_RESTRICTED, _POSIX_NO_TRUNC, _POSIX_VDISABLE.
16144 * sysdeps/posix/pathconf.c (__pathconf): Likewise.
16145
16146 2018-01-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
16147
16148 * mach/Versions: Fix version when __mach_host_self_ was added.
16149 * hurd/Versions: Fix version when _hurd_exec_paths was added.
16150 * sysdeps/mach/hurd/i386/ld.abilist: New file.
16151 * sysdeps/mach/hurd/i386/libBrokenLocale.abilist: New file.
16152 * sysdeps/mach/hurd/i386/libanl.abilist: New file.
16153 * sysdeps/mach/hurd/i386/libc.abilist: New file.
16154 * sysdeps/mach/hurd/i386/libcrypt.abilist: New file.
16155 * sysdeps/mach/hurd/i386/libdl.abilist: New file.
16156 * sysdeps/mach/hurd/i386/libm.abilist: New file.
16157 * sysdeps/mach/hurd/i386/libnsl.abilist: New file.
16158 * sysdeps/mach/hurd/i386/libresolv.abilist: New file.
16159 * sysdeps/mach/hurd/i386/librt.abilist: New file.
16160 * sysdeps/mach/hurd/i386/libutil.abilist: New file.
16161 * sysdeps/pthread/allocalim.h (__libc_use_alloca): Commute operands of
16162 || to respect codestyle.
16163 * libio/tst-memstream3.c (_FWRITE): Rename to FWRITE_FUNC.
16164 (do_test_bz20181): Rename accordingly.
16165 * malloc/malloc.c: Include <assert.h>.
16166 (assert): Do not define.
16167 [!defined NDEBUG] (__assert_fail): Define to __malloc_assert.
16168 * bits/fcntl.h: Fix comment for FREAD and FWRITE.
16169 * sysdeps/mach/hurd/bits/fcntl.h: Likewise.
16170 * sysdeps/mach/hurd/hp-timing.h: New file.
16171 * sysdeps/mach/hurd/i386/tlsdesc.sym: New file.
16172
16173 2018-01-29 Darius Rad <darius@bluespec.com>
16174
16175 * sysdeps/unix/sysv/linux/riscv/ipc_priv.h: New file.
16176
16177 2018-01-29 Palmer Dabbelt <palmer@sifive.com>
16178
16179 * sysdeps/init_array/crti.S (.section .init_array): Add
16180 PREINIT_FUNCTION when defined.
16181 * manual/math.texi: RISC-V supports _Float128 and _Float64x.
16182 * config.h.in: Regenerate.
16183 * manual/platform.texi: Add RISC-V documenation for
16184 __riscv_flush_icache.
16185 * sysdeps/riscv/__longjmp.S: New file.
16186 * sysdeps/riscv/backtrace.c: Likewise.
16187 * sysdeps/riscv/bits/endian.h: Likewise.
16188 * sysdeps/riscv/bits/setjmp.h: Likewise.
16189 * sysdeps/riscv/bits/wordsize.h: Likewise.
16190 * sysdeps/riscv/bsd-_setjmp.c: Likewise.
16191 * sysdeps/riscv/bsd-setjmp.c: Likewise.
16192 * sysdeps/riscv/dl-trampoline.S: Likewise.
16193 * sysdeps/riscv/gccframe.h: Likewise.
16194 * sysdeps/riscv/jmpbuf-offsets.h: Likewise.
16195 * sysdeps/riscv/jmpbuf-unwind.h: Likewise.
16196 * sysdeps/riscv/machine-gmon.h: Likewise.
16197 * sysdeps/riscv/memusage.h: Likewise.
16198 * sysdeps/riscv/setjmp.S: Likewise.
16199 * sysdeps/riscv/sys/asm.h: Likewise.
16200 * sysdeps/riscv/tls-macros.h: Likewise.
16201 * sysdeps/riscv/dl-tls.h: New file.
16202 * sysdeps/riscv/libc-tls.c: Likewise.
16203 * sysdeps/riscv/nptl/tcb-offsets.sym: Likewise.
16204 * sysdeps/riscv/nptl/tls.h: Likewise.
16205 * sysdeps/riscv/stackinfo.h: Likewise.
16206 * sysdeps/riscv/bits/fenv.h: New file.
16207 * sysdeps/riscv/e_sqrtl.c: Likewise.
16208 * sysdeps/riscv/fpu_control.h: Likewise.
16209 * sysdeps/riscv/math-tests.h: Likewise.
16210 * sysdeps/riscv/nofpu/Implies: Likewise.
16211 * sysdeps/riscv/sfp-machine.h: Likewise.
16212 * sysdeps/riscv/tininess.h: Likewise.
16213 * sysdeps/riscv/rv64/rvd/s_ceil.c: New file.
16214 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
16215 * sysdeps/riscv/rv64/rvd/s_llrint.c: Likewise.
16216 * sysdeps/riscv/rv64/rvd/s_llround.c: Likewise.
16217 * sysdeps/riscv/rv64/rvd/s_lrint.c: Likewise.
16218 * sysdeps/riscv/rv64/rvd/s_lround.c: Likewise.
16219 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
16220 * sysdeps/riscv/rv64/rvd/s_rint.c: Likewise.
16221 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
16222 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
16223 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
16224 * sysdeps/riscv/rv64/rvf/s_llrintf.c: Likewise.
16225 * sysdeps/riscv/rv64/rvf/s_llroundf.c: Likewise.
16226 * sysdeps/riscv/rv64/rvf/s_lrintf.c: Likewise.
16227 * sysdeps/riscv/rv64/rvf/s_lroundf.c: Likewise.
16228 * sysdeps/riscv/rvd/e_sqrt.c: Likewise.
16229 * sysdeps/riscv/rvd/s_copysign.c: Likewise.
16230 * sysdeps/riscv/rvd/s_finite.c: Likewise.
16231 * sysdeps/riscv/rvd/s_fma.c: Likewise.
16232 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
16233 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
16234 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
16235 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
16236 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
16237 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
16238 * sysdeps/riscv/rvf/e_sqrtf.c: Likewise.
16239 * sysdeps/riscv/rvf/fclrexcpt.c: Likewise.
16240 * sysdeps/riscv/rvf/fegetenv.c: Likewise.
16241 * sysdeps/riscv/rvf/fegetmode.c: Likewise.
16242 * sysdeps/riscv/rvf/fegetround.c: Likewise.
16243 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
16244 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
16245 * sysdeps/riscv/rvf/fesetexcept.c: Likewise.
16246 * sysdeps/riscv/rvf/fesetmode.c: Likewise.
16247 * sysdeps/riscv/rvf/fesetround.c: Likewise.
16248 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
16249 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
16250 * sysdeps/riscv/rvf/fraiseexcpt.c: Likewise.
16251 * sysdeps/riscv/rvf/fsetexcptflg.c: Likewise.
16252 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
16253 * sysdeps/riscv/rvf/get-rounding-mode.h: Likewise.
16254 * sysdeps/riscv/rvf/math_private.h: Likewise.
16255 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
16256 * sysdeps/riscv/rvf/s_copysignf.c: Likewise.
16257 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
16258 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
16259 * sysdeps/riscv/rvf/s_fmaf.c: Likewise.
16260 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
16261 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
16262 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
16263 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
16264 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
16265 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
16266 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
16267 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
16268 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
16269 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
16270 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
16271 * sysdeps/riscv/nptl/bits/pthreadtypes-arch.h: New file.
16272 * sysdeps/riscv/nptl/bits/semaphore.h: Likewise.
16273 * sysdeps/riscv/nptl/libc-lowlevellock.c: Likewise.
16274 * sysdeps/unix/sysv/linux/riscv/atomic-machine.h: Likewise.
16275 * sysdeps/riscv/nptl/nptl-sysdep.S: New file.
16276 * sysdeps/unix/sysv/linux/riscv/arch-fork.h: Likewise.
16277 * sysdeps/unix/sysv/linux/riscv/clone.S: Likewise.
16278 * sysdeps/unix/sysv/linux/riscv/profil-counter.h: Likewise.
16279 * sysdeps/unix/sysv/linux/riscv/pt-vfork.S: Likewise.
16280 * sysdeps/unix/sysv/linux/riscv/syscall.c: Likewise.
16281 * sysdeps/unix/sysv/linux/riscv/sysdep.S: Likewise.
16282 * sysdeps/unix/sysv/linux/riscv/sysdep.h: Likewise.
16283 * sysdeps/unix/sysv/linux/riscv/vfork.S: Likewise.
16284 * sysdeps/riscv/nptl/pthread-offsets.h: New file.
16285 * sysdeps/riscv/nptl/pthreaddef.h: Likewise.
16286 * sysdeps/unix/sysv/linux/riscv/bits/fcntl.h: Likewise.
16287 * sysdeps/unix/sysv/linux/riscv/bits/mman.h: Likewise.
16288 * sysdeps/unix/sysv/linux/riscv/bits/sigcontext.h: Likewise.
16289 * sysdeps/unix/sysv/linux/riscv/dl-cache.h: Likewise.
16290 * sysdeps/unix/sysv/linux/riscv/flush-icache.c: Likewise.
16291 * sysdeps/unix/sysv/linux/riscv/getcontext.S: Likewise.
16292 * sysdeps/unix/sysv/linux/riscv/init-first.c: Likewise.
16293 * sysdeps/unix/sysv/linux/riscv/libc-vdso.h: Likewise.
16294 * sysdeps/unix/sysv/linux/riscv/makecontext.c: Likewise.
16295 * sysdeps/unix/sysv/linux/riscv/readelflib.c: Likewise.
16296 * sysdeps/unix/sysv/linux/riscv/register-dump.h: Likewise.
16297 * sysdeps/unix/sysv/linux/riscv/setcontext.S: Likewise.
16298 * sysdeps/unix/sysv/linux/riscv/sigcontextinfo.h: Likewise.
16299 * sysdeps/unix/sysv/linux/riscv/swapcontext.S: Likewise.
16300 * sysdeps/unix/sysv/linux/riscv/sys/cachectl.h: Likewise.
16301 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h: Likewise.
16302 * sysdeps/unix/sysv/linux/riscv/sys/ucontext.h: Likewise.
16303 * sysdeps/unix/sysv/linux/riscv/sys/user.h: Likewise.
16304 * sysdeps/unix/sysv/linux/riscv/ucontext-macros.h: Likewise.
16305 * sysdeps/unix/sysv/linux/riscv/ucontext_i.sym: Likewise.
16306 * sysdeps/unix/sysv/linux/riscv/dl-static.c: New file.
16307 * sysdeps/unix/sysv/linux/riscv/ldconfig.h: Likewise.
16308 * sysdeps/unix/sysv/linux/riscv/ldsodefs.h: Likewise.
16309 * sysdeps/riscv/nofpu/libm-test-ulps: New file.
16310 * sysdeps/riscv/nofpu/libm-test-ulps-name: Likewise.
16311 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Likewise.
16312 * sysdeps/riscv/rv64/rvd/libm-test-ulps-name: Likewise.
16313 * sysdeps/unix/sysv/linux/riscv/localplt.data: Likewise.
16314 * sysdeps/unix/sysv/linux/riscv/rv64/c++-types.data: Likewise.
16315 * sysdeps/unix/sysv/linux/riscv/rv64/ld.abilist: Likewise.
16316 * sysdeps/unix/sysv/linux/riscv/rv64/libanl.abilist: Likewise.
16317 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
16318 * sysdeps/unix/sysv/linux/riscv/rv64/libdl.abilist: Likewise.
16319 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
16320 * sysdeps/unix/sysv/linux/riscv/rv64/libnsl.abilist: Likewise.
16321 * sysdeps/unix/sysv/linux/riscv/rv64/librt.abilist: Likewise.
16322 * sysdeps/unix/sysv/linux/riscv/rv64/libutil.abilist: Likewise.
16323 * sysdeps/riscv/Implies: New file.
16324 * sysdeps/riscv/Makefile: Likewise.
16325 * sysdeps/riscv/configure: Likewise.
16326 * sysdeps/riscv/configure.ac: Likewise.
16327 * sysdeps/riscv/nptl/Makefile: Likewise.
16328 * sysdeps/riscv/preconfigure: Likewise.
16329 * sysdeps/riscv/rv64/Implies-after: Likewise.
16330 * sysdeps/riscv/rv64/rvd/Implies: Likewise.
16331 * sysdeps/riscv/rv64/rvf/Implies: Likewise.
16332 * sysdeps/unix/sysv/linux/riscv/Implies: Likewise.
16333 * sysdeps/unix/sysv/linux/riscv/Makefile: Likewise.
16334 * sysdeps/unix/sysv/linux/riscv/Versions: Likewise.
16335 * sysdeps/unix/sysv/linux/riscv/configure: Likewise.
16336 * sysdeps/unix/sysv/linux/riscv/configure.ac: Likewise.
16337 * sysdeps/unix/sysv/linux/riscv/ldd-rewrite.sed: Likewise.
16338 * sysdeps/unix/sysv/linux/riscv/rv64/Implies: Likewise.
16339 * sysdeps/unix/sysv/linux/riscv/rv64/Makefile: Likewise.
16340 * sysdeps/unix/sysv/linux/riscv/shlib-versions: Likewise.
16341 * scripts/build-many-glibcs.py (Context): Add RISC-V targets.
16342 (Config): Likewise.
16343
16344 2018-01-29 Florian Weimer <fweimer@redhat.com>
16345
16346 [BZ #22701]
16347 * include/rpcsvc/nislib.h (__nis_default_ttl): Add
16348 libnsl_hidden_proto.
16349 * include/rpcsvc/yp.h (yp_xdrall): Declare with
16350 libnsl_hidden_proto.
16351 * include/rpcsvc/ypclnt.h (yp_maplist): Likewise.
16352 * nis/Makefile (libnsl-routines): Add nss-default only for
16353 build-obsolete-nsl.
16354 * nis/nis_defaults.c (__nis_default_ttl): Add
16355 libnsl_hidden_nolink_def.
16356 * nis/rpcsvc/ypclnt.h (yp_maplist): Remove #ifdef'ed-out
16357 declaration.
16358 * nis/yp_xdr.c (xdr_ypall): Add libnsl_hidden_nolink_def.
16359 * nis/ypclnt.c (yp_maplist): Likewise.
16360
16361 2018-01-29 Romain Naour <romain.naour@gmail.com> (tiny change)
16362
16363 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
16364 (__ASSUME_COPY_FILE_RANGE) [__LINUX_KERNEL_VERSION < 0x040A00]: Undef.
16365
16366 2018-01-29 Joseph Myers <joseph@codesourcery.com>
16367
16368 * scripts/build-many-glibcs.py (Context.git_checkout): Use git
16369 clean -dxfq for git updates when replacing sources.
16370
16371 * scripts/build-many-glibcs.py (Config.build_gcc): Use
16372 --disable-libcilkrts unconditionally, not just for the final GCC
16373 build for Hurd.
16374
16375 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
16376 version to 4.15.
16377
16378 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
16379
16380 [BZ #10871]
16381 * localedata/locales/lt_LT (alt_mon): Import from CLDR (nominative
16382 case).
16383
16384 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
16385
16386 [BZ #10871]
16387 * localedata/locales/be_BY (mon): Rename to...
16388 (alt_mon): This, then synchronize with CLDR (nominative case).
16389 (abmon): Rename to...
16390 (ab_alt_mon): This, then synchronize with CLDR (nominative case).
16391 (mon): Import from CLDR (genitive case).
16392 (abmon): Likewise.
16393 * localedata/locales/be_BY@latin (mon): Rename to...
16394 (alt_mon): This.
16395 (mon): Add, proper genitive forms provided by Viktar Siarheichyk.
16396
16397 * localedata/locales/be_BY@latin (lang_name): Reworded to
16398 "biełaruskaja mova".
16399
16400 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
16401
16402 [BZ #10871]
16403 * localedata/locales/el_CY (mon): Renamed to...
16404 (alt_mon): This.
16405 (mon): Import from CLDR (genitive case).
16406 * localedata/locales/el_GR: Likewise.
16407
16408 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
16409
16410 [BZ #10871]
16411 * localedata/locales/ru_RU (mon): Rename to...
16412 (alt_mon): This.
16413 (abmon): Rename to...
16414 (ab_alt_mon): This.
16415 (mon): Import from CLDR (genitive case).
16416 (abmon): Copy from the old content except the 5th month which is
16417 now in the genitive case, even when abbreviated.
16418 * localedata/locales/ru_UA: Likewise.
16419 * time/tst-strptime.c (day_tests): Add an actual example of
16420 a difference between %b and %Ob in Russian.
16421
16422 2018-01-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
16423
16424 * sysdeps/mach/hurd/xmknodat.c: Include <sys/sysmacros.h>.
16425 * sysdeps/mach/hurd/profil.c: Reuse `a' variable instead of introducing
16426 a `c' variable.
16427 * resolv/res-close.c: Include <stdlib.h>.
16428 * sysdeps/generic/not-cancel.h: Include <fcntl.h>, <unistd.h>,
16429 <sys/wait.h>, <time.h>, <sys/uio.h>.
16430 (NOT_CANCEL_H): Add inclusion guard.
16431 * sysdeps/generic/sigset-cvt-mask.h: Include <sigsetops.h>.
16432 * sysdeps/generic/sigsetops.h (__sigemptyset, __sigfillset,
16433 __sigandset, __sigorset, __sigaddset, __sigdelset): Make them really
16434 return 0.
16435 * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Cast
16436 vm_address_t * to ElfW(Addr) * for dl_main parameter.
16437 * sysdeps/pthread/posix-timer.h (timer_ptr2id): Cast to timer_t
16438 instead of void *.
16439 * sysdeps/pthread/timer_create.c (timer_create): Do not use
16440 timer_ptr2id to cast struct timer_node * to void *.
16441 * scripts/build-many-glibcs.py [os == gnu] (build_gcc): Pass
16442 --disable-libcilkrts to gcc configure.
16443 (checkout_vcs): Add mig and gnumach repository URLs, run autoreconf,
16444 and make them the default for now.
16445 * sysdeps/mach/hurd/Makefile [$(subdir)==nis]: Add
16446 -DUSE_BINDINGDIR=1 to CFLAGS-ypclnt.c.
16447 * mach/Machrules (MIGFLAGS): Do not set -DMACH_IPC_COMPAT=0.
16448 * mach/mach/mach_traps.h: Drop comment about MACH_IPC_COMPAT.
16449 * sysdeps/mach/hurd/fork.c (__fork): Drop special casing
16450 MACH_IPC_COMPAT.
16451 * sysdeps/mach/hurd/dl-sysdep.c (_exit): Call LOSE and abort() if
16452 __task_terminate would ever return successfully.
16453 * sysdeps/mach/hurd/profil.c (special_profil_failure): Move variable
16454 to global scope.
16455 * sysdeps/mach/pagecopy.h (PAGE_THRESHOLD): Rename to
16456 PAGE_COPY_THRESHOLD and set to benchmarked 16384.
16457 * sysdeps/mach/hurd/getresgid.c (__getresgid): Set result from
16458 critical section to make code simpler and avoid warning.
16459 * sysdeps/mach/hurd/getresuid.c (__getresuid): Set result from
16460 critical section to make code simpler and avoid warning.
16461 * sysdeps/mach/hurd/spawni.c (__spawni): Make relpath and abspath
16462 const char * instead of char *.
16463 * hurd/hurd/lookup.h (__hurd_file_name_lookup, hurd_file_name_lookup,
16464 __hurd_file_name_split, hurd_file_name_split,
16465 __hurd_directory_name_split, hurd_directory_name_split,
16466 __hurd_file_name_lookup_retry, hurd_file_name_lookup_retry,
16467 hurd_file_name_path_lookup): Make lookup function parameter take a
16468 const char *name instead of char *name.
16469 * hurd/hurdlookup.c (__hurd_file_name_lookup, __hurd_file_name_split,
16470 __hurd_directory_name_split): Likewise.
16471 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Likewise.
16472 * hurd/path-lookup.c (hurd_file_name_path_lookup): Likewise.
16473 * sysdeps/mach/hurd/check_native.c: New file.
16474 * sysdeps/mach/hurd/check_pf.c: New file.
16475 * nscd/gai.c (__getifaddrs): Define macro to getifaddrs.
16476 (__freeifaddrs): Define macro to freeifaddrs.
16477 * sysdeps/mach/hurd/libhurduser.abilist: New file.
16478 * sysdeps/mach/libmachuser.abilist: New file.
16479 * libio/tst-memstream3.c (FWRITE): Rename to _FWRITE.
16480 (do_test_bz20181): Rename accordingly.
16481 * libio/tst-wmemstream3.c (FWRITE): Rename accordingly.
16482 * io/tst-copy_file_range.c [!defined CLONE_NEWNS]: Do not include
16483 <sys/mount.h>.
16484 * hurd/hurd.h (__hurd_fail): Always declare function, and provide inline
16485 version only if __USE_EXTERN_INLINES is defined.
16486 * hurd/hurd/fd.h (_hurd_fd_error_signal, _hurd_fd_error, __hurd_dfail,
16487 __hurd_sockfail): Likewise.
16488 (_hurd_fd_get): Always declare functions, and provide inline versions
16489 only if __USE_EXTERN_INLINES and _LIBC are defined and IS_IN(libc).
16490 * hurd/hurd/port.h (_hurd_port_init, _hurd_port_locked_get,
16491 _hurd_port_get, _hurd_port_free, _hurd_port_locked_set,
16492 _hurd_port_set): Always declare functions, and provide inline versions
16493 only if __USE_EXTERN_INLINES and _LIBC are defined and
16494 IS_IN(libc).
16495 * hurd/hurd/signal.h (_hurd_self_sigstate, _hurd_critical_section_lock,
16496 _hurd_critical_section_unlock): Likewise.
16497 * hurd/hurd/threadvar.h (__hurd_threadvar_location_from_sp,
16498 * __hurd_threadvar_location): Likewise.
16499 * hurd/hurd/userlink.h (_hurd_userlink_link, _hurd_userlink_unlink,
16500 _hurd_userlink_clear): Likewise.
16501 * mach/lock-intern.h (__spin_lock_init, __spin_lock, __mutex_lock,
16502 __mutex_unlock, __mutex_trylock): Always declare functions, and provide
16503 inline versions only if __USE_EXTERN_INLINES and _LIBC are defined.
16504 * mach/mach/mig_support.h (__mig_strncpy): Likewise.
16505 * sysdeps/generic/machine-lock.h (__spin_unlock, __spin_try_lock,
16506 __spin_lock_locked): Likewise.
16507 * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock,
16508 __spin_lock_locked): Likewise.
16509 * mach/spin-lock.c (__USE_EXTERN_INLINES): Define to 1.
16510 * hurd/Versions (libc: GLIBC_2.27): Add _hurd_fd_error_signal,
16511 _hurd_fd_error, __hurd_dfail, __hurd_sockfail, _hurd_port_locked_set,
16512 __hurd_threadvar_location_from_sp, __hurd_threadvar_location,
16513 _hurd_userlink_link, _hurd_userlink_unlink, _hurd_userlink_clear.
16514 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_CHOWN_RESTRICTED,
16515 _POSIX_NO_TRUNC): Define to 0.
16516 * sysdeps/pthread/allocalim.h [!defined PTHREAD_STACK_MIN]: Do not
16517 check size against PTHREAD_STACK_MIN.
16518 * hurd/hurd/signal.h [__USE_EXTERN_INLINES][_LIBC][IS_IN(libc) ||
16519 IS_IN(libpthread)]: Include <sigsetops.h>.
16520 * mach/Makefile (user-interfaces): Add mach/gnumach.
16521 * sysdeps/mach/configure.ac (mach_interface_list): Add gnumach.
16522 * sysdeps/mach/configure (mach_interface_list): Regenerate.
16523 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_VDISABLE): Set to '\0'
16524 instead of invalid -1.
16525 * sysdeps/mach/hurd/net/ethernet.h: Include <stdint.h>.
16526 * sysdeps/mach/hurd/net/if_arp.h: Include <stdint.h>.
16527 * sysdeps/mach/hurd/net/if_ppp.h: Do not include non-existing
16528 <net/ppp_defs.h>.
16529
16530 2018-01-27 Thomas Schwinge <tschwinge@gnu.org>
16531
16532 * hurd/fcntl-internal.h: New file.
16533
16534 2018-01-27 James Clarke <jrtc27@jrtc27.com>
16535
16536 * sysdeps/hppa/fpu/libm-test-ulps: Update.
16537
16538 * sysdeps/alpha/fpu/libm-test-ulps: Update.
16539
16540 2018-01-26 Andreas Schwab <schwab@linux-m68k.org>
16541
16542 [BZ #22701]
16543 * nis/Makefile (libnsl-inhibit-o) [$(build-obsolete-nsl) != yes]:
16544 Build only shared objects.
16545
16546 2018-01-26 Carlos O'Donell <carlos@redhat.com>
16547
16548 * README: Update for hppa.
16549
16550 2018-01-26 Patrick McGehearty <patrick.mcgehearty@oracle.com>
16551
16552 * sysdeps/sparc/fpu/libm-test-ulps: Update
16553 cpow, ctan, ctanh, j0, j1, y0, yn ulps.
16554
16555 2018-01-26 Carlos O'Donell <carlos@redhat.com>
16556
16557 Revert:
16558
16559 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
16560
16561 [BZ #22563]
16562 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
16563 * sysdeps/i386/nptl/tls.h (tcbhead_t): Add feature_1.
16564 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
16565 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Rename __glibc_unused1
16566 to feature_1.
16567
16568 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
16569
16570 [BZ #22563]
16571 * bits/types/__cancel_jmp_buf_tag.h: New file.
16572 * sysdeps/unix/sysv/linux/x86/bits/types/__cancel_jmp_buf_tag.h
16573 * sysdeps/unix/sysv/linux/x86/pthreaddef.h: Likewise.
16574 * sysdeps/unix/sysv/linux/x86/nptl/pthreadP.h: Likewise.
16575 * nptl/Makefile (headers): Add
16576 bits/types/__cancel_jmp_buf_tag.h.
16577 * nptl/descr.h [NEED_SAVED_MASK_IN_CANCEL_JMP_BUF]
16578 (pthread_unwind_buf): Add saved_mask to cancel_jmp_buf.
16579 * sysdeps/nptl/pthread.h: Include
16580 <bits/types/__cancel_jmp_buf_tag.h>.
16581 (__pthread_unwind_buf_t): Use struct __cancel_jmp_buf_tag with
16582 __cancel_jmp_buf.
16583 * sysdeps/unix/sysv/linux/hppa/pthread.h: Likewise.
16584
16585 2018-01-25 Rafal Luzynski <digitalfreak@lingonborough.com>
16586
16587 [BZ #10871]
16588 * localedata/locales/uk_UA (mon): Renamed to...
16589 (alt_mon): This.
16590 (alt_digits): "0" removed and then renamed to...
16591 (mon): This.
16592 (date_fmt): Definition changed not to use the alternative
16593 digits hack.
16594
16595 2018-01-25 Palmer Dabbelt <palmer@sifive.com>
16596
16597 * elf/cache.c (print_entry): Add FLAG_RISCV_FLOAT_ABI_SOFT and
16598 FLAG_RISCV_FLOAT_ABI_DOUBLE.
16599 * elf/elf.h (EF_RISCV_RVC): New define.
16600 (EF_RISCV_FLOAT_ABI): Likewise.
16601 (EF_RISCV_FLOAT_ABI_SOFT): Likewise.
16602 (EF_RISCV_FLOAT_ABI_SINGLE): Likewise.
16603 (EF_RISCV_FLOAT_ABI_DOUBLE): Likewise.
16604 (EF_RISCV_FLOAT_ABI_QUAD): Likewise.
16605 * sysdeps/generic/ldconfig.h (FLAG_RISCV_FLOAT_ABI_SOFT): New
16606 define.
16607 (FLAG_RISCV_FLOAT_ABI_DOUBLE): Likewise.
16608
16609 2018-01-25 Andreas Schwab <schwab@suse.de>
16610
16611 * aclocal.m4 (LIBC_SLIBDIR_RTLDDIR): Consistently put arguments in
16612 single quotes.
16613 * sysdeps/gnu/configure: Regenerate.
16614 * sysdeps/unix/sysv/linux/aarch64/configure: Regenerate.
16615 * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
16616 * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Regenerate.
16617 * sysdeps/unix/sysv/linux/s390/s390-64/configure: Regenerate.
16618 * sysdeps/unix/sysv/linux/sparc/sparc64/configure: Regenerate.
16619 * sysdeps/unix/sysv/linux/tile/configure: Regenerate.
16620 * sysdeps/unix/sysv/linux/x86_64/64/configure: Regenerate.
16621 * sysdeps/unix/sysv/linux/x86_64/x32/configure: Regenerate.
16622
16623 2018-01-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
16624
16625 * scripts/build-many-glibcs.py (checkout_vcs): Add hurd repository
16626 URL, and run autoconf, make it the default for now.
16627
16628 2018-01-24 Joseph Myers <joseph@codesourcery.com>
16629
16630 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
16631 soft-float ColdFire configuration.
16632
16633 * sysdeps/unix/sysv/linux/m68k/localplt.data: Move to ....
16634 * sysdeps/unix/sysv/linux/m68k/m680x0/localplt.data: ... here.
16635 * sysdeps/unix/sysv/linux/m68k/coldfire/localplt.data: New file.
16636
16637 * sysdeps/m68k/coldfire/nofpu/math_private.h: New file. Based on
16638 MicroBlaze file.
16639
16640 * sysdeps/unix/sysv/linux/m68k/coldfire/jmp_buf-macros.h: Move to
16641 ....
16642 * sysdeps/unix/sysv/linux/m68k/coldfire/fpu/jmp_buf-macros.h:
16643 ... here.
16644 * sysdeps/unix/sysv/linux/m68k/coldfire/nofpu/jmp_buf-macros.h:
16645 New file.
16646
16647 * sysdeps/unix/sysv/linux/m68k/jmp_buf-macros.h: Move to ....
16648 * sysdeps/unix/sysv/linux/m68k/m680x0/jmp_buf-macros.h: ... here.
16649 * sysdeps/unix/sysv/linux/m68k/coldfire/jmp_buf-macros.h: New
16650 file.
16651
16652 2018-01-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
16653
16654 [BZ #22742]
16655 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (__glibc_reserved1):
16656 Rename to __reserved and add comment.
16657 * sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym (__glibc_reserved1):
16658 Rename to __reserved.
16659
16660 2018-01-24 Joseph Myers <joseph@codesourcery.com>
16661
16662 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
16663 i686-gnu configurations.
16664 (Context.run_builds): Include mig, gnumach and hurd in components
16665 considered.
16666 (Context.checkout): Add mig, gnumach and hurd to components.
16667 (Context.checkout_tar): Add URL mappings for mig, gnumach and
16668 hurd.
16669 (Context.bot_cycle): Check for changes to mig, gnumach and hurd.
16670 (Config.build): Install gnumach headers, build mig and install
16671 hurd headers for 'gnu' OS.
16672 (Config.install_gnumach_headers): New function.
16673 (Config.install_hurd_headers): Likewise.
16674 (Glibc.build_glibc): Do not use /usr for 'gnu' OS. Specifiy MIG
16675 when building for 'gnu' OS.
16676
16677 2018-01-23 Tobias Klauser <tklauser@distanz.ch>
16678
16679 * manual/tunables.texi (Hardware Capability Tunables): Fix
16680 spelling.
16681
16682 2018-01-22 Rical Jasan <ricaljasan@pacific.net>
16683
16684 * manual/locale.texi (ALTMON_1, ALTMON_2, ALTMON_3, ALTMON_4)
16685 (ALTMON_5, ALTMON_6, ALTMON_7, ALTMON_8, ALTMON_9, ALTMON_10)
16686 (ALTMON_11, ALTMON_12): Improve documentation.
16687 * manual/time.texi (strftime): Likewise.
16688
16689 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
16690
16691 [BZ #10871]
16692 * localedata/locales/pl_PL: Alternative month names added,
16693 primary month names are genitive now.
16694 * time/tst-strptime.c (day_tests): Actually use a genitive case
16695 of a month name in Polish language.
16696
16697 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
16698
16699 [BZ #10871]
16700 * manual/locale.texi: Document ALTMON_1..12 constants for
16701 nl_langinfo. Specify when to use ALTMON instead of MON.
16702 * manual/time.texi (strftime, strptime): Document GNU extension
16703 permitting O modifier with %B and %b. Specify when to use
16704 %OB instead of %B.
16705
16706 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
16707
16708 [BZ #10871]
16709 * locale/C-time.c (_nl_C_LC_TIME): Add abbreviated alternative month
16710 names, define them as the same as abbreviated month names explicitly.
16711 * locale/categories.def (LC_TIME): Add ab_alt_mon and wide-ab_alt_mon.
16712 * locale/langinfo.h: (_NL_ABALTMON_1, _NL_ABALTMON_2, _NL_ABALTMON_3,
16713 _NL_ABALTMON_4, _NL_ABALTMON_5, _NL_ABALTMON_6, _NL_ABALTMON_7,
16714 _NL_ABALTMON_8, _NL_ABALTMON_9, _NL_ABALTMON_10, _NL_ABALTMON_11,
16715 _NL_ABALTMON_12, _NL_WABALTMON_1, _NL_WABALTMON_2, _NL_WABALTMON_3,
16716 _NL_WABALTMON_4, _NL_WABALTMON_5, _NL_WABALTMON_6, _NL_WABALTMON_7,
16717 _NL_WABALTMON_8, _NL_WABALTMON_9, _NL_WABALTMON_10, _NL_WABALTMON_11,
16718 _NL_WABALTMON_12): New enum constants.
16719 * locale/programs/ld-time.c (struct locale_time_t): Add ab_alt_mon,
16720 wab_alt_mon, and ab_alt_mon_defined members.
16721 (time_output): Output ab_alt_mon and wab_alt_mon members.
16722 (time_read): Read them, initialize them as copies of abmon and wabmon
16723 respectively if they are missing, initialize ab_alt_mon_defined.
16724 * locale/programs/locfile-kw.gperf (ab_alt_mon): Define.
16725 * locale/programs/locfile-kw.h: Regenerate.
16726 * locale/programs/locfile-token.h (tok_ab_alt_mon): New enum constant.
16727 * time/Makefile [$(run-built-tests) = yes] (LOCALES): Add es_ES.UTF-8
16728 and ru_RU.UTF-8.
16729 * time/strftime_l.c (a_altmonth, aam_len): New macros.
16730 [!COMPILE_WIDE] (ABALTMON_1): New macro.
16731 (__strftime_internal): Handle %Ob and %Oh formats.
16732 * time/strptime_l.c [_LIBC] (ab_alt_month_name): New macro.
16733 (__strptime_internal): Handle %Ob and %Oh formats.
16734 * time/tst-strptime.c (day_tests): Add more tests to parse different
16735 forms of month names including the new %Ob format specifier.
16736
16737 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
16738
16739 [BZ #10871]
16740 * locale/C-time.c (_nl_C_LC_TIME): Add alternative month names,
16741 define them as the same as primary full month names explicitly.
16742 * locale/categories.def (LC_TIME): Add alt_mon and wide-alt_mon.
16743 * locale/langinfo.h (__ALTMON_1, __ALTMON_2, __ALTMON_3, __ALTMON_4,
16744 __ALTMON_5, __ALTMON_6, __ALTMON_7, __ALTMON_8, __ALTMON_9, __ALTMON_10,
16745 __ALTMON_11, __ALTMON_12, _NL_WALTMON_1, _NL_WALTMON_2, _NL_WALTMON_3,
16746 _NL_WALTMON_4, _NL_WALTMON_5, _NL_WALTMON_6, _NL_WALTMON_7,
16747 _NL_WALTMON_8, _NL_WALTMON_9, _NL_WALTMON_10, _NL_WALTMON_11,
16748 _NL_WALTMON_12): New enum constants.
16749 [__USE_GNU] (ALTMON_1, ALTMON_2, ALTMON_3, ALTMON_4, ALTMON_5, ALTMON_6,
16750 ALTMON_7, ALTMON_8, ALTMON_9, ALTMON_10, ALTMON_11, ALTMON_12): New
16751 macros.
16752 * locale/programs/ld-time.c (struct locale_time_t): Add alt_mon,
16753 walt_mon, and alt_mon_defined members.
16754 (time_output): Output alt_mon and walt_mon members.
16755 (time_read): Read them, initialize them as copies of mon and wmon
16756 respectively if they are missing, initialize alt_mon_defined.
16757 * locale/programs/locfile-kw.gperf (alt_mon): Define.
16758 * locale/programs/locfile-kw.h: Regenerate.
16759 * locale/programs/locfile-token.h (tok_alt_mon): New enum constant.
16760 * localedata/tst-langinfo.c (map): Add tests for the new constants
16761 ALTMON_1 .. ALTMON_12.
16762 * time/Makefile [$(run-built-tests) = yes] (LOCALES): Add fr_FR.UTF-8
16763 and pl_PL.UTF-8.
16764 * time/strftime_l.c (f_altmonth): New macro.
16765 (__strftime_internal): Handle %OB format.
16766 * time/strptime_l.c [_LIBC] (alt_month_name): New macro.
16767 (__strptime_internal): Handle %OB format.
16768 * time/tst-strptime.c (day_tests): Add tests to parse different forms
16769 of month names including the new %OB format specifier.
16770
16771 2018-01-19 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
16772
16773 [BZ #22685]
16774 * sysdeps/powerpc/powerpc32/sysdep.h (ABORT_TRANSACTION_IMPL): Renamed
16775 from ABORT_TRANSACTION.
16776 (ABORT_TRANSACTION): Redirect to ABORT_TRANSACTION_IMPL.
16777 * sysdeps/powerpc/powerpc64/sysdep.h (ABORT_TRANSACTION,
16778 ABORT_TRANSACTION_IMPL): Likewise.
16779 * sysdeps/unix/sysv/linux/powerpc/not-errno.h: New file. Reuse
16780 Linux code, but remove the code that aborts transactions.
16781
16782 2018-01-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
16783
16784 * sysdeps/generic/netinet/if_ether.h: Include <stdint.h>.
16785
16786 2018-01-19 Rafal Luzynski <digitalfreak@lingonborough.com>
16787
16788 * localedata/locales/gu_IN (LC_IDENTIFICATION): Fix an obvious typo
16789 in date: "2004-14-09" should be "2004-09-14".
16790 * localedata/locales/lo_LA: Fix an obvious typo in date in the header:
16791 "2003-15-09" should be "2003-09-15".
16792
16793 2018-01-18 Arjun Shankar <arjun@redhat.com>
16794
16795 [BZ #22343]
16796 [BZ #22774]
16797 CVE-2018-6485
16798 CVE-2018-6551
16799 * malloc/malloc.c (checked_request2size): call REQUEST_OUT_OF_RANGE
16800 after padding.
16801 (_int_memalign): check for integer overflow before calling
16802 _int_malloc.
16803 * malloc/tst-malloc-too-large.c: New test.
16804 * malloc/Makefile: Add tst-malloc-too-large.
16805
16806 2018-01-18 Rafal Luzynski <digitalfreak@lingonborough.com>
16807
16808 * localedata/locales/bho_NP (LC_IDENTIFICATION): Fix an obvious typo
16809 in date: "2017-24-07" should be "2017-07-24".
16810 * localedata/locales/mai_IN: Likewise.
16811 * localedata/locales/mai_NP: Likewise.
16812
16813 2018-01-17 Dmitry V. Levin <ldv@altlinux.org>
16814
16815 * po/ru.po: Update translations.
16816
16817 2018-01-17 Joseph Myers <joseph@codesourcery.com>
16818
16819 [BZ #22719]
16820 * sysdeps/hppa/backtrace.c: New file.
16821
16822 2018-01-17 H.J. Lu <hongjiu.lu@intel.com>
16823
16824 [BZ #22715]
16825 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_profile): Properly
16826 align La_x86_64_retval to VEC_SIZE.
16827
16828 2018-01-16 Joseph Myers <joseph@codesourcery.com>
16829
16830 * sysdeps/x86_64/backtrace.c: Include <gnu/lib-names.h>.
16831 (init): Use LIBGCC_S_SO not hardcoded "libgcc_s.so.1".
16832
16833 2018-01-16 Florian Weimer <fweimer@redhat.com>
16834
16835 * nptl/Makefile [$(have-cxx-thread_local)] (tests-unsupported):
16836 Move tst-thread-exit-clobber ...
16837 [$(CXX)] (tests-unsupported): ... to here.
16838
16839 2018-01-16 Szabolcs Nagy <szabolcs.nagy@arm.com>
16840
16841 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SHA3): Define.
16842 (HWCAP_SM3, HWCAP_SM4, HWCAP_ASIMDDP, HWCAP_SHA512, HWCAP_SVE): Define.
16843 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c
16844 (_dl_aarch64_cap_flags): Update.
16845 (_DL_HWCAP_COUNT): Update.
16846
16847 2018-01-16 Szabolcs Nagy <szabolcs.nagy@arm.com>
16848
16849 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h
16850 (_DL_HWCAP_LAST): Remove.
16851 (_DL_HWCAP_COUNT): Move to ...
16852 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c
16853 (_DL_HWCAP_COUNT): ... here.
16854
16855 2018-01-16 Florian Weimer <fweimer@redhat.com>
16856
16857 * nptl/Makefile (CFLAGS-tst-minstack-throw.o): Compile in C++11
16858 mode with GNU extensions.
16859
16860 2018-01-15 Alan Hayward <alan.hayward@arm.com>
16861
16862 * elf/elf.h (NT_ARM_SVE): Define.
16863
16864 2018-01-15 Florian Weimer <fweimer@redhat.com>
16865
16866 [BZ #22636]
16867 * nptl/tst-minstack-throw.cc: New file.
16868 * nptl/Makefile (tests): Add tst-minstack-throw.
16869 (LDLIBS-tst-minstack-throw): Link with libstdc++.
16870 [!CXX] (tests-unsupported): Add tst-minstack-throw.
16871
16872 2018-01-15 Joseph Myers <joseph@codesourcery.com>
16873
16874 * scripts/build-many-glibcs.py (Context.checkout): Default
16875 binutils version to 2.30 branch, MPFR version to 4.0.0 and MPC
16876 version to 1.1.0.
16877
16878 2018-01-13 Carlos O'Donell <carlos@redhat.com>
16879
16880 [BZ #22707]
16881 * elf/elf.h (DF_1_STUB): Define.
16882 (DF_1_PIE): Define.
16883
16884 2018-01-12 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
16885
16886 [BZ #22697]
16887 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
16888 Do not add 0.5 to integer or out-of-range arguments.
16889
16890 2018-01-12 Dmitry V. Levin <ldv@altlinux.org>
16891
16892 * po/bg.po: Update translations.
16893 * po/cs.po: Likewise.
16894 * po/de.po: Likewise.
16895 * po/ko.po: Likewise.
16896 * po/pl.po: Likewise.
16897 * po/sv.po: Likewise.
16898 * po/uk.po: Likewise.
16899 * po/vi.po: Likewise.
16900
16901 2018-01-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
16902
16903 * aarch64/start.S (_start): Use __wrap_main.
16904 (__wrap_main): New local symbol.
16905
16906 2018-01-12 Dmitry V. Levin <ldv@altlinux.org>
16907
16908 [BZ #22679]
16909 CVE-2018-1000001
16910 * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Fall back to
16911 generic_getcwd if the path returned by getcwd syscall is not absolute.
16912 * io/tst-getcwd-abspath.c: New test.
16913 * io/Makefile (tests): Add tst-getcwd-abspath.
16914
16915 2018-01-12 Istvan Kurucsai <pistukem@gmail.com>
16916
16917 * malloc/malloc.c (malloc_consolidate): Add size check.
16918
16919 2018-01-12 Florian Weimer <fweimer@redhat.com>
16920
16921 * support/write_message.c (write_message): Preserve errno.
16922 * support/check.c (print_failure): Likewise.
16923 * support/support_test_verify_impl.c (support_test_verify_impl):
16924 Likewise.
16925 * support/support_test_compare_failure.c
16926 (support_test_compare_failure): Likewise.
16927
16928 2018-01-12 Florian Weimer <fweimer@redhat.com>
16929
16930 [BZ #22701]
16931 * nis/Makefile (install-lib-ldscripts, $(inst_libdir)/libnsl.so):
16932 Prevent installation of libnsl.so.
16933 (libnsl-inhibit-o): Do not build (or install) static libraries.
16934
16935 2018-01-12 Egmont Koblinger <egmont@gmail.com>
16936
16937 [BZ #22657]
16938 * localedata/locales/hu_HU (d_t_fmt): Avoid a leading space
16939 before the day number which may produce a double space.
16940 (date_fmt): Likewise.
16941
16942 2018-01-12 Joseph Myers <joseph@codesourcery.com>
16943
16944 * sysdeps/s390/fpu/feholdexcpt.c (__feholdexcept): Call __fegetenv
16945 instead of fegetenv.
16946
16947 2018-01-11 Joseph Myers <joseph@codesourcery.com>
16948
16949 [BZ #22702]
16950 * sysdeps/generic/math_private.h (libc_feresetround_noex): Update
16951 comment to say exceptions are discarded.
16952 (libc_feholdsetround_noex_ctx): Use __feholdexcept instead of
16953 __fegetenv.
16954 (SET_RESTORE_ROUND_NOEX): Update comment to say non-stop mode must
16955 be enabled.
16956
16957 2018-01-11 Florian Weimer <fweimer@redhat.com>
16958
16959 * sysdeps/gnu/unwind-resume.c (__libgcc_s_init): Update comment
16960 and error message.
16961
16962 2018-01-11 Florian Weimer <fweimer@redhat.com>
16963
16964 [BZ #22636]
16965 * nptl/Makefile (tests): Add tst-minstack-cancel, tst-minstack-exit.
16966 * nptl/tst-minstack-cancel.c, nptl/tst-minstack-exit.c: New files.
16967
16968 2018-01-10 Joseph Myers <joseph@codesourcery.com>
16969
16970 [BZ #22693]
16971 * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Handle
16972 negative arguments in test for NaN or infinity argument.
16973
16974 2018-01-10 Dmitry V. Levin <ldv@altlinux.org>
16975
16976 * po/libc.pot: Regenerate.
16977
16978 2018-01-10 Florian Weimer <fweimer@redhat.com>
16979
16980 [BZ #22636]
16981 * sysdeps/nptl/unwind-forcedunwind.c (pthread_cancel_init): Open
16982 libgcc.so with RTLD_NOW, to avoid lazy binding during unwind.
16983
16984 2018-01-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
16985
16986 * hurd/hurd/fd.h: Include <fcntl.h>
16987 (__hurd_at_flags): New function.
16988 * hurd/lookup-at.c (__file_name_lookup_at): Replace flag computation
16989 with call to __hurd_at_flags.
16990 * include/unistd.h (__faccessat, __faccessat_noerrno): Add declaration.
16991 * sysdeps/mach/hurd/access.c (access_common): Move implementation to
16992 __faccessat
16993 (hurd_fail_seterrno, hurd_fail_noerrno): Move to sysdeps/mach/hurd/faccessat.c.
16994 (__access_noerrno): Use __faccessat_common instead of access_common.
16995 (__access): Likewise.
16996 * sysdeps/mach/hurd/euidaccess.c (__euidaccess): Replace implementation
16997 with a call to __faccessat.
16998 * sysdeps/mach/hurd/faccessat.c (faccessat): Rename into...
16999 (__faccessat_common): ... this. Move implementation of __access into it when
17000 AT_FLAGS does not contain AT_EACCESS. Make it call __hurd_at_flags, add
17001 reauthenticate_cwdir_at helper to implement AT mechanism.
17002 (__faccessat_noerrno): New function, just calls __faccessat_common.
17003 (__faccessat): New function, just calls __faccessat_common.
17004 (faccessat): Define weak alias.
17005
17006 2018-01-10 Joseph Myers <joseph@codesourcery.com>
17007
17008 [BZ #22691]
17009 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
17010 (CFLAGS-s_fmaxmagl.c): New variable.
17011 [$(subdir) = math] (CFLAGS-s_fminmagl.c: Likewise.
17012
17013 [BZ #22690]
17014 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c (__lrintl): Use unsigned
17015 long int for arguments of possibly overflowing addition or
17016 subtraction.
17017 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c (__lroundl): Likewise.
17018
17019 2018-01-09 Joseph Myers <joseph@codesourcery.com>
17020
17021 [BZ #22688]
17022 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
17023 (CFLAGS-e_remainderl.c): New variable.
17024
17025 [BZ #22687]
17026 * sysdeps/powerpc/nofpu/Makefile (CFLAGS-s_cacosl.c): New
17027 variable.
17028 (CFLAGS-s_cacoshl.c): Likewise.
17029 (CFLAGS-s_casinhl.c): Likewise.
17030 (CFLAGS-s_catanl.c): Likewise.
17031 (CFLAGS-s_catanhl.c): Likewise.
17032 (CFLAGS-s_cexpl.c): Likewise.
17033 (CFLAGS-s_ccoshl.c): Add -fsignaling-nans.
17034 (CFLAGS-s_csinhl.c): Likewise.
17035 (CFLAGS-s_clogl.c): Likewise.
17036 (CFLAGS-s_clog10l.c): Likewise.
17037 (CFLAGS-s_csinl.c): Likewise.
17038 (CFLAGS-s_csqrtl.c): Likewise.
17039
17040 2017-01-09 Emilio Pozuelo Monfort <pochu27@gmail.com>
17041 2017-01-09 Svante Signell <svante.signell@gmail.com>
17042
17043 * hurd/hurdexec.c (_hurd_exec): Deprecate function.
17044 (_hurd_exec_paths): New function.
17045 * hurd/hurd.h (_hurd_exec): Deprecate function.
17046 (_hurd_exec_paths): Declare function.
17047 * hurd/Versions: Export _hurd_exec_paths.
17048 * sysdeps/mach/hurd/execve.c: Include <stdlib.h> and <stdio.h>
17049 (__execve): Use __getcwd to build absolute path, and use
17050 _hurd_exec_paths instead of _hurd_exec.
17051 * sysdeps/mach/hurd/spawni.c: Likewise.
17052 * sysdeps/mach/hurd/fexecve.c: Use _hurd_exec_paths instead of
17053 _hurd_exec.
17054
17055 2018-01-08 Dmitry V. Levin <ldv@altlinux.org>
17056
17057 * sysdeps/unix/sysv/linux/tst-ttyname.c (do_in_chroot_1): Skip the
17058 test instead of failing in case of ENOENT returned by posix_openpt.
17059
17060 2018-01-08 Florian Weimer <fweimer@redhat.com>
17061
17062 resolv: Support binary labels in test framework.
17063 * support/resolv_test.c (struct to_be_freed): Remove.
17064 (struct compressed_name): New.
17065 (allocate_compressed_name, ascii_tolower)
17066 (compare_compressed_name): New functions.
17067 (struct resolv_response_builder): Update type of
17068 compression_offsets for use with tsearch. Rempve to_be_freed.
17069 (response_push_pointer_to_free): Remove function.
17070 (resolv_response_add_name): Rewrite using struct compressed_name
17071 and tsearch instead of hsearch_r.
17072 (response_builder_allocate): Remove initialization of
17073 compression_offsets.
17074 (response_builder_free): Update for removal of to_be_freed. Use
17075 tdestroy instead of hdestroy_r.
17076 * resolv/Makefile (tests): Add tst-resolv-binary.
17077 (tst-resolv-binary): Link with -lresolv -lpthread.
17078
17079 2018-01-08 Florian Weimer <fweimer@redhat.com>
17080
17081 * support/check.h (TEST_COMPARE): Allow sign mismatch at compile
17082 time. Pass positive flag instead of negative flag to
17083 support_test_compare_failure.
17084 (support_test_compare_failure): Change negative parameter to
17085 positive.
17086 * support/support_test_compare_failure.c (report)
17087 (support_test_compare_failure): Likewise.
17088 * support/tst-test_compare.c (return_ssize_t, return_int): New.
17089 (do_test): Check int/size_t, ssize_t/size_t comparisons.
17090
17091 2018-01-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
17092
17093 [BZ #22637]
17094 * nptl/descr.h (stackblock, stackblock_size): Update comments.
17095 * nptl/allocatestack.c (allocate_stack): Add guardsize to stacksize.
17096 * nptl/nptl-init.c (__pthread_get_minstack): Remove guardsize from
17097 stacksize.
17098 * nptl/pthread_getattr_np.c (pthread_getattr_np): Likewise.
17099
17100 2018-01-08 H.J. Lu <hongjiu.lu@intel.com>
17101
17102 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
17103 Add s_sincosf-sse2 and s_sincosf-fma.
17104 (CFLAGS-s_sincosf-fma.c): New.
17105 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: New file.
17106 * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.S: Likewise.
17107 * sysdeps/x86_64/fpu/multiarch/s_sincosf.c: Likewise.
17108 * sysdeps/x86_64/fpu/s_sincosf.S: Don't add alias if
17109 __sincosf is defined.
17110
17111 2018-01-08 Florian Weimer <fweimer@redhat.com>
17112
17113 * nptl/tst-thread-exit-clobber.cc: New file.
17114 * nptl/Makefile (CFLAGS-tst-thread-exit-clobber.o): Compile in
17115 C++11 mode.
17116 (LDLIBS-tst-thread-exit-clobber): Link with libstdc++.
17117 (tests): Add tst-thread-exit-clobber.
17118 [!CXX] (tests-unsupported): Add tst-thread-exit-clobber.
17119
17120 2018-01-08 Florian Weimer <fweimer@redhat.com>
17121
17122 * support/check.h (support_static_assert): Define.
17123 (TEST_COMPARE): Use it.
17124
17125 2018-01-07 Aurelien Jarno <aurelien@aurel32.net>
17126
17127 * sysdeps/unix/sysv/linux/getrlimit64 (getrlimit64)
17128 [!__RLIM_T_MATCHES_RLIM64_T]
17129 [!SHLIB_COMPAT (libc, GLIBC_2_1, GLIBC_2_2)]: Define as weak alias of
17130 __getrlimit64. Add libc_hidden_weak.
17131
17132 2018-01-06 Palmer Dabbelt <palmer@sifive.com>
17133
17134 * elf/elf.h (R_RISCV_NONE): New define.
17135 (R_RISCV_32): Likewise.
17136 (R_RISCV_64): Likewise.
17137 (R_RISCV_RELATIVE): Likewise.
17138 (R_RISCV_COPY): Likewise.
17139 (R_RISCV_JUMP_SLOT): Likewise.
17140 (R_RISCV_TLS_DTPMOD32): Likewise.
17141 (R_RISCV_TLS_DTPMOD64): Likewise.
17142 (R_RISCV_TLS_DTPREL32): Likewise.
17143 (R_RISCV_TLS_DTPREL64): Likewise.
17144 (R_RISCV_TLS_TPREL32): Likewise.
17145 (R_RISCV_TLS_TPREL64): Likewise.
17146 * Makerules (make-link-multidir): Make directories before linking into
17147 them.
17148 * sysdeps/unix/sysv/linux/dl-vdso.h (VDSO_NAME_LINUX_4_15): New
17149 define.
17150 (VDSO_HASH_LINUX_4_15): Likewise.
17151 * scripts/build-many-glibcs.py (class Glibc): Strip shared objects
17152 in subdirectories of lib.
17153 * nptl/Makefile (/librt.so): Always depend on
17154 "$(shared-thread-library)".
17155
17156 2018-01-06 Samuel Thibault <samuel.thibault@ens-lyon.org>
17157
17158 * sysdeps/mach/hurd/i386/jmp_buf-macros.h: New file.
17159 * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic) [NO_RTLD_HIDDEN]: Call
17160 JUMPTARGET (___tls_get_addr) instead of HIDDEN_JUMPTARGET
17161 (___tls_get_addr).
17162 * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Likewise.
17163 * sysdeps/i386/fpu/libm-test-ulps: Regenerated for GCC 7 with
17164 "-O2 -march=i686".
17165 * posix/tst-glob_symlinks.c [!PATH_MAX]: Define PATH_MAX macro.
17166 * sysdeps/gnu/glob64.c (__glob): Define macro instead of glob macro.
17167 (__glob64): Define GLIBC_2_27 versioned symbol instead of glob64.
17168 * sysdeps/gnu/glob-lstat-compat.c: New file.
17169 * sysdeps/gnu/glob64-lstat-compat.c: New file.
17170 * sysdeps/posix/pwritev_common.c: Add PROT_READ to __mmap prot.
17171
17172 2018-01-05 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
17173
17174 * sysdeps/powerpc/powerpc64/dl-machine.c (_dl_reloc_overflow):
17175 Reserve 16 chars to reloc_addr before calling _itoa_word.
17176
17177 2018-01-05 Aurelien Jarno <aurelien@aurel32.net>
17178
17179 [BZ #22678]
17180 * sysdeps/unix/sysv/linux/prlimit.c (prlimit): Translate
17181 old_rlimit from RLIM64_INFINITY to RLIM_INFINITY.
17182
17183 * sysdeps/unix/sysv/linux/tst-rlimit-infinity.c: New file.
17184 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-rlimit-infinity.
17185
17186 * resource/tst-getrlimit.c: Add copyright header.
17187
17188 2018-01-05 Aurelien Jarno <aurelien@aurel32.net>
17189 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17190
17191 * sysdeps/unix/sysv/linux/getrlimit64.c [USE_VERSIONED_RLIMIT]: Do not
17192 define getrlimit and getrlimit64 as weak aliases of __getrlimit64.
17193 Define __GI_getrlimit64 as weak alias of __getrlimit64.
17194 [__RLIM_T_MATCHES_RLIM64_T]: Do not redefine SHLIB_COMPAT, use #elif
17195 instead.
17196 * sysdeps/unix/sysv/linux/setrlimit64.c [USE_VERSIONED_RLIMIT]: Do not
17197 define setrlimit and setrlimit64 as weak aliases of __setrlimit64.
17198 * sysdeps/unix/sysv/linux/alpha/bits/resource.h (RLIM_INFINITY,
17199 RLIM64_INFINITY): Fix values to match the kernel ones.
17200 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: Define
17201 USE_VERSIONED_RLIMIT. Rename __getrlimit64 into __old_getrlimit64 and
17202 provide it as getrlimit@@GLIBC_2_0 and getrlimit64@@GLIBC_2_1. Add a
17203 __getrlimit64 function and provide it as getrlimit@@GLIBC_2_27 and
17204 getrlimit64@@GLIBC_2_27.
17205 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Ditto with setrlimit
17206 and setrlimit64.
17207 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.27): Add
17208 getrlimit, setrlimit, getrlimit64 and setrlimit64.
17209 * sysdeps/unix/sysv/linux/alpha/Versions (libc): Add getrlimit,
17210 setrlimit, getrlimit64 and setrlimit64.
17211
17212 2018-01-05 Aurelien Jarno <aurelien@aurel32.net>
17213
17214 [BZ #22648]
17215 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: New file.
17216 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Ditto.
17217
17218 2018-01-04 Joseph Myers <joseph@codesourcery.com>
17219
17220 * malloc/tst-malloc-tcache-leak.c (TIMEOUT): Define to 50.
17221 * posix/tst-glob-tilde.c (TIMEOUT): Define to 200.
17222 * resolv/tst-resolv-res_ninit.c (TIMEOUT): Define to 50.
17223
17224 2018-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17225
17226 [BZ #15479]
17227 [BZ #22666]
17228 * sysdeps/alpha/fpu/s_trunc.c: Remove file.
17229 * sysdeps/alpha/fpu/s_truncf.c: Likewise.
17230
17231 [BZ #15479]
17232 [BZ #22665]
17233 * sysdeps/alpha/fpu/s_ceil.c: Remove file.
17234 * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
17235 * sysdeps/alpha/fpu/s_floor.c: Likewise.
17236 * sysdeps/alpha/fpu/s_floorf.c: Likewise.
17237
17238 2018-01-04 Florian Weimer <fweimer@redhat.com>
17239
17240 [BZ #22667]
17241 * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext):
17242 Align the stack before calling exit.
17243 * stdlib/tst-makecontext-align.c: New file.
17244 * stdlib/Makefile (tests): Add tst-makecontext-align.
17245
17246 2018-01-04 Florian Weimer <fweimer@redhat.com>
17247
17248 Add support for calling dlvsym from libc.so.
17249 * include/dlfcn.h (__libc_dlvsym): Declare.
17250 * elf/Makefile (tests-static-internal): Add
17251 tst-libc_dlvsym-static.
17252 (tests-internal): Add tst-libc_dlvsym.
17253 (modules-names): Add tst-libc_dlvsym-dso.
17254 (tst-libc_dlvsym, tst-libc_dlvsym-static): Link with libdl.
17255 (tst-libc_dlvsym-dso.so): Link with libdl, libsupport.
17256 (tst-libc_dlvsym.out, tst-libc_dlvsym-static.out): The shared
17257 object tst-libc_dlvsym-dso.so needs to be built before running
17258 these tests.
17259 (tst-libc_dlvsym-static-ENV): Set LD_LIBRARY_PATH.
17260 * elf/Versions: Export __libc_dlvsym.
17261 * elf/dl-libc.c (struct do_dlvsym_args): New.
17262 (do_dlvsym, __libc_dlvsym): New functions.
17263 (struct dl_open_hook, _dl_open_hook): Add dlvsym member.
17264 (_dl_open_hook2): New variable.
17265 (__libc_register_dl_open_hook): Set it.
17266 * elf/tst-libc_dlvsym-dso.c: New file.
17267 * elf/tst-libc_dlvsym-static.c: Likewise.
17268 * elf/tst-libc_dlvsym.c: Likewise.
17269 * elf/tst-libc_dlvsym.h: Likewise.
17270
17271 2018-01-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
17272
17273 * support/support_enter_mount_namespace.c [!CLONE_NEWNS]: Do not
17274 include <sys/mount.h>.
17275
17276 2018-01-02 Wilco Dijkstra <wdijkstr@arm.com>
17277
17278 * math/math.h (math_errhandling): Set to 0 with __FAST_MATH__.
17279 Add __NO_MATH_ERRNO__ check.
17280
17281 2018-01-02 Joseph Myers <joseph@codesourcery.com>
17282
17283 * sysdeps/mips/mips32/libm-test-ulps: Update.
17284 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
17285
17286 2018-01-02 Florian Weimer <fweimer@redhat.com>
17287
17288 * misc/tst-pselect.c: Add copyright header.
17289
17290 2018-01-02 Aurelien Jarno <aurelien@aurel32.net>
17291
17292 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: Fix a typo in the
17293 comment.
17294 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Fix a typo in the
17295 comment.
17296 (settrlimit): Rename into setrlimit.
17297 (__sttrlimit): Rename into __setrlimit.
17298
17299 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c (__old_getrlimit64):
17300 Drop __RLIM_T_MATCHES_RLIM64_T conditional as __old_getrlimit64 is
17301 never defined in that case.
17302
17303 2018-01-02 Joseph Myers <joseph@codesourcery.com>
17304
17305 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
17306
17307 * sysdeps/arm/libm-test-ulps: Update.
17308
17309 * math/Makefile (run-regen-ulps): Add $(objpfx) to test name here.
17310 (regen-ulps): Use $(libm-tests) not $^ in shell loop.
17311
17312 2018-01-02 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
17313
17314 * NEWS: Add cosf and sincosf to list of optimized functions.
17315
17316 2018-01-02 Aurelien Jarno <aurelien@aurel32.net>
17317
17318 [BZ #22660]
17319 * sysdeps/alpha/fpu/s_fmax.S: Remove file.
17320 * sysdeps/alpha/fpu/s_fmaxf.S: Likewise.
17321 * sysdeps/alpha/fpu/s_fmin.S: Likewise.
17322 * sysdeps/alpha/fpu/s_fminf.S: Likewise.
17323
17324 2018-01-01 Dmitry V. Levin <ldv@altlinux.org>
17325
17326 [BZ #22433]
17327 * sysdeps/unix/sysv/linux/arm/sys/ptrace.h: New file.
17328
17329 * elf/dl-load.c (decompose_rpath): Check for rpath emptiness before
17330 making a copy of it.
17331
17332 2018-01-01 Joseph Myers <joseph@codesourcery.com>
17333
17334 * manual/texinfo.tex: Update to version 2017-12-26.21 with
17335 trailing whitespace removed.
17336 * scripts/config.guess: Update to version 2018-01-01.
17337 * scripts/config.sub: Update to version 2018-01-01.
17338 * scripts/move-if-change: Update from gnulib.
17339
17340 * NEWS: Update copyright dates.
17341 * catgets/gencat.c (print_version): Likewise.
17342 * csu/version.c (banner): Likewise.
17343 * debug/catchsegv.sh: Likewise.
17344 * debug/pcprofiledump.c (print_version): Likewise.
17345 * debug/xtrace.sh (do_version): Likewise.
17346 * elf/ldconfig.c (print_version): Likewise.
17347 * elf/ldd.bash.in: Likewise.
17348 * elf/pldd.c (print_version): Likewise.
17349 * elf/sotruss.sh: Likewise.
17350 * elf/sprof.c (print_version): Likewise.
17351 * iconv/iconv_prog.c (print_version): Likewise.
17352 * iconv/iconvconfig.c (print_version): Likewise.
17353 * locale/programs/locale.c (print_version): Likewise.
17354 * locale/programs/localedef.c (print_version): Likewise.
17355 * login/programs/pt_chown.c (print_version): Likewise.
17356 * malloc/memusage.sh (do_version): Likewise.
17357 * malloc/memusagestat.c (print_version): Likewise.
17358 * malloc/mtrace.pl: Likewise.
17359 * manual/libc.texinfo: Likewise.
17360 * nptl/version.c (banner): Likewise.
17361 * nscd/nscd.c (print_version): Likewise.
17362 * nss/getent.c (print_version): Likewise.
17363 * nss/makedb.c (print_version): Likewise.
17364 * posix/getconf.c (main): Likewise.
17365 * scripts/test-installation.pl: Likewise.
17366 * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
17367
17368 * All files with FSF copyright notices: Update copyright dates
17369 using scripts/update-copyrights.
17370 * locale/programs/charmap-kw.h: Regenerated.
17371 * locale/programs/locfile-kw.h: Likewise.
17372
17373 2017-12-31 Zack Weinberg <zackw@panix.com>
17374
17375 * libio/bits/libio-ldbl.h: Correct check for improper
17376 inclusion. Add own multiple include guard.
17377
17378 2017-12-30 Aurelien Jarno <aurelien@aurel32.net>
17379 Dmitry V. Levin <ldv@altlinux.org>
17380
17381 [BZ #22625]
17382 CVE-2017-16997
17383 * elf/dl-load.c (fillin_rpath): Check for empty tokens before dynamic
17384 string token expansion. Check for NULL pointer or empty string possibly
17385 returned by expand_dynamic_string_token.
17386 (decompose_rpath): Check for empty path after dynamic string
17387 token expansion.
17388
17389 2017-12-29 Dmitry V. Levin <ldv@altlinux.org>
17390
17391 [BZ #22433]
17392 * sysdeps/unix/sysv/linux/x86/sys/ptrace.h: New file.
17393
17394 * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_request): Add comments
17395 about PTRACE_PEEKSIGINFO, PTRACE_GETSIGMASK, PTRACE_SETSIGMASK, and
17396 PTRACE_SECCOMP_GET_FILTER. Update comments about PTRACE_SINGLESTEP
17397 and PTRACE_SYSCALL.
17398 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Likewise.
17399 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
17400 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
17401 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
17402 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
17403 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h: Likewise.
17404
17405 * sysdeps/unix/sysv/linux/sys/ptrace.h: Include <bits/ptrace-shared.h>.
17406 (__ptrace_setoptions, __ptrace_eventcodes, __ptrace_peeksiginfo_args,
17407 __ptrace_peeksiginfo_flags, ptrace): Move to ...
17408 * sysdeps/unix/sysv/linux/bits/ptrace-shared.h: ... new file.
17409 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
17410 bits/ptrace-shared.h.
17411 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Include
17412 <bits/ptrace-shared.h>.
17413 (__ptrace_setoptions, __ptrace_eventcodes, __ptrace_peeksiginfo_args,
17414 __ptrace_peeksiginfo_flags, ptrace): Remove.
17415 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
17416 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
17417 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
17418 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
17419 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h: Likewise.
17420
17421 2017-12-29 Aurelien Jarno <aurelien@aurel32.net>
17422
17423 [BZ #17804]
17424 * dirent/scandir-tail.c (SCANDIR_TAIL): Move __set_errno (0) at the
17425 end of the loop. Improve comments.
17426
17427 2017-12-29 Zack Weinberg <zackw@panix.com>
17428
17429 [BZ #22615]
17430 * manual/errno.texi (Checking for Errors): Explicitly say that errno
17431 might be set on success.
17432
17433 2017-12-29 Aurelien Jarno <aurelien@aurel32.net>
17434
17435 [BZ #22611]
17436 * malloc/tst-realloc.c (do_test): Remove the test checking that errno
17437 is unchanged on success.
17438
17439 2017-12-27 Dmitry V. Levin <ldv@altlinux.org>
17440
17441 * elf/dl-dst.h (DL_DST_COUNT): Remove is_path argument, all callers
17442 updated.
17443 * elf/dl-load.c (is_dst, _dl_dst_count, _dl_dst_substitute,
17444 expand_dynamic_string_token): Likewise.
17445 * sysdeps/generic/ldsodefs.h (_dl_dst_count, _dl_dst_substitute): Remove
17446 is_path argument.
17447
17448 * elf/dl-load.c (is_dst): Remove checks that is_path is set and name
17449 contains ':'.
17450
17451 * elf/dl-load.c (_dl_dst_substitute): Remove checks that is_path
17452 is set and name contains ':', and all code depending on these checks.
17453
17454 2017-12-24 Zack Weinberg <zackw@panix.com>
17455
17456 * libio/libio.h, libio/_G_config.h: New stub headers which issue a
17457 deprecation warning and then include <bits/libio.h>, <bits/_G_config.h>
17458 respectively.
17459 * libio/libio.h: Rename the original version of this file to
17460 libio/bits/libio.h. Error out if not included by stdio.h or the
17461 stub libio.h.
17462 * include/libio.h: Move to include/bits. Forward to libio/bits/libio.h.
17463 * sysdeps/generic/_G_config.h: Move to top-level bits/. Error out
17464 if not included by bits/libio.h or the stub _G_config.h.
17465 * sysdeps/unix/sysv/linux/_G_config.h: Move to
17466 sysdeps/unix/sysv/linux/bits. Error out if not included by
17467 bits/libio.h or the stub _G_config.h.
17468 * libio/stdio.h: Include bits/libio.h, not libio.h.
17469 * libio/Makefile: Install bits/libio.h and bits/_G_config.h as
17470 well as libio.h and _G_config.h.
17471
17472 * csu/init.c, libio/fmemopen.c, libio/iolibio.h, libio/oldfmemopen.c
17473 * libio/strfile.h, stdio-common/vfscanf.c
17474 * sysdeps/pthread/flockfile.c, sysdeps/pthread/funlockfile.c
17475 Include stdio.h, not _G_config.h nor libio.h.
17476 * libio/iofgetpos.c: Also rename fgetpos64 out of the way.
17477 * libio/iofsetpos.c: Also rename fsetpos64 out of the way.
17478
17479 * scripts/check-installed-headers.sh: Skip libio.h and _G_config.h.
17480
17481 2017-12-23 Dmitry V. Levin <ldv@altlinux.org>
17482
17483 [BZ #22347]
17484 * stdlib/getrandom.c (getrandom): Fix comment.
17485 * sysdeps/unix/sysv/linux/getrandom.c (getrandom): Likewise.
17486
17487 2017-12-23 Aurelien Jarno <aurelien@aurel32.net>
17488
17489 [BZ #21161]
17490 * manual/arith.texi (strtoul): Fix a typo.
17491
17492 [BZ #22596]
17493 * manual/arith.texi (finite): Fix the description of the return
17494 value.
17495
17496 2017-12-22 Eric Blake <ebb9@byu.net>
17497
17498 Avoid gcc warnings on cygwin
17499 * posix/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
17500 * posix/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
17501 Avoid unused variable.
17502
17503 2017-12-22 Florian Weimer <fweimer@redhat.com>
17504
17505 * io/Makefile (routines): Add copy_file_range.
17506 (tests): Add tst-copy_file_range.
17507 (tests-static, tests-internal): Add tst-copy_file_range-compat.
17508 * io/Versions (GLIBC_2.27): Export copy_file_range.
17509 * io/copy_file_range-compat.c: New file.
17510 * io/copy_file_range.c: Likewise.
17511 * io/tst-copy_file_range-compat.c: Likewise.
17512 * io/tst-copy_file_range.c: Likewise.
17513 * manual/llio.texi (Copying File Data): New section.
17514 * posix/unistd.h [__USE_GNU] (copy_file_range): Declare.
17515 * support/Makefile (libsupport-routines): Add support-xfstat,
17516 xftruncate, xlseek.
17517 * support/support-xfstat.c: New file.
17518 * support/xftruncate.c: Likewise.
17519 * support/xlseek.c: Likewise.
17520 * support/xunistd.h (xfstat, xftruncate, xlseek): Declare.
17521 * sysdeps/unix/sysv/linux/**.abilist: Update.
17522 * sysdeps/unix/sysv/linux/copy_file_range.c: New file.
17523
17524 2017-12-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
17525
17526 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
17527 disable-multi-arch variant to aarch64-linux-gnu.
17528
17529 2017-12-20 Joseph Myers <joseph@codesourcery.com>
17530
17531 * manual/texinfo.tex: Update to version 2017-12-18.20 with
17532 trailing whitespace removed.
17533 * scripts/config.guess: Update to version 2017-12-17.
17534 * scripts/config.sub: Update to version 2017-11-23.
17535 * scripts/install-sh: Update to version 2017-09-23.17.
17536 * scripts/move-if-change: Update to version 2017-09-13 06:45.
17537
17538 2017-12-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17539
17540 * sysdeps/tile/__longjmp.S (__longjmp): Use lowercase instructions.
17541 * sysdeps/tile/__tls_get_addr.S (__tls_get_addr): Likewise.
17542 * sysdeps/tile/_mcount.S (__mcount): Likewise.
17543 * sysdeps/tile/crti.S (_init, _fini): Likewise.
17544 * sysdeps/tile/crtn.S: Likewise.
17545 * sysdeps/tile/dl-start.S (_start): Likewise.
17546 * sysdeps/tile/dl-trampoline.S: Likewise.
17547 * sysdeps/tile/setjmp.S (__sigsetjmp): Likewise.
17548 * sysdeps/tile/start.S (_start): Likewise.
17549 * sysdeps/unix/sysv/linux/tile/clone.S (_clone): Likewise.
17550 * sysdeps/unix/sysv/linux/tile/getcontext.S (__getcontext): Likewise.
17551 * sysdeps/unix/sysv/linux/tile/ioctl.S (__ioctl): Likewise.
17552 * sysdeps/unix/sysv/linux/tile/setcontext.S (__setcontext): Likewise.
17553 * sysdeps/unix/sysv/linux/tile/swapcontext.S (__swapcontext): Likewise.
17554 * sysdeps/unix/sysv/linux/tile/syscall.S (syscall): Likewise.
17555 * sysdeps/unix/sysv/linux/tile/vfork.S (__vfork): Likewise.
17556
17557 * stdlib/bug-getcontext.c (do_test): Remove tilepro mention in
17558 comment.
17559 * sysdeps/tile/preconfigure: Remove tilegx folder.
17560 * sysdeps/tile/tilegx/Implies: Move definitions to ...
17561 * sysdeps/tile/Implies: ... here.
17562 * sysdeps/tile/tilegx/Makefile: Move rules to ...
17563 * sysdeps/tile/Makefile: ... here.
17564 * sysdeps/tile/tilegx/atomic-machine.h: Move definitions to ...
17565 * sysdeps/tile/atomic-machine.h: ... here. Add include guards.
17566 * sysdeps/tile/tilegx/bits/wordsize.h: Move to ...
17567 * sysdeps/tile/bits/wordsize.h: ... here.
17568 * sysdeps/tile/tilegx/*: Move to ...
17569 * sysdeps/tile/*: ... here.
17570 * sysdeps/tile/tilegx/tilegx32/Implies: Move to ...
17571 * sysdeps/tile/tilegx32/Implies: ... here.
17572 * sysdeps/tile/tilegx/tilegx64/Implies: Move to ...
17573 * sysdeps/tile/tilegx64/Implies: ... here.
17574 * sysdeps/unix/sysv/linux/tile/tilegx/Makefile: Move definitions
17575 to ...
17576 * sysdeps/unix/sysv/linux/tile/Makefile: ... here.
17577 * sysdeps/unix/sysv/linux/tile/tilegx/*: Move to ...
17578 * sysdeps/unix/sysv/linux/tile/*: ... here.
17579 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/*: Move to ...
17580 * sysdeps/unix/sysv/linux/tile/tilegx32/*: ... here.
17581 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/*: Move to ...
17582 * sysdeps/unix/sysv/linux/tile/tilegx64/*: ... here.
17583
17584 * README: Remove tilepro-*-linux-gnu from supported architecture.
17585 * scripts/build-many-glibcs.py: Likewise.
17586 * sysdeps/tile/__tls_get_addr.S (__tls_get_addr): Likewise.
17587 * sysdeps/tile/crti.S (PREINIT_FUNCTION): Likewise.
17588 * sysdeps/tile/dl-machine.h (ELF_MACHINE_NAME,
17589 elf_machine_matches_host, elf_machine_dynamic,
17590 elf_machine_load_address, elf_machine_runtime_setup, reloc_howto
17591 howto, elf_machine_rela): Likewise.
17592 * sysdeps/tile/dl-start.S (_start): Likewise.
17593 * sysdeps/tile/memcmp.c (DBLALIGN, REVBYTES): Likewise.
17594 * sysdeps/tile/memcopy.h (MEMCPY_OK_FOR_FWD_MEMMOVE,
17595 MEMCPY_OK_FOR_FWD_MEMMOVE, op_t): Likewise.
17596 * sysdeps/tile/nptl/pthread_spin_lock.c (TNS, CMPTNS): Likewise.
17597 * sysdeps/tile/nptl/pthread_spin_trylock.c (TNS): Likewise.
17598 * sysdeps/tile/nptl/pthread_spin_unlock.c (pthread_spin_unlock):
17599 Likewise.
17600 * sysdeps/tile/nptl/tls.h (DB_THREAD_SELF): Likewise.
17601 * sysdeps/tile/preconfigure: Likewise.
17602 * sysdeps/tile/stackguard-macros.h (STACK_CHK_GUARD,
17603 POINTER_CHK_GUARD): Likewise.
17604 * sysdeps/tile/stackinfo.h (__stackinfo_sub): Likewise.
17605 * sysdeps/tile/start.S (_start): Likewise.
17606 * sysdeps/tile/tls-macros.h (TLS_GD_OFFSET, TLS_IE_OFFSET, _TLS_LE):
17607 Likewise.
17608 * sysdeps/tile/sysdep.h (REGSIZE): Likewise.
17609 (LD, LD4U, ST, ST4, BNEZ, BEQZ, BEQZT, BGTZ, CMPEQI, CMPEQ, CMOVEQZ,
17610 CMOVNEZ): Remove.
17611 * sysdeps/unix/sysv/linux/tile/bits/environments.h
17612 (__ILP32_OFF32_CFLAGS, __ILP32_OFFBIG_CFLAGS, __ILP32_OFF32_LDFLAGS,
17613 __ILP32_OFFBIG_LDFLAGS, __LP64_OFF64_CFLAGS, __LP64_OFF64_LDFLAGS):
17614 Likewise.
17615 * sysdeps/tile/wordcopy.c (DBLALIGN): Likewise.
17616 * sysdeps/tile/tilepro/Implies: Remove file.
17617 * sysdeps/tile/tilepro/atomic-machine.h: Likewise.
17618 * sysdeps/tile/tilepro/bits/wordsize.h: Likewise.
17619 * sysdeps/tile/tilepro/memchr.c: Likewise.
17620 * sysdeps/tile/tilepro/memcpy.S: Likewise.
17621 * sysdeps/tile/tilepro/memset.c: Likewise.
17622 * sysdeps/tile/tilepro/memusage.h: Likewise.
17623 * sysdeps/tile/tilepro/rawmemchr.c: Likewise.
17624 * sysdeps/tile/tilepro/strchr.c: Likewise.
17625 * sysdeps/tile/tilepro/strchrnul.c: Likewise.
17626 * sysdeps/tile/tilepro/strlen.c: Likewise.
17627 * sysdeps/tile/tilepro/strrchr.c: Likewise.
17628 * sysdeps/unix/sysv/linux/tile/tilepro/Implies: Likewise.
17629 * sysdeps/unix/sysv/linux/tile/tilepro/c++-types.data: Likewise.
17630 * sysdeps/unix/sysv/linux/tile/tilepro/jmp_buf-macros.h: Likewise.
17631 * sysdeps/unix/sysv/linux/tile/tilepro/ld.abilist: Likewise.
17632 * sysdeps/unix/sysv/linux/tile/tilepro/ldconfig.h: Likewise.
17633 * sysdeps/unix/sysv/linux/tile/tilepro/libBrokenLocale.abilist:
17634 Likewise.
17635 * sysdeps/unix/sysv/linux/tile/tilepro/libanl.abilist: Likewise.
17636 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
17637 * sysdeps/unix/sysv/linux/tile/tilepro/libcrypt.abilist: Likewise.
17638 * sysdeps/unix/sysv/linux/tile/tilepro/libdl.abilist: Likewise.
17639 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
17640 * sysdeps/unix/sysv/linux/tile/tilepro/libnsl.abilist: Likewise.
17641 * sysdeps/unix/sysv/linux/tile/tilepro/libpthread.abilist: Likewise.
17642 * sysdeps/unix/sysv/linux/tile/tilepro/libresolv.abilist: Likewise.
17643 * sysdeps/unix/sysv/linux/tile/tilepro/librt.abilist: Likewise.
17644 * sysdeps/unix/sysv/linux/tile/tilepro/libthread_db.abilist: Likewise.
17645 * sysdeps/unix/sysv/linux/tile/tilepro/libutil.abilist: Likewise.
17646 * sysdeps/unix/sysv/linux/tile/tilepro/register-dump.h: Likewise.
17647 * sysdeps/unix/sysv/linux/tile/sysconf.c (linux_sysconf): Remove
17648 tilepro mention in comment.
17649
17650 * nptl/Makefile (libpthread-routines): Add pthread_join_common.
17651 * nptl/pthreadP.h (__pthread_timedjoin_ex): New prototype.
17652 * nptl/pthread_join_common.c: New file: common function used on
17653 pthread_join, pthread_timedjoin_np, pthread_tryjoin_np.
17654 * nptl/pthread_join.c (pthread_join): Use __pthread_timedjoin_ex.
17655 * nptl/pthread_tryjoin.c (pthread_tryjoin): Likewise.
17656 * nptl/pthread_timedjoin.c (pthread_timedjoin_np): Likewise.
17657 (cleanup): Move definition to pthread_join_common.c.
17658 * sysdeps/unix/sysv/linux/i386/lowlevellock.h (__lll_timedwait_tid):
17659 Remove superflous checks.
17660 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (__lll_timedwait_tid):
17661 Likewise.
17662
17663 2017-12-20 Szabolcs Nagy <szabolcs.nagy@arm.com>
17664
17665 * sysdeps/aarch64/libm-test-ulps: Update.
17666
17667 2017-12-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17668
17669 * sysdeps/aarch64/memset.S (MEMSET): Define.
17670
17671 2017-12-20 Florian Weimer <fweimer@redhat.com>
17672
17673 [BZ #22635]
17674 nptl: Provide full implementation of pthread_self in libc.so.
17675 * nptl/Makefile (routines): Add pthread_self.
17676 (libpthread-routines): Replace pthread_self with
17677 compat-pthread_self.
17678 * nptl/forward.c (pthread_self): Remove.
17679 * nptl/nptl-init.c (pthread_functions): Do not initialize
17680 ptr_pthread_self.
17681 * nptl/pthread_self.c (pthread_self): Remove weak alias.
17682 * nptl/compat-pthread_self.c: New file.
17683 * sysdeps/nptl/pthread-functions.h (struct pthread_functions):
17684 Remove ptr_pthread_self.
17685
17686 2017-12-19 Arnold D. Robbins <arnold@skeeve.com>
17687
17688 * posix/regcomp.c: Fix spelling in comments.
17689 * posix/regex.h: Likewise.
17690 * posix/regex_internal.c: Likewise.
17691 * posix/regexec.c: Likewise.
17692
17693 2017-12-19 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
17694
17695 [BZ #22377]
17696 * math/Makefile [C++] (tests): Add test for iseqsig.
17697 * math/math.h [C++] (iseqsig): New implementation, which does
17698 not rely on __MATH_TG/__builtin_types_compatible_p.
17699 * math/test-math-iseqsig.cc: New file.
17700 * sysdeps/powerpc/powerpc64le/Makefile
17701 (CFLAGS-test-math-iseqsig.cc): New variable.
17702
17703 2017-12-19 Dmitry V. Levin <ldv@altlinux.org>
17704
17705 * elf/dl-load.c (is_trusted_path): Remove.
17706 (fillin_rpath): Remove check_trusted argument and its use,
17707 all callers changed.
17708
17709 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
17710
17711 [BZ #22630]
17712 * Makeconfig (link-pie-before-libc): Replace -pie with
17713 $(if $($(@F)-no-pie),$(no-pie-ldflag),-pie).
17714 * elf/Makefile (LDFLAGS-tst-dlopen-aout): Removed.
17715 (tst-dlopen-aout-no-pie): New.
17716 (LDFLAGS-tst-prelink): Removed.
17717 (tst-prelink-no-pie): New.
17718 (LDFLAGS-tst-main1): Removed.
17719 (tst-main1-no-pie): New.
17720 * gmon/Makefile (LDFLAGS-tst-gmon): Removed.
17721 (tst-gmon-no-pie): New.
17722
17723 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
17724
17725 * manual/install.texi: Document that --enable-static-pie
17726 implies PIE.
17727 * INSTALL: Regenerated.
17728
17729 2017-12-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
17730
17731 [BZ #21309]
17732 * sysdeps/ieee754/dbl-64/e_pow.c (checkint): Make m and n
17733 unsigned.
17734
17735 2017-12-19 Joseph Myers <joseph@codesourcery.com>
17736
17737 Revert:
17738
17739 2017-12-19 Joseph Myers <joseph@codesourcery.com>
17740
17741 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
17742
17743 2017-12-19 Patrick McGehearty <patrick.mcgehearty@oracle.com>
17744
17745 * sysdeps/ieee754/dbl-64/e_exp.c: Include <math-svid-compat.h> and
17746 <errno.h>. Include "eexp.tbl".
17747 (half): New constant.
17748 (one): Likewise.
17749 (__ieee754_exp): Rewrite.
17750 (__slowexp): Remove prototype.
17751 * sysdeps/ieee754/dbl-64/eexp.tbl: New file.
17752 * sysdeps/ieee754/dbl-64/slowexp.c: Remove file.
17753 * sysdeps/i386/fpu/slowexp.c: Likewise.
17754 * sysdeps/ia64/fpu/slowexp.c: Likewise.
17755 * sysdeps/m68k/m680x0/fpu/slowexp.c: Likewise.
17756 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Likewise.
17757 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
17758 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
17759 * sysdeps/generic/math_private.h (__slowexp): Remove prototype.
17760 * sysdeps/ieee754/dbl-64/e_pow.c: Remove mention of slowexp.c in
17761 comment.
17762 * sysdeps/powerpc/power4/fpu/Makefile [$(subdir) = math]
17763 (CPPFLAGS-slowexp.c): Remove variable.
17764 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
17765 Remove slowexp-fma, slowexp-fma4 and slowexp-avx.
17766 (CFLAGS-slowexp-fma.c): Remove variable.
17767 (CFLAGS-slowexp-fma4.c): Likewise.
17768 (CFLAGS-slowexp-avx.c): Likewise.
17769 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Do not
17770 define as macro.
17771 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Likewise.
17772 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Likewise.
17773 * math/Makefile (type-double-routines): Remove slowexp.
17774 * manual/probes.texi (slowexp_p6): Remove.
17775 (slowexp_p32): Likewise.
17776
17777 2017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17778
17779 * lib/glob.c (glob): Use a 'char *', not a 'void *', in pointer
17780 arithmetic.
17781
17782 * lib/glob.c (glob): Do not pass NULL to mempcpy.
17783
17784 2017-12-19 Joseph Myers <joseph@codesourcery.com>
17785
17786 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
17787
17788 2017-12-19 Patrick McGehearty <patrick.mcgehearty@oracle.com>
17789
17790 * sysdeps/ieee754/dbl-64/e_exp.c: Include <math-svid-compat.h> and
17791 <errno.h>. Include "eexp.tbl".
17792 (half): New constant.
17793 (one): Likewise.
17794 (__ieee754_exp): Rewrite.
17795 (__slowexp): Remove prototype.
17796 * sysdeps/ieee754/dbl-64/eexp.tbl: New file.
17797 * sysdeps/ieee754/dbl-64/slowexp.c: Remove file.
17798 * sysdeps/i386/fpu/slowexp.c: Likewise.
17799 * sysdeps/ia64/fpu/slowexp.c: Likewise.
17800 * sysdeps/m68k/m680x0/fpu/slowexp.c: Likewise.
17801 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Likewise.
17802 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
17803 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
17804 * sysdeps/generic/math_private.h (__slowexp): Remove prototype.
17805 * sysdeps/ieee754/dbl-64/e_pow.c: Remove mention of slowexp.c in
17806 comment.
17807 * sysdeps/powerpc/power4/fpu/Makefile [$(subdir) = math]
17808 (CPPFLAGS-slowexp.c): Remove variable.
17809 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
17810 Remove slowexp-fma, slowexp-fma4 and slowexp-avx.
17811 (CFLAGS-slowexp-fma.c): Remove variable.
17812 (CFLAGS-slowexp-fma4.c): Likewise.
17813 (CFLAGS-slowexp-avx.c): Likewise.
17814 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Do not
17815 define as macro.
17816 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Likewise.
17817 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Likewise.
17818 * math/Makefile (type-double-routines): Remove slowexp.
17819 * manual/probes.texi (slowexp_p6): Remove.
17820 (slowexp_p32): Likewise.
17821
17822 2017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17823 James Clarke <jrtc27@jrtc27.com>
17824
17825 [BZ #22603]
17826 * sysdeps/ia64/memchr.S (__memchr): Avoid overflow in pointer
17827 addition.
17828
17829 2017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17830
17831 [BZ #22605]
17832 * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Fix exit return
17833 code.
17834
17835 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
17836
17837 [BZ #22563]
17838 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
17839 * sysdeps/i386/nptl/tls.h (tcbhead_t): Add feature_1.
17840 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
17841 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Rename __glibc_unused1
17842 to feature_1.
17843
17844 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
17845
17846 [BZ #22563]
17847 * bits/types/__cancel_jmp_buf_tag.h: New file.
17848 * sysdeps/unix/sysv/linux/x86/bits/types/__cancel_jmp_buf_tag.h
17849 * sysdeps/unix/sysv/linux/x86/pthreaddef.h: Likewise.
17850 * sysdeps/unix/sysv/linux/x86/nptl/pthreadP.h: Likewise.
17851 * nptl/Makefile (headers): Add
17852 bits/types/__cancel_jmp_buf_tag.h.
17853 * nptl/descr.h [NEED_SAVED_MASK_IN_CANCEL_JMP_BUF]
17854 (pthread_unwind_buf): Add saved_mask to cancel_jmp_buf.
17855 * sysdeps/nptl/pthread.h: Include
17856 <bits/types/__cancel_jmp_buf_tag.h>.
17857 (__pthread_unwind_buf_t): Use struct __cancel_jmp_buf_tag with
17858 __cancel_jmp_buf.
17859 * sysdeps/unix/sysv/linux/hppa/pthread.h: Likewise.
17860
17861 2017-12-18 H.J. Lu <hongjiu.lu@intel.com>
17862
17863 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
17864 --enable-static-pie variants to x86_64, x32 and i686.
17865
17866 2017-12-19 Joseph Myers <joseph@codesourcery.com>
17867
17868 [BZ #22631]
17869 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__m81_defun): Add
17870 argument for attrubutes. All callers changed.
17871 (__inline_mathop1): Likewise. All callers changed.
17872 (__inline_mathop): Likewise. All callers changed.
17873 [__USE_MISC] (scalbn): Use __inline_forward instead of
17874 __inline_forward_c.
17875 [__USE_ISOC99] (scalbln): Likewise.
17876 [__USE_ISOC99] (nearbyint): Likewise.
17877 [__USE_ISOC99] (lrint): Likewise.
17878 [__USE_MISC] (scalbnf): Likewise.
17879 [__USE_ISOC99] (scalblnf): Likewise.
17880 [__USE_ISOC99] (nearbyintf): Likewise.
17881 [__USE_ISOC99] (lrintf): Likewise.
17882 [__USE_MISC] (scalbnl): Likewise.
17883 [__USE_ISOC99] (scalblnl): Likewise.
17884 [__USE_ISOC99] (nearbyintl): Likewise.
17885 [__USE_ISOC99] (lrintl): Likewise.
17886 * sysdeps/m68k/m680x0/fpu/mathimpl.h: All callers of
17887 __inline_mathop and __m81_defun changed.
17888
17889 * scripts/build-many-glibcs.py (Context.add_all_configs): Specify
17890 CPU or FPU for ARM hard-float configurations.
17891
17892 2017-12-18 Joseph Myers <joseph@codesourcery.com>
17893
17894 * nptl/tst-attr3.c: Include <libc-diag.h>.
17895 (do_test) [__GNUC_PREREQ (7, 0)]: Ignore -Wrestrict for two tests.
17896
17897 * posix/tst-glob_symlinks.c (do_test): Increase size of buf.
17898
17899 * string/tester.c (test_strncat): Also disable -Warray-bounds
17900 warnings for two tests.
17901
17902 2017-12-18 H.J. Lu <hongjiu.lu@intel.com>
17903
17904 [BZ #22614]
17905 * Makeconfig (no-pie-ldflag): Set to -no-pie only if
17906 $(cc-pie-default) == yes.
17907 * config.make.in (cc-pie-default): New.
17908 * configure.ac (libc_cv_pie_default): Renamed to ...
17909 (libc_cv_cc_pie_default): This.
17910 (libc_cv_pie_default): Set to $libc_cv_cc_pie_default.
17911 * configure: Regenerated.
17912
17913 2017-12-18 Florian Weimer <fweimer@redhat.com>
17914
17915 [BZ #20204]
17916 ld.so: Harden dl-libc/libdl hooks.
17917 * sysdeps/generic/ldsodefs.h (_dl_init_all_dirs): Update comment.
17918 (rtld_active): New function.
17919 * dlfcn/dladdr.c (__dladdr): Call it.
17920 * dlfcn/dladdr1.c (__dladdr1): Likewise.
17921 * dlfcn/dlclose.c (__dlcose): Likewise.
17922 * dlfcn/dlerror.c (__dlerror): Likewise.
17923 * dlfcn/dlinfo.c (__dlinfo): Likewise.
17924 * dlfcn/dlmopen.c (__dlmopen): Likewise.
17925 * dlfcn/dlopen.c (__dlopen): Likewise.
17926 * dlfcn/dlopenold.c (__dlopen_nocheck): Likewise.
17927 * dlfcn/dlsym.c (__dlsym): Likewise.
17928 * dlfcn/dlvsym.c (__dlvsym): Likewise.
17929 * libio/vtables.c (_IO_vtable_check): Likewise.
17930 * elf/dl-libc.c (__libc_dlopen_mode, __libc_dlsym)
17931 (__libc_dlclose): Likewise.
17932 * elf/rtld.c (dl_main): Update comment on the _dl_init_all_dirs
17933 assignment.
17934
17935 2017-12-18 Joseph Myers <joseph@codesourcery.com>
17936
17937 [BZ #22446]
17938 * nscd/connections.c (handle_request) [SO_PEERCRED]: Use separate
17939 buffers for readlink input and output.
17940
17941 2017-12-18 Sergei Trofimovich <slyfox@gentoo.org>
17942
17943 [BZ #22624]
17944 * sysdeps/mips/setjmp_aux.c (__sigsetjmp_aux): Use
17945 inhibit_stack_protector.
17946
17947 [BZ #22624]
17948 * sysdeps/mips/mips64/setjmp_aux.c (__sigsetjmp_aux): Use
17949 inhibit_stack_protector.
17950
17951 2017-12-18 Dmitry V. Levin <ldv@altlinux.org>
17952
17953 [BZ #22627]
17954 * elf/dl-load.c (_dl_init_paths): Remove _dl_dst_substitute preparatory
17955 code and invocation.
17956
17957 2017-12-18 Szabolcs Nagy <szabolcs.nagy@arm.com>
17958
17959 * sysdeps/aarch64/start.S (_start): Handle PIC && !SHARED case.
17960
17961 2017-12-16 Aurelien Jarno <aurelien@aurel32.net>
17962
17963 [BZ #22505]
17964 * elf/ldconfig.c (main): Call setlocale to force LC_COLLATE to C.
17965
17966 2017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
17967
17968 * sysdeps/s390/fpu/libm-test-ulps: Update.
17969
17970 2017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
17971
17972 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
17973
17974 2017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
17975
17976 * sysdeps/ieee754/flt-32/s_cosf.c: Move reduced() and
17977 constants to s_sincosf.h file.
17978 * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
17979 * sysdeps/ieee754/flt-32/s_sincosf.c: New
17980 implementation.
17981 * sysdeps/ieee754/flt-32/s_sincosf.h:
17982 New file.
17983
17984 2017-12-12 Carlos O'Donell <carlos@redhat.com>
17985
17986 [BZ #14681]
17987 * elf/tst-leaks1.c (do_test): Call one dlopen with $ORIGIN expansion
17988 before mtrace.
17989
17990 2017-12-15 H.J. Lu <hongjiu.lu@intel.com>
17991
17992 [BZ #19574]
17993 * INSTALL: Regenerated.
17994 * Makeconfig (real-static-start-installed-name): New.
17995 (pic-default): Updated for --enable-static-pie.
17996 (pie-default): New for --enable-static-pie.
17997 (default-pie-ldflag): Likewise.
17998 (+link-static-before-libc): Replace $(DEFAULT-LDFLAGS-$(@F))
17999 with $(if $($(@F)-no-pie),$(no-pie-ldflag),$(default-pie-ldflag)).
18000 Replace $(static-start-installed-name) with
18001 $(real-static-start-installed-name).
18002 (+prectorT): Updated for --enable-static-pie.
18003 (+postctorT): Likewise.
18004 (CFLAGS-.o): Add $(pie-default).
18005 (CFLAGS-.op): Likewise.
18006 * NEWS: Mention --enable-static-pie.
18007 * config.h.in (ENABLE_STATIC_PIE): New.
18008 * configure.ac (--enable-static-pie): New configure option.
18009 (have-no-dynamic-linker): New LIBC_CONFIG_VAR.
18010 (have-static-pie): Likewise.
18011 Enable static PIE if linker supports --no-dynamic-linker.
18012 (ENABLE_STATIC_PIE): New AC_DEFINE.
18013 (enable-static-pie): New LIBC_CONFIG_VAR.
18014 * configure: Regenerated.
18015 * csu/Makefile (omit-deps): Add r$(start-installed-name) and
18016 gr$(start-installed-name) for --enable-static-pie.
18017 (extra-objs): Likewise.
18018 (install-lib): Likewise.
18019 (extra-objs): Add static-reloc.o and static-reloc.os
18020 ($(objpfx)$(start-installed-name)): Also depend on
18021 $(objpfx)static-reloc.o.
18022 ($(objpfx)r$(start-installed-name)): New.
18023 ($(objpfx)g$(start-installed-name)): Also depend on
18024 $(objpfx)static-reloc.os.
18025 ($(objpfx)gr$(start-installed-name)): New.
18026 * csu/libc-start.c (LIBC_START_MAIN): Call _dl_relocate_static_pie
18027 in libc.a.
18028 * csu/libc-tls.c (__libc_setup_tls): Add main_map->l_addr to
18029 initimage.
18030 * csu/static-reloc.c: New file.
18031 * elf/Makefile (routines): Add dl-reloc-static-pie.
18032 (elide-routines.os): Likewise.
18033 (DEFAULT-LDFLAGS-tst-tls1-static-non-pie): Removed.
18034 (tst-tls1-static-non-pie-no-pie): New.
18035 * elf/dl-reloc-static-pie.c: New file.
18036 * elf/dl-support.c (_dl_get_dl_main_map): New function.
18037 * elf/dynamic-link.h (ELF_DURING_STARTUP): Also check
18038 STATIC_PIE_BOOTSTRAP.
18039 * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
18040 * gmon/Makefile (tests): Add tst-gmon-static-pie.
18041 (tests-static): Likewise.
18042 (DEFAULT-LDFLAGS-tst-gmon-static): Removed.
18043 (tst-gmon-static-no-pie): New.
18044 (CFLAGS-tst-gmon-static-pie.c): Likewise.
18045 (CRT-tst-gmon-static-pie): Likewise.
18046 (tst-gmon-static-pie-ENV): Likewise.
18047 (tests-special): Likewise.
18048 ($(objpfx)tst-gmon-static-pie.out): Likewise.
18049 (clean-tst-gmon-static-pie-data): Likewise.
18050 ($(objpfx)tst-gmon-static-pie-gprof.out): Likewise.
18051 * gmon/tst-gmon-static-pie.c: New file.
18052 * manual/install.texi: Document --enable-static-pie.
18053 * sysdeps/generic/ldsodefs.h (_dl_relocate_static_pie): New.
18054 (_dl_get_dl_main_map): Likewise.
18055 * sysdeps/i386/configure.ac: Check if linker supports static PIE.
18056 * sysdeps/x86_64/configure.ac: Likewise.
18057 * sysdeps/i386/configure: Regenerated.
18058 * sysdeps/x86_64/configure: Likewise.
18059 * sysdeps/mips/Makefile (ASFLAGS-.o): Add $(pie-default).
18060 (ASFLAGS-.op): Likewise.
18061
18062 2017-12-15 Joseph Myers <joseph@codesourcery.com>
18063
18064 * io/Makefile (tst-open-tmpfile-ARGS): New variable.
18065 * posix/tst-mmap-offset.c (fname): Use /tmp.
18066 * stdlib/tst-setcontext3.sh (tempfile): Use ${objpfx}.
18067
18068 2017-12-15 Steve Ellcey <sellcey@cavium.com>
18069
18070 * nscd/dbg_log.c (dbg_log): Increase msg buffer size.
18071
18072 2017-12-15 Thomas Schwinge <thomas@codesourcery.com>
18073
18074 * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno): Don't set
18075 errno.
18076
18077 2017-12-15 Joseph Myers <joseph@codesourcery.com>
18078
18079 * scripts/build-many-glibcs.py (Context.add_all_configs): Use
18080 --with-float=hard for arm-linux-gnueabihf configurations.
18081
18082 [BZ #14121]
18083 * po/Makefile (generated): Add $(ALL_LINGUAS:%=%.mo).
18084 (%.mo): Change to $(objpfx)%.mo. Use $(make-target-directory).
18085 ($(mo-installed)): Use $(objpfx)%.mo.
18086 (realclean): Remove rule.
18087
18088 * po/Makefile (linguas): Remove rule and dependencies.
18089 (linguas.mo): Likewise.
18090 (.PHONY): Do not depend on linguas and linguas.mo.
18091 (podir): Remove variable.
18092 (pofiles): Likewise.
18093 [$(pofiles)] (%.po): Remove rule.
18094
18095 * sysdeps/sparc/sparc32/Makefile
18096 ($(divrem:%=$(sysdep_dir)/sparc/sparc32/%.S)): Do not include
18097 start-of-line whitespace in argument of echo.
18098 * sysdeps/sparc/sparc32/divrem.m4: Avoid generating lines starting
18099 with whitespace. Generate __wrap_.udiv alias.
18100 * sysdeps/sparc/sparc32/rem.S: Regenerated.
18101 * sysdeps/sparc/sparc32/sdiv.S: Likewise.
18102 * sysdeps/sparc/sparc32/udiv.S: Likewise.
18103 * sysdeps/sparc/sparc32/urem.S: Likewise.
18104
18105 2017-12-15 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
18106
18107 * sysdeps/powerpc/powerpc64/power8/strcpy.S: Use vectors
18108 for aligned inputs.
18109
18110 2017-12-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
18111
18112 * benchtests/bench-strcmp.c: Print output in JSON format.
18113
18114 * elf/dl-tunables.list: Remove redundant SXID_ERASE.
18115
18116 2017-12-14 Florian Weimer <fweimer@redhat.com>
18117
18118 [BZ #22607]
18119 CVE-2017-1000409
18120 * elf/dl-load.c (_dl_init_paths): Compute number of components in
18121 the expanded path string.
18122
18123 2017-12-14 Florian Weimer <fweimer@redhat.com>
18124
18125 [BZ #22606]
18126 CVE-2017-1000408
18127 * elf/dl-load.c (system_dirs): Update comment.
18128 (nsystem_dirs_len): Use array_length.
18129 (_dl_init_paths): Use nsystem_dirs_len to compute the array size.
18130
18131 2017-12-14 Florian Weimer <fweimer@redhat.com>
18132
18133 Simplify compiling most of support/ outside of glibc.
18134 * support/check_addrinfo.c: Include <string.h>.
18135 * support/check_dns_packet.c: Likewise.
18136 * support/check_hostent.c: Likewise.
18137 * support/support_can_chroot.c: Include <support/xunistd.h>.
18138 * support/support_format_addrinfo.c: Include <stdlib.h>
18139 * support/support_format_dns_packet.c: Include <stdbool.h>.
18140 * support/support_format_hostent.c: Include <stdlib.h>.
18141 * support/support_format_netent.c: Likewise.
18142 * support/support_write_string.c: Include <support/xunistd.h>.
18143 * support/xdlfcn.c: Include <stddef.h>.
18144
18145 2017-12-14 H.J. Lu <hongjiu.lu@intel.com>
18146
18147 * sysdeps/x86_64/fpu/s_cosf.S: Removed.
18148
18149 2017-12-14 Patrick McGehearty <patrick.mcgehearty@oracle.com>
18150 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18151
18152 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
18153 (sysdeps_routines): Add memset-niagara7.
18154 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdes_rotuines):
18155 Likewise.
18156 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara7.S: New
18157 file.
18158 * sysdeps/sparc/sparc64/multiarch/memset-niagara7.S: Likewise.
18159 * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c
18160 (__libc_ifunc_impl_list): Add __bzero_niagara7 and __memset_niagara7.
18161 * sysdeps/sparc/sparc64/multiarch/ifunc-memset.h (IFUNC_SELECTOR):
18162 Add niagara7 option.
18163 * NEWS: Mention sparc m7 optimized memcpy, mempcpy, memmove, and
18164 memset.
18165
18166 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
18167 (sysdeps_routines): Add memcpy-memmove-niagara7 and memmove-ultra1.
18168 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdeps_routines):
18169 Likewise.
18170 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-memmove-niagara7.S:
18171 New file.
18172 * sysdeps/sparc/sparc32/sparcv9/multiarch/memmove-ultra1.S: Likewise.
18173 * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memmove.c: Likewise.
18174 * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c
18175 (__libc_ifunc_impl_list): Add __memcpy_niagara7, __mempcpy_niagara7,
18176 and __memmove_niagara7.
18177 * sysdeps/sparc/sparc64/multiarch/ifunc-memcpy.h (IFUNC_SELECTOR):
18178 Add niagara7 option.
18179 * sysdeps/sparc/sparc64/multiarch/memmove.c: New file.
18180 * sysdeps/sparc/sparc64/multiarch/ifunc-memmove.h: Likewise.
18181 * sysdeps/sparc/sparc64/multiarch/memcpy-memmove-niagara7.S: Likewise.
18182 * sysdeps/sparc/sparc64/multiarch/memmove-ultra1.S: Likewise.
18183 * sysdeps/sparc/sparc64/multiarch/rtld-memmove.c: Likewise.
18184
18185 2017-12-14 Jose E. Marchesi <jose.marchesi@oracle.com>
18186
18187 * sysdeps/sparc/sparc32/sparcv9/memmove.S: New file.
18188 * sysdeps/sparc/sparc32/sparcv9/rtld-memmove.c: Likewise.
18189 * sysdeps/sparc/sparc64/memmove.S: Likewise.
18190 * sysdeps/sparc/sparc64/rtld-memmove.c: Likewise.
18191
18192 * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_ADP): Defined.
18193 * sysdeps/sparc/dl-procinfo.c: Added "adp" to the
18194 _dl_sparc_cap_flags array.
18195 * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increment.
18196
18197 2017-12-13 Siddhesh Poyarekar <siddhesh@sourceware.org>
18198
18199 * sysdeps/aarch64/strcmp.S (misaligned8): Compare dword at a
18200 time whenever possible.
18201
18202 2017-12-12 Carlos O'Donell <carlos@redhat.com>
18203
18204 * elf/Makefile [$(nss-crypt)$(static-nss-crypt) == yesno]
18205 (CFLAGS-tst-linkall-static.c): Undefine USE_CRYPT first.
18206
18207 2017-12-12 Joseph Myers <joseph@codesourcery.com>
18208
18209 * soft-fp/fmadf4.c: Move to ....
18210 * sysdeps/ieee754/soft-fp/s_fma.c: ... here.
18211 * soft-fp/fmasf4.c: Move to ....
18212 * sysdeps/ieee754/soft-fp/s_fmaf.c: ... here.
18213 * soft-fp/fmatf4.c: Move to ....
18214 * sysdeps/ieee754/soft-fp/s_fmal.c: ... here.
18215 * sysdeps/ieee754/soft-fp/Makefile: New file.
18216 * sysdeps/arm/preconfigure.ac: Define with_fp_cond.
18217 * sysdeps/arm/preconfigure: Regenerated.
18218 * sysdeps/arm/nofpu/Implies: New file.
18219 * sysdeps/arm/s_fma.c: Remove file.
18220 * sysdeps/arm/s_fmaf.c: Likewise.
18221 * sysdeps/m68k/coldfire/nofpu/Implies: New file.
18222 * sysdeps/m68k/coldfire/nofpu/s_fma.c: Remove file.
18223 * sysdeps/m68k/coldfire/nofpu/s_fmaf.c: Likewise.
18224 * sysdeps/microblaze/Implies: Add ieee754/soft-fp.
18225 * sysdeps/microblaze/s_fma.c: Remove file.
18226 * sysdeps/microblaze/s_fmaf.c: Likewise.
18227 * sysdeps/mips/mips32/nofpu/Implies: New file.
18228 * sysdeps/mips/mips64/n32/fpu/s_fma.c: Likewise.
18229 * sysdeps/mips/mips64/n32/nofpu/Implies: Likewise.
18230 * sysdeps/mips/mips64/n64/fpu/s_fma.c: Likewise.
18231 * sysdeps/mips/mips64/n64/nofpu/Implies: Likewise.
18232 * sysdeps/mips/ieee754/s_fma.c: Remove file.
18233 * sysdeps/mips/ieee754/s_fmaf.c: Likewise.
18234 * sysdeps/mips/ieee754/s_fmal.c: Update include for move of fmal
18235 implementation.
18236 * sysdeps/nios2/Implies: Add ieee754/soft-fp.
18237 * sysdeps/nios2/s_fma.c: Remove file.
18238 * sysdeps/nios2/s_fmaf.c: Likewise.
18239 * sysdeps/sh/nofpu/Implies: New file.
18240 * sysdeps/sh/s_fma.c: Remove file.
18241 * sysdeps/sh/s_fmaf.c: Likewise.
18242 * sysdeps/tile/Implies: Add ieee754/soft-fp.
18243 * sysdeps/tile/s_fma.c: Remove file.
18244 * sysdeps/tile/s_fmaf.c: Likewise.
18245
18246 2017-12-12 H.J. Lu <hongjiu.lu@intel.com>
18247
18248 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
18249 Add s_cosf-sse2 and s_cosf-fma.
18250 (CFLAGS-s_cosf-fma.c): New.
18251 * sysdeps/x86_64/fpu/multiarch/s_cosf-fma.c: New file.
18252 * sysdeps/x86_64/fpu/multiarch/s_cosf-sse2.c: Likewise.
18253 * sysdeps/x86_64/fpu/multiarch/s_cosf.c: Likewise.
18254
18255 2017-12-12 Steve Ellcey <sellcey@cavium.com>
18256
18257 * nscd/nscd.h (init_traced_file): Change strncpy to memcpy.
18258
18259 2017-12-12 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18260
18261 * libio/Makefile (tests): Add tst-bz22415.
18262 (tst-bz22415-ENV): New rule.
18263 (generated): Add tst-bz22415.mtrace and tst-bz22415.check.
18264 (tests-special): Add tst-bz22415-mem.out.
18265 ($(objpfx)tst-bz22415-mem.out): New rule.
18266 * libio/fileops.c (_IO_new_file_seekoff): Call _IO_free_backup_area
18267 in case of a successful seek operation.
18268 * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
18269 (_IO_wfile_overflow): Call _IO_free_wbackup_area in case a write
18270 buffer is required.
18271 * libio/tst-bz22415.c: New test.
18272
18273 * sysdeps/ia64/fpu/libm-test-ulps: Update.
18274
18275 2017-12-12 James Clarke <jrtc27@jrtc27.com>
18276
18277 * sysdeps/unix/sysv/linux/ia64/ipc_priv.h: New file defining
18278 __IPC_64 to 0 to avoid IPC_64 being set.
18279
18280 2017-12-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
18281
18282 [BZ #22593]
18283 * math/bits/mathcalls.h (nextafter): Remove const.
18284 (nexttoward): Likewise.
18285
18286 2017-12-12 Joseph Myers <joseph@codesourcery.com>
18287
18288 * configure.ac (--with-fp): Remove configure option.
18289 (with_fp_cond): New variable.
18290 (libc_cv_with_fp): New configure test. Use this variable instead
18291 of with_fp.
18292 * configure: Regenerated.
18293 * config.make.in (with-fp): Use @libc_cv_with_fp@.
18294 * manual/install.texi (Configuring and compiling): Remove
18295 --without-fp.
18296 * INSTALL: Regenerated.
18297 * sysdeps/m68k/preconfigure (with_fp_cond): Define for ColdFire.
18298 * sysdeps/mips/preconfigure (with_fp_cond): Define.
18299 * sysdeps/powerpc/preconfigure (with_fp_cond): Define for 32-bit.
18300 * sysdeps/sh/preconfigure (with_fp_cond): Define.
18301 * scripts/build-many-glibcs.py (Context.add_all_configs): Do not
18302 use --without-fp to configure glibc.
18303
18304 2017-12-12 Rical Jasan <ricaljasan@pacific.net>
18305
18306 * manual/locale.texi (nl_langinfo): Fix a typo.
18307
18308 2017-12-12 Aurelien Jarno <aurelien@aurel32.net>
18309
18310 [BZ #22588]
18311 * manual/conf.texi (SC_SSIZE_MAX): Rename into _SC_SSIZE_MAX.
18312
18313 2017-12-11 H.J. Lu <hongjiu.lu@intel.com>
18314
18315 * argp/Makefile (CFLAGS-argp-help.c): Replace = with +=.
18316 (CFLAGS-argp-parse.c): Likewise.
18317 (CFLAGS-argp-fmtstream.c): Likewise.
18318 * crypt/Makefile (CPPFLAGS-sha256-crypt.c): Likewise.
18319 (CPPFLAGS-sha512-crypt.c): Likewise.
18320 (CPPFLAGS-md5-crypt.c): Likewise.
18321 * debug/Makefile (CFLAGS-stack_chk_fail.c): Likewise.
18322 (CFLAGS-stack_chk_fail_local.c): Likewise.
18323 (CFLAGS-backtrace.c): Likewise.
18324 (CFLAGS-sprintf_chk.c): Likewise.
18325 (CFLAGS-snprintf_chk.c): Likewise.
18326 (CFLAGS-vsprintf_chk.c): Likewise.
18327 (CFLAGS-vsnprintf_chk.c): Likewise.
18328 (CFLAGS-asprintf_chk.c): Likewise.
18329 (CFLAGS-vasprintf_chk.c): Likewise.
18330 (CFLAGS-obprintf_chk.c): Likewise.
18331 (CFLAGS-dprintf_chk.c): Likewise.
18332 (CFLAGS-vdprintf_chk.c): Likewise.
18333 (CFLAGS-printf_chk.c): Likewise.
18334 (CFLAGS-fprintf_chk.c): Likewise.
18335 (CFLAGS-vprintf_chk.c): Likewise.
18336 (CFLAGS-vfprintf_chk.c): Likewise.
18337 (CFLAGS-gets_chk.c): Likewise.
18338 (CFLAGS-fgets_chk.c): Likewise.
18339 (CFLAGS-fgets_u_chk.c): Likewise.
18340 (CFLAGS-fread_chk.c): Likewise.
18341 (CFLAGS-fread_u_chk.c): Likewise.
18342 (CFLAGS-swprintf_chk.c): Likewise.
18343 (CFLAGS-vswprintf_chk.c): Likewise.
18344 (CFLAGS-wprintf_chk.c): Likewise.
18345 (CFLAGS-fwprintf_chk.c): Likewise.
18346 (CFLAGS-vwprintf_chk.c): Likewise.
18347 (CFLAGS-vfwprintf_chk.c): Likewise.
18348 (CFLAGS-fgetws_chk.c): Likewise.
18349 (CFLAGS-fgetws_u_chk.c): Likewise.
18350 (CFLAGS-read_chk.c): Likewise.
18351 (CFLAGS-pread_chk.c): Likewise.
18352 (CFLAGS-pread64_chk.c): Likewise.
18353 (CFLAGS-recv_chk.c): Likewise.
18354 (CFLAGS-recvfrom_chk.c): Likewise.
18355 (CFLAGS-tst-longjmp_chk.c): Likewise.
18356 (CPPFLAGS-tst-longjmp_chk.c): Likewise.
18357 (CFLAGS-tst-longjmp_chk2.c): Likewise.
18358 (CPPFLAGS-tst-longjmp_chk2.c): Likewise.
18359 (CFLAGS-tst-longjmp_chk3.c): Likewise.
18360 (CPPFLAGS-tst-longjmp_chk3.c): Likewise.
18361 (CFLAGS-tst-chk1.c): Likewise.
18362 (CFLAGS-tst-chk2.c): Likewise.
18363 (CFLAGS-tst-chk3.c): Likewise.
18364 (CFLAGS-tst-chk4.cc): Likewise.
18365 (CFLAGS-tst-chk5.cc): Likewise.
18366 (CFLAGS-tst-chk6.cc): Likewise.
18367 (CFLAGS-tst-lfschk1.c): Likewise.
18368 (CFLAGS-tst-lfschk2.c): Likewise.
18369 (CFLAGS-tst-lfschk3.c): Likewise.
18370 (CFLAGS-tst-lfschk4.cc): Likewise.
18371 (CFLAGS-tst-lfschk5.cc): Likewise.
18372 (CFLAGS-tst-lfschk6.cc): Likewise.
18373 (CFLAGS-tst-ssp-1.c): Likewise.
18374 * dirent/Makefile (CFLAGS-scandir.c): Likewise.
18375 (CFLAGS-scandir64.c): Likewise.
18376 (CFLAGS-scandir-tail.c): Likewise.
18377 (CFLAGS-scandir64-tail.c): Likewise.
18378 * elf/Makefile (CPPFLAGS-dl-tunables.c): Likewise.
18379 (CFLAGS-dl-tunables.c): Likewise.
18380 (CFLAGS-dl-runtime.c): Likewise.
18381 (CFLAGS-dl-lookup.c): Likewise.
18382 (CFLAGS-dl-iterate-phdr.c): Likewise.
18383 (CFLAGS-vismain.c): Likewise.
18384 (CFLAGS-tst-linkall-static.c): Likewise.
18385 (CFLAGS-tst-linkall-static.c): Likewise.
18386 (CPPFLAGS-dl-load.c): Likewise.
18387 (CFLAGS-ldconfig.c): Likewise.
18388 (CFLAGS-dl-cache.c): Likewise.
18389 (CFLAGS-cache.c): Likewise.
18390 (CFLAGS-rtld.c): Likewise.
18391 (CFLAGS-multiload.c): Likewise.
18392 (CFLAGS-filtmod1.c): Likewise.
18393 (CFLAGS-tst-align.c): Likewise.
18394 (CFLAGS-tst-align2.c): Likewise.
18395 (CFLAGS-tst-alignmod.c): Likewise.
18396 (CFLAGS-tst-alignmod2.c): Likewise.
18397 (CPPFLAGS-tst-execstack.c): Likewise.
18398 (CFLAGS-tst-ptrguard1-static.c): Likewise.
18399 (CFLAGS-tst-latepthreadmod.c): Likewise.
18400 * grp/Makefile (CFLAGS-getgrgid_r.c): Likewise.
18401 (CFLAGS-getgrnam_r.c): Likewise.
18402 (CFLAGS-getgrent_r.c): Likewise.
18403 (CFLAGS-getgrent.c): Likewise.
18404 (CFLAGS-fgetgrent.c): Likewise.
18405 (CFLAGS-fgetgrent_r.c): Likewise.
18406 (CFLAGS-putgrent.c): Likewise.
18407 (CFLAGS-initgroups.c): Likewise.
18408 (CFLAGS-getgrgid.c): Likewise.
18409 * gshadow/Makefile (CFLAGS-getsgent_r.c): Likewise.
18410 (CFLAGS-getsgent.c): Likewise.
18411 (CFLAGS-fgetsgent.c): Likewise.
18412 (CFLAGS-fgetsgent_r.c): Likewise.
18413 (CFLAGS-putsgent.c): Likewise.
18414 (CFLAGS-getsgnam.c): Likewise.
18415 (CFLAGS-getsgnam_r.c): Likewise.
18416 * iconv/Makefile (CFLAGS-iconv_prog.c): Likewise.
18417 (CFLAGS-iconv_charmap.c): Likewise.
18418 (CFLAGS-dummy-repertoire.c): Likewise.
18419 (CFLAGS-charmap.c): Likewise.
18420 (CFLAGS-linereader.c): Likewise.
18421 (CFLAGS-simple-hash.c): Likewise.
18422 (CFLAGS-gconv_conf.c): Likewise.
18423 (CFLAGS-iconvconfig.c): Likewise.
18424 * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
18425 (CFLAGS-gethstbyad.c): Likewise.
18426 (CFLAGS-gethstbynm_r.c): Likewise.
18427 (CFLAGS-gethstbynm.c): Likewise.
18428 (CFLAGS-gethstbynm2_r.c): Likewise.
18429 (CFLAGS-gethstbynm2.c): Likewise.
18430 (CFLAGS-gethstent_r.c): Likewise.
18431 (CFLAGS-gethstent.c): Likewise.
18432 (CFLAGS-rcmd.c): Likewise.
18433 (CFLAGS-getnetbynm_r.c): Likewise.
18434 (CFLAGS-getnetbynm.c): Likewise.
18435 (CFLAGS-getnetbyad_r.c): Likewise.
18436 (CFLAGS-getnetbyad.c): Likewise.
18437 (CFLAGS-getnetent_r.c): Likewise.
18438 (CFLAGS-getnetent.c): Likewise.
18439 (CFLAGS-getaliasent_r.c): Likewise.
18440 (CFLAGS-getaliasent.c): Likewise.
18441 (CFLAGS-getrpcent_r.c): Likewise.
18442 (CFLAGS-getrpcent.c): Likewise.
18443 (CFLAGS-getservent_r.c): Likewise.
18444 (CFLAGS-getservent.c): Likewise.
18445 (CFLAGS-getprtent_r.c): Likewise.
18446 (CFLAGS-getprtent.c): Likewise.
18447 (CFLAGS-either_ntoh.c): Likewise.
18448 (CFLAGS-either_hton.c): Likewise.
18449 (CFLAGS-getnetgrent.c): Likewise.
18450 (CFLAGS-getnetgrent_r.c): Likewise.
18451 (CFLAGS-tst-checks-posix.c): Likewise.
18452 (CFLAGS-tst-sockaddr.c): Likewise.
18453 * intl/Makefile (CFLAGS-tst-gettext.c): Likewise.
18454 (CFLAGS-tst-translit.c): Likewise.
18455 (CFLAGS-tst-gettext2.c): Likewise.
18456 (CFLAGS-tst-codeset.c): Likewise.
18457 (CFLAGS-tst-gettext3.c): Likewise.
18458 (CFLAGS-tst-gettext4.c): Likewise.
18459 (CFLAGS-tst-gettext5.c): Likewise.
18460 (CFLAGS-tst-gettext6.c): Likewise.
18461 * io/Makefile (CFLAGS-open.c): Likewise.
18462 (CFLAGS-open64.c): Likewise.
18463 (CFLAGS-creat.c): Likewise.
18464 (CFLAGS-creat64.c): Likewise.
18465 (CFLAGS-fcntl.c): Likewise.
18466 (CFLAGS-poll.c): Likewise.
18467 (CFLAGS-ppoll.c): Likewise.
18468 (CFLAGS-lockf.c): Likewise.
18469 (CFLAGS-statfs.c): Likewise.
18470 (CFLAGS-fstatfs.c): Likewise.
18471 (CFLAGS-statvfs.c): Likewise.
18472 (CFLAGS-fstatvfs.c): Likewise.
18473 (CFLAGS-fts.c): Likewise.
18474 (CFLAGS-fts64.c): Likewise.
18475 (CFLAGS-ftw.c): Likewise.
18476 (CFLAGS-ftw64.c): Likewise.
18477 (CFLAGS-lockf.c): Likewise.
18478 (CFLAGS-posix_fallocate.c): Likewise.
18479 (CFLAGS-posix_fallocate64.c): Likewise.
18480 (CFLAGS-fallocate.c): Likewise.
18481 (CFLAGS-fallocate64.c): Likewise.
18482 (CFLAGS-read.c): Likewise.
18483 (CFLAGS-write.c): Likewise.
18484 (CFLAGS-test-stat.c): Likewise.
18485 (CFLAGS-test-lfs.c): Likewise.
18486 * libio/Makefile (CFLAGS-fileops.c): Likewise.
18487 (CFLAGS-fputc.c): Likewise.
18488 (CFLAGS-fputwc.c): Likewise.
18489 (CFLAGS-freopen64.c): Likewise.
18490 (CFLAGS-freopen.c): Likewise.
18491 (CFLAGS-fseek.c): Likewise.
18492 (CFLAGS-fseeko64.c): Likewise.
18493 (CFLAGS-fseeko.c): Likewise.
18494 (CFLAGS-ftello64.c): Likewise.
18495 (CFLAGS-ftello.c): Likewise.
18496 (CFLAGS-fwide.c): Likewise.
18497 (CFLAGS-genops.c): Likewise.
18498 (CFLAGS-getc.c): Likewise.
18499 (CFLAGS-getchar.c): Likewise.
18500 (CFLAGS-getwc.c): Likewise.
18501 (CFLAGS-getwchar.c): Likewise.
18502 (CFLAGS-iofclose.c): Likewise.
18503 (CFLAGS-iofflush.c): Likewise.
18504 (CFLAGS-iofgetpos64.c): Likewise.
18505 (CFLAGS-iofgetpos.c): Likewise.
18506 (CFLAGS-iofgets.c): Likewise.
18507 (CFLAGS-iofgetws.c): Likewise.
18508 (CFLAGS-iofputs.c): Likewise.
18509 (CFLAGS-iofputws.c): Likewise.
18510 (CFLAGS-iofread.c): Likewise.
18511 (CFLAGS-iofsetpos64.c): Likewise.
18512 (CFLAGS-iofsetpos.c): Likewise.
18513 (CFLAGS-ioftell.c): Likewise.
18514 (CFLAGS-iofwrite.c): Likewise.
18515 (CFLAGS-iogetdelim.c): Likewise.
18516 (CFLAGS-iogetline.c): Likewise.
18517 (CFLAGS-iogets.c): Likewise.
18518 (CFLAGS-iogetwline.c): Likewise.
18519 (CFLAGS-ioputs.c): Likewise.
18520 (CFLAGS-ioseekoff.c): Likewise.
18521 (CFLAGS-ioseekpos.c): Likewise.
18522 (CFLAGS-iosetbuffer.c): Likewise.
18523 (CFLAGS-iosetvbuf.c): Likewise.
18524 (CFLAGS-ioungetc.c): Likewise.
18525 (CFLAGS-ioungetwc.c): Likewise.
18526 (CFLAGS-oldfileops.c): Likewise.
18527 (CFLAGS-oldiofclose.c): Likewise.
18528 (CFLAGS-oldiofgetpos64.c): Likewise.
18529 (CFLAGS-oldiofgetpos.c): Likewise.
18530 (CFLAGS-oldiofsetpos64.c): Likewise.
18531 (CFLAGS-oldiofsetpos.c): Likewise.
18532 (CFLAGS-peekc.c): Likewise.
18533 (CFLAGS-putc.c): Likewise.
18534 (CFLAGS-putchar.c): Likewise.
18535 (CFLAGS-putwc.c): Likewise.
18536 (CFLAGS-putwchar.c): Likewise.
18537 (CFLAGS-rewind.c): Likewise.
18538 (CFLAGS-wfileops.c): Likewise.
18539 (CFLAGS-wgenops.c): Likewise.
18540 (CFLAGS-oldiofopen.c): Likewise.
18541 (CFLAGS-iofopen.c): Likewise.
18542 (CFLAGS-iofopen64.c): Likewise.
18543 (CFLAGS-oldtmpfile.c): Likewise.
18544 (CFLAGS-tst_putwc.c): Likewise.
18545 * locale/Makefile (CFLAGS-md5.c): Likewise.
18546 (CFLAGS-charmap.c): Likewise.
18547 (CFLAGS-locfile.c): Likewise.
18548 (CFLAGS-charmap-dir.c): Likewise.
18549 * login/Makefile (CFLAGS-grantpt.c): Likewise.
18550 (CFLAGS-getpt.c): Likewise.
18551 (CFLAGS-pt_chown.c): Likewise.
18552 * malloc/Makefile (CFLAGS-mcheck-init.c): Likewise.
18553 (CFLAGS-obstack.c): Likewise.
18554 * math/Makefile (CFLAGS-test-tgmath3.c): Likewise.
18555 (CFLAGS-test-double-vlen4-wrappers.c): Likewise.
18556 (CFLAGS-test-double-vlen8-wrappers.c): Likewise.
18557 (CFLAGS-test-float-vlen8-wrappers.c): Likewise.
18558 (CFLAGS-test-float-vlen16-wrappers.c): Likewise.
18559 (CFLAGS-test-tgmath.c): Likewise.
18560 (CFLAGS-test-tgmath2.c): Likewise.
18561 (CFLAGS-test-tgmath-ret.c): Likewise.
18562 (CFLAGS-test-powl.c): Likewise.
18563 (CFLAGS-test-snan.c): Likewise.
18564 (CFLAGS-test-signgam-finite.c): Likewise.
18565 (CFLAGS-test-signgam-finite-c99.c): Likewise.
18566 (CFLAGS-test-signgam-finite-c11.c): Likewise.
18567 (CFLAGS-test-signgam-uchar.c): Likewise.
18568 (CFLAGS-test-signgam-uchar-init.c): Likewise.
18569 (CFLAGS-test-signgam-uchar-static.c): Likewise.
18570 (CFLAGS-test-signgam-uchar-init-static.c): Likewise.
18571 (CFLAGS-test-signgam-uint.c): Likewise.
18572 (CFLAGS-test-signgam-uint-init.c): Likewise.
18573 (CFLAGS-test-signgam-uint-static.c): Likewise.
18574 (CFLAGS-test-signgam-uint-init-static.c): Likewise.
18575 (CFLAGS-test-signgam-ullong.c): Likewise.
18576 (CFLAGS-test-signgam-ullong-init.c): Likewise.
18577 (CFLAGS-test-signgam-ullong-static.c): Likewise.
18578 (CFLAGS-test-signgam-ullong-init-static.c): Likewise.
18579 (CFLAGS-test-math-cxx11.cc): Likewise.
18580 (CFLAGS-test-math-isinff.cc): Likewise.
18581 (CFLAGS-test-math-iszero.cc): Likewise.
18582 (CFLAGS-test-math-issignaling.cc): Likewise.
18583 (CFLAGS-test-math-iscanonical.cc): Likewise.
18584 (CFLAGS-test-iszero-excess-precision.c): Likewise.
18585 (CFLAGS-test-iseqsig-excess-precision.c): Likewise.
18586 (CFLAGS-test-flt-eval-method.c): Likewise.
18587 (CFLAGS-test-fe-snans-always-signal.c): Likewise.
18588 (CFLAGS-test-finite-macros.c): Likewise.
18589 * misc/Makefile (CFLAGS-select.c): Likewise.
18590 (CFLAGS-tsearch.c): Likewise.
18591 (CFLAGS-lsearch.c): Likewise.
18592 (CFLAGS-pselect.c): Likewise.
18593 (CFLAGS-readv.c): Likewise.
18594 (CFLAGS-writev.c): Likewise.
18595 (CFLAGS-preadv.c): Likewise.
18596 (CFLAGS-preadv64.c): Likewise.
18597 (CFLAGS-pwritev.c): Likewise.
18598 (CFLAGS-pwritev64.c): Likewise.
18599 (CFLAGS-preadv2.c): Likewise.
18600 (CFLAGS-preadv64v2.c): Likewise.
18601 (CFLAGS-pwritev2.c): Likewise.
18602 (CFLAGS-pwritev64v2.c): Likewise.
18603 (CFLAGS-usleep.c): Likewise.
18604 (CFLAGS-syslog.c): Likewise.
18605 (CFLAGS-error.c): Likewise.
18606 (CFLAGS-getpass.c): Likewise.
18607 (CFLAGS-mkstemp.c): Likewise.
18608 (CFLAGS-mkstemp64.c): Likewise.
18609 (CFLAGS-getsysstats.c): Likewise.
18610 (CFLAGS-getusershell.c): Likewise.
18611 (CFLAGS-err.c): Likewise.
18612 (CFLAGS-tst-tsearch.c): Likewise.
18613 (CFLAGS-msync.c): Likewise.
18614 (CFLAGS-fdatasync.c): Likewise.
18615 (CFLAGS-fsync.c): Likewise.
18616 * nptl/Makefile (CFLAGS-nptl-init.c): Likewise.
18617 (CFLAGS-unwind.c): Likewise.
18618 (CFLAGS-unwind-forcedunwind.c): Likewise.
18619 (CFLAGS-pthread_cancel.c): Likewise.
18620 (CFLAGS-pthread_setcancelstate.c): Likewise.
18621 (CFLAGS-pthread_setcanceltype.c): Likewise.
18622 (CFLAGS-cancellation.c): Likewise.
18623 (CFLAGS-libc-cancellation.c): Likewise.
18624 (CFLAGS-pthread_exit.c): Likewise.
18625 (CFLAGS-forward.c): Likewise.
18626 (CFLAGS-pthread_testcancel.c): Likewise.
18627 (CFLAGS-pthread_join.c): Likewise.
18628 (CFLAGS-pthread_timedjoin.c): Likewise.
18629 (CFLAGS-pthread_once.c): Likewise.
18630 (CFLAGS-pthread_cond_wait.c): Likewise.
18631 (CFLAGS-sem_wait.c): Likewise.
18632 (CFLAGS-sem_timedwait.c): Likewise.
18633 (CFLAGS-fcntl.c): Likewise.
18634 (CFLAGS-lockf.c): Likewise.
18635 (CFLAGS-pread.c): Likewise.
18636 (CFLAGS-pread64.c): Likewise.
18637 (CFLAGS-pwrite.c): Likewise.
18638 (CFLAGS-pwrite64.c): Likewise.
18639 (CFLAGS-wait.c): Likewise.
18640 (CFLAGS-waitpid.c): Likewise.
18641 (CFLAGS-sigwait.c): Likewise.
18642 (CFLAGS-msgrcv.c): Likewise.
18643 (CFLAGS-msgsnd.c): Likewise.
18644 (CFLAGS-tcdrain.c): Likewise.
18645 (CFLAGS-open.c): Likewise.
18646 (CFLAGS-open64.c): Likewise.
18647 (CFLAGS-pause.c): Likewise.
18648 (CFLAGS-recv.c): Likewise.
18649 (CFLAGS-send.c): Likewise.
18650 (CFLAGS-accept.c): Likewise.
18651 (CFLAGS-sendto.c): Likewise.
18652 (CFLAGS-connect.c): Likewise.
18653 (CFLAGS-recvfrom.c): Likewise.
18654 (CFLAGS-recvmsg.c): Likewise.
18655 (CFLAGS-sendmsg.c): Likewise.
18656 (CFLAGS-close.c): Likewise.
18657 (CFLAGS-read.c): Likewise.
18658 (CFLAGS-write.c): Likewise.
18659 (CFLAGS-nanosleep.c): Likewise.
18660 (CFLAGS-sigsuspend.c): Likewise.
18661 (CFLAGS-msync.c): Likewise.
18662 (CFLAGS-fdatasync.c): Likewise.
18663 (CFLAGS-fsync.c): Likewise.
18664 (CFLAGS-pt-system.c): Likewise.
18665 (CFLAGS-tst-cleanup2.c): Likewise.
18666 (CFLAGS-tst-cleanupx2.c): Likewise.
18667 (CFLAGS-flockfile.c): Likewise.
18668 (CFLAGS-ftrylockfile.c): Likewise.
18669 (CFLAGS-funlockfile.c): Likewise.
18670 (CFLAGS-tst-initializers1.c): Likewise.
18671 (CFLAGS-tst-initializers1-c89.c): Likewise.
18672 (CFLAGS-tst-initializers1-c99.c): Likewise.
18673 (CFLAGS-tst-initializers1-c11.c): Likewise.
18674 (CFLAGS-tst-initializers1-gnu89.c): Likewise.
18675 (CFLAGS-tst-initializers1-gnu99.c): Likewise.
18676 (CFLAGS-tst-initializers1-gnu11.c): Likewise.
18677 * nscd/Makefile (CFLAGS-nscd_getpw_r.c): Likewise.
18678 (CFLAGS-nscd_getgr_r.c): Likewise.
18679 (CFLAGS-nscd_gethst_r.c): Likewise.
18680 (CFLAGS-nscd_getai.c): Likewise.
18681 (CFLAGS-nscd_initgroups.c): Likewise.
18682 * posix/Makefile (CFLAGS-getaddrinfo.c): Likewise.
18683 (CFLAGS-pause.c): Likewise.
18684 (CFLAGS-pread.c): Likewise.
18685 (CFLAGS-pread64.c): Likewise.
18686 (CFLAGS-pwrite.c): Likewise.
18687 (CFLAGS-pwrite64.c): Likewise.
18688 (CFLAGS-sleep.c): Likewise.
18689 (CFLAGS-wait.c): Likewise.
18690 (CFLAGS-waitid.c): Likewise.
18691 (CFLAGS-waitpid.c): Likewise.
18692 (CFLAGS-getopt.c): Likewise.
18693 (CFLAGS-wordexp.c): Likewise.
18694 (CFLAGS-sysconf.c): Likewise.
18695 (CFLAGS-pathconf.c): Likewise.
18696 (CFLAGS-fpathconf.c): Likewise.
18697 (CFLAGS-spawn.c): Likewise.
18698 (CFLAGS-spawnp.c): Likewise.
18699 (CFLAGS-spawni.c): Likewise.
18700 (CFLAGS-glob.c): Likewise.
18701 (CFLAGS-glob64.c): Likewise.
18702 (CFLAGS-getconf.c): Likewise.
18703 (CFLAGS-nanosleep.c): Likewise.
18704 * pwd/Makefile (CFLAGS-getpwent_r.c): Likewise.
18705 (CFLAGS-getpwent.c): Likewise.
18706 (CFLAGS-getpw.c): Likewise.
18707 (CFLAGS-fgetpwent_r.c): Likewise.
18708 * resolv/Makefile (CFLAGS-res_hconf.c): Likewise.
18709 * rt/Makefile (CFLAGS-aio_suspend.c): Likewise.
18710 (CFLAGS-mq_timedreceive.c): Likewise.
18711 (CFLAGS-mq_timedsend.c): Likewise.
18712 (CFLAGS-clock_nanosleep.c): Likewise.
18713 (CFLAGS-librt-cancellation.c): Likewise.
18714 * shadow/Makefile (CFLAGS-getspent_r.c): Likewise.
18715 (CFLAGS-getspent.c): Likewise.
18716 (CFLAGS-fgetspent.c): Likewise.
18717 (CFLAGS-fgetspent_r.c): Likewise.
18718 (CFLAGS-putspent.c): Likewise.
18719 (CFLAGS-getspnam.c): Likewise.
18720 (CFLAGS-getspnam_r.c): Likewise.
18721 * signal/Makefile (CFLAGS-sigpause.c): Likewise.
18722 (CFLAGS-sigsuspend.c): Likewise.
18723 (CFLAGS-sigtimedwait.c): Likewise.
18724 (CFLAGS-sigwait.c): Likewise.
18725 (CFLAGS-sigwaitinfo.c): Likewise.
18726 (CFLAGS-sigreturn.c): Likewise.
18727 * stdio-common/Makefile (CFLAGS-vfprintf.c): Likewise.
18728 (CFLAGS-vfwprintf.c): Likewise.
18729 (CFLAGS-tmpfile.c): Likewise.
18730 (CFLAGS-tmpfile64.c): Likewise.
18731 (CFLAGS-tempname.c): Likewise.
18732 (CFLAGS-psignal.c): Likewise.
18733 (CFLAGS-vprintf.c): Likewise.
18734 (CFLAGS-cuserid.c): Likewise.
18735 (CFLAGS-errlist.c): Likewise.
18736 (CFLAGS-siglist.c): Likewise.
18737 (CFLAGS-scanf15.c): Likewise.
18738 (CFLAGS-scanf17.c): Likewise.
18739 * stdlib/Makefile (CFLAGS-bsearch.c): Likewise.
18740 (CFLAGS-msort.c): Likewise.
18741 (CFLAGS-qsort.c): Likewise.
18742 (CFLAGS-system.c): Likewise.
18743 (CFLAGS-fmtmsg.c): Likewise.
18744 (CFLAGS-strfmon.c): Likewise.
18745 (CFLAGS-strfmon_l.c): Likewise.
18746 (CFLAGS-strfromd.c): Likewise.
18747 (CFLAGS-strfromf.c): Likewise.
18748 (CFLAGS-strfroml.c): Likewise.
18749 (CFLAGS-tst-bsearch.c): Likewise.
18750 (CFLAGS-tst-qsort.c): Likewise.
18751 (CFLAGS-tst-makecontext2.c): Likewise.
18752 * sunrpc/Makefile (CFLAGS-xbootparam_prot.c): Likewise.
18753 (CFLAGS-xnlm_prot.c): Likewise.
18754 (CFLAGS-xrstat.c): Likewise.
18755 (CFLAGS-xyppasswd.c): Likewise.
18756 (CFLAGS-xklm_prot.c): Likewise.
18757 (CFLAGS-xrex.c): Likewise.
18758 (CFLAGS-xsm_inter.c): Likewise.
18759 (CFLAGS-xmount.c): Likewise.
18760 (CFLAGS-xrusers.c): Likewise.
18761 (CFLAGS-xspray.c): Likewise.
18762 (CFLAGS-xnfs_prot.c): Likewise.
18763 (CFLAGS-xrquota.c): Likewise.
18764 (CFLAGS-xkey_prot.c): Likewise.
18765 (CFLAGS-auth_unix.c): Likewise.
18766 (CFLAGS-key_call.c): Likewise.
18767 (CFLAGS-pmap_rmt.c): Likewise.
18768 (CFLAGS-clnt_perr.c): Likewise.
18769 (CFLAGS-openchild.c): Likewise.
18770 * sysvipc/Makefile (CFLAGS-msgrcv.c): Likewise.
18771 (CFLAGS-msgsnd.c): Likewise.
18772 * termios/Makefile (CFLAGS-tcdrain.c): Likewise.
18773 * time/Makefile (CFLAGS-tzfile.c): Likewise.
18774 (CFLAGS-tzset.c): Likewise.
18775 (CFLAGS-getdate.c): Likewise.
18776 (CFLAGS-test_time.c): Likewise.
18777 (CPPFLAGS-tst-tzname.c): Likewise.
18778 * timezone/Makefile (CFLAGS-zdump.c): Likewise.
18779 (CFLAGS-zic.c): Likewise.
18780 * wcsmbs/Makefile (CFLAGS-wcwidth.c): Likewise.
18781 (CFLAGS-wcswidth.c): Likewise.
18782 (CFLAGS-wcstol.c): Likewise.
18783 (CFLAGS-wcstoul.c): Likewise.
18784 (CFLAGS-wcstoll.c): Likewise.
18785 (CFLAGS-wcstoull.c): Likewise.
18786 (CFLAGS-wcstod.c): Likewise.
18787 (CFLAGS-wcstold.c): Likewise.
18788 (CFLAGS-wcstof128.c): Likewise.
18789 (CFLAGS-wcstof.c): Likewise.
18790 (CFLAGS-wcstol_l.c): Likewise.
18791 (CFLAGS-wcstoul_l.c): Likewise.
18792 (CFLAGS-wcstoll_l.c): Likewise.
18793 (CFLAGS-wcstoull_l.c): Likewise.
18794 (CFLAGS-wcstod_l.c): Likewise.
18795 (CFLAGS-wcstold_l.c): Likewise.
18796 (CFLAGS-wcstof128_l.c): Likewise.
18797 (CFLAGS-wcstof_l.c): Likewise.
18798 (CPPFLAGS-tst-wchar-h.c): Likewise.
18799 (CPPFLAGS-wcstold_l.c): Likewise.
18800
18801 2017-12-11 Paul A. Clarke <pc@us.ibm.com>
18802
18803 * sysdeps/ieee754/flt-32/s_cosf.c: New implementation.
18804
18805 2017-12-11 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
18806 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
18807
18808 * manual/tunables.texi (Hardware Capability Tunables): Document
18809 glibc.tune.cached_memopt.
18810 * sysdeps/powerpc/cpu-features.c: New file.
18811 * sysdeps/powerpc/cpu-features.h: New file.
18812 * sysdeps/powerpc/dl-procinfo.c [!IS_IN(ldconfig)]: Add
18813 _dl_powerpc_cpu_features.
18814 * sysdeps/powerpc/dl-tunables.list: New file.
18815 * sysdeps/powerpc/ldsodefs.h: Include cpu-features.h.
18816 * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h
18817 (INIT_ARCH): Initialize use_aligned_memopt.
18818 * sysdeps/powerpc/powerpc64/dl-machine.h [defined(SHARED &&
18819 IS_IN(rtld))]: Restrict dl_platform_init availability and
18820 initialize CPU features used by tunables.
18821 * sysdeps/powerpc/powerpc64/multiarch/Makefile (sysdep_routines):
18822 Add memcpy-power8-cached.
18823 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Add
18824 __memcpy_power8_cached.
18825 * sysdeps/powerpc/powerpc64/multiarch/memcpy.c: Likewise.
18826 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power8-cached.S:
18827 New file.
18828
18829 2017-12-11 H.J. Lu <hongjiu.lu@intel.com>
18830
18831 * string/Makefile (CFLAGS-inl-tester.c): Replace = with +=.
18832 (CFLAGS-noinl-tester.c): Likewise.
18833 (CFLAGS-tst-strlen.c): Likewise.
18834 (CFLAGS-stratcliff.c): Likewise.
18835 (CFLAGS-test-ffs.c): Likewise.
18836 (CFLAGS-tst-inlcall.c): Likewise.
18837 (CFLAGS-tst-xbzero-opt.c): Likewise.
18838 (CFLAGS-memcpy.c): Likewise.
18839 (CFLAGS-wordcopy.c): Likewise.
18840
18841 2017-12-11 Stefan Liebler <stli@linux.vnet.ibm.com>
18842
18843 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
18844 Store r15 on stack and add cfi rule.
18845 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
18846 Likewise.
18847
18848 2017-12-10 Aurelien Jarno <aurelien@aurel32.net>
18849
18850 [BZ #22577]
18851 * elf/rtld.c (init_tls): Add missing new line to the _dl_fatal_printf
18852 call.
18853
18854 2017-12-07 H.J. Lu <hongjiu.lu@intel.com>
18855
18856 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
18857 Add s_sinf-sse2 and s_sinf-fma.
18858 (CFLAGS-s_sinf-fma.c): New.
18859 * sysdeps/x86_64/fpu/multiarch/s_sinf-fma.c: New file.
18860 * sysdeps/x86_64/fpu/multiarch/s_sinf-sse2.c: Likewise.
18861 * sysdeps/x86_64/fpu/multiarch/s_sinf.c: Likewise.
18862
18863 2017-12-07 H.J. Lu <hongjiu.lu@intel.com>
18864
18865 * sysdeps/x86_64/fpu/s_sinf.S: Removed.
18866
18867 2017-12-07 Joseph Myers <joseph@codesourcery.com>
18868
18869 [BZ #22568]
18870 * math/s_ctan_template.c (M_DECL_FUNC (__ctan)): Set imaginary
18871 part of result to imaginary part of argument if it is zero and the
18872 real part of the argument is not finite.
18873 * math/s_ctanh_template.c (M_DECL_FUNC (__ctanh)): Set real part
18874 of result to real part of argument if it is zero and the imaginary
18875 part of the argument is not finite.
18876
18877 2017-12-07 Mike FABIAN <mfabian@redhat.com>
18878
18879 [BZ #22524]
18880 * localedata/Makefile: Add lt_LT.UTF-8 to test-input
18881 and to the list of locales to be built for testing.
18882 * localedata/lt_LT.UTF-8.in: New file for testing the collation.
18883 * localedata/locales/lt_LT (LC_COLLATE): Use “copy "iso14651_t1"”
18884 and build the collation rules upon that.
18885
18886 2017-12-07 Joseph Myers <joseph@codesourcery.com>
18887
18888 * bits/floatn-common.h (__HAVE_FLOAT32): Define to 1.
18889 * manual/math.texi (Mathematics): Document support for _Float32.
18890 * math/Makefile (test-types): Add float32.
18891 * math/Versions (GLIBC_2.27): Add _Float32 functions.
18892 * stdlib/Versions (GLIBC_2.27): Likewise.
18893 * wcsmbs/Versions (GLIBC_2.27): Likewise.
18894 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
18895 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
18896 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
18897 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
18898 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
18899 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
18900 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
18901 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
18902 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
18903 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
18904 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
18905 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
18906 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
18907 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
18908 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
18909 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
18910 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
18911 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
18912 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
18913 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
18914 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
18915 Likewise.
18916 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
18917 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
18918 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
18919 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
18920 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
18921 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
18922 Likewise.
18923 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
18924 Likewise.
18925 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
18926 Likewise.
18927 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
18928 Likewise.
18929
18930 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
18931 Likewise.
18932 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
18933 Likewise.
18934 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
18935 Likewise.
18936 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
18937 Likewise.
18938 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
18939 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
18940 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
18941 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
18942 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
18943 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
18944 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
18945 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
18946 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
18947 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
18948 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
18949 Likewise.
18950 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
18951 Likewise.
18952 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
18953 Likewise.
18954 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
18955 Likewise.
18956 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
18957 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
18958 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
18959 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
18960 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
18961 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
18962 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
18963 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
18964
18965 2017-12-06 Joseph Myers <joseph@codesourcery.com>
18966
18967 * stdlib/strtof.c: Include <bits/floatn.h>
18968 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strtof32): Define
18969 and later undefine as macro. Define as weak alias if
18970 [!USE_WIDE_CHAR].
18971 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (wcstof32): Define
18972 and later undefine as macro. Define as weak alias if
18973 [USE_WIDE_CHAR].
18974 * stdlib/strtof_l.c: Include <bits/floatn.h>
18975 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strtof32_l): Define
18976 and later undefine as macro. Define as weak alias if
18977 [!USE_WIDE_CHAR].
18978 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (wcstof32_l): Define
18979 and later undefine as macro. Define as weak alias if
18980 [USE_WIDE_CHAR].
18981
18982 * stdlib/strfromf.c: Include <bits/floatn.h>.
18983 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strfromf32): Define
18984 and later undefine as macro and define as weak alias.
18985
18986 * math/test-float32.h: New file.
18987
18988 * sysdeps/generic/libm-alias-float.h: Include <bits/floatn.h>.
18989 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32]
18990 (libm_alias_float_other_r): Create f32 alias.
18991 (libm_alias_float_r): Use semicolon before call to
18992 libm_alias_float_other_r.
18993
18994 * sysdeps/ia64/fpu/e_exp2f.S (__exp2f): Use exp2 not __exp2 as
18995 second argument to libm_alias_float_other.
18996 * sysdeps/ia64/fpu/e_log2f.S (__log2f): Use log2 not __log2 as
18997 second argument to libm_alias_float_other.
18998 * sysdeps/ia64/fpu/e_powf.S (__powf): Use pow not __pow as second
18999 argument to libm_alias_float_other.
19000
19001 [BZ #22561]
19002 * math/s_cacosh_template.c (M_DECL_FUNC (__cacosh)): Use pi/2 for
19003 real part of result for argument 0 + i * NaN.
19004 * math/libm-test-cacosh.inc (cacosh_test_data): Update expected
19005 results for tests of 0 + i * NaN.
19006
19007 2017-12-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
19008
19009 * sysdeps/alpha/fpu/libm-test-ulps: Update.
19010
19011 2017-12-06 David S. Miller <davem@davemloft.net>
19012
19013 * sysdeps/sparc/fpu/libm-test-ulps: Update
19014 exp_{downward,towardzero,upward} ulps.
19015
19016 2017-12-06 Joseph Myers <joseph@codesourcery.com>
19017
19018 * sysdeps/ieee754/ldbl-96/e_j1l.c (qone): Don't make local
19019 variables static.
19020
19021 * sysdeps/ieee754/ldbl-128/e_j0l.c (Y0_2N): Make const.
19022 (Y0_2D): Likewise.
19023 * sysdeps/ieee754/ldbl-128/e_j1l.c (Y0_2N): Likewise.
19024 (Y0_2D): Likewise.
19025 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c (Y0_2N): Likewise.
19026 (Y0_2D): Likewise.
19027 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c (Y0_2N): Likewise.
19028 (Y0_2D): Likewise.
19029
19030 2017-12-06 Mike FABIAN <mfabian@redhat.com>
19031
19032 [BZ #22515]
19033 * localedata/Makefile: Add hsb_DE.UTF-8 to test-input
19034 and to the list of locales to be built for testing.
19035 * localedata/hsb_DE.UTF-8.in: New file for testing the collation.
19036 * localedata/locales/hsb_DE (LC_COLLATE): Use “copy "iso14651_t1"”
19037 and build the collation rules upon that.
19038
19039 2017-12-06 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
19040
19041 * NEWS: Add sinf to list of optimized functions.
19042
19043 2017-12-06 Joseph Myers <joseph@codesourcery.com>
19044
19045 * bits/floatn-common.h (__HAVE_FLOAT64): Define to 1.
19046 (__HAVE_FLOAT32X): Likewise.
19047 * manual/math.texi (Mathematics): Document support for _Float64
19048 and _Float32x.
19049 * math/Makefile (test-types): Add float64 and float32x.
19050 * math/Versions (GLIBC_2.27): Add _Float64 and _Float32x
19051 functions.
19052 * stdlib/Versions (GLIBC_2.27): Likewise.
19053 * wcsmbs/Versions (GLIBC_2.27): Likewise.
19054 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
19055 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
19056 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
19057 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
19058 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
19059 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
19060 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
19061 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
19062 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
19063 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
19064 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
19065 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
19066 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
19067 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
19068 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
19069 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
19070 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
19071 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
19072 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
19073 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
19074 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
19075 Likewise.
19076 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
19077 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
19078 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
19079 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
19080 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
19081 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
19082 Likewise.
19083 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
19084 Likewise.
19085 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
19086 Likewise.
19087 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
19088 Likewise.
19089 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
19090 Likewise.
19091 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
19092 Likewise.
19093 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
19094 Likewise.
19095 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
19096 Likewise.
19097 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
19098 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
19099 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
19100 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
19101 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
19102 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
19103 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
19104 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
19105 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
19106 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
19107 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
19108 Likewise.
19109 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
19110 Likewise.
19111 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
19112 Likewise.
19113 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
19114 Likewise.
19115 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
19116 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
19117 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
19118 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
19119 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
19120 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
19121 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
19122 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
19123
19124 2017-12-05 Joseph Myers <joseph@codesourcery.com>
19125
19126 * bits/floatn-common.h: Include <bits/long-double.h>.
19127 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
19128 && __NO_LONG_DOUBLE_MATH] (__f64): Use suffix 'l'.
19129 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
19130 && __NO_LONG_DOUBLE_MATH] (__CFLOAT64): Use _Complex long double.
19131 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
19132 && __NO_LONG_DOUBLE_MATH] (_Float64): Use long double.
19133 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
19134 (__builtin_huge_valf64): Use __builtin_huge_vall.
19135 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
19136 (__builtin_inff64): Use __builtin_infl.
19137 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
19138 (__builtin_nanf64): Use __builtin_nanl.
19139 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
19140 (__builtin_nansf64): Use __builtin_nansl.
19141
19142 2017-12-05 Rogerio A. Cardoso <rcardoso@linux.vnet.ibm.com>
19143 Paul E. Murphy <murphyp@linux.vnet.ibm.com>
19144 Carlos O'Donnell <carlos@redhat.com>
19145
19146 * elf/dl-tunables.list: Add elision parameters.
19147 * manual/tunables.texi: Add entries about elision tunable.
19148 * sysdeps/unix/sysv/linux/powerpc/elision-conf.c:
19149 Add callback functions to dynamically enable/disable elision.
19150 Add multiple callbacks functions to set elision parameters.
19151 Deleted __libc_enable_secure check.
19152 * sysdeps/unix/sysv/linux/s390/elision-conf.c: Likewise.
19153 * sysdeps/unix/sysv/linux/x86/elision-conf.c: Likewise.
19154 * configure: Regenerated.
19155 * configure.ac: Option enable_lock_elision was deleted.
19156 * config.h.in: ENABLE_LOCK_ELISION flag was deleted.
19157 * config.make.in: Remove references to enable_lock_elision.
19158 * manual/install.texi: Elision configure option was removed.
19159 * INSTALL: Regenerated to remove enable_lock_elision.
19160 * nptl/Makefile:
19161 Disable elision so it can verify error case for destroying a mutex.
19162 * sysdeps/powerpc/nptl/elide.h:
19163 Cleanup ENABLE_LOCK_ELISION check.
19164 Deleted macros for the case when ENABLE_LOCK_ELISION was not defined.
19165 * sysdeps/s390/configure: Regenerated.
19166 * sysdeps/s390/configure.ac: Remove references to enable_lock_elision..
19167 * nptl/tst-mutex8.c:
19168 Deleted all #ifndef ENABLE_LOCK_ELISION from the test.
19169 * sysdeps/powerpc/powerpc32/sysdep.h:
19170 Deleted all ENABLE_LOCK_ELISION checks.
19171 * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
19172 * sysdeps/powerpc/sysdep.h: Likewise.
19173 * sysdeps/s390/nptl/bits/pthreadtypes-arch.h: Likewise.
19174 * sysdeps/unix/sysv/linux/powerpc/force-elision.h: Likewise.
19175 * sysdeps/unix/sysv/linux/s390/elision-conf.h: Likewise.
19176 * sysdeps/unix/sysv/linux/s390/force-elision.h: Likewise.
19177 * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
19178 * sysdeps/unix/sysv/linux/s390/Makefile: Remove references to
19179 enable-lock-elision.
19180
19181 2017-12-05 Joseph Myers <joseph@codesourcery.com>
19182
19183 * stdlib/strtod.c: Include <bits/floatn.h>.
19184 (BUILD_DOUBLE): New macro.
19185 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
19186 (strtof64): Define and later undefine as macro. Define as weak
19187 alias if [!USE_WIDE_CHAR].
19188 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
19189 (wcstof64): Define and later undefine as macro. Define as weak
19190 alias if [USE_WIDE_CHAR].
19191 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
19192 (strtof32x): Define and later undefine as macro. Define as weak
19193 alias if [!USE_WIDE_CHAR].
19194 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
19195 (wcstof32x): Define and later undefine as macro. Define as weak
19196 alias if [USE_WIDE_CHAR].
19197 * stdlib/strtod_l.c: Include <bits/floatn.h>.
19198 (BUILD_DOUBLE): New macro.
19199 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
19200 (strtof64_l): Define and later undefine as macro. Define as weak
19201 alias if [!USE_WIDE_CHAR].
19202 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
19203 (wcstof64_l): Define and later undefine as macro. Define as weak
19204 alias if [USE_WIDE_CHAR].
19205 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
19206 (strtof32x_l): Define and later undefine as macro. Define as weak
19207 alias if [!USE_WIDE_CHAR].
19208 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
19209 (wcstof32x_l): Define and later undefine as macro. Define as weak
19210 alias if [USE_WIDE_CHAR].
19211
19212 2017-12-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
19213
19214 * sysdeps/ieee754/flt-32/s_sinf.c (ones): Define as double.
19215 (reduced): Use ones as double instead of integer.
19216
19217 2017-12-05 Szabolcs Nagy <szabolcs.nagy@arm.com>
19218
19219 * sysdeps/ieee754/flt-32/s_sinf.c (sinf): Use isless.
19220
19221 2017-12-05 Joseph Myers <joseph@codesourcery.com>
19222
19223 * stdlib/strfromd.c: Include <bits/floatn.h>.
19224 [__HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64] (strfromf64): Define
19225 and later undefine as macro and define as weak alias.
19226 [__HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X] (strfromf32x):
19227 Likewise.
19228
19229 * math/test-float32x.h: New file.
19230 * math/test-float64.h: Likewise.
19231
19232 * sysdeps/generic/libm-alias-double.h: Include <bits/floatn.h>.
19233 (libm_alias_double_other_r_f64): New macro.
19234 (libm_alias_double_other_r_f32x): Likewise.
19235 (libm_alias_double_other_r): Use libm_alias_double_other_r_f64 and
19236 libm_alias_double_other_r_f32x.
19237 (libm_alias_double_r): Use semicolon before call to
19238 libm_alias_double_other_r.
19239 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h: Include
19240 <bits/floatn.h>.
19241 (libm_alias_double_other_r_f64): New macro.
19242 (libm_alias_double_other_r_f32x): Likewise.
19243 (libm_alias_double_other_r): Use libm_alias_double_other_r_f64 and
19244 libm_alias_double_other_r_f32x.
19245
19246 2017-12-05 H.J. Lu <hongjiu.lu@intel.com>
19247
19248 * sysdeps/ieee754/flt-32/s_sinf.c (reduced): Replace long with
19249 int.
19250 (SINF_FUNC): Likewise. Replace floor with simple casts.
19251
19252 2017-12-05 Mike FABIAN <mfabian@redhat.com>
19253
19254 [BZ #22517]
19255 * localedata/Makefile: Add et_EE.UTF-8 to test-input
19256 and to the list of locales to be built for testing.
19257 * localedata/et_EE.UTF-8.in: New file for testing the collation.
19258 * localedata/locales/et_EE (LC_COLLATE): Use “copy "iso14651_t1"”
19259 and build the collation rules upon that.
19260
19261 2017-12-05 Chris Metcalf <cmetcalf@mellanox.com>
19262
19263 * sysdeps/tile/tilegx/string-endian.h (VECOP): Provide working
19264 replacements for __insn_xxx builtins for v1cmpeq, v1cmpltu,
19265 v1cmpne, v1add, v1shru, v1shl (register and immediate versions).
19266 * sysdeps/tile/tilegx/memchr.c (__memchr): Use VECOP function
19267 instead of __insn__xxx.
19268 * sysdeps/tile/tilegx/rawmemchr.c (__rawmemchr): Likewise.
19269 * sysdeps/tile/tilegx/strstr.c (strcasechr): Likewise.
19270 * sysdeps/tile/tilegx/strrchr.c (strrchr): Likewise.
19271 * sysdeps/tile/tilegx/strlen.c (strlen): Likewise.
19272 * sysdeps/tile/tilegx/strchrnul.c (__strchrnul): Likewise.
19273 * sysdeps/tile/tilegx/strchr.c (strchr): Likewise.
19274
19275 2017-12-05 Florian Weimer <fweimer@redhat.com>
19276
19277 Linux: Implement interfaces for memory protection keys
19278 * support/Makefile (libsupport-routines): Add xraise, xsigaction,
19279 xsignal, xsysconf.
19280 * support/xsignal.h (xraise, xsignal, xsigaction): Declare.
19281 * support/xunistd.h (xsysconf): Declare.
19282 * support/xraise.c: New file.
19283 * support/xsigaction.c: Likewise.
19284 * support/xsignal.c: Likewise.
19285 * support/xsysconf.c: Likewise.
19286 * sysdeps/unix/sysv/linux/Makefile [misc] (routines): Add
19287 pkey_set, pkey_get, pkey_mprotect.
19288 [misc] (tests): Add tst-pkey.
19289 (tst-pkey): Link with -lpthread.
19290 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Add pkey_alloc,
19291 pkey_free, pkey_set, pkey_get, pkey_mprotect.
19292 * sysdeps/unix/sysv/linux/bits/mman-linux.h (PKEY_DISABLE_ACCESS)
19293 (PKEY_DISABLE_WRITE): Define.
19294 (pkey_alloc, pkey_free, pkey_set, pkey_get, pkey_mprotect):
19295 Declare.
19296 * sysdeps/unix/sysv/linux/bits/siginfo-consts.h (SEGV_BNDERR)
19297 (SEGV_PKUERR): Add.
19298 * sysdeps/unix/sysv/linux/pkey_get.c: New file.
19299 * sysdeps/unix/sysv/linux/pkey_set.c: Likewise.
19300 * sysdeps/unix/sysv/linux/pkey_mprotect.c: Likewise.
19301 * sysdeps/unix/sysv/linux/syscalls.list (pkey_alloc, pkey_free):
19302 Add.
19303 * sysdeps/unix/sysv/linux/tst-pkey.c: New file.
19304 * sysdeps/unix/sysv/linux/x86/arch-pkey.h: Likewise.
19305 * sysdeps/unix/sysv/linux/x86/pkey_get.c: Likewise.
19306 * sysdeps/unix/sysv/linux/x86/pkey_set.c: Likewise.
19307 * sysdeps/unix/sysv/linux/**.abilist: Update.
19308
19309 2017-12-05 Florian Weimer <fweimer@redhat.com>
19310
19311 * support/tst-test_compare.c (subprocess): Use long long instead
19312 of long argument for consistent type width across 32-bit and
19313 64-bit architectures.
19314 (do_test): Adjust expected output.
19315
19316 2017-12-05 Joseph Myers <joseph@codesourcery.com>
19317
19318 * sysdeps/powerpc/fpu/s_cosf.c: Include <libm-alias-float.h>.
19319 (cosf): Define using libm_alias_float.
19320 * sysdeps/powerpc/fpu/s_fabs.S: Include <libm-alias-float.h>.
19321 (fabsf): Define using libm_alias_float.
19322 * sysdeps/powerpc/fpu/s_fmaf.S: Include <libm-alias-float.h>.
19323 (fmaf): Define using libm_alias_float.
19324 * sysdeps/powerpc/fpu/s_rintf.c: Include <libm-alias-float.h>.
19325 (rintf): Define using libm_alias_float.
19326 * sysdeps/powerpc/fpu/s_sinf.c: Include <libm-alias-float.h>.
19327 (sinf): Define using libm_alias_float.
19328 * sysdeps/powerpc/power5+/fpu/s_modff.c: Include
19329 <libm-alias-float.h>.
19330 (modff): Define using libm_alias_float.
19331 * sysdeps/powerpc/power7/fpu/s_logbf.c: Include
19332 <libm-alias-float.h>.
19333 (logbf): Define using libm_alias_float.
19334 * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S: Include
19335 <libm-alias-float.h>.
19336 (ceilf): Define using libm_alias_float.
19337 * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Include
19338 <libm-alias-float.h>.
19339 (copysignf): Define using libm_alias_float.
19340 * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Include
19341 <libm-alias-float.h>.
19342 (floorf): Define using libm_alias_float.
19343 * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Include
19344 <libm-alias-float.h>.
19345 (llrintf): Define using libm_alias_float.
19346 * sysdeps/powerpc/powerpc32/fpu/s_llroundf.c: Include
19347 <libm-alias-float.h>.
19348 (llroundf): Define using libm_alias_float.
19349 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Include
19350 <libm-alias-float.h>.
19351 (lrintf): Define using libm_alias_float.
19352 * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Include
19353 <libm-alias-float.h>.
19354 (lroundf): Define using libm_alias_float.
19355 * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: Include
19356 <libm-alias-float.h>.
19357 (nearbyintf): Define using libm_alias_float.
19358 * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Include
19359 <libm-alias-float.h>.
19360 (rintf): Define using libm_alias_float.
19361 * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Include
19362 <libm-alias-float.h>.
19363 (roundf): Define using libm_alias_float.
19364 * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Include
19365 <libm-alias-float.h>.
19366 (truncf): Define using libm_alias_float.
19367 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c:
19368 Include <libm-alias-float.h>.
19369 (ceilf): Define using libm_alias_float.
19370 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c:
19371 Include <libm-alias-float.h>.
19372 (copysignf): Define using libm_alias_float.
19373 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c:
19374 Include <libm-alias-float.h>.
19375 (floorf): Define using libm_alias_float.
19376 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf.c:
19377 Include <libm-alias-float.h>.
19378 (llrintf): Define using libm_alias_float.
19379 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llroundf.c:
19380 Include <libm-alias-float.h>.
19381 (llroundf): Define using libm_alias_float.
19382 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf.c:
19383 Include <libm-alias-float.h>.
19384 (logbf): Define using libm_alias_float.
19385 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrintf.c:
19386 Include <libm-alias-float.h>.
19387 (lrintf): Define using libm_alias_float.
19388 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lroundf.c:
19389 Include <libm-alias-float.h>.
19390 (lroundf): Define using libm_alias_float.
19391 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff.c:
19392 Include <libm-alias-float.h>.
19393 (modff): Define using libm_alias_float.
19394 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c:
19395 Include <libm-alias-float.h>.
19396 (roundf): Define using libm_alias_float.
19397 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c:
19398 Include <libm-alias-float.h>.
19399 (truncf): Define using libm_alias_float.
19400 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Include
19401 <libm-alias-float.h>.
19402 (llrintf): Define using libm_alias_float.
19403 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Include
19404 <libm-alias-float.h>.
19405 (llroundf): Define using libm_alias_float.
19406 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: Include
19407 <libm-alias-float.h>.
19408 (ceilf): Define using libm_alias_float.
19409 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: Include
19410 <libm-alias-float.h>.
19411 (floorf): Define using libm_alias_float.
19412 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Include
19413 <libm-alias-float.h>.
19414 (llroundf): Define using libm_alias_float.
19415 * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Include
19416 <libm-alias-float.h>.
19417 (lroundf): Define using libm_alias_float.
19418 * sysdeps/powerpc/powerpc32/power5+/fpu/s_roundf.S: Include
19419 <libm-alias-float.h>.
19420 (roundf): Define using libm_alias_float.
19421 * sysdeps/powerpc/powerpc32/power5+/fpu/s_truncf.S: Include
19422 <libm-alias-float.h>.
19423 (truncf): Define using libm_alias_float.
19424 * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Include
19425 <libm-alias-float.h>.
19426 (copysignf): Define using libm_alias_float.
19427 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Include
19428 <libm-alias-float.h>.
19429 (llrintf): Define using libm_alias_float.
19430 * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Include
19431 <libm-alias-float.h>.
19432 (llroundf): Define using libm_alias_float.
19433 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: Include
19434 <libm-alias-float.h>.
19435 (lrintf): Define using libm_alias_float.
19436 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Include
19437 <libm-alias-float.h>.
19438 (lroundf): Define using libm_alias_float.
19439 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Include
19440 <libm-alias-float.h>.
19441 (ceilf): Define using libm_alias_float.
19442 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: Include
19443 <libm-alias-float.h>.
19444 (copysignf): Define using libm_alias_float.
19445 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf.c: Include
19446 <libm-alias-float.h>.
19447 (cosf): Define using libm_alias_float.
19448 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Include
19449 <libm-alias-float.h>.
19450 (floorf): Define using libm_alias_float.
19451 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrintf.c: Include
19452 <libm-alias-float.h>.
19453 (llrintf): Define using libm_alias_float.
19454 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf.c: Include
19455 <libm-alias-float.h>.
19456 (llroundf): Define using libm_alias_float.
19457 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf.c: Include
19458 <libm-alias-float.h>.
19459 (logbf): Define using libm_alias_float.
19460 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff.c: Include
19461 <libm-alias-float.h>.
19462 (modff): Define using libm_alias_float.
19463 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Include
19464 <libm-alias-float.h>.
19465 (roundf): Define using libm_alias_float.
19466 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf.c: Include
19467 <libm-alias-float.h>.
19468 (sinf): Define using libm_alias_float.
19469 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Include
19470 <libm-alias-float.h>.
19471 (truncf): Define using libm_alias_float.
19472 * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Include
19473 <libm-alias-float.h>.
19474 (ceilf): Define using libm_alias_float.
19475 * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Include
19476 <libm-alias-float.h>.
19477 (copysignf): Define using libm_alias_float.
19478 * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Include
19479 <libm-alias-float.h>.
19480 (floorf): Define using libm_alias_float.
19481 * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Include
19482 <libm-alias-float.h>.
19483 (llrintf): Define using libm_alias_float.
19484 * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S: Include
19485 <libm-alias-float.h>.
19486 (llroundf): Define using libm_alias_float.
19487 * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: Include
19488 <libm-alias-float.h>.
19489 (nearbyintf): Define using libm_alias_float.
19490 * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Include
19491 <libm-alias-float.h>.
19492 (rintf): Define using libm_alias_float.
19493 * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Include
19494 <libm-alias-float.h>.
19495 (roundf): Define using libm_alias_float.
19496 * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Include
19497 <libm-alias-float.h>.
19498 (truncf): Define using libm_alias_float.
19499 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: Include
19500 <libm-alias-float.h>.
19501 (ceilf): Define using libm_alias_float.
19502 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: Include
19503 <libm-alias-float.h>.
19504 (floorf): Define using libm_alias_float.
19505 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Include
19506 <libm-alias-float.h>.
19507 (llroundf): Define using libm_alias_float.
19508 * sysdeps/powerpc/powerpc64/power5+/fpu/s_roundf.S: Include
19509 <libm-alias-float.h>.
19510 (roundf): Define using libm_alias_float.
19511 * sysdeps/powerpc/powerpc64/power5+/fpu/s_truncf.S: Include
19512 <libm-alias-float.h>.
19513 (truncf): Define using libm_alias_float.
19514 * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Include
19515 <libm-alias-float.h>.
19516 (copysignf): Define using libm_alias_float.
19517 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Include
19518 <libm-alias-float.h>.
19519 (llrintf): Define using libm_alias_float.
19520 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Include
19521 <libm-alias-float.h>.
19522 (llroundf): Define using libm_alias_float.
19523 * sysdeps/powerpc/powerpc64/power8/fpu/s_cosf.S: Include
19524 <libm-alias-float.h>.
19525 (cosf): Define using libm_alias_float.
19526 * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: Include
19527 <libm-alias-float.h>.
19528 (llrintf): Define using libm_alias_float.
19529 * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Include
19530 <libm-alias-float.h>.
19531 (llroundf): Define using libm_alias_float.
19532 * sysdeps/powerpc/powerpc64/power8/fpu/s_sinf.S: Include
19533 <libm-alias-float.h>.
19534 (sinf): Define using libm_alias_float.
19535
19536 2017-12-04 Florian Weimer <fweimer@redhat.com>
19537
19538 * support/check.h (TEST_COMPARE): Define.
19539 (support_test_compare_failure): Declare.
19540 * support/Makefile (libsupport-routines): Add
19541 support_test_compare_failure.
19542 (tests): Add tst-test_compare.
19543 * support /support_test_compare_failure.c: New file.
19544 * support/tst-test_compare.c: Likewise.
19545
19546 2017-12-04 Mike FABIAN <mfabian@redhat.com>
19547
19548 [BZ #22527]
19549 * localedata/locales/tr_TR (LC_COLLATE): Base collation rules
19550 on iso14651_t1. A test file localedata/tr_TR.UTF-8.in is already
19551 available, this rewrite of the collation rules does reproduce
19552 the test file in the same order.
19553
19554 2017-12-04 Mike FABIAN <mfabian@redhat.com>
19555
19556 [BZ #10580]
19557 * localedata/locales/hr_HR (LC_TIME): Use two letters for the
19558 digraphs in the month and day names. Using single code points for
19559 digraphs is deprecated. While there are dedicated Unicode
19560 codepoints, for the digraphs, these are included for backwards
19561 compatibility and modern texts use a sequence of Basic Latin
19562 characters. See: https://www.unicode.org/faq/ligature_digraph.html
19563 This makes the month and day names agree exactly with CLDR now,
19564 CLDR does not use the single code points for the digraphs either.
19565
19566 2017-12-04 Chris Metcalf <cmetcalf@mellanox.com>
19567
19568 * sysdeps/tile/libm-test-ulps: Update ca{cos,sin,tan}{,h} ulps.
19569
19570 2017-12-04 Joseph Myers <joseph@codesourcery.com>
19571
19572 * sysdeps/ieee754/flt-32/s_sinf.c (SINF_FUNC): Use __floor instead
19573 of floor.
19574
19575 2017-12-04 Siddhesh Poyarekar <siddhesh@sourceware.org>
19576
19577 * sysdeps/aarch64/multiarch/memcpy_generic.S (__GI_memcpy):
19578 Define only for libc.so.
19579
19580 2017-12-04 Stefan Liebler <stli@linux.vnet.ibm.com>
19581
19582 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
19583 (INTERNAL_VSYSCALL_CALL, CLOBBER_0, CLOBBER_1, CLOBBER_2,
19584 CLOBBER_3, CLOBBER_4, CLOBBER_5, CLOBBER_6,
19585 INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Remove.
19586 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
19587
19588 2017-12-04 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
19589
19590 [BZ #5997]
19591 * sysdeps/ieee754/flt-32/s_sinf.c: New implementation.
19592
19593 2017-12-02 John David Anglin <danglin@gcc.gnu.org>
19594
19595 [BZ libc/19170]
19596 * sysdeps/hppa/crti.S: Declare PREINIT_FUNCTION weak_extern when
19597 PREINIT_FUNCTION_WEAK is nonzero.
19598 (gmon_initializer): New function. Put procedure label for it in
19599 .init_array section.
19600 (_init): Don't call PREINIT_FUNCTION.
19601 * sysdeps/hppa/crtn.S (__gmon_start__): Remove.
19602 * sysdeps/hppa/dl-lookupcfg.h (DL_FIXUP_MAKE_VALUE): Create null fixup
19603 value when map argument is null.
19604
19605 * sysdeps/hppa/dl-fptr.c (elf_machine_resolve): Remove unnecessary
19606 depi instruction from PIC pc-relative sequence.
19607 * sysdeps/hppa/dl-fptr.h (ELF_MACHINE_LOAD_ADDRESS): Likewise.
19608 * sysdeps/hppa/dl-machine.h (elf_machine_dynamic): Likewise.
19609 (elf_machine_load_address): Likewise.
19610 (elf_machine_runtime_setup): Likewise.
19611
19612 2017-12-02 Joseph Myers <joseph@codesourcery.com>
19613
19614 * sysdeps/powerpc/power7/fpu/s_logb.c: Include
19615 <libm-alias-double.h>.
19616 (logb): Define using libm_alias_double.
19617 * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Include
19618 <libm-alias-double.h>.
19619 (copysign): Define using libm_alias_double.
19620 * sysdeps/powerpc/powerpc32/fpu/s_llrint.c: Include
19621 <libm-alias-double.h>.
19622 (llrint): Define using libm_alias_double.
19623 * sysdeps/powerpc/powerpc32/fpu/s_llround.c: Include
19624 <libm-alias-double.h>.
19625 (llround): Define using libm_alias_double.
19626 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Include
19627 <libm-alias-double.h>.
19628 (lrint): Define using libm_alias_double.
19629 * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Include
19630 <libm-alias-double.h>.
19631 (lround): Define using libm_alias_double.
19632 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
19633 Include <libm-alias-double.h>.
19634 (copysign): Define using libm_alias_double.
19635 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint.c:
19636 Include <libm-alias-double.h>.
19637 (llrint): Define using libm_alias_double.
19638 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround.c:
19639 Include <libm-alias-double.h>.
19640 (llround): Define using libm_alias_double.
19641 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c: Include
19642 <libm-alias-double.h>.
19643 (logb): Define using libm_alias_double.
19644 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint.c:
19645 Include <libm-alias-double.h>.
19646 (lrint): Define using libm_alias_double.
19647 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround.c:
19648 Include <libm-alias-double.h>.
19649 (lround): Define using libm_alias_double.
19650 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Include
19651 <libm-alias-double.h>.
19652 (llrint): Define using libm_alias_double.
19653 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Include
19654 <libm-alias-double.h>.
19655 (llround): Define using libm_alias_double.
19656 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Include
19657 <libm-alias-double.h>.
19658 (llround): Define using libm_alias_double.
19659 * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Include
19660 <libm-alias-double.h>.
19661 (lround): Define using libm_alias_double.
19662 * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Include
19663 <libm-alias-double.h>.
19664 (copysign): Define using libm_alias_double.
19665 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Include
19666 <libm-alias-double.h>.
19667 (llrint): Define using libm_alias_double.
19668 * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Include
19669 <libm-alias-double.h>.
19670 (llround): Define using libm_alias_double.
19671 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: Include
19672 <libm-alias-double.h>.
19673 (lrint): Define using libm_alias_double.
19674 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Include
19675 <libm-alias-double.h>.
19676 (lround): Define using libm_alias_double.
19677 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Include
19678 <libm-alias-double.h>.
19679 (copysign): Define using libm_alias_double.
19680 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c: Include
19681 <libm-alias-double.h>.
19682 (llrint): Define using libm_alias_double.
19683 (lrint): Likewise.
19684 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c: Include
19685 <libm-alias-double.h>.
19686 (llround): Define using libm_alias_double.
19687 (lround): Likewise.
19688 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c: Include
19689 <libm-alias-double.h>.
19690 (logb): Define using libm_alias_double.
19691 * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Include
19692 <libm-alias-double.h>.
19693 (copysign): Define using libm_alias_double.
19694 * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Include
19695 <libm-alias-double.h>.
19696 (llrint): Define using libm_alias_double.
19697 (lrint): Likewise.
19698 * sysdeps/powerpc/powerpc64/fpu/s_llround.S: Include
19699 <libm-alias-double.h>.
19700 (llround): Define using libm_alias_double.
19701 (lround): Likewise.
19702 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Include
19703 <libm-alias-double.h>.
19704 (llround): Define using libm_alias_double.
19705 (lround): Likewise.
19706 * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Include
19707 <libm-alias-double.h>.
19708 (copysign): Define using libm_alias_double.
19709 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Include
19710 <libm-alias-double.h>.
19711 (llrint): Define using libm_alias_double.
19712 (lrint): Likewise.
19713 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Include
19714 <libm-alias-double.h>.
19715 (llround): Define using libm_alias_double.
19716 (lround): Likewise.
19717 * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: Include
19718 <libm-alias-double.h>.
19719 (llrint): Define using libm_alias_double.
19720 (lrint): Likewise.
19721 * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Include
19722 <libm-alias-double.h>.
19723 (llround): Define using libm_alias_double.
19724 (lround): Likewise.
19725
19726 2017-12-01 Joseph Myers <joseph@codesourcery.com>
19727
19728 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c
19729 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)] (lroundl): Do not define
19730 compat symbol based on llround.
19731
19732 * sysdeps/powerpc/power7/fpu/s_logb.c
19733 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Define as compat
19734 symbol based on __logb, not on logb.
19735 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c
19736 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Likewise.
19737 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c
19738 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Likewise.
19739
19740 * sysdeps/powerpc/fpu/s_rint.c: Include <libm-alias-double.h>.
19741 (rint): Define using libm_alias_double.
19742 * sysdeps/powerpc/power5+/fpu/s_modf.c: Include
19743 <libm-alias-double.h>.
19744 (modf): Define using libm_alias_double.
19745 * sysdeps/powerpc/powerpc32/fpu/s_ceil.S: Include
19746 <libm-alias-double.h>.
19747 (ceil): Define using libm_alias_double.
19748 * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Include
19749 <libm-alias-double.h>.
19750 (floor): Define using libm_alias_double.
19751 * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: Include
19752 <libm-alias-double.h>.
19753 (nearbyint): Define using libm_alias_double.
19754 * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Include
19755 <libm-alias-double.h>.
19756 (rint): Define using libm_alias_double.
19757 * sysdeps/powerpc/powerpc32/fpu/s_round.S: Include
19758 <libm-alias-double.h>.
19759 (round): Define using libm_alias_double.
19760 * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Include
19761 <libm-alias-double.h>.
19762 (trunc): Define using libm_alias_double.
19763 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: Include
19764 <libm-alias-double.h>.
19765 (ceil): Define using libm_alias_double.
19766 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c:
19767 Include <libm-alias-double.h>.
19768 (floor): Define using libm_alias_double.
19769 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf.c: Include
19770 <libm-alias-double.h>.
19771 (modf): Define using libm_alias_double.
19772 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c:
19773 Include <libm-alias-double.h>.
19774 (round): Define using libm_alias_double.
19775 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c:
19776 Include <libm-alias-double.h>.
19777 (trunc): Define using libm_alias_double.
19778 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: Include
19779 <libm-alias-double.h>.
19780 (ceil): Define using libm_alias_double.
19781 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: Include
19782 <libm-alias-double.h>.
19783 (floor): Define using libm_alias_double.
19784 * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S: Include
19785 <libm-alias-double.h>.
19786 (round): Define using libm_alias_double.
19787 * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S: Include
19788 <libm-alias-double.h>.
19789 (trunc): Define using libm_alias_double.
19790 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: Include
19791 <libm-alias-double.h>.
19792 (ceil): Define using libm_alias_double.
19793 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: Include
19794 <libm-alias-double.h>.
19795 (floor): Define using libm_alias_double.
19796 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf.c: Include
19797 <libm-alias-double.h>.
19798 (modf): Define using libm_alias_double.
19799 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: Include
19800 <libm-alias-double.h>.
19801 (round): Define using libm_alias_double.
19802 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: Include
19803 <libm-alias-double.h>.
19804 (trunc): Define using libm_alias_double.
19805 * sysdeps/powerpc/powerpc64/fpu/s_ceil.S: Include
19806 <libm-alias-double.h>.
19807 (ceil): Define using libm_alias_double.
19808 * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Include
19809 <libm-alias-double.h>.
19810 (floor): Define using libm_alias_double.
19811 * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: Include
19812 <libm-alias-double.h>.
19813 (nearbyint): Define using libm_alias_double.
19814 * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Include
19815 <libm-alias-double.h>.
19816 (rint): Define using libm_alias_double.
19817 * sysdeps/powerpc/powerpc64/fpu/s_round.S: Include
19818 <libm-alias-double.h>.
19819 (round): Define using libm_alias_double.
19820 * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Include
19821 <libm-alias-double.h>.
19822 (trunc): Define using libm_alias_double.
19823 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: Include
19824 <libm-alias-double.h>.
19825 (ceil): Define using libm_alias_double.
19826 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: Include
19827 <libm-alias-double.h>.
19828 (floor): Define using libm_alias_double.
19829 * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S: Include
19830 <libm-alias-double.h>.
19831 (round): Define using libm_alias_double.
19832 * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S: Include
19833 <libm-alias-double.h>.
19834 (trunc): Define using libm_alias_double.
19835
19836 * sysdeps/powerpc/fpu/s_fabs.S: Include <libm-alias-double.h>.
19837 (fabs): Define using libm_alias_double.
19838 * sysdeps/powerpc/fpu/s_fma.S: Include <libm-alias-double.h>.
19839 (fma): Define using libm_alias_double.
19840 * sysdeps/powerpc/powerpc32/fpu/s_fabs.S: Remove file.
19841 * sysdeps/powerpc/powerpc32/fpu/s_fma.S: Likewise.
19842 * sysdeps/powerpc/powerpc64/fpu/s_fabs.S: Likewise.
19843 * sysdeps/powerpc/powerpc64/fpu/s_fma.S: Likewise.
19844
19845 2017-12-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
19846
19847 * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Remove file.
19848
19849 * sysdeps/sparc/sparc-ifunc.h (SPARC_ASM_IFUNC_DFLT,
19850 SPARC_ASM_IFUNC1, SPARC_ASM_IFUNC2, SET, SPARC_ASM_VIS2_IFUNC,
19851 SPARC_ASM_VIS3_IFUNC, SPARC_ASM_VIS3_VIS2_IFUNC): Remove macros.
19852
19853 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c: Fix build
19854 due redirect macro.
19855
19856 2017-12-01 Andreas Schwab <schwab@linux-m68k.org>
19857
19858 * intl/Makefile ($(objpfx)plural.c): Add $(make-target-directory).
19859
19860 2017-12-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
19861
19862 * sysdeps/sparc/sparc64/cpu_relax.c: New file.
19863 * sysdeps/sparc/sparc32/sparcv9/cpu_relax.c: Likewise.
19864 * sysdeps/sparc/sparc64/cpu_relax.S: Remove file.
19865 * sysdeps/sparc/sparc32/sparcv9/cpu_relax.S: Likewise.
19866
19867 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
19868 (libm-sysdep_routines): Add s_nearbyintf-generic and
19869 s_nearbyint-generic.
19870 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-generic.S:
19871 New file.
19872 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.c: Likewise.
19873 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-generic.S:
19874 Likewise.
19875 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.c:
19876 Likewise.
19877 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S: Remove
19878 file.
19879 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S:
19880 Likewise.
19881
19882 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
19883 (libm-sysdep_routines): Add s_rintf-generic and s_rint-generic.
19884 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-generic.S: New
19885 file.
19886 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.c: Likewise.
19887 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-generic.S:
19888 Likewise.
19889 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.c: Likewise.
19890 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Remove file.
19891 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
19892
19893 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
19894 (libm-sysdep_routines): Add s_llrintf-generic and s_llrint-generic.
19895 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-generic.S: New
19896 file.
19897 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.c: Likewise.
19898 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-generic.S:
19899 Likewise.
19900 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.c: Likewise.
19901 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Remove file.
19902 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: Likewise.
19903
19904 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
19905 (libm-sysdep_routines): Add s_fabsf-generic and s_fabs-generic.
19906 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-generic.S: New
19907 file.
19908 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.c: Likewise.
19909 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-generic.S:
19910 Likewise.
19911 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.c: Likewise.
19912 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Remove file.
19913 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
19914
19915 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
19916 (sysdep_calls): New rule.
19917 (sysdep_routines): Use sysdep_calls as base.
19918 (libm-sysdep_routines): Add generic rule for symbols shared with
19919 libc. Add s_copysign-generic and s_copysign-generic objects.
19920 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-generic.S:
19921 New file.
19922 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c: Likewise.
19923 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-generic.S:
19924 Likewise.
19925 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.c: Likewise.
19926 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: Remove file.
19927 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: Likewise.
19928
19929 2017-12-01 Mike FABIAN <mfabian@redhat.com>
19930
19931 [BZ #22519]
19932 * localedata/Makefile: Add is_IS.UTF-8 to test-input and to
19933 the list of locales to be built for testing.
19934 * localedata/is_IS.UTF-8.in: New file.
19935 * localedata/locales/is_IS (LC_COLLATE): Base collation rules
19936 on iso14651_t1.
19937
19938 2017-12-01 Joseph Myers <joseph@codesourcery.com>
19939
19940 * sysdeps/powerpc/powerpc32/e500/nofpu/s_fabsf.S: Include
19941 <libm-alias-float.h>.
19942 (fabsf): Define using libm_alias_float.
19943
19944 2017-11-30 H.J. Lu <hongjiu.lu@intel.com>
19945
19946 * sysdeps/mips/dl-machine.h (elf_machine_reloc): Expand MIN.
19947
19948 2017-11-30 Joseph Myers <joseph@codesourcery.com>
19949
19950 * sysdeps/m68k/coldfire/fpu/s_fabsf.c: Include
19951 <libm-alias-float.h>.
19952 (fabsf): Define using libm_alias_float.
19953 * sysdeps/m68k/coldfire/fpu/s_lrintf.c: Include
19954 <libm-alias-float.h>.
19955 (lrintf): Define using libm_alias_float.
19956 * sysdeps/m68k/coldfire/fpu/s_rintf.c: Include
19957 <libm-alias-float.h>.
19958 (rintf): Define using libm_alias_float.
19959
19960 * sysdeps/m68k/coldfire/fpu/s_fabs.c: Include
19961 <libm-alias-double.h>.
19962 (fabs): Define using libm_alias_double.
19963 * sysdeps/m68k/coldfire/fpu/s_lrint.c: Include
19964 <libm-alias-double.h>.
19965 (lrint): Define using libm_alias_double.
19966 * sysdeps/m68k/coldfire/fpu/s_rint.c: Include
19967 <libm-alias-double.h>.
19968 (rint): Define using libm_alias_double.
19969
19970 * sysdeps/m68k/m680x0/fpu/s_atan_template.c: New file.
19971 * sysdeps/m68k/m680x0/fpu/s_ceil_template.c: Likewise.
19972 * sysdeps/m68k/m680x0/fpu/s_cos_template.c: Likewise.
19973 * sysdeps/m68k/m680x0/fpu/s_expm1_template.c: Likewise.
19974 * sysdeps/m68k/m680x0/fpu/s_fabs_template.c: Likewise.
19975 * sysdeps/m68k/m680x0/fpu/s_floor_template.c: Likewise.
19976 * sysdeps/m68k/m680x0/fpu/s_frexp_template.c: Likewise.
19977 * sysdeps/m68k/m680x0/fpu/s_lrint_template.c: Likewise.
19978 * sysdeps/m68k/m680x0/fpu/s_modf_template.c: Likewise.
19979 * sysdeps/m68k/m680x0/fpu/s_nearbyint_template.c: Likewise.
19980 * sysdeps/m68k/m680x0/fpu/s_remquo_template.c: Likewise.
19981 * sysdeps/m68k/m680x0/fpu/s_rint_template.c: Likewise.
19982 * sysdeps/m68k/m680x0/fpu/s_sin_template.c: Likewise.
19983 * sysdeps/m68k/m680x0/fpu/s_sincos_template.c: Likewise.
19984 * sysdeps/m68k/m680x0/fpu/s_tan_template.c: Likewise.
19985 * sysdeps/m68k/m680x0/fpu/s_tanh_template.c: Likewise.
19986 * sysdeps/m68k/m680x0/fpu/s_trunc_template.c: Likewise.
19987 * sysdeps/m68k/m680x0/fpu/s_atan.c: Reimplement to use
19988 s_atan_template.c.
19989 * sysdeps/m68k/m680x0/fpu/s_atanf.c: Likewise.
19990 * sysdeps/m68k/m680x0/fpu/s_atanl.c: Likewise.
19991 * sysdeps/m68k/m680x0/fpu/s_ceil.c: Reimplement to use
19992 s_ceil_template.c.
19993 * sysdeps/m68k/m680x0/fpu/s_ceilf.c: Likewise.
19994 * sysdeps/m68k/m680x0/fpu/s_ceill.c: Likewise.
19995 * sysdeps/m68k/m680x0/fpu/s_cos.c: Reimplement to use
19996 s_cos_template.c.
19997 * sysdeps/m68k/m680x0/fpu/s_cosf.c: Likewise.
19998 * sysdeps/m68k/m680x0/fpu/s_cosl.c: Likewise.
19999 * sysdeps/m68k/m680x0/fpu/s_expm1.c: Reimplement to use
20000 s_expm1_template.c.
20001 * sysdeps/m68k/m680x0/fpu/s_expm1f.c: Likewise.
20002 * sysdeps/m68k/m680x0/fpu/s_expm1l.c: Likewise.
20003 * sysdeps/m68k/m680x0/fpu/s_fabs.c: Reimplement to use
20004 s_fabs_template.c.
20005 * sysdeps/m68k/m680x0/fpu/s_fabsf.c: Likewise.
20006 * sysdeps/m68k/m680x0/fpu/s_fabsl.c: Likewise.
20007 * sysdeps/m68k/m680x0/fpu/s_floor.c: Reimplement to use
20008 s_floor_template.c.
20009 * sysdeps/m68k/m680x0/fpu/s_floorf.c: Likewise.
20010 * sysdeps/m68k/m680x0/fpu/s_floorl.c: Likewise.
20011 * sysdeps/m68k/m680x0/fpu/s_frexp.c: Reimplement to use
20012 s_frexp_template.c.
20013 * sysdeps/m68k/m680x0/fpu/s_frexpf.c: Likewise.
20014 * sysdeps/m68k/m680x0/fpu/s_lrint.c: Reimplement to use
20015 s_lrint_template.c.
20016 * sysdeps/m68k/m680x0/fpu/s_lrintf.c: Likewise.
20017 * sysdeps/m68k/m680x0/fpu/s_lrintl.c: Likewise.
20018 * sysdeps/m68k/m680x0/fpu/s_modf.c: Reimplement to use
20019 s_modf_template.c.
20020 * sysdeps/m68k/m680x0/fpu/s_modff.c: Likewise.
20021 * sysdeps/m68k/m680x0/fpu/s_modfl.c: Likewise.
20022 * sysdeps/m68k/m680x0/fpu/s_nearbyint.c: Reimplement to use
20023 s_nearbyint_template.c.
20024 * sysdeps/m68k/m680x0/fpu/s_nearbyintf.c: Likewise.
20025 * sysdeps/m68k/m680x0/fpu/s_nearbyintl.c: Likewise.
20026 * sysdeps/m68k/m680x0/fpu/s_remquo.c: Reimplement to use
20027 s_remquo_template.c.
20028 * sysdeps/m68k/m680x0/fpu/s_remquof.c: Likewise.
20029 * sysdeps/m68k/m680x0/fpu/s_remquol.c: Likewise.
20030 * sysdeps/m68k/m680x0/fpu/s_rint.c: Reimplement to use
20031 s_rint_template.c.
20032 * sysdeps/m68k/m680x0/fpu/s_rintf.c: Likewise.
20033 * sysdeps/m68k/m680x0/fpu/s_rintl.c: Likewise.
20034 * sysdeps/m68k/m680x0/fpu/s_sin.c: Reimplement to use
20035 s_sin_template.c.
20036 * sysdeps/m68k/m680x0/fpu/s_sinf.c: Likewise.
20037 * sysdeps/m68k/m680x0/fpu/s_sinl.c: Likewise.
20038 * sysdeps/m68k/m680x0/fpu/s_sincos.c: Reimplement to use
20039 s_sincos_template.c.
20040 * sysdeps/m68k/m680x0/fpu/s_sincosf.c: Likewise.
20041 * sysdeps/m68k/m680x0/fpu/s_sincosl.c: Likewise.
20042 * sysdeps/m68k/m680x0/fpu/s_tan.c: Reimplement to use
20043 s_tan_template.c.
20044 * sysdeps/m68k/m680x0/fpu/s_tanf.c: Likewise.
20045 * sysdeps/m68k/m680x0/fpu/s_tanl.c: Likewise.
20046 * sysdeps/m68k/m680x0/fpu/s_tanh.c: Reimplement to use
20047 s_tanh_template.c.
20048 * sysdeps/m68k/m680x0/fpu/s_tanhf.c: Likewise.
20049 * sysdeps/m68k/m680x0/fpu/s_tanhl.c: Likewise.
20050 * sysdeps/m68k/m680x0/fpu/s_trunc.c: Reimplement to use
20051 s_trunc_template.c.
20052 * sysdeps/m68k/m680x0/fpu/s_truncf.c: Likewise.
20053 * sysdeps/m68k/m680x0/fpu/s_truncl.c: Likewise.
20054 * sysdeps/m68k/m680x0/fpu/s_significand.c: Reimplement based on
20055 s_atan.c instead of including s_atan.c.
20056 * sysdeps/m68k/m680x0/fpu/s_significandf.c: Reimplement based on
20057 s_atanf.c instead of including s_atanf.c.
20058 * sysdeps/m68k/m680x0/fpu/s_significandl.c: Reimplement based on
20059 s_atanl.c instead of including s_atanl.c.
20060 * sysdeps/m68k/m680x0/fpu/s_log1p.c: Include s_significand.c
20061 instead of s_atan.c.
20062 * sysdeps/m68k/m680x0/fpu/s_log1pf.c: Include s_significandf.c
20063 instead of s_atanf.c.
20064 * sysdeps/m68k/m680x0/fpu/s_log1pl.c: Include s_significandl.c
20065 instead of s_atanl.c.
20066
20067 * scripts/update-copyrights: Do not handle intl/plural.c
20068 specially.
20069
20070 2017-11-30 Juro Bystricky <juro.bystricky@linux.intel.com>
20071
20072 [BZ #22432]
20073 * configure.ac (BISON): Require to be present.
20074 * configure: Regenerated.
20075 * intl/Makefile (generated): Add plural.c.
20076 [$(BISON) != no]: Make code unconditional.
20077 (plural.c): Change rule to $(objpfx)plural.c.
20078 ($(objpfx)plural.o): Depend on $(objpfx)plural.c.
20079 * intl/plural.c: Remove.
20080 * manual/install.texi (Tools for Compilation): Document bison as
20081 required.
20082 * INSTALL: Regenerated.
20083
20084 2017-11-30 Joseph Myers <joseph@codesourcery.com>
20085
20086 * sysdeps/m68k/m680x0/fpu/s_llrint.c: Include
20087 <libm-alias-double.h>.
20088 (llrint): Define using libm_alias_double.
20089 * sysdeps/m68k/m680x0/fpu/s_llrintf.c: Include
20090 <libm-alias-float.h>.
20091 (llrintf): Define using libm_alias_float.
20092 * sysdeps/m68k/m680x0/fpu/s_llrintl.c: Include
20093 <libm-alias-ldouble.h>.
20094 (llrintl): Define using libm_alias_ldouble.
20095
20096 * sysdeps/m68k/m680x0/fpu/s_ccosh_template.c (ccosh): Use
20097 declare_mgen_alias instead of weak_alias.
20098 * sysdeps/m68k/m680x0/fpu/s_cexp_template.c (cexp): Likewise.
20099 * sysdeps/m68k/m680x0/fpu/s_csin_template.c (csin): Likewise.
20100 * sysdeps/m68k/m680x0/fpu/s_csinh_template.c (csinh): Likewise.
20101
20102 2017-11-30 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20103
20104 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
20105 Add add_n-generic.
20106 * sysdeps/sparc/sparc64/multiarch/add_n-generic.S: New file.
20107 * sysdeps/sparc/sparc64/multiarch/add_n.c: Likewise.
20108 * sysdeps/sparc/sparc64/multiarch/add_n.S: Remove file.
20109
20110 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
20111 Add submul_1-generic.
20112 * sysdeps/sparc/sparc64/multiarch/submul_1-generic.S: New file.
20113 * sysdeps/sparc/sparc64/multiarch/submul_1.c: Likewise.
20114 * sysdeps/sparc/sparc64/multiarch/submul_1.S: Remove file.
20115
20116 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
20117 Add addmul_1-generic.
20118 * sysdeps/sparc/sparc64/multiarch/addmul_1-generic.S: New file.
20119 * sysdeps/sparc/sparc64/multiarch/addmul_1.c: Likewise.
20120 * sysdeps/sparc/sparc64/multiarch/addmul_1.S: Remove file.
20121
20122 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
20123 Add sub_n-generic.
20124 * sysdeps/sparc/sparc64/multiarch/sub_n-generic.S: New file.
20125 * sysdeps/sparc/sparc64/multiarch/sub_n.c: Likewise.
20126 * sysdeps/sparc/sparc64/multiarch/sub_n.S: Remove file.
20127
20128 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
20129 Add mul_1-generic.
20130 * sysdeps/sparc/sparc64/multiarch/mul_1-generic.S: New file.
20131 * sysdeps/sparc/sparc64/multiarch/mul_1.c: Likewise.
20132 * sysdeps/sparc/sparc64/multiarch/mul_1.S: Remove file.
20133
20134 2017-11-30 Mike FABIAN <mfabian@redhat.com>
20135
20136 According to CLDR, collation rules for Serbian and Bosnian
20137 should be the same as for Croatian.
20138
20139 [BZ #22534]
20140 * localedata/Makefile: Add sr_RS.UTF-8 and bs_BA.UTF-8 to test-input
20141 and to the list of locales to be built for testing.
20142 * localedata/bs_BA.UTF-8.in: New file (same as hr_HR.UTF-8.in).
20143 * localedata/sr_RS.UTF-8.in: New file (same as hr_HR.UTF-8.in).
20144 * localedata/locales/bs_BA (LC_COLLATE): Use “copy "hr_HR"”.
20145 * localedata/locales/sr_RS (LC_COLLATE): Use “copy "hr_HR"”.
20146
20147 2017-11-30 Mike FABIAN <mfabian@redhat.com>
20148
20149 * localedata/locales/hr_HR (LC_COLLATE): Fix collation
20150 to make test case pass.
20151 * localedata/hr_HR.UTF-8.in: Add more test strings.
20152
20153 2017-11-30 Mike FABIAN <mfabian@redhat.com>
20154
20155 * stdlib/tst-strfmon_l.c: Fix testcase. Needed because of [BZ #10580]
20156
20157 2017-11-30 Dragan Stanojević - Nevidljivi <invisible@hidden-city.net>
20158
20159 * localedata/Makefile: Add hr_HR.UTF-8 to test-input and to
20160 the list of locales to built for testing.
20161 * localedata/hr_HR.UTF-8.in: New file.
20162
20163 2017-11-30 Dragan Stanojević - Nevidljivi <invisible@hidden-city.net>
20164
20165 [BZ #10580]
20166 * localedata/locales/hr_HR (LC_COLLATE): Base collation rules on
20167 iso14651_t1.
20168 * localedata/locales/hr_HR (LC_TIME): Sync month and day names with
20169 CLDR (except use ligatures for the digraphs, CLDR does not use
20170 the ligatures), add first_workday, some fixes in the date and time
20171 formats.
20172 * localedata/locales/hr_HR (LC_CTYPE): Add transliteration rules
20173 for Đ and đ.
20174 * localedata/locales/hr_HR (LC_MONETARY): Change currency_symbol to
20175 lower case. p_cs_precedes and n_cs_precedes should be 0 instead of 1.
20176 Add int_p_cs_precedes and int_n_cs_precedes.
20177 * localedata/locales/hr_HR (LC_NUMERIC): Change thousands_sep to
20178 "<U202F>" (NARROW NO-BREAK SPACE) and grouping to 3;3 (Agrees with
20179 LC_MONETARY now).
20180 * localedata/locales/hr_HR (LC_TELEPHONE): Add tel_dom_fmt.
20181 * localedata/locales/hr_HR (LC_NAME): Add name_mr, name_mrs, and
20182 name_miss.
20183 * localedata/locales/hr_HR (LC_ADDRESS): Add country_post, country_isbn,
20184 and lang_lib. Change postal_fmt.
20185
20186 2017-11-30 H.J. Lu <hongjiu.lu@intel.com>
20187
20188 * debug/longjmp_chk.c: Include <setjmpP.h> instead of
20189 <setjmp.h>.
20190 * setjmp/longjmp.c: Include <setjmpP.h> instead of <setjmp.h>.
20191 (__libc_siglongjmp): Cast &env[0].__saved_mask to "sigset_t *".
20192 * setjmp/sigjmp.c: Include <setjmpP.h> instead of <setjmp.h>.
20193 (__sigjmp_save): Cast &env[0].__saved_mask to "sigset_t *".
20194 * sysdeps/generic/setjmpP.h: New file.
20195 * sysdeps/unix/sysv/linux/x86/jmp_buf-ssp.sym: Likewise.
20196 * sysdeps/unix/sysv/linux/x86/setjmpP.h: Likewise.
20197 * sysdeps/unix/sysv/linux/x86/tst-saved_mask-1.c: Likewise.
20198 * sysdeps/unix/sysv/linux/x86/Makefile (gen-as-const-headers):
20199 Add jmp_buf-ssp.sym.
20200 (tests): Add tst-saved_mask-1.
20201
20202 2017-11-30 Arjun Shankar <arjun@redhat.com>
20203
20204 [BZ #22375]
20205 CVE-2017-17426
20206 * malloc/malloc.c (__libc_malloc): Use checked_request2size
20207 instead of request2size.
20208
20209 2017-11-30 Joseph Myers <joseph@codesourcery.com>
20210
20211 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S
20212 (__lllrint): Remove alias.
20213 (lllrint): Likewise.
20214 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S
20215 (__lllrintf): Likewise.
20216 (lllrintf): Likewise.
20217
20218 * sysdeps/sparc/sparc32/fpu/s_copysignf.S: Include
20219 <libm-alias-float.h>.
20220 (copysignf): Define using libm_alias_float.
20221 * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Include
20222 <libm-alias-float.h>.
20223 (fabsf): Define using libm_alias_float.
20224 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
20225 Include <libm-alias-float.h>.
20226 (copysignf): Define using libm_alias_float.
20227 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Include
20228 <libm-alias-float.h>.
20229 (fabsf): Define using libm_alias_float.
20230 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.c: Include
20231 <libm-alias-float.h>.
20232 (fdimf): Define using libm_alias_float.
20233 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: Include
20234 <libm-alias-float.h>.
20235 (fmaf): Define using libm_alias_float.
20236 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: Include
20237 <libm-alias-float.h>.
20238 (llrintf): Define using libm_alias_float.
20239 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S:
20240 Include <libm-alias-float.h>.
20241 (nearbyintf): Define using libm_alias_float.
20242 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Include
20243 <libm-alias-float.h>.
20244 (rintf): Define using libm_alias_float.
20245 * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: Include
20246 <libm-alias-float.h>.
20247 (llrintf): Define using libm_alias_float.
20248 * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: Include
20249 <libm-alias-float.h>.
20250 (lrintf): Define using libm_alias_float.
20251 * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyintf.S: Include
20252 <libm-alias-float.h>.
20253 (nearbyintf): Define using libm_alias_float.
20254 * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Include
20255 <libm-alias-float.h>.
20256 (rintf): Define using libm_alias_float.
20257 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Include
20258 <libm-alias-float.h>.
20259 (ceilf): Define using libm_alias_float.
20260 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Include
20261 <libm-alias-float.h>.
20262 (floorf): Define using libm_alias_float.
20263 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: Include
20264 <libm-alias-float.h>.
20265 (fmaf): Define using libm_alias_float.
20266 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.c: Include
20267 <libm-alias-float.h>.
20268 (lrintf): Define using libm_alias_float.
20269 (llrintf): Likewise.
20270 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.c: Include
20271 <libm-alias-float.h>.
20272 (nearbyintf): Define using libm_alias_float.
20273 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Include
20274 <libm-alias-float.h>.
20275 (rintf): Define using libm_alias_float.
20276 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Include
20277 <libm-alias-float.h>.
20278 (truncf): Define using libm_alias_float.
20279 * sysdeps/sparc/sparc64/fpu/s_copysignf.S: Include
20280 <libm-alias-float.h>.
20281 (copysignf): Define using libm_alias_float.
20282 * sysdeps/sparc/sparc64/fpu/s_fabsf.c: Include
20283 <libm-alias-float.h>.
20284 (fabsf): Define using libm_alias_float.
20285 * sysdeps/sparc/sparc64/fpu/s_lrintf.S: Include
20286 <libm-alias-float.h>.
20287 (lrintf): Define using libm_alias_float.
20288 (llrintf): Likewise.
20289 * sysdeps/sparc/sparc64/fpu/s_nearbyintf.S: Include
20290 <libm-alias-float.h>.
20291 (nearbyintf): Define using libm_alias_float.
20292 * sysdeps/sparc/sparc64/fpu/s_rintf.S: Include
20293 <libm-alias-float.h>.
20294 (rintf): Define using libm_alias_float.
20295
20296 2017-11-29 Joseph Myers <joseph@codesourcery.com>
20297
20298 * sysdeps/sparc/sparc32/fpu/s_copysign.S: Include
20299 <libm-alias-double.h>.
20300 (copysign): Define using libm_alias_double.
20301 * sysdeps/sparc/sparc32/fpu/s_fabs.S: Include
20302 <libm-alias-double.h>.
20303 (fabs): Define using libm_alias_double.
20304 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
20305 Include <libm-alias-double.h>.
20306 (copysign): Define using libm_alias_double.
20307 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Include
20308 <libm-alias-double.h>.
20309 (fabs): Define using libm_alias_double.
20310 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c: Include
20311 <libm-alias-double.h>.
20312 (fdim): Define using libm_alias_double.
20313 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: Include
20314 <libm-alias-double.h>.
20315 (fma): Define using libm_alias_double.
20316 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Include
20317 <libm-alias-double.h>.
20318 (llrint): Define using libm_alias_double.
20319 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S:
20320 Include <libm-alias-double.h>.
20321 (nearbyint): Define using libm_alias_double.
20322 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Include
20323 <libm-alias-double.h>.
20324 (rint): Define using libm_alias_double.
20325 * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Include
20326 <libm-alias-double.h>.
20327 (fabs): Define using libm_alias_double.
20328 * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Include
20329 <libm-alias-double.h>.
20330 (llrint): Define using libm_alias_double.
20331 * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyint.S: Include
20332 <libm-alias-double.h>.
20333 (nearbyint): Define using libm_alias_double.
20334 * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Include
20335 <libm-alias-double.h>.
20336 (rint): Define using libm_alias_double.
20337 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Include
20338 <libm-alias-double.h>.
20339 (ceil): Define using libm_alias_double.
20340 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Include
20341 <libm-alias-double.h>.
20342 (floor): Define using libm_alias_double.
20343 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: Include
20344 <libm-alias-double.h>.
20345 (fma): Define using libm_alias_double.
20346 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.c: Include
20347 <libm-alias-double.h>.
20348 (lrint): Define using libm_alias_double.
20349 (llrint): Likewise.
20350 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.c: Include
20351 <libm-alias-double.h>.
20352 (nearbyint): Define using libm_alias_double.
20353 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Include
20354 <libm-alias-double.h>.
20355 (rint): Define using libm_alias_double.
20356 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Include
20357 <libm-alias-double.h>.
20358 (trunc): Define using libm_alias_double.
20359 * sysdeps/sparc/sparc64/fpu/s_copysign.S: Include
20360 <libm-alias-double.h>.
20361 (copysign): Define using libm_alias_double.
20362 * sysdeps/sparc/sparc64/fpu/s_fabs.c: Include
20363 <libm-alias-double.h>.
20364 (fabs): Define using libm_alias_double.
20365 * sysdeps/sparc/sparc64/fpu/s_lrint.S: Include
20366 <libm-alias-double.h>.
20367 (lrint): Define using libm_alias_double.
20368 (llrint): Likewise.
20369 * sysdeps/sparc/sparc64/fpu/s_nearbyint.S: Include
20370 <libm-alias-double.h>.
20371 (nearbyint): Define using libm_alias_double.
20372 * sysdeps/sparc/sparc64/fpu/s_rint.S: Include
20373 <libm-alias-double.h>.
20374 (rint): Define using libm_alias_double.
20375
20376 [BZ #22229]
20377 * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Include
20378 <math_ldbl_opt.h>.
20379 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
20380
20381 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
20382 SPARC --disable-multi-arch glibc variants.
20383
20384 * sysdeps/x86_64/fpu/multiarch/e_exp2f.c: Include
20385 <libm-alias-float.h>.
20386 (exp2f): Define using libm_alias_float, or libm_alias_float_other
20387 if [SHARED].
20388 * sysdeps/x86_64/fpu/multiarch/e_expf.c: Include
20389 <libm-alias-float.h>.
20390 (exp2f): Define using libm_alias_float, or libm_alias_float_other
20391 if [SHARED].
20392 * sysdeps/x86_64/fpu/multiarch/e_log2f.c: Include
20393 <libm-alias-float.h>.
20394 (exp2f): Define using libm_alias_float, or libm_alias_float_other
20395 if [SHARED].
20396 * sysdeps/x86_64/fpu/multiarch/e_logf.c: Include
20397 <libm-alias-float.h>.
20398 (exp2f): Define using libm_alias_float, or libm_alias_float_other
20399 if [SHARED].
20400 * sysdeps/x86_64/fpu/multiarch/e_powf.c: Include
20401 <libm-alias-float.h>.
20402 (exp2f): Define using libm_alias_float, or libm_alias_float_other
20403 if [SHARED].
20404 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Include
20405 <libm-alias-float.h>.
20406 (ceilf): Define using libm_alias_float.
20407 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Include
20408 <libm-alias-float.h>.
20409 (floorf): Define using libm_alias_float.
20410 * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Include
20411 <libm-alias-float.h>.
20412 (fmaf): Define using libm_alias_float.
20413 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Include
20414 <libm-alias-float.h>.
20415 (nearbyintf): Define using libm_alias_float.
20416 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Include
20417 <libm-alias-float.h>.
20418 (rintf): Define using libm_alias_float.
20419 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Include
20420 <libm-alias-float.h>.
20421 (truncf): Define using libm_alias_float.
20422 * sysdeps/x86_64/fpu/s_copysignf.S: Include <libm-alias-float.h>.
20423 (copysignf): Define using libm_alias_float.
20424 * sysdeps/x86_64/fpu/s_cosf.S: Include <libm-alias-float.h>.
20425 (cosf): Define using libm_alias_float.
20426 * sysdeps/x86_64/fpu/s_fabsf.c: Include <libm-alias-float.h>.
20427 (fabsf): Define using libm_alias_float.
20428 * sysdeps/x86_64/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
20429 (fmaxf): Define using libm_alias_float.
20430 * sysdeps/x86_64/fpu/s_fminf.S: Include <libm-alias-float.h>.
20431 (fminf): Define using libm_alias_float.
20432 * sysdeps/x86_64/fpu/s_llrintf.S: Include <libm-alias-float.h>.
20433 (llrintf): Define using libm_alias_float.
20434 [!__ILP32__] (lrintf): Likewise.
20435 * sysdeps/x86_64/fpu/s_sincosf.S: Include <libm-alias-float.h>.
20436 (sincosf): Define using libm_alias_float.
20437 * sysdeps/x86_64/fpu/s_sinf.S: Include <libm-alias-float.h>.
20438 (sinf): Define using libm_alias_float.
20439 * sysdeps/x86_64/x32/fpu/s_lrintf.S: Include <libm-alias-float.h>.
20440 (lrintf): Define using libm_alias_float.
20441
20442 * sysdeps/x86_64/fpu/multiarch/s_atan.c: Include
20443 <libm-alias-double.h>.
20444 (atan): Define using libm_alias_double.
20445 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Include
20446 <libm-alias-double.h>.
20447 (ceil): Define using libm_alias_double.
20448 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Include
20449 <libm-alias-double.h>.
20450 (floor): Define using libm_alias_double.
20451 * sysdeps/x86_64/fpu/multiarch/s_fma.c: Include
20452 <libm-alias-double.h>.
20453 (fma): Define using libm_alias_double.
20454 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Include
20455 <libm-alias-double.h>.
20456 (nearbyint): Define using libm_alias_double.
20457 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Include
20458 <libm-alias-double.h>.
20459 (rint): Define using libm_alias_double.
20460 * sysdeps/x86_64/fpu/multiarch/s_sin.c: Include
20461 <libm-alias-double.h>.
20462 (sin): Define using libm_alias_double.
20463 (cos): Likewise.
20464 * sysdeps/x86_64/fpu/multiarch/s_tan.c: Include
20465 <libm-alias-double.h>.
20466 (tan): Define using libm_alias_double.
20467 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Include
20468 <libm-alias-double.h>.
20469 (trunc): Define using libm_alias_double.
20470 * sysdeps/x86_64/fpu/s_copysign.S: Include <libm-alias-double.h>.
20471 (copysign): Define using libm_alias_double.
20472 * sysdeps/x86_64/fpu/s_fabs.c: Include <libm-alias-double.h>.
20473 (fabs): Define using libm_alias_double.
20474 * sysdeps/x86_64/fpu/s_fmax.S: Include <libm-alias-double.h>.
20475 (fmax): Define using libm_alias_double.
20476 * sysdeps/x86_64/fpu/s_fmin.S: Include <libm-alias-double.h>.
20477 (fmin): Define using libm_alias_double.
20478 * sysdeps/x86_64/fpu/s_llrint.S: Include <libm-alias-double.h>.
20479 (llrint): Define using libm_alias_double.
20480 [!__ILP32__] (lrint): Likewise.
20481 * sysdeps/x86_64/x32/fpu/s_lrint.S: Include <libm-alias-double.h>.
20482 (lrint): Define using libm_alias_double.
20483
20484 2017-11-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20485
20486 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
20487 (libm-sysdep_routines): Add s_rintf-generic and s_rint-generic
20488 objects.
20489 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-generic.S: New file.
20490 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Likewise.
20491 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-generic.S: Likewise.
20492 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Likewise.
20493 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Remove file.
20494 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
20495
20496 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
20497 (libm-sysdep_routines): Add s_lrint-generic and s_lrintf-generic
20498 objects.
20499 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-generic.S: New file.
20500 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.c: Likewise.
20501 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-generic.S: Likewise.
20502 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.c: Likewise.
20503 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Remove file.
20504 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
20505
20506 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
20507 (libm-sysdep_routines): Add s_nearbyint-generic and
20508 s_nearbyintf-generic objects.
20509 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint-generic.S: New file.
20510 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.c: Likewise.
20511 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf-generic.S: Likewise.
20512 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.c: Likewise.
20513 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.S: Remove file.
20514 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.S: Likewise.
20515
20516 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
20517 Add s_finitef-generic and s_finite-generic objects.
20518 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-generic.S: New file.
20519 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.c: Likewise.
20520 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-generic.S: Likewise.
20521 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.c: Likewise.
20522 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Remove file.
20523 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Remove file.
20524
20525 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
20526 Add s_isinff-generic and s_isinf-generic objects.
20527 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-generic.S: New file.
20528 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.c: Likewise.
20529 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-generic.S: Likewise.
20530 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.c: Likewise.
20531 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Remove file.
20532 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
20533
20534 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
20535 Add s_isnanf-generic and s_isnan-generic objects.
20536 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-generic.S: New file.
20537 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-generic.S: Likewise.
20538 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.c: Likewise.
20539 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.c: Likewise.
20540 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Remove file.
20541 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
20542
20543 * sysdeps/sparc/sparc-ifunc.h (sparc_libm_ifunc_redirected): New
20544 macro.
20545 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdep_calls): New
20546 rule.
20547 (sysdep_routines): Use sysdep_calls as base.
20548 (libm-sysdep_routines): Add generic rule for symbols shared with
20549 libc. Add s_signbit-generic and s_signbitf-generic objects.
20550 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.c: New file.
20551 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.c: Likewise.
20552 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-generic.S: Likewise.
20553 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-generic.S: Likewise.
20554 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Remove file.
20555 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
20556
20557 2017-11-29 Joseph Myers <joseph@codesourcery.com>
20558
20559 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-float.h>.
20560 * sysdeps/ia64/fpu/e_acosf.S (acosf): Use libm_alias_float_other.
20561 * sysdeps/ia64/fpu/e_acoshf.S (acoshf): Likewise.
20562 * sysdeps/ia64/fpu/e_asinf.S (asinf): Likewise.
20563 * sysdeps/ia64/fpu/e_atan2f.S (atan2f): Likewise.
20564 * sysdeps/ia64/fpu/e_atanhf.S (atanhf): Likewise.
20565 * sysdeps/ia64/fpu/e_coshf.S (coshf): Likewise.
20566 * sysdeps/ia64/fpu/e_exp10f.S (exp10f): Likewise.
20567 * sysdeps/ia64/fpu/e_exp2f.S (exp2f): Likewise.
20568 * sysdeps/ia64/fpu/e_expf.S (expf): Likewise.
20569 * sysdeps/ia64/fpu/e_fmodf.S (fmodf): Likewise.
20570 * sysdeps/ia64/fpu/e_hypotf.S (hypotf): Likewise.
20571 * sysdeps/ia64/fpu/e_lgammaf_r.c (lgammaf_r): Define using
20572 libm_alias_float_r.
20573 * sysdeps/ia64/fpu/e_log2f.S (log2f): Use libm_alias_float_other.
20574 * sysdeps/ia64/fpu/e_logf.S (log10f): Likewise.
20575 (logf): Likewise.
20576 * sysdeps/ia64/fpu/e_powf.S (powf): Likewise.
20577 * sysdeps/ia64/fpu/e_remainderf.S (remainderf): Likewise.
20578 * sysdeps/ia64/fpu/e_sinhf.S (sinhf): Likewise.
20579 * sysdeps/ia64/fpu/e_sqrtf.S (sqrtf): Likewise.
20580 * sysdeps/ia64/fpu/libm_sincosf.S (sincosf): Likewise.
20581 * sysdeps/ia64/fpu/s_asinhf.S (asinhf): Likewise.
20582 * sysdeps/ia64/fpu/s_atanf.S (atanf): Likewise.
20583 * sysdeps/ia64/fpu/s_cbrtf.S (cbrtf): Likewise.
20584 * sysdeps/ia64/fpu/s_ceilf.S (ceilf): Likewise.
20585 * sysdeps/ia64/fpu/s_copysign.S (copysignf): Define using
20586 libm_alias_float.
20587 * sysdeps/ia64/fpu/s_cosf.S (sinf): Use libm_alias_float_other.
20588 (cosf): Likewise.
20589 * sysdeps/ia64/fpu/s_erfcf.S (erfcf): Likewise.
20590 * sysdeps/ia64/fpu/s_erff.S (erff): Likewise.
20591 * sysdeps/ia64/fpu/s_expm1f.S (expm1f): Likewise.
20592 * sysdeps/ia64/fpu/s_fabsf.S (fabsf): Likewise.
20593 * sysdeps/ia64/fpu/s_fdimf.S (fdimf): Likewise.
20594 * sysdeps/ia64/fpu/s_floorf.S (floorf): Likewise.
20595 * sysdeps/ia64/fpu/s_fmaf.S (fmaf): Likewise.
20596 * sysdeps/ia64/fpu/s_fmaxf.S (fmaxf): Likewise.
20597 * sysdeps/ia64/fpu/s_frexpf.c (frexpf): Likewise.
20598 * sysdeps/ia64/fpu/s_ldexpf.c (ldexpf): Likewise.
20599 * sysdeps/ia64/fpu/s_log1pf.S (log1pf): Likewise.
20600 * sysdeps/ia64/fpu/s_logbf.S (logbf): Likewise.
20601 * sysdeps/ia64/fpu/s_modff.S (modff): Likewise.
20602 * sysdeps/ia64/fpu/s_nearbyintf.S (nearbyintf): Likewise.
20603 * sysdeps/ia64/fpu/s_nextafterf.S (nextafterf): Likewise.
20604 * sysdeps/ia64/fpu/s_rintf.S (rintf): Likewise.
20605 * sysdeps/ia64/fpu/s_roundf.S (roundf): Likewise.
20606 * sysdeps/ia64/fpu/s_scalblnf.c (scalblnf): Likewise.
20607 * sysdeps/ia64/fpu/s_scalbnf.c (scalbnf): Define using
20608 libm_alias_float.
20609 * sysdeps/ia64/fpu/s_tanf.S (tanf): Use libm_alias_float_other.
20610 * sysdeps/ia64/fpu/s_tanhf.S (tanhf): Likewise.
20611 * sysdeps/ia64/fpu/s_truncf.S (truncf): Likewise.
20612 * sysdeps/ia64/fpu/w_lgammaf_main.c
20613 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgammaf): Likewise.
20614 * sysdeps/ia64/fpu/w_tgammaf_compat.S (tgammaf): Likewise.
20615
20616 2017-11-28 Mike FABIAN <mfabian@redhat.com>
20617 Alexandre Oliva <aoliva@redhat.com>
20618
20619 [BZ #17750]
20620 * Makefile: add fr_CA.UTF-8 to test-input and LOCALES.
20621 * localedata/fr_CA.UTF-8.in: New file with test data for backward
20622 accents sorting.
20623 * localedata/fr_FR.UTF-8.in: Fix test data for forward accents
20624 sorting.
20625 * localedata/locales/cs_CZ (LC_COLLATE): Remove “define DIACRIT_FORWARD”
20626 * localedata/locales/de_DE (LC_COLLATE): Likewise.
20627 * localedata/locales/hu_HU (LC_COLLATE): Likewise.
20628 * localedata/locales/lb_LU (LC_COLLATE): Likewise.
20629 * localedata/locales/yuw_PG (LC_COLLATE): Likewise.
20630 * localedata/locales/fr_CA (LC_COLLATE): Add “define DIACRIT_BACKWARD”
20631 * localedata/locales/iso14651_t1_common: Use “ifdef DIACRIT_FORWARD”
20632 instead of “ifdef DIACRIT_BACKWARD”.
20633
20634 2017-11-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20635
20636 * config.h.in (HAVE_AS_VIS3_SUPPORT): Remove check for VIS3 support.
20637 * sysdeps/sparc/configure.ac (HAVE_AS_VIS3_SUPPORT): Likewise.
20638 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c: Likewise.
20639 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.c: Likewise.
20640 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: Likewise.
20641 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: Likewise.
20642 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Likewise.
20643 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Likewise.
20644 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Likewise.
20645 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Likewise.
20646 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: Likewise.
20647 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: Likewise.
20648 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Likewise.
20649 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Likewise.
20650 * sysdeps/sparc/sparc-ifunc.h [!HAVE_AS_VIS3_SUPPORT]
20651 (SPARC_ASM_VIS3_IFUNC, SPARC_ASM_VIS3_VIS2_IFUNC): Remove macros.
20652 * sysdeps/sparc/sparc32/sparcv9/Makefile [$(have-as-vis3) != yes]
20653 (ASFLAGS.o, ASFLAGS-.os, ASFLAGS-.op, ASFLAGS-.oS): Remove rules.
20654 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
20655 ($(have-as-vis3) == yes): Remove conditional.
20656 * sysdeps/sparc/sparc64/Makefile (($(have-as-vis3) == yes)):
20657 Likewise.
20658 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-generic.c: New
20659 file.
20660 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-generic.c: New
20661 file.
20662 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-generic.c: New
20663 file.
20664 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-generic.c: New
20665 file.
20666 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-generic.c: New file.
20667 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-generic.c: New file.
20668 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-generic.c: New file.
20669 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-generic.c: New file.
20670 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-generic.c: New file.
20671 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-generic.c: New file.
20672 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-generic.c: New file.
20673 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-generic.c: New file.
20674
20675 2017-11-29 Joseph Myers <joseph@codesourcery.com>
20676
20677 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-double.h>.
20678 * sysdeps/ia64/fpu/e_acos.S (acos): Use libm_alias_double_other.
20679 * sysdeps/ia64/fpu/e_acosh.S (acosh): Likewise.
20680 * sysdeps/ia64/fpu/e_asin.S (asin): Likewise.
20681 * sysdeps/ia64/fpu/e_atan2.S (atan2): Likewise.
20682 * sysdeps/ia64/fpu/e_atanh.S (atanh): Likewise.
20683 * sysdeps/ia64/fpu/e_cosh.S (cosh): Likewise.
20684 * sysdeps/ia64/fpu/e_exp.S (exp): Likewise.
20685 * sysdeps/ia64/fpu/e_exp10.S (exp10): Likewise.
20686 * sysdeps/ia64/fpu/e_exp2.S (exp2): Likewise.
20687 * sysdeps/ia64/fpu/e_fmod.S (fmod): Likewise.
20688 * sysdeps/ia64/fpu/e_hypot.S (hypot): Likewise.
20689 * sysdeps/ia64/fpu/e_lgamma_r.c (lgamma_r): Define using
20690 libm_alias_double_r.
20691 * sysdeps/ia64/fpu/e_log.S (log10): Use libm_alias_double_other.
20692 (log): Likewise.
20693 * sysdeps/ia64/fpu/e_log2.S (log2): Likewise.
20694 * sysdeps/ia64/fpu/e_pow.S (pow): Likewise.
20695 * sysdeps/ia64/fpu/e_remainder.S (remainder): Likewise.
20696 * sysdeps/ia64/fpu/e_sinh.S (sinh): Likewise.
20697 * sysdeps/ia64/fpu/e_sqrt.S (sqrt): Likewise.
20698 * sysdeps/ia64/fpu/libm_sincos.S (sincos): Likewise.
20699 * sysdeps/ia64/fpu/s_asinh.S (asinh): Likewise.
20700 * sysdeps/ia64/fpu/s_atan.S (atan): Likewise.
20701 * sysdeps/ia64/fpu/s_cbrt.S (cbrt): Likewise.
20702 * sysdeps/ia64/fpu/s_ceil.S (ceil): Likewise.
20703 * sysdeps/ia64/fpu/s_copysign.S (copysign): Define using
20704 libm_alias_double.
20705 * sysdeps/ia64/fpu/s_cos.S (sin): Use libm_alias_double_other.
20706 (cos): Likewise.
20707 * sysdeps/ia64/fpu/s_erf.S (erf): Likewise.
20708 * sysdeps/ia64/fpu/s_erfc.S (erfc): Likewise.
20709 * sysdeps/ia64/fpu/s_expm1.S (expm1): Likewise.
20710 * sysdeps/ia64/fpu/s_fabs.S (fabs): Likewise.
20711 * sysdeps/ia64/fpu/s_fdim.S (fdim): Likewise.
20712 * sysdeps/ia64/fpu/s_floor.S (floor): Likewise.
20713 * sysdeps/ia64/fpu/s_fma.S (fma): Likewise.
20714 * sysdeps/ia64/fpu/s_fmax.S (fmax): Likewise.
20715 * sysdeps/ia64/fpu/s_frexp.c (frexp): Likewise.
20716 * sysdeps/ia64/fpu/s_ldexp.c (ldexp): Likewise.
20717 * sysdeps/ia64/fpu/s_log1p.S (log1p): Likewise.
20718 * sysdeps/ia64/fpu/s_logb.S (logb): Likewise.
20719 * sysdeps/ia64/fpu/s_modf.S (modf): Likewise.
20720 * sysdeps/ia64/fpu/s_nearbyint.S (nearbyint): Likewise.
20721 * sysdeps/ia64/fpu/s_nextafter.S (nextafter): Likewise.
20722 * sysdeps/ia64/fpu/s_rint.S (rint): Likewise.
20723 * sysdeps/ia64/fpu/s_round.S (round): Likewise.
20724 * sysdeps/ia64/fpu/s_scalbn.c (scalbn): Define using
20725 libm_alias_double.
20726 * sysdeps/ia64/fpu/s_tan.S (tan): Use libm_alias_double_other.
20727 * sysdeps/ia64/fpu/s_tanh.S (tanh): Likewise.
20728 * sysdeps/ia64/fpu/s_trunc.S (trunc): Likewise.
20729 * sysdeps/ia64/fpu/w_lgamma_main.c
20730 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgamma): Likewise.
20731 * sysdeps/ia64/fpu/w_tgamma_compat.S (tgamma): Likewise.
20732
20733 2017-11-28 John David Anglin <danglin@gcc.gnu.org>
20734
20735 * sysdeps/hppa/start.S (_start): Check PIC instead of SHARED. Load
20736 address of $global$ into %dp register earlier. Use pc-relative
20737 instruction sequence for PIC case.
20738
20739 2017-11-28 Joseph Myers <joseph@codesourcery.com>
20740
20741 * sysdeps/i386/fpu/s_asinhf.S: Include <libm-alias-float.h>.
20742 (asinhf): Define using libm_alias_float.
20743 * sysdeps/i386/fpu/s_atanf.S: Include <libm-alias-float.h>.
20744 (atanf): Define using libm_alias_float.
20745 * sysdeps/i386/fpu/s_cbrtf.S: Include <libm-alias-float.h>.
20746 (cbrtf): Define using libm_alias_float.
20747 * sysdeps/i386/fpu/s_ceilf.S: Include <libm-alias-float.h>.
20748 (ceilf): Define using libm_alias_float.
20749 * sysdeps/i386/fpu/s_copysignf.S: Include <libm-alias-float.h>.
20750 (copysignf): Define using libm_alias_float.
20751 * sysdeps/i386/fpu/s_expm1f.S: Include <libm-alias-float.h>.
20752 (expm1f): Define using libm_alias_float.
20753 * sysdeps/i386/fpu/s_fabsf.S: Include <libm-alias-float.h>.
20754 (fabsf): Define using libm_alias_float.
20755 * sysdeps/i386/fpu/s_floorf.S: Include <libm-alias-float.h>.
20756 (floorf): Define using libm_alias_float.
20757 * sysdeps/i386/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
20758 (fmaxf): Define using libm_alias_float.
20759 * sysdeps/i386/fpu/s_fminf.S: Include <libm-alias-float.h>.
20760 (fminf): Define using libm_alias_float.
20761 * sysdeps/i386/fpu/s_frexpf.S: Include <libm-alias-float.h>.
20762 (frexpf): Define using libm_alias_float.
20763 * sysdeps/i386/fpu/s_llrintf.S: Include <libm-alias-float.h>.
20764 (llrintf): Define using libm_alias_float.
20765 * sysdeps/i386/fpu/s_logbf.S: Include <libm-alias-float.h>.
20766 (logbf): Define using libm_alias_float.
20767 * sysdeps/i386/fpu/s_lrintf.S: Include <libm-alias-float.h>.
20768 (lrintf): Define using libm_alias_float.
20769 * sysdeps/i386/fpu/s_nearbyintf.S: Include <libm-alias-float.h>.
20770 (nearbyintf): Define using libm_alias_float.
20771 * sysdeps/i386/fpu/s_remquof.S: Include <libm-alias-float.h>.
20772 (remquof): Define using libm_alias_float.
20773 * sysdeps/i386/fpu/s_rintf.S: Include <libm-alias-float.h>.
20774 (rintf): Define using libm_alias_float.
20775 * sysdeps/i386/fpu/s_truncf.S: Include <libm-alias-float.h>.
20776 (truncf): Define using libm_alias_float.
20777 * sysdeps/i386/i686/fpu/multiarch/e_exp2f.c: Include
20778 <libm-alias-float.h>.
20779 (exp2f): Define using libm_alias_float, or libm_alias_float_other
20780 if [SHARED].
20781 * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Include
20782 <libm-alias-float.h>.
20783 (expf): Define using libm_alias_float, or libm_alias_float_other
20784 if [SHARED].
20785 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c: Include
20786 <libm-alias-float.h>.
20787 (log2f): Define using libm_alias_float, or libm_alias_float_other
20788 if [SHARED].
20789 * sysdeps/i386/i686/fpu/multiarch/e_logf.c: Include
20790 <libm-alias-float.h>.
20791 (logf): Define using libm_alias_float, or libm_alias_float_other
20792 if [SHARED].
20793 * sysdeps/i386/i686/fpu/multiarch/e_powf.c: Include
20794 <libm-alias-float.h>.
20795 (powf): Define using libm_alias_float, or libm_alias_float_other
20796 if [SHARED].
20797 * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Include
20798 <libm-alias-float.h>.
20799 (cosf): Define using libm_alias_float.
20800 * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: Include
20801 <libm-alias-float.h>.
20802 (sincosf): Define using libm_alias_float.
20803 * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: Include
20804 <libm-alias-float.h>.
20805 (sinf): Define using libm_alias_float.
20806 * sysdeps/i386/i686/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
20807 (fmaxf): Define using libm_alias_float.
20808 * sysdeps/i386/i686/fpu/s_fminf.S: Include <libm-alias-float.h>.
20809 (fminf): Define using libm_alias_float.
20810 * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
20811 <libm-alias-float.h>.
20812 (fmaf): Define using libm_alias_float.
20813
20814 * sysdeps/i386/fpu/s_asinh.S: Include <libm-alias-double.h>.
20815 (asinh): Define using libm_alias_double.
20816 * sysdeps/i386/fpu/s_atan.S: Include <libm-alias-double.h>.
20817 (atan): Define using libm_alias_double.
20818 * sysdeps/i386/fpu/s_cbrt.S: Include <libm-alias-double.h>.
20819 (cbrt): Define using libm_alias_double.
20820 * sysdeps/i386/fpu/s_ceil.S: Include <libm-alias-double.h>.
20821 (ceil): Define using libm_alias_double.
20822 * sysdeps/i386/fpu/s_copysign.S: Include <libm-alias-double.h>.
20823 (copysign): Define using libm_alias_double.
20824 * sysdeps/i386/fpu/s_expm1.S: Include <libm-alias-double.h>.
20825 (expm1): Define using libm_alias_double.
20826 * sysdeps/i386/fpu/s_fabs.S: Include <libm-alias-double.h>.
20827 (fabs): Define using libm_alias_double.
20828 * sysdeps/i386/fpu/s_fdim.c: Include <libm-alias-double.h>.
20829 (fdim): Define using libm_alias_double.
20830 * sysdeps/i386/fpu/s_floor.S: Include <libm-alias-double.h>.
20831 (floor): Define using libm_alias_double.
20832 * sysdeps/i386/fpu/s_fmax.S: Include <libm-alias-double.h>.
20833 (fmax): Define using libm_alias_double.
20834 * sysdeps/i386/fpu/s_fmin.S: Include <libm-alias-double.h>.
20835 (fmin): Define using libm_alias_double.
20836 * sysdeps/i386/fpu/s_frexp.S: Include <libm-alias-double.h>.
20837 (frexp): Define using libm_alias_double.
20838 * sysdeps/i386/fpu/s_llrint.S: Include <libm-alias-double.h>.
20839 (llrint): Define using libm_alias_double.
20840 * sysdeps/i386/fpu/s_logb.S: Include <libm-alias-double.h>.
20841 (logb): Define using libm_alias_double.
20842 * sysdeps/i386/fpu/s_lrint.S: Include <libm-alias-double.h>.
20843 (lrint): Define using libm_alias_double.
20844 * sysdeps/i386/fpu/s_nearbyint.S: Include <libm-alias-double.h>.
20845 (nearbyint): Define using libm_alias_double.
20846 * sysdeps/i386/fpu/s_remquo.S: Include <libm-alias-double.h>.
20847 (remquo): Define using libm_alias_double.
20848 * sysdeps/i386/fpu/s_rint.S: Include <libm-alias-double.h>.
20849 (rint): Define using libm_alias_double.
20850 * sysdeps/i386/fpu/s_trunc.S: Include <libm-alias-double.h>.
20851 (trunc): Define using libm_alias_double.
20852 * sysdeps/i386/i686/fpu/s_fmax.S: Include <libm-alias-double.h>.
20853 (fmax): Define using libm_alias_double.
20854 * sysdeps/i386/i686/fpu/s_fmin.S: Include <libm-alias-double.h>.
20855 (fmin): Define using libm_alias_double.
20856 * sysdeps/i386/i686/multiarch/s_fma.c: Include <libm-alias-double.h>.
20857 (fma): Define using libm_alias_double.
20858
20859 2017-11-28 H.J. Lu <hongjiu.lu@intel.com>
20860
20861 [BZ #22370]
20862 * elf/dl-hwcaps.c (ROUND): Removed.
20863 (_dl_important_hwcaps): Replace ROUND with ELF_NOTE_DESC_OFFSET
20864 and ELF_NOTE_NEXT_OFFSET.
20865 * elf/dl-load.c (ROUND): Removed.
20866 (open_verify): Replace ROUND with ELF_NOTE_NEXT_OFFSET.
20867 * elf/readelflib.c (ROUND): Removed.
20868 (process_elf_file): Replace ROUND with ELF_NOTE_NEXT_OFFSET.
20869 * include/elf.h [!_ISOMAC]: Include <libc-pointer-arith.h>.
20870 [!_ISOMAC] (ELF_NOTE_DESC_OFFSET): New.
20871 [!_ISOMAC] (ELF_NOTE_NEXT_OFFSET): Likewise.
20872
20873 2017-11-28 Joseph Myers <joseph@codesourcery.com>
20874
20875 * sysdeps/s390/fpu/s_fmaf.c: Include <libm-alias-float.h>.
20876 [!__fmaf] (fmaf): Define using libm_alias_float.
20877
20878 * sysdeps/s390/fpu/s_fma.c: Include <libm-alias-double.h>.
20879 [!__fma] (fma): Define using libm_alias_double.
20880 * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: Remove.
20881
20882 2017-11-28 Mike FABIAN <mfabian@redhat.com>
20883
20884 [BZ #22336]
20885 * localedata/locales/cs_CZ (LC_COLLATE): Use “copy "iso14651_t1"”
20886 and implement the collation rules for cs from CLDR on top of that.
20887 * Makefile: Add cs_CZ.UTF-8 to test-input.
20888 * cs_CZ.UTF-8.in: New file with test data to test the Czech sorting.
20889
20890 2017-11-28 Siddhesh Poyarekar <siddhesh@sourceware.org>
20891
20892 * localedata/Makefile (LOCALES): Remove duplicate cs_CZ.UTF-8.
20893
20894 2017-11-28 Victor Rodriguez <victor.rodriguez.bahena@intel.com>
20895 Icarus Sparry <icarus.w.sparry@intel.com>
20896
20897 * benchtests/Makefile:Add BENCHSET to allow subsets of
20898 benchmarks to be run.
20899 * benchtests/README: Add documentation for: Running subsets of
20900 benchmarks.
20901
20902 2017-11-28 Victor Rodriguez <victor.rodriguez.bahena@intel.com>
20903
20904 * benchtests/scripts/benchout.schema.json: Fix regex to accept a wider
20905 range of tests names.
20906
20907 * benchtests/scripts/benchout.schema.json: Add throughput as accepted
20908 result from property and remove "max", min" and "mean" from
20909 required properties based on benchtests/bench-skeleton.c.
20910
20911 2017-11-28 Florian Weimer <fweimer@redhat.com>
20912
20913 [BZ #20826]
20914 Turn posix/tst-getaddrinfo4, posix/tst-getaddrinfo5 into xtests
20915 due to Internet requirement.
20916 * posix/Makefile (tests): Remove tst-getaddrinfo4,
20917 tst-getaddrinfo5.
20918 (xtests): Add tst-getaddrinfo4, tst-getaddrinfo5.
20919
20920 2017-11-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20921
20922 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
20923 [$(subdir) = string] (sysdep_routines): Add memset-ultra1.
20924 * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = string]
20925 (sysdep_routines): Add memset-ultra1.
20926 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-ultra1.S: New
20927 file.
20928 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset.c: Likewise.
20929 * sysdeps/sparc/sparc32/sparcv9/multiarch/bzero.c: Likewise.
20930 * sysdeps/sparc/sparc64/multiarch/ifunc-memset.h: Likewise.
20931 * sysdeps/sparc/sparc64/multiarch/memset-ultra1.S: Likewise.
20932 * sysdeps/sparc/sparc64/multiarch/memset.c: Likewise.
20933 * sysdeps/sparc/sparc64/multiarch/bzero.c: Likewise.
20934 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset.S: Remove file.
20935 * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
20936
20937 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-ultra1.S: New
20938 file.
20939 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy.c: Likewise.
20940 * sysdeps/sparc/sparc32/sparcv9/multiarch/mempcpy.c: Likewise.
20941 * sysdeps/sparc/sparc64/multiarch/ifunc-memcpy.h: Likewise.
20942 * sysdeps/sparc/sparc64/multiarch/memcpy-ultra1.S: Likewise.
20943 * sysdeps/sparc/sparc64/multiarch/memcpy.c: Likewise.
20944 * sysdeps/sparc/sparc64/multiarch/mempcpy.c: Likewise.
20945 * sysdeps/sparc/sparc-ifunc.h (sparc_libc_ifunc_redirected): New
20946 macro.
20947 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
20948 [$(subdir) = string] (sysdep_routines): Add memcpy-ultra1.
20949 * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = string]
20950 (sysdep_routines): Add memcpy-ultra1.
20951 * sysdeps/sparc/sparc64/multiarch/memcpy.S: Remove file.
20952 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy.S: Likewise.
20953
20954 2017-11-28 Joseph Myers <joseph@codesourcery.com>
20955
20956 * sysdeps/alpha/fpu/cfloat-compat.h: Include <libm-alias-float.h>.
20957 (cfloat_versions): Take function argument without trailing 'f'.
20958 Call libm_alias_float_other.
20959 * sysdeps/alpha/fpu/cabsf.c: Update call to cfloat_versions.
20960 * sysdeps/alpha/fpu/cargf.c: Likewise.
20961 * sysdeps/alpha/fpu/cimagf.c: Likewise.
20962 * sysdeps/alpha/fpu/conjf.c: Likewise.
20963 * sysdeps/alpha/fpu/crealf.c: Likewise.
20964 * sysdeps/alpha/fpu/s_cacosf.c: Likewise.
20965 * sysdeps/alpha/fpu/s_cacoshf.c: Likewise.
20966 * sysdeps/alpha/fpu/s_casinf.c: Likewise.
20967 * sysdeps/alpha/fpu/s_casinhf.c: Likewise.
20968 * sysdeps/alpha/fpu/s_catanf.c: Likewise.
20969 * sysdeps/alpha/fpu/s_catanhf.c: Likewise.
20970 * sysdeps/alpha/fpu/s_ccosf.c: Likewise.
20971 * sysdeps/alpha/fpu/s_ccoshf.c: Likewise.
20972 * sysdeps/alpha/fpu/s_cexpf.c: Likewise.
20973 * sysdeps/alpha/fpu/s_clogf.c: Likewise.
20974 * sysdeps/alpha/fpu/s_cpowf.c: Likewise.
20975 * sysdeps/alpha/fpu/s_cprojf.c: Likewise.
20976 * sysdeps/alpha/fpu/s_csinf.c: Likewise.
20977 * sysdeps/alpha/fpu/s_csinhf.c: Likewise.
20978 * sysdeps/alpha/fpu/s_csqrtf.c: Likewise.
20979 * sysdeps/alpha/fpu/s_ctanf.c: Likewise.
20980 * sysdeps/alpha/fpu/s_ctanhf.c: Likewise.
20981 * sysdeps/alpha/fpu/s_clog10f.c: Include <libm-alias-float.h>.
20982 (clog10f): Use libm_alias_float_other.
20983 * sysdeps/alpha/fpu/s_ceilf.c: Include <libm-alias-float.h>.
20984 (ceilf): Define using libm_alias_float.
20985 * sysdeps/alpha/fpu/s_copysignf.c: Include <libm-alias-float.h>.
20986 (copysignf): Define using libm_alias_float.
20987 * sysdeps/alpha/fpu/s_fabsf.c: Include <libm-alias-float.h>.
20988 (fabsf): Define using libm_alias_float.
20989 * sysdeps/alpha/fpu/s_floorf.c: Include <libm-alias-float.h>.
20990 (floorf): Define using libm_alias_float.
20991 * sysdeps/alpha/fpu/s_fmax.S: Include <libm-alias-float.h>.
20992 (fmaxf): Define using libm_alias_float.
20993 * sysdeps/alpha/fpu/s_fmin.S: Include <libm-alias-float.h>.
20994 (fminf): Define using libm_alias_float.
20995 * sysdeps/alpha/fpu/s_lrintf.c: Include <libm-alias-float.h>.
20996 (lrintf): Define using libm_alias_float.
20997 (llrintf): Likewise.
20998 * sysdeps/alpha/fpu/s_lroundf.c: Include <libm-alias-float.h>.
20999 (lroundf): Define using libm_alias_float.
21000 (llroundf): Likewise.
21001 * sysdeps/alpha/fpu/s_rintf.c: Include <libm-alias-float.h>.
21002 (rintf): Define using libm_alias_float.
21003 * sysdeps/alpha/fpu/s_truncf.c: Include <libm-alias-float.h>.
21004 (truncf): Define using libm_alias_float.
21005
21006 * sysdeps/aarch64/fpu/s_ceilf.c: Include <libm-alias-float.h>.
21007 (ceilf): Define using libm_alias_float.
21008 * sysdeps/aarch64/fpu/s_floorf.c: Include <libm-alias-float.h>.
21009 (floorf): Define using libm_alias_float.
21010 * sysdeps/aarch64/fpu/s_fmaf.c: Include <libm-alias-float.h>.
21011 (fmaf): Define using libm_alias_float.
21012 * sysdeps/aarch64/fpu/s_fmaxf.c: Include <libm-alias-float.h>.
21013 (fmaxf): Define using libm_alias_float.
21014 * sysdeps/aarch64/fpu/s_fminf.c: Include <libm-alias-float.h>.
21015 (fminf): Define using libm_alias_float.
21016 * sysdeps/aarch64/fpu/s_llrintf.c: Include <libm-alias-float.h>.
21017 (llrintf): Define using libm_alias_float.
21018 * sysdeps/aarch64/fpu/s_llroundf.c: Include <libm-alias-float.h>.
21019 (llroundf): Define using libm_alias_float.
21020 * sysdeps/aarch64/fpu/s_lrintf.c: Include <libm-alias-float.h>.
21021 (lrintf): Define using libm_alias_float.
21022 * sysdeps/aarch64/fpu/s_lroundf.c: Include <libm-alias-float.h>.
21023 (lroundf): Define using libm_alias_float.
21024 * sysdeps/aarch64/fpu/s_nearbyintf.c: Include
21025 <libm-alias-float.h>.
21026 (nearbyintf): Define using libm_alias_float.
21027 * sysdeps/aarch64/fpu/s_rintf.c: Include <libm-alias-float.h>.
21028 (rintf): Define using libm_alias_float.
21029 * sysdeps/aarch64/fpu/s_roundf.c: Include <libm-alias-float.h>.
21030 (roundf): Define using libm_alias_float.
21031 * sysdeps/aarch64/fpu/s_truncf.c: Include <libm-alias-float.h>.
21032 (truncf): Define using libm_alias_float.
21033
21034 * sysdeps/alpha/fpu/s_ceil.c: Include <libm-alias-double.h>.
21035 (ceil): Define using libm_alias_double.
21036 * sysdeps/alpha/fpu/s_copysign.c: Include <libm-alias-double.h>.
21037 (copysign): Define using libm_alias_double.
21038 * sysdeps/alpha/fpu/s_fabs.c: Include <libm-alias-double.h>.
21039 (fabs): Define using libm_alias_double.
21040 * sysdeps/alpha/fpu/s_floor.c: Include <libm-alias-double.h>.
21041 (floor): Define using libm_alias_double.
21042 * sysdeps/alpha/fpu/s_fmax.S: Include <libm-alias-double.h>.
21043 (fmax): Define using libm_alias_double.
21044 * sysdeps/alpha/fpu/s_fmin.S: Include <libm-alias-double.h>.
21045 (fmin): Define using libm_alias_double.
21046 * sysdeps/alpha/fpu/s_lrint.c: Include <libm-alias-double.h>.
21047 (lrint): Define using libm_alias_double.
21048 (llrint): Likewise.
21049 * sysdeps/alpha/fpu/s_lround.c: Include <libm-alias-double.h>.
21050 (lround): Define using libm_alias_double.
21051 (llround): Likewise.
21052 * sysdeps/alpha/fpu/s_rint.c: Include <libm-alias-double.h>.
21053 (rint): Define using libm_alias_double.
21054 * sysdeps/alpha/fpu/s_trunc.c: Include <libm-alias-double.h>.
21055 (trunc): Define using libm_alias_double.
21056
21057 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h
21058 (libm_alias_double_r): Add semicolon after weak_alias call.
21059
21060 2017-11-27 Joseph Myers <joseph@codesourcery.com>
21061
21062 * sysdeps/aarch64/fpu/s_ceil.c: Include <libm-alias-double.h>.
21063 (ceil): Define using libm_alias_double.
21064 * sysdeps/aarch64/fpu/s_floor.c: Include <libm-alias-double.h>.
21065 (floor): Define using libm_alias_double.
21066 * sysdeps/aarch64/fpu/s_fma.c: Include <libm-alias-double.h>.
21067 (fma): Define using libm_alias_double.
21068 * sysdeps/aarch64/fpu/s_fmax.c: Include <libm-alias-double.h>.
21069 (fmax): Define using libm_alias_double.
21070 * sysdeps/aarch64/fpu/s_fmin.c: Include <libm-alias-double.h>.
21071 (fmin): Define using libm_alias_double.
21072 * sysdeps/aarch64/fpu/s_llrint.c: Include <libm-alias-double.h>.
21073 (llrint): Define using libm_alias_double.
21074 * sysdeps/aarch64/fpu/s_llround.c: Include <libm-alias-double.h>.
21075 (llround): Define using libm_alias_double.
21076 * sysdeps/aarch64/fpu/s_lrint.c: Include <libm-alias-double.h>.
21077 (lrint): Define using libm_alias_double.
21078 * sysdeps/aarch64/fpu/s_lround.c: Include <libm-alias-double.h>.
21079 (lround): Define using libm_alias_double.
21080 * sysdeps/aarch64/fpu/s_nearbyint.c: Include <libm-alias-double.h>.
21081 (nearbyint): Define using libm_alias_double.
21082 * sysdeps/aarch64/fpu/s_rint.c: Include <libm-alias-double.h>.
21083 (rint): Define using libm_alias_double.
21084 * sysdeps/aarch64/fpu/s_round.c: Include <libm-alias-double.h>.
21085 (round): Define using libm_alias_double.
21086 * sysdeps/aarch64/fpu/s_trunc.c: Include <libm-alias-double.h>.
21087 (trunc): Define using libm_alias_double.
21088
21089 2017-11-27 Florian Weimer <fweimer@redhat.com>
21090
21091 * sysdeps/unix/sysv/linux/mlock2.c: New file.
21092 * sysdeps/unix/sysv/linux/tst-mlock2.c: Likewise.
21093 * sysdeps/unix/sysv/linux/Makefile (routines): Add mlock2.
21094 (tests): Add tst-mlock2.
21095 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Export mlock2.
21096 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_MLOCK2)
21097 [__LINUX_KERNEL_VERSION >= 4.4]: Define.
21098 * sysdeps/unix/sysv/linux/libc**.abilist: Update.
21099 * manual/memory.texi (Page Lock Functions): Move @end deftypefun
21100 for mlock. Document mlock2.
21101
21102 2017-11-27 Joseph Myers <joseph@codesourcery.com>
21103
21104 * sysdeps/ia64/Makeconfig (float64x-alias-fcts): New variable.
21105 * sysdeps/ieee754/float128/Makeconfig (float64x-alias-fcts):
21106 Likewise.
21107 * sysdeps/ieee754/ldbl-128/Makeconfig (float64x-alias-fcts):
21108 Likewise.
21109 * sysdeps/x86/Makeconfig: New file.
21110 * bits/floatn-common.h (__HAVE_FLOAT64X): Remove macro.
21111 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
21112 * bits/floatn.h (__HAVE_FLOAT64X): New macro.
21113 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
21114 * sysdeps/ia64/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
21115 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
21116 * sysdeps/ieee754/ldbl-128/bits/floatn.h (__HAVE_FLOAT64X):
21117 Likewise.
21118 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
21119 * sysdeps/mips/ieee754/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
21120 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
21121 * sysdeps/powerpc/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
21122 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
21123 * sysdeps/x86/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
21124 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
21125 * manual/math.texi (Mathematics): Document support for _Float64x.
21126 * math/Versions (GLIBC_2.27): Add _Float64x functions.
21127 * stdlib/Versions (GLIBC_2.27): Likewise.
21128 * wcsmbs/Versions (GLIBC_2.27): Likewise.
21129 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
21130 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
21131 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
21132 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
21133 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
21134 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
21135 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
21136 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
21137 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
21138 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
21139 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
21140 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
21141 Likewise.
21142 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
21143 Likewise.
21144 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
21145 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
21146 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
21147 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
21148 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
21149 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
21150 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
21151 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
21152 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
21153 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
21154 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
21155 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
21156 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
21157 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
21158
21159 2017-11-27 Andreas Schwab <schwab@suse.de>
21160
21161 * elf/Makefile (dl-routines): Add dl-sort-maps.
21162 * elf/dl-sort-maps.c: New file.
21163 * sysdeps/generic/ldsodefs.h (_dl_sort_fini): Don't declare.
21164 (_dl_sort_maps): Declare.
21165 * elf/dl-fini.c (_dl_sort_fini): Remove.
21166 (_dl_fini): Use _dl_sort_maps instead of _dl_sort_fini.
21167 * elf/dl-close.c (_dl_close_worker): Likewise.
21168 * elf/dl-deps.c (_dl_map_object_deps): Use _dl_sort_maps instead of
21169 open-coding it.
21170 * elf/dl-open.c (dl_open_worker): Likewise.
21171
21172 2017-11-24 Joseph Myers <joseph@codesourcery.com>
21173
21174 * sysdeps/ieee754/float128/s_fromfpf128.c (fromfpf128): Define
21175 using libm_alias_float128.
21176 * sysdeps/ieee754/float128/s_fromfpxf128.c (fromfpxf128):
21177 Likewise.
21178 * sysdeps/ieee754/float128/s_setpayloadf128.c (setpayloadf128):
21179 Likewise.
21180 * sysdeps/ieee754/float128/s_setpayloadsigf128.c
21181 (setpayloadsigf128): Likewise.
21182 * sysdeps/ieee754/float128/s_ufromfpf128.c (ufromfpf128):
21183 Likewise.
21184 * sysdeps/ieee754/float128/s_ufromfpxf128.c (ufromfpxf128):
21185 Likewise.
21186
21187 * sysdeps/powerpc/powerpc64le/Makefile ($(foreach
21188 suf,$(all-object-suffixes),$(objpfx)test-float64x%$(suf))): Add
21189 -mfloat128 to CFLAGS.
21190 ($(foreach
21191 suf,$(all-object-suffixes),$(objpfx)test-ifloat64x%$(suf))):
21192 Likewise.
21193 (CFLAGS-libm-test-support-float64x.c): New variable.
21194 ($(objpfx)test-float64x% $(objpfx)test-ifloat64x%): Add
21195 $(f128-loader-link) to gnulib-tests.
21196
21197 * sysdeps/generic/libm-alias-float128.h: Include <bits/floatn.h>.
21198 (libm_alias_float128_other_r): If
21199 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE], define f64x
21200 alias.
21201 (libm_alias_float128_r): Add semicolon after weak_alias call.
21202 * sysdeps/generic/libm-alias-ldouble.h
21203 (libm_alias_ldouble_other_r_f128): New macro.
21204 (libm_alias_ldouble_other_r_f64x): Likewise.
21205 (libm_alias_ldouble_other_r): Use libm_alias_ldouble_other_r_f128
21206 and libm_alias_ldouble_other_r_f64x.
21207 (libm_alias_ldouble_r): Add semicolon after weak_alias call.
21208 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h
21209 (libm_alias_ldouble_other_r_f128): New macro.
21210 (libm_alias_ldouble_other_r_f64x): Likewise.
21211 (libm_alias_ldouble_other_r): Use libm_alias_ldouble_other_r_f128
21212 and libm_alias_ldouble_other_r_f64x.
21213
21214 * stdlib/strfroml.c: Always include <stdlib.h>.
21215 [__HAVE_FLOAT64X_LONG_DOUBLE] (strfromf64x): Define and later
21216 undefine as macro and define as weak alias.
21217 * sysdeps/ieee754/float128/strfromf128.c: Include <bits/floatn.h>.
21218 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE]: Include
21219 <stdlib.h>.
21220 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strfromf64x):
21221 Define and later undefine as macro and define as weak alias.
21222
21223 * stdlib/strtold.c [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x):
21224 Define and later undefine as macro. Define as weak alias if
21225 [!USE_WIDE_CHAR].
21226 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x): Define and later
21227 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
21228 * sysdeps/ieee754/float128/strtof128.c: Include <bits/floatn.h>.
21229 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x):
21230 Define and later undefine as macro. Define as weak alias if
21231 [!USE_WIDE_CHAR].
21232 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x):
21233 Define and later undefine as macro. Define as weak alias if
21234 [USE_WIDE_CHAR].
21235 * sysdeps/ieee754/float128/strtof128_l.c
21236 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l):
21237 Define and later undefine as macro. Define as weak alias if
21238 [!USE_WIDE_CHAR].
21239 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l):
21240 Define and later undefine as macro. Define as weak alias if
21241 [USE_WIDE_CHAR].
21242 * sysdeps/ieee754/ldbl-128/strtold_l.c
21243 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
21244 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
21245 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
21246 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
21247 * sysdeps/ieee754/ldbl-64-128/strtold_l.c
21248 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
21249 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
21250 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
21251 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
21252 * sysdeps/ieee754/ldbl-96/strtold_l.c
21253 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
21254 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
21255 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
21256 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
21257
21258 * math/test-float64x.h: New file.
21259 * math/Makefile (type-float64x-yes): New variable.
21260 (test-types): Add $(type-float64x-$(float64x-alias-fcts)).
21261
21262 * sysdeps/generic/math_private.h (min_of_type_f): Make into a
21263 function-like macro.
21264 (min_of_type_): Likewise.
21265 (min_of_type_l): Likewise.
21266 (min_of_type_f128): Likewise.
21267 (min_of_type): Pass () as last argument of __MATH_TG.
21268
21269 * stdlib/tst-strtod-round-skeleton.c
21270 (__STDC_WANT_IEC_60559_TYPES_EXT__): Define before including
21271 headers.
21272
21273 * math/gen-tgmath-tests.py (Type.init_types): Pass suffix argument
21274 for combinations of long double with _Float64 and _Float64x.
21275
21276 * bits/libm-simd-decl-stubs.h (__DECL_SIMD_cosf16): New macro.
21277 (__DECL_SIMD_cosf32): Likewise.
21278 (__DECL_SIMD_cosf64): Likewise.
21279 (__DECL_SIMD_cosf32x): Likewise.
21280 (__DECL_SIMD_cosf64x): Likewise.
21281 (__DECL_SIMD_cosf128x): Likewise.
21282 (__DECL_SIMD_sinf16): Likewise.
21283 (__DECL_SIMD_sinf32): Likewise.
21284 (__DECL_SIMD_sinf64): Likewise.
21285 (__DECL_SIMD_sinf32x): Likewise.
21286 (__DECL_SIMD_sinf64x): Likewise.
21287 (__DECL_SIMD_sinf128x): Likewise.
21288 (__DECL_SIMD_sincosf16): Likewise.
21289 (__DECL_SIMD_sincosf32): Likewise.
21290 (__DECL_SIMD_sincosf64): Likewise.
21291 (__DECL_SIMD_sincosf32x): Likewise.
21292 (__DECL_SIMD_sincosf64x): Likewise.
21293 (__DECL_SIMD_sincosf128x): Likewise.
21294 (__DECL_SIMD_logf16): Likewise.
21295 (__DECL_SIMD_logf32): Likewise.
21296 (__DECL_SIMD_logf64): Likewise.
21297 (__DECL_SIMD_logf32x): Likewise.
21298 (__DECL_SIMD_logf64x): Likewise.
21299 (__DECL_SIMD_logf128x): Likewise.
21300 (__DECL_SIMD_expf16): Likewise.
21301 (__DECL_SIMD_expf32): Likewise.
21302 (__DECL_SIMD_expf64): Likewise.
21303 (__DECL_SIMD_expf32x): Likewise.
21304 (__DECL_SIMD_expf64x): Likewise.
21305 (__DECL_SIMD_expf128x): Likewise.
21306 (__DECL_SIMD_powf16): Likewise.
21307 (__DECL_SIMD_powf32): Likewise.
21308 (__DECL_SIMD_powf64): Likewise.
21309 (__DECL_SIMD_powf32x): Likewise.
21310 (__DECL_SIMD_powf64x): Likewise.
21311 (__DECL_SIMD_powf128x): Likewise.
21312
21313 * stdlib/Versions (libc): Move entries for wcstof128 and
21314 wcstof128_l to ....
21315 * wcsmbs/Versions (libc): ... here.
21316 Include <float128-abi.h>.
21317
21318 2017-11-24 Florian Weimer <fweimer@redhat.com>
21319
21320 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
21321 bits/mman-shared.h.
21322 * sysdeps/unix/sysv/linux/bits/mman-linux.h: Include
21323 <bits/mman-shared.h>.
21324 (MFD_CLOEXEC, MFD_ALLOW_SEALING, MFD_HUGETLB, memfd_create): Move
21325 to ...
21326 * sysdeps/unix/sysv/linux/bits/mman-shared.h: ... this new file.
21327 Add #ifndef guard for the MFD_* constants based on MFD_CLOEXEC.
21328 * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Include
21329 <bits/mman-shared.h>.
21330
21331 2017-11-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21332
21333 [BZ #22457]
21334 * sysdeps/posix/preadv_common.c (PREADV): Use mmap/munmap instead of
21335 posix_memalign/free.
21336 * sysdeps/posix/pwritev_common.c (PWRITEV): Likewise.
21337
21338 2017-11-22 Mike FABIAN <mfabian@redhat.com>
21339
21340 [BZ #22469]
21341 * localedata/locales/pl_PL (LC_COLLATE): Use “copy "iso14651_t1"”
21342 and implement the collation rules for pl from CLDR on top of that.
21343 * Makefile: Add pl_PL.UTF-8 to test-input and to the list
21344 of locales to be built for testing.
21345 * pl_PL.UTF-8.in: New file with test data to test the Polish sorting.
21346
21347 2017-11-23 Joseph Myers <joseph@codesourcery.com>
21348
21349 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-ldouble.h>.
21350 * sysdeps/ia64/fpu/e_acoshl.S (acoshl): Use
21351 libm_alias_ldouble_other.
21352 * sysdeps/ia64/fpu/e_acosl.S (acosl): Likewise.
21353 * sysdeps/ia64/fpu/e_asinl.S (asinl): Likewise.
21354 * sysdeps/ia64/fpu/e_atanhl.S (atanhl): Likewise.
21355 * sysdeps/ia64/fpu/e_coshl.S (coshl): Likewise.
21356 * sysdeps/ia64/fpu/e_exp10l.S (exp10l): Likewise.
21357 * sysdeps/ia64/fpu/e_exp2l.S (exp2l): Likewise.
21358 * sysdeps/ia64/fpu/e_fmodl.S (fmodl): Likewise.
21359 * sysdeps/ia64/fpu/e_hypotl.S (hypotl): Likewise.
21360 * sysdeps/ia64/fpu/e_lgammal_r.c (lgammal_r): Define using
21361 libm_alias_ldouble_r.
21362 * sysdeps/ia64/fpu/e_log2l.S (log2l): Use
21363 libm_alias_ldouble_other.
21364 * sysdeps/ia64/fpu/e_logl.S (logl): Likewise.
21365 (log10l): Likewise.
21366 * sysdeps/ia64/fpu/e_powl.S (powl): Likewise.
21367 * sysdeps/ia64/fpu/e_remainderl.S (remainderl): Likewise.
21368 * sysdeps/ia64/fpu/e_sinhl.S (sinhl): Likewise.
21369 * sysdeps/ia64/fpu/e_sqrtl.S (sqrtl): Likewise.
21370 * sysdeps/ia64/fpu/libm_sincosl.S (sincosl): Likewise.
21371 * sysdeps/ia64/fpu/s_asinhl.S (asinhl): Likewise.
21372 * sysdeps/ia64/fpu/s_atanl.S (atanl): Likewise.
21373 (atan2l): Likewise.
21374 * sysdeps/ia64/fpu/s_cbrtl.S (cbrtl): Likewise.
21375 * sysdeps/ia64/fpu/s_ceill.S (ceill): Likewise.
21376 * sysdeps/ia64/fpu/s_copysign.S (copysignl): Define using
21377 libm_alias_ldouble.
21378 * sysdeps/ia64/fpu/s_cosl.S (sinl): Use libm_alias_ldouble_other.
21379 (cosl): Likewise.
21380 * sysdeps/ia64/fpu/s_erfcl.S (erfcl): Likewise.
21381 * sysdeps/ia64/fpu/s_erfl.S (erfl): Likewise.
21382 * sysdeps/ia64/fpu/s_expm1l.S (expm1l): Likewise.
21383 (expl): Likewise.
21384 * sysdeps/ia64/fpu/s_fabsl.S (fabsl): Likewise.
21385 * sysdeps/ia64/fpu/s_fdiml.S (fdiml): Likewise.
21386 * sysdeps/ia64/fpu/s_floorl.S (floorl): Likewise.
21387 * sysdeps/ia64/fpu/s_fmal.S (fmal): Likewise.
21388 * sysdeps/ia64/fpu/s_fmaxl.S (fmaxl): Likewise.
21389 * sysdeps/ia64/fpu/s_frexpl.c (frexpl): Likewise.
21390 * sysdeps/ia64/fpu/s_ldexpl.c (ldexpl): Likewise.
21391 * sysdeps/ia64/fpu/s_log1pl.S (log1pl): Likewise.
21392 * sysdeps/ia64/fpu/s_logbl.S (logbl): Likewise.
21393 * sysdeps/ia64/fpu/s_modfl.S (modfl): Likewise.
21394 * sysdeps/ia64/fpu/s_nearbyintl.S (nearbyintl): Define using
21395 libm_alias_ldouble.
21396 * sysdeps/ia64/fpu/s_nextafterl.S (nextafterl): Use
21397 libm_alias_ldouble_other.
21398 * sysdeps/ia64/fpu/s_rintl.S (rintl): Likewise.
21399 * sysdeps/ia64/fpu/s_roundl.S (roundl): Likewise.
21400 * sysdeps/ia64/fpu/s_scalbnl.c (scalbnl): Define using
21401 libm_alias_ldouble.
21402 * sysdeps/ia64/fpu/s_tanhl.S (tanhl): Use
21403 libm_alias_ldouble_other.
21404 * sysdeps/ia64/fpu/s_tanl.S (tanl): Likewise.
21405 * sysdeps/ia64/fpu/s_truncl.S (truncl): Likewise.
21406 * sysdeps/ia64/fpu/w_lgammal_main.c
21407 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgammal): Likewise.
21408 * sysdeps/ia64/fpu/w_tgammal_compat.S (tgammal): Likewise.
21409
21410 2017-11-23 Florian Weimer <fweimer@redhat.com>
21411
21412 * malloc/malloc.c (tcache_thread_shutdown): Rename from
21413 tcache_thread_freeres. Define for USE_TCACHE and !USE_TCACHE
21414 alike. Remove freeres marker.
21415 * malloc/arena.c (arena_thread_freeres): Call
21416 tcache_thread_shutdown.
21417
21418 2017-11-23 Florian Weimer <fweimer@redhat.com>
21419
21420 [BZ #22459]
21421 Export nscd hash function as __nss_hash.
21422 * include/nss.h (__nss_hash): Declare.
21423 * nis/nis_hash.c (__nis_hash): Call __nss_hash. Turn into compat
21424 symbol.
21425 * nscd/Makefile (aux, nscd-modules): Remove nscd_hash.
21426 * nscd/cache.c (cache_search, cache_add): Call __nss_hash instead
21427 of __nscd_hash.
21428 * nscd/nscd_helper.c (__nscd_cache_search): Likewise.
21429 * nscd/nscd_hash.h, nscd/nscd_hash.c: Remove files.
21430 * nss/Makefiles (routines): Add nss_hash.
21431 * nss/Versions (GLIBC_PRIVATE): Export __nss_hash.
21432 * nss/nss_hash.c: Rename from nis/nis_hash.c.
21433 (__nss_hash): Rename from __nis_hash. Define hidden alias.
21434 * nis/rpcsvc/nislib.h (__nis_hash): Remove declaration.
21435
21436 2017-11-23 Florian Weimer <fweimer@redhat.com>
21437
21438 [BZ #22478]
21439 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Retry on EINTR.
21440 Return error code, not -1.
21441 * signal/tst-sigwait-eintr.c: New file.
21442 * signal/Makefile (tests): Add tst-sigwait-eintr.
21443
21444 2017-11-23 Florian Weimer <fweimer@redhat.com>
21445
21446 Linux: Add memfd_create system call wrapper
21447 * sysdeps/unix/sysv/linux/Makefile [misc] (tests): Add
21448 tst-memfd_create.
21449 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_GNU]
21450 (MFD_CLOEXEC, MFD_ALLOW_SEALING): Define.
21451 [__USE_GNU] (memfd_create): Declare.
21452 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Add memfd_create.
21453 * sysdeps/unix/sysv/linux/syscalls.list (memfd_create): Add.
21454 * sysdeps/unix/sysv/linux/tst-memfd_create.c: New file.
21455 * sysdeps/unix/sysv/linux/**.abilist: Update.
21456 * manual/llio.texi (Memory-mapped I/O): Document memfd_create.
21457
21458 2017-11-22 Joseph Myers <joseph@codesourcery.com>
21459
21460 * localedata/gen-locale.sh: Fix typo in variable name.
21461
21462 * resolv/res_debug.c (p_secstodate): Condition definition on
21463 [SHLIB_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)]. Define
21464 directly as __p_secstodate, and as a compat symbol. Do not use
21465 libresolv_hidden_def.
21466 * resolv/resolv.h (p_secstodate): Remove macro and function
21467 declaration.
21468 * resolv/ns_print.c (ns_sprintrrf): Print times with %lu, not
21469 using p_secstodate.
21470 * include/resolv.h (__p_secstodate): Do not use
21471 libresolv_hidden_proto.
21472 * resolv/Makefile (tests): Move tst-p_secstodate to ....
21473 (tests-internal): ... here.
21474 * resolv/tst-p_secstodate.c: Include <shlib-compat.h>. Condition
21475 all contents on [TEST_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)]
21476 and declare and use __p_secstodate and use compat_symbol_reference
21477 in that case.
21478 [!TEST_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)] (do_test): Add
21479 implementation returning 77.
21480
21481 [BZ #22463]
21482 * resolv/res_debug.c: Include <libc-diag.h>.
21483 (p_secstodate): Assert time_t at least as wide as u_long. On
21484 overflow, use integer seconds since the epoch as output, or use
21485 "<overflow>" as output and set errno to EOVERFLOW if integer
21486 seconds since the epoch would be 14 or more characters.
21487 (p_secstodate) [__GNUC_PREREQ (7, 0)]: Disable -Wformat-overflow=
21488 for sprintf call.
21489 * resolv/tst-p_secstodate.c: New file.
21490 * resolv/Makefile (tests): Add tst-p_secstodate.
21491 ($(objpfx)tst-p_secstodate): Depend on $(objpfx)libresolv.so.
21492
21493 * sysdeps/sparc/sparc64/soft-fp/s_frexpl.c: Remove file.
21494 * sysdeps/sparc/sparc64/soft-fp/s_scalblnl.c: Likewise.
21495 * sysdeps/sparc/sparc64/soft-fp/s_scalbnl.c: Likewise.
21496
21497 2017-11-22 Paul Eggert <eggert@cs.ucla.edu>
21498
21499 * posix/regcomp.c (init_word_char): Add comments.
21500
21501 2017-11-22 Joseph Myers <joseph@codesourcery.com>
21502
21503 [BZ #22447]
21504 * sysdeps/unix/getlogin_r.c (__getlogin_r): Use __strnlen not
21505 strlen to compute length of ut_user and set trailing NUL byte of
21506 result explicitly.
21507
21508 2017-11-21 Mike FABIAN <mfabian@redhat.com>
21509
21510 [BZ #15537]
21511 * localedata/locales/lv_LV (LC_COLLATE): Fix collation by
21512 using “copy "iso14651_t1"” and then implementing the
21513 collation rules for lv from CLDR on top of that.
21514 * Makefile: Add lv_LV.UTF-8 to test-input and to the list
21515 of locales to be built for testing.
21516 * lv_LV.UTF-8.in: New file with test data to test the Latvian
21517 sorting.
21518
21519 2017-11-21 Joseph Myers <joseph@codesourcery.com>
21520
21521 * sysdeps/unix/sysv/linux/hppa/bits/mman.h
21522 [__USE_MISC] (MADV_SPACEAVAIL): Remove macro.
21523 [__USE_MISC] (MADV_VPS_PURGE): Likewise.
21524 [__USE_MISC] (MADV_VPS_INHERIT): Likewise.
21525 [__USE_MISC] (MADV_HWPOISON): New macro.
21526 [__USE_MISC] (MADV_SOFT_OFFLINE): Likewise.
21527
21528 2017-11-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21529
21530 * nptl/pthreadP.h (ASSERT_PTHREAD_INTERNAL_SIZE): Add workarond for
21531 -Wmissing-braces on GCC 4.9.
21532
21533 2017-11-21 Stefan Liebler <stli@linux.vnet.ibm.com>
21534
21535 * sysdeps/s390/s390-64/start.S (_start): Add cfi information for r14.
21536 * sysdeps/s390/s390-32/start.S (_start): Likewise
21537 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S
21538 (thread_start): Likewise.
21539 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S
21540 (thread_start): Likewise.
21541 * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S
21542 (__makecontext_ret): Likewise.
21543 * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S
21544 (__makecontext_ret): Likewise.
21545
21546 2017-11-21 Stefan Liebler <stli@linux.vnet.ibm.com>
21547
21548 * include/wchar.h (__wcsnlen, __wcscat, __wcsncpy, __wcpncpy,
21549 __wcschrnul): Remove attribute_hidden.
21550
21551 2017-11-20 Paul Eggert <eggert@cs.ucla.edu>
21552
21553 regex: don't assume uint64_t or uint32_t
21554 This avoids -Werror=overflow errors for 32-bit systems in
21555 the 64-bit case. Problem reported by Joseph Myers in:
21556 https://sourceware.org/ml/libc-alpha/2017-11/msg00694.html
21557 Also, when this code is used in Gnulib it ports to platforms
21558 that lack uint64_t and uint32_t. The C standard doesn't guarantee
21559 them, and on some 32-bit compilers there is no uint64_t.
21560 Problem reported by Gianluigi Tiesi in:
21561 http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00154.html
21562 * posix/regcomp.c (init_word_char): Don't assume that the types
21563 uint64_t and uint32_t exist. Adapted from Gnulib patch
21564 2012-05-27T06:40:00!eggert@cs.ucla.edu. See:
21565 https://git.savannah.gnu.org/cgit/gnulib.git/commit/?id=252b52457da7887667c036d18cc5169777615bb0
21566
21567 2017-11-20 Siddhesh Poyarekar <siddhesh@sourceware.org>
21568
21569 * sysdeps/aarch64/memset-reg.h: New file.
21570 * sysdeps/aarch64/memset.S: Use it.
21571 (__memset): Rename to MEMSET macro.
21572 [ZVA_MACRO]: Use zva_macro.
21573 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
21574 Add memset_generic and memset_falkor.
21575 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
21576 (__libc_ifunc_impl_list): Add memset ifuncs.
21577 * sysdeps/aarch64/multiarch/init-arch.h (INIT_ARCH): New
21578 local variable zva_size.
21579 * sysdeps/aarch64/multiarch/memset.c: New file.
21580 * sysdeps/aarch64/multiarch/memset_generic.S: New file.
21581 * sysdeps/aarch64/multiarch/memset_falkor.S: New file.
21582 * sysdeps/aarch64/multiarch/rtld-memset.S: New file.
21583 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c
21584 (DCZID_DZP_MASK): New macro.
21585 (DCZID_BS_MASK): Likewise.
21586 (init_cpu_features): Read and set zva_size.
21587 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h
21588 (struct cpu_features): New member zva_size.
21589
21590 * benchtests/bench-memcpy-walk.c (START_SIZE): Set to 128.
21591 * benchtests/bench-memmove-walk.c (START_SIZE): Likewise.
21592 * benchtests/bench-memset-walk.c (START_SIZE): Likewise.
21593
21594 * benchtests/bench-memcpy-walk.c (do_one_test): Copy only
21595 backwards. Fix timing computation.
21596 * benchtests/bench-memmove-walk.c (do_one_test): Likewise.
21597 * benchtests/bench-memset-walk.c (do_one_test): Walk backwards
21598 on memset by N at a time. Fix timing computation.
21599
21600 2017-11-20 Florian Weimer <fweimer@redhat.com>
21601
21602 * manual/llio.texi (Memory-mapped I/O): Document MAP_HUGETLB,
21603 MADV_HUGEPAGE, MADV_NOHUGEPAGE.
21604
21605 2017-11-19 Florian Weimer <fweimer@redhat.com>
21606
21607 manual: Document mprotect
21608 * manual/memory.texi (Memory Protection): New section.
21609 * manual/llio.texi (Memory-mapped I/O): Remove duplicate
21610 documentation of PROT_* flags and reference the Memory Protection
21611 section instead.
21612
21613 2017-11-19 Florian Weimer <fweimer@redhat.com>
21614
21615 * manual/llio.texi (I/O Primitives): Move preadv, preadv64,
21616 pwritev, pwritev64, preadv2, preadv64v2, pwritev2, pwritev64v2 ...
21617 (Scatter-Gather): ... to here. Remove misleading comment.
21618
21619 2017-11-18 Christian Brauner <christian.brauner@ubuntu.com>
21620
21621 * support/support_become_root.c (setup_uid_gid_mapping): Fix comment
21622 style.
21623
21624 * support/support_become_root.c (setup_uid_gid_mapping): Don't fail
21625 when /proc/<pid>/setgroups does not exist.
21626
21627 2017-11-18 Florian Weimer <fweimer@redhat.com>
21628
21629 * sysdeps/unix/sysv/linux/tst-ttyname.c
21630 (become_root_in_mount_ns): Remove.
21631 (do_in_chroot_1): Call support_enter_mount_namespace.
21632 (do_in_chroot_2): Likewise.
21633 (do_test): Call support_become_root early.
21634
21635 2017-11-18 Florian Weimer <fweimer@redhat.com>
21636
21637 * support/namespace.h (support_enter_mount_namespace): Declare.
21638 * support/support_enter_mount_namespace.c: New file.
21639 * support/Makefile (libsupport-routines): Add
21640 support_enter_mount_namespace.
21641
21642 2017-11-18 Florian Weimer <fweimer@redhat.com>
21643
21644 * support/temp_file.c (support_create_temp_directory): Use
21645 test_dir and do not rely on the presence of the XXXXXX suffix.
21646 * support/temp_file.h (support_create_temp_directory): Update
21647 comment.
21648 * support/tst-xreadlink.c (do_test): Adjust.
21649 * support/support_chroot.c (support_chroot_create): Likewise.
21650
21651 2017-11-17 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
21652
21653 * sysdeps/powerpc/bits/hwcap.h (PPC_FEATURE2_HTM_NO_SUSPEND): New
21654 macro.
21655 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add
21656 htm-no-suspend.
21657
21658 2017-11-17 Joseph Myers <joseph@codesourcery.com>
21659
21660 * sysdeps/x86_64/fpu/e_expl.S: Include <libm-alias-ldouble.h>.
21661 [USE_AS_EXPM1L] (expm1l): Define using libm_alias_ldouble.
21662 * sysdeps/x86_64/fpu/s_ceill.S: Include <libm-alias-ldouble.h>.
21663 (ceill): Define using libm_alias_ldouble.
21664 * sysdeps/x86_64/fpu/s_copysignl.S: Include
21665 <libm-alias-ldouble.h>.
21666 (copysignl): Define using libm_alias_ldouble.
21667 * sysdeps/x86_64/fpu/s_fabsl.S: Include <libm-alias-ldouble.h>.
21668 (fabsl): Define using libm_alias_ldouble.
21669 * sysdeps/x86_64/fpu/s_floorl.S: Include <libm-alias-ldouble.h>.
21670 (floorl): Define using libm_alias_ldouble.
21671 * sysdeps/x86_64/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
21672 (fmaxl): Define using libm_alias_ldouble.
21673 * sysdeps/x86_64/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
21674 (fminl): Define using libm_alias_ldouble.
21675 * sysdeps/x86_64/fpu/s_llrintl.S: Include <libm-alias-ldouble.h>.
21676 (llrintl): Define using libm_alias_ldouble.
21677 (lrintl): Likewise.
21678 * sysdeps/x86_64/fpu/s_nearbyintl.S: Include
21679 <libm-alias-ldouble.h>.
21680 (nearbyintl): Define using libm_alias_ldouble.
21681 * sysdeps/x86_64/fpu/s_truncl.S: Include <libm-alias-ldouble.h>.
21682 (truncl): Define using libm_alias_ldouble.
21683 * sysdeps/x86_64/x32/fpu/s_lrintl.S: Include
21684 <libm-alias-ldouble.h>.
21685 (lrintl): Define using libm_alias_ldouble.
21686
21687 * sysdeps/i386/fpu/e_expl.S: Include <libm-alias-ldouble.h>.
21688 [USE_AS_EXPM1L] (expm1l): Define using libm_alias_ldouble.
21689 * sysdeps/i386/fpu/s_asinhl.S: Include <libm-alias-ldouble.h>.
21690 (asinhl): Define using libm_alias_ldouble.
21691 * sysdeps/i386/fpu/s_atanl.c: Include <libm-alias-ldouble.h>.
21692 (atanl): Define using libm_alias_ldouble.
21693 * sysdeps/i386/fpu/s_cbrtl.S: Include <libm-alias-ldouble.h>.
21694 (cbrtl): Define using libm_alias_ldouble.
21695 * sysdeps/i386/fpu/s_ceill.S: Include <libm-alias-ldouble.h>.
21696 (ceill): Define using libm_alias_ldouble.
21697 * sysdeps/i386/fpu/s_copysignl.S: Include <libm-alias-ldouble.h>.
21698 (copysignl): Define using libm_alias_ldouble.
21699 * sysdeps/i386/fpu/s_fabsl.S: Include <libm-alias-ldouble.h>.
21700 (fabsl): Define using libm_alias_ldouble.
21701 * sysdeps/i386/fpu/s_floorl.S: Include <libm-alias-ldouble.h>.
21702 (floorl): Define using libm_alias_ldouble.
21703 * sysdeps/i386/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
21704 (fmaxl): Define using libm_alias_ldouble.
21705 * sysdeps/i386/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
21706 (fminl): Define using libm_alias_ldouble.
21707 * sysdeps/i386/fpu/s_frexpl.S: Include <libm-alias-ldouble.h>.
21708 (frexpl): Define using libm_alias_ldouble.
21709 * sysdeps/i386/fpu/s_llrintl.S: Include <libm-alias-ldouble.h>.
21710 (llrintl): Define using libm_alias_ldouble.
21711 * sysdeps/i386/fpu/s_logbl.c: Include <libm-alias-ldouble.h>.
21712 (logbl): Define using libm_alias_ldouble.
21713 * sysdeps/i386/fpu/s_lrintl.S: Include <libm-alias-ldouble.h>.
21714 (lrintl): Define using libm_alias_ldouble.
21715 * sysdeps/i386/fpu/s_nearbyintl.S: Include <libm-alias-ldouble.h>.
21716 (nearbyintl): Define using libm_alias_ldouble.
21717 * sysdeps/i386/fpu/s_nextafterl.c: Include <libm-alias-ldouble.h>.
21718 (nextafterl): Define using libm_alias_ldouble.
21719 * sysdeps/i386/fpu/s_remquol.S: Include <libm-alias-ldouble.h>.
21720 (remquol): Define using libm_alias_ldouble.
21721 * sysdeps/i386/fpu/s_rintl.c: Include <libm-alias-ldouble.h>.
21722 (rintl): Define using libm_alias_ldouble.
21723 * sysdeps/i386/fpu/s_truncl.S: Include <libm-alias-ldouble.h>.
21724 (truncl): Define using libm_alias_ldouble.
21725 * sysdeps/i386/i686/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
21726 (fmaxl): Define using libm_alias_ldouble.
21727 * sysdeps/i386/i686/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
21728 (fminl): Define using libm_alias_ldouble.
21729
21730 * bits/floatn-common.h [!__ASSEMBLER]: Disable everything related
21731 to C syntax instead of availability and properties of types.
21732 * bits/floatn.h [!__ASSEMBLER]: Likewise.
21733 * sysdeps/ia64/bits/floatn.h [!__ASSEMBLER]: Likewise.
21734 * sysdeps/ieee754/ldbl-128/bits/floatn.h [!__ASSEMBLER]: Likewise.
21735 * sysdeps/mips/ieee754/bits/floatn.h [!__ASSEMBLER]: Likewise.
21736 * sysdeps/powerpc/bits/floatn.h [!__ASSEMBLER]: Likewise.
21737 * sysdeps/x86/bits/floatn.h [!__ASSEMBLER]: Likewise.
21738
21739 2017-11-17 Florian Weimer <fweimer@redhat.com>
21740
21741 support_become_root: Enable file creation in namespaces.
21742 * support/support_become_root.c (setup_mapping): New function.
21743 (support_become_root): Call it.
21744
21745 2017-11-17 Joseph Myers <joseph@codesourcery.com>
21746
21747 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_DCPOP): New
21748 macro.
21749
21750 2017-11-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21751
21752 * sysdeps/aarch64/fpu/Makefile (CFLAGS-s_fmax.c, CFLAGS-s_fmaxf.c,
21753 CFLAGS-s_fmin.c, CFLAGS-s_fminf.c): New rule: add -ffinite-math-only.
21754
21755 2017-11-16 Joseph Myers <joseph@codesourcery.com>
21756
21757 * sysdeps/unix/sysv/linux/net/if_arp.h (ARPHRD_RAWIP): New macro.
21758
21759 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
21760 version to 4.14.
21761
21762 2017-11-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
21763
21764 * INSTALL: Fix botched up regeneration.
21765
21766 * NEWS: Update sourceare link to https.
21767 * configure.ac: Likewise.
21768 * crypt/md5test-giant.c: Likewise.
21769 * dlfcn/bug-atexit1.c: Likewise.
21770 * dlfcn/bug-atexit2.c: Likewise.
21771 * localedata/README: Likewise.
21772 * malloc/tst-mallocfork.c: Likewise.
21773 * manual/install.texi: Likewise.
21774 * nptl/tst-pthread-getattr.c: Likewise.
21775 * stdio-common/tst-fgets.c: Likewise.
21776 * stdio-common/tst-fwrite.c: Likewise.
21777 * sunrpc/Makefile: Likewise.
21778 * sysdeps/arm/armv7/multiarch/memcpy_impl.S: Likewise.
21779 * wcsmbs/tst-mbrtowc2.c: Likewise.
21780 * configure: Regenerate.
21781 * INSTALL: Regenerate.
21782
21783 2017-11-15 Martin Sebor <msebor@redhat.com>
21784
21785 * misc/sys/cdefs.h (__attribute_nonstring__): New macro.
21786 * sysdeps/gnu/bits/utmp.h (struct utmp): Use it.
21787 * sysdeps/unix/sysv/linux/s390/bits/utmp.h (struct utmp): Same.
21788
21789 2017-11-15 Luke Shumaker <lukeshu@parabola.nu>
21790
21791 [BZ #22145]
21792 * sysdeps/unix/sysv/linux/tst-ttyname.c: New file.
21793 * sysdeps/unix/sysv/linux/Makefile: Add tst-ttyname to tests.
21794
21795 [BZ #22145]
21796 * sysdeps/unix/sysv/linux/ttyname.c (ttyname):
21797 Defer is_pty check until end of the function.
21798 * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
21799
21800 [BZ #22145]
21801 * sysdeps/unix/sysv/linux/ttyname.h (is_mytty): New function.
21802 * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Call is_mytty.
21803 (ttyname): Likewise.
21804 * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
21805 (__ttyname_r): Likewise.
21806
21807 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Change return type from
21808 int to bool.
21809
21810 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Update doc reference.
21811
21812 * manual/terminal.texi (Is It a Terminal):
21813 Mention ENODEV for ttyname and ttyname_r.
21814
21815 2017-11-15 Joseph Myers <joseph@codesourcery.com>
21816
21817 * sysdeps/unix/sysv/linux/bits/socket.h (MSG_ZEROCOPY): New enum
21818 constant and macro.
21819
21820 * sysdeps/unix/sysv/linux/bits/mman-linux.h
21821 [__USE_MISC] (MADV_WIPEONFORK): New macro.
21822 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
21823 * sysdeps/unix/sysv/linux/hppa/bits/mman.h
21824 [__USE_MISC] (MADV_WIPEONFORK): Likewise.
21825 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
21826
21827 2017-11-15 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21828
21829 * signal/sigrelse.c (sigrelse): Optimize implementation.
21830
21831 * sysdeps/posix/sigpause.c (do_sigpause): Remove.
21832 (__sigpause): Rely on __sigsuspend to implement single thread
21833 optimization. Add LIBC_CANCEL_HANDLED for cancellation marking.
21834
21835 2017-11-15 Joseph Myers <joseph@codesourcery.com>
21836
21837 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
21838 kernel version to 4.14.
21839
21840 2017-11-15 Steve Ellcey <sellcey@cavium.com>
21841
21842 [BZ #22442]
21843 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex):
21844 Check if ifname is too long.
21845
21846 2017-11-15 Luke Shumaker <lukeshu@parabola.nu>
21847
21848 * sysdeps/unix/sysv/linux/epoll_wait.c: Include <sysdep-cancel.h>.
21849
21850 2017-11-15 Mike FABIAN <mfabian@redhat.com>
21851
21852 * localedata/locales/ka_GE (LC_MESSAGES): Add “X” back to yesexpr,
21853 was accidentally lost.
21854
21855 2017-11-15 Mike FABIAN <mfabian@redhat.com>
21856
21857 * localedata/locales/az_IR: Add standard copyright header.
21858
21859 2017-11-15 Florian Weimer <fweimer@redhat.com>
21860
21861 [BZ #22439]
21862 * malloc/malloc.c (__malloc_info): Count all heaps in an arena,
21863 not just the top one. Output a new "subheaps" statistic.
21864
21865 2017-11-15 Florian Weimer <fweimer@redhat.com>
21866
21867 [BZ #22408]
21868 * malloc/malloc.c (__malloc_info): Obtain arena heap statistics
21869 under the per-arena lock.
21870 * malloc/Makefile (tests): Add tst-malloc_info.
21871 (tst-malloc_info): Link with libpthread.
21872 * malloc/tst-malloc_info.c: New file.
21873
21874 2017-11-15 Joseph Myers <joseph@codesourcery.com>
21875
21876 [BZ #21660]
21877 * math/tgmath.h (__HAVE_BUILTIN_TGMATH): New macro.
21878 [__HAVE_BUILTIN_TGMATH] (__TG_F16_ARG): Likewise.
21879 [__HAVE_BUILTIN_TGMATH] (__TG_F32_ARG): Likewise.
21880 [__HAVE_BUILTIN_TGMATH] (__TG_F64_ARG): Likewise.
21881 [__HAVE_BUILTIN_TGMATH] (__TG_F128_ARG): Likewise.
21882 [__HAVE_BUILTIN_TGMATH] (__TG_F32X_ARG): Likewise.
21883 [__HAVE_BUILTIN_TGMATH] (__TG_F64X_ARG): Likewise.
21884 [__HAVE_BUILTIN_TGMATH] (__TG_F128X_ARG): Likewise.
21885 [__HAVE_BUILTIN_TGMATH] (__TGMATH_FUNCS): Likewise.
21886 [__HAVE_BUILTIN_TGMATH] (__TGMATH_RCFUNCS): Likewise.
21887 [__HAVE_BUILTIN_TGMATH] (__TGMATH_1): Likewise.
21888 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2): Likewise.
21889 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2STD): Likewise.
21890 [__HAVE_BUILTIN_TGMATH] (__TGMATH_3): Likewise.
21891 [__HAVE_BUILTIN_TGMATH] (__TGMATH_1C): Likewise.
21892 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2C): Likewise.
21893 (__tgml): Make conditional on [!__HAVE_BUILTIN_TGMATH].
21894 (__floating_type): Likewise.
21895 (__real_integer_type): Likewise.
21896 (__complex_integer_type): Likewise.
21897 (__expr_is_real): Likewise.
21898 (__tgmath_real_type_sub): Likewise.
21899 (__tgmath_real_type): Likewise.
21900 (__tgmath_complex_type_sub): Likewise.
21901 (__tgmath_complex_type): Likewise.
21902 (__TGMATH_F128): Likewise.
21903 (__TGMATH_CF128): Likewise.
21904 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_ONLY): Define using
21905 new macros.
21906 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
21907 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_FIRST_REAL_ONLY):
21908 Likewise.
21909 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_FIRST_REAL_STD_ONLY):
21910 Likewise.
21911 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_ONLY): Likewise.
21912 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
21913 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
21914 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY):
21915 Likewise.
21916 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_REAL_ONLY): Likewise.
21917 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY):
21918 Likewise.
21919 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_IMAG): Likewise.
21920 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_IMAG): Likewise.
21921 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_IMAG_RET_REAL):
21922 Likewise.
21923 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_IMAG): Likewise.
21924 (__TGMATH_UNARY_REAL_IMAG_RET_REAL_SAME): New macro.
21925 (carg): Use __TGMATH_UNARY_REAL_IMAG_RET_REAL_SAME.
21926 (cimag): Likewise.
21927 (creal): Likewise.
21928
21929 2017-11-14 Joseph Myers <joseph@codesourcery.com>
21930
21931 * string/tester.c (test_stpncpy): Disable -Wstringop-truncation
21932 for stpncpy calls for GCC 8.
21933 (test_strncat): Disable -Wstringop-truncation warning for strncat
21934 calls for GCC 8. Disable -Wstringop-overflow= warning for one
21935 strncat call for GCC 7.
21936 (test_strncpy): Disable -Wstringop-truncation warning for strncpy
21937 calls for GCC 8.
21938 (test_memcmp): Use memcpy instead of strncpy for calls not copying
21939 trailing NUL.
21940
21941 * string/bug-strncat1.c: Include <libc-diag.h>.
21942 (main): Disable -Wstringop-truncation for strncat call for GCC 8.
21943
21944 2017-11-13 Claude Paroz <claude@2xlibre.net>
21945
21946 [BZ #22387]
21947 * localedata/locales/aa_DJ: Improved readibility by replacing
21948 <Uxxxx> sequences in the ASCII printable range by their ASCII
21949 character equivalents.
21950 * localedata/locales/aa_ER: Likewise.
21951 * localedata/locales/aa_ER@saaho: Likewise.
21952 * localedata/locales/aa_ET: Likewise.
21953 * localedata/locales/af_ZA: Likewise.
21954 * localedata/locales/agr_PE: Likewise.
21955 * localedata/locales/ak_GH: Likewise.
21956 * localedata/locales/am_ET: Likewise.
21957 * localedata/locales/anp_IN: Likewise.
21958 * localedata/locales/ar_AE: Likewise.
21959 * localedata/locales/ar_BH: Likewise.
21960 * localedata/locales/ar_DZ: Likewise.
21961 * localedata/locales/ar_EG: Likewise.
21962 * localedata/locales/ar_IN: Likewise.
21963 * localedata/locales/ar_IQ: Likewise.
21964 * localedata/locales/ar_JO: Likewise.
21965 * localedata/locales/ar_KW: Likewise.
21966 * localedata/locales/ar_LB: Likewise.
21967 * localedata/locales/ar_LY: Likewise.
21968 * localedata/locales/ar_MA: Likewise.
21969 * localedata/locales/ar_OM: Likewise.
21970 * localedata/locales/ar_QA: Likewise.
21971 * localedata/locales/ar_SA: Likewise.
21972 * localedata/locales/ar_SD: Likewise.
21973 * localedata/locales/ar_SS: Likewise.
21974 * localedata/locales/ar_SY: Likewise.
21975 * localedata/locales/ar_TN: Likewise.
21976 * localedata/locales/ar_YE: Likewise.
21977 * localedata/locales/as_IN: Likewise.
21978 * localedata/locales/ast_ES: Likewise.
21979 * localedata/locales/ayc_PE: Likewise.
21980 * localedata/locales/az_AZ: Likewise.
21981 * localedata/locales/az_IR: Likewise.
21982 * localedata/locales/be_BY: Likewise.
21983 * localedata/locales/be_BY@latin: Likewise.
21984 * localedata/locales/bem_ZM: Likewise.
21985 * localedata/locales/ber_DZ: Likewise.
21986 * localedata/locales/ber_MA: Likewise.
21987 * localedata/locales/bg_BG: Likewise.
21988 * localedata/locales/bhb_IN: Likewise.
21989 * localedata/locales/bho_IN: Likewise.
21990 * localedata/locales/bi_VU: Likewise.
21991 * localedata/locales/bn_BD: Likewise.
21992 * localedata/locales/bn_IN: Likewise.
21993 * localedata/locales/bo_CN: Likewise.
21994 * localedata/locales/bo_IN: Likewise.
21995 * localedata/locales/br_FR: Likewise.
21996 * localedata/locales/brx_IN: Likewise.
21997 * localedata/locales/bs_BA: Likewise.
21998 * localedata/locales/byn_ER: Likewise.
21999 * localedata/locales/ca_AD: Likewise.
22000 * localedata/locales/ca_ES: Likewise.
22001 * localedata/locales/ca_FR: Likewise.
22002 * localedata/locales/ca_IT: Likewise.
22003 * localedata/locales/ce_RU: Likewise.
22004 * localedata/locales/chr_US: Likewise.
22005 * localedata/locales/cmn_TW: Likewise.
22006 * localedata/locales/crh_UA: Likewise.
22007 * localedata/locales/cs_CZ: Likewise.
22008 * localedata/locales/csb_PL: Likewise.
22009 * localedata/locales/cv_RU: Likewise.
22010 * localedata/locales/cy_GB: Likewise.
22011 * localedata/locales/da_DK: Likewise.
22012 * localedata/locales/de_AT: Likewise.
22013 * localedata/locales/de_BE: Likewise.
22014 * localedata/locales/de_CH: Likewise.
22015 * localedata/locales/de_DE: Likewise.
22016 * localedata/locales/de_IT: Likewise.
22017 * localedata/locales/de_LI: Likewise.
22018 * localedata/locales/de_LU: Likewise.
22019 * localedata/locales/doi_IN: Likewise.
22020 * localedata/locales/dv_MV: Likewise.
22021 * localedata/locales/dz_BT: Likewise.
22022 * localedata/locales/el_CY: Likewise.
22023 * localedata/locales/el_GR: Likewise.
22024 * localedata/locales/en_AG: Likewise.
22025 * localedata/locales/en_AU: Likewise.
22026 * localedata/locales/en_BW: Likewise.
22027 * localedata/locales/en_CA: Likewise.
22028 * localedata/locales/en_DK: Likewise.
22029 * localedata/locales/en_GB: Likewise.
22030 * localedata/locales/en_HK: Likewise.
22031 * localedata/locales/en_IE: Likewise.
22032 * localedata/locales/en_IL: Likewise.
22033 * localedata/locales/en_IN: Likewise.
22034 * localedata/locales/en_NG: Likewise.
22035 * localedata/locales/en_NZ: Likewise.
22036 * localedata/locales/en_PH: Likewise.
22037 * localedata/locales/en_SG: Likewise.
22038 * localedata/locales/en_US: Likewise.
22039 * localedata/locales/en_ZA: Likewise.
22040 * localedata/locales/en_ZM: Likewise.
22041 * localedata/locales/en_ZW: Likewise.
22042 * localedata/locales/eo: Likewise.
22043 * localedata/locales/es_AR: Likewise.
22044 * localedata/locales/es_BO: Likewise.
22045 * localedata/locales/es_CL: Likewise.
22046 * localedata/locales/es_CO: Likewise.
22047 * localedata/locales/es_CR: Likewise.
22048 * localedata/locales/es_CU: Likewise.
22049 * localedata/locales/es_DO: Likewise.
22050 * localedata/locales/es_EC: Likewise.
22051 * localedata/locales/es_ES: Likewise.
22052 * localedata/locales/es_GT: Likewise.
22053 * localedata/locales/es_HN: Likewise.
22054 * localedata/locales/es_MX: Likewise.
22055 * localedata/locales/es_NI: Likewise.
22056 * localedata/locales/es_PA: Likewise.
22057 * localedata/locales/es_PE: Likewise.
22058 * localedata/locales/es_PR: Likewise.
22059 * localedata/locales/es_PY: Likewise.
22060 * localedata/locales/es_SV: Likewise.
22061 * localedata/locales/es_US: Likewise.
22062 * localedata/locales/es_UY: Likewise.
22063 * localedata/locales/es_VE: Likewise.
22064 * localedata/locales/et_EE: Likewise.
22065 * localedata/locales/eu_ES: Likewise.
22066 * localedata/locales/eu_ES@euro: Likewise.
22067 * localedata/locales/fa_IR: Likewise.
22068 * localedata/locales/ff_SN: Likewise.
22069 * localedata/locales/fi_FI: Likewise.
22070 * localedata/locales/fil_PH: Likewise.
22071 * localedata/locales/fo_FO: Likewise.
22072 * localedata/locales/fr_BE: Likewise.
22073 * localedata/locales/fr_CA: Likewise.
22074 * localedata/locales/fr_CH: Likewise.
22075 * localedata/locales/fr_FR: Likewise.
22076 * localedata/locales/fr_LU: Likewise.
22077 * localedata/locales/fur_IT: Likewise.
22078 * localedata/locales/fy_DE: Likewise.
22079 * localedata/locales/fy_NL: Likewise.
22080 * localedata/locales/ga_IE: Likewise.
22081 * localedata/locales/gd_GB: Likewise.
22082 * localedata/locales/gez_ER: Likewise.
22083 * localedata/locales/gez_ET: Likewise.
22084 * localedata/locales/gl_ES: Likewise.
22085 * localedata/locales/gu_IN: Likewise.
22086 * localedata/locales/gv_GB: Likewise.
22087 * localedata/locales/ha_NG: Likewise.
22088 * localedata/locales/hak_TW: Likewise.
22089 * localedata/locales/he_IL: Likewise.
22090 * localedata/locales/hi_IN: Likewise.
22091 * localedata/locales/hif_FJ: Likewise.
22092 * localedata/locales/hne_IN: Likewise.
22093 * localedata/locales/hr_HR: Likewise.
22094 * localedata/locales/hsb_DE: Likewise.
22095 * localedata/locales/ht_HT: Likewise.
22096 * localedata/locales/hu_HU: Likewise.
22097 * localedata/locales/hy_AM: Likewise.
22098 * localedata/locales/i18n: Likewise.
22099 * localedata/locales/ia_FR: Likewise.
22100 * localedata/locales/id_ID: Likewise.
22101 * localedata/locales/ig_NG: Likewise.
22102 * localedata/locales/ik_CA: Likewise.
22103 * localedata/locales/is_IS: Likewise.
22104 * localedata/locales/it_CH: Likewise.
22105 * localedata/locales/it_IT: Likewise.
22106 * localedata/locales/iu_CA: Likewise.
22107 * localedata/locales/ja_JP: Likewise.
22108 * localedata/locales/ka_GE: Likewise.
22109 * localedata/locales/kk_KZ: Likewise.
22110 * localedata/locales/kl_GL: Likewise.
22111 * localedata/locales/kn_IN: Likewise.
22112 * localedata/locales/ko_KR: Likewise.
22113 * localedata/locales/kok_IN: Likewise.
22114 * localedata/locales/ks_IN: Likewise.
22115 * localedata/locales/ks_IN@devanagari: Likewise.
22116 * localedata/locales/ku_TR: Likewise.
22117 * localedata/locales/kw_GB: Likewise.
22118 * localedata/locales/ky_KG: Likewise.
22119 * localedata/locales/lb_LU: Likewise.
22120 * localedata/locales/lg_UG: Likewise.
22121 * localedata/locales/li_BE: Likewise.
22122 * localedata/locales/li_NL: Likewise.
22123 * localedata/locales/lij_IT: Likewise.
22124 * localedata/locales/ln_CD: Likewise.
22125 * localedata/locales/lo_LA: Likewise.
22126 * localedata/locales/lt_LT: Likewise.
22127 * localedata/locales/lv_LV: Likewise.
22128 * localedata/locales/lzh_TW: Likewise.
22129 * localedata/locales/mag_IN: Likewise.
22130 * localedata/locales/mai_IN: Likewise.
22131 * localedata/locales/mg_MG: Likewise.
22132 * localedata/locales/mhr_RU: Likewise.
22133 * localedata/locales/mi_NZ: Likewise.
22134 * localedata/locales/mk_MK: Likewise.
22135 * localedata/locales/ml_IN: Likewise.
22136 * localedata/locales/mn_MN: Likewise.
22137 * localedata/locales/mni_IN: Likewise.
22138 * localedata/locales/mr_IN: Likewise.
22139 * localedata/locales/ms_MY: Likewise.
22140 * localedata/locales/mt_MT: Likewise.
22141 * localedata/locales/my_MM: Likewise.
22142 * localedata/locales/nan_TW: Likewise.
22143 * localedata/locales/nan_TW@latin: Likewise.
22144 * localedata/locales/nb_NO: Likewise.
22145 * localedata/locales/nds_DE: Likewise.
22146 * localedata/locales/nds_NL: Likewise.
22147 * localedata/locales/ne_NP: Likewise.
22148 * localedata/locales/nhn_MX: Likewise.
22149 * localedata/locales/niu_NU: Likewise.
22150 * localedata/locales/niu_NZ: Likewise.
22151 * localedata/locales/nl_AW: Likewise.
22152 * localedata/locales/nl_BE: Likewise.
22153 * localedata/locales/nl_NL: Likewise.
22154 * localedata/locales/nn_NO: Likewise.
22155 * localedata/locales/nr_ZA: Likewise.
22156 * localedata/locales/nso_ZA: Likewise.
22157 * localedata/locales/oc_FR: Likewise.
22158 * localedata/locales/om_ET: Likewise.
22159 * localedata/locales/om_KE: Likewise.
22160 * localedata/locales/or_IN: Likewise.
22161 * localedata/locales/os_RU: Likewise.
22162 * localedata/locales/pa_IN: Likewise.
22163 * localedata/locales/pa_PK: Likewise.
22164 * localedata/locales/pap_AW: Likewise.
22165 * localedata/locales/pap_CW: Likewise.
22166 * localedata/locales/pl_PL: Likewise.
22167 * localedata/locales/ps_AF: Likewise.
22168 * localedata/locales/pt_BR: Likewise.
22169 * localedata/locales/pt_PT: Likewise.
22170 * localedata/locales/quz_PE: Likewise.
22171 * localedata/locales/raj_IN: Likewise.
22172 * localedata/locales/ro_RO: Likewise.
22173 * localedata/locales/ru_RU: Likewise.
22174 * localedata/locales/ru_UA: Likewise.
22175 * localedata/locales/rw_RW: Likewise.
22176 * localedata/locales/sa_IN: Likewise.
22177 * localedata/locales/sat_IN: Likewise.
22178 * localedata/locales/sc_IT: Likewise.
22179 * localedata/locales/sd_IN: Likewise.
22180 * localedata/locales/sd_IN@devanagari: Likewise.
22181 * localedata/locales/se_NO: Likewise.
22182 * localedata/locales/sgs_LT: Likewise.
22183 * localedata/locales/shs_CA: Likewise.
22184 * localedata/locales/si_LK: Likewise.
22185 * localedata/locales/sid_ET: Likewise.
22186 * localedata/locales/sk_SK: Likewise.
22187 * localedata/locales/sl_SI: Likewise.
22188 * localedata/locales/sm_WS: Likewise.
22189 * localedata/locales/so_DJ: Likewise.
22190 * localedata/locales/so_ET: Likewise.
22191 * localedata/locales/so_KE: Likewise.
22192 * localedata/locales/so_SO: Likewise.
22193 * localedata/locales/sq_AL: Likewise.
22194 * localedata/locales/sq_MK: Likewise.
22195 * localedata/locales/sr_ME: Likewise.
22196 * localedata/locales/sr_RS: Likewise.
22197 * localedata/locales/sr_RS@latin: Likewise.
22198 * localedata/locales/ss_ZA: Likewise.
22199 * localedata/locales/st_ZA: Likewise.
22200 * localedata/locales/sv_FI: Likewise.
22201 * localedata/locales/sv_SE: Likewise.
22202 * localedata/locales/sw_KE: Likewise.
22203 * localedata/locales/sw_TZ: Likewise.
22204 * localedata/locales/szl_PL: Likewise.
22205 * localedata/locales/ta_IN: Likewise.
22206 * localedata/locales/ta_LK: Likewise.
22207 * localedata/locales/tcy_IN: Likewise.
22208 * localedata/locales/te_IN: Likewise.
22209 * localedata/locales/tg_TJ: Likewise.
22210 * localedata/locales/th_TH: Likewise.
22211 * localedata/locales/the_NP: Likewise.
22212 * localedata/locales/ti_ER: Likewise.
22213 * localedata/locales/ti_ET: Likewise.
22214 * localedata/locales/tig_ER: Likewise.
22215 * localedata/locales/tk_TM: Likewise.
22216 * localedata/locales/tl_PH: Likewise.
22217 * localedata/locales/tn_ZA: Likewise.
22218 * localedata/locales/to_TO: Likewise.
22219 * localedata/locales/tpi_PG: Likewise.
22220 * localedata/locales/tr_CY: Likewise.
22221 * localedata/locales/tr_TR: Likewise.
22222 * localedata/locales/ts_ZA: Likewise.
22223 * localedata/locales/tt_RU: Likewise.
22224 * localedata/locales/tt_RU@iqtelif: Likewise.
22225 * localedata/locales/ug_CN: Likewise.
22226 * localedata/locales/uk_UA: Likewise.
22227 * localedata/locales/unm_US: Likewise.
22228 * localedata/locales/ur_IN: Likewise.
22229 * localedata/locales/ur_PK: Likewise.
22230 * localedata/locales/uz_UZ: Likewise.
22231 * localedata/locales/uz_UZ@cyrillic: Likewise.
22232 * localedata/locales/ve_ZA: Likewise.
22233 * localedata/locales/vi_VN: Likewise.
22234 * localedata/locales/wa_BE: Likewise.
22235 * localedata/locales/wae_CH: Likewise.
22236 * localedata/locales/wal_ET: Likewise.
22237 * localedata/locales/wo_SN: Likewise.
22238 * localedata/locales/xh_ZA: Likewise.
22239 * localedata/locales/yi_US: Likewise.
22240 * localedata/locales/yo_NG: Likewise.
22241 * localedata/locales/yue_HK: Likewise.
22242 * localedata/locales/yuw_PG: Likewise.
22243 * localedata/locales/zh_CN: Likewise.
22244 * localedata/locales/zh_HK: Likewise.
22245 * localedata/locales/zh_SG: Likewise.
22246 * localedata/locales/zh_TW: Likewise.
22247 * localedata/locales/zu_ZA: Likewise.
22248
22249 2017-11-13 Florian Weimer <fweimer@redhat.com>
22250
22251 * support/next_to_fault.h, support/next_to_fault.c: New files.
22252 * support/Makefile (libsupport-routines): Add next_to_fault.
22253 * resolv/tst-inet_pton.c (struct next_to_fault)
22254 (next_to_fault_allocate, next_to_fault_free): Remove.
22255 (run_one_test): Switch to <support/next_to_fault.h> interfaces.
22256
22257 2017-11-13 H.J. Lu <hongjiu.lu@intel.com>
22258
22259 * elf/dl-support.c: Include <dl-procruntime.c>.
22260 * include/link.h: Include <link_map.h>.
22261 * sysdeps/generic/dl-procruntime.c: New file.
22262 * sysdeps/generic/link_map.h: Likewise.
22263 * sysdeps/generic/ldsodefs.h: Include <dl-procruntime.c> in
22264 the writable ld.so namespace.
22265
22266 2017-11-12 Paul Eggert <eggert@cs.ucla.edu>
22267
22268 timezone: pacify GCC -Wstringop-truncation
22269 Problem reported by Martin Sebor in:
22270 https://sourceware.org/ml/libc-alpha/2017-11/msg00336.html
22271 * timezone/zic.c (writezone): Use memcpy, not strncpy.
22272
22273 2017-11-12 Florian Weimer <fweimer@redhat.com>
22274
22275 * support/Makefile (libsupport-routines): Add xreadlink, xstrndup,
22276 tst-xreadlink.
22277 (tests): Add tst-xreadlink.
22278 * support/support.h (xstrndup): Declare.
22279 * support/xunistd.h (xunlink, xreadlink): Declare.
22280 * support/temp_file.h (support_create_temp_directory): Declare.
22281 * support/temp_file.c (support_create_temp_directory): New function.
22282 * support/support_chroot.c (support_chroot_create): Use it.
22283 * support/xreadlink.c: New file.
22284 * support/xstrndup.c: Likewise.
22285 * support/xunlink.c: Likewise.
22286 * support/tst-xreadlink.c: Likewise.
22287
22288 2017-11-11 John David Anglin <danglin@gcc.gnu.org>
22289
22290 * sysdeps/hppa/fpu/libm-test-ulps: Update clog10_downward ulps.
22291
22292 2017-11-11 Florian Weimer <fweimer@redhat.com>
22293
22294 [BZ #22409]
22295 [BZ #22412]
22296 * resolv/res_comp.c (printable_string, binary_hnok)
22297 (binary_leading_dash): New functions.
22298 (res_hnok): Reimplement using these functions and ns_name_pton.
22299 (res_ownok): Likewise.
22300 (res_mailok): Reimplement using printable_string, ns_name_pton and
22301 binary_hnok.
22302 (res_dnok): Reimplement using printable_string and ns_name_pton.
22303 * resolv/tst-res_hnok.c (tests): Add additional tests.
22304 (LETTERDIGITS, PRINTABLE): Define.
22305 (do_test): Adjust one_char results.
22306
22307 2017-11-11 Florian Weimer <fweimer@redhat.com>
22308
22309 [BZ #22413]
22310 * resolv/ns_name.c (ns_name_pton): Treat trailing backslash as error.
22311 * resolv/tst-ns_name_pton.c (tests): Add trailing backslash tests.
22312
22313 2017-11-11 Florian Weimer <fweimer@redhat.com>
22314
22315 * resolv/tst-ns_name_pton.c: New file.
22316 * resolv/Makefile (tests): Add tst-ns_name_pton.
22317 (tst-ns_name_pton): Link against libresolv.
22318
22319 2017-11-11 Florian Weimer <fweimer@redhat.com>
22320
22321 * resolv/tst-res_hnok.c: New file.
22322 * resolv/Makefile (tests): Add tst-res_hnok.
22323 (tst-res_hnok): Link against libresolv.
22324
22325 2017-11-11 Florian Weimer <fweimer@redhat.com>
22326
22327 * resolv/tst-resolv-network.c: Use test framework instead explicit
22328 main function.
22329
22330 2017-11-09 H.J. Lu <hongjiu.lu@intel.com>
22331
22332 * include/setjmp.h [!_ISOMAC]: Include <stddef.h> and
22333 <jmp_buf-macros.h>.
22334 [!_ISOMAC] (STR_HELPER): New.
22335 [!_ISOMAC] (STR): Likewise.
22336 [!_ISOMAC] (TEST_SIZE): Likewise.
22337 [!_ISOMAC] (TEST_ALIGN): Likewise.
22338 [!_ISOMAC] (TEST_OFFSET): Likewise.
22339 [!_ISOMAC] Add _Static_assert to check sizes, alignments and
22340 field offsets of jmp_buf as well as sigjmp_buf.
22341 * sysdeps/unix/sysv/linux/aarch64/jmp_buf-macros.h: Likewise.
22342 * sysdeps/unix/sysv/linux/alpha/jmp_buf-macros.h: Likewise.
22343 * sysdeps/unix/sysv/linux/arm/jmp_buf-macros.h: Likewise.
22344 * sysdeps/unix/sysv/linux/hppa/jmp_buf-macros.h: Likewise.
22345 * sysdeps/unix/sysv/linux/i386/jmp_buf-macros.h: Likewise.
22346 * sysdeps/unix/sysv/linux/ia64/jmp_buf-macros.h: Likewise.
22347 * sysdeps/unix/sysv/linux/m68k/jmp_buf-macros.h: Likewise.
22348 * sysdeps/unix/sysv/linux/microblaze/jmp_buf-macros.h: Likewise.
22349 * sysdeps/unix/sysv/linux/mips/mips32/jmp_buf-macros.h: Likewise.
22350 * sysdeps/unix/sysv/linux/mips/mips64/n32/jmp_buf-macros.h:
22351 Likewise.
22352 * sysdeps/unix/sysv/linux/mips/mips64/n64/jmp_buf-macros.h:
22353 Likewise.
22354 * sysdeps/unix/sysv/linux/nios2/jmp_buf-macros.h: Likewise.
22355 * sysdeps/unix/sysv/linux/powerpc/powerpc32/jmp_buf-macros.h:
22356 Likewise.
22357 * sysdeps/unix/sysv/linux/powerpc/powerpc64/jmp_buf-macros.h:
22358 Likewise.
22359 * sysdeps/unix/sysv/linux/s390/s390-32/jmp_buf-macros.h: Likewise.
22360 * sysdeps/unix/sysv/linux/s390/s390-64/jmp_buf-macros.h: Likewise.
22361 * sysdeps/unix/sysv/linux/sh/jmp_buf-macros.h: Likewise.
22362 * sysdeps/unix/sysv/linux/sparc/sparc32/jmp_buf-macros.h: Likewise.
22363 * sysdeps/unix/sysv/linux/sparc/sparc64/jmp_buf-macros.h: Likewise.
22364 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/jmp_buf-macros.h:
22365 Likewise.
22366 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/jmp_buf-macros.h:
22367 Likewise.
22368 * sysdeps/unix/sysv/linux/tile/tilepro/jmp_buf-macros.h: Likewise.
22369 * sysdeps/unix/sysv/linux/x86_64/64/jmp_buf-macros.h: Likewise.
22370 * sysdeps/unix/sysv/linux/x86_64/x32/jmp_buf-macros.h: Likewise.
22371
22372 2017-11-07 Joseph Myers <joseph@codesourcery.com>
22373
22374 * include/float.h
22375 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22376 && __HAVE_FLOAT32] (FLT32_MANT_DIG): New macro.
22377 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22378 && __HAVE_FLOAT32] (FLT32_DECIMAL_DIG): Likewise.
22379 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22380 && __HAVE_FLOAT32] (FLT32_DIG): Likewise.
22381 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22382 && __HAVE_FLOAT32] (FLT32_MIN_EXP): Likewise.
22383 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22384 && __HAVE_FLOAT32] (FLT32_MIN_10_EXP): Likewise.
22385 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22386 && __HAVE_FLOAT32] (FLT32_MAX_EXP): Likewise.
22387 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22388 && __HAVE_FLOAT32] (FLT32_MAX_10_EXP): Likewise.
22389 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22390 && __HAVE_FLOAT32] (FLT32_MAX): Likewise.
22391 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22392 && __HAVE_FLOAT32] (FLT32_EPSILON): Likewise.
22393 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22394 && __HAVE_FLOAT32] (FLT32_MIN): Likewise.
22395 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22396 && __HAVE_FLOAT32] (FLT32_TRUE_MIN): Likewise.
22397 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22398 && __HAVE_FLOAT64] (FLT64_MANT_DIG): Likewise.
22399 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22400 && __HAVE_FLOAT64] (FLT64_DECIMAL_DIG): Likewise.
22401 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22402 && __HAVE_FLOAT64] (FLT64_DIG): Likewise.
22403 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22404 && __HAVE_FLOAT64] (FLT64_MIN_EXP): Likewise.
22405 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22406 && __HAVE_FLOAT64] (FLT64_MIN_10_EXP): Likewise.
22407 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22408 && __HAVE_FLOAT64] (FLT64_MAX_EXP): Likewise.
22409 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22410 && __HAVE_FLOAT64] (FLT64_MAX_10_EXP): Likewise.
22411 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22412 && __HAVE_FLOAT64] (FLT64_MAX): Likewise.
22413 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22414 && __HAVE_FLOAT64] (FLT64_EPSILON): Likewise.
22415 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22416 && __HAVE_FLOAT64] (FLT64_MIN): Likewise.
22417 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22418 && __HAVE_FLOAT64] (FLT64_TRUE_MIN): Likewise.
22419 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22420 && __HAVE_FLOAT32X] (FLT32X_MANT_DIG): Likewise.
22421 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22422 && __HAVE_FLOAT32X] (FLT32X_DECIMAL_DIG): Likewise.
22423 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22424 && __HAVE_FLOAT32X] (FLT32X_DIG): Likewise.
22425 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22426 && __HAVE_FLOAT32X] (FLT32X_MIN_EXP): Likewise.
22427 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22428 && __HAVE_FLOAT32X] (FLT32X_MIN_10_EXP): Likewise.
22429 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22430 && __HAVE_FLOAT32X] (FLT32X_MAX_EXP): Likewise.
22431 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22432 && __HAVE_FLOAT32X] (FLT32X_MAX_10_EXP): Likewise.
22433 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22434 && __HAVE_FLOAT32X] (FLT32X_MAX): Likewise.
22435 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22436 && __HAVE_FLOAT32X] (FLT32X_EPSILON): Likewise.
22437 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22438 && __HAVE_FLOAT32X] (FLT32X_MIN): Likewise.
22439 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22440 && __HAVE_FLOAT32X] (FLT32X_TRUE_MIN): Likewise.
22441 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22442 && __HAVE_FLOAT64X] (FLT64X_MANT_DIG): Likewise.
22443 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22444 && __HAVE_FLOAT64X] (FLT64X_DECIMAL_DIG): Likewise.
22445 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22446 && __HAVE_FLOAT64X] (FLT64X_DIG): Likewise.
22447 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22448 && __HAVE_FLOAT64X] (FLT64X_MIN_EXP): Likewise.
22449 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22450 && __HAVE_FLOAT64X] (FLT64X_MIN_10_EXP): Likewise.
22451 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22452 && __HAVE_FLOAT64X] (FLT64X_MAX_EXP): Likewise.
22453 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22454 && __HAVE_FLOAT64X] (FLT64X_MAX_10_EXP): Likewise.
22455 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22456 && __HAVE_FLOAT64X] (FLT64X_MAX): Likewise.
22457 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22458 && __HAVE_FLOAT64X] (FLT64X_EPSILON): Likewise.
22459 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22460 && __HAVE_FLOAT64X] (FLT64X_MIN): Likewise.
22461 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22462 && __HAVE_FLOAT64X] (FLT64X_TRUE_MIN): Likewise.
22463
22464 * stdlib/tst-strtod.h (F16): New macro.
22465 (F32): Likewise.
22466 (F64): Likewise.
22467 (F32X): Likewise.
22468 (F64X): Likewise.
22469 (F128X): Likewise.
22470 (IF_FLOAT16): Likewise.
22471 (IF_FLOAT32): Likewise.
22472 (IF_FLOAT64): Likewise.
22473 (IF_FLOAT32X): Likewise.
22474 (IF_FLOAT64X): Likewise.
22475 (IF_FLOAT128X): Likewise.
22476 (GEN_TEST_STRTOD_FOREACH): Conditionally call macros for _Float16,
22477 _Float32, _Float64, _Float32x, _Float64x and _Float128x.
22478 (STRTOD_TEST_FOREACH): Likewise.
22479 * stdlib/tst-strtod-round-skeleton.c (CHOOSE_f32): New macro.
22480 (CHOOSE_f64): Likewise.
22481 (CHOOSE_f32x): Likewise.
22482 (CHOOSE_f64x): Likewise.
22483
22484 2017-11-07 Andreas Schwab <schwab@suse.de>
22485
22486 * nptl/Makefile (tests-internal): Remove tst-typesizes.
22487
22488 2017-11-07 Mike FABIAN <mfabian@redhat.com>
22489
22490 [BZ #22403]
22491 * localedata/locales/mfe_MU (LC_TIME): Fix wrong d_fmt, / needs
22492 to be escaped.
22493 * localedata/locales/miq_NI (LC_TIME): Fix wrong d_fmt, / needs
22494 to be escaped.
22495
22496 2017-11-07 Claude Paroz <claude@2xlibre.net>
22497
22498 [BZ #22403]
22499 * localedata/locales/an_ES (LC_TIME): Fix wrong d_fmt, / needs
22500 to be escaped.
22501 * localedata/locales/kab_DZ (LC_TIME): Fix wrong d_fmt, / needs
22502 to be escaped.
22503 * localedata/locales/om_ET (LC_TIME): Fix wrong d_fmt, / needs
22504 to be escaped.
22505
22506 2017-11-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
22507
22508 [BZ #22298]
22509 * nptl/allocatestack.c (allocate_stack): Check if
22510 __PTHREAD_MUTEX_HAVE_PREV is non-zero, instead if
22511 __PTHREAD_MUTEX_HAVE_PREV is defined.
22512 * nptl/descr.h (pthread): Likewise.
22513 * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
22514 Likewise.
22515 * nptl/pthread_create.c (START_THREAD_DEFN): Likewise.
22516 * sysdeps/nptl/fork.c (__libc_fork): Likewise.
22517 * sysdeps/nptl/pthread.h (PTHREAD_MUTEX_INITIALIZER): Likewise.
22518 * sysdeps/nptl/bits/thread-shared-types.h
22519 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION): New
22520 defines.
22521 (__pthread_internal_list): Check __PTHREAD_MUTEX_USE_UNION instead
22522 of __WORDSIZE for internal layout.
22523 (__pthread_mutex_s): Check __PTHREAD_MUTEX_NUSERS_AFTER_KIND instead
22524 of __WORDSIZE for internal __nusers layout and __PTHREAD_MUTEX_USE_UNION
22525 instead of __WORDSIZE whether to use an union for __spins and __list
22526 fields.
22527 (__PTHREAD_MUTEX_HAVE_PREV): Define also for __PTHREAD_MUTEX_USE_UNION
22528 case.
22529 * sysdeps/aarch64/nptl/bits/pthreadtypes-arch.h
22530 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION): New
22531 defines.
22532 * sysdeps/alpha/nptl/bits/pthreadtypes-arch.h
22533 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22534 Likewise.
22535 * sysdeps/arm/nptl/bits/pthreadtypes-arch.h
22536 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22537 Likewise.
22538 * sysdeps/hppa/nptl/bits/pthreadtypes-arch.h
22539 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22540 Likewise.
22541 * sysdeps/ia64/nptl/bits/pthreadtypes-arch.h
22542 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22543 Likewise.
22544 * sysdeps/m68k/nptl/bits/pthreadtypes-arch.h
22545 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22546 Likewise.
22547 * sysdeps/microblaze/nptl/bits/pthreadtypes-arch.h
22548 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22549 Likewise.
22550 * sysdeps/mips/nptl/bits/pthreadtypes-arch.h
22551 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22552 Likewise.
22553 * sysdeps/nios2/nptl/bits/pthreadtypes-arch.h
22554 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22555 Likewise.
22556 * sysdeps/powerpc/nptl/bits/pthreadtypes-arch.h
22557 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22558 Likewise.
22559 * sysdeps/s390/nptl/bits/pthreadtypes-arch.h
22560 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22561 Likewise.
22562 * sysdeps/sh/nptl/bits/pthreadtypes-arch.h
22563 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22564 Likewise.
22565 * sysdeps/sparc/nptl/bits/pthreadtypes-arch.h
22566 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22567 Likewise.
22568 * sysdeps/tile/nptl/bits/pthreadtypes-arch.h
22569 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22570 Likewise.
22571 * sysdeps/x86/nptl/bits/pthreadtypes-arch.h
22572 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22573 Likewise.
22574
22575 * nptl/pthreadP.h (ASSERT_TYPE_SIZE, ASSERT_PTHREAD_INTERNAL_SIZE):
22576 New macros.
22577 * nptl/pthread_attr_init.c (__pthread_mutex_init): Add build time
22578 checks for expected input type size.
22579 * nptl/pthread_barrier_init.c (__pthread_barrier_init): Likewise.
22580 * nptl/pthread_barrierattr_init.c (pthread_barrierattr_init):
22581 Likewise.
22582 * nptl/pthread_cond_init.c (__pthread_cond_init): Likewise.
22583 * nptl/pthread_condattr_init.c (__pthread_condattr_init): Likewise.
22584 * nptl/pthread_mutex_init.c (__pthread_mutex_init): Likewise.
22585 * nptl/pthread_mutexattr_init.c (__pthread_mutexattr_init): Likewise.
22586 * nptl/pthread_rwlock_init.c (__pthread_rwlock_init): Likewise.
22587 * nptl/pthread_rwlockattr_init.c (pthread_rwlockattr_init): Likewise.
22588 * nptl/sem_init.c (__new_sem_init, __old_sem_init): Likewise
22589 * nptl/pthread_attr_destroy.c (__pthread_attr_destroy): Remove
22590 superflous runtime assert check.
22591 * nptl/pthread_attr_getaffinity.c (__pthread_attr_getaffinity_new):
22592 Likewise.
22593 * nptl/pthread_attr_getdetachstate.c (__pthread_attr_getdetachstate):
22594 Likewise.
22595 * nptl/pthread_attr_getguardsize.c (pthread_attr_getguardsize):
22596 Likewise.
22597 * nptl/pthread_attr_getinheritsched.c (__pthread_attr_getinheritsched):
22598 Likewise.
22599 * nptl/pthread_attr_getschedparam.c (__pthread_attr_getschedparam):
22600 Likewise.
22601 * nptl/pthread_attr_getschedpolicy.c (__pthread_attr_getschedpolicy):
22602 Likewise.
22603 * nptl/pthread_attr_getscope.c (__pthread_attr_getscope): Likewise.
22604 * nptl/pthread_attr_getstack.c (__pthread_attr_getstack): Likewise.
22605 * nptl/pthread_attr_getstackaddr.c (__pthread_attr_getstackaddr):
22606 Likewise.
22607 * nptl/pthread_attr_getstacksize.c (__pthread_attr_getstacksize):
22608 Likewise.
22609 * nptl/pthread_attr_setaffinity.c (__pthread_attr_setaffinity_new):
22610 Likewise.
22611 * nptl/pthread_attr_setdetachstate.c (__pthread_attr_setdetachstate):
22612 Likewise.
22613 * nptl/pthread_attr_setguardsize.c (pthread_attr_setguardsize):
22614 Likewise.
22615 * nptl/pthread_attr_setinheritsched.c
22616 (__pthread_attr_setinheritsched): Likewise.
22617 * nptl/pthread_attr_setschedparam.c (__pthread_attr_setschedparam):
22618 Likewise.
22619 * nptl/pthread_attr_setschedpolicy.c (__pthread_attr_setschedpolicy):
22620 Likewise.
22621 * nptl/pthread_attr_setscope.c (__pthread_attr_setscope): Likewise.
22622 * nptl/pthread_attr_setstack.c (__pthread_attr_setstack,
22623 __old_pthread_attr_setstack): Likewise.
22624 * nptl/pthread_attr_setstackaddr.c (__pthread_attr_setstackaddr):
22625 Likewise.
22626 * nptl/pthread_attr_setstacksize.c (__pthread_attr_setstacksize):
22627 Likewise.
22628 * nptl/pthread_getattr_default_np.c (pthread_getattr_default_np):
22629 Likewise.
22630 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Likewise.
22631 * nptl/pthread_setattr_default_np.c (pthread_setattr_default_np):
22632 Likewise.
22633 * nptl/tst-typesizes.c: Remove file.
22634
22635 * nptl/pthreadP.h (ASSERT_PTHREAD_STRING,
22636 ASSERT_PTHREAD_INTERNAL_OFFSET): New macro.
22637 * nptl/pthread_mutex_init.c (__pthread_mutex_init): Add build time
22638 checks for internal pthread_mutex_t offsets.
22639 * sysdeps/aarch64/nptl/pthread-offsets.h
22640 (__PTHREAD_MUTEX_NUSERS_OFFSET, __PTHREAD_MUTEX_KIND_OFFSET,
22641 __PTHREAD_MUTEX_SPINS_OFFSET, __PTHREAD_MUTEX_ELISION_OFFSET,
22642 __PTHREAD_MUTEX_LIST_OFFSET): New macro.
22643 * sysdeps/alpha/nptl/pthread-offsets.h: Likewise.
22644 * sysdeps/arm/nptl/pthread-offsets.h: Likewise.
22645 * sysdeps/hppa/nptl/pthread-offsets.h: Likewise.
22646 * sysdeps/i386/nptl/pthread-offsets.h: Likewise.
22647 * sysdeps/ia64/nptl/pthread-offsets.h: Likewise.
22648 * sysdeps/m68k/nptl/pthread-offsets.h: Likewise.
22649 * sysdeps/microblaze/nptl/pthread-offsets.h: Likewise.
22650 * sysdeps/mips/nptl/pthread-offsets.h: Likewise.
22651 * sysdeps/nios2/nptl/pthread-offsets.h: Likewise.
22652 * sysdeps/powerpc/nptl/pthread-offsets.h: Likewise.
22653 * sysdeps/s390/nptl/pthread-offsets.h: Likewise.
22654 * sysdeps/sh/nptl/pthread-offsets.h: Likewise.
22655 * sysdeps/sparc/nptl/pthread-offsets.h: Likewise.
22656 * sysdeps/tile/nptl/pthread-offsets.h: Likewise.
22657 * sysdeps/x86_64/nptl/pthread-offsets.h: Likewise.
22658
22659 2017-11-07 Florian Weimer <fweimer@redhat.com>
22660
22661 * bits/mman-linux.h: Move ...
22662 * sysdeps/unix/sysv/linux/bits/mman-linux.h: ... here. Update
22663 comment.
22664 * sysdeps/unix/sysv/linux/bits/Makefile (sysdep_headers): Remove
22665 outdated comment.
22666
22667 2017-11-07 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
22668
22669 * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S (STRNLEN):
22670 Redefine STRNLEN as __strnlen_power8.
22671
22672 2017-11-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
22673
22674 * signal/sighold.c (sighold): Optimize implementation.
22675
22676 * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Asssume
22677 __NR_rt_sigqueueinfo.
22678
22679 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
22680 __sigtimedwait.
22681 * sysdeps/unix/sysv/linux/sigtimedwait.c: Simplify includes and
22682 assume __NR_rt_sigtimedwait.
22683 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Call __sigtimedwait
22684 and add LIBC_CANCEL_HANDLED for cancellation marking.
22685 * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
22686
22687 * sysdeps/arm/armv7/multiarch/Makefile [$(subdir) = string]
22688 (sysdeps_routines): Add memchr_noneon.
22689 * sysdeps/arm/armv7/multiarch/ifunc-memchr.h: New file.
22690 * sysdeps/arm/armv7/multiarch/memchr_noneon.S: Likewise.
22691 * sysdeps/arm/armv7/multiarch/rtld-memchr.S: Likewise.
22692 * sysdeps/arm/armv7/multiarch/memchr.S: Remove file.
22693 * sysdeps/arm/armv7/multiarch/memchr.c: New file.
22694 * sysdeps/arm/armv7/multiarch/memchr_impl.S: Move to ...
22695 * sysdeps/arm/armv7/multiarch/memchr_neon.S: ... here.
22696
22697 * sysdeps/arm/arm-ifunc.h: New file.
22698 * sysdeps/arm/armv7/multiarch/ifunc-memcpy.h: Likewise.
22699 * sysdeps/arm/armv7/multiarch/memcpy.c: Likewise.
22700 * sysdeps/arm/armv7/multiarch/memcpy_arm.S: Likewise.
22701 * sysdeps/arm/armv7/multiarch/rtld-memcpy.S: Likewise.
22702 * sysdeps/arm/armv7/multiarch/memcpy_neon.S [!__ARM_NEON__]
22703 (__memcpy_neon): Avoid create hidden alias.
22704 * sysdeps/arm/armv7/multiarch/memcpy_vfp.S [!__ARM_NEON_]
22705 (__memcpy_vfp): Likewise.
22706 * sysdeps/arm/armv7/multiarch/Makefile [$(subdir) = string]
22707 (sysdep_routines): Add memcpy_arm.
22708 * sysdeps/arm/armv7/multiarch/memcpy.S: Remove file.
22709
22710 2017-11-06 H.J. Lu <hongjiu.lu@intel.com>
22711
22712 [BZ #22362]
22713 * Makerules (make-link-multidir): New.
22714 * config.make.in (multidir): New.
22715 * configure.ac (libc_cv_multidir): New. AC_SUBST.
22716 * configure: Regenerated.
22717 * csu/Makefile [$(multidir) != .](multilib-extra-objs): New.
22718 [$(multidir) != .](extra-objs): Add $(multilib-extra-objs).
22719 [$(multidir) != .]($(addprefix $(objpfx)$(multidir)/, $(install-lib))):
22720 New target.
22721
22722 2017-11-06 Joseph Myers <joseph@codesourcery.com>
22723
22724 [BZ #22402]
22725 * sysdeps/powerpc/bits/floatn.h: Include <bits/long-double.h>.
22726 [__NO_LONG_DOUBLE_MATH] (__HAVE_FLOAT128): Define to 0.
22727
22728 2017-11-04 Mike FABIAN <mfabian@redhat.com>
22729
22730 * localedata/locales/tpi_PG (LC_TIME): Fix wrong d_fmt, / needs
22731 to be escaped.
22732
22733 2017-11-04 Florian Weimer <fweimer@redhat.com>
22734
22735 * manual/llio.texi (Open-time Flags): Document O_TMPFILE.
22736
22737 2017-11-03 Joseph Myers <joseph@codesourcery.com>
22738
22739 * math/math.h [__HAVE_DISTINCT_FLOAT16
22740 || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
22741 || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
22742 || __HAVE_DISTINCT_FLOAT128X]: Use #error.
22743 [__NO_LONG_DOUBLE_MATH && __HAVE_DISTINCT_FLOAT128]: Likewise.
22744 [__HAVE_DISTINCT_FLOAT128 && !__HAVE_GENERIC_SELECTION
22745 && __HAVE_FLOATN_NOT_TYPEDEF]: Likewise.
22746 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
22747 (__MATH_TG_F32): New macro.
22748 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
22749 (__MATH_TG_F64X): Likewise.
22750 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
22751 (__MATH_TG): Use __MATH_TG_F32 and __MATH_TG_F64X.
22752
22753 2017-11-03 Dmitry V. Levin <ldv@altlinux.org>
22754
22755 * po/de.po: Update translations.
22756 * po/ru.po: Likewise.
22757
22758 2017-11-03 Florian Weimer <fweimer@redhat.com>
22759
22760 * manual/filesys.texi (Hard Links): Document linkat.
22761
22762 2017-11-03 Joseph Myers <joseph@codesourcery.com>
22763
22764 * math/tgmath.h [__HAVE_DISTINCT_FLOAT16
22765 || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
22766 || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
22767 || __HAVE_DISTINCT_FLOAT128X]: Use #error.
22768 [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
22769 && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
22770 && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_F128): Handle _Float64x
22771 the same as _Float128.
22772 [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
22773 && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
22774 && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_CF128): Likewise.
22775
22776 * stdlib/stdlib.h
22777 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof16):
22778 Declare.
22779 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof32):
22780 Likewise.
22781 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof64):
22782 Likewise.
22783 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
22784 (strtof32x): Likewise.
22785 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
22786 (strtof64x): Likewise.
22787 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
22788 (strtof128x): Likewise.
22789 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
22790 (strfromf16): Likewise.
22791 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
22792 (strfromf32): Likewise.
22793 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
22794 (strfromf64): Likewise.
22795 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
22796 (strfromf32x): Likewise.
22797 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
22798 (strfromf64x): Likewise.
22799 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
22800 (strfromf128x): Likewise.
22801 [__USE_GNU && __HAVE_FLOAT16] (strtof16_l): Likewise.
22802 [__USE_GNU && __HAVE_FLOAT32] (strtof32_l): Likewise.
22803 [__USE_GNU && __HAVE_FLOAT64] (strtof64_l): Likewise.
22804 [__USE_GNU && __HAVE_FLOAT32X] (strtof32x_l): Likewise.
22805 [__USE_GNU && __HAVE_FLOAT64X] (strtof64x_l): Likewise.
22806 [__USE_GNU && __HAVE_FLOAT128X] (strtof128x_l): Likewise.
22807
22808 2017-11-03 Richard Henderson <rth@twiddle.net>
22809
22810 * sysdeps/unix/sysv/linux/aarch64/sysconf.c: New file.
22811
22812 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
22813
22814 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Optimize.
22815
22816 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
22817
22818 * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Remove
22819 DT_TLSDESC_GOT initialization.
22820 * sysdeps/arm/dl-tlsdesc.S (_dl_tlsdesc_lazy_resolver): Remove.
22821 (_dl_tlsdesc_resolve_hold): Likewise.
22822 * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_lazy_resolver): Remove.
22823 (_dl_tlsdesc_resolve_hold): Likewise.
22824 * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_lazy_resolver_fixup): Remove.
22825 (_dl_tlsdesc_resolve_hold_fixup): Likewise.
22826
22827 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
22828
22829 * sysdeps/arm/dl-machine.h (elf_machine_rel): Remove volatile.
22830
22831 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
22832
22833 [BZ #18572]
22834 * sysdeps/arm/dl-machine.h (elf_machine_lazy_rel): Do symbol binding
22835 non-lazily for R_ARM_TLS_DESC.
22836
22837 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
22838
22839 [BZ #17078]
22840 * sysdeps/arm/dl-machine.h (elf_machine_rela): Remove the
22841 R_ARM_TLS_DESC case.
22842 (elf_machine_lazy_rel): Remove the prelink check.
22843
22844 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
22845
22846 * sysdeps/aarch64/dl-machine.h (elf_machine_runtime_setup): Remove
22847 DT_TLSDESC_GOT initialization.
22848 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_return_lazy): Remove.
22849 (_dl_tlsdesc_resolve_rela): Likewise.
22850 (_dl_tlsdesc_resolve_hold): Likewise.
22851 (_dl_tlsdesc_undefweak): Remove ldar.
22852 (_dl_tlsdesc_dynamic): Likewise.
22853 * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_return_lazy): Remove.
22854 (_dl_tlsdesc_resolve_rela): Likewise.
22855 (_dl_tlsdesc_resolve_hold): Likewise.
22856 * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_resolve_rela_fixup): Remove.
22857 (_dl_tlsdesc_resolve_hold_fixup): Likewise.
22858 (_dl_tlsdesc_resolve_rela): Likewise.
22859 (_dl_tlsdesc_resolve_hold): Likewise.
22860
22861 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
22862
22863 * sysdeps/aarch64/dl-machine.h (elf_machine_lazy_rel): Do symbol
22864 binding and initialization non-lazily for R_AARCH64_TLSDESC.
22865
22866 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
22867
22868 * elf/tlsdeschtab.h (_dl_tls_resolve_early_return_p): Mark unused.
22869 (_dl_tlsdesc_wake_up_held_fixups): Likewise.
22870
22871 2017-11-02 Joseph Myers <joseph@codesourcery.com>
22872
22873 * wcsmbs/wchar.h [__HAVE_FLOAT16 && __USE_GNU] (wcstof16):
22874 Declare.
22875 [__HAVE_FLOAT32 && __USE_GNU] (wcstof32): Likewise.
22876 [__HAVE_FLOAT64 && __USE_GNU] (wcstof64): Likewise.
22877 [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x): Likewise.
22878 [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x): Likewise.
22879 [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x): Likewise.
22880 [__HAVE_FLOAT16 && __USE_GNU] (wcstof16_l): Likewise.
22881 [__HAVE_FLOAT32 && __USE_GNU] (wcstof32_l): Likewise.
22882 [__HAVE_FLOAT64 && __USE_GNU] (wcstof64_l): Likewise.
22883 [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x_l): Likewise.
22884 [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x_l): Likewise.
22885 [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x_l): Likewise.
22886
22887 2017-11-02 Mike FABIAN <mfabian@redhat.com>
22888
22889 [BZ #22382]
22890 * localedata/locales/tpi_PG (LC_TIME): Fix syntax error.
22891 * localedata/locales/tpi_PG: Add standard header.
22892
22893 2017-11-02 Florian Weimer <fweimer@redhat.com>
22894
22895 test-errno-linux: quotactl can fail with EPERM in containers.
22896 * sysdeps/unix/sysv/linux/test-errno-linux.c
22897 (LIST, LIST_FORWARD): New macros.
22898 (check_error_in_list): New function.
22899 (test_wrp_rv): Accept list of permitted error codes.
22900 (test_wrp_rv2): Remove.
22901 (test_wrp): Call test_wrp_rv with list of error codes.
22902 (test_wrp2): Accept list of error codes.
22903 (do_test): Adjust. Allow EPERM for quotactl.
22904
22905 2017-11-02 Florian Weimer <fweimer@redhat.com>
22906
22907 * stdio-common/bug16.c (do_test): Use array_length.
22908 * stdio-common/errlist.c (_sys_nerr): Likewise.
22909 * stdio-common/printf_fp.c (PRINTF_FP_FETCH): Likewise.
22910 * stdio-common/printf_fphex.c (__printf_fphex): Use array_end.
22911 * stdio-common/psiginfo.c (psiginfo): Use array_length.
22912 * stdio-common/test-vfprintf.c (nlocs): Remove definition.
22913 (do_test): Use array_length.
22914 * stdio-common/tst-fphex.c (do_test): Use array_end, array_length.
22915 * stdio-common/tst-long-dbl-fphex.c (do_test): Use array_length.
22916 * stdio-common/tst-printf-round.c (do_test): Likewise.
22917 * stdio-common/tst-swprintf.c (nbuf): Remove definition.
22918 (CHECK): Use array_length.
22919 * stdio-common/tstdiomisc.c (t3, F): Likewise.
22920 * stdio-common/tstscanf.c (main): Likewise.
22921 * stdio-common/vfprintf.c (process_string_arg): Likewise.
22922
22923 2017-11-02 Florian Weimer <fweimer@redhat.com>
22924
22925 Add array_length and array_end macros.
22926 * include/array_length.h: New file.
22927
22928 2017-11-02 Florian Weimer <fweimer@redhat.com>
22929
22930 [BZ #22332]
22931 * posix/tst-glob-tilde.c (do_noescape): New variable.
22932 (one_test): Process it.
22933 (do_test): Set do_noescape. Add unescaping test case.
22934
22935 2017-11-01 Joseph Myers <joseph@codesourcery.com>
22936
22937 * math/complex.h
22938 [(__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC))
22939 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Include <bits/cmathcalls.h>
22940 with appropriate macros defined and undefined.
22941 [(__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC))
22942 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
22943 [(__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC))
22944 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
22945 [(__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC))
22946 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
22947 [(__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC))
22948 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
22949 [(__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC))
22950 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
22951
22952 * math/complex.h
22953 [(__HAVE_DISTINCT_FLOAT128 || (__HAVE_FLOAT128 && !LIBC))
22954 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Move conditional code after
22955 that for long double. Do not condition define and undefine of
22956 _Mdouble_complex_ on [__CFLOAT128].
22957
22958 2017-11-01 H.J. Lu <hongjiu.lu@intel.com>
22959
22960 * sysdeps/i386/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
22961 of <sysdeps/generic/sysdep.h>.
22962 (ALIGNARG): Removed.
22963 (ASM_SIZE_DIRECTIVE): Likewise.
22964 (ENTRY): Likewise.
22965 (END): Likewise.
22966 (ENTRY_CHK): Likewise.
22967 (END_CHK): Likewise.
22968 (syscall_error): Likewise.
22969 (mcount): Likewise.
22970 (PSEUDO_END): Likewise.
22971 (L): Likewise.
22972 (atom_text_section): Likewise.
22973 * sysdeps/x86/sysdep.h: New file.
22974 * sysdeps/x86_64/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
22975 of <sysdeps/generic/sysdep.h>.
22976 (ALIGNARG): Removed.
22977 (ASM_SIZE_DIRECTIVE): Likewise.
22978 (ENTRY): Likewise.
22979 (END): Likewise.
22980 (ENTRY_CHK): Likewise.
22981 (END_CHK): Likewise.
22982 (syscall_error): Likewise.
22983 (mcount): Likewise.
22984 (PSEUDO_END): Likewise.
22985 (L): Likewise.
22986 (atom_text_section): Likewise.
22987
22988 2017-10-31 Rafal Luzynski <digitalfreak@lingonborough.com>
22989
22990 * localedata/unicode-gen/gen_unicode_ctype.py (output_head):
22991 category of LC_CTYPE set to "i18n:2012".
22992 * localedata/locales/i18n_ctype: Regenerate.
22993
22994 2017-10-31 Yury Norov <ynorov@caviumnetworks.com>
22995
22996 * sysdeps/unix/sysv/linux/sigprocmask.c: Remove useless #ifdefs.
22997 * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
22998 * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
22999 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
23000
23001 * sysdeps/unix/sysv/linux/ia64/sigpending.c: Remove file.
23002 * sysdeps/unix/sysv/linux/s390/s390-64/sigpending.c: Likewise.
23003 * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Likewise.
23004 * sysdeps/unix/sysv/linux/x86_64/sigpending.c: Likewise.
23005
23006 2017-10-31 Joseph Myers <joseph@codesourcery.com>
23007
23008 * math/complex.h
23009 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF16):
23010 New macro.
23011 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF32):
23012 Likewise.
23013 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF64):
23014 Likewise.
23015 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23016 (CMPLXF32X): Likewise.
23017 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23018 (CMPLXF64X): Likewise.
23019 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23020 (CMPLXF128X): Likewise.
23021
23022 * math/math.h
23023 [__FLT_EVAL_METHOD__ == 0 || __FLT_EVAL_METHOD__ == 32]
23024 (__MATH_EVAL_FMT2): Define to add 0.0f.
23025
23026 2017-10-31 Alan Modra <amodra@gmail.com>
23027
23028 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-power8.S: Don't
23029 include sysdep.h.
23030 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-power5+.S: Likewise.
23031 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-ppc64.S: Likewise.
23032 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-power8.S: Likewise.
23033 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-ppc64.c: Likewise.
23034 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power7.S: Likewise.
23035 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power8.S: Likewise.
23036 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-power5+.S: Likewise.
23037 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-ppc64.S: Likewise.
23038 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-power5+.S: Likewise.
23039 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-ppc64.S: Likewise.
23040 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: Likewise.
23041 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
23042 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-power5+.S: Likewise.
23043 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-ppc64.S: Likewise.
23044 * sysdeps/powerpc/powerpc64/multiarch/memchr-power7.S: Likewise.
23045 * sysdeps/powerpc/powerpc64/multiarch/memchr-power8.S: Likewise.
23046 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power4.S: Likewise.
23047 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power7.S: Likewise.
23048 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power8.S: Likewise.
23049 * sysdeps/powerpc/powerpc64/multiarch/memcpy-a2.S: Likewise.
23050 * sysdeps/powerpc/powerpc64/multiarch/memcpy-cell.S: Likewise.
23051 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power4.S: Likewise.
23052 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power6.S: Likewise.
23053 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power7.S: Likewise.
23054 * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S: Likewise.
23055 * sysdeps/powerpc/powerpc64/multiarch/memmove-power7.S: Likewise.
23056 * sysdeps/powerpc/powerpc64/multiarch/mempcpy-power7.S: Likewise.
23057 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power7.S: Likewise.
23058 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S: Likewise.
23059 * sysdeps/powerpc/powerpc64/multiarch/memset-power4.S: Likewise.
23060 * sysdeps/powerpc/powerpc64/multiarch/memset-power6.S: Likewise.
23061 * sysdeps/powerpc/powerpc64/multiarch/memset-power7.S: Likewise.
23062 * sysdeps/powerpc/powerpc64/multiarch/memset-power8.S: Likewise.
23063 * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-power7.S: Likewise.
23064 * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power8.S: Likewise.
23065 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power7.S: Likewise.
23066 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Likewise.
23067 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: Likewise.
23068 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power8.S: Likewise.
23069 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: Likewise.
23070 * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S: Likewise.
23071 * sysdeps/powerpc/powerpc64/multiarch/strchr-power7.S: Likewise.
23072 * sysdeps/powerpc/powerpc64/multiarch/strchr-power8.S: Likewise.
23073 * sysdeps/powerpc/powerpc64/multiarch/strchr-ppc64.S: Likewise.
23074 * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power7.S: Likewise.
23075 * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power8.S: Likewise.
23076 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power7.S: Likewise.
23077 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Likewise.
23078 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
23079 * sysdeps/powerpc/powerpc64/multiarch/strcmp-ppc64.S: Likewise.
23080 * sysdeps/powerpc/powerpc64/multiarch/strcpy-power8.S: Likewise.
23081 * sysdeps/powerpc/powerpc64/multiarch/strcspn-power8.S: Likewise.
23082 * sysdeps/powerpc/powerpc64/multiarch/strlen-power7.S: Likewise.
23083 * sysdeps/powerpc/powerpc64/multiarch/strlen-power8.S: Likewise.
23084 * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S: Likewise.
23085 * sysdeps/powerpc/powerpc64/multiarch/strncase-power8.S: Likewise.
23086 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power4.S: Likewise.
23087 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power7.S: Likewise.
23088 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
23089 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
23090 * sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.S: Likewise.
23091 * sysdeps/powerpc/powerpc64/multiarch/strncpy-power7.S: Likewise.
23092 * sysdeps/powerpc/powerpc64/multiarch/strncpy-power8.S: Likewise.
23093 * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: Likewise.
23094 * sysdeps/powerpc/powerpc64/multiarch/strnlen-power8.S: Likewise.
23095 * sysdeps/powerpc/powerpc64/multiarch/strrchr-power7.S: Likewise.
23096 * sysdeps/powerpc/powerpc64/multiarch/strrchr-power8.S: Likewise.
23097 * sysdeps/powerpc/powerpc64/multiarch/strspn-power8.S: Likewise.
23098 * sysdeps/powerpc/powerpc64/multiarch/strstr-power7.S: Likewise.
23099
23100 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-ppc64.S: Don't
23101 include sysdep.h and math_ldbl_opt.h.
23102
23103 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-power5+.S: Don't
23104 include sysdep.h and math_ldbl_opt.h. Include shlib-compat.h.
23105 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-ppc64.S: Likewise.
23106 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-power6.S: Likewise.
23107 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-ppc64.S: Likewise.
23108 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-power5+.S: Likewise.
23109 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power7.S: Likewise.
23110 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power8.S: Likewise.
23111 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power5.S: Likewise.
23112 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6.S: Likewise.
23113 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6x.S: Likewise.
23114 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power7.S: Likewise.
23115 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power8.S: Likewise.
23116 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S: Likewise.
23117 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power6x.S: Likewise.
23118 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power8.S: Likewise.
23119 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-ppc64.S: Likewise.
23120 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power5+.S: Likewise.
23121 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power6x.S: Likewise.
23122 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power8.S: Likewise.
23123 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-ppc64.S: Likewise.
23124 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf-ppc64.S: Likewise.
23125 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-power5+.S: Likewise.
23126 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-ppc64.S: Likewise.
23127 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-power5+.S: Likewise.
23128 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-ppc64.S: Likewise.
23129
23130 2017-10-31 Alan Modra <amodra@gmail.com>
23131
23132 * sysdeps/powerpc/powerpc64/multiarch/strncase_l-power7.c: Include
23133 string/strncase_l.c, not string/strncase.c.
23134 (USE_IN_EXTENDED_LOCALE_MODEL): Don't define.
23135 (libc_hidden_def): Redefine.
23136
23137 2017-10-31 Alan Modra <amodra@gmail.com>
23138
23139 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S:
23140 (__STRCMP, STRCMP, __strcasecmp_l): Define.
23141 (__strcasecmp): Don't define.
23142
23143 2017-10-31 Alan Modra <amodra@gmail.com>
23144
23145 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Wrap in
23146 IS_IN (libc).
23147 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
23148 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
23149 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
23150
23151 2017-10-31 Alan Modra <amodra@gmail.com>
23152
23153 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Don't define
23154 USE_AS_STPNCPY.
23155
23156 2017-10-31 Alan Modra <amodra@gmail.com>
23157
23158 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S (hidden_def):
23159 Redefine only when SHARED.
23160
23161 2017-10-30 Joseph Myers <joseph@codesourcery.com>
23162
23163 * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
23164 Include <bits/math-finite.h> with appropriate macros defined and
23165 undefined.
23166 [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
23167 [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
23168 [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
23169 [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
23170 [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
23171
23172 * math/math.h [!_Mfloat_] (_Mfloat_): Do not define.
23173 [!_Mlong_double_] (_Mlong_double_): Likewise.
23174 [!_Mfloat16_] (_Mfloat16_): Likewise.
23175 [!_Mfloat32_] (_Mfloat32_): Likewise.
23176 [!_Mfloat64_] (_Mfloat64_): Likewise.
23177 [!_Mfloat128_] (_Mfloat128_): Likewise.
23178 [!_Mfloat32x_] (_Mfloat32x_): Likewise.
23179 [!_Mfloat64x_] (_Mfloat64x_): Likewise.
23180 [!_Mfloat128x_] (_Mfloat128x_): Likewise.
23181 (_Mdouble_): Define without indirection through those macros.
23182 * math/complex.h [!_Mfloat_] (_Mfloat_): Do not define.
23183 [!_Mfloat128_] (_Mfloat128_): Likewise.
23184 [_Mlong_double_] (_Mlong_double_): Likewise.
23185 (_Mdouble_): Define without indirection through those macros.
23186 * math/Makefile [$(long-double-fcts) != yes] (math-CPPFLAGS): Do
23187 not add -D_Mlong_double_=double.
23188 * include/math.h [_ISOMAC] (_Mlong_double_): Do not undefine.
23189 * math/test-signgam-finite-c99.c (_Mlong_double_): Likewise.
23190
23191 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
23192
23193 * sysdeps/x86/libc-start.c: Add /* !SHARED */.
23194
23195 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
23196
23197 * sysdeps/x86/libc-start.c: Reformat.
23198
23199 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
23200
23201 [BZ #22353]
23202 * sysdeps/i386/i586/strcpy.S (STRCPY): Use conditional branches.
23203 (1): Renamed to ...
23204 (L(Src0)): This.
23205 (L(Src1)): New.
23206 (L(Src2)): Likewise.
23207 (L(1)): Renamed to ...
23208 (L(Src3)): This.
23209
23210 2017-10-30 Joseph Myers <joseph@codesourcery.com>
23211
23212 * math/math.h [__HAVE_FLOAT16 && __USE_GNU] (M_Ef16): New macro.
23213 [__HAVE_FLOAT16 && __USE_GNU] (M_LOG2Ef16): Likewise.
23214 [__HAVE_FLOAT16 && __USE_GNU] (M_LOG10Ef16): Likewise.
23215 [__HAVE_FLOAT16 && __USE_GNU] (M_LN2f16): Likewise.
23216 [__HAVE_FLOAT16 && __USE_GNU] (M_LN10f16): Likewise.
23217 [__HAVE_FLOAT16 && __USE_GNU] (M_PIf16): Likewise.
23218 [__HAVE_FLOAT16 && __USE_GNU] (M_PI_2f16): Likewise.
23219 [__HAVE_FLOAT16 && __USE_GNU] (M_PI_4f16): Likewise.
23220 [__HAVE_FLOAT16 && __USE_GNU] (M_1_PIf16): Likewise.
23221 [__HAVE_FLOAT16 && __USE_GNU] (M_2_PIf16): Likewise.
23222 [__HAVE_FLOAT16 && __USE_GNU] (M_2_SQRTPIf16): Likewise.
23223 [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT2f16): Likewise.
23224 [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT1_2f16): Likewise.
23225 [__HAVE_FLOAT32 && __USE_GNU] (M_Ef32): Likewise.
23226 [__HAVE_FLOAT32 && __USE_GNU] (M_LOG2Ef32): Likewise.
23227 [__HAVE_FLOAT32 && __USE_GNU] (M_LOG10Ef32): Likewise.
23228 [__HAVE_FLOAT32 && __USE_GNU] (M_LN2f32): Likewise.
23229 [__HAVE_FLOAT32 && __USE_GNU] (M_LN10f32): Likewise.
23230 [__HAVE_FLOAT32 && __USE_GNU] (M_PIf32): Likewise.
23231 [__HAVE_FLOAT32 && __USE_GNU] (M_PI_2f32): Likewise.
23232 [__HAVE_FLOAT32 && __USE_GNU] (M_PI_4f32): Likewise.
23233 [__HAVE_FLOAT32 && __USE_GNU] (M_1_PIf32): Likewise.
23234 [__HAVE_FLOAT32 && __USE_GNU] (M_2_PIf32): Likewise.
23235 [__HAVE_FLOAT32 && __USE_GNU] (M_2_SQRTPIf32): Likewise.
23236 [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT2f32): Likewise.
23237 [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT1_2f32): Likewise.
23238 [__HAVE_FLOAT64 && __USE_GNU] (M_Ef64): Likewise.
23239 [__HAVE_FLOAT64 && __USE_GNU] (M_LOG2Ef64): Likewise.
23240 [__HAVE_FLOAT64 && __USE_GNU] (M_LOG10Ef64): Likewise.
23241 [__HAVE_FLOAT64 && __USE_GNU] (M_LN2f64): Likewise.
23242 [__HAVE_FLOAT64 && __USE_GNU] (M_LN10f64): Likewise.
23243 [__HAVE_FLOAT64 && __USE_GNU] (M_PIf64): Likewise.
23244 [__HAVE_FLOAT64 && __USE_GNU] (M_PI_2f64): Likewise.
23245 [__HAVE_FLOAT64 && __USE_GNU] (M_PI_4f64): Likewise.
23246 [__HAVE_FLOAT64 && __USE_GNU] (M_1_PIf64): Likewise.
23247 [__HAVE_FLOAT64 && __USE_GNU] (M_2_PIf64): Likewise.
23248 [__HAVE_FLOAT64 && __USE_GNU] (M_2_SQRTPIf64): Likewise.
23249 [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT2f64): Likewise.
23250 [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT1_2f64): Likewise.
23251 [__HAVE_FLOAT32X && __USE_GNU] (M_Ef32x): Likewise.
23252 [__HAVE_FLOAT32X && __USE_GNU] (M_LOG2Ef32x): Likewise.
23253 [__HAVE_FLOAT32X && __USE_GNU] (M_LOG10Ef32x): Likewise.
23254 [__HAVE_FLOAT32X && __USE_GNU] (M_LN2f32x): Likewise.
23255 [__HAVE_FLOAT32X && __USE_GNU] (M_LN10f32x): Likewise.
23256 [__HAVE_FLOAT32X && __USE_GNU] (M_PIf32x): Likewise.
23257 [__HAVE_FLOAT32X && __USE_GNU] (M_PI_2f32x): Likewise.
23258 [__HAVE_FLOAT32X && __USE_GNU] (M_PI_4f32x): Likewise.
23259 [__HAVE_FLOAT32X && __USE_GNU] (M_1_PIf32x): Likewise.
23260 [__HAVE_FLOAT32X && __USE_GNU] (M_2_PIf32x): Likewise.
23261 [__HAVE_FLOAT32X && __USE_GNU] (M_2_SQRTPIf32x): Likewise.
23262 [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT2f32x): Likewise.
23263 [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT1_2f32x): Likewise.
23264 [__HAVE_FLOAT64X && __USE_GNU] (M_Ef64x): Likewise.
23265 [__HAVE_FLOAT64X && __USE_GNU] (M_LOG2Ef64x): Likewise.
23266 [__HAVE_FLOAT64X && __USE_GNU] (M_LOG10Ef64x): Likewise.
23267 [__HAVE_FLOAT64X && __USE_GNU] (M_LN2f64x): Likewise.
23268 [__HAVE_FLOAT64X && __USE_GNU] (M_LN10f64x): Likewise.
23269 [__HAVE_FLOAT64X && __USE_GNU] (M_PIf64x): Likewise.
23270 [__HAVE_FLOAT64X && __USE_GNU] (M_PI_2f64x): Likewise.
23271 [__HAVE_FLOAT64X && __USE_GNU] (M_PI_4f64x): Likewise.
23272 [__HAVE_FLOAT64X && __USE_GNU] (M_1_PIf64x): Likewise.
23273 [__HAVE_FLOAT64X && __USE_GNU] (M_2_PIf64x): Likewise.
23274 [__HAVE_FLOAT64X && __USE_GNU] (M_2_SQRTPIf64x): Likewise.
23275 [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT2f64x): Likewise.
23276 [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT1_2f64x): Likewise.
23277 [__HAVE_FLOAT128X && __USE_GNU]: Use #error.
23278
23279 2017-10-30 Florian Weimer <fweimer@redhat.com>
23280
23281 * elf/ldconfig.c (search_dir): Assume that _DIRENT_HAVE_D_TYPE is
23282 always defined.
23283 * io/tst-mkdirat.c (do_test): Likewise.
23284 * io/tst-mkfifoat.c (do_test): Likewise.
23285 * io/tst-mknodat.c (do_test): Likewise.
23286 * locale/programs/charmap-dir.c (charmap_readdir): Likewise.
23287 * locale/programs/locale.c (select_dirs): Likewise.
23288 * locale/programs/locarchive.c (add_locales_to_archive): Likewise.
23289 * posix/bug-glob2.c (my_readdir): Likewise.
23290 * posix/tst-dir.c (main): Likewise.
23291 * posix/tst-glob_lstat_compat.c (my_readdir): Likewise.
23292 * posix/tst-gnuglob-skeleton.c (my_readdir): Likewise.
23293
23294 2017-10-30 Florian Weimer <fweimer@redhat.com>
23295
23296 * string/strings.h (ffsl, ffsll): Declare under __USE_MISC, not
23297 just __USE_GNU.
23298
23299 2017-10-30 Florian Weimer <fweimer@redhat.com>
23300
23301 * posix/tst-gnuglob-skeleton.c: Renamed from tst-gnuglob.c.
23302 Convert to support/test-driver.c.
23303 (GLOB_FUNC, GLOB_TYPE, GLOBFREE_FUNC, DIRENT_STRUCT, STAT_STRUCT):
23304 New macro parameters.
23305 (PRINTF): Remove macro. Use test_verbose conditionals instead.
23306 * posix/tst-gnuglob.c: New file.
23307 * posix/tst-gnuglob64.c: Likewise.
23308 * posix/Makefile (tests): Add tst-gnuglob64.
23309
23310 2017-10-30 Michal Ostrowski <ostrowski.michal@gmail.com>
23311
23312 [BZ #19485]
23313 * localedata/locales/csb_PL (LC_TIME): Fix “abmon” for March
23314 and use a better translation for March in “mon”.
23315 * localedata/locales/csb_PL: Use more ASCII to improve the
23316 readability of the source.
23317
23318 2017-10-30 Mike FABIAN <mfabian@redhat.com>
23319
23320 [BZ #13953]
23321 * localedata/locales/km_KH: Use ASCII as much
23322 as possible for better readability of the source and
23323 remove useless comments.
23324 * localedata/locales/km_KH (LC_TIME): Remove era stuff, it
23325 was commented out and apparently wrong anyway because it was
23326 using Lao characters. If Buddhist era should be used
23327 for km_KH, a native speaker should write the correct formaat
23328 for Khmer.
23329 * localedata/locales/km_KH (LC_TIME): Add first_weekday 1
23330 (According to CLDR, the first weekday for Cambodia is Sunday).
23331 * localedata/locales/km_KH (LC_NAME): Remove name_mr and name_mrs
23332 (These were using Lao characters which must be wrong. If we get
23333 the correct data from a native speaker, we could add it back, until
23334 then it is better not to have name_mr and name_mrs at all than
23335 having it wrong).
23336
23337 2017-10-27 Rafal Luzynski <digitalfreak@lingonborough.com>
23338
23339 * locale/loadlocale.c: Correct size of
23340 _nl_value_type_LC_<category> arrays.
23341
23342 2017-10-27 Joseph Myers <joseph@codesourcery.com>
23343
23344 * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
23345 Include <bits/mathcalls-helper-functions.h> and <bits/mathcalls.h>
23346 with appropriate macros defined and undefined.
23347 [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
23348 [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
23349 [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
23350 [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
23351 [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
23352
23353 2017-10-27 H.J. Lu <hongjiu.lu@intel.com>
23354
23355 * sysdeps/i386/fpu/libm-test-ulps: Regenerated for GCC 7 with
23356 "-O2 -march=i586".
23357
23358 2017-10-27 Mike FABIAN <mfabian@redhat.com>
23359
23360 * localedata/locales/tt_RU (LC_MESSAGES): Start yesstr and nostr
23361 with lowercase letters to make it agree with CLDR.
23362
23363 2017-10-27 Mike FABIAN <mfabian@redhat.com>
23364
23365 [BZ #15260]
23366 * localedata/locales/doi_IN (LC_MESSAGES): Match only for the
23367 first letters of yesstr and nostr in yesexpr and noexpr,
23368 not for the full words.
23369 * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
23370 * localedata/locales/kok_IN (LC_MESSAGES): Likewise.
23371 * localedata/locales/mr_IN (LC_MESSAGES): Likewise.
23372 * localedata/locales/sat_IN (LC_MESSAGES): Likewise.
23373 * localedata/locales/km_KH (LC_MESSAGES): Match also for the
23374 first letters of yesstr and nostr in yesexpr and noexpr,
23375 until now only English was matched in yesexpr and noexpr.
23376 * localedata/locales/tl_PH (LC_MESSAGES): Use “copy "fil_PH"”
23377 instead of “copy "en_US"”. CLDR has yesstr and nostr data for
23378 fil but not for tl. As tl and fil are very similar, using fil
23379 is probably better than using English.
23380
23381 2017-10-27 Thierry Vignaud <thierry.vignaud@gmail.com>
23382
23383 [BZ #21706]
23384 * localedata/locales/br_FR (LC_MESSAGES): Use all lowercase
23385 in yesstr and nostr.
23386
23387 2017-10-26 Joseph Myers <joseph@codesourcery.com>
23388
23389 * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
23390 (IEC_60559_TYPES_EXT)] (SNANF16): New macro.
23391 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32):
23392 Likewise.
23393 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64):
23394 Likewise.
23395 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32X):
23396 Likewise.
23397 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64X):
23398 Likewise.
23399 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23400 (SNANF128X): Likewise.
23401
23402 * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
23403 (IEC_60559_TYPES_EXT)] (HUGE_VAL_F16): New macro.
23404 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23405 (HUGE_VAL_F32): Likewise.
23406 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23407 (HUGE_VAL_F64): Likewise.
23408 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23409 (HUGE_VAL_F32X): Likewise.
23410 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23411 (HUGE_VAL_F64X): Likewise.
23412 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23413 (HUGE_VAL_F128X): Likewise.
23414
23415 2017-10-26 Thierry Vignaud <thierry.vignaud@gmail.com>
23416
23417 * localedata/locales/br_FR (LC_IDENTIFICATON): Add
23418 Thierry Vignaud <thierry.vignaud@gmail.com> as the contact
23419 for the br_FR locale.
23420
23421 2017-10-26 Thierry Vignaud <thierry.vignaud@gmail.com>
23422
23423 [BZ #21706]
23424 * localedata/locales/br_FR (LC_MESSAGES): Fix nostr.
23425
23426 2017-10-25 Carlos O'Donell <carlos@redhat.com>
23427
23428 * locale/programs/record-status.h: Define globals, and function
23429 prototypes. Move function bodies...
23430 * locale/programs/record-status.c: ... to here. New file.
23431 * iconv/Makefile (iconv_prog-modules): Add record-status.
23432 * locale/Makefile (lib-modules): Likewise.
23433 * iconv/iconv_prog.c: Remove verbose.
23434 * iconv/iconv_prog.h: Include record-status.h (defines verbose).
23435 * locale/programs/charmap.c (charmap_read): If warn_ascii is true then
23436 record a warning about ASCII compatibility.
23437 * locale/programs/ld-monetary.c (monetary_finish): If
23438 warn_int_curr_symbol is true then record a warning about the symbol
23439 not being in our ISO 4217 list.
23440 * locale/programs/locale.c: Include record-status.h. Remove verbose.
23441 * locale/programs/localedef.c: Include ctype.h. Remove delcaration of
23442 verbose, recorded_warning_count, recorded_error_count, and be_quiet.
23443 (OPT_NO_WARN): Define.
23444 (OPT_WARN): Define.
23445 (options): Add entry for --no-warnings, and --warnings.
23446 (set_warnings): New function to enable/disable warnings.
23447 (parse_opt): Call set_warnings for OPT_NO_WARN and OPT_WARN.
23448 * locale/programs/localedef.h: Remove warn_int_curr_symbol.
23449 * localedata/gen-locale.sh: Default flags to `--quiet -c'.
23450 Add `--no-warnings=ascii' to locales using SHIFT_JIS or SHIFT_JIXX0213.
23451 Pass flags to generate_locale.
23452 (generate_locale): Accept new flag argument and pass it to localedef
23453 invocation.
23454 * localedata/Makefile (INSTALL-SUPPORTED-LOCALES): Use
23455 --no-warnings=ascii for SHIFT_JIS and SHIFT_JISX0213 charmaps.
23456
23457 * localedata/Makefile (test-input-data): Use full file name.
23458 * localedata/da_DK.in: Rename to...
23459 * localedata/da_DK.ISO-8859-1.in: ...this.
23460 * localedata/de_DE.in: Rename to...
23461 * localedata/de_DE.ISO-8859-1.in: ...this.
23462 * localedata/en_US.in: Rename to...
23463 * localedata/en_US.ISO-8859-1.in: ...this.
23464 * localedata/fr_FR.in: Rename to...
23465 * localedata/fr_FR.UTF-8.in: ... this.
23466 * localedata/hr_HR.in: Rename to...
23467 * localedata/hr_HR.ISO-8859-2.in: ...this.
23468 * localedata/hu_HU.in: Rename to...
23469 * localedata/hu_HU.UTF-8.in: ...this.
23470 * localedata/si_LK.in: Rename to...
23471 * localedata/si_LK.UTF-8.in: ...this.
23472 * localedata/sv_SE.in: Rename to...
23473 * localedata/sv_SE.ISO-8859-1.in: ...this.
23474 * localedata/tr_TR.in: Rename to...
23475 * localedata/tr_TR.UTF-8.in: ...this.
23476 * localedata/uk_UA.in: Rename to...
23477 * localedata/uk_UA.UTF-8.in: ...this.
23478 * localedata/sort-test.sh: Test file is locale name with the
23479 suffix.
23480
23481 * localedata/unicode-gen/Makefile (check_i18n): Rename to
23482 check_i18n_ctype. Depend on i18n_ctype-report. Check i18n_ctype-report
23483 file.
23484 * localedata/locales/i18n_ctype: Regenerate.
23485 * localedata/locales/tr_TR: Likewise.
23486 * localedata/locales/translit_circle: Likewise.
23487 * localedata/locales/translit_cjk_compat: Likewise.
23488 * localedata/locales/translit_combining: Likewise.
23489 * localedata/locales/translit_compat: Likewise.
23490 * localedata/locales/translit_font: Likewise.
23491 * localedata/locales/translit_fraction: Likewise.
23492
23493 2017-10-25 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
23494
23495 * sysdeps/powerpc/powerpc64/power7/memcpy.S: Replace
23496 lxvd2x/stxvd2x with lvx/stvx.
23497 * sysdeps/powerpc/powerpc64/power7/memmove.S: Likewise.
23498
23499 2017-10-25 H.J. Lu <hongjiu.lu@intel.com>
23500
23501 * include/alloc_buffer.h: Replace "if if " with "if " in
23502 comments.
23503 * sysdeps/mips/memcpy.S: Likkewise.
23504 * sysdeps/mips/memset.S: Likewise.
23505 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
23506 Likewise.
23507 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S:
23508 Likewise.
23509 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S:
23510 Likewise.
23511
23512 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23513
23514 [BZ #15261]
23515 * localedata/locales/cmn_TW (LC_MESSAGES): Add fullwidth yYnN to
23516 yesexpr and noexpr.
23517 * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
23518 * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
23519 * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
23520 * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
23521 * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
23522 * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
23523 * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
23524
23525 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23526
23527 * localedata/locales/am_ET (LC_MESSAGES): Sync with CLDR.
23528 * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
23529 * localedata/locales/el_GR (LC_MESSAGES): Likewise.
23530 * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
23531 * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
23532 * localedata/locales/mfe_MU (LC_MESSAGES): Likewise.
23533 * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
23534 * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
23535 * localedata/locales/os_RU (LC_MESSAGES): Likewise.
23536 * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
23537 * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
23538 * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
23539
23540 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23541
23542 * localedata/locales/aa_ET (LC_MESSAGES): Use ASCII as much
23543 as possible for better readability of the source.
23544 * localedata/locales/af_ZA (LC_MESSAGES): Likewise.
23545 * localedata/locales/ak_GH (LC_MESSAGES): Likewise.
23546 * localedata/locales/am_ET (LC_MESSAGES): Likewise.
23547 * localedata/locales/anp_IN (LC_MESSAGES): Likewise.
23548 * localedata/locales/ar_EG (LC_MESSAGES): Likewise.
23549 * localedata/locales/as_IN (LC_MESSAGES): Likewise.
23550 * localedata/locales/ast_ES (LC_MESSAGES): Likewise.
23551 * localedata/locales/ayc_PE (LC_MESSAGES): Likewise.
23552 * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
23553 * localedata/locales/az_IR (LC_MESSAGES): Likewise.
23554 * localedata/locales/be_BY (LC_MESSAGES): Likewise.
23555 * localedata/locales/be_BY@latin (LC_MESSAGES): Likewise.
23556 * localedata/locales/bem_ZM (LC_MESSAGES): Likewise.
23557 * localedata/locales/ber_MA (LC_MESSAGES): Likewise.
23558 * localedata/locales/bg_BG (LC_MESSAGES): Likewise.
23559 * localedata/locales/bhb_IN (LC_MESSAGES): Likewise.
23560 * localedata/locales/bi_VU (LC_MESSAGES): Likewise.
23561 * localedata/locales/bo_CN (LC_MESSAGES): Likewise.
23562 * localedata/locales/br_FR (LC_MESSAGES): Likewise.
23563 * localedata/locales/bs_BA (LC_MESSAGES): Likewise.
23564 * localedata/locales/ca_ES (LC_MESSAGES): Likewise.
23565 * localedata/locales/ce_RU (LC_MESSAGES): Likewise.
23566 * localedata/locales/crh_UA (LC_MESSAGES): Likewise.
23567 * localedata/locales/cs_CZ (LC_MESSAGES): Likewise.
23568 * localedata/locales/csb_PL (LC_MESSAGES): Likewise.
23569 * localedata/locales/cv_RU (LC_MESSAGES): Likewise.
23570 * localedata/locales/cy_GB (LC_MESSAGES): Likewise.
23571 * localedata/locales/da_DK (LC_MESSAGES): Likewise.
23572 * localedata/locales/de_DE (LC_MESSAGES): Likewise.
23573 * localedata/locales/dv_MV (LC_MESSAGES): Likewise.
23574 * localedata/locales/dz_BT (LC_MESSAGES): Likewise.
23575 * localedata/locales/el_GR (LC_MESSAGES): Likewise.
23576 * localedata/locales/en_CA (LC_MESSAGES): Likewise.
23577 * localedata/locales/en_US (LC_MESSAGES): Likewise.
23578 * localedata/locales/es_ES (LC_MESSAGES): Likewise.
23579 * localedata/locales/et_EE (LC_MESSAGES): Likewise.
23580 * localedata/locales/eu_ES (LC_MESSAGES): Likewise.
23581 * localedata/locales/fa_IR (LC_MESSAGES): Likewise.
23582 * localedata/locales/ff_SN (LC_MESSAGES): Likewise.
23583 * localedata/locales/fi_FI (LC_MESSAGES): Likewise.
23584 * localedata/locales/fil_PH (LC_MESSAGES): Likewise.
23585 * localedata/locales/fo_FO (LC_MESSAGES): Likewise.
23586 * localedata/locales/fr_BE (LC_MESSAGES): Likewise.
23587 * localedata/locales/fr_CH (LC_MESSAGES): Likewise.
23588 * localedata/locales/fr_FR (LC_MESSAGES): Likewise.
23589 * localedata/locales/fr_LU (LC_MESSAGES): Likewise.
23590 * localedata/locales/fur_IT (LC_MESSAGES): Likewise.
23591 * localedata/locales/fy_DE (LC_MESSAGES): Likewise.
23592 * localedata/locales/ga_IE (LC_MESSAGES): Likewise.
23593 * localedata/locales/gd_GB (LC_MESSAGES): Likewise.
23594 * localedata/locales/gl_ES (LC_MESSAGES): Likewise.
23595 * localedata/locales/gu_IN (LC_MESSAGES): Likewise.
23596 * localedata/locales/gv_GB (LC_MESSAGES): Likewise.
23597 * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
23598 * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
23599 * localedata/locales/he_IL (LC_MESSAGES): Likewise.
23600 * localedata/locales/hif_FJ (LC_MESSAGES): Likewise.
23601 * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
23602 * localedata/locales/hr_HR (LC_MESSAGES): Likewise.
23603 * localedata/locales/hsb_DE (LC_MESSAGES): Likewise.
23604 * localedata/locales/ht_HT (LC_MESSAGES): Likewise.
23605 * localedata/locales/hu_HU (LC_MESSAGES): Likewise.
23606 * localedata/locales/hy_AM (LC_MESSAGES): Likewise.
23607 * localedata/locales/ia_FR (LC_MESSAGES): Likewise.
23608 * localedata/locales/id_ID (LC_MESSAGES): Likewise.
23609 * localedata/locales/ig_NG (LC_MESSAGES): Likewise.
23610 * localedata/locales/ik_CA (LC_MESSAGES): Likewise.
23611 * localedata/locales/is_IS (LC_MESSAGES): Likewise.
23612 * localedata/locales/it_CH (LC_MESSAGES): Likewise.
23613 * localedata/locales/it_IT (LC_MESSAGES): Likewise.
23614 * localedata/locales/iu_CA (LC_MESSAGES): Likewise.
23615 * localedata/locales/ja_JP (LC_MESSAGES): Likewise.
23616 * localedata/locales/kk_KZ (LC_MESSAGES): Likewise.
23617 * localedata/locales/kl_GL (LC_MESSAGES): Likewise.
23618 * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
23619 * localedata/locales/ks_IN (LC_MESSAGES): Likewise.
23620 * localedata/locales/ku_TR (LC_MESSAGES): Likewise.
23621 * localedata/locales/kw_GB (LC_MESSAGES): Likewise.
23622 * localedata/locales/ky_KG (LC_MESSAGES): Likewise.
23623 * localedata/locales/lb_LU (LC_MESSAGES): Likewise.
23624 * localedata/locales/lg_UG (LC_MESSAGES): Likewise.
23625 * localedata/locales/li_NL (LC_MESSAGES): Likewise.
23626 * localedata/locales/lij_IT (LC_MESSAGES): Likewise.
23627 * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
23628 * localedata/locales/lo_LA (LC_MESSAGES): Likewise.
23629 * localedata/locales/lt_LT (LC_MESSAGES): Likewise.
23630 * localedata/locales/lv_LV (LC_MESSAGES): Likewise.
23631 * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
23632 * localedata/locales/mg_MG (LC_MESSAGES): Likewise.
23633 * localedata/locales/mhr_RU (LC_MESSAGES): Likewise.
23634 * localedata/locales/mi_NZ (LC_MESSAGES): Likewise.
23635 * localedata/locales/mk_MK (LC_MESSAGES): Likewise.
23636 * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
23637 * localedata/locales/mn_MN (LC_MESSAGES): Likewise.
23638 * localedata/locales/ms_MY (LC_MESSAGES): Likewise.
23639 * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
23640 * localedata/locales/my_MM (LC_MESSAGES): Likewise.
23641 * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
23642 * localedata/locales/nan_TW@latin (LC_MESSAGES): Likewise.
23643 * localedata/locales/nb_NO (LC_MESSAGES): Likewise.
23644 * localedata/locales/nds_DE (LC_MESSAGES): Likewise.
23645 * localedata/locales/nds_NL (LC_MESSAGES): Likewise.
23646 * localedata/locales/ne_NP (LC_MESSAGES): Likewise.
23647 * localedata/locales/nhn_MX (LC_MESSAGES): Likewise.
23648 * localedata/locales/niu_NU (LC_MESSAGES): Likewise.
23649 * localedata/locales/nl_NL (LC_MESSAGES): Likewise.
23650 * localedata/locales/nn_NO (LC_MESSAGES): Likewise.
23651 * localedata/locales/nr_ZA (LC_MESSAGES): Likewise.
23652 * localedata/locales/nso_ZA (LC_MESSAGES): Likewise.
23653 * localedata/locales/oc_FR (LC_MESSAGES): Likewise.
23654 * localedata/locales/om_ET (LC_MESSAGES): Likewise.
23655 * localedata/locales/or_IN (LC_MESSAGES): Likewise.
23656 * localedata/locales/os_RU (LC_MESSAGES): Likewise.
23657 * localedata/locales/pa_IN (LC_MESSAGES): Likewise.
23658 * localedata/locales/pa_PK (LC_MESSAGES): Likewise.
23659 * localedata/locales/pap_AW (LC_MESSAGES): Likewise.
23660 * localedata/locales/pap_CW (LC_MESSAGES): Likewise.
23661 * localedata/locales/pl_PL (LC_MESSAGES): Likewise.
23662 * localedata/locales/ps_AF (LC_MESSAGES): Likewise.
23663 * localedata/locales/pt_BR (LC_MESSAGES): Likewise.
23664 * localedata/locales/quz_PE (LC_MESSAGES): Likewise.
23665 * localedata/locales/raj_IN (LC_MESSAGES): Likewise.
23666 * localedata/locales/ro_RO (LC_MESSAGES): Likewise.
23667 * localedata/locales/ru_RU (LC_MESSAGES): Likewise.
23668 * localedata/locales/ru_UA (LC_MESSAGES): Likewise.
23669 * localedata/locales/rw_RW (LC_MESSAGES): Likewise.
23670 * localedata/locales/sa_IN (LC_MESSAGES): Likewise.
23671 * localedata/locales/sc_IT (LC_MESSAGES): Likewise.
23672 * localedata/locales/sd_IN@devanagari (LC_MESSAGES): Likewise.
23673 * localedata/locales/se_NO (LC_MESSAGES): Likewise.
23674 * localedata/locales/sgs_LT (LC_MESSAGES): Likewise.
23675 * localedata/locales/si_LK (LC_MESSAGES): Likewise.
23676 * localedata/locales/sk_SK (LC_MESSAGES): Likewise.
23677 * localedata/locales/sl_SI (LC_MESSAGES): Likewise.
23678 * localedata/locales/sm_WS (LC_MESSAGES): Likewise.
23679 * localedata/locales/so_DJ (LC_MESSAGES): Likewise.
23680 * localedata/locales/sq_AL (LC_MESSAGES): Likewise.
23681 * localedata/locales/sr_RS (LC_MESSAGES): Likewise.
23682 * localedata/locales/sr_RS@latin (LC_MESSAGES): Likewise.
23683 * localedata/locales/ss_ZA (LC_MESSAGES): Likewise.
23684 * localedata/locales/st_ZA (LC_MESSAGES): Likewise.
23685 * localedata/locales/sv_SE (LC_MESSAGES): Likewise.
23686 * localedata/locales/sw_KE (LC_MESSAGES): Likewise.
23687 * localedata/locales/szl_PL (LC_MESSAGES): Likewise.
23688 * localedata/locales/tcy_IN (LC_MESSAGES): Likewise.
23689 * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
23690 * localedata/locales/th_TH (LC_MESSAGES): Likewise.
23691 * localedata/locales/the_NP (LC_MESSAGES): Likewise.
23692 * localedata/locales/ti_ER (LC_MESSAGES): Likewise.
23693 * localedata/locales/tk_TM (LC_MESSAGES): Likewise.
23694 * localedata/locales/tn_ZA (LC_MESSAGES): Likewise.
23695 * localedata/locales/to_TO (LC_MESSAGES): Likewise.
23696 * localedata/locales/tr_TR (LC_MESSAGES): Likewise.
23697 * localedata/locales/ts_ZA (LC_MESSAGES): Likewise.
23698 * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
23699 * localedata/locales/tt_RU@iqtelif (LC_MESSAGES): Likewise.
23700 * localedata/locales/uk_UA (LC_MESSAGES): Likewise.
23701 * localedata/locales/unm_US (LC_MESSAGES): Likewise.
23702 * localedata/locales/ur_IN (LC_MESSAGES): Likewise.
23703 * localedata/locales/ur_PK (LC_MESSAGES): Likewise.
23704 * localedata/locales/uz_UZ (LC_MESSAGES): Likewise.
23705 * localedata/locales/uz_UZ@cyrillic (LC_MESSAGES): Likewise.
23706 * localedata/locales/ve_ZA (LC_MESSAGES): Likewise.
23707 * localedata/locales/vi_VN (LC_MESSAGES): Likewise.
23708 * localedata/locales/wa_BE (LC_MESSAGES): Likewise.
23709 * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
23710 * localedata/locales/xh_ZA (LC_MESSAGES): Likewise.
23711 * localedata/locales/yi_US (LC_MESSAGES): Likewise.
23712 * localedata/locales/yo_NG (LC_MESSAGES): Likewise.
23713 * localedata/locales/yue_HK (LC_MESSAGES): Likewise.
23714 * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
23715 * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
23716 * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
23717 * localedata/locales/zu_ZA (LC_MESSAGES): Likewise.
23718
23719 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23720
23721 * localedata/locales/brx_IN (LC_MESSAGES): Fix yesexpr and noexpr
23722 (Use first letters of yesstr and nostr correctly instead of using
23723 full words).
23724
23725 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23726
23727 * localedata/locales/ta_IN (LC_MESSAGES): Fix yesexpr and noexpr
23728 (Use first letters of yesstr and nostr correctly).
23729
23730 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23731
23732 * localedata/locales/hi_IN (LC_MESSAGES): In yesexpr and noexpr,
23733 also check for the first characters of yesstr and nostr.
23734 * localedata/locales/kn_IN (LC_MESSAGES): Likewise.
23735 * localedata/locales/ks_IN@devanagari (LC_MESSAGES): Likewise.
23736
23737 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23738
23739 * localedata/locales/cmn_TW (LC_MESSAGES): In yesexpr and noexpr,
23740 also check for Chinese characters.
23741
23742 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23743
23744 * localedata/locales/chr_US (LC_MESSAGES): In yesexpr and noexpr,
23745 match also for the contents of yesstr and nostr. As the first letter
23746 of yesstr and nostr is equal, checking only for the first letter
23747 is not enough.
23748
23749 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23750
23751 * localedata/locales/ber_DZ (LC_MESSAGES): Use copy "kab_DZ",
23752 it is the same according to Belkacem Mohammed <belkacem77@gmail.com>.
23753
23754 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23755
23756 * localedata/locales/kab_DZ (LC_IDENTIFICATION): Add e-mail
23757 of main contributor.
23758
23759 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23760
23761 * localedata/locales/zh_SG (LC_MESSAGES): Use copy "zh_CN"
23762 instead of using English.
23763
23764 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23765
23766 * localedata/locales/ug_CN (LC_MESSAGES): Fix noexpr and yesexpr
23767 by including the first letters of nostr and yesexpr in the regexp.
23768 Also make it more readable by using ASCII where possible.
23769
23770 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23771
23772 * localedata/locales/te_IN (LC_MESSAGES): Fix noexpr by including
23773 the first letter of nostr in the regexp. It agrees with CLDR now.
23774 Also make it more readable by using ASCII where possible.
23775
23776 2017-10-24 Mike FABIAN <mfabian@redhat.com>
23777
23778 * localedata/locales/km_KH (LC_MESSAGES): Fix yestr and nostr.
23779 The yesstr and nostr apparently came from CLDR. And CLDR has a bug there:
23780 these strings contain a U+17D6 (which somewhat looks like a colon)
23781 instead of a real colon to separate the full words for “yes”
23782 and “no” from the single letter responses.
23783
23784 2017-10-24 Mike FABIAN <mfabian@redhat.com>
23785
23786 * localedata/locales/ka_GE (LC_MESSAGES): Fix yesexp to make
23787 it agree with CLDR (include the first letter of yesstr).
23788 Also make it more readable by using ASCII where possible.
23789
23790 2017-10-24 Mike FABIAN <mfabian@redhat.com>
23791
23792 * localedata/locales/mr_IN (LC_MESSAGES): Fix yesstr and nostr
23793 and improve yesexpr and noexpr. The yesstr and nostr apparently
23794 came from CLDR. And CLDR has a bug there: these strings contain
23795 a U+0903 (which looks like a colon) instead of a real colon
23796 to separate the full words for “yes” and “no” from the single
23797 letter responses.
23798
23799 2017-10-24 Mike FABIAN <mfabian@redhat.com>
23800
23801 * localedata/locales/bn_BD (LC_MESSAGES): Use only the first
23802 letters of the full yesstr and nostr in yesexpr and noexpr.
23803
23804 2017-10-24 Mike FABIAN <mfabian@redhat.com>
23805
23806 * localedata/locales/an_ES (LC_MESSAGES): Add yesstr and nostr.
23807 * localedata/locales/an_ES (LC_ADDRESS): Add lang_term and lang_lib.
23808 * localedata/locales/an_ES: Make source more readable by using ASCII
23809 where possible.
23810
23811 2017-10-24 Mike FABIAN <mfabian@redhat.com>
23812
23813 [BZ #20952]
23814 * localedata/locales/yuw_PG: New file.
23815 * localedata/SUPPORTED: Add yuw_PG/UTF-8.
23816 * locale/iso-639.def: Add Yau (Uruwa).
23817
23818 2017-10-23 Wilco Dijkstra <wdijkstr@arm.com>
23819
23820 * malloc/malloc.c (_int_malloc): Add SINGLE_THREAD_P path.
23821
23822 2017-10-23 Wilco Dijkstra <wdijkstr@arm.com>
23823
23824 * malloc/malloc.c (__libc_malloc): Add SINGLE_THREAD_P path.
23825 (__libc_realloc): Likewise.
23826 (_mid_memalign): Likewise.
23827 (__libc_calloc): Likewise.
23828
23829 2017-10-23 Mike FABIAN <mfabian@redhat.com>
23830
23831 * localedata/locales/tpi_PG (LC_MESSAGES): Fix yesexpr and noexpr
23832 by adding the generic +1 and -0 as in all other locales.
23833 * localedata/locales/tpi_PG (LC_TIME): Fix some typos in the month and
23834 day names and make it more readable by using ASCII where possible.
23835
23836 2017-10-24 Joseph Myers <joseph@codesourcery.com>
23837
23838 * sysdeps/x86/fpu/fix-fp-int-compare-invalid.h
23839 (FIX_COMPARE_INVALID): Define to 0 if [__GNUC_PREREQ (8, 0)].
23840
23841 2017-10-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23842
23843 * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Use 0 instead of
23844 WNOHANG in waitpid call.
23845
23846 2017-10-23 Siddhesh Poyarekar <siddhesh@sourceware.org>
23847
23848 * manual/conf.texi (_SC_LEVEL1_DCACHE_LINESIZE,
23849 _SC_LEVEL1_ICACHE_LINESIZE): Document aarch64 caveat.
23850
23851 * manual/conf.texi (_SC_LEVEL1_ICACHE_SIZE,
23852 _SC_LEVEL1_ICACHE_ASSOC, _SC_LEVEL1_ICACHE_LINESIZE,
23853 _SC_LEVEL1_DCACHE_SIZE, _SC_LEVEL1_DCACHE_ASSOC,
23854 _SC_LEVEL1_DCACHE_LINESIZE, _SC_LEVEL2_CACHE_SIZE,
23855 _SC_LEVEL2_CACHE_ASSOC, _SC_LEVEL2_CACHE_LINESIZE,
23856 _SC_LEVEL3_CACHE_SIZE, _SC_LEVEL3_CACHE_ASSOC,
23857 _SC_LEVEL3_CACHE_LINESIZE, _SC_LEVEL4_CACHE_SIZE,
23858 _SC_LEVEL4_CACHE_ASSOC, _SC_LEVEL4_CACHE_LINESIZE): New
23859 variables.
23860
23861 2017-10-23 Michael Collison <michael.collison@arm.com>
23862
23863 * sysdeps/aarch64/fpu/e_sqrt.c (ieee754_sqrt): Replace asm statements
23864 with __builtin_sqrt.
23865 * sysdeps/aarch64/fpu/e_sqrtf.c (ieee754_sqrtf): Replace asm statements
23866 with __builtin_sqrtf.
23867 * sysdeps/aarch64/fpu/s_ceil.c (__ceil): Replace asm statements
23868 with __builtin_ceil.
23869 * sysdeps/aarch64/fpu/s_ceilf.c (__ceilf): Replace asm statements
23870 with __builtin_ceilf.
23871 * sysdeps/aarch64/fpu/s_floor.c (__floor): Replace asm statements
23872 with __builtin_floor.
23873 * sysdeps/aarch64/fpu/s_floorf.c (__floorf): Replace asm statements
23874 with __builtin_floorf.
23875 * sysdeps/aarch64/fpu/s_fma.c (__fma): Replace asm statements
23876 with __builtin_fma.
23877 * sysdeps/aarch64/fpu/s_fmaf.c (__fmaf): Replace asm statements
23878 with __builtin_fmaf.
23879 * sysdeps/aarch64/fpu/s_fmax.c (__fmax): Replace asm statements
23880 with __builtin_fmax.
23881 * sysdeps/aarch64/fpu/s_fmaxf.c (__fmaxf): Replace asm statements
23882 with __builtin_fmaxf.
23883 * sysdeps/aarch64/fpu/s_fmin.c (__fmin): Replace asm statements
23884 with __builtin_fmin.
23885 * sysdeps/aarch64/fpu/s_fminf.c (__fminf): Replace asm statements
23886 with __builtin_fminf.
23887 * sysdeps/aarch64/fpu/s_frint.c: Delete file.
23888 * sysdeps/aarch64/fpu/s_frintf.c: Delete file.
23889 * sysdeps/aarch64/fpu/s_llrint.c (__llrint): Replace asm statements
23890 with builtin_rint and conversion to int.
23891 * sysdeps/aarch64/fpu/s_llrintf.c (__llrintf): Likewise.
23892 * sysdeps/aarch64/fpu/s_llround.c (__llround): Replace asm statements
23893 with builtin_llround.
23894 * sysdeps/aarch64/fpu/s_llroundf.c (__llroundf): Likewise.
23895 * sysdeps/aarch64/fpu/s_lrint.c (__lrint): Replace asm statements
23896 with builtin_rint and conversion to long int.
23897 * sysdeps/aarch64/fpu/s_lrintf.c (__lrintf): Likewise.
23898 * sysdeps/aarch64/fpu/s_lround.c (__lround): Replace asm statements
23899 with builtin_lround.
23900 * sysdeps/aarch64/fpu/s_lroundf.c (__lroundf): Replace asm statements
23901 with builtin_lroundf.
23902 * sysdeps/aarch64/fpu/s_nearbyint.c (__nearbyint): Replace asm
23903 statements with __builtin_nearbyint.
23904 * sysdeps/aarch64/fpu/s_nearbyintf.c (__nearbyintf): Replace asm
23905 statements with __builtin_nearbyintf.
23906 * sysdeps/aarch64/fpu/s_rint.c (__rint): Replace asm statements
23907 with __builtin_rint.
23908 * sysdeps/aarch64/fpu/s_rintf.c (__rintf): Replace asm statements
23909 with __builtin_rintf.
23910 * sysdeps/aarch64/fpu/s_round.c (__round): Replace asm statements
23911 with __builtin_round.
23912 * sysdeps/aarch64/fpu/s_roundf.c (__roundf): Replace asm statements
23913 with __builtin_roundf.
23914 * sysdeps/aarch64/fpu/s_trunc.c (__trunc): Replace asm statements
23915 with __builtin_trunc.
23916 * sysdeps/aarch64/fpu/s_truncf.c (__truncf): Replace asm statements
23917 with __builtin_truncf.
23918 * sysdeps/aarch64/fpu/Makefile: Build e_sqrt[f].c with -fno-math-errno,
23919 and s_l[l]round[f].c too.
23920
23921 2017-10-23 Alan Modra <amodra@gmail.com>
23922
23923 * sysdeps/powerpc/powerpc64/power8/strncpy.S: Move LR cfi.
23924 Adjust stack after restoring regs. Add missing LR cfi_restore.
23925
23926 2017-10-23 Alan Modra <amodra@gmail.com>
23927
23928 * sysdeps/powerpc/powerpc64/power7/strncpy.S: Decrease FRAMESIZE.
23929 Move LR save and frame setup/teardown and LR restore to
23930 immediately around memset call. Provide cfi.
23931
23932 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
23933
23934 * sysdeps/i386/fpu/e_powf.S: Removed.
23935 * sysdeps/i386/fpu/e_powf_log2_data.c: Likewise.
23936 * sysdeps/i386/fpu/w_powf.c: Likewise.
23937 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_powf.c.
23938 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
23939 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
23940 Add e_powf-sse2.
23941 (CFLAGS-e_powf-sse2.c): New.
23942 * sysdeps/i386/i686/fpu/multiarch/e_powf-sse2.c: New file.
23943 * sysdeps/i386/i686/fpu/multiarch/e_powf.c: Likewise.
23944
23945 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
23946
23947 * sysdeps/i386/fpu/e_log2f.S: Removed.
23948 * sysdeps/i386/fpu/e_log2f_data.c: Likewise.
23949 * sysdeps/i386/fpu/w_log2f.c: Likewise.
23950 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_log2f.c.
23951 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
23952 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
23953 Add e_log2f-sse2.
23954 (CFLAGS-e_log2f-sse2.c): New.
23955 * sysdeps/i386/i686/fpu/multiarch/e_log2f-sse2.c: New file.
23956 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c: Likewise.
23957
23958 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
23959
23960 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
23961 Add e_powf-fma.
23962 (CFLAGS-e_powf-fma.c): New.
23963 * sysdeps/x86_64/fpu/multiarch/e_powf-fma.c: New file.
23964 * sysdeps/x86_64/fpu/multiarch/e_powf.c: Likewise.
23965
23966 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
23967
23968 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
23969 Add e_log2f-fma.
23970 (CFLAGS-e_log2f-fma.c): New.
23971 * sysdeps/x86_64/fpu/multiarch/e_log2f-fma.c: New file.
23972 * sysdeps/x86_64/fpu/multiarch/e_log2f.c: Likewise.
23973
23974 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
23975
23976 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
23977 Add e_logf-fma.
23978 (CFLAGS-e_logf-fma.c): New.
23979 * sysdeps/x86_64/fpu/multiarch/e_logf-fma.c: New file.
23980 * sysdeps/x86_64/fpu/multiarch/e_logf.c: Likewise.
23981
23982 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
23983
23984 * sysdeps/i386/fpu/e_logf.S: Removed.
23985 * sysdeps/i386/fpu/e_logf_data.c: Likewise.
23986 * sysdeps/i386/fpu/w_logf.c: Likewise.
23987 * sysdeps/i386/i686/fpu/e_logf.S: Likewise.
23988 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_logf.c.
23989 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
23990 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
23991 Add e_logf-sse2.
23992 (CFLAGS-e_logf-sse2.c): New.
23993 * sysdeps/i386/i686/fpu/multiarch/e_logf-sse2.c: New file.
23994 * sysdeps/i386/i686/fpu/multiarch/e_logf.c: Likewise.
23995
23996 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
23997
23998 * sysdeps/i386/fpu/e_exp2f.S: Removed.
23999 * sysdeps/i386/fpu/w_exp2f.c: Likewise.
24000 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_exp2f.c.
24001 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
24002 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
24003 Add e_exp2f-sse2.
24004 (CFLAGS-e_exp2f-sse2.c): New.
24005 * sysdeps/i386/i686/fpu/multiarch/e_exp2f-sse2.c: New file.
24006 * sysdeps/i386/i686/fpu/multiarch/e_exp2f.c: Likewise.
24007
24008 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
24009
24010 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
24011 Add e_exp2f-fma.
24012 (CFLAGS-e_exp2f-fma.c): New.
24013 * sysdeps/x86_64/fpu/multiarch/e_exp2f-fma.c: New file.
24014 * sysdeps/x86_64/fpu/multiarch/e_exp2f.c: Likewise.
24015
24016 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
24017
24018 * sysdeps/i386/fpu/e_exp2f_data.c: Removed.
24019 * sysdeps/i386/fpu/e_expf.S: Likewise.
24020 * sysdeps/i386/fpu/math_errf.c: Likewise.
24021 * sysdeps/i386/fpu/w_expf.c: Likewise.
24022 * sysdeps/i386/i686/fpu/multiarch/e_expf-ia32.S: Likewise.
24023 * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
24024 * sysdeps/i386/i686/fpu/multiarch/w_expf.c: Likewise.
24025 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_expf.c.
24026 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
24027 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
24028 Remove e_expf-ia32.
24029 (CFLAGS-e_expf-sse2.c): New.
24030 * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.c: New file.
24031 * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Rewritten.
24032
24033 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
24034
24035 * sysdeps/x86_64/fpu/e_expf.S: Removed.
24036 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: Likewise.
24037 * sysdeps/x86_64/fpu/w_expf.c: Likewise.
24038 * sysdeps/x86_64/fpu/libm-test-ulps: Updated for generic
24039 e_expf.c.
24040 * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_expf-fma.c):
24041 New.
24042 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.c: New file.
24043 * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
24044 Renamed to ...
24045 (__redirect_expf): This.
24046 (SYMBOL_NAME): Changed to expf.
24047 (__ieee754_expf): Renamed to ...
24048 (__expf): This.
24049 (__GI___expf): This.
24050 (__ieee754_expf): Add strong_alias.
24051 (__expf_finite): Likewise.
24052 (__expf): New.
24053 Include <sysdeps/ieee754/flt-32/e_expf.c>.
24054
24055 2017-10-22 Paul Eggert <eggert@cs.ucla.edu>
24056
24057 [BZ #22332]
24058 * posix/glob.c (__glob): Fix buffer overflow during GLOB_TILDE
24059 unescaping.
24060
24061 2017-10-21 Florian Weimer <fweimer@redhat.com>
24062
24063 * posix/Makefile (tests): Add tst-glob-tilde.
24064 (tests-special): Add tst-glob-tilde-mem.out
24065 (tst-glob-tilde-ENV): Set MALLOC_TRACE.
24066 (tst-glob-tilde-mem.out): Add mtrace check.
24067 * posix/tst-glob-tilde.c: New file.
24068
24069 2017-10-20 Joseph Myers <joseph@codesourcery.com>
24070
24071 * bits/floatn-common.h: New file.
24072 * math/Makefile (headers): Add bits/floatn-common.h.
24073 * bits/floatn.h: Include <bits/floatn-common.h>.
24074 * sysdeps/ia64/bits/floatn.h: Likewise.
24075 * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
24076 * sysdeps/mips/ieee754/bits/floatn.h: Likewise.
24077 * sysdeps/powerpc/bits/floatn.h: Likewise.
24078 * sysdeps/x86/bits/floatn.h: Likewise.
24079
24080 2017-10-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24081
24082 * configure.ac (libc_cv_gcc_incompatbile_alias): New define:
24083 indicates whether compiler emits an warning for alias for
24084 functions with incompatible types.
24085
24086 [BZ #22273]
24087 * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Handle the case where
24088 the auxiliary process is terminated by a signal before calling _exit
24089 or execve.
24090
24091 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
24092
24093 [BZ #21265]
24094 * sysdeps/x86/cpu-features-offsets.sym (XSAVE_STATE_SIZE_OFFSET):
24095 New.
24096 * sysdeps/x86/cpu-features.c: Include <libc-pointer-arith.h>.
24097 (get_common_indeces): Set xsave_state_size, xsave_state_full_size
24098 and bit_arch_XSAVEC_Usable if needed.
24099 (init_cpu_features): Remove bit_arch_Use_dl_runtime_resolve_slow
24100 and bit_arch_Use_dl_runtime_resolve_opt.
24101 * sysdeps/x86/cpu-features.h (bit_arch_Use_dl_runtime_resolve_opt):
24102 Removed.
24103 (bit_arch_Use_dl_runtime_resolve_slow): Likewise.
24104 (bit_arch_Prefer_No_AVX512): Updated.
24105 (bit_arch_MathVec_Prefer_No_AVX512): Likewise.
24106 (bit_arch_XSAVEC_Usable): New.
24107 (STATE_SAVE_OFFSET): Likewise.
24108 (STATE_SAVE_MASK): Likewise.
24109 [__ASSEMBLER__]: Include <cpu-features-offsets.h>.
24110 (cpu_features): Add xsave_state_size and xsave_state_full_size.
24111 (index_arch_Use_dl_runtime_resolve_opt): Removed.
24112 (index_arch_Use_dl_runtime_resolve_slow): Likewise.
24113 (index_arch_XSAVEC_Usable): New.
24114 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
24115 Support XSAVEC_Usable. Remove Use_dl_runtime_resolve_slow.
24116 * sysdeps/x86_64/Makefile (tst-x86_64-1-ENV): New if tunables
24117 is enabled.
24118 * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup):
24119 Replace _dl_runtime_resolve_sse, _dl_runtime_resolve_avx,
24120 _dl_runtime_resolve_avx_slow, _dl_runtime_resolve_avx_opt,
24121 _dl_runtime_resolve_avx512 and _dl_runtime_resolve_avx512_opt
24122 with _dl_runtime_resolve_fxsave, _dl_runtime_resolve_xsave and
24123 _dl_runtime_resolve_xsavec.
24124 * sysdeps/x86_64/dl-trampoline.S (DL_RUNTIME_UNALIGNED_VEC_SIZE):
24125 Removed.
24126 (DL_RUNTIME_RESOLVE_REALIGN_STACK): Check STATE_SAVE_ALIGNMENT
24127 instead of VEC_SIZE.
24128 (REGISTER_SAVE_BND0): Removed.
24129 (REGISTER_SAVE_BND1): Likewise.
24130 (REGISTER_SAVE_BND3): Likewise.
24131 (REGISTER_SAVE_RAX): Always defined to 0.
24132 (VMOV): Removed.
24133 (_dl_runtime_resolve_avx): Likewise.
24134 (_dl_runtime_resolve_avx_slow): Likewise.
24135 (_dl_runtime_resolve_avx_opt): Likewise.
24136 (_dl_runtime_resolve_avx512): Likewise.
24137 (_dl_runtime_resolve_avx512_opt): Likewise.
24138 (_dl_runtime_resolve_sse): Likewise.
24139 (_dl_runtime_resolve_sse_vex): Likewise.
24140 (USE_FXSAVE): New.
24141 (_dl_runtime_resolve_fxsave): Likewise.
24142 (USE_XSAVE): Likewise.
24143 (_dl_runtime_resolve_xsave): Likewise.
24144 (USE_XSAVEC): Likewise.
24145 (_dl_runtime_resolve_xsavec): Likewise.
24146 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve_avx512):
24147 Removed.
24148 (_dl_runtime_resolve_avx512_opt): Likewise.
24149 (_dl_runtime_resolve_avx): Likewise.
24150 (_dl_runtime_resolve_avx_opt): Likewise.
24151 (_dl_runtime_resolve_sse): Likewise.
24152 (_dl_runtime_resolve_sse_vex): Likewise.
24153 (_dl_runtime_resolve_fxsave): New.
24154 (_dl_runtime_resolve_xsave): Likewise.
24155 (_dl_runtime_resolve_xsavec): Likewise.
24156
24157 2017-10-20 Paul Eggert <eggert@cs.ucla.edu>
24158
24159 [BZ #22320]
24160 CVE-2017-15670
24161 * posix/glob.c (__glob): Fix one-byte overflow.
24162
24163 2017-10-20 Wilco Dijkstra <wdijkstr@arm.com>
24164
24165 * malloc/malloc.c (sysdep-cancel.h): Add include.
24166
24167 2017-10-20 Wilco Dijkstra <wdijkstr@arm.com>
24168
24169 * malloc/malloc.c (_int_free): Add SINGLE_THREAD_P fast paths.
24170
24171 2017-10-20 Will Hawkins <hawkinsw@borlaugic.com>
24172
24173 * resolv/Makefile [$(build-shared)$(have-thread-library) == yesyes]
24174 (tests): Remove $(objpfx)ga_test depdendency.
24175 * resolv/ga_test.c: Remove file.
24176
24177 2017-10-20 Mike FABIAN <mfabian@redhat.com>
24178
24179 [BZ #18812]
24180 * localedata/SUPPORTED: Add kab_DZ/UTF-8.
24181 * localedata/locales/kab_DZ: New file.
24182
24183 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
24184
24185 * sysdeps/m68k/dl-machine.h (elf_machine_load_address): Use
24186 _dl_relocate_static_pie instead of _dl_start to compute load
24187 address in static PIE.
24188
24189 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
24190
24191 * sysdeps/m68k/start.S (_start): Check PIC instead of SHARED.
24192
24193 2017-10-20 Mike FABIAN <mfabian@redhat.com>
24194
24195 [BZ #13605]
24196 * localedata/SUPPORTED: Add shn_MM/UTF-8.
24197 * localedata/locales/shn_MM: New file.
24198
24199 2017-10-20 Florian Weimer <fweimer@redhat.com>
24200
24201 [BZ #22321]
24202 sysconf: Fix missing definition of UIO_MAXIOV on Linux.
24203 * sysdeps/posix/sysconf.c: Include <sys/uio.h>.
24204 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-sysconf-iov_max.
24205 (tst-sysconf-iov_max): Link with tst-sysconf-iov_max-uapi.o.
24206 * sysdeps/unix/sysv/linux/tst-sysconf-iov_max.c: New file.
24207 * sysdeps/unix/sysv/linux/tst-sysconf-iov_max-uapi.c: Likewise.
24208
24209 2017-10-19 H.J. Lu <hongjiu.lu@intel.com>
24210
24211 * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
24212
24213 2017-10-19 Joseph Myers <joseph@codesourcery.com>
24214
24215 * sysdeps/mips/ieee754/bits/floatn.h: New file.
24216
24217 [BZ #22322]
24218 * sysdeps/mips/bits/long-double.h: Move to ....
24219 * sysdeps/mips/ieee754/bits/long-double.h: ... here.
24220
24221 2017-10-19 Wilco Dijkstra <wdijkstr@arm.com>
24222
24223 * malloc/malloc.c (_int_free): Fix deadlock bug in consistency check.
24224
24225 2017-10-19 Valery Reznic <valery_reznic@yahoo.com>
24226 H.J. Lu <hongjiu.lu@intel.com>
24227
24228 [BZ #22299]
24229 * sysdeps/x86/cpu-features.c (init_cpu_features): Don't set
24230 GLRO(dl_platform) to NULL.
24231 * sysdeps/x86_64/Makefile (tests): Add tst-platform-1.
24232 (modules-names): Add tst-platformmod-1 and
24233 x86_64/tst-platformmod-2.
24234 (CFLAGS-tst-platform-1.c): New.
24235 (CFLAGS-tst-platformmod-1.c): Likewise.
24236 (CFLAGS-tst-platformmod-2.c): Likewise.
24237 (LDFLAGS-tst-platformmod-2.so): Likewise.
24238 ($(objpfx)tst-platform-1): Likewise.
24239 ($(objpfx)tst-platform-1.out): Likewise.
24240 (tst-platform-1-ENV): Likewise.
24241 ($(objpfx)x86_64/tst-platformmod-2.os): Likewise.
24242 * sysdeps/x86_64/tst-platform-1.c: New file.
24243 * sysdeps/x86_64/tst-platformmod-1.c: Likewise.
24244 * sysdeps/x86_64/tst-platformmod-2.c: Likewise.
24245
24246 2017-10-19 Mike FABIAN <mfabian@redhat.com>
24247
24248 [BZ #13994]
24249 * locale/iso-639.def: Add Karbi.
24250 * localedata/SUPPORTED: Add mjw_IN/UTF-8.
24251 * localedata/locales/mjw_IN: New file.
24252
24253 2017-10-18 Joseph Myers <joseph@codesourcery.com>
24254
24255 * sysdeps/ieee754/ldbl-128/Makeconfig: New file.
24256 * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
24257 * sysdeps/ieee754/ldbl-128/float128-abi.h: Likewise.
24258 * sysdeps/generic/libm-alias-ldouble.h: Include <bits/floatn.h>.
24259 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
24260 (libm_alias_ldouble_other_r): Also create _Float128 alias.
24261 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Include
24262 <bits/floatn.h>.
24263 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
24264 (libm_alias_ldouble_other_r): Also create _Float128 alias.
24265 * manual/math.texi (Mathematics): Document additional architecture
24266 support for _Float128.
24267 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
24268 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
24269 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
24270 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
24271 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
24272 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
24273 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
24274 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
24275 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
24276 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
24277 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
24278 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
24279 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
24280 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
24281 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
24282
24283 2017-10-18 Renlin Li <renlin.li@arm.com>
24284
24285 * sysdeps/aarch64/dl-machine.h (elf_machine_load_address): Use
24286 _DYNAMIC symbol to calculate load address.
24287
24288 2017-10-18 Paul A. Clarke <pc@us.ibm.com>
24289
24290 * sysdeps/powerpc/fpu/fenv_private.h (_FPU_MASK_TRAPS_RN):
24291 (_FPU_MASK_FRAC_INEX_RET_CC): Fix masks to more properly handle
24292 summary bits.
24293 (_FPU_MASK_RN): Expand _FPU_MASK_RN to 64bit hex.
24294 (_FPU_MASK_NOT_RN_NI): Treat bit 52 (left-to-right) as reserved.
24295
24296 2017-10-18 Mike FABIAN <mfabian@redhat.com>
24297
24298 [BZ #16777]
24299 * localedata/locales/pl_PL (LC_MONETARY): Use U+202F as mon_thousands_sep
24300 and improve readability by using more ASCII.
24301 * localedata/locales/pl_PL (LC_NUMERIC): Use U+202F as thousands_sep
24302 and improve readability by using more ASCII.
24303
24304 2017-10-18 Wilco Dijkstra <wdijkstr@arm.com>
24305
24306 * malloc/malloc.c (malloc_state): Use int for have_fastchunks since
24307 not all targets support atomics on bool.
24308
24309 2017-10-17 Joseph Myers <joseph@codesourcery.com>
24310
24311 * include/float.h [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 &&
24312 __GLIBC_USE (IEC_60559_TYPES_EXT)] (FLT128_MAX): Define using
24313 __f128.
24314 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
24315 (IEC_60559_TYPES_EXT)] (FLT128_EPSILON): Likewise.
24316 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
24317 (IEC_60559_TYPES_EXT)] (FLT128_MIN): Likewise.
24318 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
24319 (IEC_60559_TYPES_EXT)] (FLT128_TRUE_MIN): Likewise.
24320
24321 2017-10-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24322
24323 * bits/uio-ext.h (RWF_HIPRI, RWF_DSYNC, RWF_SYNC, RWF_NOWAIT): New
24324 defines.
24325
24326 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
24327
24328 [BZ #22159]
24329 * malloc/arena.c (ptmalloc_init): Call malloc_init_state.
24330 * malloc/malloc.c (do_check_free_chunk): Fix build bug.
24331 (do_check_remalloced_chunk): Fix build bug.
24332 (do_check_malloc_state): Add assert that checks arena->top.
24333 (malloc_consolidate): Remove initialization.
24334 (int_mallinfo): Remove call to malloc_consolidate.
24335 (__libc_mallopt): Clarify why malloc_consolidate is needed.
24336
24337 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
24338
24339 * malloc/malloc.c (FASTCHUNKS_BIT): Remove.
24340 (have_fastchunks): Remove.
24341 (clear_fastchunks): Remove.
24342 (set_fastchunks): Remove.
24343 (malloc_state): Add have_fastchunks.
24344 (malloc_init_state): Use have_fastchunks.
24345 (do_check_malloc_state): Remove incorrect invariant checks.
24346 (_int_malloc): Use have_fastchunks.
24347 (_int_free): Likewise.
24348 (malloc_consolidate): Likewise.
24349
24350 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
24351
24352 * malloc/malloc.c (tcache_put): Inline.
24353 (tcache_get): Inline.
24354
24355 2017-10-17 Jordi Mallach <jordi@gnu.org>
24356
24357 Aurelien Jarno <aurelien@aurel32.net>
24358 [BZ #2522]
24359 * localedata/locales/ca_ES@valencia: New file.
24360 * localedata/SUPPORTED: Add ca_ES@valencia/UTF-8.
24361
24362 2017-10-17 Romain Naour <romain.naour@gmail.com> (tiny change)
24363
24364 [BZ #22296]
24365 * math/math.h: Let signbit use the builtin in C++ mode with gcc
24366 < 6.x
24367
24368 2017-10-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24369
24370 * scripts/build-many-glibcs.py (Context.add_all_configs):
24371 Add arm-linux-gnueabihf multiarch extra_glibcs.
24372
24373 * sysdeps/generic/ifunc-init.h: New file.
24374 * sysdeps/x86/init-arch.h: Use generic ifunc-init.h.
24375
24376 2017-10-17 Mike FABIAN <mfabian@redhat.com>
24377
24378 [BZ #22019]
24379 * localedata/locales/el_GR: Set n_cs_precedes to 0.
24380 * localedata/locales/el_CY: copy "el_GR" because it is identical.
24381 * stdlib/tst-strfmon_l.c: adapt test case.
24382
24383 2017-10-16 Joseph Myers <joseph@codesourcery.com>
24384
24385 * sysdeps/generic/float128-abi.h: New file.
24386 * sysdeps/ieee754/float128/Versions (FLOAT128_VERSION): Move
24387 non-__prefixed symbols to ....
24388 * math/Versions: ... here. Include <float128-abi.h>.
24389 * stdlib/Versions ... and here. Include <float128-abi.h>
24390
24391 2017-10-16 Florian Weimer <fweimer@redhat.com>
24392
24393 * version.h (VERSION): Switch to ".9000" as the development
24394 version suffix.
24395
24396 2017-10-16 Florian Weimer <fweimer@redhat.com>
24397
24398 [BZ #22050]
24399 * malloc/mcheck-init.c (__malloc_initialize_hook): Use
24400 compat_symbol_reference to access non-default version.
24401
24402 2017-10-16 Florian Weimer <fweimer@redhat.com>
24403
24404 * malloc/Makefile (others-extras): Set to mcheck-init.o.
24405
24406 2017-10-16 Carlos O'Donell <carlos@redhat.com>
24407
24408 * include/shlib-compat.h (compat_symbol_reference): Update
24409 comment.
24410
24411 2017-10-16 Joseph Myers <joseph@codesourcery.com>
24412
24413 * math/Makefile (test-types): Add
24414 $(type-float128-$(float128-alias-fcts)).
24415 * math/test-float128.h (TYPE_STR): Define conditional on
24416 [FLT128_MANT_DIG == LDBL_MANT_DIG].
24417 (ULP_IDX): Likewise.
24418 (ULP_I_IDX): Likewise.
24419
24420 * stdlib/strtold.c: Include <bits/floatn.h>
24421 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128): Define
24422 and later undefine as macro. Define as weak alias if
24423 [!USE_WIDE_CHAR].
24424 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128): Define
24425 and later undefine as macro. Define as weak alias if
24426 [USE_WIDE_CHAR].
24427 * sysdeps/ieee754/ldbl-128/strtold_l.c [__HAVE_FLOAT128 &&
24428 !__HAVE_DISTINCT_FLOAT128] (strtof128_l): Define and later
24429 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
24430 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
24431 Define and later undefine as macro. Define as weak alias if
24432 [USE_WIDE_CHAR].
24433 * sysdeps/ieee754/ldbl-64-128/strtold_l.c: Include
24434 <bits/floatn.h>.
24435 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128_l):
24436 Define and later undefine as macro. Define as weak alias if
24437 [!USE_WIDE_CHAR].
24438 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
24439 Define and later undefine as macro. Define as weak alias if
24440 [USE_WIDE_CHAR].
24441
24442 2017-10-15 Carlos O'Donell <carlos@redhat.com>
24443
24444 * localedata/collate-test.c (allocate_arrays): Don't use \n in
24445 record_verbose messages.
24446
24447 2017-10-15 H.J. Lu <hongjiu.lu@intel.com>
24448
24449 [BZ #22052]
24450 * malloc/hooks.c (realloc_check): Use DIAG_IGNORE_NEEDS_COMMENT
24451 to silence -O3 -Wall warning with GCC 7.
24452
24453 2017-10-14 H.J. Lu <hongjiu.lu@intel.com>
24454
24455 * Makeconfig (+link-static-before-libc): Use the first of
24456 $(CRT-$(@F)) and $(csu-objpfx)$(static-start-installed-name).
24457 * gmon/Makefile (tests): Add tst-gmon-static.
24458 (tests-static): Likewise.
24459 (CFLAGS-tst-gmon-static.c): New.
24460 (CRT-tst-gmon-static): Likewise.
24461 (DEFAULT-LDFLAGS-tst-gmon-static): Likewise.
24462 (tst-gmon-static-ENV): Likewise.
24463 (tests-special): Likewise.
24464 ($(objpfx)tst-gmon-static.out): Likewise.
24465 (clean-tst-gmon-static-data): Likewise.
24466 ($(objpfx)tst-gmon-static-gprof.out): Likewise.
24467 * gmon/tst-gmon-static-gprof.sh: New file.
24468 * gmon/tst-gmon-static.c: Likewise.
24469
24470 2017-10-13 Carlos O'Donell <carlos@redhat.com>
24471
24472 [BZ #22295]
24473 * locale/programs/linereader.c (get_string): Don't warn on
24474 non-symbolic character.
24475
24476 [BZ #22294]
24477 * locale/programs/ld-monetary.c (monetary_finish): Allow ""
24478 int_curr_symbol.
24479
24480 [BZ #22292]
24481 * locale/programs/record-status.h: New file
24482 * locale/programs/locale.c: Add comment.
24483 * locale/programs/charmap-dir.c: Don't include error.h.
24484 (charmap_opendir): Use record_error.
24485 * locale/programs/charmap.c: Don't include error.h.
24486 (charmap_read): Use record_error, and record_warning.
24487 (parse_charmap): Likewise.
24488 * locale/programs/ld-address.c: Don't include error.h.
24489 (address_finish): Use record_error, and record_warning.
24490 * locale/programs/ld-collate.c: Don't include error.h.
24491 (collate_finish): Use record_error, and record_error_at_line.
24492 * locale/programs/ld-ctype.c (ctype_finish): Use record_error.
24493 (ctype_class_new): Likewise.
24494 (ctype_map_new): Likewise.
24495 (set_one_default): Likewise.
24496 (set_class_defaults): Likewise.
24497 (translit_flatten): Likewise.
24498 (allocate_arrays): Use record_error, and record_verbose.
24499 * locale/programs/ld-identification.c: Don't include error.h.
24500 (indentation_finish): Use record_error and record_warning.
24501 * locale/programs/ld-measurement.c: Don't include error.h.
24502 (measurement_finish): Use record_error.
24503 * locale/programs/ld-messages.c
24504 (message_finish): Likewise.
24505 * locale/programs/ld-monetary.c
24506 (monetary_finish): Likewise.
24507 * locale/programs/ld-name.c (name_finish): Use record_error
24508 and record_warning.
24509 * locale/programs/ld-numeric.c
24510 (numeric_finish): Use record_error.
24511 * locale/programs/ld-paper.c: Don't include error.h.
24512 (paper_finish): Use record_error.
24513 * locale/programs/ld-telephone.c: Don't include error.h.
24514 (telephone_finish): Use record_error.
24515 * locale/programs/ld-time.c (time_finish): Likewise.
24516 * locale/programs/linereader.h (lr_error): Make inline func.
24517 * locale/programs/localedef.c: Define recorded_warning_count,
24518 and recorded_error_count.
24519 (main): Use record_error. Use recorded_error_count and
24520 recorded_warning_count to issue correct error returns.
24521 (add_to_readlist): Use record_error.
24522 (find_locale): Likewise.
24523 (load_locale): Likewise.
24524 * locale/programs/localedef.h: Remove be_quiet
24525 and WITH_CUR_LOCALE.
24526 * locale/programs/locarchive.c (compare_from_file): Use
24527 record_error.
24528 * locale/programs/locfile.c (write_locale_data): Use
24529 record_error.
24530 * locale/programs/repertoire.c: Dont include error.h.
24531 (repertoire_complain): Use record_error.
24532 * localedata/tst-fmon.sh: Expect failures from localedef.
24533 * localedata/tst-locale.sh: Likewise.
24534 * localedata/gen-locale.sh: Expect failures from SHIFT_JIS.
24535
24536 * localedata/unicode-gen/Makefile (GENERATED): Use i18n_ctype.
24537 (REPORTS): Likewise.
24538 (check): Likewise.
24539 (i18n): Rename to...
24540 (i18n_ctype): ...this.
24541 (i18n-report): Rename to...
24542 (i18n_ctype-report): ...this.
24543 * localedata/locales/i18n_ctype: Regenerate.
24544 * localedata/locales/i18n: copy i18n_ctype.
24545
24546 2017-10-13 Joseph Myers <joseph@codesourcery.com>
24547
24548 * stdlib/strfroml.c: Include <bits/floatn.h>.
24549 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strfromf128):
24550 Define before include of <stdlib.h> and undefine afterwards, then
24551 define as weak alias.
24552
24553 * sysdeps/ieee754/ldbl-64-128/s_nextafterl.c (weak_alias):
24554 Undefine and restore default definition. Use
24555 libm_alias_ldouble_other.
24556
24557 2017-10-13 Peter Zelezny <peter.zelezny@dektech.com.au>
24558
24559 [BZ #22153]
24560 * nptl/allocatestack.c (__nptl_setxid_error): Preserve error code
24561 in coredumps.
24562
24563 2017-10-13 James Clarke <jrtc27@jrtc27.com>
24564
24565 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
24566 Assign sym_map to be map for local symbols, as TLS relocations
24567 use sym_map to determine whether the symbol is defined and to
24568 extract the TLS information.
24569 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
24570 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
24571
24572 2017-10-13 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
24573
24574 [BZ #22189]
24575 * sysdeps/powerpc/fpu/math_private.h (math_opt_barrier):
24576 (math_force_eval): Add powerpc version.
24577
24578 [BZ #22142]
24579 * stdio-common/tst-printf.c (fp_test): Add tests for DBL_MAX and
24580 -DBL_MAX.
24581 (do_test): Likewise.
24582 * stdio-common/tst-printf.sh: Likewise.
24583 * sysdeps/powerpc/powerpc64/power7/add_n.S: Invert the initial
24584 ifdef clause in order to set the carry bit right. Replace r0 by
24585 0 without changing the behavior.
24586
24587 2017-10-13 Joseph Myers <joseph@codesourcery.com>
24588
24589 * sysdeps/sparc/sparc32/fpu/s_fabsl.c: Include
24590 <libm-alias-ldouble.h>.
24591 (fabsl): Define using libm_alias_ldouble.
24592 * sysdeps/sparc/sparc64/fpu/s_fabsl.c: Include
24593 <libm-alias-ldouble.h>.
24594 (fabsl): Define using libm_alias_ldouble.
24595
24596 * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]:
24597 Remove conditional code.
24598
24599 * sysdeps/ieee754/ldbl-opt/s_clog10l.c (__clog10l__internal):
24600 Rename to __clog10_internal_l.
24601 (__clog10_internal_l): Define aliases using
24602 libm_alias_ldouble_other instead of using libm_alias_ldouble_other
24603 with __clog10.
24604
24605 2017-10-13 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
24606
24607 * benchtests/Makefile (bench-math): Add sinf, cosf and sincosf.
24608 * benchtests/sincosf-inputs: New file.
24609 * benchtests/cosf-inputs: New file.
24610 * benchtests/sinf-inputs: New file.
24611
24612 2017-10-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
24613
24614 * posix/tst-spawn.c (do_test): Wait for both children.
24615
24616 2017-10-12 H.J. Lu <hongjiu.lu@intel.com>
24617
24618 [BZ #22284]
24619 * gmon/Makefile [$(have-fpie)$(build-shared) == yesyes] (tests,
24620 tests-pie): Add tst-gmon-pie.
24621 (CFLAGS-tst-gmon-pie.c): New.
24622 (CRT-tst-gmon-pie): Likewise.
24623 (tst-gmon-pie-ENV): Likewise.
24624 [$(have-fpie)$(build-shared) == yesyes] (tests-special): Likewise.
24625 ($(objpfx)tst-gmon-pie.out): Likewise.
24626 (clean-tst-gmon-pie-data): Likewise.
24627 ($(objpfx)tst-gmon-pie-gprof.out): Likewise.
24628 * gmon/gmon.c [PIC]: Include <link.h>.
24629 [PIC] (callback): New function.
24630 (write_hist): Add an argument for load address. Subtract load
24631 address from PCs.
24632 (write_call_graph): Likewise.
24633 (write_gmon): Call __dl_iterate_phdr to get load address, pass
24634 it to write_hist and write_call_graph.
24635 * gmon/tst-gmon-pie.c: New file.
24636
24637 2017-10-11 Joseph Myers <joseph@codesourcery.com>
24638
24639 * math/Makefile (test-types-basic): New variable.
24640 (test-types): Likewise.
24641 (libm-test-support): Use $(test-types) instead of $(types).
24642 (libm-tests-base-normal): Likewise.
24643 (libm-tests-base-finite): Likewise.
24644 (libm-tests-base-inline): Likewise.
24645 (generated): Likewise.
24646 ($(objpfx)libm-test-support-$(t).c): Likewise.
24647 (libm-tests-for-type iterator): Likewise.
24648 (libm-test-support iterator): Likewise.
24649 * math/libm-test-support.c (ulp_i_idx): Use ULP_I_IDX.
24650 (ulp_idx): Use ULP_IDX.
24651 * math/test-ldouble.h: Include <float.h>.
24652 (TYPE_STR): Define conditional on [LDBL_MANT_DIG == DBL_MANT_DIG].
24653 (ULP_IDX): New macro.
24654 (ULP_I_IDX): Likewise.
24655 * math/test-double.h (ULP_IDX): Likewise.
24656 (ULP_I_IDX): Likewise.
24657 * math/test-float.h (ULP_IDX): Likewise.
24658 (ULP_I_IDX): Likewise.
24659 * math/test-float128.h (ULP_IDX): Likewise.
24660 (ULP_I_IDX): Likewise.
24661
24662 2017-10-11 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24663
24664 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Remove file.
24665 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
24666 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
24667 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h: Likewise.
24668 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
24669 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h: Likewise.
24670 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: Likewise.
24671 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
24672 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
24673 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
24674 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: Likewise.
24675 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
24676 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
24677 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
24678 (SINGLE_THREAD_BY_GLOBAL): Define.
24679 * sysdeps/unix/sysv/linux/aarch64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
24680 Likewise.
24681 * sysdeps/unix/sysv/linux/alpha/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
24682 Likewise.
24683 * sysdeps/unix/sysv/linux/arm/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
24684 Likewise.
24685 * sysdeps/unix/sysv/linux/hppa/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
24686 Likewise.
24687 * sysdeps/unix/sysv/linux/microblaze/sysdep.h
24688 (SINGLE_THREAD_BY_GLOBAL): Likewise.
24689 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
24690 Likewise.
24691
24692 2017-10-11 Andreas Schwab <schwab@suse.de>
24693
24694 * nis/Makefile (aux): Remove.
24695 * nscd/Makefile (aux): Add nscd_hash.
24696 (nscd-modules): Likewise.
24697 ($(objpfx)nscd): Don't depend on libnsl.
24698 * nscd/nscd_hash.c: New file.
24699 * nscd/nscd_hash.h: Likewise.
24700 * nscd/cache.c: Include "nscd_hash.h" instead of <rpcsvc/nis.h>.
24701 (cache_search, cache_add): Use __nscd_hash instead of __nis_hash.
24702 * nscd/nscd_helper.c: Include <sys/param.h> and "nscd_hash.h"
24703 instead of <nis/rpcsvc/nis.h>.
24704 (__nscd_cache_search): Use __nscd_hash instead of __nis_hash.
24705
24706 2017-10-11 Florian Weimer <fweimer@redhat.com>
24707
24708 [BZ #22078]
24709 Avoid large NSS buffers with many addresses, aliases.
24710 * nss/nss_files/files-hosts.c (gethostbyname3_multi): Rewrite
24711 using dynarrays and struct alloc_buffer.
24712 * nss/Makefile (tests): Add tst-nss-files-hosts-multi.
24713 (tst-nss-files-hosts-multi): Link with -ldl.
24714 * nss/tst-nss-files-hosts-multi.c: New file.
24715
24716 2017-10-11 Florian Weimer <fweimer@redhat.com>
24717
24718 [BZ #18023]
24719 * nss/nss_files/files-hosts.c (gethostbyname3_multi): Use struct
24720 scratch_buffer. Eliminate gotos.
24721
24722 2017-10-11 Joseph Myers <joseph@codesourcery.com>
24723
24724 * sysdeps/ieee754/ldbl-opt/s_clog10l.c: Use
24725 libm_alias_ldouble_other.
24726 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (weak_alias): Do not
24727 undefine and redefine.
24728 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
24729 (exp10l): Do not define here.
24730 * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]
24731 (weak_alias): Undefine and redefine.
24732 [BUILD_LGAMMA]: Use libm_alias_ldouble_other.
24733 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
24734 [LIBM_SVID_COMPAT] (weak_alias): Undefine and redefine here.
24735 [LIBM_SVID_COMPAT]: Use libm_alias_ldouble_other.
24736
24737 * soft-fp/fmadf4.c: Include <libm-alias-double.h>.
24738 [!__fma] (fma): Define using libm_alias_double.
24739 * soft-fp/fmasf4.c: Include <libm-alias-float.h>.
24740 [!__fmaf] (fmaf): Define using libm_alias_float.
24741 * soft-fp/fmatf4.c: Include <libm-alias-ldouble.h>.
24742 (fmal): Define using libm_alias_ldouble.
24743
24744 2017-10-10 Joseph Myers <joseph@codesourcery.com>
24745
24746 * sysdeps/generic/libm-alias-double.h (libm_alias_double_other_r):
24747 New macro.
24748 (libm_alias_double_other): Likewise.
24749 (libm_alias_double_r): Use libm_alias_double_other_r.
24750 * sysdeps/generic/libm-alias-float.h (libm_alias_float_other_r):
24751 New macro.
24752 (libm_alias_float_other): Likewise.
24753 (libm_alias_float_r): Use libm_alias_float_other_r.
24754 * sysdeps/generic/libm-alias-float128.h
24755 (libm_alias_float128_other_r): New macro.
24756 (libm_alias_float128_other): Likewise.
24757 (libm_alias_float128_r): Use libm_alias_float128_other_r.
24758 * sysdeps/generic/libm-alias-ldouble.h
24759 (libm_alias_ldouble_other_r): New macro.
24760 (libm_alias_ldouble_other): Likewise.
24761 (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
24762 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h
24763 (libm_alias_double_other_r): New macro.
24764 (libm_alias_double_other): Likewise.
24765 (libm_alias_double_r): Use libm_alias_double_other_r.
24766 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h
24767 (libm_alias_ldouble_other_r): New macro.
24768 (libm_alias_ldouble_other): Likewise.
24769 (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
24770 * math/w_lgamma_main.c: Include <libm-alias-double.h>.
24771 [!USE_AS_COMPAT]: Use libm_alias_double_other.
24772 * math/w_lgammaf_main.c: Include <libm-alias-float.h>.
24773 [!USE_AS_COMPAT]: Use libm_alias_float_other.
24774 * math/w_lgammal_main.c: Include <libm-alias-ldouble.h>.
24775 [!USE_AS_COMPAT]: Use libm_alias_ldouble_other.
24776 * math/w_exp2f.c: Use libm_alias_float_other.
24777 * math/w_expf.c: Likewise.
24778 * math/w_log2f.c: Likewise.
24779 * math/w_logf.c: Likewise.
24780 * math/w_powf.c: Likewise.
24781 * sysdeps/ieee754/flt-32/e_exp2f.c: Include <libm-alias-float.h>.
24782 [!__exp2f]: Use libm_alias_float_other.
24783 * sysdeps/ieee754/flt-32/e_expf.c: Include <libm-alias-float.h>.
24784 [!__expf]: Use libm_alias_float_other.
24785 * sysdeps/ieee754/flt-32/e_log2f.c: Include <libm-alias-float.h>.
24786 [!__log2f]: Use libm_alias_float_other.
24787 * sysdeps/ieee754/flt-32/e_logf.c: Include <libm-alias-float.h>.
24788 [!__logf]: Use libm_alias_float_other.
24789 * sysdeps/ieee754/flt-32/e_powf.c: Include <libm-alias-float.h>.
24790 [!__powf]: Use libm_alias_float_other.
24791
24792 2017-10-10 Florian Weimer <fweimer@redhat.com>
24793
24794 * nss/nss_files/files-hosts.c (gethostbyname3_multi): New
24795 function.
24796 (_nss_files_gethostbyname3_r): Call it.
24797
24798 2017-10-09 Joseph Myers <joseph@codesourcery.com>
24799
24800 * sysdeps/generic/math-type-macros.h [!declare_mgen_alias]: Give
24801 error. Remove default definition of declare_mgen_alias.
24802 [!declare_mgen_alias_r]: Likewise.
24803 * sysdeps/generic/math-type-macros-double.h
24804 [!declare_mgen_alias_r] (declare_mgen_alias_r): New macro.
24805 * sysdeps/generic/math-type-macros-float.h [!declare_mgen_alias_r]
24806 (declare_mgen_alias_r): Likewise.
24807 * sysdeps/generic/math-type-macros-float128.h
24808 [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
24809 * sysdeps/generic/math-type-macros-ldouble.h
24810 [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
24811 * math/w_lgamma_r_template.c (declare_mgen_alias_r_x): Remove
24812 macro.
24813 (declare_mgen_alias_r_s): Likewise.
24814 (declare_mgen_alias_r): Likewise.
24815 * math/w_lgamma_r_compat.c: Include <libm-alias-double.h>.
24816 (lgamma_r): Define using libm_alias_double_r.
24817 * math/w_lgammaf_r_compat.c: Include <libm-alias-float.h>.
24818 (lgammaf_r): Define using libm_alias_float_r.
24819 * math/w_lgammal_r_compat.c: Include <libm-alias-ldouble.h>.
24820 (lgammal_r): Define using libm_alias_ldouble_r.
24821 * sysdeps/ieee754/ldbl-opt/w_lgamma_r_compat.c: Remove file.
24822 * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
24823
24824 2017-10-09 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24825
24826 * lib/glob.c (__glob_pattern_type): Remove now-spurious
24827 extern declaration.
24828
24829 2017-10-09 Joseph Myers <joseph@codesourcery.com>
24830
24831 * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Remove file.
24832
24833 2017-10-09 Jonathan Wakely <jwakely@redhat.com>
24834
24835 [BZ #21326]
24836 * include/features.h [__cplusplus >= 201703] (__USE_ISOC11): Define.
24837 [__cplusplus >= 201103] (__USE_ISOC99): Define.
24838 * math/Makefile (test-math-cxx11): New test.
24839 * math/test-math-cxx11.cc: New file.
24840
24841 2017-10-08 Christian Brauner <christian.brauner@ubuntu.com>
24842
24843 * login/openpty.c (openpty): Close slave pty file descriptor on error.
24844
24845 * login/openpty.c (openpty): If defined, use the TIOCGPTPEER ioctl()
24846 call to allocate the slave pty file descriptor.
24847
24848 2017-10-06 Joseph Myers <joseph@codesourcery.com>
24849
24850 * sysdeps/ieee754/ldbl-128/s_fma.c: Include <libm-alias-double.h>.
24851 [!__fma] (fma): Define using libm_alias_double.
24852 * sysdeps/ieee754/ldbl-96/s_fma.c: Include <libm-alias-double.h>.
24853 [!__fma] (fma): Define using libm_alias_double.
24854
24855 * sysdeps/ieee754/float128/float128_private.h: Include
24856 <libm-alias-ldouble.h> and <libm-alias-float128.h>.
24857 (libm_alias_ldouble_r): Undefine and redefine.
24858 * sysdeps/ieee754/ldbl-128/s_asinhl.c: Include
24859 <libm-alias-ldouble.h>.
24860 (asinhl): Define using libm_alias_ldouble.
24861 * sysdeps/ieee754/ldbl-128/s_atanl.c: Include
24862 <libm-alias-ldouble.h>.
24863 (atanl): Define using libm_alias_ldouble.
24864 * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Include
24865 <libm-alias-ldouble.h>.
24866 (cbrtl): Define using libm_alias_ldouble.
24867 * sysdeps/ieee754/ldbl-128/s_ceill.c: Include
24868 <libm-alias-ldouble.h>.
24869 (ceill): Define using libm_alias_ldouble.
24870 * sysdeps/ieee754/ldbl-128/s_copysignl.c: Include
24871 <libm-alias-ldouble.h>.
24872 (copysignl): Define using libm_alias_ldouble.
24873 * sysdeps/ieee754/ldbl-128/s_cosl.c: Include
24874 <libm-alias-ldouble.h>.
24875 (cosl): Define using libm_alias_ldouble.
24876 * sysdeps/ieee754/ldbl-128/s_erfl.c: Include
24877 <libm-alias-ldouble.h>.
24878 (erfl): Define using libm_alias_ldouble.
24879 (erfcl): Likewise.
24880 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Include
24881 <libm-alias-ldouble.h>.
24882 (expm1l): Define using libm_alias_ldouble.
24883 * sysdeps/ieee754/ldbl-128/s_fabsl.c: Include
24884 <libm-alias-ldouble.h>.
24885 (fabsl): Define using libm_alias_ldouble.
24886 * sysdeps/ieee754/ldbl-128/s_floorl.c: Include
24887 <libm-alias-ldouble.h>.
24888 (floorl): Define using libm_alias_ldouble.
24889 * sysdeps/ieee754/ldbl-128/s_fmal.c: Include
24890 <libm-alias-ldouble.h>.
24891 (fmal): Define using libm_alias_ldouble.
24892 * sysdeps/ieee754/ldbl-128/s_frexpl.c: Include
24893 <libm-alias-ldouble.h>.
24894 (frexpl): Define using libm_alias_ldouble.
24895 * sysdeps/ieee754/ldbl-128/s_fromfpl.c (fromfpl): Define using
24896 libm_alias_ldouble.
24897 * sysdeps/ieee754/ldbl-128/s_fromfpl_main.c: Include
24898 <libm-alias-ldouble.h>.
24899 * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (fromfpxl): Define using
24900 libm_alias_ldouble.
24901 * sysdeps/ieee754/ldbl-128/s_getpayloadl.c: Include
24902 <libm-alias-ldouble.h>.
24903 (getpayloadl): Define using libm_alias_ldouble.
24904 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Include
24905 <libm-alias-ldouble.h>.
24906 (llrintl): Define using libm_alias_ldouble.
24907 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Include
24908 <libm-alias-ldouble.h>.
24909 (llroundl): Define using libm_alias_ldouble.
24910 * sysdeps/ieee754/ldbl-128/s_logbl.c: Include
24911 <libm-alias-ldouble.h>.
24912 (logbl): Define using libm_alias_ldouble.
24913 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Include
24914 <libm-alias-ldouble.h>.
24915 (lrintl): Define using libm_alias_ldouble.
24916 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Include
24917 <libm-alias-ldouble.h>.
24918 (lroundl): Define using libm_alias_ldouble.
24919 * sysdeps/ieee754/ldbl-128/s_modfl.c: Include
24920 <libm-alias-ldouble.h>.
24921 (modfl): Define using libm_alias_ldouble.
24922 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Include
24923 <libm-alias-ldouble.h>.
24924 (nearbyintl): Define using libm_alias_ldouble.
24925 * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Include
24926 <libm-alias-ldouble.h>.
24927 (nextafterl): Define using libm_alias_ldouble.
24928 * sysdeps/ieee754/ldbl-128/s_nextupl.c: Include
24929 <libm-alias-ldouble.h>.
24930 (nextupl): Define using libm_alias_ldouble.
24931 * sysdeps/ieee754/ldbl-128/s_remquol.c: Include
24932 <libm-alias-ldouble.h>.
24933 (remquol): Define using libm_alias_ldouble.
24934 * sysdeps/ieee754/ldbl-128/s_rintl.c: Include
24935 <libm-alias-ldouble.h>.
24936 (rintl): Define using libm_alias_ldouble.
24937 * sysdeps/ieee754/ldbl-128/s_roundevenl.c: Include
24938 <libm-alias-ldouble.h>.
24939 (roundevenl): Define using libm_alias_ldouble.
24940 * sysdeps/ieee754/ldbl-128/s_roundl.c: Include
24941 <libm-alias-ldouble.h>.
24942 (roundl): Define using libm_alias_ldouble.
24943 * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (setpayloadl): Define
24944 using libm_alias_ldouble.
24945 * sysdeps/ieee754/ldbl-128/s_setpayloadl_main.c: Include
24946 <libm-alias-ldouble.h>.
24947 * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (setpayloadsigl):
24948 Define using libm_alias_ldouble.
24949 * sysdeps/ieee754/ldbl-128/s_sincosl.c: Include
24950 <libm-alias-ldouble.h>.
24951 (sincosl): Define using libm_alias_ldouble.
24952 * sysdeps/ieee754/ldbl-128/s_sinl.c: Include
24953 <libm-alias-ldouble.h>.
24954 (sinl): Define using libm_alias_ldouble.
24955 * sysdeps/ieee754/ldbl-128/s_tanhl.c: Include
24956 <libm-alias-ldouble.h>.
24957 (tanhl): Define using libm_alias_ldouble.
24958 * sysdeps/ieee754/ldbl-128/s_tanl.c: Include
24959 <libm-alias-ldouble.h>.
24960 (tanl): Define using libm_alias_ldouble.
24961 * sysdeps/ieee754/ldbl-128/s_totalorderl.c: Include
24962 <libm-alias-ldouble.h>.
24963 (totalorderl): Define using libm_alias_ldouble.
24964 * sysdeps/ieee754/ldbl-128/s_totalordermagl.c: Include
24965 <libm-alias-ldouble.h>.
24966 (totalordermagl): Define using libm_alias_ldouble.
24967 * sysdeps/ieee754/ldbl-128/s_truncl.c: Include
24968 <libm-alias-ldouble.h>.
24969 (truncl): Define using libm_alias_ldouble.
24970 * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (ufromfpl): Define using
24971 libm_alias_ldouble.
24972 * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (ufromfpxl): Define using
24973 libm_alias_ldouble.
24974 * sysdeps/ieee754/ldbl-64-128/s_copysignl.c: Include
24975 <libm-alias-ldouble.h>.
24976 (weak_alias): Do not undefine and redefine.
24977 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
24978 (copysignl): Define with long_double_symbol only if [IS_IN
24979 (libc)].
24980 * sysdeps/ieee754/ldbl-64-128/s_frexpl.c: Include
24981 <libm-alias-ldouble.h>.
24982 (weak_alias): Do not undefine and redefine.
24983 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
24984 (frexpl): Define with long_double_symbol only if [IS_IN (libc)].
24985 * sysdeps/ieee754/ldbl-64-128/s_modfl.c: Include
24986 <libm-alias-ldouble.h>.
24987 (weak_alias): Do not undefine and redefine.
24988 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
24989 (modfl): Define with long_double_symbol only if [IS_IN (libc)].
24990 * sysdeps/ieee754/ldbl-64-128/s_asinhl.c: Remove file.
24991 * sysdeps/ieee754/ldbl-64-128/s_atanl.c: Likewise.
24992 * sysdeps/ieee754/ldbl-64-128/s_cbrtl.c: Likewise.
24993 * sysdeps/ieee754/ldbl-64-128/s_ceill.c: Likewise.
24994 * sysdeps/ieee754/ldbl-64-128/s_cosl.c: Likewise.
24995 * sysdeps/ieee754/ldbl-64-128/s_erfl.c: Likewise.
24996 * sysdeps/ieee754/ldbl-64-128/s_expm1l.c: Likewise.
24997 * sysdeps/ieee754/ldbl-64-128/s_fabsl.c: Likewise.
24998 * sysdeps/ieee754/ldbl-64-128/s_floorl.c: Likewise.
24999 * sysdeps/ieee754/ldbl-64-128/s_fmal.c: Likewise.
25000 * sysdeps/ieee754/ldbl-64-128/s_llrintl.c: Likewise.
25001 * sysdeps/ieee754/ldbl-64-128/s_llroundl.c: Likewise.
25002 * sysdeps/ieee754/ldbl-64-128/s_logbl.c: Likewise.
25003 * sysdeps/ieee754/ldbl-64-128/s_lrintl.c: Likewise.
25004 * sysdeps/ieee754/ldbl-64-128/s_lroundl.c: Likewise.
25005 * sysdeps/ieee754/ldbl-64-128/s_nearbyintl.c: Likewise.
25006 * sysdeps/ieee754/ldbl-64-128/s_remquol.c: Likewise.
25007 * sysdeps/ieee754/ldbl-64-128/s_rintl.c: Likewise.
25008 * sysdeps/ieee754/ldbl-64-128/s_roundl.c: Likewise.
25009 * sysdeps/ieee754/ldbl-64-128/s_sincosl.c: Likewise.
25010 * sysdeps/ieee754/ldbl-64-128/s_sinl.c: Likewise.
25011 * sysdeps/ieee754/ldbl-64-128/s_tanhl.c: Likewise.
25012 * sysdeps/ieee754/ldbl-64-128/s_tanl.c: Likewise.
25013 * sysdeps/ieee754/ldbl-64-128/s_truncl.c: Likewise.
25014
25015 2017-10-06 Carlos O'Donell <carlos@redhat.com>
25016
25017 [BZ #22111]
25018 * malloc/malloc.c (tcache_shutting_down): Use bool type.
25019 (tcache_thread_freeres): Set tcache_shutting_down before
25020 freeing the tcache.
25021 * malloc/Makefile (tests): Add tst-malloc-tcache-leak.
25022 * malloc/tst-malloc-tcache-leak.c: New file.
25023
25024 2017-10-06 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
25025
25026 * sysdeps/powerpc/powerpc64/multiarch/memrchr-ppc64.c: Revert
25027 back to powerpc32 file.
25028 * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
25029 (memrchr): Add __memrchr_power8 to ifunc list.
25030 * sysdeps/powerpc/powerpc64/power8/memrchr.S: Mask
25031 extra bytes for unaligned inputs.
25032
25033 2017-10-06 Joseph Myers <joseph@codesourcery.com>
25034
25035 * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: Remove file.
25036 * sysdeps/ieee754/ldbl-64-128/s_log1pl.c: Likewise.
25037 * sysdeps/ieee754/ldbl-64-128/s_scalblnl.c: Likewise.
25038 * sysdeps/ieee754/ldbl-64-128/s_scalbnl.c: Likewise.
25039 * sysdeps/ieee754/ldbl-64-128/w_scalblnl.c: Likewise.
25040
25041 2017-10-05 Joseph Myers <joseph@codesourcery.com>
25042
25043 * sysdeps/arm/libm-test-ulps: Update.
25044
25045 * sysdeps/ieee754/ldbl-96/s_asinhl.c: Include
25046 <libm-alias-ldouble.h>.
25047 (asinhl): Define using libm_alias_ldouble.
25048 * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Include
25049 <libm-alias-ldouble.h>.
25050 (cbrtl): Define using libm_alias_ldouble.
25051 * sysdeps/ieee754/ldbl-96/s_copysignl.c: Include
25052 <libm-alias-ldouble.h>.
25053 (copysignl): Define using libm_alias_ldouble.
25054 * sysdeps/ieee754/ldbl-96/s_cosl.c: Include
25055 <libm-alias-ldouble.h>.
25056 (cosl): Define using libm_alias_ldouble.
25057 * sysdeps/ieee754/ldbl-96/s_erfl.c: Include
25058 <libm-alias-ldouble.h>.
25059 (erfl): Define using libm_alias_ldouble.
25060 (erfcl): Likewise.
25061 * sysdeps/ieee754/ldbl-96/s_fmal.c: Include
25062 <libm-alias-ldouble.h>.
25063 (fmal): Define using libm_alias_ldouble.
25064 * sysdeps/ieee754/ldbl-96/s_frexpl.c: Include
25065 <libm-alias-ldouble.h>.
25066 (frexpl): Define using libm_alias_ldouble.
25067 * sysdeps/ieee754/ldbl-96/s_fromfpl.c (fromfpl): Define using
25068 libm_alias_ldouble.
25069 * sysdeps/ieee754/ldbl-96/s_fromfpl_main.c: Include
25070 <libm-alias-ldouble.h>.
25071 * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (fromfpxl): Define using
25072 libm_alias_ldouble.
25073 * sysdeps/ieee754/ldbl-96/s_getpayloadl.c: Include
25074 <libm-alias-ldouble.h>.
25075 (getpayloadl): Define using libm_alias_ldouble.
25076 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Include
25077 <libm-alias-ldouble.h>.
25078 (llrintl): Define using libm_alias_ldouble.
25079 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Include
25080 <libm-alias-ldouble.h>.
25081 (llroundl): Define using libm_alias_ldouble.
25082 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Include
25083 <libm-alias-ldouble.h>.
25084 (lrintl): Define using libm_alias_ldouble.
25085 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Include
25086 <libm-alias-ldouble.h>.
25087 (lroundl): Define using libm_alias_ldouble.
25088 * sysdeps/ieee754/ldbl-96/s_modfl.c: Include
25089 <libm-alias-ldouble.h>.
25090 (modfl): Define using libm_alias_ldouble.
25091 * sysdeps/ieee754/ldbl-96/s_nextupl.c: Include
25092 <libm-alias-ldouble.h>.
25093 (nextupl): Define using libm_alias_ldouble.
25094 * sysdeps/ieee754/ldbl-96/s_remquol.c: Include
25095 <libm-alias-ldouble.h>.
25096 (remquol): Define using libm_alias_ldouble.
25097 * sysdeps/ieee754/ldbl-96/s_roundevenl.c: Include
25098 <libm-alias-ldouble.h>.
25099 (roundevenl): Define using libm_alias_ldouble.
25100 * sysdeps/ieee754/ldbl-96/s_roundl.c: Include
25101 <libm-alias-ldouble.h>.
25102 (roundl): Define using libm_alias_ldouble.
25103 * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (setpayloadl): Define
25104 using libm_alias_ldouble.
25105 * sysdeps/ieee754/ldbl-96/s_setpayloadl_main.c: Include
25106 <libm-alias-ldouble.h>.
25107 * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c: Include
25108 <libm-alias-ldouble.h>.
25109 (setpayloadsigl): Define using libm_alias_ldouble.
25110 * sysdeps/ieee754/ldbl-96/s_sincosl.c: Include
25111 <libm-alias-ldouble.h>.
25112 (sincosl): Define using libm_alias_ldouble.
25113 * sysdeps/ieee754/ldbl-96/s_sinl.c: Include
25114 <libm-alias-ldouble.h>.
25115 (sinl): Define using libm_alias_ldouble.
25116 * sysdeps/ieee754/ldbl-96/s_tanhl.c: Include
25117 <libm-alias-ldouble.h>.
25118 (tanhl): Define using libm_alias_ldouble.
25119 * sysdeps/ieee754/ldbl-96/s_tanl.c: Include
25120 <libm-alias-ldouble.h>.
25121 (tanl): Define using libm_alias_ldouble.
25122 * sysdeps/ieee754/ldbl-96/s_totalorderl.c: Include
25123 <libm-alias-ldouble.h>.
25124 (totalorderl): Define using libm_alias_ldouble.
25125 * sysdeps/ieee754/ldbl-96/s_totalordermagl.c: Include
25126 <libm-alias-ldouble.h>.
25127 (totalordermagl): Define using libm_alias_ldouble.
25128 * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (ufromfpl): Define using
25129 libm_alias_ldouble.
25130 * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (ufromfpxl): Define using
25131 libm_alias_ldouble.
25132
25133 2017-10-05 Siddhesh Poyarekar <siddhesh@sourceware.org>
25134
25135 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
25136 memmove_falkor.
25137 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
25138 (__libc_ifunc_impl_list): Likewise.
25139 * sysdeps/aarch64/multiarch/memmove.c: Likewise.
25140 * sysdeps/aarch64/multiarch/memmove_falkor.S: New file.
25141
25142 * benchtests/bench-memmove-walk.c: New file.
25143 * benchtests/Makefile (string-benchset): Add it.
25144
25145 * benchtests/bench-memset-walk.c: New file.
25146 * benchtests/Makefile (string-benchset): Add it.
25147
25148 * benchtests/bench-memcpy-walk.c: New file.
25149 * benchtests/Makefile (string-benchset): Add it.
25150
25151 2017-10-05 Florian Weimer <fweimer@redhat.com>
25152
25153 nscd: Eliminate compilation time dependency in the build output.
25154 * nscd/nscd_stat.c (STATDATA_VERSION)
25155 (STATDATA_VERSION_SELINUX_FLAG, STATDATA_VERSION_FLAGS)
25156 (STATDATA_VERSION_FULL): New macro definitions.
25157 (compilation): Remove.
25158 (struct statdata): Adjust version member.
25159 (send_stats): Set version from STATDATA_VERSION_FULL.
25160 (receive_print_stats): Verify version against STATDATA_VERSION_FULL.
25161
25162 2017-10-05 Joseph Myers <joseph@codesourcery.com>
25163
25164 * configure.ac (--enable-add-ons): Remove option.
25165 (machine): Do not mention add-ons in comment.
25166 (LIBC_PRECONFIGURE): Likewise.
25167 (add_ons): Remove variable and sanity checks and logic to locate
25168 add-ons.
25169 (add_ons_automatic): Remove variable.
25170 (configured_add_ons): Likewise.
25171 (add_ons_sfx): Likewise.
25172 (add_ons_pfx): Likewise.
25173 (add_on_subdirs): Likewise.
25174 (sysnames_add_ons): Likewise. Remove loop over add-ons and
25175 consideration of add-ons in Implies handling.
25176 (sysdeps_add_ons): Likewise.
25177 * configure: Regenerated.
25178 * libidn/configure.ac: Remove.
25179 * libidn/configure: Likewise.
25180 * sysdeps/unix/inet/configure.ac: New file.
25181 * sysdeps/unix/inet/configure: New generated file.
25182 * sysdeps/unix/inet/Subdirs: Add libidn.
25183 * Makeconfig (sysdeps-srcdirs): Remove variable.
25184 (+sysdep_dirs): Do not include $(sysdeps-srcdirs).
25185 ($(common-objpfx)config.status): Do not depend on add-on files.
25186 ($(common-objpfx)shlib-versions.v.i): Do not mention add-ons in
25187 comment.
25188 (all-subdirs): Do not include $(add-on-subdirs).
25189 * Makefile (dist-prepare): Do not use $(sysdeps-add-ons).
25190 * config.make.in (add-ons): Remove variable.
25191 (add-on-subdirs): Likewise.
25192 (sysdeps-add-ons): Likewise.
25193 * manual/Makefile (add-chapters): Remove.
25194 ($(objpfx)texis): Do not depend on $(add-chapters).
25195 (nonexamples): Do not handle $(add-chapters).
25196 (examples): Do not handle $(add-ons).
25197 (chapters.% top-menu.%): Do not pass '$(add-chapters)' to
25198 libc-texinfo.sh.
25199 * manual/install.texi (Installation): Do not mention add-ons.
25200 (--enable-add-ons): Do not document configure option.
25201 * INSTALL: Regenerated.
25202 * manual/libc-texinfo.sh: Do not handle $2 add-ons argument.
25203 * manual/maint.texi (Hierarchy Conventions): Do not mention
25204 add-ons.
25205 * scripts/build-many-glibcs.py (Glibc.build_glibc): Do not use
25206 --enable-add-ons.
25207 * scripts/gen-sorted.awk: Do not handle Subdirs files from
25208 add-ons.
25209 * scripts/test-installation.pl: Do not handle glibc-compat add-on.
25210 * sysdeps/nptl/Makeconfig: Do not mention add-ons in comment.
25211
25212 2017-10-05 Andreas Schwab <schwab@suse.de>
25213
25214 [BZ #15142]
25215 * libio/genops.c (_IO_list_all_stamp): Delete. All uses removed.
25216 (_IO_flush_all_lockp): Always lock list_all_lock.
25217 (_IO_flush_all_linebuffered): Likewise.
25218 (_IO_unbuffer_all): Likewise.
25219
25220 2017-10-05 Florian Weimer <fweimer@redhat.com>
25221
25222 [BZ #15436]
25223 Do not flush stdio streams on abort.
25224 * stdlib/abort.c (fflush): Remove macro definition.
25225 (abort): Remove stages related to stdio flushing.
25226
25227 2017-10-05 Florian Weimer <fweimer@redhat.com>
25228
25229 * gmon/Makefile (CFLAGS-tst-gmon.c): Add -fno-omit-frame-pointer.
25230
25231 2017-10-05 Stefan Liebler <stli@linux.vnet.ibm.com>
25232
25233 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
25234
25235 2017-10-05 Florian Weimer <fweimer@redhat.com>
25236
25237 * support/support_format_hostent.c (support_format_hostent): Add
25238 more error information for NETDB_INTERNAL.
25239
25240 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
25241
25242 * config.h.in (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New.
25243 * include/libc-symbols.h (__hidden_proto_hiddenattr): Add check
25244 for PIC and NO_HIDDEN_EXTERN_FUNC_IN_PIE.
25245 * sysdeps/i386/configure.ac (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New
25246 AC_DEFINE if multi-arch is enabled.
25247 * sysdeps/i386/configure: Regenerated.
25248
25249 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
25250
25251 * Makeconfig (+link-static-before-libc): Use
25252 $(DEFAULT-LDFLAGS-$(@F)).
25253 * elf/Makefile (CRT-tst-tls1-static-non-pie): New.
25254 (LDFLAGS-tst-tls1-static-non-pie): Renamed to ...
25255 (DEFAULT-LDFLAGS-tst-tls1-static-non-pie): This.
25256
25257 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
25258
25259 * elf/Makefile (tests): Add tst-main1.
25260 (modules-names): Add tst-main1mod.
25261 ($(objpfx)tst-main1): New.
25262 (CRT-tst-main1): Likewise.
25263 (LDFLAGS-tst-main1): Likewise.
25264 (LDLIBS-tst-main1): Likewise.
25265 (tst-main1mod.so-no-z-defs): Likewise.
25266 * elf/tst-main1.c: New file.
25267 * elf/tst-main1mod.c: Likewise.
25268
25269 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
25270
25271 * math/test-math-iscanonical.cc (do_test): Return errors != 0.
25272
25273 2017-10-04 Joseph Myers <joseph@codesourcery.com>
25274
25275 * sysdeps/ieee754/dbl-64/s_fma.c: Include <libm-alias-double.h>.
25276 (fma): Define using libm_alias_double.
25277 * sysdeps/ieee754/ldbl-opt/s_fma.c: Remove file.
25278 * sysdeps/sparc/sparc32/fpu/s_fma.c: Do not include
25279 <math_ldbl_opt.h>.
25280 (fmal): Do not define as compat symbol here.
25281 * sysdeps/alpha/fpu/s_fma.c: New file.
25282
25283 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
25284
25285 * sysdeps/aarch64/dl-machine.h (elf_machine_rela): Expand MIN.
25286
25287 2017-10-04 Joseph Myers <joseph@codesourcery.com>
25288
25289 [BZ #22229]
25290 * sysdeps/sparc/sparc32/fpu/s_copysign.S: Include
25291 <math_ldbl_opt.h>
25292 (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
25293 and libc.
25294 * sysdeps/sparc/sparc32/fpu/s_fabs.S: Include <math_ldbl_opt.h>.
25295 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
25296 * sysdeps/sparc/sparc32/fpu/s_fma.c: Include <math_ldbl_opt.h>.
25297 (fmal): Define as compat symbol at version GLIBC_2_1 for libm.
25298 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
25299 Include <math_ldbl_opt.h>
25300 (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
25301 and libc.
25302 (compat_symbol): Undefine and redefine.
25303 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Include
25304 <math_ldbl_opt.h>
25305 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
25306 (compat_symbol): Undefine and redefine.
25307 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c
25308 [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h>.
25309 [HAVE_AS_VIS3_SUPPORT] (fmal): Define as compat symbol at version
25310 GLIBC_2_1 for libm.
25311 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Add
25312 GLIBC_2.0 copysignl symbol.
25313 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
25314 GLIBC_2.0 copysignl and fabsl and GLIBC_2.1 fmal symbols.
25315
25316 * sysdeps/alpha/fpu/s_nearbyint.c: Remove file.
25317
25318 2017-10-04 Florian Weimer <fweimer@redhat.com>
25319
25320 * scripts/check-local-headers.sh: Ignore nspr4 header file
25321 directory in addition to nspr.
25322
25323 2017-10-04 Guido Trentalancia <guido@trentalancia.net>
25324
25325 [BZ #17956]
25326 * configure.ac (--enable-nss-crypt): Use NSPR include directory.
25327 * configure: Regenerate.
25328 * crypt/Makefile (nss-cpp-flags): New variable.
25329 (CPPFLAGS-sha256-crypt.c, CPPFLAGS-sha512-crypt.c)
25330 (CPPFLAGS-md5-crypt.c): Use it.
25331 * scripts/check-local-headers.sh: Ignore nspr header file
25332 directory.
25333
25334 2017-10-04 Andreas Schwab <schwab@suse.de>
25335
25336 * nis/Makefile (services): Remove compat.
25337 (libnss_compat-routines, libnss_compat-inhibit-o): Don't define.
25338 ($(objpfx)libnss_compat.so): Remove rule.
25339 * nis/Versions (libnss_compat): Remove.
25340 * nss/Makefile (services): Add compat.
25341 (libnss_compat-routines, libnss_compat-inhibit-o): Define.
25342 * nss/Versions (libnss_compat): Define.
25343 * nss/nss_compat/compat-grp.c: Moved here from nis/nss_compat.
25344 Don't include <rpc/types.h>. Replace bool_t by bool.
25345 * nss/nss_compat/compat-initgroups.c: Likewise.
25346 * nss/nss_compat/compat-pwd.c: Likewise. Include "nisdomain.h"
25347 instead of <rpcsrv/ypclnt.h>.
25348 (getpwent_next_nss_netgr): Use __nss_get_default_domain instead of
25349 yp_get_default_domain.
25350 * nss/nss_compat/compat-pwd.c: Likewise.
25351 (getspent_next_nss_netgr): Use __nss_get_default_domain instead of
25352 yp_get_default_domain.
25353 * nss/nss_compat/nisdomain.c: New file.
25354 * nss/nss_compat/nisdomain.h: Likewise.
25355
25356 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
25357
25358 [BZ #22244]
25359 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Fix x == 0 case.
25360 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
25361
25362 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
25363
25364 [BZ #22243]
25365 * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c (__ieee754_log10): Use fabs.
25366 * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c (__ieee754_log2): Likewise.
25367
25368 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
25369
25370 * sysdeps/i386/start.S: Replace "leal main@GOT(%ebx), %eax" with
25371 "movl main@GOTOFF(%ebx), %eax".
25372
25373 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
25374
25375 * sysdeps/i386/dl-machine.h (elf_machine_load_address): Don't
25376 allow undefined _DYNAMIC in PIE libc.a.
25377 * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
25378 Likewse.
25379
25380 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
25381
25382 * sysdeps/mips/dl-machine.h (elf_machine_load_address): Don't
25383 check _DYNAMIC.
25384
25385 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
25386
25387 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Don't
25388 check _DYNAMIC.
25389
25390 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
25391
25392 * math/test-math-iscanonical.cc (error): Replace bool with int.
25393
25394 2017-10-03 Joseph Myers <joseph@codesourcery.com>
25395
25396 * sysdeps/ieee754/dbl-64/s_modf.c: Include <libm-alias-double.h>.
25397 (modf): Define using libm_alias_double, only if [!__modf].
25398 * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Include
25399 <libm-alias-double.h>.
25400 (modf): Define using libm_alias_double, only if [!__modf].
25401 * sysdeps/ieee754/ldbl-opt/s_modf.c (modfl): Only define libc
25402 compat symbol here.
25403 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-ppc32.c
25404 (weak_alias): Do not undefine and redefine.
25405 (strong_alias): Likewise.
25406 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-ppc64.c
25407 (weak_alias): Likewise.
25408 (strong_alias): Likewise.
25409
25410 * sysdeps/ieee754/dbl-64/s_logb.c: Include <libm-alias-double.h>.
25411 (logb): Define using libm_alias_double, only if [!__logb].
25412 * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Include
25413 <libm-alias-double.h>.
25414 (logb): Define using libm_alias_double, only if [!__logb].
25415 * sysdeps/ieee754/ldbl-opt/s_logb.c: Remove file.
25416 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-ppc32.c
25417 (weak_alias): Do not undefine and redefine.
25418 (strong_alias): Likewise.
25419 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-ppc64.c
25420 (weak_alias): Likewise.
25421 (strong_alias): Likewise.
25422
25423 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
25424
25425 * sysdeps/unix/sysv/linux/tile/sysdep.h (SYSCALL_ERROR_NAME):
25426 Check SHARED instead PIC.
25427
25428 2017-10-03 Joseph Myers <joseph@codesourcery.com>
25429
25430 * sysdeps/ieee754/dbl-64/s_fmaf.c: Include <libm-alias-float.h>.
25431 [!__fmaf] (fmaf): Define using libm_alias_float.
25432
25433 * sysdeps/ieee754/dbl-64/s_frexp.c: Include <libm-alias-double.h>.
25434 (frexp): Define using libm_alias_double.
25435 * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Include
25436 <libm-alias-double.h>.
25437 (frexp): Define using libm_alias_double.
25438 * sysdeps/ieee754/ldbl-opt/s_frexp.c (frexpl): Only define libc
25439 compat symbol here.
25440
25441 2017-10-03 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
25442
25443 [BZ #22235]
25444 * math/math.h: Trivial fix for unbalanced parentheses in comment.
25445 * math/Makefile [CXX] (tests): Add test-math-iscanonical.cc.
25446 (CFLAGS-test-math-iscanonical.cc): New variable.
25447 * math/test-math-iscanonical.cc: New file.
25448 * sysdeps/ieee754/ldbl-96/bits/iscanonical.h (iscanonical):
25449 Provide a C++ implementation based on function overloading,
25450 rather than using __MATH_TG, which uses C-only builtins.
25451 * sysdeps/ieee754/ldbl-128ibm/bits/iscanonical.h (iscanonical):
25452 Likewise.
25453 * sysdeps/powerpc/powerpc64le/Makefile
25454 (CFLAGS-test-math-iscanonical.cc): New variable.
25455
25456 2017-10-03 Joseph Myers <joseph@codesourcery.com>
25457
25458 * sysdeps/ieee754/dbl-64/s_ceil.c: Include <libm-alias-double.h>.
25459 (ceil): Define using libm_alias_double.
25460 * sysdeps/ieee754/dbl-64/s_floor.c: Include <libm-alias-double.h>.
25461 (floor): Define using libm_alias_double.
25462 * sysdeps/ieee754/dbl-64/s_llround.c: Include
25463 <libm-alias-double.h>.
25464 (llround): Define using libm_alias_double.
25465 * sysdeps/ieee754/dbl-64/s_lround.c: Include
25466 <libm-alias-double.h>.
25467 (lround): Define using libm_alias_double.
25468 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Include
25469 <libm-alias-double.h>.
25470 (nearbyint): Define using libm_alias_double.
25471 * sysdeps/ieee754/dbl-64/s_remquo.c: Include
25472 <libm-alias-double.h>.
25473 (remquo): Define using libm_alias_double.
25474 * sysdeps/ieee754/dbl-64/s_rint.c: Include <libm-alias-double.h>.
25475 (rint): Define using libm_alias_double.
25476 * sysdeps/ieee754/dbl-64/s_round.c: Include <libm-alias-double.h>.
25477 (round): Define using libm_alias_double.
25478 * sysdeps/ieee754/dbl-64/s_trunc.c: Include <libm-alias-double.h>.
25479 (trunc): Define using libm_alias_double.
25480 * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Include
25481 <libm-alias-double.h>.
25482 (ceil): Define using libm_alias_double.
25483 * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Include
25484 <libm-alias-double.h>.
25485 (floor): Define using libm_alias_double.
25486 * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: Include
25487 <libm-alias-double.h>.
25488 (llround): Define using libm_alias_double.
25489 [_LP64] (lround): Likewise.
25490 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Include
25491 <libm-alias-double.h>.
25492 [!_LP64] (lround): Define using libm_alias_double.
25493 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Include
25494 <libm-alias-double.h>.
25495 (nearbyint): Define using libm_alias_double.
25496 * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Include
25497 <libm-alias-double.h>.
25498 (remquo): Define using libm_alias_double.
25499 * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Include
25500 <libm-alias-double.h>.
25501 (rint): Define using libm_alias_double.
25502 * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Include
25503 <libm-alias-double.h>.
25504 (round): Define using libm_alias_double.
25505 * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Include
25506 <libm-alias-double.h>.
25507 (trunc): Define using libm_alias_double.
25508 * sysdeps/ieee754/ldbl-opt/s_ceil.c: Remove file.
25509 * sysdeps/ieee754/ldbl-opt/s_floor.c: Likewise.
25510 * sysdeps/ieee754/ldbl-opt/s_llround.c: Likewise.
25511 * sysdeps/ieee754/ldbl-opt/s_lround.c: Likewise.
25512 * sysdeps/ieee754/ldbl-opt/s_nearbyint.c: Likewise.
25513 * sysdeps/ieee754/ldbl-opt/s_remquo.c: Likewise.
25514 * sysdeps/ieee754/ldbl-opt/s_rint.c: Likewise.
25515 * sysdeps/ieee754/ldbl-opt/s_round.c: Likewise.
25516 * sysdeps/ieee754/ldbl-opt/s_trunc.c: Likewise.
25517
25518 2017-10-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
25519
25520 * math/w_remainder.c: New file.
25521 * math/w_remainderf.c: New file.
25522 * math/w_remainderl.c: New file.
25523
25524 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
25525
25526 * elf/rtld.c (BOOTSTRAP_MAP): New.
25527 (RESOLVE_MAP): Replace (&bootstrap_map) with BOOTSTRAP_MAP.
25528 * sysdeps/hppa/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
25529 Likewise.
25530 * sysdeps/ia64/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
25531 Likewise.
25532 * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
25533 Likewise.
25534
25535 2017-10-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
25536
25537 * include/libc-symbols.h [NO_RTLD_HIDDEN] (rtld_hidden_proto,
25538 rtld_hidden_tls_proto, rtld_hidden_def, rtld_hidden_weak,
25539 rtld_hidden_rtld_hidden_ver, data_def, rtld_hidden_data_weak,
25540 rtld_hidden_data_ver): Define to empty.
25541 * include/assert.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__assert_fail,
25542 __assert_perror_fail): Likewise.
25543 * include/dirent.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
25544 (__rewinddir): Likewise.
25545 * include/libc-internal.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
25546 (__profile_frequency): Likewise.
25547 * include/setjmp.h (__sigsetjmp): Likewise.
25548 * include/signal.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__sigaction,
25549 __libc_sigaction): Likewise.
25550 * include/stdlib.h [NO_RTLD_HIDDEN] (unsetenv, __strtoul_internal): Do
25551 not set hidden attribute.
25552 * include/string.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__stpcpy, __strdup,
25553 __strerror_t, __strsep_g, memchr, memcmp, memcpy, memmove, memset,
25554 rawmemchr, stpcpy, strchr, strcmp, strlen, strnlen, strsep): Likewise.
25555 * include/sys/stat.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__fxstat,
25556 __fxstat64, __lxstat, __lxstat64, __xstat, __xstat64,
25557 __fxstatat64): Likewise.
25558 * include/sys/utsname.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
25559 (__uname): Likewise.
25560 * include/sysdeps/generic/_itoa.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
25561 (_itoa_upper_digits, _itoa_lower_digits): Likewise.
25562 * sysdeps/mach/hurd/configure.ac (NO_HIDDEN): Do not set.
25563 (NO_RTLD_HIDDEN): Set.
25564 * sysdeps/mach/hurd/configure: Refresh.
25565 * config.h.in: Refresh.
25566
25567 2017-10-02 Joseph Myers <joseph@codesourcery.com>
25568
25569 * sysdeps/ieee754/dbl-64/s_atan.c: Include <libm-alias-double.h>.
25570 (atan): Define using libm_alias_double.
25571 * sysdeps/ieee754/dbl-64/s_tan.c: Include <libm-alias-double.h>.
25572 (tan): Define using libm_alias_double.
25573 * sysdeps/ieee754/ldbl-opt/s_atan.c: Remove file.
25574 * sysdeps/ieee754/ldbl-opt/s_tan.c: Likewise.
25575
25576 * sysdeps/ieee754/dbl-64/s_atan.c (atan): Rename to __atan and
25577 define as weak alias of __atan. Do not define any aliases if
25578 [__atan].
25579 [NO_LONG_DOUBLE] (__atanl): Define as strong alias of __atan.
25580 [NO_LONG_DOUBLE] (atanl): Define as weak alias of __atanl.
25581 * sysdeps/ieee754/dbl-64/s_tan.c (tan): Rename to __tan and define
25582 as weak alias of __tan. Do not define any aliases if [__tan].
25583 [NO_LONG_DOUBLE] (__tanl): Define as strong alias of __tan.
25584 [NO_LONG_DOUBLE] (tanl): Define as weak alias of __tanl.
25585 * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c (atan): Rename to
25586 __atan.
25587 * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c (atan): Likewise.
25588 * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c (atan): Likewise.
25589 * sysdeps/x86_64/fpu/multiarch/s_atan.c (atan): Rename to __atan
25590 and define as weak alias of __atan.
25591 * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c (tan): Rename to
25592 __atan.
25593 * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c (tan): Likewise.
25594 * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (tan): Likewise.
25595 * sysdeps/x86_64/fpu/multiarch/s_tan.c (tan): Rename to __tan and
25596 define as weak alias of __tan.
25597
25598 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
25599
25600 * math/w_lgamma.c: New file.
25601 * math/w_lgammaf.c: New file.
25602 * math/w_lgammal.c: New file.
25603
25604 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
25605
25606 * sysdeps/ieee754/flt-32/e_log2f.c (__log2f): Define without wrapper.
25607 * sysdeps/ieee754/flt-32/e_logf.c (__logf): Likewise
25608 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Likewise
25609 * sysdeps/ieee754/flt-32/w_log2f.c: New file.
25610 * sysdeps/ieee754/flt-32/w_logf.c: New file.
25611 * sysdeps/ieee754/flt-32/w_powf.c: New file.
25612 * sysdeps/i386/fpu/w_log2f.c: New file.
25613 * sysdeps/i386/fpu/w_logf.c: New file.
25614 * sysdeps/i386/fpu/w_powf.c: New file.
25615 * sysdeps/m68k/m680x0/fpu/w_log2f.c: New file.
25616 * sysdeps/m68k/m680x0/fpu/w_logf.c: New file.
25617 * sysdeps/m68k/m680x0/fpu/w_powf.c: New file.
25618
25619 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
25620 H.J. Lu <hongjiu.lu@intel.com>
25621
25622 * sysdeps/ieee754/flt-32/e_exp2f.c (__exp2f): Define without wrapper.
25623 * sysdeps/ieee754/flt-32/e_expf.c (__expf): Likewise
25624 * sysdeps/ieee754/flt-32/w_exp2f.c: New file.
25625 * sysdeps/ieee754/flt-32/w_expf.c: New file.
25626 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-ppc64.c: Update for
25627 the new expf code.
25628 * sysdeps/powerpc/powerpc64/fpu/multiarch/w_expf.c: New file.
25629 * sysdeps/powerpc/powerpc64/power8/fpu/w_expf.c: New file.
25630 * sysdeps/m68k/m680x0/fpu/w_exp2f.c: New file.
25631 * sysdeps/m68k/m680x0/fpu/w_expf.c: New file.
25632 * sysdeps/i386/fpu/w_exp2f.c: New file.
25633 * sysdeps/i386/fpu/w_expf.c: New file.
25634 * sysdeps/i386/i686/fpu/multiarch/w_expf.c: New file.
25635 * sysdeps/x86_64/fpu/w_expf.c: New file.
25636
25637 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
25638
25639 * math/Versions (logf): New libm symbol at GLIBC_2.27.
25640 (log2f): Likewise.
25641 (powf): Likewise.
25642 * math/w_log2f.c: New file.
25643 * math/w_logf.c: New file.
25644 * math/w_powf.c: New file.
25645 * math/w_log2f_compat.c (__log2f_compat): For compat symbol only.
25646 * math/w_logf_compat.c (__logf_compat): Likewise.
25647 * math/w_powf_compat.c (__powf_compat): Likewise.
25648 * sysdeps/ia64/fpu/e_log2f.S: Add versioned symbols.
25649 * sysdeps/ia64/fpu/e_logf.S: Likewise.
25650 * sysdeps/ia64/fpu/e_powf.S: Likewise.
25651 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
25652 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
25653 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
25654 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
25655 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
25656 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
25657 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
25658 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
25659 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
25660 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
25661 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
25662 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
25663 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
25664 Likewise.
25665 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
25666 Likewise.
25667 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
25668 Likewise.
25669 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
25670 Likewise.
25671 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
25672 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
25673 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
25674 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
25675 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
25676 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
25677 Likewise.
25678 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
25679 Likewise.
25680 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
25681 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
25682 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
25683
25684 2017-10-02 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
25685
25686 * sysdeps/powerpc/powerpc64/multiarch/Makefile
25687 (sysdep_routines): Add memrchr_power8.
25688 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
25689 (memrchr): Add __memrchr_power8 to list of memrchr functions.
25690 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S:
25691 New file.
25692 * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
25693 (memrchr): Add __memrchr_power8 to ifunc list.
25694 * sysdeps/powerpc/powerpc64/power8/memrchr.S: New file.
25695
25696 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25697
25698 [BZ #18822]
25699 * sysdeps/unix/sysv/linux/posix_fadvise64.c
25700 (__posix_fadvise64_l64): Add Add libc_hidden_proto and
25701 libc_hidden_def.
25702 * sysdeps/unix/sysv/linux/posix_fallocate64.c
25703 (__posix_fallocate64_l64): Likewise.
25704
25705 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25706
25707 [BZ #18822]
25708 * sysdeps/unix/sysv/linux/sched_setaffinity.c
25709 (__sched_setaffinity_new): Add libc_hidden_proto and
25710 libc_hidden_def.
25711
25712 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25713
25714 [BZ #18822]
25715 * include/glob.h (__glob64): Add libc_hidden_proto.
25716 * sysdeps/unix/sysv/linux/glob64.c (__glob64): Add
25717 libc_hidden_def.
25718
25719 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25720
25721 [BZ #18822]
25722 * sysdeps/unix/sysv/linux/getrlimit64.c (__new_getrlimit): Add
25723 attribute_hidden.
25724
25725 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25726
25727 [BZ #18822]
25728 * stdlib/exit.h (__new_exitfn): Add attribute_hidden.
25729
25730 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25731
25732 [BZ #18822]
25733 * mon/gmon.c (__moncontrol): Add libc_hidden_proto and
25734 libc_hidden_def.
25735
25736 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25737
25738 [BZ #18822]
25739 * csu/version.c (__libc_print_version): Add attribute_hidden.
25740
25741 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25742
25743 [BZ #18822]
25744 * include/libc-internal.h (__init_misc): Add attribute_hidden.
25745
25746 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25747
25748 [BZ #18822]
25749 * include/fpu_control.h (__setfpucw): Add attribute_hidden.
25750
25751 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25752
25753 [BZ #18822]
25754 * nscd/nscd_helper.c (__nis_hash): New prototype.
25755
25756 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25757
25758 [BZ #18822]
25759 * include/termios.h (__tcgetattr): Add libc_hidden_proto.
25760 * sysdeps/unix/bsd/tcgetattr.c (__tcgetattr): Add
25761 libc_hidden_def.
25762 * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Likewise.
25763 * termios/tcgetattr.c (__tcgetattr): Likewise.
25764
25765 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25766
25767 [BZ #18822]
25768 * include/sys/resource.h (__setrlimit): Add libc_hidden_proto.
25769 * resource/setrlimit.c (__setrlimit): Add libc_hidden_def.
25770 * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Likewise.
25771 * sysdeps/unix/sysv/linux/setrlimit.c (__setrlimit): Likewise.
25772 * sysdeps/unix/sysv/linux/setrlimit64.c (__GI___setrlimit): New.
25773
25774 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25775
25776 [BZ #18822]
25777 * include/monetary.h (__vstrfmon_l): Add attribute_hidden.
25778
25779 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25780
25781 [BZ #18822]
25782 * include/sched.h (__sched_setparam): Add libc_hidden_proto.
25783 * posix/sched_setp.c (__sched_setparam): Add libc_hidden_def.
25784
25785 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25786
25787 [BZ #18822]
25788 * intl/hash-string.h (__hash_string): Add attribute_hidden.
25789
25790 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25791
25792 [BZ #18822]
25793 * include/mntent.h (__hasmntopt): Add libc_hidden_proto.
25794 * misc/mntent_r.c (__hasmntopt): Add libc_hidden_def.
25795
25796 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25797
25798 [BZ #18822]
25799 * include/ifreq.h: New file.
25800 * sysdeps/generic/ifreq.h (__if_nextreq): Removed.
25801 (__ifreq): Likewise.
25802 * sysdeps/mach/hurd/ifreq.h (__if_nextreq): Removed.
25803 (__ifreq): Likewise.
25804
25805 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25806
25807 [BZ #18822]
25808 * include/idna.h: New file.
25809 * inet/getnameinfo.c: Include <idna.h> instead of
25810 <libidn/idna.h>.
25811 (__idna_to_unicode_lzlz): Removed.
25812 * sysdeps/posix/getaddrinfo.c: Include <idna.h> instead of
25813 <libidn/idna.h>.
25814 (__idna_to_ascii_lz): Removed.
25815 (__idna_to_unicode_lzlz): Likewise.
25816
25817 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25818
25819 [BZ #18822]
25820 * include/plural-exp.h: New file.
25821 * intl/plural-exp.c: Include <plural-exp.h> instead of
25822 "plural-exp.h".
25823
25824 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25825
25826 [BZ #18822]
25827 * sysdeps/unix/sysv/linux/getsourcefilter.c: Include
25828 "getsourcefilter.h".
25829 * sysdeps/unix/sysv/linux/getsourcefilter.h: New file.
25830 * sysdeps/unix/sysv/linux/setsourcefilter.c: Include
25831 "getsourcefilter.h".
25832 (__get_sol): Removed.
25833
25834 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25835
25836 [BZ #18822]
25837 * elf/dl-iteratephdr.c (hidden_proto (__dl_iterate_phdr)): Moved
25838 to ...
25839 * include/link.h (hidden_proto (__dl_iterate_phdr)): Here.
25840
25841 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25842
25843 [BZ #18822]
25844 * sysdeps/unix/sysv/linux/getpt.c (__bsd_getpt): Add
25845 attribute_hidden.
25846
25847 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25848
25849 [BZ #18822]
25850 * libio/iolibio.h (__fopen_maybe_mmap): Add attribute_hidden.
25851
25852 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25853
25854 [BZ #18822]
25855 * include/search.h (__tdestroy): Add libc_hidden_proto.
25856 * misc/tsearch.c (__tdestroy): Add libc_hidden_def.
25857
25858 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25859
25860 [BZ #18822]
25861 * include/assert.h (__assert_fail_base): Add attribute_hidden.
25862
25863 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25864
25865 [BZ #18822]
25866 * sysdeps/unix/sysv/linux/include/sys/sysinfo.h (__sysinfo): Add
25867 attribute_hidden.
25868
25869 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25870
25871 [BZ #18822]
25872 * include/signal.h (__kill): Add libc_hidden_proto.
25873 (__sigblock): Likewise.
25874 (__sigprocmask): Likewise.
25875 (__sigaltstack): Likewise.
25876 * signal/kill.c (__kill): Add libc_hidden_def.
25877 * signal/sigblock.c (__sigblock): Likewise.
25878 * signal/sigprocmask.c (__sigprocmask): Likewise.
25879 * sysdeps/mach/hurd/kill.c (__kill): Likewise.
25880 * sysdeps/mach/hurd/sigaltstack.c (__sigaltstack): Likewise.
25881 * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Likewise.
25882 * sysdeps/posix/sigblock.c (__sigblock): Likewise.
25883 * sysdeps/unix/sysv/linux/alpha/sigprocmask.c (__sigprocmask):
25884 Likewise.
25885 * sysdeps/unix/sysv/linux/ia64/sigprocmask.c (__sigprocmask):
25886 Likewise.
25887 * sysdeps/unix/sysv/linux/s390/s390-64/sigprocmask.c
25888 (__sigprocmask): Likewise.
25889 * sysdeps/unix/sysv/linux/sigprocmask.c (__sigprocmask):
25890 Likewise.
25891 * /sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c
25892 (__sigprocmask): Likewise.
25893 * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c (__sigprocmask):
25894 Likewise.
25895
25896 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25897
25898 [BZ #18822]
25899 * include/string.h (__strsep): Add libc_hidden_proto.
25900 * string/strsep.c (__strsep): Add libc_hidden_def.
25901
25902 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25903
25904 [BZ #18822]
25905 * posix/spawn_int.h (__posix_spawn_file_actions_realloc): Add
25906 attribute_hidden.
25907 (__spawni): Likewise.
25908
25909 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25910
25911 [BZ #18822]
25912 * include/sys/mman.h (__mremap): Add libc_hidden_proto.
25913 * sysdeps/unix/sysv/linux/m68k/mremap.S (__mremap): Add
25914 libc_hidden_def.
25915
25916 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25917
25918 [BZ #18822]
25919 * include/malloc.h (__malloc_check_init): Add attribute_hidden.
25920
25921 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25922
25923 [BZ #18822]
25924 * include/sys/ioctl.h (__ioctl): Add libc_hidden_proto.
25925 * misc/ioctl.c (__ioctl): Add libc_hidden_def.
25926 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
25927 * sysdeps/unix/sysv/linux/aarch64/ioctl.S (__ioctl): Likewise.
25928 * sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S (__ioctl):
25929 Likewise.
25930 * sysdeps/unix/sysv/linux/powerpc/ioctl.c (__ioctl): Likewise.
25931 * sysdeps/unix/sysv/linux/tile/tilegx/ioctl.S (__ioctl): Likewise.
25932
25933 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25934
25935 [BZ #18822]
25936 * intl/gettextP.h (__dcngettext): Add attribute_hidden.
25937 (__dcigettext): Likewise.
25938
25939 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25940
25941 [BZ #18822]
25942 * include/sys/sysinfo.h (__get_nprocs_conf): Add
25943 libc_hidden_proto.
25944 (__get_nprocs): Likewise.
25945 (__get_phys_pages): Likewise.
25946 (__get_avphys_pages): Likewise.
25947 (__get_child_max): Add attribute_hidden.
25948 * misc/getsysstats.c (__get_nprocs_conf): Add libc_hidden_def.
25949 (__get_nprocs): Likewise.
25950 (__get_phys_pages): Likewise.
25951 (__get_avphys_pages): Likewise.
25952 * sysdeps/mach/getsysstats.c (__get_nprocs_conf): Add
25953 libc_hidden_def.
25954 (__get_nprocs): Likewise.
25955 (__get_phys_pages): Likewise.
25956 (__get_avphys_pages): Likewise.
25957 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Add
25958 libc_hidden_def.
25959 (__get_nprocs_conf): Likewise.
25960 (__get_phys_pages): Likewise.
25961 (__get_avphys_pages): Likewise.
25962
25963 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25964
25965 [BZ #18822]
25966 * sysdeps/unix/sysv/linux/netlinkaccess.h (__netlink_open): Add
25967 attribute_hidden.
25968 (__netlink_close): Likewise.
25969 (__netlink_free_handle): Likewise.
25970 (__netlink_request): Likewise.
25971
25972 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25973
25974 [BZ #18822]
25975 * include/rpc/rpc.h (__rpc_thread_variables): Add
25976 attribute_hidden.
25977 (__rpc_thread_svc_cleanup): Likewise.
25978 (__rpc_thread_clnt_cleanup): Likewise.
25979 (__rpc_thread_key_cleanup): Likewise.
25980
25981 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25982
25983 [BZ #18822]
25984 * include/sys/uio.h (__readv): Add libc_hidden_proto.
25985 (__writev): Likewise.
25986 * misc/readv.c (__readv): Add libc_hidden_def.
25987 * misc/writev.c (__writev): Likewise.
25988 * sysdeps/posix/readv.c (__readv): Likewise.
25989 * sysdeps/posix/writev.c (__writev): Likewise.
25990 * sysdeps/unix/sysv/linux/readv.c: Include <sys/uio.h>.
25991 (__readv): Likewise.
25992 * sysdeps/unix/sysv/linux/writev.c: Include <sys/uio.h>.
25993 (__writev): Likewise.
25994
25995 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25996
25997 [BZ #18822]
25998 * include/regex.h (__re_compile_fastmap): Add attribute_hidden.
25999 (__regcomp): Add libc_hidden_proto.
26000 (__regexec): Likewise.
26001 (__regfree): Likewise.
26002 * posix/regcomp.c (__regcomp): Add libc_hidden_def.
26003 (__regfree): Likewise.
26004 * posix/regexec.c (__regexec): Likewise.
26005
26006 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26007
26008 [BZ #18822]
26009 * include/utmp.h (__updwtmp): Add libc_hidden_proto.
26010 (__getutent): Likewise.
26011 (__getutid): Likewise.
26012 (__getutline): Likewise.
26013 (__pututline): Likewise.
26014 (__getutent_r): Likewise.
26015 (__getutid_r): Likewise.
26016 (__getutline_r): Likewise.
26017 (__utmpname): Add attribute_hidden.
26018 (__setutent): Likewise.
26019 (__endutent): Likewise.
26020 * login/getutent.c (__getutent): Add libc_hidden_def.
26021 * login/getutent_r.c (__getutent_r): Likewise.
26022 (__pututline): Likewise.
26023 * login/getutid.c (__getutid): Likewise.
26024 * login/getutid_r.c (__getutid_r): Likewise.
26025 * login/getutline.c (__getutline): Likewise.
26026 * login/getutline_r.c (__getutline_r): Likewise.
26027 * login/updwtmp.c (__updwtmp): Likewise.
26028
26029 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26030
26031 [BZ #18822]
26032 * include/dirent.h (__opendir): Always add attribute_hidden.
26033 (__fdopendir): Likewise.
26034 (__closedir): Likewise.
26035 (__readdir): Likewise.
26036 (__readdir64): Add libc_hidden_proto.
26037 * sysdeps/mach/hurd/readdir64.c (__readdir64): Add libc_hidden_def.
26038 * sysdeps/unix/sysv/linux/i386/readdir64.c (__readdir64): Likewise.
26039 * sysdeps/unix/sysv/linux/readdir64.c (__readdir64): Likewise.
26040 * sysdeps/unix/sysv/linux/wordsize-64/readdir.c (__GI___readdir64):
26041 New alias.
26042
26043 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26044
26045 [BZ #18822]
26046 * include/aliases.h (__getaliasbyname_r): Add attribute_hidden.
26047 * include/netdb.h (__gethostbyaddr_r): Likewise.
26048 (__gethostbyname_r): Likewise.
26049 (__gethostbyname2_r): Likewise.
26050 (__getnetbyaddr_r): Likewise.
26051 (__getnetbyname_r): Likewise.
26052 (__getservbyname_r): Likewise.
26053 (__getservbyport_r): Likewise.
26054 (__getprotobyname_r): Likewise.
26055 (__getprotobynumber_r): Likewise.
26056 (__getnetgrent_r): Likewise.
26057 * include/rpc/netdb.h (__getrpcbyname_r): Likewise.
26058 (__getrpcbynumber_r): Likewise.
26059 * nss/getXXbyYY.c (INTERNAL (REENTRANT_NAME)): Likewise.
26060
26061 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26062
26063 [BZ #18822]
26064 * include/stdio.h (__fcloseall): Add attribute_hidden.
26065 (__getline): Likewise.
26066 (__path_search): Likewise.
26067 (__gen_tempname): Likewise.
26068 (__libc_message): Likewise.
26069 (__flockfile): Likewise.
26070 (__funlockfile): Likewise.
26071 (__fxprintf): Likewise.
26072 (__fxprintf_nocancel): Likewise.
26073
26074 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26075
26076 [BZ #18822]
26077 * include/gshadow.h (__fgetsgent_r): Add attribute_hidden.
26078 (__sgetsgent_r): Likewise.
26079
26080 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26081
26082 [BZ #18822]
26083 * include/sys/statfs.h (__fstatfs): Add attribute_hidden.
26084 (__statfs64): Likewise.
26085 (__fstatfs64): Likewise.
26086 * include/sys/statvfs.h (__statvfs64): Likewise.
26087 (__fstatvfs64): Likewise.
26088 * sysdeps/unix/sysv/linux/pathconf.h (__statfs_link_max): Likewise.
26089 (__statfs_filesize_max): Likewise.
26090 (__statfs_symlinks): Likewise.
26091 (__statfs_chown_restricted): Likewise.
26092
26093 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26094
26095 [BZ #18822]
26096 * include/time.h (__tzstring): Add attribute_hidden.
26097 (__tzfile_read): Likewise.
26098 (__tzfile_compute): Likewise.
26099 (__tzfile_default): Likewise.
26100 (__tzset_parse_tz): Likewise.
26101 (__offtime): Likewise.
26102 (__asctime_r): Likewise.
26103 (__tzset): Likewise.
26104 (__tz_convert): Likewise.
26105 (__getdate_r): Likewise.
26106 (__getclktck): Likewise.
26107
26108 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26109
26110 [BZ #18822]
26111 * nscd/nscd-client.h (__nscd_get_map_ref): Add attribute_hidden.
26112 (__nscd_unmap): Likewise.
26113 (__nscd_cache_search): Likewise.
26114 (__nscd_get_nl_timestamp): Likewise.
26115 (__nscd_getpwnam_r): Likewise.
26116 (__nscd_getpwuid_r): Likewise.
26117 (__nscd_getgrnam_r): Likewise.
26118 (__nscd_getgrgid_r): Likewise.
26119 (__nscd_gethostbyname_r): Likewise.
26120 (__nscd_gethostbyname2_r): Likewise.
26121 (__nscd_gethostbyaddr_r): Likewise.
26122 (__nscd_getai): Likewise.
26123 (__nscd_getgrouplist): Likewise.
26124 (__nscd_getservbyname_r): Likewise.
26125 (__nscd_getservbyport_r): Likewise.
26126 (__nscd_innetgr): Likewise.
26127 (__nscd_setnetgrent): Likewise.
26128
26129 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26130
26131 [BZ #18822]
26132 * include/gmp.h: Declare internal functions only if _ISOMAC is
26133 undefined.
26134 (__mpn_extract_double): Add attribute_hidden.
26135 (__mpn_extract_long_double): Likewise.
26136 (__mpn_extract_float128): Likewise.
26137 (__mpn_construct_float): Likewise.
26138 (__mpn_construct_double): Likewise.
26139 (__mpn_construct_long_double): Likewise.
26140 (__mpn_construct_float128): Likewise.
26141 (mpn_add_1): Likewise.
26142 (mpn_addmul_1): Likewise.
26143 (mpn_add_n): Likewise.
26144 (mpn_cmp): Likewise.
26145 (mpn_divrem): Likewise.
26146 (mpn_lshift): Likewise.
26147 (mpn_mul): Likewise.
26148 (mpn_mul_1): Likewise.
26149 (mpn_rshift): Likewise.
26150 (mpn_sub_1): Likewise.
26151 (mpn_submul_1): Likewise.
26152 (mpn_sub_n): Likewise.
26153
26154 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26155
26156 [BZ #18822]
26157 * include/wchar.h (__wcsnlen): Add attribute_hidden.
26158 (__wcscat): Likewise.
26159 (__btowc): Likewise.
26160 (__wcrtomb): Likewise.
26161 (__mbsrtowcs): Likewise.
26162 (__wcsrtombs): Likewise.
26163 (__mbsnrtowcs): Likewise.
26164 (__wcsnrtombs): Likewise.
26165 (__wcsncpy): Likewise.
26166 (__wcpncpy): Likewise.
26167 (__wmemcpy): Likewise.
26168 (__wmempcpy): Likewise.
26169 (__wmemmove): Likewise.
26170 (__wcschrnul): Likewise.
26171 (__vfwscanf): Likewise.
26172 (__vswprintf): Likewise.
26173 (__fwprintf): Likewise.
26174 (__vfwprintf): Likewise.
26175
26176 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26177
26178 [BZ #18822]
26179 * include/grp.h (__fgetgrent_r): Add attribute_hidden.
26180 (__getgrgid_r): Likewise.
26181 (__getgrnam_r): Likewise.
26182 * include/pwd.h (__getpwuid_r): Likewise.
26183 (__getpwnam_r): Likewise.
26184 (__fgetpwent_r): Likewise.
26185 * include/shadow.h (__getspnam_r): Likewise.
26186 (__sgetspent_r): Likewise.
26187 (__fgetspent_r): Likewise.
26188
26189 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26190
26191 [BZ #18822]
26192 * include/unistd.h (__access): Add attribute_hidden.
26193 (__lseek64): Likewise.
26194 (__libc_pread64): Likewise.
26195 (__pipe2): Likewise.
26196 (__sleep): Likewise.
26197 (__chdir): Likewise.
26198 (__fchdir): Likewise.
26199 (__getcwd): Likewise.
26200 (__rmdir): Likewise.
26201 (__execvpe): Likewise.
26202 (__execve): Likewise.
26203 (__setsid): Likewise.
26204 (__getuid): Likewise.
26205 (__geteuid): Likewise.
26206 (__getgid): Likewise.
26207 (__getegid): Likewise.
26208 (__getgroups): Likewise.
26209 (__group_member): Likewise.
26210 (__ttyname_r): Likewise.
26211 (__isatty): Likewise.
26212 (__readlink): Likewise.
26213 (__unlink): Likewise.
26214 (__gethostname): Likewise.
26215 (__profil): Likewise.
26216 (__getdtablesize): Likewise.
26217 (__brk): Likewise.
26218 (__ftruncate): Likewise.
26219 (__ftruncate64): Likewise.
26220
26221 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26222
26223 [BZ #18822]
26224 * argp/argp-fmtstream.c: Include <argp-fmtstream.h>.
26225 * argp/argp-fs-xinl.c: Likewise.
26226 * argp/argp-help.c: Include <argp.h> and <argp-fmtstream.h>.
26227 * argp/argp-parse.c: Include <argp.h>.
26228 * argp/argp-xinl.c: Likewise.
26229 * include/argp-fmtstream.h: New file.
26230 * include/argp.h (__argp_error): Add attribute_hidden.
26231 (__argp_failure): Likewise.
26232 (__argp_input): Likewise.
26233 (__argp_state_help): Likewise.
26234
26235 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26236
26237 [BZ #18822]
26238 * include/wchar.h (____wcstof_l_internal): New prototype.
26239 (____wcstod_l_internal): Likewise.
26240 (____wcstold_l_internal): Likewise.
26241 (____wcstol_l_internal): Likewise.
26242 (____wcstoul_l_internal): Likewise.
26243 (____wcstoll_l_internal): Likewise.
26244 (____wcstoull_l_internal): Likewise.
26245 (____wcstof128_l_internal): Likewise.
26246 * sysdeps/ieee754/float128/wcstof128.c
26247 (____wcstof128_l_internal): Removed.
26248 * sysdeps/ieee754/float128/wcstof128_l.c
26249 (____wcstof128_l_internal): Likewise.
26250 * wcsmbs/wcstod.c (____wcstod_l_internal): Likewise.
26251 * wcsmbs/wcstod_l.c (____wcstod_l_internal): Likewise.
26252 * wcsmbs/wcstof.c (____wcstof_l_internal): Likewise.
26253 * wcsmbs/wcstof_l.c (____wcstof_l_internal): Likewise.
26254 * wcsmbs/wcstol_l.c (____wcstol_l_internal): Likewise.
26255 * wcsmbs/wcstold.c (____wcstold_l_internal): Likewise.
26256 * wcsmbs/wcstold_l.c (____wcstold_l_internal): Likewise.
26257 * wcsmbs/wcstoll_l.c (____wcstoll_l_internal): Likewise.
26258 * wcsmbs/wcstoul_l.c (____wcstoul_l_internal): Likewise.
26259 * wcsmbs/wcstoull_l.c (____wcstoull_l_internal): Likewise.
26260
26261 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26262
26263 [BZ #18822]
26264 * sysdeps/unix/sysv/linux/fstatvfs.c: Include "internal_statvfs.h"
26265 instead of <sys/statvfs.h>.
26266 (__internal_statvfs): Removed.
26267 * sysdeps/unix/sysv/linux/fstatvfs64.c Include "internal_statvfs.h"
26268 instead of <sys/statvfs.h>.
26269 (__internal_statvfs64): Removed.
26270 * sysdeps/unix/sysv/linux/internal_statvfs.c: Include
26271 "internal_statvfs.h" instead of <sys/statvfs.h>.
26272 * sysdeps/unix/sysv/linux/internal_statvfs.h: New file.
26273 * sysdeps/unix/sysv/linux/statvfs.c Include "internal_statvfs.h"
26274 instead of <sys/statvfs.h>.
26275 (__internal_statvfs): Removed.
26276 * sysdeps/unix/sysv/linux/statvfs64.c Include "internal_statvfs.h"
26277 instead of <sys/statvfs.h>.
26278 (__internal_statvfs64): Removed.
26279
26280 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26281
26282 [BZ #18822]
26283 * iconv/gconv_int.h (__gconv_open): Add attribute_hidden.
26284 (__gconv_close): Likewise.
26285 (__gconv): Likewise.
26286 (__gconv_find_transform): Likewise.
26287 (__gconv_lookup_cache): Likewise.
26288 (__gconv_compare_alias_cache): Likewise.
26289 (__gconv_load_cache): Likewise.
26290 (__gconv_get_path): Likewise.
26291 (__gconv_close_transform): Likewise.
26292 (__gconv_release_cache): Likewise.
26293 (__gconv_find_shlib): Likewise.
26294 (__gconv_release_shlib): Likewise.
26295 (__gconv_get_builtin_trans): Likewise.
26296 (__gconv_compare_alias): Likewise.
26297 * include/dlfcn.h (_dlerror_run): Likewise.
26298 * include/stdio.h (__fortify_fail_abort): Likewise.
26299 * include/time.h (__tz_compute): Likewise.
26300 (__strptime_internal): Likewise.
26301 * intl/gettextP.h (_nl_find_domain): Likewise.
26302 (_nl_load_domain): Likewise.
26303 (_nl_find_msg): Likewise.
26304 * intl/plural-exp.h (FREE_EXPRESSION): Likewise.
26305 (EXTRACT_PLURAL_EXPRESSION): Likewise.
26306 * locale/coll-lookup.h (__collidx_table_lookup): Likewise.
26307 * resolv/gai_misc.h (__gai_enqueue_request): Likewise.
26308 (__gai_find_request): Likewise.
26309 (__gai_remove_request): Likewise.
26310 (__gai_notify): Likewise.
26311 (__gai_notify_only): Likewise.
26312 * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
26313 * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
26314 (_dl_non_dynamic_init): Likewise.
26315 (_dl_aux_init): Likewise.
26316 * sysdeps/i386/machine-gmon.h (mcount_internal): Likewise.
26317 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
26318 Likewise.
26319 * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv): Likewise.
26320 (__wcsmbs_clone_conv): Likewise.
26321 (__wcsmbs_named_conv): Likewise.
26322
26323 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26324
26325 [BZ #18822]
26326 * include/stdlib.h (__random): Add attribute_hidden.
26327 (__random_r): Likewise.
26328 (__srandom_r): Likewise.
26329 (__initstate_r): Likewise.
26330 (__setstate_r): Likewise.
26331 (__erand48_r): Likewise.
26332 (__nrand48_r): Likewise.
26333 (__jrand48_r): Likewise.
26334 (__srand48_r): Likewise.
26335 (__seed48_r): Likewise.
26336 (__lcong48_r): Likewise.
26337 (__drand48_iterate): Likewise.
26338 (__setenv): Likewise.
26339 (__unsetenv): Likewise.
26340 (__clearenv): Likewise.
26341 (__ptsname_r): Likewise.
26342 (__posix_openpt): Likewise.
26343 (__add_to_environ): Likewise.
26344 (__realpath): Add libc_hidden_proto.
26345 (__ecvt_r): Likewise.
26346 (__fcvt_r): Likewise.
26347 (__qecvt_r): Likewise.
26348 (__qfcvt_r): Likewise.
26349 * misc/efgcvt_r.c (cvt_symbol_1): Add libc_hidden_def (local).
26350 * stdlib/canonicalize.c (__realpath): Add libc_hidden_def.
26351
26352 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26353
26354 [BZ #18822]
26355 * include/stdlib.h (__ptsname_internal): Add attribute_hidden.
26356 * include/time.h (__mktime_internal): Likewise.
26357 * libio/iolibio.h (__fopen_internal): Likewise.
26358
26359 2017-10-01 John David Anglin <danglin@gcc.gnu.org>
26360
26361 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Save return
26362 pointer in frame.
26363 * sysdeps/unix/sysv/linux/hppa/setcontext.S (__setcontext): Likewise.
26364 Correct offset used to restore PIC register.
26365
26366 2017-09-30 John David Anglin <danglin@gcc.gnu.org>
26367
26368 [BZ libc/22165]
26369 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Use PIC
26370 code to load address of __getcontext_ret when generating PIC code.
26371
26372 2017-09-30 H.J. Lu <hongjiu.lu@intel.com>
26373
26374 * elf/Makefile (tests-static-internal): Add
26375 tst-tls1-static-non-pie.
26376 (LDFLAGS-tst-tls1-static-non-pie): New.
26377 * elf/tst-tls1-static-non-pie.c: New file.
26378
26379 2017-09-29 Joseph Myers <joseph@codesourcery.com>
26380
26381 * sysdeps/ieee754/dbl-64/s_asinh.c: Include <libm-alias-double.h>.
26382 (asinh): Define using libm_alias_double.
26383 * sysdeps/ieee754/dbl-64/s_cbrt.c: Include <libm-alias-double.h>.
26384 (cbrt): Define using libm_alias_double.
26385 * sysdeps/ieee754/dbl-64/s_copysign.c: Include
26386 <libm-alias-double.h>.
26387 (copysign): Define using libm_alias_double.
26388 * sysdeps/ieee754/dbl-64/s_erf.c: Include <libm-alias-double.h>.
26389 (erf): Define using libm_alias_double.
26390 (erfc): Likewise.
26391 * sysdeps/ieee754/dbl-64/s_expm1.c: Include <libm-alias-double.h>.
26392 (expm1): Define using libm_alias_double.
26393 * sysdeps/ieee754/dbl-64/s_fabs.c: Include <libm-alias-double.h>.
26394 (fabs): Define using libm_alias_double.
26395 * sysdeps/ieee754/dbl-64/s_fromfp.c (fromfp): Define using
26396 libm_alias_double.
26397 * sysdeps/ieee754/dbl-64/s_fromfp_main.c: Include
26398 <libm-alias-double.h>.
26399 * sysdeps/ieee754/dbl-64/s_fromfpx.c (fromfpx): Define using
26400 libm_alias_double.
26401 * sysdeps/ieee754/dbl-64/s_getpayload.c: Include
26402 <libm-alias-double.h>.
26403 (getpayload): Define using libm_alias_double.
26404 * sysdeps/ieee754/dbl-64/s_llrint.c: Include
26405 <libm-alias-double.h>.
26406 (llrint): Define using libm_alias_double.
26407 * sysdeps/ieee754/dbl-64/s_lrint.c: Include <libm-alias-double.h>.
26408 (lrint): Define using libm_alias_double.
26409 * sysdeps/ieee754/dbl-64/s_nextup.c: Include
26410 <libm-alias-double.h>.
26411 (nextup): Define using libm_alias_double.
26412 * sysdeps/ieee754/dbl-64/s_roundeven.c: Include
26413 <libm-alias-double.h>.
26414 (roundeven): Define using libm_alias_double.
26415 * sysdeps/ieee754/dbl-64/s_setpayload.c (setpayload): Define using
26416 libm_alias_double.
26417 * sysdeps/ieee754/dbl-64/s_setpayload_main.c: Include
26418 <libm-alias-double.h>.
26419 * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (setpayloadsig): Define
26420 using libm_alias_double.
26421 * sysdeps/ieee754/dbl-64/s_sin.c: Include <libm-alias-double.h>.
26422 (cos): Define using libm_alias_double.
26423 (sin): Likewise.
26424 * sysdeps/ieee754/dbl-64/s_sincos.c: Include
26425 <libm-alias-double.h>.
26426 (sincos): Define using libm_alias_double.
26427 * sysdeps/ieee754/dbl-64/s_tanh.c: Include <libm-alias-double.h>.
26428 (tanh): Define using libm_alias_double.
26429 * sysdeps/ieee754/dbl-64/s_totalorder.c: Include
26430 <libm-alias-double.h>.
26431 (totalorder): Define using libm_alias_double.
26432 * sysdeps/ieee754/dbl-64/s_totalordermag.c: Include
26433 <libm-alias-double.h>.
26434 (totalordermag): Define using libm_alias_double.
26435 * sysdeps/ieee754/dbl-64/s_ufromfp.c (ufromfp): Define using
26436 libm_alias_double.
26437 * sysdeps/ieee754/dbl-64/s_ufromfpx.c (ufromfpx): Define using
26438 libm_alias_double.
26439 * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c: Include
26440 <libm-alias-double.h>.
26441 (getpayload): Define using libm_alias_double.
26442 * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c: Include
26443 <libm-alias-double.h>.
26444 (roundeven): Define using libm_alias_double.
26445 * sysdeps/ieee754/dbl-64/wordsize-64/s_setpayload_main.c: Include
26446 <libm-alias-double.h>.
26447 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c: Include
26448 <libm-alias-double.h>.
26449 (totalorder): Define using libm_alias_double.
26450 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c: Include
26451 <libm-alias-double.h>.
26452 (totalordermag): Define using libm_alias_double.
26453 * sysdeps/ieee754/ldbl-opt/s_copysign.c (copysignl): Only define
26454 libc compat symbol here.
26455 * sysdeps/ieee754/ldbl-opt/s_asinh.c: Remove file.
26456 * sysdeps/ieee754/ldbl-opt/s_cbrt.c: Likewise.
26457 * sysdeps/ieee754/ldbl-opt/s_erf.c: Likewise.
26458 * sysdeps/ieee754/ldbl-opt/s_expm1.c: Likewise.
26459 * sysdeps/ieee754/ldbl-opt/s_fabs.c: Likewise.
26460 * sysdeps/ieee754/ldbl-opt/s_llrint.c: Likewise.
26461 * sysdeps/ieee754/ldbl-opt/s_lrint.c: Likewise.
26462 * sysdeps/ieee754/ldbl-opt/s_sin.c: Likewise.
26463 * sysdeps/ieee754/ldbl-opt/s_sincos.c: Likewise.
26464 * sysdeps/ieee754/ldbl-opt/s_tanh.c: Likewise.
26465
26466 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
26467
26468 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Use
26469 _dl_relocate_static_pie instead of _dl_start to compute load
26470 address in static PIE. Return 0 if _DYNAMIC is undefined for
26471 static executable.
26472
26473 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
26474
26475 * sysdeps/mips/dl-machine.h (elf_machine_dynamic): Return 0 if
26476 _DYNAMIC is undefined for static executable.
26477
26478 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
26479
26480 * sysdeps/arm/start.S (_start): Check PIC instead of SHARED.
26481
26482 2017-09-29 Joseph Myers <joseph@codesourcery.com>
26483
26484 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
26485
26486 2017-09-29 Wilco Dijkstra <wdijkstr@arm.com>
26487
26488 * sysdeps/ieee754/dbl-64/e_lgamma_r.c
26489 (__ieee754_lgamma_r): Use fabs rather than __fabs.
26490 * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
26491 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
26492 * sysdeps/ieee754/flt-32/e_lgammaf_r.c
26493 (__ieee754_lgammaf_r): Use fabsf rather than __fabsf.
26494 * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
26495 * sysdeps/ieee754/flt-32/e_log2f.c (__ieee754_log2f): Likewise.
26496 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c
26497 (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
26498 * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Likewise.
26499 * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Likewise.
26500 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
26501 (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
26502 * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l): Likewise.
26503 * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l): Likewise.
26504 * sysdeps/powerpc/nofpu/Makefile: Add -fno-builtin-fabsl for BZ #29253.
26505
26506 2017-09-29 Wilco Dijkstra <wdijkstr@arm.com>
26507
26508 * math/bits/cmathcalls.h (cimag): Remove inline.
26509 (creal): Remove inline.
26510 (conj): Remove inline.
26511
26512 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
26513
26514 * math/Makefile (type-float-routines): Add e_powf_log2_data.
26515 * sysdeps/ieee754/flt-32/e_powf.c: New implementation.
26516 * sysdeps/ieee754/flt-32/e_powf_log2_data.c: New file.
26517 * sysdeps/ieee754/flt-32/math_config.h (__powf_log2_data): Define.
26518 (issignalingf_inline): Likewise.
26519 (POWF_LOG2_TABLE_BITS): Likewise.
26520 (POWF_LOG2_POLY_ORDER): Likewise.
26521 (POWF_SCALE_BITS): Likewise.
26522 (POWF_SCALE): Likewise.
26523 * sysdeps/i386/fpu/e_powf_log2_data.c: New file.
26524 * sysdeps/ia64/fpu/e_powf_log2_data.c: New file.
26525 * sysdeps/m68k/m680x0/fpu/e_powf_log2_data.c: New file.
26526
26527 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
26528
26529 * math/Makefile (type-float-routines): Add e_log2f_data.
26530 * sysdeps/ieee754/flt-32/e_log2f.c: New implementation.
26531 * sysdeps/ieee754/flt-32/e_log2f_data.c: New file.
26532 * sysdeps/ieee754/flt-32/math_config.h (__log2f_data): Define.
26533 (LOG2F_TABLE_BITS, LOG2F_POLY_ORDER): Define.
26534 * sysdeps/i386/fpu/e_log2f_data.c: New file.
26535 * sysdeps/ia64/fpu/e_log2f_data.c: New file.
26536 * sysdeps/m68k/m680x0/fpu/e_log2f_data.c: New file.
26537
26538 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
26539
26540 * math/Makefile (type-float-routines): Add e_logf_data.
26541 * sysdeps/ieee754/flt-32/e_logf.c: New implementation.
26542 * sysdeps/ieee754/flt-32/e_logf_data.c: New file.
26543 * sysdeps/ieee754/flt-32/math_config.h (__logf_data): Define.
26544 (LOGF_TABLE_BITS, LOGF_POLY_ORDER): Define.
26545 * sysdeps/i386/fpu/e_logf_data.c: New file.
26546 * sysdeps/ia64/fpu/e_logf_data.c: New file.
26547 * sysdeps/m68k/m680x0/fpu/e_logf_data.c: New file.
26548
26549 2017-09-28 H.J. Lu <hongjiu.lu@intel.com>
26550
26551 * sysdeps/i386/dl-machine.h (elf_machine_load_address): Allow
26552 undefined _DYNAMIC in PIE libc.a.
26553 * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
26554 Likewse.
26555
26556 2017-09-28 Wilco Dijkstra <wdijkstr@arm.com>
26557
26558 * sysdeps/alpha/fpu/bits/mathinline.h: Delete file.
26559 * sysdeps/ia64/fpu/bits/mathinline.h: Delete file.
26560 * sysdeps/m68k/coldfire/fpu/bits/mathinline.h: Delete file.
26561 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: (__signbitf): Remove.
26562 (__signbit): Remove.
26563 (__signbitl): Remove.
26564 * sysdeps/powerpc/bits/mathinline.h (__signbitf): Remove.
26565 (__signbit): Remove.
26566 (__signbitl): Remove.
26567 * sysdeps/s390/fpu/bits/mathinline.h: (__signbitf): Remove.
26568 (__signbit): Remove.
26569 (__signbitl): Remove.
26570 * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf): Remove.
26571 (__signbit): Remove.
26572 (__signbitl): Remove.
26573 * sysdeps/tile/bits/mathinline.h: Delete file.
26574 * sysdeps/x86/fpu/bits/mathinline.h (__signbitf): Remove.
26575 (__signbit): Remove.
26576 (__signbitl): Remove.
26577
26578 2017-09-28 Wilco Dijkstra <wdijkstr@arm.com>
26579
26580 * math/math.h: Improve handling of C99 isgreater macros.
26581 * sysdeps/alpha/fpu/bits/mathinline.h: Remove isgreater macros.
26582 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: Likewise.
26583 * sysdeps/powerpc/bits/mathinline.h: Likewise.
26584 * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
26585 * sysdeps/x86/fpu/bits/mathinline.h: Likewise.
26586
26587 2017-09-28 Szabolcs Nagy <szabolcs.nagy@arm.com>
26588
26589 * sysdeps/aarch64/libm-test-ulps: Update.
26590
26591 2017-09-28 Joseph Myers <joseph@codesourcery.com>
26592
26593 [BZ #22225]
26594 * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
26595 math_opt_barrier on argument when doing arithmetic on it.
26596 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
26597 Likewise. Use math_force_eval not math_opt_barrier after
26598 arithmetic.
26599 * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Use
26600 math_opt_barrier on argument when doing arithmetic on it.
26601 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
26602 Likewise.
26603
26604 2017-09-27 H.J. Lu <hongjiu.lu@intel.com>
26605
26606 * sysdeps/unix/sysv/linux/ifaddrs.c (__getifaddrs): Add
26607 libc_hidden_def.
26608 (__freeifaddrs): Likewise.
26609
26610 2017-09-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
26611
26612 * include/dirent.h (__dirfd): New declaration.
26613 * dirent/dirfd.c (dirfd): Rename to __dirfd, and redefine as weak
26614 alias.
26615 * sysdeps/posix/dirfd/dirfd.c (dirfd): Likewise.
26616 * sysdeps/mach/hurd/dirfd.c (dirfd): Likewise.
26617 * io/ftw.c (open_dir_stream, ftw_dir): Use __dirfd instead of dirfd.
26618 * include/unistd.h (__revoke): New declaration.
26619 * misc/revoke.c (revoke): Rename to __revoke, and redefine as weak
26620 alias.
26621 * sysdeps/mach/hurd/revoke.c (revoke): Likewise.
26622 * sysdeps/unix/bsd/unlockpt.c (unlockpt): Use __revoke instead of
26623 revoke.
26624 * include/dirent.h (__seekdir): New declaration.
26625 * sysdeps/mach/hurd/seekdir.c (seekdir): Rename to __seekdir and
26626 redefine as weak alias.
26627 * sysdeps/mach/hurd/rewinddir.c (__rewinddir): Use __seekdir instead
26628 of seekdir.
26629 * include/ifaddrs.h (__getifaddrs, __freeifaddrs): New declarations,
26630 and use libc_hidden_def on them.
26631 * inet/ifaddrs.c (__getifaddrs, __freeifaddrs): Use libc_hidden_def on
26632 them.
26633 * sysdeps/gnu/ifaddrs.c (__getifaddrs, __freeifaddrs): Likewise.
26634 * inet/check_pf.c (__check_pf): Use __getifaddrs and __freeifaddrs
26635 instead of getifaddrs and freeifaddrs.
26636
26637 2017-09-26 H.J. Lu <hongjiu.lu@intel.com>
26638
26639 [BZ #18822]
26640 * dlfcn/modatexit.c (foo): Remove __dso_handle check.
26641 * dlfcn/modcxaatexit.c: Include <dso_handle.h>.
26642 (__dso_handle): Remove declaration.
26643 * dlfcn/tstatexit.c (__dso_handle): Removed.
26644 (main): Don't check __dso_handle.
26645 * dlfcn/tstcxaatexit.c (__dso_handle): Removed.
26646 (main): Don't check __dso_handle.
26647 * include/dso_handle.h: New file.
26648 * malloc/mtrace.c: Include <dso_handle.h>.
26649 (mtrace): Pass __dso_handle directly.
26650 * nptl/pthread_atfork.c: Include <dso_handle.h>.
26651 (__dso_handle): Remove declaration.
26652 (__pthread_atfork): Pass __dso_handle directly.
26653 * nptl/tst-atfork2mod.c: Include <dso_handle.h>.
26654 (__dso_handle): Removed.
26655 * posix/wordexp-test.c: Include <dso_handle.h>.
26656 (__dso_handle): Remove declaration.
26657 (__app_register_atfork): Pass __dso_handle directly.
26658 * stdlib/at_quick_exit.c: Include <dso_handle.h>.
26659 (__dso_handle): Remove declaration.
26660 (at_quick_exit): Pass __dso_handle directly.
26661 * stdlib/atexit.c: Include <dso_handle.h>.
26662 (__dso_handle): Remove declaration.
26663 (atexit): Pass __dso_handle directly.
26664 * stdlib/tst-tls-atexit-lib.c: Include <dso_handle.h>.
26665 (__dso_handle): Removed.
26666
26667 2017-09-26 Joseph Myers <joseph@codesourcery.com>
26668
26669 * sysdeps/unix/make-syscalls.sh: Use __ifunc to define symbols
26670 using VDSO.
26671
26672 2017-09-26 Alexey Makhalov <amakhalov@vmware.com>
26673
26674 * elf/dl-tunables.c (do_tunable_update_val): Range checking fix.
26675 * scripts/gen-tunables.awk: Set unspecified minval and/or maxval
26676 values to correct default value for given type.
26677
26678 2017-09-26 H.J. Lu <hongjiu.lu@intel.com>
26679
26680 [BZ #22101]
26681 * elf/Makefile (tests): Add tst-debug1.
26682 ($(objpfx)tst-debug1): New.
26683 ($(objpfx)tst-debug1.out): Likewise.
26684 ($(objpfx)tst-debug1mod1.so): Likewise.
26685 * elf/dl-load.c (_dl_map_object_from_fd): Skip PT_DYNAMIC segment
26686 with p_filesz == 0.
26687 * elf/tst-debug1.c: New file.
26688
26689 2017-09-26 Joseph Myers <joseph@codesourcery.com>
26690
26691 * sysdeps/sparc/sparc-ifunc.h [!__ASSEMBLER__] (sparc_libm_ifunc):
26692 Define using __ifunc.
26693
26694 2017-09-26 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
26695
26696 * sysdeps/powerpc/fpu/libm-test-ulps: Regenerate expf() and
26697 exp2f() values.
26698
26699 2017-09-26 Joseph Myers <joseph@codesourcery.com>
26700
26701 [BZ #22156]
26702 * sysdeps/ia64/stackinfo.h (DEFAULT_STACK_PERMS): Likewise.
26703
26704 2017-09-26 Florian Weimer <fweimer@redhat.com>
26705
26706 * resolv/Makefile (tests-internal): Fix typo in comment.
26707
26708 2017-09-26 Florian Weimer <fweimer@redhat.com>
26709
26710 * resolv/nss_dns/dns-host.c: Fix typo in comment.
26711
26712 2017-09-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
26713
26714 * lib/malloc/scratch_buffer.h (struct scratch_buffer):
26715 Use an union instead of a max_align_t array for __space,
26716 so that __space is the same size on all platforms.
26717 * malloc/scratch_buffer_grow_preserve.c
26718 (__libc_scratch_buffer_grow_preserve): Likewise.
26719
26720 [BZ #22183]
26721 * include/gnu-versions.h (_GNU_GLOB_INTERFACE_VERSION): Increase
26722 version to 2.
26723 * posix/Makefile (routines): Add glob-lstat-compat and
26724 glob64-lstat-compat.
26725 * posix/Versions (GLIBC_2.27, glob, glob64): Add symbol version.
26726 * posix/glob-lstat-compat.c: New file.
26727 * posix/glob64-lstat-compat.c: Likewise.
26728 * posix/tst-glob_lstat_compat.c: Likewise.
26729 * sysdeps/unix/sysv/linux/glob-lstat-compat.c: Likewise.
26730 * sysdeps/unix/sysv/linux/alpha/glob-lstat-compat.c: Likewise.
26731 * sysdeps/unix/sysv/linux/glob64-lstat-compat.c: Likewise.
26732 * sysdeps/unix/sysv/linux/s390/s390-32/glob64-lstat-compat.c:
26733 Likewise.
26734 * sysdeps/unix/sysv/linux/alpha/glob.c: Remove file.
26735 * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
26736 * posix/glob.c (glob_lstat): New function.
26737 (glob): Rename to __glob and add versioned symbol to 2.27.
26738 (glob_in_dir): Use glob_lstat.
26739 * posix/glob64.c (glob64): Add GLOB_ATTRIBUTE.
26740 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
26741 * sysdeps/unix/sysv/linux/glob.c (glob): Add versioned symbol for
26742 2.27.
26743 * sysdeps/unix/sysv/linux/glob64.c (glob64): Likewise.
26744 * sysdeps/unix/sysv/linux/oldglob.c (GLOB_NO_LSTAT): Define.
26745 * sysdeps/unix/sysv/linux/alpha/oldglob.c (__old_glob): Do not use
26746 gl_lstat on glob call.
26747 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add GLIBC_2.27 glob
26748 and glob64 symbols.
26749 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
26750 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
26751 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
26752 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
26753 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
26754 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
26755 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
26756 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
26757 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
26758 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
26759 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
26760 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
26761 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
26762 Likewise.
26763 * sysdeps/unix/linux/powerpc/powerpc32/nofpu/libc.abilist: Likewise.
26764 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
26765 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
26766 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
26767 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
26768 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
26769 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
26770 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
26771 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
26772 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
26773 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
26774 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
26775
26776 2017-09-25 H.J. Lu <hongjiu.lu@intel.com>
26777
26778 * configure.ac (AS): Require binutils 2.25 or later.
26779 * configure: Regenerated.
26780
26781 2017-09-25 Paul Pluzhnikov <ppluzhnikov@google.com>
26782
26783 [BZ #22207]
26784 * stdlib/test-atexit-race-common.c (do_test): Minimize required
26785 VM size.
26786
26787 2017-09-25 DJ Delorie <dj@redhat.com>
26788
26789 [BZ #22161]
26790 * nscd/netgroupcache.c (addinnetgrX): Release read lock after
26791 resetting timeout.
26792
26793 2017-09-25 Stefan Liebler <stli@linux.vnet.ibm.com>
26794
26795 * sysdeps/ieee754/dbl-64/sincos32.h
26796 [SINCCOS32_H]: Remove define.
26797 [SINCOS32_H]: Define.
26798
26799 2017-09-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
26800
26801 * math/Versions (expf): New libm symbol at GLIBC_2.27.
26802 (exp2f): Likewise.
26803 * math/w_exp2f.c: New file.
26804 * math/w_expf.c: New file.
26805 * math/w_exp2f_compat.c (__exp2f_compat): For compat symbol only.
26806 * math/w_expf_compat.c (__expf_compat): Likewise.
26807 * sysdeps/ia64/fpu/e_exp2f.S: Add versioned symbols.
26808 * sysdeps/ia64/fpu/e_expf.S: Likewise.
26809 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
26810 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
26811 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
26812 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
26813 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
26814 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
26815 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
26816 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
26817 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
26818 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
26819 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
26820 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
26821 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
26822 Likewise.
26823 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
26824 Likewise.
26825 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
26826 Likewise.
26827 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
26828 Likewise.
26829 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
26830 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
26831 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
26832 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
26833 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
26834 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
26835 Likewise.
26836 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
26837 Likewise.
26838 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
26839 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
26840 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
26841
26842 2017-09-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
26843
26844 * math/Makefile (type-float-routines): Add math_errf and e_exp2f_data.
26845 * sysdeps/aarch64/fpu/math_private.h (TOINT_INTRINSICS): Define.
26846 (roundtoint, converttoint): Likewise.
26847 * sysdeps/ieee754/flt-32/e_expf.c: New implementation.
26848 * sysdeps/ieee754/flt-32/e_exp2f.c: New implementation.
26849 * sysdeps/ieee754/flt-32/e_exp2f_data.c: New file.
26850 * sysdeps/ieee754/flt-32/math_config.h: New file.
26851 * sysdeps/ieee754/flt-32/math_errf.c: New file.
26852 * sysdeps/ieee754/flt-32/t_exp2f.h: Remove.
26853 * sysdeps/i386/fpu/e_exp2f_data.c: New file.
26854 * sysdeps/i386/fpu/math_errf.c: New file.
26855 * sysdeps/ia64/fpu/e_exp2f_data.c: New file.
26856 * sysdeps/ia64/fpu/math_errf.c: New file.
26857 * sysdeps/m68k/m680x0/fpu/e_exp2f_data.c: New file.
26858 * sysdeps/m68k/m680x0/fpu/math_errf.c: New file.
26859
26860 2017-09-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
26861
26862 * sysdeps/mach/hurd/dl-sysdep.c (check_no_hidden): New macro.
26863 (__open, __close, __libc_read, __libc_write, __writev, __libc_lseek64,
26864 __mmap, __fxstat64, __xstat64, __access, __access_noerrno, __getpid,
26865 __getcwd, __sbrk, __strtoul_internal, _exit, abort): Use check_no_hidden
26866 to make sure that these symbols are defined.
26867 * sysdeps/mach/hurd/bits/socket.h: Include <bits/wordsize.h> instead
26868 of <limits.h>
26869 (__need_NULL): Do not define.
26870 (__ss_aligntype): Use __WORDSIZE instead of ULONG_MAX to determine
26871 alignment.
26872 [!__USE_MISC] (pseudo_AF_XTP, pseudo_AF_RTIP, pseudo_AF_PIP,
26873 CMGROUP_MAX, cmsgcred): Do not define.
26874 (CMSG_FIRSTHDR, __cmsg_nxthdr): Use (struct cmsghdr *) 0 instead of
26875 NULL.
26876 * bits/socket.h: Likewise.
26877 * sysdeps/unix/clock_gettime.c (realtime_gettime, __clock_gettime): Use
26878 __gettimeofday instead of gettimeofday.
26879 * sysdeps/unix/clock_settime.c (__clock_settime): Use __settimeofday
26880 instead of settimeofday.
26881
26882 2017-09-22 Joseph Myers <joseph@codesourcery.com>
26883
26884 * sysdeps/ieee754/flt-32/s_asinhf.c: Include <libm-alias-float.h>.
26885 (asinhf): Define using libm_alias_float.
26886 * sysdeps/ieee754/flt-32/s_atanf.c: Include <libm-alias-float.h>.
26887 (atanf): Define using libm_alias_float.
26888 * sysdeps/ieee754/flt-32/s_cbrtf.c: Include <libm-alias-float.h>.
26889 (cbrtf): Define using libm_alias_float.
26890 * sysdeps/ieee754/flt-32/s_ceilf.c: Include <libm-alias-float.h>.
26891 (ceilf): Define using libm_alias_float.
26892 * sysdeps/ieee754/flt-32/s_copysignf.c: Include
26893 <libm-alias-float.h>.
26894 (copysignf): Define using libm_alias_float.
26895 * sysdeps/ieee754/flt-32/s_cosf.c: Include <libm-alias-float.h>.
26896 (cosf): Define using libm_alias_float.
26897 * sysdeps/ieee754/flt-32/s_erff.c: Include <libm-alias-float.h>.
26898 (erff): Define using libm_alias_float.
26899 (erfcf): Likewise.
26900 * sysdeps/ieee754/flt-32/s_expm1f.c: Include <libm-alias-float.h>.
26901 (expm1f): Define using libm_alias_float.
26902 * sysdeps/ieee754/flt-32/s_fabsf.c: Include <libm-alias-float.h>.
26903 (fabsf): Define using libm_alias_float.
26904 * sysdeps/ieee754/flt-32/s_floorf.c: Include <libm-alias-float.h>.
26905 (floorf): Define using libm_alias_float.
26906 * sysdeps/ieee754/flt-32/s_frexpf.c: Include <libm-alias-float.h>.
26907 (frexpf): Define using libm_alias_float.
26908 * sysdeps/ieee754/flt-32/s_fromfpf.c (fromfpf): Define using
26909 libm_alias_float.
26910 * sysdeps/ieee754/flt-32/s_fromfpf_main.c: Include
26911 <libm-alias-float.h>.
26912 * sysdeps/ieee754/flt-32/s_fromfpxf.c (fromfpxf): Define using
26913 libm_alias_float.
26914 * sysdeps/ieee754/flt-32/s_getpayloadf.c: Include
26915 <libm-alias-float.h>.
26916 (getpayloadf): Define using libm_alias_float.
26917 * sysdeps/ieee754/flt-32/s_llrintf.c: Include
26918 <libm-alias-float.h>.
26919 (llrintf): Define using libm_alias_float.
26920 * sysdeps/ieee754/flt-32/s_llroundf.c: Include
26921 <libm-alias-float.h>.
26922 (llroundf): Define using libm_alias_float.
26923 * sysdeps/ieee754/flt-32/s_logbf.c: Include <libm-alias-float.h>.
26924 (logbf): Define using libm_alias_float.
26925 * sysdeps/ieee754/flt-32/s_lrintf.c: Include <libm-alias-float.h>.
26926 (lrintf): Define using libm_alias_float.
26927 * sysdeps/ieee754/flt-32/s_lroundf.c: Include <libm-alias-float.h>.
26928 (lroundf): Define using libm_alias_float.
26929 * sysdeps/ieee754/flt-32/s_modff.c: Include <libm-alias-float.h>.
26930 (modff): Define using libm_alias_float.
26931 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Include
26932 <libm-alias-float.h>.
26933 (nearbyintf): Define using libm_alias_float.
26934 * sysdeps/ieee754/flt-32/s_nextafterf.c: Include
26935 <libm-alias-float.h>.
26936 (nextafterf): Define using libm_alias_float.
26937 * sysdeps/ieee754/flt-32/s_nextupf.c: Include
26938 <libm-alias-float.h>.
26939 (nextupf): Define using libm_alias_float.
26940 * sysdeps/ieee754/flt-32/s_remquof.c: Include
26941 <libm-alias-float.h>.
26942 (remquof): Define using libm_alias_float.
26943 * sysdeps/ieee754/flt-32/s_rintf.c: Include <libm-alias-float.h>.
26944 (rintf): Define using libm_alias_float.
26945 * sysdeps/ieee754/flt-32/s_roundevenf.c: Include
26946 <libm-alias-float.h>.
26947 (roundevenf): Define using libm_alias_float.
26948 * sysdeps/ieee754/flt-32/s_roundf.c: Include <libm-alias-float.h>.
26949 (roundf): Define using libm_alias_float.
26950 * sysdeps/ieee754/flt-32/s_setpayloadf.c (setpayloadf): Define
26951 using libm_alias_float.
26952 * sysdeps/ieee754/flt-32/s_setpayloadf_main.c: Include
26953 <libm-alias-float.h>.
26954 * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (setpayloadsigf):
26955 Define using libm_alias_float.
26956 * sysdeps/ieee754/flt-32/s_sincosf.c: Include
26957 <libm-alias-float.h>.
26958 (sincosf): Define using libm_alias_float.
26959 * sysdeps/ieee754/flt-32/s_sinf.c: Include <libm-alias-float.h>.
26960 (sinf): Define using libm_alias_float.
26961 * sysdeps/ieee754/flt-32/s_tanf.c: Include <libm-alias-float.h>.
26962 (tanf): Define using libm_alias_float.
26963 * sysdeps/ieee754/flt-32/s_tanhf.c: Include <libm-alias-float.h>.
26964 (tanhf): Define using libm_alias_float.
26965 * sysdeps/ieee754/flt-32/s_totalorderf.c: Include
26966 <libm-alias-float.h>.
26967 (totalorderf): Define using libm_alias_float.
26968 * sysdeps/ieee754/flt-32/s_totalordermagf.c: Include
26969 <libm-alias-float.h>.
26970 (totalordermagf): Define using libm_alias_float.
26971 * sysdeps/ieee754/flt-32/s_truncf.c: Include <libm-alias-float.h>.
26972 (truncf): Define using libm_alias_float.
26973 * sysdeps/ieee754/flt-32/s_ufromfpf.c (ufromfpf): Define using
26974 libm_alias_float.
26975 * sysdeps/ieee754/flt-32/s_ufromfpxf.c (ufromfpxf): Define using
26976 libm_alias_float.
26977
26978 2017-09-22 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
26979
26980 [BZ #22146]
26981 math/math.h: Let fpclassify use the builtin in C++ mode, even
26982 when optimazing for size.
26983
26984 2017-09-22 Joseph Myers <joseph@codesourcery.com>
26985
26986 * csu/Makefile (generated): Do not add version-info.h.
26987 (before-compile): Likewise.
26988 (all-Banner-files): Remove variable.
26989 ($(objpfx)version-info.h): Remove rule.
26990 * csu/version.c (banner): Do not include "version-info.h".
26991 * libidn/Banner: Remove.
26992 * manual/contrib.texi (Simon Josefsson): New entry.
26993
26994 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
26995
26996 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
26997 Remove conditionals on LDBL_MANT_DIG.
26998 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
26999 (__ieee754_lgammal_r): Likewise.
27000
27001 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
27002
27003 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Remove definitions of
27004 _Float128 and L().
27005 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Remove definitions of
27006 _Float128 and L(). Replace _Float128 with long double and L(x)
27007 with xL, throughout the file.
27008 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
27009 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
27010 * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
27011 * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
27012
27013 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
27014
27015 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Include tables from
27016 sysdeps/ieee754/ldbl-128ibm.
27017 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Copy contents from the
27018 equivalent implementation in sysdeps/ieee754/ldbl-128/ instead
27019 of including it. Keep _Float128 and L() intact. These will be
27020 reviewed by a separate patch.
27021 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
27022 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
27023 * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
27024 * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
27025
27026 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
27027
27028 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c
27029 (__finitef128): Define to __redirect___finitef128.
27030 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c
27031 (__isinff128): Define to __redirect___isinff128.
27032 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c
27033 (__isnanf128): Define to __redirect___isnanf128.
27034
27035 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
27036
27037 * sysdeps/powerpc/powerpc64le/Makefile
27038 (CFLAGS-tst-strtod-nan-locale.c): New variable.
27039 (CFLAGS-tst-wcstod-nan-locale.c): New variable.
27040
27041 2017-09-21 Paul Pluzhnikov <ppluzhnikov@google.com>
27042 Carlos O'Donell <carlos@redhat.com>
27043
27044 [BZ #22180]
27045 * stdlib/Makefile (tests): Add test-dlclose-exit-race.
27046 * stdlib/test-dlclose-exit-race.c: New file.
27047 * stdlib/test-dlclose-exit-race-helper.c: New file.
27048 * stdlib/exit.c (__run_exit_handlers): Mark slot as free.
27049
27050 2017-09-21 Joseph Myers <joseph@codesourcery.com>
27051
27052 * crypt/Banner: Remove file.
27053 * nptl/Banner: Likewise.
27054 * resolv/Banner: Likewise.
27055 * soft-fp/Banner: Likewise.
27056 * nptl/Makefile ($(objpfx)banner.h): Remove rule.
27057 ($(objpfx)version.d): Remove dependency on banner.h.
27058 ($(objpfx)version.os): Likewise.
27059 * nptl/version.c (banner): Do not include banner.h.
27060 * manual/contrib.texi: Update entries for Richard Henderson, Jakub
27061 Jelinek and BIND code.
27062
27063 2017-09-20 Paul Pluzhnikov <ppluzhnikov@google.com>
27064 Carlos O'Donell <carlos@redhat.com>
27065
27066 * support/xdlfcn.h: New file.
27067 * support/xdlfcn.c: New file.
27068 * support/Makefile (libsupport-routines): Add xdlfcn.
27069 * stdlib/tst-tls-atexit.c: Use xdlopen, xdlsym, xdlclose.
27070
27071 2017-09-20 Joseph Myers <joseph@codesourcery.com>
27072
27073 [BZ #20142]
27074 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
27075 Add s_trunc-c, s_truncf-c, s_trunc-sse4_1 and s_truncf-sse4_1.
27076 * sysdeps/x86_64/fpu/multiarch/s_trunc-c.c: New file.
27077 * sysdeps/x86_64/fpu/multiarch/s_trunc-sse4_1.S: Likewise.
27078 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Likewise.
27079 * sysdeps/x86_64/fpu/multiarch/s_truncf-c.c: Likewise.
27080 * sysdeps/x86_64/fpu/multiarch/s_truncf-sse4_1.S: Likewise.
27081 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Likewise.
27082
27083 2017-09-20 Paul Pluzhnikov <ppluzhnikov@google.com>
27084 Ricky Zhou <rickyz@google.com>
27085 Anoop V Chakkalakkal <anoop.vijayan@in.ibm.com>
27086
27087 [BZ #14333]
27088 * stdlib/cxa_atexit.c (__internal_atexit): Use __exit_funcs_lock.
27089 Remove atomics.
27090 (__new_exitfn): Fail registration when we finished at_exit processing.
27091 * stdlib/cxa_finalize.c (__cxa_finalize): Likewise.
27092 * stdlib/on_exit.c (__on_exit): Likewise.
27093 * stdlib/exit.c (__exit_funcs_done): New variable.
27094 (__run_exit_handlers): Use __exit_funcs_lock.
27095 * stdlib/exit.h (__exit_funcs_lock, __exit_funcs_done): New
27096 declarations.
27097 * stdlib/Makefile (test-atexit-race, test-quick_at_exit-race)
27098 (test-cxa_atexit-race, test-on_exit-race): New tests.
27099 * stdlib/test-atexit-race-common.c: New file.
27100 * stdlib/test-atexit-race.c: New file.
27101 * stdlib/test-at_quick_exit-race.c: New file.
27102 * stdlib/test-cxa_atexit-race.c: New file.
27103 * stdlib/test-on_exit-race.c: New file.
27104
27105 2017-09-20 Szabolcs Nagy <szabolcs.nagy@arm.com>
27106
27107 * benchtests/Makefile: Add exp2f and log2f benchmarks.
27108 * benchtests/exp2f-inputs: Copy of expf-inputs.
27109 * benchtests/log2f-inputs: Copy of logf-inputs.
27110
27111 2017-09-19 Joseph Myers <joseph@codesourcery.com>
27112
27113 * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]:
27114 Explicitly take address of first element of array arguments in
27115 call to INLINE_SYSCALL.
27116
27117 2017-09-19 Andreas Schwab <schwab@suse.de>
27118
27119 [BZ #22134]
27120 * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]: Try
27121 execveat first.
27122 [!__ASSUME_EXECVEAT]: Fall back to /proc if execveat is
27123 unimplemented.
27124 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_EXECVEAT)
27125 [__LINUX_KERNEL_VERSION >= 0x031300]: Define.
27126 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
27127 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040200]: Undef.
27128 * sysdeps/unix/sysv/linux/hppa/kernel-features.h
27129 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
27130 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
27131 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
27132 * posix/Makefile (tests): Add tst-fexecve.
27133 * posix/tst-fexecve.c: New file.
27134
27135 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
27136
27137 * benchtests/Makefile: Add logf benchmark.
27138 * benchtests/logf-inputs: Add reduced trace from wrf_r.
27139
27140 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
27141
27142 * benchtests/Makefile: Add expf benchmark.
27143 * benchtests/expf-inputs: Add reduced trace from wrf_r.
27144
27145 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
27146
27147 * csu/Makefile: Add -funwind-tables to libc-start.c.
27148 * debug/Makefile: Add -funwind-tables to backtrace.c.
27149 * sysdeps/aarch64/Makefile: Remove CFLAGS-backtrace.c.
27150 * sysdeps/arm/Makefile: Likewise.
27151 * sysdeps/i386/Makefile: Likewise.
27152 * sysdeps/m68k/Makefile: Likewise.
27153 * sysdeps/mips/Makefile: Likewise.
27154 * sysdeps/nios2/Makefile: Likewise.
27155 * sysdeps/sh/Makefile: Likewise.
27156 * sysdeps/sparc/Makefile: Likewise.
27157
27158 2017-09-19 Joseph Myers <joseph@codesourcery.com>
27159
27160 * benchtests/Makefile (bench-math): Add trunc and truncf.
27161 (CFLAGS-bench-trunc.c): New variable.
27162 (CFLAGS-bench-truncf.c): Likewise.
27163 * benchtests/trunc-inputs: New file.
27164 * benchtests/truncf-inputs: Likewise.
27165
27166 2017-09-19 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
27167
27168 * sysdeps/powerpc/powerpc64/power8/memset.S: Avoid misaligned stores.
27169
27170 2017-09-18 Joseph Myers <joseph@codesourcery.com>
27171
27172 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT &&
27173 !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)] (weak_alias): Undefine and
27174 redefine.
27175 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
27176 (exp10l): Define as weak alias.
27177 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c [LIBM_SVID_COMPAT
27178 && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (weak_alias): Undefine
27179 and redefine.
27180 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)]
27181 (remainderl): Define as weak alias.
27182
27183 * math/s_fmal.c: Include <libm-alias-ldouble.h>.
27184 (fmal): Define using libm_alias_ldouble.
27185 * math/w_acoshl_compat.c: Include <libm-alias-ldouble.h>.
27186 (acoshl): Define using libm_alias_ldouble.
27187 * math/w_acosl_compat.c: Include <libm-alias-ldouble.h>.
27188 (acosl): Define using libm_alias_ldouble.
27189 * math/w_asinl_compat.c: Include <libm-alias-ldouble.h>.
27190 (asinl): Define using libm_alias_ldouble.
27191 * math/w_atan2l_compat.c: Include <libm-alias-ldouble.h>.
27192 (atan2l): Define using libm_alias_ldouble.
27193 * math/w_atanhl_compat.c: Include <libm-alias-ldouble.h>.
27194 (atanhl): Define using libm_alias_ldouble.
27195 * math/w_coshl_compat.c: Include <libm-alias-ldouble.h>.
27196 (coshl): Define using libm_alias_ldouble.
27197 * math/w_exp10l_compat.c: Include <libm-alias-ldouble.h>.
27198 (exp10l): Define using libm_alias_ldouble.
27199 * math/w_exp2l_compat.c: Include <libm-alias-ldouble.h>.
27200 (exp2l): Define using libm_alias_ldouble.
27201 * math/w_expl_compat.c: Include <libm-alias-ldouble.h>.
27202 (expl): Define using libm_alias_ldouble.
27203 * math/w_fmodl_compat.c: Include <libm-alias-ldouble.h>.
27204 (fmodl): Define using libm_alias_ldouble.
27205 * math/w_hypotl_compat.c: Include <libm-alias-ldouble.h>.
27206 (hypotl): Define using libm_alias_ldouble.
27207 * math/w_j0l_compat.c: Include <libm-alias-ldouble.h>.
27208 (j0l): Define using libm_alias_ldouble.
27209 (y0l): Likewise.
27210 * math/w_j1l_compat.c: Include <libm-alias-ldouble.h>.
27211 (j1l): Define using libm_alias_ldouble.
27212 (y1l): Likewise.
27213 * math/w_jnl_compat.c: Include <libm-alias-ldouble.h>.
27214 (jnl): Define using libm_alias_ldouble.
27215 (ynl): Likewise.
27216 * math/w_log10l_compat.c: Include <libm-alias-ldouble.h>.
27217 (log10l): Define using libm_alias_ldouble.
27218 * math/w_log2l_compat.c: Include <libm-alias-ldouble.h>.
27219 (log2l): Define using libm_alias_ldouble.
27220 * math/w_logl_compat.c: Include <libm-alias-ldouble.h>.
27221 (logl): Define using libm_alias_ldouble.
27222 * math/w_powl_compat.c: Include <libm-alias-ldouble.h>.
27223 (powl): Define using libm_alias_ldouble.
27224 * math/w_remainderl_compat.c: Include <libm-alias-ldouble.h>.
27225 (remainderl): Define using libm_alias_ldouble.
27226 * math/w_sinhl_compat.c: Include <libm-alias-ldouble.h>.
27227 (sinhl): Define using libm_alias_ldouble.
27228 * math/w_sqrtl_compat.c: Include <libm-alias-ldouble.h>.
27229 (sqrtl): Define using libm_alias_ldouble.
27230 * math/w_tgammal_compat.c: Include <libm-alias-ldouble.h>.
27231 (tgammal): Define using libm_alias_ldouble.
27232 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT]
27233 (exp10l): Do not use long_double_symbol here.
27234 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
27235 [LIBM_SVID_COMPAT] (remainderl): Likewise.
27236 * sysdeps/ieee754/ldbl-opt/s_fmal.c: Remove.
27237 * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
27238 * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
27239 * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
27240 * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
27241 * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
27242 * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
27243 * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
27244 * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
27245 * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
27246 * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
27247 * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
27248 * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
27249 * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
27250 * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
27251 * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
27252 * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
27253 * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
27254 * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
27255 * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
27256
27257 2017-09-18 Wang Boshi <wangboshi@huawei.com> (tiny change)
27258
27259 * sysdeps/aarch64/start.S: Use MOVL instead of literal pools.
27260 * sysdeps/aarch64/sysdep.h (MOVL): Add MOVL macro.
27261
27262 2017-09-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
27263
27264 * io/read.c (read): Add libc_hidden_weak.
27265 * sysdeps/mach/hurd/read.c (read): Likewise.
27266 * io/write.c (write): Likewise.
27267 * sysdeps/mach/hurd/write.c (write): Likewise.
27268 * io/pread64.c (__pread64): Likewise.
27269 * sysdeps/mach/hurd/pread64.c (__pread64): Likewise.
27270 * posix/pread64.c (__pread64): Add libc_hidden_def.
27271
27272 2017-09-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
27273
27274 * benchtests/scripts/compare_strings.py: New option -g.
27275 (draw_graph): Print a message that a graph is being generated.
27276 (process_results): Generate graph only if -g is passed.
27277 (main): Process option -g.
27278
27279 * benchtests/scripts/compare_strings.py (process_results):
27280 Better spacing for output.
27281
27282 * benchtests/scripts/compare_strings.py: Use argparse.
27283 * benchtests/README: Document existence of compare_strings.py.
27284
27285 2017-09-15 Joseph Myers <joseph@codesourcery.com>
27286
27287 * math/s_fma.c: Include <libm-alias-double.h>.
27288 (fma): Define using libm_alias_double.
27289 * math/s_nextafter.c: Include <libm-alias-double.h>.
27290 (nextafter): Define using libm_alias_double.
27291 * math/w_acos_compat.c: Include <libm-alias-double.h>.
27292 (acos): Define using libm_alias_double.
27293 * math/w_acosh_compat.c: Include <libm-alias-double.h>.
27294 (aocsh): Define using libm_alias_double.
27295 * math/w_asin_compat.c: Include <libm-alias-double.h>.
27296 (asin): Define using libm_alias_double.
27297 * math/w_atan2_compat.c: Include <libm-alias-double.h>.
27298 (atan2): Define using libm_alias_double.
27299 * math/w_atanh_compat.c: Include <libm-alias-double.h>.
27300 (atanh): Define using libm_alias_double.
27301 * math/w_cosh_compat.c: Include <libm-alias-double.h>.
27302 (cosh): Define using libm_alias_double.
27303 * math/w_exp10_compat.c: Include <libm-alias-double.h>.
27304 (exp10): Define using libm_alias_double.
27305 * math/w_exp2_compat.c: Include <libm-alias-double.h>.
27306 (exp2): Define using libm_alias_double.
27307 * math/w_exp_compat.c: Include <libm-alias-double.h>.
27308 (exp): Define using libm_alias_double.
27309 * math/w_fmod_compat.c: Include <libm-alias-double.h>.
27310 (fmod): Define using libm_alias_double.
27311 * math/w_hypot_compat.c: Include <libm-alias-double.h>.
27312 (hypot): Define using libm_alias_double.
27313 * math/w_j0_compat.c: Include <libm-alias-double.h>.
27314 (j0): Define using libm_alias_double.
27315 (y0): Likewise.
27316 * math/w_j1_compat.c: Include <libm-alias-double.h>.
27317 (j1): Define using libm_alias_double.
27318 (y1): Likewise.
27319 * math/w_jn_compat.c: Include <libm-alias-double.h>.
27320 (jn): Define using libm_alias_double.
27321 (yn): Likewise.
27322 * math/w_log10_compat.c: Include <libm-alias-double.h>.
27323 (log10): Define using libm_alias_double.
27324 * math/w_log2_compat.c: Include <libm-alias-double.h>.
27325 (log2): Define using libm_alias_double.
27326 * math/w_log_compat.c: Include <libm-alias-double.h>.
27327 (log): Define using libm_alias_double.
27328 * math/w_pow_compat.c: Include <libm-alias-double.h>.
27329 (pow): Define using libm_alias_double.
27330 * math/w_remainder_compat.c: Include <libm-alias-double.h>.
27331 (remainder): Define using libm_alias_double.
27332 * math/w_sinh_compat.c: Include <libm-alias-double.h>.
27333 (sinh): Define using libm_alias_double.
27334 * math/w_sqrt_compat.c: Include <libm-alias-double.h>.
27335 (sqrt): Define using libm_alias_double.
27336 * math/w_tgamma_compat.c: Include <libm-alias-double.h>.
27337 (tgamma): Define using libm_alias_double.
27338 * sysdeps/ieee754/ldbl-opt/s_nextafter.c [LONG_DOUBLE_COMPAT(libm,
27339 GLIBC_2_0)] (nextafterl): Do not define compat symbol here.
27340 * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c
27341 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)] (exp10l): Likewise.
27342 * sysdeps/ieee754/ldbl-opt/w_remainder_compat.c
27343 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (remainderl): Likewise.
27344 * sysdeps/ieee754/ldbl-opt/w_acos_compat.c: Remove.
27345 * sysdeps/ieee754/ldbl-opt/w_acosh_compat.c: Likewise.
27346 * sysdeps/ieee754/ldbl-opt/w_asin_compat.c: Likewise.
27347 * sysdeps/ieee754/ldbl-opt/w_atan2_compat.c: Likewise.
27348 * sysdeps/ieee754/ldbl-opt/w_atanh_compat.c: Likewise.
27349 * sysdeps/ieee754/ldbl-opt/w_cosh_compat.c: Likewise.
27350 * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Likewise.
27351 * sysdeps/ieee754/ldbl-opt/w_fmod_compat.c: Likewise.
27352 * sysdeps/ieee754/ldbl-opt/w_hypot_compat.c: Likewise.
27353 * sysdeps/ieee754/ldbl-opt/w_j0_compat.c: Likewise.
27354 * sysdeps/ieee754/ldbl-opt/w_j1_compat.c: Likewise.
27355 * sysdeps/ieee754/ldbl-opt/w_jn_compat.c: Likewise.
27356 * sysdeps/ieee754/ldbl-opt/w_log10_compat.c: Likewise.
27357 * sysdeps/ieee754/ldbl-opt/w_log2_compat.c: Likewise.
27358 * sysdeps/ieee754/ldbl-opt/w_log_compat.c: Likewise.
27359 * sysdeps/ieee754/ldbl-opt/w_pow_compat.c: Likewise.
27360 * sysdeps/ieee754/ldbl-opt/w_sinh_compat.c: Likewise.
27361 * sysdeps/ieee754/ldbl-opt/w_sqrt_compat.c: Likewise.
27362 * sysdeps/ieee754/ldbl-opt/w_tgamma_compat.c: Likewise.
27363
27364 * math/e_acoshl.c: Remove.
27365 * math/e_acosl.c: Likewise.
27366 * math/e_asinl.c: Likewise.
27367 * math/e_atan2l.c: Likewise.
27368 * math/e_atanhl.c: Likewise.
27369 * math/e_coshl.c: Likewise.
27370 * math/e_expl.c: Likewise.
27371 * math/e_fmodl.c: Likewise.
27372 * math/e_gammal_r.c: Likewise.
27373 * math/e_hypotl.c: Likewise.
27374 * math/e_j0l.c: Likewise.
27375 * math/e_j1l.c: Likewise.
27376 * math/e_jnl.c: Likewise.
27377 * math/e_lgammal_r.c: Likewise.
27378 * math/e_log10l.c: Likewise.
27379 * math/e_log2l.c: Likewise.
27380 * math/e_logl.c: Likewise.
27381 * math/e_powl.c: Likewise.
27382 * math/e_rem_pio2l.c: Likewise.
27383 * math/e_sinhl.c: Likewise.
27384 * math/e_sqrtf128.c: Likewise.
27385 * math/e_sqrtl.c: Likewise.
27386 * math/k_cosl.c: Likewise.
27387 * math/k_sinl.c: Likewise.
27388 * math/k_tanl.c: Likewise.
27389 * math/s_asinhl.c: Likewise.
27390 * math/s_atanl.c: Likewise.
27391 * math/s_cbrtl.c: Likewise.
27392 * math/s_erfl.c: Likewise.
27393 * math/s_expm1l.c: Likewise.
27394 * math/s_log1pl.c: Likewise.
27395 * math/s_tanhl.c: Likewise.
27396
27397 2017-09-15 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
27398
27399 [BZ #21745]
27400 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile:
27401 [$(subdir) = math] (sysdep_calls): New variable. Has the
27402 previous contents of sysdep_routines, but re-sorted..
27403 [$(subdir) = math] (sysdep_routines): Re-use the contents from
27404 sysdep_calls.
27405 [$(subdir) = math] (libm-sysdep_routines): Remove the functions
27406 defined in sysdep_calls and replace by the respective m_* names.
27407 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S:
27408 (compat_symbol): Undefine to avoid duplicated compat symbols in
27409 libc.
27410
27411 2017-09-15 Joseph Myers <joseph@codesourcery.com>
27412
27413 * math/s_fmaf.c: Include <libm-alias-float.h>.
27414 (fmaf): Define using libm_alias_float.
27415 * math/w_acosf_compat.c: Include <libm-alias-float.h>.
27416 (acosf): Define using libm_alias_float.
27417 * math/w_acoshf_compat.c: Include <libm-alias-float.h>.
27418 (acoshf): Define using libm_alias_float.
27419 * math/w_asinf_compat.c: Include <libm-alias-float.h>.
27420 (asinf): Define using libm_alias_float.
27421 * math/w_atan2f_compat.c: Include <libm-alias-float.h>.
27422 (atan2f): Define using libm_alias_float.
27423 * math/w_atanhf_compat.c: Include <libm-alias-float.h>.
27424 (atanhf): Define using libm_alias_float.
27425 * math/w_coshf_compat.c: Include <libm-alias-float.h>.
27426 (coshf): Define using libm_alias_float.
27427 * math/w_exp10f_compat.c: Include <libm-alias-float.h>.
27428 (exp10f): Define using libm_alias_float.
27429 * math/w_fmodf_compat.c: Include <libm-alias-float.h>.
27430 (fmodf): Define using libm_alias_float.
27431 * math/w_hypotf_compat.c: Include <libm-alias-float.h>.
27432 (hypotf): Define using libm_alias_float.
27433 * math/w_j0f_compat.c: Include <libm-alias-float.h>.
27434 (j0f): Define using libm_alias_float.
27435 (y0f): Likewise.
27436 * math/w_j1f_compat.c: Include <libm-alias-float.h>.
27437 (j1f): Define using libm_alias_float.
27438 (y1f): Likewise.
27439 * math/w_jnf_compat.c: Include <libm-alias-float.h>.
27440 (jnf): Define using libm_alias_float.
27441 (ynf): Likewise.
27442 * math/w_log10f_compat.c: Include <libm-alias-float.h>.
27443 (log10f): Define using libm_alias_float.
27444 * math/w_log2f_compat.c: Include <libm-alias-float.h>.
27445 (log2f): Define using libm_alias_float.
27446 * math/w_logf_compat.c: Include <libm-alias-float.h>.
27447 (logf): Define using libm_alias_float.
27448 * math/w_powf_compat.c: Include <libm-alias-float.h>.
27449 (powf): Define using libm_alias_float.
27450 * math/w_remainderf_compat.c: Include <libm-alias-float.h>.
27451 (remainderf): Define using libm_alias_float.
27452 * math/w_sinhf_compat.c: Include <libm-alias-float.h>.
27453 (sinhf): Define using libm_alias_float.
27454 * math/w_sqrtf_compat.c: Include <libm-alias-float.h>.
27455 (sqrtf): Define using libm_alias_float.
27456 * math/w_tgammaf_compat.c: Include <libm-alias-float.h>.
27457 (tgammaf): Define using libm_alias_float.
27458
27459 2017-09-14 Joseph Myers <joseph@codesourcery.com>
27460
27461 * include/math.h (roundeven): Change hidden_proto call to
27462 __roundeven.
27463 * math/w_j0_compat.c (j0): Rename to __j0 and define as weak
27464 alias.
27465 [NO_LONG_DOUBLE] (__j0l): New strong alias.
27466 (y0): Rename to __y0 and define as weak alias.
27467 [NO_LONG_DOUBLE] (__y0l): New strong alias.
27468 * math/w_j0f_compat.c (j0f): Rename to __j0f and define as weak
27469 alias.
27470 (y0f): Rename to __y0f and define as weak alias.
27471 * math/w_j1_compat.c (j1): Rename to __j1 and define as weak
27472 alias.
27473 [NO_LONG_DOUBLE] (__j1l): New strong alias.
27474 (y1): Rename to __y1 and define as weak alias.
27475 [NO_LONG_DOUBLE] (__y1l): New strong alias.
27476 * math/w_j1f_compat.c (j1f): Rename to __j1f and define as weak
27477 alias.
27478 (y1f): Rename to __y1f and define as weak alias.
27479 * math/w_jn_compat.c (jn): Rename to __jn and define as weak
27480 alias.
27481 [NO_LONG_DOUBLE] (__jnl): New strong alias.
27482 (yn): Rename to __yn and define as weak alias.
27483 [NO_LONG_DOUBLE] (__ynl): New strong alias.
27484 * math/w_jnf_compat.c (jnf): Rename to __jnf and define as weak
27485 alias.
27486 (ynf): Rename to __ynf and define as weak alias.
27487 * sysdeps/ieee754/dbl-64/s_fromfp.c (FUNC): Define to __fromfp.
27488 (fromfp): Define as weak alias.
27489 [NO_LONG_DOUBLE] (__fromfpl): New strong alias.
27490 * sysdeps/ieee754/dbl-64/s_fromfpx.c (FUNC): Define to __fromfpx.
27491 (fromfpx): Define as weak alias.
27492 [NO_LONG_DOUBLE] (__fromfpxl): New strong alias.
27493 * sysdeps/ieee754/dbl-64/s_getpayload.c (getpayload): Rename to
27494 __getpayload and define as weak alias.
27495 [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
27496 * sysdeps/ieee754/dbl-64/s_roundeven.c (roundeven): Rename to
27497 __roundeven and define as weak alias.
27498 [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
27499 * sysdeps/ieee754/dbl-64/s_setpayload.c (FUNC): Define to
27500 __setpayload.
27501 (setpayload): Define as weak alias.
27502 [NO_LONG_DOUBLE] (__setpayloadl): New strong alias.
27503 * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (FUNC): Define to
27504 __setpayloadsig.
27505 (setpayloadsig): Define as weak alias.
27506 [NO_LONG_DOUBLE] (__setpayloadsigl): New strong alias.
27507 * sysdeps/ieee754/dbl-64/s_totalorder.c (totalorder): Rename to
27508 __totalorder and define as weak alias.
27509 [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
27510 * sysdeps/ieee754/dbl-64/s_totalordermag.c (totalordermag): Rename
27511 to __totalordermag and define as weak alias.
27512 [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
27513 * sysdeps/ieee754/dbl-64/s_ufromfp.c (FUNC): Define to __ufromfp.
27514 (ufromfp): Define as weak alias.
27515 [NO_LONG_DOUBLE] (__ufromfpl): New strong alias.
27516 * sysdeps/ieee754/dbl-64/s_ufromfpx.c (FUNC): Define to
27517 __ufromfpx.
27518 (ufromfpx): Define as weak alias.
27519 [NO_LONG_DOUBLE] (__ufromfpxl): New strong alias.
27520 * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c (getpayload):
27521 Rename to __getpayload and define as weak alias.
27522 [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
27523 * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c (roundeven):
27524 Rename to __roundeven and define as weak alias.
27525 [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
27526 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c (totalorder):
27527 Rename to __totalorder and define as weak alias.
27528 [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
27529 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c
27530 (totalordermag): Rename to __totalordermag and define as weak
27531 alias.
27532 [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
27533 * sysdeps/ieee754/float128/float128_private.h (__getpayloadl): New
27534 macro.
27535 (__roundevenl): Likewise.
27536 (__totalorderl): Likewise.
27537 (__totalordermagl): Likewise
27538 * sysdeps/ieee754/float128/s_fromfpf128.c (FUNC): Define to
27539 __fromfpf128.
27540 (fromfpf128): Define as weak alias.
27541 * sysdeps/ieee754/float128/s_fromfpxf128.c (FUNC): Define to
27542 __fromfpxf128.
27543 (fromfpxf128): Define as weak alias.
27544 * sysdeps/ieee754/float128/s_setpayloadf128.c (FUNC): Define to
27545 __setpayloadf128.
27546 (setpayloadf128): Define as weak alias.
27547 * sysdeps/ieee754/float128/s_setpayloadsigf128.c (FUNC): Define to
27548 __setpayloadsigf128.
27549 (setpayloadsigf128): Define as weak alias.
27550 * sysdeps/ieee754/float128/s_ufromfpf128.c (FUNC): Define to
27551 __ufromfpf128.
27552 (ufromfpf128): Define as weak alias.
27553 * sysdeps/ieee754/float128/s_ufromfpxf128.c (FUNC): Define to
27554 __ufromfpxf128.
27555 (ufromfpxf128): Define as weak alias.
27556 * sysdeps/ieee754/flt-32/s_fromfpf.c (FUNC): Define to __fromfpf.
27557 (fromfpf): Define as weak alias.
27558 * sysdeps/ieee754/flt-32/s_fromfpxf.c (FUNC): Define to
27559 __fromfpxf.
27560 (fromfpxf): Define as weak alias.
27561 * sysdeps/ieee754/flt-32/s_getpayloadf.c (getpayloadf): Rename to
27562 __getpayloadf and define as weak alias.
27563 * sysdeps/ieee754/flt-32/s_roundevenf.c (roundevenf): Rename to
27564 __roundevenf and define as weak alias.
27565 * sysdeps/ieee754/flt-32/s_setpayloadf.c (FUNC): Define to
27566 __setpayloadf.
27567 (setpayloadf): Define as weak alias.
27568 * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (FUNC): Define to
27569 __setpayloadsigf.
27570 (setpayloadsigf): Define as weak alias.
27571 * sysdeps/ieee754/flt-32/s_totalorderf.c (totalorderf): Rename to
27572 __totalorderf and define as weak alias.
27573 * sysdeps/ieee754/flt-32/s_totalordermagf.c (totalordermagf):
27574 Rename to __totalordermagf and define as weak alias.
27575 * sysdeps/ieee754/flt-32/s_ufromfpf.c (FUNC): Define to
27576 __ufromfpf.
27577 (ufromfpf): Define as weak alias.
27578 * sysdeps/ieee754/flt-32/s_ufromfpxf.c (FUNC): Define to
27579 __ufromfpxf.
27580 (ufromfpxf): Define as weak alias.
27581 * sysdeps/ieee754/ldbl-128/s_fromfpl.c (FUNC): Define to
27582 __fromfpl.
27583 (fromfpl): Define as weak alias.
27584 * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (FUNC): Define to
27585 __fromfpxl.
27586 (fromfpxl): Define as weak alias.
27587 * sysdeps/ieee754/ldbl-128/s_getpayloadl.c (getpayloadl): Rename
27588 to __getpayloadl and define as weak alias.
27589 * sysdeps/ieee754/ldbl-128/s_roundevenl.c (roundevenl): Rename to
27590 __roundevenl and define as weak alias.
27591 * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (FUNC): Define to
27592 __setpayloadl.
27593 (setpayloadl): Define as weak alias.
27594 * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (FUNC): Define to
27595 __setpayloadsigl.
27596 (setpayloadsigl): Define as weak alias.
27597 * sysdeps/ieee754/ldbl-128/s_totalorderl.c (totalorderl): Rename
27598 to __totalorderl and define as weak alias.
27599 * sysdeps/ieee754/ldbl-128/s_totalordermagl.c (totalordermagl):
27600 Rename to __totalordermagl and define as weak alias.
27601 * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (FUNC): Define to
27602 __ufromfpl.
27603 (ufromfpl): Define as weak alias.
27604 * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (FUNC): Define to
27605 __ufromfpxl.
27606 (ufromfpxl): Define as weak alias.
27607 * sysdeps/ieee754/ldbl-128ibm/s_fromfpl.c (FUNC): Define to
27608 __fromfpl.
27609 (fromfpl): Define as weak alias.
27610 * sysdeps/ieee754/ldbl-128ibm/s_fromfpxl.c (FUNC): Define to
27611 __fromfpxl.
27612 (fromfpxl): Define as weak alias.
27613 * sysdeps/ieee754/ldbl-128ibm/s_getpayloadl.c (getpayloadl):
27614 Rename to __getpayloadl and define as weak alias.
27615 * sysdeps/ieee754/ldbl-128ibm/s_roundevenl.c (roundevenl): Rename
27616 to __roundevenl and define as weak alias. Call __roundeven
27617 instead of roundeven.
27618 * sysdeps/ieee754/ldbl-128ibm/s_setpayloadl.c (FUNC): Define to
27619 __setpayloadl.
27620 (setpayloadl): Define as weak alias.
27621 * sysdeps/ieee754/ldbl-128ibm/s_setpayloadsigl.c (FUNC): Define to
27622 __setpayloadsigl.
27623 (setpayloadsigl): Define as weak alias.
27624 * sysdeps/ieee754/ldbl-128ibm/s_totalorderl.c (totalorderl):
27625 Rename to __totalorderl and define as weak alias.
27626 * sysdeps/ieee754/ldbl-128ibm/s_totalordermagl.c (totalordermagl):
27627 Rename to __totalordermagl and define as weak alias.
27628 * sysdeps/ieee754/ldbl-128ibm/s_ufromfpl.c (FUNC): Define to
27629 __ufromfpl.
27630 (ufromfpl): Define as weak alias.
27631 * sysdeps/ieee754/ldbl-128ibm/s_ufromfpxl.c (FUNC): Define to
27632 __ufromfpxl.
27633 (ufromfpxl): Define as weak alias.
27634 * sysdeps/ieee754/ldbl-96/s_fromfpl.c (FUNC): Define to
27635 __fromfpl.
27636 (fromfpl): Define as weak alias.
27637 * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (FUNC): Define to
27638 __fromfpxl.
27639 (fromfpxl): Define as weak alias.
27640 * sysdeps/ieee754/ldbl-96/s_getpayloadl.c (getpayloadl): Rename to
27641 __getpayloadl and define as weak alias.
27642 * sysdeps/ieee754/ldbl-96/s_roundevenl.c (roundevenl): Rename to
27643 __roundevenl and define as weak alias.
27644 * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (FUNC): Define to
27645 __setpayloadl.
27646 (setpayloadl): Define as weak alias.
27647 * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c (FUNC): Define to
27648 __setpayloadsigl.
27649 (setpayloadsigl): Define as weak alias.
27650 * sysdeps/ieee754/ldbl-96/s_totalorderl.c (totalorderl): Rename to
27651 __totalorderl and define as weak alias.
27652 * sysdeps/ieee754/ldbl-96/s_totalordermagl.c (totalordermagl):
27653 Rename to __totalordermagl and define as weak alias.
27654 * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (FUNC): Define to
27655 __ufromfpl.
27656 (ufromfpl): Define as weak alias.
27657 * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (FUNC): Define to
27658 __ufromfpxl.
27659 (ufromfpxl): Define as weak alias.
27660
27661 2017-09-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
27662
27663 * benchtests/bench-string.h (realloc_bufs): New function.
27664 (test_init): Call it.
27665 * benchtests/bench-memset-large.c (do_test): Likewise.
27666 * benchtests/bench-memset.c (do_test): Likewise.
27667
27668 * benchtests/bench-memset-large.c: Print output in JSON
27669 format.
27670 * benchtests/bench-memset.c: Likewise.
27671
27672 2017-09-14 Mike FABIAN <mfabian@redhat.com>
27673
27674 [BZ #21084]
27675 * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Add IBM858 and ibm858.c.
27676 * iconvdata/Makefile: Add IBM858.
27677 * iconvdata/gconv-modules: Likewise.
27678 * iconvdata/tst-tables.sh: Likewise.
27679 * iconvdata/ibm858.c: New file.
27680 * localedata/charmaps/IBM858: Likewise.
27681
27682 2017-09-14 Akhilesh Kumar <akhilesh.k@samsung.com>
27683
27684 [BZ #22023]
27685 * locales/niu_NZ (LC_TIME): copy "niu_NU".
27686 * locales/niu_NZ (LC_MESSAGES): copy "niu_NU".
27687
27688 2017-09-14 Mike FABIAN <mfabian@redhat.com>
27689
27690 [BZ #22112]
27691 * localedata/locales/az_AZ(LC_TELEPHONE): Fix int_select
27692 and add tel_int_fmt.
27693
27694 2017-09-14 Joseph Myers <joseph@codesourcery.com>
27695
27696 * sysdeps/generic/libm-alias-float128.h: New file.
27697 * sysdeps/generic/math-type-macros-float128.h: Include
27698 <libm-alias-float128.h>.
27699 [!declare_mgen_alias] (declare_mgen_alias): Define macro.
27700
27701 2017-09-13 Joseph Myers <joseph@codesourcery.com>
27702
27703 * sysdeps/generic/libm-alias-ldouble.h: New file.
27704 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Likewise.
27705 * sysdeps/ieee754/ldbl-opt/math-type-macros-ldouble.h: Remove.
27706 * sysdeps/generic/math-type-macros-ldouble.h: Include
27707 <libm-alias-ldouble.h>.
27708 [!declare_mgen_alias] (declare_mgen_alias): Define to use
27709 libm_alias_ldouble.
27710
27711 2017-09-13 Szabolcs Nagy <szabolcs.nagy@arm.com>
27712
27713 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Move to...
27714 * math/w_exp_compat.c: ... here.
27715 * sysdeps/ieee754/flt-32/w_expf_compat.c: Move to...
27716 * math/w_expf_compat.c: ... here.
27717 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Move to...
27718 * math/w_expl_compat.c: ... here.
27719 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Remove.
27720 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Remove.
27721 * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Use the new path.
27722 * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
27723
27724 2017-09-13 Joseph Myers <joseph@codesourcery.com>
27725
27726 * math/w_scalbln_template.c (strong_alias): Do not undefine and
27727 redefine.
27728 * sysdeps/ieee754/ldbl-opt/s_ldexp.c (declare_mgen_alias): Remove
27729 macro.
27730 (ldexpl): Only define as compat symbol for libc, not libm.
27731 (scalbnl): Define as compat symbol for libc here.
27732 * sysdeps/ieee754/ldbl-opt/s_ldexpl.c (declare_mgen_alias): Only
27733 define for [IS_IN (libc)].
27734 (__ldexpl_2): Remove alias.
27735 (ldexpl): Only define with long_double_symbol if [IS_IN (libc)].
27736 (scalbnl): Likewise. Use __wrap_scalbnl not __ldexpl_2 as base
27737 name in long_double_symbol call.
27738 * sysdeps/ieee754/ldbl-opt/s_log1p.c: Remove file.
27739 * sysdeps/ieee754/ldbl-opt/s_scalbln.c: Likewise.
27740 * sysdeps/ieee754/ldbl-opt/s_scalbn.c: Likewise.
27741 * sysdeps/ieee754/ldbl-opt/w_log1p.c: Likewise.
27742 * sysdeps/ieee754/ldbl-opt/w_scalbln.c (declare_mgen_alias):
27743 Remove macro.
27744 [IS_IN (libc) && LONG_DOUBLE_COMPAT (libc, GLIBC_2_1)] (scalblnl):
27745 Define as compat symbol.
27746
27747 2017-09-13 Adhemerval Zanella <adhemerval.zanella@linaro.org>
27748
27749 * sysdeps/unix/sysv/linux/s390/s390-32/oldglob.c: New file.
27750 * sysdeps/unix/sysv/linux/alpha/Makefile
27751 [$(subdir) = csu] (sysdep_routines): Remove rule.
27752
27753 2017-09-13 Joseph Myers <joseph@codesourcery.com>
27754
27755 * sysdeps/generic/libm-alias-double.h: New file.
27756 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h: Likewise.
27757 * sysdeps/generic/math-type-macros-double.h: Include
27758 <libm-alias-double.h>.
27759 [declare_mgen_alias] (declare_mgen_alias): Define to use
27760 libm_alias_double.
27761 * sysdeps/generic/math-type-macros.h [!M_LIBM_NEED_COMPAT]
27762 (M_LIBM_NEED_COMPAT): Remove macro.
27763 [!M_LIBM_NEED_COMPAT] (declare_mgen_libm_compat): Likewise.
27764 * sysdeps/ieee754/ldbl-opt/math-type-macros-double.h: Remove.
27765 * math/cabs_template.c [M_LIBM_NEED_COMPAT]: Remove conditional
27766 code.
27767 * math/carg_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27768 * math/cimag_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27769 * math/conj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27770 * math/creal_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27771 * math/s_cacos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27772 * math/s_cacosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27773 * math/s_casin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27774 * math/s_casinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27775 * math/s_catan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27776 * math/s_catanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27777 * math/s_ccos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27778 * math/s_ccosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27779 * math/s_cexp_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27780 * math/s_clog10_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27781 * math/s_clog_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27782 * math/s_cpow_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27783 * math/s_cproj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27784 * math/s_csin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27785 * math/s_csinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27786 * math/s_csqrt_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27787 * math/s_ctan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27788 * math/s_ctanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27789 * math/s_fdim_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27790 * math/s_fmax_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27791 * math/s_fmin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27792 * math/s_nan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27793 * math/w_ilogb_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27794 * sysdeps/ieee754/ldbl-opt/s_clog10.c: New file.
27795 * sysdeps/ieee754/ldbl-opt/s_ldexp.c (M_LIBM_NEED_COMPAT): Remove
27796 macro.
27797 (declare_mgen_alias): New macro.
27798 * sysdeps/ieee754/ldbl-opt/w_log1p.c: New file.
27799 * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Likewise.
27800 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.c
27801 (M_LIBM_NEED_COMPAT): Remove macro.
27802 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c
27803 [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h> and
27804 <first-versions.h>.
27805 [HAVE_AS_VIS3_SUPPORT && LONG_DOUBLE_COMPAT (libm,
27806 FIRST_VERSION_libm_fdiml)]: Define fdiml as compat symbol.
27807
27808 2017-09-12 Joseph Myers <joseph@codesourcery.com>
27809
27810 * sysdeps/generic/math-type-macros.h [!declare_mgen_alias_2]
27811 (declare_mgen_alias_2): Remove.
27812 * sysdeps/generic/math-type-macros-double.h
27813 [NO_LONG_DOUBLE && !declare_mgen_alias_2] (declare_mgen_alias_2):
27814 Likewise.
27815 * math/s_ldexp_template.c (M_SUF (__wrap_scalbn)): Define strong
27816 alias.
27817 (ldexp): Define with declare_mgen_alias.
27818 (scalbn): Likewise.
27819
27820 2017-09-12 Steve Ellcey <sellcey@cavium.com>
27821
27822 * grp/initgroups.c: Include config.h.
27823 (DEFAULT_CONFIG): New macro.
27824 (internal_getgrouplist): Use DEFAULT_CONFIG.
27825 * nscd/initgrcache.c (addinitgroupsX): Likewise.
27826 * nss/nsswitch.c (__nss_disable_nscd): Likewise.
27827 (DEFAULT_DEFCONFIG): New macro.
27828 (__nss_database_lookup): Use DEFAULT_DEFCONFIG.
27829 * nss/grp-lookup.c: Include config.h
27830 (DEFAULT_CONFIG): Set definition based on LINK_OBSOLETE_NSL.
27831 * nss/pwd-lookup.c (DEFAULT_CONFIG): Likewise.
27832 * nss/spwd-lookup.c (DEFAULT_CONFIG): Likewise.
27833 * manual/nss.texi: Update default values section.
27834
27835 2017-09-12 H.J. Lu <hongjiu.lu@intel.com>
27836
27837 [BZ #21967]
27838 * sysdeps/x86/cpu-features.h (bit_arch_MathVec_Prefer_No_AVX512):
27839 New.
27840 (index_arch_MathVec_Prefer_No_AVX512): Likewise.
27841 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
27842 Handle MathVec_Prefer_No_AVX512.
27843 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h
27844 (IFUNC_SELECTOR): Return AVX2 version if MathVec_Prefer_No_AVX512
27845 is set.
27846
27847 2017-09-12 Samuel Thibault <samuel.thibault@ens-lyon.org>
27848
27849 * posix/sched_primax.c (__sched_get_priority_max): Add
27850 libc_hidden_def.
27851 * posix/sched_primin.c (__sched_get_priority_min): Likewise.
27852 * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
27853 * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
27854 * sysdeps/mach/hurd/mprotect.c (__mprotect): Likewise.
27855 * sysdeps/mach/hurd/munmap.c (__munmap): Likewise.
27856 * sysdeps/mach/hurd/dl-sysdep.c (__GI___getpid,
27857 __GI___strtoul_internal, __GI_____strtoul_internal, __GI___chk_fail,
27858 __GI___fortify_fail, __GI___assert_fail, __GI___assert_perror_fail):
27859 Add aliases.
27860
27861 2017-09-11 Joseph Myers <joseph@codesourcery.com>
27862
27863 * sysdeps/generic/libm-alias-float.h: New file.
27864 * sysdeps/generic/math-type-macros-float.h: Include
27865 <libm-alias-float.h>.
27866 [!declare_mgen_alias] (declare_mgen_alias): Define macro.
27867
27868 2017-09-11 H.J. Lu <hongjiu.lu@intel.com>
27869
27870 [BZ #22093]
27871 * sysdeps/x86/cpu-features.c (init_cpu_features): Initialize
27872 GLRO(dl_hwcap) to HWCAP_X86_64 for x86-64.
27873 * sysdeps/x86/dl-hwcap.h (HWCAP_COUNT): Updated.
27874 (HWCAP_IMPORTANT): Likewise.
27875 (HWCAP_X86_64): New enum.
27876 (HWCAP_X86_AVX512_1): Updated.
27877 * sysdeps/x86/dl-procinfo.c (_dl_x86_hwcap_flags): Add "x86_64".
27878 * sysdeps/x86_64/Makefile (tests): Add tst-x86_64-1.
27879 (modules-names): Add x86_64/tst-x86_64mod-1.
27880 (LDFLAGS-tst-x86_64mod-1.so): New.
27881 ($(objpfx)tst-x86_64-1): Likewise.
27882 ($(objpfx)x86_64/tst-x86_64mod-1.os): Likewise.
27883 (tst-x86_64-1-clean): Likewise.
27884 * sysdeps/x86_64/tst-x86_64-1.c: New file.
27885 * sysdeps/x86_64/tst-x86_64mod-1.c: Likewise.
27886
27887 2017-09-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
27888
27889 * po/sv.po: Update translations.
27890 * po/fr.po: Likewise.
27891
27892 2017-09-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
27893
27894 * sunrpc/tst-udp-timeout.c (test_udp_server): Increase timeout to 2.5
27895 seconds.
27896 * sunrpc/tst-udp-nonblocking.c (do_test): Increase timeout to 0.75
27897 seconds.
27898 * elf/rtld-Rules: Fix $(error) use.
27899
27900 2017-09-09 Mike FABIAN <mfabian@redhat.com>
27901
27902 [BZ #14925]
27903 * libio/tst-widetext.input: Change “Bengali” to “Bangla”.
27904 * locale/iso-639.def: Change “Bengali” to “Bangla”.
27905 * localedata/locales/bn_BD: “Bengali” was still used in some
27906 comments. Change it to “Bangla”.
27907
27908 2017-09-08 Markus Trippelsdorf <markus@trippelsdorf.de>
27909
27910 * sysdeps/x86_64/fpu/libm-test-ulps: Update for AMD Ryzen.
27911
27912 2017-09-08 Steve Ellcey <sellcey@cavium.com>
27913
27914 * manual/tunables.texi (glibc.tune.cpu): Add thunderx2t99 and
27915 thunderx2t99p1 to list of cpu names.
27916 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
27917 Add thunderx2t99 and thunderx2t99p1 entries to cpu_list.
27918
27919 2017-09-08 Steve Ellcey <sellcey@cavium.com>
27920
27921 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (get_midr_from_mcpu):
27922 Use strcmp instead of tunable_is_name.
27923
27924 2017-09-08 Joseph Myers <joseph@codesourcery.com>
27925
27926 * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
27927 (F_GET_RW_HINT): New macro.
27928 [__USE_GNU] (F_SET_RW_HINT): Likewise.
27929 [__USE_GNU] (F_GET_FILE_RW_HINT): Likewise.
27930 [__USE_GNU] (F_SET_FILE_RW_HINT): Likewise.
27931 [__USE_GNU] (RWF_WRITE_LIFE_NOT_SET): Likewise.
27932 [__USE_GNU] (RWH_WRITE_LIFE_NONE): Likewise.
27933 [__USE_GNU] (RWH_WRITE_LIFE_SHORT): Likewise.
27934 [__USE_GNU] (RWH_WRITE_LIFE_MEDIUM): Likewise.
27935 [__USE_GNU] (RWH_WRITE_LIFE_LONG): Likewise.
27936 [__USE_GNU] (RWH_WRITE_LIFE_EXTREME): Likewise.
27937
27938 * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
27939 (F_ADD_SEALS): New macro.
27940 [__USE_GNU] (F_GET_SEALS): Likewise.
27941 [__USE_GNU] (F_SEAL_SEAL): Likewise.
27942 [__USE_GNU] (F_SEAL_SHRINK): Likewise.
27943 [__USE_GNU] (F_SEAL_GROW): Likewise.
27944 [__USE_GNU] (F_SEAL_WRITE): Likewise.
27945
27946 2017-09-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
27947
27948 * posix/glob_internal.h (GLOBPAT_NONE, GLOBPAT_SPECIAL)
27949 (GLOBPAT_BACKSLASH, GLOBPAT_BRACKET): New constants.
27950 * posix/glob_internal.h (__glob_pattern_type):
27951 * posix/glob.c (glob):
27952 * posix/glob_pattern_p.c (__glob_pattern_p):
27953 Use them.
27954
27955 * sysdeps/unix/sysv/linux/arm/glob64.c: Remove file.
27956 * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
27957 * sysdeps/unix/sysv/linux/m68k/glob64.c: Likewise.
27958 * sysdeps/unix/sysv/linux/mips/mips64/n64/glob64.c: Likewise.
27959 * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
27960 * sysdeps/unix/sysv/linux/powerpc/powerpc32/glob64.c: Likewise.
27961 * sysdeps/unix/sysv/linux/sparc/sparc32/glob64.c: Likewise.
27962 * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: Likewise.
27963 * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
27964 * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
27965 * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
27966 * sysdeps/wordsize-64/glob.c: Likewise.
27967 * sysdeps/wordsize-64/glob64.c: Likewise.
27968 * sysdeps/wordsize-64/globfree.c: Likewise.
27969 * sysdeps/wordsize-64/globfree64.c: Likewise.
27970 * sysdeps/unix/sysv/linux/glob.c: New file.
27971 * sysdeps/unix/sysv/linux/glob64.c: Likewise.
27972 * sysdeps/unix/sysv/linux/globfree.c: Likewise.
27973 * sysdeps/unix/sysv/linux/globfree64.c: Likewise.
27974 * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
27975 * sysdeps/unix/sysv/linux/oldglob.c [SHLIB_COMPAT]: Also
27976 adds !GLOB_NO_OLD_VERSION as an extra condition.
27977 * sysdeps/unix/sysv/linux/i386/alphasort64.c: Include olddirent.h
27978 using relative path instead of absolute one.
27979 * sysdeps/unix/sysv/linux/i386/getdents64.c: Likewise.
27980 * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
27981 * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
27982 * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
27983 * sysdeps/unix/sysv/linux/i386/olddirent.h: Move to ...
27984 * sysdeps/unix/sysv/linux//olddirent.h: ... here.
27985
27986 [BZ #1062]
27987 * posix/glob.c (GET_LOGIN_NAME_MAX): Remove.
27988 (glob): Use the same scratch buffer for both getlogin_r and
27989 getpwnam_r. Don’t require preallocation of the login name. This
27990 simplifies storage allocation, and corrects the handling of
27991 long login names.
27992
27993 [BZ #1062]
27994 * posix/glob.c (glob): Port recent patches to platforms
27995 lacking getpwnam_r.
27996 (glob): Fix longstanding misuse of errno after getpwnam_r, which
27997 returns an error number rather than setting errno.
27998
27999 * include/scratch_buffer.h (scratch_buffer): Use a C99 align method
28000 instead of GCC extension.
28001 * malloc/scratch_buffer_grow.c [!_LIBC]: Include libc-config.h.
28002 * malloc/scratch_buffer_grow_preserve.c [!_LIBC]: Likewise.
28003 * malloc/scratch_buffer_set_array_size.c [!_LIBC]: Likewise.
28004
28005 [BZ #866]
28006 [BZ #1062]
28007 * posix/Makefile (tests): Remove bug-glob1 and tst-glob_symlinks.
28008 * posix/bug-glob1.c: Remove file.
28009 * posix/tst-glob_symlinks.c: New file.
28010 * posix/glob.c (__lstat64): New macro.
28011 (is_dir): New function.
28012 (glob, glob_in_dir): Match symlinks even if they are dangling.
28013 (link_stat, link_exists_p): Remove. All uses removed.
28014
28015 [BZ #1062]
28016 [BZ #19971]
28017 * posix/glob.c (struct readdir_result): Remove skip_entry member.
28018 (readdir_result_skip_entry, D_INO_TO_RESULT): Remove.
28019 All uses removed.
28020
28021 [BZ #1062]
28022 CVE-2017-15671
28023 * posix/Makefile (routines): Add globfree, globfree64, and
28024 glob_pattern_p.
28025 * posix/flexmember.h: New file.
28026 * posix/glob_internal.h: Likewise.
28027 * posix/glob_pattern_p.c: Likewise.
28028 * posix/globfree.c: Likewise.
28029 * posix/globfree64.c: Likewise.
28030 * sysdeps/gnu/globfree64.c: Likewise.
28031 * sysdeps/unix/sysv/linux/alpha/globfree.c: Likewise.
28032 * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
28033 * sysdeps/unix/sysv/linux/oldglob.c: Likewise.
28034 * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
28035 * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
28036 * sysdeps/wordsize-64/globfree.c: Likewise.
28037 * sysdeps/wordsize-64/globfree64.c: Likewise.
28038 * posix/glob.c (HAVE_CONFIG_H): Use !_LIBC instead.
28039 [NDEBUG): Remove comments.
28040 (GLOB_ONLY_P, _AMIGA, VMS): Remove define.
28041 (dirent_type): New type. Use uint_fast8_t not
28042 uint8_t, as C99 does not require uint8_t.
28043 (DT_UNKNOWN, DT_DIR, DT_LNK): New macros.
28044 (struct readdir_result): Use dirent_type. Do not define skip_entry
28045 unless it is needed; this saves a byte on platforms lacking d_ino.
28046 (readdir_result_type, readdir_result_skip_entry):
28047 New functions, replacing ...
28048 (readdir_result_might_be_symlink, readdir_result_might_be_dir):
28049 these functions, which were removed. This makes the callers
28050 easier to read. All callers changed.
28051 (D_INO_TO_RESULT): Now empty if there is no d_ino.
28052 (size_add_wrapv, glob_use_alloca): New static functions.
28053 (glob, glob_in_dir): Check for size_t overflow in several places,
28054 and fix some size_t checks that were not quite right.
28055 Remove old code using SHELL since Bash no longer
28056 uses this.
28057 (glob, prefix_array): Separate MS code better.
28058 (glob_in_dir): Remove old Amiga and VMS code.
28059 (globfree, __glob_pattern_type, __glob_pattern_p): Move to
28060 separate files.
28061 (glob_in_dir): Do not rely on undefined behavior in accessing
28062 struct members beyond their bounds. Use a flexible array member
28063 instead
28064 (link_stat): Rename from link_exists2_p and return -1/0 instead of
28065 0/1. Caller changed.
28066 (glob): Fix memory leaks.
28067 * posix/glob64 (globfree64): Move to separate file.
28068 * sysdeps/gnu/glob64.c (NO_GLOB_PATTERN_P): Remove define.
28069 (globfree64): Remove hidden alias.
28070 * sysdeps/unix/sysv/linux/Makefile (sysdeps_routines): Add
28071 oldglob.
28072 * sysdeps/unix/sysv/linux/alpha/glob.c (__new_globfree): Move to
28073 separate file.
28074 * sysdeps/unix/sysv/linux/i386/glob64.c (NO_GLOB_PATTERN_P): Remove
28075 define.
28076 Move compat code to separate file.
28077 * sysdeps/wordsize-64/glob.c (globfree): Move definitions to
28078 separate file.
28079
28080 2017-09-07 H.J. Lu <hongjiu.lu@intel.com>
28081
28082 * resolv/tst-resolv-qtypes.c (domain): Changed to
28083 "const char domain[] =".
28084
28085 2017-09-07 Joseph Myers <joseph@codesourcery.com>
28086
28087 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
28088 version to 3.1.6.
28089
28090 * sysdeps/gnu/netinet/tcp.h (TCP_ULP): New macro.
28091 (TCP_MD5SIG_EXT): Likewise.
28092 (TCP_MD5SIG_FLAG_PREFIX): Likewise.
28093 (struct tcp_md5sig): Replace __tcpm_pad1 by tcpm_flags and
28094 tcpm_prefixlen. Rename __tcpm_pad2 to __tcpm_pad.
28095
28096 * sysdeps/unix/sysv/linux/bits/socket.h (SOL_TLS): New macro.
28097
28098 2017-09-07 Mike FABIAN <mfabian@redhat.com>
28099
28100 * localedata/locales/om_ET (LC_TIME): use ASCII for better readability.
28101
28102 2017-09-07 Akhilesh Kumar <akhilesh.k@samsung.com>
28103
28104 [BZ #22100]
28105 * localedata/locales/om_KE (LC_TIME): copy "om_ET".
28106
28107 2017-09-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
28108
28109 * hurd/get-host.c (_hurd_get_host_config): Also check that more == 0
28110 before assuming that the file is empty. Avoid testing buffer content
28111 when nread == 0.
28112
28113 2017-09-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
28114
28115 [BZ #18858]
28116 * sysdeps/i386/i686/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
28117 Remove define.
28118 * sysdeps/x86_64/multiarch/stpcpy.c (_HAVE_STRING_ARCH_stpcpy):
28119 Likewise.
28120 * sysdeps/x86_64/multiarch/strcspn.c (_HAVE_STRING_ARCH_strcspn):
28121 Likewise.
28122 * sysdeps/x86_64/multiarch/strncat.c (_HAVE_STRING_ARCH_strncat):
28123 Likewise.
28124 * sysdeps/x86_64/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
28125 Likewise.
28126 * sysdeps/x86_64/multiarch/strpbrk.c (_HAVE_STRING_ARCH_strpbrk):
28127 Likewise.
28128 * sysdeps/x86_64/multiarch/strspn.c (_HAVE_STRING_ARCH_strspn):
28129 Likewise.
28130
28131 2017-09-06 Florian Weimer <fweimer@redhat.com>
28132
28133 * malloc/dynarray_emplace_enlarge.c
28134 (__libc_dynarray_emplace_enlarge): Add missing else.
28135
28136 2017-09-06 Florian Weimer <fweimer@redhat.com>
28137
28138 [BZ #22096]
28139 * resolv/resolv_conf.c (__resolv_conf_attach): Do not free conf in
28140 case of failure to obtain the global conf object.
28141
28142 2017-09-06 Florian Weimer <fweimer@redhat.com>
28143
28144 [BZ #22095]
28145 * resolv/res_init.c (res_vinit_1): Avoid memory leak in case of
28146 dynarray allocation failure.
28147
28148 2017-09-06 Florian Weimer <fweimer@redhat.com>
28149
28150 Remove dead PTR IPv4-to-IPv6 mapping code from nss_dns.
28151 * resolv/nss_dns/dns-host.c (getanswer_r): Remove dead code.
28152 * resolv/tst-res_use_inet6.c (response_ptr_v4, response_ptr_v6):
28153 New functions.
28154 (response): Call them. Add 'p', '6' flag processing.
28155 (test_reverse): New function.
28156 (test_get2_any): Call it.
28157 (test_no_inet6): Add 'p' test.
28158 (test_inet6): Likewise.
28159
28160 2017-09-06 Florian Weimer <fweimer@redhat.com>
28161
28162 Enhance tst-res_use_inet6 to test IPv4-to-IPv6 address mapping.
28163 * resolv/tst-res_use_inet6.c (response): Process flags embedded in
28164 the QNAME.
28165 (test_gai): Adjust query names. Add additional tests.
28166 (test_get2_any, test_get2_no_inet6, test_get2_inet6): Split from
28167 test_get2. Adjust query names. Add additional tests.
28168 (test_no_inet6): New function, extracted from threadfunc.
28169 (threadfunc): Call test_get2_any, test_get2_inet6, test_no_inet6.
28170 Add additional tests.
28171
28172 2017-09-06 Mike FABIAN <mfabian@redhat.com>
28173
28174 [BZ #22070]
28175 * localedata/unicode-gen/utf8_gen.py: Set the width for
28176 characters with Prepended_Concatenation_Mark property to 1
28177 * localedata/charmaps/UTF-8: Updated using the improved script.
28178
28179 2017-09-06 Mike FABIAN <mfabian@redhat.com>
28180
28181 [BZ #21750]
28182 * localedata/unicode-gen/utf8_gen.py: Improve the script to
28183 use the range notation for all ranges of neighbouring characters
28184 with the same width.
28185
28186 2017-09-05 Joseph Myers <joseph@codesourcery.com>
28187
28188 * sysdeps/generic/math-type-macros-double.h: Include
28189 <math-svid-compat.h>.
28190 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
28191 * sysdeps/generic/math-type-macros-float.h: Include
28192 <math-svid-compat.h>.
28193 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
28194 * sysdeps/generic/math-type-macros-ldouble.h: Include
28195 <math-svid-compat.h>.
28196 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
28197 * math/lgamma-compat.h (BUILD_LGAMMA): Include LIBM_SVID_COMPAT
28198 condition.
28199 * math/w_acos_compat.c: Condition contents on [LIBM_SVID_COMPAT].
28200 * math/w_acosf_compat.c: Likewise.
28201 * math/w_acosh_compat.c: Likewise.
28202 * math/w_acoshf_compat.c: Likewise.
28203 * math/w_acoshl_compat.c: Likewise.
28204 * math/w_acosl_compat.c: Likewise.
28205 * math/w_asin_compat.c: Likewise.
28206 * math/w_asinf_compat.c: Likewise.
28207 * math/w_asinl_compat.c: Likewise.
28208 * math/w_atan2_compat.c: Likewise.
28209 * math/w_atan2f_compat.c: Likewise.
28210 * math/w_atan2l_compat.c: Likewise.
28211 * math/w_atanh_compat.c: Likewise.
28212 * math/w_atanhf_compat.c: Likewise.
28213 * math/w_atanhl_compat.c: Likewise.
28214 * math/w_cosh_compat.c: Likewise.
28215 * math/w_coshf_compat.c: Likewise.
28216 * math/w_coshl_compat.c: Likewise.
28217 * math/w_exp10_compat.c: Likewise.
28218 * math/w_exp10f_compat.c: Likewise.
28219 * math/w_exp10l_compat.c: Likewise.
28220 * math/w_exp2_compat.c: Likewise.
28221 * math/w_exp2f_compat.c: Likewise.
28222 * math/w_exp2l_compat.c: Likewise.
28223 * math/w_fmod_compat.c: Likewise.
28224 * math/w_fmodf_compat.c: Likewise.
28225 * math/w_fmodl_compat.c: Likewise.
28226 * math/w_hypot_compat.c: Likewise.
28227 * math/w_hypotf_compat.c: Likewise.
28228 * math/w_hypotl_compat.c: Likewise.
28229 * math/w_j0_compat.c: Likewise.
28230 * math/w_j0f_compat.c: Likewise.
28231 * math/w_j0l_compat.c: Likewise.
28232 * math/w_j1_compat.c: Likewise.
28233 * math/w_j1f_compat.c: Likewise.
28234 * math/w_j1l_compat.c: Likewise.
28235 * math/w_jn_compat.c: Likewise.
28236 * math/w_jnf_compat.c: Likewise.
28237 * math/w_jnl_compat.c: Likewise.
28238 * math/w_lgamma_r_compat.c: Likewise.
28239 * math/w_lgammaf_r_compat.c: Likewise.
28240 * math/w_lgammal_r_compat.c: Likewise.
28241 * math/w_log10_compat.c: Likewise.
28242 * math/w_log10f_compat.c: Likewise.
28243 * math/w_log10l_compat.c: Likewise.
28244 * math/w_log2_compat.c: Likewise.
28245 * math/w_log2f_compat.c: Likewise.
28246 * math/w_log2l_compat.c: Likewise.
28247 * math/w_log_compat.c: Likewise.
28248 * math/w_logf_compat.c: Likewise.
28249 * math/w_logl_compat.c: Likewise.
28250 * math/w_pow_compat.c: Likewise.
28251 * math/w_powf_compat.c: Likewise.
28252 * math/w_powl_compat.c: Likewise.
28253 * math/w_remainder_compat.c: Likewise.
28254 * math/w_remainderf_compat.c: Likewise.
28255 * math/w_remainderl_compat.c: Likewise.
28256 * math/w_sinh_compat.c: Likewise.
28257 * math/w_sinhf_compat.c: Likewise.
28258 * math/w_sinhl_compat.c: Likewise.
28259 * math/w_sqrt_compat.c: Likewise.
28260 * math/w_sqrtf_compat.c: Likewise.
28261 * math/w_sqrtl_compat.c: Likewise.
28262 * math/w_tgamma_compat.c: Likewise.
28263 * math/w_tgammaf_compat.c: Likewise.
28264 * math/w_tgammal_compat.c: Likewise.
28265 * math/w_scalb_compat.c (sysv_scalb): Condition definition on
28266 [LIBM_SVID_COMPAT].
28267 (__scalb): Condition call to sysv_scalb on [LIBM_SVID_COMPAT].
28268 * math/w_scalbf_compat.c (sysv_scalbf): Condition definition on
28269 [LIBM_SVID_COMPAT].
28270 (__scalbf): Condition call to sysv_scalbf on [LIBM_SVID_COMPAT].
28271 * math/w_scalbl_compat.c (sysv_scalbl): Condition definition on
28272 [LIBM_SVID_COMPAT].
28273 (__scalbl): Condition call to sysv_scalbl on [LIBM_SVID_COMPAT].
28274 * sysdeps/i386/fpu/w_sqrt.c: New file.
28275 * sysdeps/ia64/fpu/w_acos.c: Likewise.
28276 * sysdeps/ia64/fpu/w_acosf.c: Likewise.
28277 * sysdeps/ia64/fpu/w_acosh.c: Likewise.
28278 * sysdeps/ia64/fpu/w_acoshf.c: Likewise.
28279 * sysdeps/ia64/fpu/w_acoshl.c: Likewise.
28280 * sysdeps/ia64/fpu/w_acosl.c: Likewise.
28281 * sysdeps/ia64/fpu/w_asin.c: Likewise.
28282 * sysdeps/ia64/fpu/w_asinf.c: Likewise.
28283 * sysdeps/ia64/fpu/w_asinl.c: Likewise.
28284 * sysdeps/ia64/fpu/w_atan2.c: Likewise.
28285 * sysdeps/ia64/fpu/w_atan2f.c: Likewise.
28286 * sysdeps/ia64/fpu/w_atan2l.c: Likewise.
28287 * sysdeps/ia64/fpu/w_atanh.c: Likewise.
28288 * sysdeps/ia64/fpu/w_atanhf.c: Likewise.
28289 * sysdeps/ia64/fpu/w_atanhl.c: Likewise.
28290 * sysdeps/ia64/fpu/w_cosh.c: Likewise.
28291 * sysdeps/ia64/fpu/w_coshf.c: Likewise.
28292 * sysdeps/ia64/fpu/w_coshl.c: Likewise.
28293 * sysdeps/ia64/fpu/w_exp.c: Likewise.
28294 * sysdeps/ia64/fpu/w_exp10.c: Likewise.
28295 * sysdeps/ia64/fpu/w_exp10f.c: Likewise.
28296 * sysdeps/ia64/fpu/w_exp10l.c: Likewise.
28297 * sysdeps/ia64/fpu/w_exp2.c: Likewise.
28298 * sysdeps/ia64/fpu/w_exp2f.c: Likewise.
28299 * sysdeps/ia64/fpu/w_exp2l.c: Likewise.
28300 * sysdeps/ia64/fpu/w_expf.c: Likewise.
28301 * sysdeps/ia64/fpu/w_expl.c: Likewise.
28302 * sysdeps/ia64/fpu/w_fmod.c: Likewise.
28303 * sysdeps/ia64/fpu/w_fmodf.c: Likewise.
28304 * sysdeps/ia64/fpu/w_fmodl.c: Likewise.
28305 * sysdeps/ia64/fpu/w_hypot.c: Likewise.
28306 * sysdeps/ia64/fpu/w_hypotf.c: Likewise.
28307 * sysdeps/ia64/fpu/w_hypotl.c: Likewise.
28308 * sysdeps/ia64/fpu/w_lgamma_r.c: Likewise.
28309 * sysdeps/ia64/fpu/w_lgammaf_r.c: Likewise.
28310 * sysdeps/ia64/fpu/w_lgammal_r.c: Likewise.
28311 * sysdeps/ia64/fpu/w_log.c: Likewise.
28312 * sysdeps/ia64/fpu/w_log10.c: Likewise.
28313 * sysdeps/ia64/fpu/w_log10f.c: Likewise.
28314 * sysdeps/ia64/fpu/w_log10l.c: Likewise.
28315 * sysdeps/ia64/fpu/w_log2.c: Likewise.
28316 * sysdeps/ia64/fpu/w_log2f.c: Likewise.
28317 * sysdeps/ia64/fpu/w_log2l.c: Likewise.
28318 * sysdeps/ia64/fpu/w_logf.c: Likewise.
28319 * sysdeps/ia64/fpu/w_logl.c: Likewise.
28320 * sysdeps/ia64/fpu/w_pow.c: Likewise.
28321 * sysdeps/ia64/fpu/w_powf.c: Likewise.
28322 * sysdeps/ia64/fpu/w_powl.c: Likewise.
28323 * sysdeps/ia64/fpu/w_remainder.c: Likewise.
28324 * sysdeps/ia64/fpu/w_remainderf.c: Likewise.
28325 * sysdeps/ia64/fpu/w_remainderl.c: Likewise.
28326 * sysdeps/ia64/fpu/w_sinh.c: Likewise.
28327 * sysdeps/ia64/fpu/w_sinhf.c: Likewise.
28328 * sysdeps/ia64/fpu/w_sinhl.c: Likewise.
28329 * sysdeps/ia64/fpu/w_sqrt.c: Likewise.
28330 * sysdeps/ia64/fpu/w_sqrtf.c: Likewise.
28331 * sysdeps/ia64/fpu/w_sqrtl.c: Likewise.
28332 * sysdeps/ia64/fpu/w_tgamma.c: Likewise.
28333 * sysdeps/ia64/fpu/w_tgammaf.c: Likewise.
28334 * sysdeps/ia64/fpu/w_tgammal.c: Likewise.
28335 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Condition contents on
28336 [LIBM_SVID_COMPAT].
28337 * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
28338 * sysdeps/ieee754/k_standard.c: Likewise.
28339 * sysdeps/ieee754/k_standardf.c: Likewise.
28340 * sysdeps/ieee754/k_standardl.c: Likewise.
28341 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
28342 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
28343 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
28344 * sysdeps/ieee754/ldbl-64-128/w_expl_compat.c: Condition
28345 long_double_symbol call on [LIBM_SVID_COMPAT].
28346 * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
28347 * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
28348 * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
28349 * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
28350 * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
28351 * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
28352 * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
28353 * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
28354 * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
28355 * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
28356 * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
28357 * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
28358 * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
28359 * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
28360 * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
28361 * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
28362 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c: Likewise.
28363 * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
28364 * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
28365 * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
28366 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c: Condition
28367 long_double_symbol and compat_symbol calls on [LIBM_SVID_COMPAT].
28368
28369 2017-09-05 Steve Ellcey <sellcey@cavium.com>
28370
28371 * include/shlib-compat.h (TEST_COMPAT): New Macro.
28372 * malloc/tst-mallocstate.c: Convert from test-skeleton
28373 to test-driver. Ifdef code using TEST_COMPAT macro.
28374 * math/test-matherr-2.c: Ifdef test using TEST_COMPAT macro.
28375 * math/test-matherr.c: Likewise.
28376
28377 2017-09-05 Joseph Myers <joseph@codesourcery.com>
28378
28379 [BZ #22086]
28380 * debug/pcprofiledump.c (main): Use byte-swapped mask when
28381 comparing word with byte-swapped constant.
28382
28383 2017-09-05 Chris Leonard <cjlhomeaddress@gmail.com>
28384
28385 [BZ #20498]
28386 * locale/iso-639.def: add Miskito.
28387 * localedata/SUPPORTED: Add miq_NI/UTF-8.
28388 * localedata/locales/miq_NI: New file.
28389
28390 2017-09-04 H.J. Lu <hongjiu.lu@intel.com>
28391
28392 [BZ #18822]
28393 * include/sys/stat.h (__chmod): Add libc_hidden_proto.
28394 (__mkdir): Likewise.
28395 * io/chmod.c (__chmod): Add libc_hidden_def.
28396 * io/mkdir.c (__mkdir): Likewise.
28397 * sysdeps/mach/hurd/chmod.c (__chmod): Likewise.
28398 * sysdeps/mach/hurd/mkdir.c (__mkdir): Likewise.
28399 * sysdeps/unix/sysv/linux/generic/chmod.c (__chmod): Likewise.
28400 * sysdeps/unix/sysv/linux/generic/mkdir.c (__mkdir): Likewise.
28401
28402 2017-09-04 Joseph Myers <joseph@codesourcery.com>
28403
28404 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
28405 version to 4.13.
28406
28407 [BZ #22082]
28408 * math/bits/math-finite.h (exp10): Redirect if [__GLIBC_USE
28409 (IEC_60559_FUNCS_EXT)], not [__USE_GNU].
28410
28411 2017-09-04 Florian Weimer <fweimer@redhat.com>
28412
28413 * math/math.h: Issue warning if log is defined.
28414
28415 2017-09-04 Joseph Myers <joseph@codesourcery.com>
28416
28417 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
28418 kernel version to 4.13.
28419
28420 2017-09-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
28421
28422 * sysdeps/generic/sigsetops.h: Remove spurious #endif.
28423 (__sigismember, __sigaddset, __sigdelset): Fix referencing set
28424 parameter.
28425 * sysdeps/mach/hurd/bits/socket.h: Include <sys/types.h> instead of
28426 just <bits/types.h>.
28427 * sysdeps/posix/preadv2.c: Use off_t instead of OFF_T.
28428 * sysdeps/posix/preadv64v2.c: Use off64_t instead of OFF_T.
28429 * sysdeps/posix/pwritev2.c: Use off_t instead of OFF_T.
28430 * sysdeps/posix/pwritev64v2.c: Use off64_t instead of OFF_T.
28431 * misc/preadv2.c: Include <errno.h>.
28432 * misc/preadv64v2.c: Include <errno.h>.
28433 * misc/pwritev2.c: Include <errno.h>.
28434 * misc/pwritev64v2.c: Include <errno.h>.
28435 * sysdeps/posix/preadv2.c: Include <errno.h>.
28436 * sysdeps/posix/preadv64v2.c: Include <errno.h>.
28437 Fix <unistd.h> inclusion.
28438 * sysdeps/posix/pwritev2.c: Include <errno.h>.
28439 * sysdeps/posix/pwritev64v2.c: Include <errno.h>.
28440 * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno, __sbrk,
28441 __strtoul_internal): New functions.
28442 * sysdeps/posix/pause.c: Include <sigsetops.h>.
28443 * sysdeps/posix/system.c: Include <sigsetops.h>.
28444 * sysdeps/mach/hurd/i386/Makefile
28445 [$(subdir) = csu] (sysdep_routines): New rule: divdi3 object.
28446 [$(subdir) = csu] (sysdep-only-routines): Likewise.
28447 [$(subdir) = csu] (CFLAGS-divdi3.c): Likewise.
28448 * sysdeps/x86/fpu/include/bits/fenv.h [NO_HIDDEN]: Redirect
28449 __feraiseexcept_renamed to feraiseexcept instead of
28450 __GI_feraiseexcept.
28451 * sysdeps/mach/hurd/i386/Implies: Add mach/hurd/x86.
28452 * sysdeps/mach/hurd/x86/dl-sysdep.c: New file.
28453 * misc/tst-preadvwritev2-common.c (RWF_HIPRI, RWF_DSYNC, RWF_SYNC,
28454 RWF_NOWAIT): Define to 0 if undefined already.
28455 (do_test_with_invalid_flags): Set invalid_flag to 2 if RWF_SUPPORTED
28456 boils down to 0.
28457 * resolv/tst-resolv-res_init-skeleton.c (run_res_init)
28458 [!CLONE_NEWUTS]: Fail as unsupported if hostname is not NULL.
28459
28460 2017-09-01 Joseph Myers <joseph@codesourcery.com>
28461
28462 * manual/math.texi (pow10): Do not document.
28463 (pow10f): Likewise.
28464 (pow10l): Likewise.
28465 * math/bits/mathcalls.h [__USE_GNU] (pow10): Do not declare.
28466 * math/bits/math-finite.h [__USE_GNU] (pow10): Likewise.
28467 * math/libm-test-exp10.inc (pow10_test): Remove.
28468 (do_test): Do not call pow10.
28469 * math/w_exp10_compat.c (pow10): Make into compat symbol.
28470 [NO_LONG_DOUBLE] (pow10l): Likewise.
28471 * math/w_exp10f_compat.c (pow10f): Likewise.
28472 * math/w_exp10l_compat.c (pow10l): Likewise.
28473 * sysdeps/ia64/fpu/e_exp10.S: Include <shlib-compat.h>.
28474 (pow10): Make into compat symbol.
28475 * sysdeps/ia64/fpu/e_exp10f.S: Include <shlib-compat.h>.
28476 (pow10f): Make into compat symbol.
28477 * sysdeps/ia64/fpu/e_exp10l.S: Include <shlib-compat.h>.
28478 (pow10l): Make into compat symbol.
28479 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Remove
28480 pow10.
28481 (CFLAGS-nldbl-pow10.c): Remove variable..
28482 * sysdeps/ieee754/ldbl-opt/nldbl-pow10.c: Remove file.
28483 * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c (pow10l): Condition on
28484 [SHLIB_COMPAT (libm, GLIBC_2_1, GLIBC_2_27)].
28485 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (compat_symbol):
28486 Undefine and redefine.
28487 (pow10l): Make into compat symbol.
28488 * sysdeps/aarch64/libm-test-ulps: Remove pow10 ulps.
28489 * sysdeps/alpha/fpu/libm-test-ulps: Likewise.
28490 * sysdeps/arm/libm-test-ulps: Likewise.
28491 * sysdeps/hppa/fpu/libm-test-ulps: Likewise.
28492 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
28493 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
28494 * sysdeps/microblaze/libm-test-ulps: Likewise.
28495 * sysdeps/mips/mips32/libm-test-ulps: Likewise.
28496 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
28497 * sysdeps/nios2/libm-test-ulps: Likewise.
28498 * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
28499 * sysdeps/powerpc/nofpu/libm-test-ulps: Likewise.
28500 * sysdeps/s390/fpu/libm-test-ulps: Likewise.
28501 * sysdeps/sh/libm-test-ulps: Likewise.
28502 * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
28503 * sysdeps/tile/libm-test-ulps: Likewise.
28504 * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
28505
28506 2017-09-01 Paul Pluzhnikov <ppluzhnikov@google.com>
28507
28508 * stdlib/tst-atexit-common.c (crumbs): Ensure correct size.
28509
28510 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
28511
28512 * posix/tst-regex.c (do_test): Replace "../ChangeLog.8" with
28513 "../ChangeLog.old/ChangeLog.8".
28514 * posix/tst-regex2.c (do_test): Replace "../ChangeLog.14" with
28515 "../ChangeLog.old/ChangeLog.14".
28516
28517 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
28518
28519 * manual/contrib.texi: Credit Ulrich Drepper for the POSIX
28520 Threads Library.
28521
28522 2017-09-01 Joseph Myers <joseph@codesourcery.com>
28523
28524 * sysdeps/unix/sysv/linux/gentempfd.c: Include <string.h>.
28525
28526 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
28527
28528 * csu/version.c (banner): Remove "by Roland McGrath et al.".
28529 * nptl/Banner: Remove "by Ulrich Drepper et al.".
28530
28531 2017-09-01 Paul Pluzhnikov <ppluzhnikov@google.com>
28532
28533 * stdlib/tst-atexit-common.c (do_test): Test support for at least
28534 32 atexit handlers.
28535
28536 2017-09-01 Zack Weinberg <zackw@panix.com>
28537
28538 * math/math.h (HUGE_VAL): Improve commentary.
28539
28540 2017-09-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
28541 Andreas Schwab <schwab@suse.de>
28542
28543 [BZ #21530]
28544 * include/stdio.h (__gen_tempfd): New function.
28545 * stdio-common/Makefile (routines): Add gentempfd.
28546 * stdio-common/gentempfd.c: New file.
28547 * sysdeps/unix/sysv/linux/gentempfd.c: Likewise.
28548 * stdio-common/tmpfile.c (tmpfile): First try to use a system specific
28549 unnamed file first.
28550
28551 2017-09-01 Florian Weimer <fweimer@redhat.com>
28552
28553 [BZ #21915]
28554 [BZ #21922]
28555 * sysdeps/posix/getaddrinfo.c (gethosts): Look at NSS function
28556 result to determine success or failure, not the errno value.
28557 * nss/Makefile (tests): Add tst-nss-files-hosts-erange.
28558 (tst-nss-files-hosts-erange): Link with -ldl.
28559 * nss/tst-nss-files-hosts-erange.c: New file.
28560 * nss/tst-resolv-basic.c (response): Handle nodata.example.
28561 (do_test): Add NO_DATA tests.
28562 * resolv/tst-resolv-basic.c (test_nodata_nxdomain): New function.
28563 (do_test): Call it.
28564
28565 2017-09-01 Florian Weimer <fweimer@redhat.com>
28566
28567 [BZ #21922]
28568 * sysdeps/posix/getaddrinfo.c (gaih_inet): Report EAI_NODATA error
28569 coming from gethostbyname2_r.
28570
28571 2017-09-01 Florian Weimer <fweimer@redhat.com>
28572
28573 * support/namespace.h (struct support_chroot_configuration): Add
28574 hosts, host_conf.
28575 (struct support_chroot): Add path_hosts, path_host_conf.
28576 * support/support_chroot.c (write_file): New function.
28577 (support_chroot_create): Call it to process /etc/resolv.conf,
28578 /etc/hosts, /etc/host.conf.
28579 (support_chroot_free): Update.
28580
28581 2017-09-01 Florian Weimer <fweimer@redhat.com>
28582
28583 * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use h_errno if
28584 status indicates it is set.
28585
28586 2017-09-01 Florian Weimer <fweimer@redhat.com>
28587
28588 [BZ #20532]
28589 * sysdeps/posix/getaddrinfo.c (gaih_inet): Make reporting of NSS
28590 function lookup failures more reliable.
28591
28592 2017-09-01 Florian Weimer <fweimer@redhat.com>
28593
28594 * sysdeps/posix/getaddrinfo.c (gethosts): Use h_errno directly.
28595 (getcanonname): Likewise.
28596 (gaih_inet): Likewise.
28597
28598 2017-09-01 Florian Weimer <fweimer@redhat.com>
28599
28600 * sysdeps/posix/getaddrinfo.c (gethosts): Use errno directly.
28601 (getcanonname): Likewise.
28602 (gaih_inet): Likewise.
28603
28604 2017-08-31 Steve Ellcey <sellcey@cavium.com>
28605 Richard Henderson <rth@twiddle.net>
28606
28607 * sysdeps/aarch64/fpu/s_llrint.c (OREG_SIZE): New macro.
28608 * sysdeps/aarch64/fpu/s_llround.c (OREG_SIZE): Likewise.
28609 * sysdeps/aarch64/fpu/s_llrintf.c (OREGS, IREGS): Remove.
28610 (IREG_SIZE, OREG_SIZE): New macros.
28611 * sysdeps/aarch64/fpu/s_llroundf.c: (OREGS, IREGS): Remove.
28612 (IREG_SIZE, OREG_SIZE): New macros.
28613 * sysdeps/aarch64/fpu/s_lrintf.c (IREGS): Remove.
28614 (IREG_SIZE): New macro.
28615 * sysdeps/aarch64/fpu/s_lroundf.c (IREGS): Remove.
28616 (IREG_SIZE): New macro.
28617 * sysdeps/aarch64/fpu/s_lrint.c (get-rounding-mode.h, stdint.h):
28618 New includes.
28619 (IREG_SIZE, OREG_SIZE): Initialize if not already set.
28620 (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
28621 (__CONCATX): Handle exceptions correctly on large values that may
28622 set FE_INVALID.
28623 * sysdeps/aarch64/fpu/s_lround.c (IREG_SIZE, OREG_SIZE):
28624 Initialize if not already set.
28625 (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
28626
28627 2017-08-31 Adhemerval Zanella <adhemerval.zanella@linaro.org>
28628
28629 * sysdeps/generic/not-cancel.h (NO_CANCELLATION): Remove macro.
28630 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (NO_CANCELLATION):
28631 Likewise.
28632 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (NO_CANCELLATION):
28633 Likewise.
28634 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (NO_CANCELLATION):
28635 Likewise.
28636 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (NO_CANCELLATION):
28637 Likewise.
28638 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (NO_CANCELLATION):
28639 Likewise.
28640 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (NO_CANCELLATION):
28641 Likewise.
28642 * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (NO_CANCELLATION):
28643 Likewise.
28644 * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h
28645 (NO_CANCELLATION): Likewise.
28646 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (NO_CANCELLATION):
28647 Likewise.
28648 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (NO_CANCELLATION):
28649 Likewise.
28650 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h (NO_CANCELLATION):
28651 Likewise.
28652 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h
28653 (NO_CANCELLATION): Likewise.
28654 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h
28655 (NO_CANCELLATION): Likewise.
28656 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (NO_CANCELLATION):
28657 Likewise
28658 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h (NO_CANCELLATION):
28659 Likewise.
28660 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (NO_CANCELLATION):
28661 Likewise.
28662 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (NO_CANCELLATION):
28663 Likewise.
28664 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): Add
28665 hidden prototype.
28666 * sysdeps/unix/sysv/linux/fcntl.c (__fcntl_nocancel): Define only
28667 for !IS_IN (rtld) and remove NO_CANCELLATION usage.
28668
28669 2017-08-31 Steve Ellcey <sellcey@cavium.com>
28670
28671 * sysdeps/aarch64/dl-irel.h: (elf_ifunc_invoke): Change argument type
28672 in resolver call.
28673
28674 2017-08-31 Florian Weimer <fweimer@redhat.com>
28675
28676 * include/libc-symbols.h (internal_function): Remove.
28677
28678 2017-08-31 Florian Weimer <fweimer@redhat.com>
28679
28680 * stdlib/fmtmsg.c (internal_addseverity): Remove
28681 internal_function.
28682
28683 2017-08-31 Florian Weimer <fweimer@redhat.com>
28684
28685 * stdio-common/printf_fp.c (group_number): Remove
28686 internal_function.
28687 * stdio-common/vfprintf.c (buffered_vfprintf): Likewise.
28688
28689 2017-08-31 Florian Weimer <fweimer@redhat.com>
28690
28691 * posix/fnmatch.c (internal_function): Remove definition.
28692 * posix/fnmatch_loop.c (FCT, EXT, END): Remove internal_function.
28693 * posix/regcomp.c (peek_token, init_word_char)
28694 (duplicate_node_closure, fetch_token, peek_token)
28695 (peek_token_bracket, build_range_exp, build_collating_symbol):
28696 Likewise.
28697 * posix/regex_internal.c (re_string_construct_common)
28698 (create_ci_newstate, create_cd_newstate, re_string_allocate)
28699 (re_string_construct, re_string_realloc_buffers, build_wcs_buffer)
28700 (build_wcs_upper_buffer, re_string_skip_chars, build_upper_buffer)
28701 (re_string_translate_buffer, re_string_reconstruct)
28702 (re_string_peek_byte_case, re_string_fetch_byte_case)
28703 (re_string_destruct, re_string_context_at, re_node_set_alloc)
28704 (re_node_set_init_1, re_node_set_init_2, re_node_set_init_copy)
28705 (re_node_set_add_intersect, re_node_set_init_union)
28706 (re_node_set_merge, re_node_set_insert, re_node_set_insert_last)
28707 (re_node_set_compare, re_node_set_contains, re_node_set_remove_at)
28708 (re_dfa_add_node, calc_state_hash, re_acquire_state)
28709 (re_acquire_state_context): Likewise.
28710 * posix/regex_internal.h (internal_function): Remove definition.
28711 (re_string_realloc_buffers, build_wcs_buffer)
28712 (build_wcs_upper_buffer, build_upper_buffer)
28713 (re_string_translate_buffer, re_string_context_at)
28714 (re_string_char_size_at, re_string_wchar_at)
28715 (re_string_elem_size_at): Likewise.
28716 * posix/regexec.c (match_ctx_init, match_ctx_clean)
28717 (match_ctx_free, match_ctx_add_entry, search_cur_bkref_entry)
28718 (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init)
28719 (re_search_internal, re_search_2_stub, re_search_stub)
28720 (re_copy_regs, prune_impossible_nodes, check_matching)
28721 (check_halt_state_context, update_regs, push_fail_stack, set_regs)
28722 (free_fail_stack_return, sift_states_iter_mb)
28723 (sift_states_backward, build_sifted_states)
28724 (update_cur_sifted_state, add_epsilon_src_nodes, check_dst_limits)
28725 (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos)
28726 (check_subexp_limits, sift_states_bkref, merge_state_array)
28727 (find_recover_state, transit_state, merge_state_with_log)
28728 (check_subexp_matching_top, transit_state_sb, transit_state_sb)
28729 (transit_state_mb, transit_state_bkref, get_subexp)
28730 (get_subexp_sub, find_subexp_node, check_arrival)
28731 (check_arrival_add_next_nodes, check_arrival_expand_ecl)
28732 (check_arrival_expand_ecl_sub, expand_bkref_cache, build_trtable)
28733 (check_node_accept_bytes, find_collation_sequence_value)
28734 (group_nodes_into_DFAstates, check_node_accept, extend_buffers)
28735 (acquire_init_state_context, check_halt_node_context)
28736 (proceed_next_node, pop_fail_stack, clean_state_log_if_needed)
28737 (sub_epsilon_src_nodes): Likewise.
28738 * posix/spawn_int.h (__spawn_valid_fd): Likewise.
28739 * posix/spawn_valid_fd (__spawn_valid_fd): Likewise.
28740 * posix/wordexp.c (parse_dollars, parse_backtick, parse_dquote)
28741 (eval_expr, w_addmem, w_addstr, w_addword, parse_backslash)
28742 (parse_qtd_backslash, parse_tilde, do_parse_glob, parse_glob)
28743 (parse_squote, eval_expr_val, eval_expr_multdiv, parse_arith)
28744 (exec_comm_child, exec_comm, parse_comm, parse_param): Likewise.
28745 * sysdeps/posix/ttyname.c (getttyname): Likewise.
28746 * sysdeps/posix/ttyname_r.c (getttyname_r): Likewise.
28747 * sysdeps/unix/sysv/linux/preadv.c (__atomic_preadv_replacement)
28748 (PREADV): Likewise.
28749 * sysdeps/unix/sysv/linux/preadv64.c (__atomic_preadv64_replacement)
28750 (PREADV): Likewise.
28751 * sysdeps/unix/sysv/linux/pwritev.c (__atomic_pwritev_replacement)
28752 (PWRITEV): Likewise.
28753 * sysdeps/unix/sysv/linux/pwritev64.c (__atomic_pwritev64_replacement)
28754 (PWRITEV): Likewise.
28755 * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Likewise.
28756 * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
28757
28758 2017-08-31 Florian Weimer <fweimer@redhat.com>
28759
28760 * nptl/allocatestack.c (change_stack_perm, __deallocate_stack)
28761 (setxid_mark_thread, setxid_unmark_thread, setxid_signal_thread):
28762 Remove internal_function.
28763 * nptl/cancellation.c (__pthread_disable_asynccancel): Likewise.
28764 * nptl/libc_pthread_init.c (__libc_pthread_init): Likewise.
28765 * nptl/pthreadP.h (__find_in_stack_list, __free_tcb)
28766 (__deallocate_stack, __libc_pthread_init)
28767 (__pthread_mutex_cond_lock, __pthread_mutex_cond_lock_adjust)
28768 (__pthread_mutex_unlock_usercnt, __pthread_disable_asynccancel)
28769 (__libc_disable_asynccancel, __librt_disable_asynccancel):
28770 Likewise.
28771 * nptl/pthread_create.c (__find_in_stack_list, __free_tcb): Likewise.
28772 * nptl/pthread_mutex_cond_lock.c (__pthread_mutex_lock): Likewise.
28773 * nptl/pthread_mutex_lock.c (__pthread_mutex_cond_lock_adjust):
28774 Likewise.
28775 * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full)
28776 (__pthread_mutex_unlock_usercnt): Likewise.
28777
28778 2017-08-31 Florian Weimer <fweimer@redhat.com>
28779
28780 * io/fts.c (fts_alloc, fts_build, fts_lfree, fts_load)
28781 (fts_maxarglen, fts_padjust, fts_palloc, fts_sort, fts_stat)
28782 (fts_safe_changedir): Remove internal_function.
28783 * io/ftw.c (internal_function): Remove definition.
28784 (ftw_dir, process_entry, ftw_startup): Remove internal_function.
28785
28786 2017-08-31 Florian Weimer <fweimer@redhat.com>
28787
28788 * inet/deadline.c (__deadline_current_time)
28789 (__deadline_from_timeval, __deadline_to_ms): Remove
28790 internal_function.
28791 * inet/getnameinfo.c (nrl_domainname): Likewise.
28792 * inet/getnetgrent_r.c (__internal_setnetgrent_reuse): Likewise.
28793 * inet/inet6_option.c (add_pad): Likewise.
28794 * inet/net-internal.h (__deadline_current_time)
28795 (__deadline_from_timeval, __deadline_to_ms): Likewise.
28796 * inet/rcmd.c (__checkhost_sa, __icheckuser): Likewise.
28797 * sysdeps/mach/hurd/if_index.c (__protocol_available): Likewise.
28798 * sysdeps/unix/sysv/linux/ifaddrs.c (map_newlink): Likewise.
28799
28800 2017-08-31 Joseph Myers <joseph@codesourcery.com>
28801
28802 * math/math.h [__USE_ISOC99] (NAN): Define directly here. Do not
28803 include <bits/nan.h>.
28804 * math/Makefile (headers): Remove bits/nan.h.
28805 * bits/nan.h: Remove.
28806 * sysdeps/ieee754/bits/nan.h: Likewise.
28807 * sysdeps/mips/bits/nan.h: Likewise.
28808
28809 * math/math.h [__USE_ISOC99] (INFINITY): Define directly here. Do
28810 not include <bits/inf.h>.
28811 * math/Makefile (headers): Remove bits/inf.h.
28812 * bits/inf.h: Remove.
28813 * sysdeps/ieee754/bits/inf.h: Likewise.
28814
28815 * math/math.h: Do not include bits/huge_val.h, bits/huge_valf.h,
28816 bits/huge_vall.h or bits/huge_val_flt128.h.
28817 (HUGE_VAL): Define directly here.
28818 [__USE_ISOC99] (HUGE_VALF): Likewise.
28819 [__USE_ISOC99] (HUGE_VALL): Likewise.
28820 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
28821 (HUGE_VAL_F128): Likewise.
28822 * math/Makefile (headers): Remove bits/huge_val.h,
28823 bits/huge_valf.h, bits/huge_vall.h and bits/huge_val_flt128.h.
28824 * bits/huge_val.h: Remove.
28825 * bits/huge_val_flt128.h: Likewise.
28826 * bits/huge_valf.h: Likewise.
28827 * bits/huge_vall.h: Likewise.
28828 * sysdeps/ia64/bits/huge_vall.h: Likewise.
28829 * sysdeps/ieee754/bits/huge_val.h: Likewise.
28830 * sysdeps/ieee754/bits/huge_valf.h: Likewise.
28831 * sysdeps/m68k/m680x0/bits/huge_vall.h: Likewise.
28832 * sysdeps/sh/bits/huge_val.h: Likewise.
28833 * sysdeps/sparc/bits/huge_vall.h: Likewise.
28834 * sysdeps/x86/bits/huge_vall.h: Likewise.
28835
28836 2017-08-31 Florian Weimer <fweimer@redhat.com>
28837
28838 * elf/dl-addr-obj.c (_dl_addr_inside_object): Remove
28839 internal_function.
28840 * elf/dl-cache.c (_dl_cache_libcmp, _dl_load_cache_lookup):
28841 Likewise.
28842 * elf/dl-debug.c (_dl_debug_initialize): Likewise.
28843 * elf/dl-deps.c (_dl_build_local_scope, _dl_map_object_deps): Likewise.
28844 * elf/dl-environ.c (_dl_next_ld_env_entry): Likewise.
28845 * elf/dl-execstack.c (_dl_make_stack_executable): Likewise.
28846 * elf/dl-fini.c (_dl_sort_fini): Likewise.
28847 * elf/dl-hwcaps.c (_dl_important_hwcaps): Likewise.
28848 * elf/dl-libc.c (dlerror_run): Likewise.
28849 * elf/dl-load.c (add_name_to_object, decompose_rpath)
28850 (_dl_init_paths, _dl_map_object, _dl_rtld_di_serinfo): Likewise.
28851 * elf/dl-lookup.c (add_dependency, _dl_debug_bindings)
28852 (_dl_lookup_symbol_x, _dl_setup_hash, _dl_debug_bindings):
28853 Likewise.
28854 * elf/dl-misc.c (_dl_sysdep_read_whole_file, _dl_name_match_p)
28855 (_dl_higher_prime_number, _dl_strtoul): Likewise.
28856 * elf/dl-object.c (_dl_add_to_namespace_list, _dl_new_object): Likewise.
28857 * elf/dl-profile.c (_dl_start_profile): Likewise.
28858 * elf/dl-reloc.c (_dl_try_allocate_static_tls)
28859 (_dl_allocate_static_tls, _dl_protect_relro, _dl_reloc_bad_type):
28860 Likewise.
28861 * elf/dl-support.c (_dl_aux_init, _dl_non_dynamic_init): Likewise.
28862 * elf/dl-sym.c (_dl_tls_symaddr, do_sym): Likewise.
28863 * elf/dl-sysdep.c (_dl_sysdep_start_cleanup, _dl_show_auxv): Likewise.
28864 * elf/dl-tls.c (_dl_next_tls_modid, _dl_count_modids)
28865 (_dl_determine_tlsoffset, allocate_dtv, _dl_get_tls_static_info)
28866 (_dl_allocate_tls_storage): Likewise.
28867 * elf/dl-version.c (match_symbol, _dl_check_map_versions)
28868 (_dl_check_all_versions): Likewise.
28869 * elf/dynamic-link.h (_dl_try_allocate_static_tls): Likewise.
28870 * elf/tlsdeschtab.h (_dl_make_tlsdesc_dynamic): Likewise.
28871 * elf/tst-_dl_addr_inside_object.c (_dl_addr_inside_object): Likewise.
28872 * sysdeps/aarch64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
28873 * sysdeps/aarch64/tlsdesc.c (_dl_unmap): Likewise.
28874 * sysdeps/arm/dl-lookupcfg.h (_dl_unmap): Likewise.
28875 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Remove
28876 internal_function from __dl_start.
28877 * sysdeps/arm/dl-tlsdesc.h (_dl_unmap): Remove internal_function.
28878 * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): Likewise.
28879 * sysdeps/generic/ldsodefs.h (_dl_name_match_p)
28880 (_dl_higher_prime_number, _dl_strtoul, _dl_map_object)
28881 (_dl_map_object_deps, _dl_setup_hash, _dl_rtld_di_serinfo)
28882 (_dl_lookup_symbol_x, _dl_add_to_namespace_list, _dl_new_object)
28883 (_dl_protect_relro, _dl_reloc_bad_type, _dl_check_all_versions)
28884 (_dl_check_map_versions, _dl_sort_fini, _dl_debug_initialize)
28885 (_dl_init_paths, _dl_start_profile, _dl_show_auxv)
28886 (_dl_next_ld_env_entry, _dl_important_hwcaps)
28887 (_dl_load_cache_lookup, _dl_sysdep_read_whole_file)
28888 (_dl_sysdep_start_cleanup, _dl_next_tls_modid, _dl_count_modids)
28889 (_dl_determine_tlsoffset, _dl_get_tls_static_info)
28890 (_dl_allocate_static_tls, _dl_allocate_tls_storage)
28891 (_dl_addr_inside_object, _dl_non_dynamic_init, _dl_aux_init):
28892 Likewise.
28893 (struct rtld_global_ro): Remove internal_function from the
28894 _dl_lookup_symbol_x member.
28895 (_dl_symbol_value): Remove. No longer defined anywhere.
28896 * sysdeps/i386/dl-lookupcfg.h (_dl_unmap): Remove
28897 internal_function.
28898 * sysdeps/i386/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
28899 * sysdeps/i386/tlsdesc.c (_dl_unmap): Likewise.
28900 * sysdeps/mach/hurd/dl-sysdep.c (_dl_show_auxv): Likewise.
28901 * sysdeps/nios2/dl-init.c (_dl_nios2_get_gp_value): Likewise.
28902 * sysdeps/tile/dl-lookupcfg.h (_dl_unmap): Likewise.
28903 * sysdeps/tile/dl-machine.h (_dl_after_load): Likewise.
28904 * sysdeps/tile/dl-runtime.c (_dl_after_load, _dl_unmap): Likewise.
28905 * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Likewise.
28906 * sysdeps/unix/sysv/linux/dl-vdso.h (_dl_vdso_vsym): Likewise.
28907 * sysdeps/x86_64/dl-lookupcfg.h (_dl_unmap): Likewise.
28908 * sysdeps/x86_64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
28909 * sysdeps/x86_64/tlsdesc.c (_dl_unmap): Likewise.
28910
28911 2017-08-31 Florian Weimer <fweimer@redhat.com>
28912
28913 * gmon/gmon.c (write_hist, write_call_graph, write_bb_counts):
28914 Remove internal_function.
28915 * sysdeps/arm/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
28916 Likewise.
28917 * sysdeps/sparc/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
28918 Likewise.
28919
28920 2017-08-31 Florian Weimer <fweimer@redhat.com>
28921
28922 * dlfcn/dlerror.c (_dlerror_run): Remove internal_function.
28923 * elf/dl-sym.c (_dl_vsym, _dl_sym): Likewise.
28924 * include/dlfcn.h (_dl_sym, _dl_vsym, _dlerror_run): Likewise.
28925
28926 2017-08-31 Florian Weimer <fweimer@redhat.com>
28927
28928 * resolv/gai_misc.c (__gai_find_request, __gai_remove_request)
28929 (__gai_enqueue_request): Remove internal_function.
28930 * resolv/gai_misc.h (__gai_enqueue_request, __gai_find_request)
28931 (__gai_remove_request, __gai_notify, __gai_notify_only)
28932 (__gai_sigqueue): Likewise.
28933 * resolv/gai_notify.c (__gai_notify_only, __gai_notify): Likewise.
28934 * resolv/gai_sigqueue.c (__gai_sigqueue): Likewise.
28935 * resolv/inet_ntop.c (inet_ntop4, inet_ntop6): Likewise.
28936 * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
28937 Likewise.
28938
28939 2017-08-31 Florian Weimer <fweimer@redhat.com>
28940
28941 * dirent/scandir-tail.c (SCANDIR_TAIL): Remove internal_function.
28942 * include/dirent.h (__opendirat, __getdents, __getdents64)
28943 (__alloc_dir, __scandir_tail, __scandir64_tail): Likewise.
28944 * sysdeps/posix/opendir.c (__opendirat, __alloc_dir): Likewise.
28945 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
28946 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
28947 Likewise.
28948 * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Likewise.
28949
28950 2017-08-31 Florian Weimer <fweimer@redhat.com>
28951
28952 * sysdeps/unix/sysv/linux/getcwd.c (generic_getcwd): Remove
28953 internal_function.
28954 (GETCWD_RETURN_TYPE): Likewise.
28955
28956 2017-08-31 Florian Weimer <fweimer@redhat.com>
28957
28958 * include/time.h (__tz_compute, __strptime_internal): Remove
28959 internal_function.
28960 * time/strptime_l.c (__strptime_internal): Likewise.
28961 * time/tzset.c (compute_change, update_vars, __tz_compute): Likewise.
28962
28963 2017-08-31 Florian Weimer <fweimer@redhat.com>
28964
28965 * iconv/gconv.c (__gconv): Remove internal_function.
28966 * iconv/gconv_builtin.c (__gconv_get_builtin_trans): Likewise.
28967 * iconv/gconv_cache.c (__gconv_load_cache, find_module_idx)
28968 (find_module, __gconv_compare_alias_cache, __gconv_lookup_cache)
28969 (__gconv_release_cache): Likewise.
28970 * iconv/gconv_close.c (__gconv_close): Likewise.
28971 * iconv/gconv_conf.c (detect_conflict, insert_module, add_module)
28972 (read_conf_file, __gconv_get_path): Likewise.
28973 * iconv/gconv_db.c (derivation_lookup, add_derivation)
28974 (__gconv_release_step, gen_steps, increment_counter)
28975 (find_derivation, __gconv_compare_alias, __gconv_find_transform)
28976 (__gconv_close_transform, free_modules_db): Likewise.
28977 * iconv/gconv_dl.c (__gconv_find_shlib, __gconv_release_shlib):
28978 Likewise.
28979 * iconv/gconv_int.h (__gconv_open, __gconv_close, __gconv)
28980 (__gconv_find_transform, __gconv_lookup_cache)
28981 (__gconv_release_step, __gconv_load_cache, __gconv_get_path)
28982 (__gconv_close_transform, __gconv_release_cache)
28983 (__gconv_loaded_object, __gconv_release_shlib)
28984 (__gconv_compare_alias): Likewise.
28985 * iconv/gconv_open.c (__gconv_open): Likewise.
28986 * iconv/iconv_prog.c (print_known_names, add_known_names): Likewise.
28987 * iconv/iconvconfig.c (add_module): Likewise.
28988 * intl/dcigettext.c (plural_lookup, guess_category_value)
28989 (category_to_name, get_output_charset, _nl_find_msg): Likewise.
28990 * intl/eval-plural.h (plural_eval): Likewise.
28991 * intl/finddomain.c (_nl_find_domain): Likewise.
28992 * intl/gettextP.h (_nl_unload_domain, _nl_find_domain)
28993 (_nl_load_domain, _nl_find_msg): Likewise.
28994 (internal_function): Remove definition.
28995 * intl/loadinfo.h (internal_function): Likewise.
28996 * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Remove
28997 internal_function.
28998 * intl/localealias.c (internal_function): Remove definition.
28999 (read_alias_file): Remove internal_function.
29000 * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Likewise.
29001 * intl/plural-exp.h (internal_function): Remove definition.
29002 (FREE_EXPRESSION, EXTRACT_PLURAL_EXPRESSION): Remove
29003 internal_function.
29004 * intl/plural.c: Regenerate.
29005 * intl/plural.y (FREE_EXPRESSION): Remove internal_function.
29006 * locale/coll-lookup.c (__collidx_table_lookup)
29007 (__collseq_table_lookup): Likewise.
29008 * locale/coll-lookup.h (__collidx_table_lookup)
29009 (__collseq_table_lookup): Likewise.
29010 * locale/findlocale.c (_nl_find_locale, _nl_remove_locale): Likewise.
29011 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
29012 * locale/loadlocale.c (_nl_intern_locale_data, _nl_load_locale)
29013 (_nl_unload_locale): Likewise.
29014 * locale/localeinfo.h (struct __locale_data): Remove
29015 internal_function from cleanup member.
29016 (_nl_find_locale, _nl_load_locale, _nl_unload_locale)
29017 (_nl_remove_locale, _nl_load_locale_from_archive)
29018 (_nl_intern_locale_data, _nl_get_era_entry, _nl_select_era_entry)
29019 (_nl_get_alt_digit, _nl_get_walt_digit, _nl_parse_alt_digit)
29020 (_nl_cleanup_time): Remove internal_function.
29021 * time/alt_digit.c (_nl_get_alt_digit, _nl_get_walt_digit)
29022 (_nl_parse_alt_digit): Likewise.
29023 * time/era.c (_nl_init_era_entries, _nl_get_era_entry)
29024 (_nl_select_era_entry): Likewise.
29025 * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
29026 * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv, __wcsmbs_clone_conv)
29027 (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
29028 * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv, __wcsmbs_clone_conv)
29029 (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
29030
29031 2017-08-31 Florian Weimer <fweimer@redhat.com>
29032
29033 * rt/aio_sigqueue.c (__aio_sigqueue): Remove internal_function.
29034 * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
29035 * sysdeps/pthread/aio_misc.c (__aio_free_request, __aio_find_req)
29036 (__aio_find_req_fd, __aio_remove_request, __aio_enqueue_request):
29037 Likewise.
29038 * sysdeps/pthread/aio_misc.h (__aio_enqueue_request)
29039 (__aio_find_req, __aio_find_req_fd, __aio_free_request)
29040 (__aio_notify, __aio_notify_only, __aio_sigqueue): Likewise.
29041 * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
29042 Likewise.
29043 * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue): Likewise.
29044
29045 2017-08-31 Florian Weimer <fweimer@redhat.com>
29046
29047 * misc/getttyent.c (skip, value): Remove internal_function.
29048 * misc/syslog.c (openlog_internal): Likewise.
29049 * misc/tsearch.c (trecurse, tdestroy_recurse): Likewise.
29050
29051 2017-08-31 Florian Weimer <fweimer@redhat.com>
29052
29053 * include/nss.h (__nss_valid_field, __nss_valid_list_field)
29054 (__nss_rewrite_field): Remove internal_function.
29055 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
29056 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
29057 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
29058 * nss/nsswitch.c (nss_parse_file, nss_getline)
29059 (nss_parse_service_list, nss_new_service): Likewise.
29060 * nss/rewrite_field.c (__nss_rewrite_field): Likewise.
29061 * nss/valid_field.c (__nss_valid_field): Likewise.
29062 * nss/valid_list_field.c (__nss_valid_list_field): Likewise.
29063
29064 2017-08-31 Florian Weimer <fweimer@redhat.com>
29065
29066 * malloc/arena.c (__malloc_fork_lock_parent)
29067 (__malloc_fork_unlock_parent, __malloc_fork_unlock_child)
29068 (next_env_entry, new_heap, heap_trim, arena_get2): Remove
29069 internal_function from defintions.
29070 * malloc/hooks.c (mem2mem_check, mem2chunk_check): Likewise.
29071 * malloc/malloc-internal.h (__malloc_fork_lock_parent)
29072 (__malloc_fork_unlock_parent, __malloc_fork_unlock_child): Remove
29073 internal_function from declarations.
29074 * malloc/malloc.c (internal_function): Do not define.
29075 (mem2mem_check): Remove internal_function from declaration.
29076 (munmap_chunk, mremap_chunk): Remove internal_function.
29077 * malloc/mtrace.c (tr_where): Likewise.
29078
29079 2017-08-31 Florian Weimer <fweimer@redhat.com>
29080
29081 * include/rpc/pmap_clnt.h (__get_socket): Remove
29082 internal_function.
29083 * sunrpc/auth_des.c (synchronize): Likewise.
29084 * sunrpc/auth_unix.c (marshal_new_auth): Likewise.
29085 * sunrpc/clnt_perr.c (auth_errmsg): Likewise.
29086 * sunrpc/des_impl.c (des_encrypt, des_set_key): Likewise.
29087 * sunrpc/key_call.c (key_call_keyenvoy, key_call_socket)
29088 (key_call): Likewise.
29089 * sunrpc/pm_getport.c (__get_socket): Likewise.
29090 * sunrpc/pmap_rmt.c (getbroadcastnets): Likewise.
29091 * sunrpc/svc_unix.c (makefd_xprt): Likewise.
29092 * sunrpc/svc_tcp.c (makefd_xprt): Likewise.
29093 * sunrpc/svcauth_des.c (cache_init, cache_spot, cache_ref)
29094 (invalidate): Likewise.
29095 * sunrpc/xcrypt.c (hexval, hex2bin, bin2hex): Likewise.
29096 * sunrpc/xdr_rec.c (fix_buf_size, skip_input_bytes, flush_out)
29097 (set_input_fragment, get_input_bytes): Likewise.
29098
29099 2017-08-31 Florian Weimer <fweimer@redhat.com>
29100
29101 * malloc/malloc.c (_int_free): Remove locked variable and related
29102 asserts.
29103
29104 2017-08-31 H.J. Lu <hongjiu.lu@intel.com>
29105
29106 [BZ #22051]
29107 * Makerules (build-module-helper-objlist): Filter out
29108 $(elf-objpfx)sofini.os.
29109 (build-shlib-objlist): Append $(elf-objpfx)sofini.os if it is
29110 needed.
29111
29112 2017-08-31 Florian Weimer <fweimer@redhat.com>
29113
29114 * libio/fcloseall.c: Assume weak_alias is defined.
29115 * libio/feof.c: Likewise.
29116 * libio/fileno.c: Likewise.
29117 * libio/fileops.c: Assume _LIBC, errno, __set_errno are defined.
29118 (_POSIX_SOURCE, open, lseek, read, write): Remove macro
29119 definitions.
29120 (_IO_file_open): Call __open directly.
29121 (_IO_new_file_sync): Assume ESPIPE is defined.
29122 (_IO_file_seekoff_maybe_mmap): Call __read directly.
29123 (_IO_new_file_write): Call __write directly.
29124 * libio/ftello.c (__ftello): Assume EIO, EOVERFLOW are defined.
29125 * libio/ftello64.c (__ftello64): Assume EIO is defined.
29126 * libio/genops.c: Assume _LIBC is defined.
29127 (save_for_backup): Remove internal_function.
29128 * libio/getc.c: Assume weak_alias is defined.
29129 * libio/getwc.c: Likewise.
29130 * libio/iofclose.c: Assume _LIBC is defined.
29131 * libio/iofdopen.c: Likewise.
29132 (_IO_fcntl): Remove macro definition.
29133 (_IO_new_fdopen): Assume F_GETFL, F_SETFL, O_ACCMODE are defined.
29134 Call __fcntl directly.
29135 * libio/iofflush.c: Assume weak_alias is defined.
29136 * libio/iofgetpos.c (_IO_new_fgetpos): Assume EIO, EOVERFLOW are
29137 defined.
29138 * libio/iofgetpos64.c (_IO_new_fgetpos64): Assume EIO is defined.
29139 * libio/iofgets.c: Likewise.
29140 * libio/iofopen.c: Assume _LIBC is defined.
29141 * libio/iofopen64.c: Assume _LIBC, weak_alias are defined.
29142 * libio/iofputs.c: Assume weak_alias is defined.
29143 * libio/iofread.c: Likewise.
29144 * libio/iofsetpos.c (_IO_new_fsetpos): Assume EIO is defined.
29145 * libio/iofsetpos64.c (_IO_new_fsetpos64): Likewise.
29146 * libio/ioftell.c: Assume weak_alias is defined.
29147 (_IO_ftell): Assume EIO, EOVERFLOW are defined.
29148 * libio/iofwide.c: Assume _LIBC is defined.
29149 (_IO_fwide): Drop SHARED conditional because it is implied by
29150 SHLIB_COMPAT.
29151 * libio/iofwrite.c: Assume weak_alias is defined.
29152 * libio/iogetdelim.c: Likewise.
29153 * libio/iogets.c: Assume _LIBC, weak_alias are defined.
29154 * libio/iogetwline.c (wmemcpy): Remove macro definition.
29155 (_IO_getwline): Call __wmemcpy directly.
29156 * libio/iopopen.c: Assume _LIBC is defined.
29157 (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
29158 (_IO_close): Remove macro definitions.
29159 (_IO_new_proc_open): Call __fork, __dup2, __close_nocancel, execl,
29160 _exit directly.
29161 (_IO_new_proc_close): Call __close_nocancel, __waitpid_nocancel
29162 directly.
29163 * libio/ioputs.c: Assume weak_alias is defined.
29164 * libio/ioseekoff.c: Assume errno, __set_errno are defined.
29165 * libio/iosetbuffer.c: Assume weak_alias is defined.
29166 * libio/iosetvbuf.c: Likewise.
29167 * libio/ioungetc.c: Likewise.
29168 * libio/libioP.h: Assume _LIBC, __GLIBC__, libc_hidden_proto,
29169 libc_hidden_def, libc_hidden_weak, NULL are defined.
29170 (mmap, munmap, ftruncate, OS_FSTAT): Remove macro definitions.
29171 * libio/oldfilepos.c: Assume _LIBC, errno, __set_errno are
29172 defined.
29173 (_POSIX_SOURCE, open, lseek, read, write): Remove macro
29174 definitions.
29175 (_IO_old_file_init_internal): Drop SHARED conditional because it
29176 is implied by SHLIB_COMPAT.
29177 (_IO_old_file_fopen): Call __open directly.
29178 (_IO_old_file_sync): Assume ESPIPE is defined.
29179 (_IO_old_file_write): Call __write directly.
29180 * libio/oldfdopen.c (_IO_fcntl): Remove macro definition.
29181 (_IO_old_fdopen): Assume F_GETFL, O_ACCMODE, F_SETFL are defined.
29182 Call __fcntl directly.
29183 * libio/oldiofgetpos.c: Assume weak_alias is defined.
29184 (_IO_old_fgetpos): Assume EIO is defined.
29185 * libio/oldiofgetpos64.c: Assume weak_alias is defined.
29186 (_IO_old_fgetpos64): Assume EIO is defined.
29187 * libio/oldiofsetpos.c: Assume weak_alias is defined.
29188 (_IO_old_fsetpos): Assume EIO is defined.
29189 * libio/oldiofsetpos64.c: Assume weak_alias is defined.
29190 (_IO_old_fsetpos64): Assume EIO is defined.
29191 * libio/oldiopopen.c: Assume _LIBC is defined.
29192 (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
29193 (_IO_close): Remove macro definitions.
29194 (_IO_old_proc_open): Call __pipe, __close, __dup2, execl, _exit
29195 directly.
29196 (_IO_old_proc_close): Call __close, __waitpid directly.
29197 * libio/put.c: Assume weak_alias is defined.
29198 * libio/stdfiles.c: Assume _LIBC is defined.
29199 * libio/stdio.c: Likewise.
29200 * libio/wfileops.c: Likewise.
29201 (_IO_wfile_sync): Assume ESPIPE is defined.
29202 * libio/wgenops.c: Assume _LIBC is defined.
29203 (save_for_wbackup): Remove internal_function.
29204
29205 2017-08-31 Florian Weimer <fweimer@redhat.com>
29206
29207 * malloc/malloc.c (top_check): Change return type to void. Remove
29208 internal_function.
29209 * malloc/hooks.c (top_check): Likewise.
29210 (malloc_check, realloc_check, memalign_check): Adjust.
29211
29212 2017-08-30 Joseph Myers <joseph@codesourcery.com>
29213
29214 [BZ #21457]
29215 * sysdeps/arm/sys/ucontext.h: Do not include <bits/sigcontext.h>.
29216 * sysdeps/generic/sys/ucontext.h: Add comment about use of struct
29217 sigcontext and namespace requirements.
29218 * sysdeps/i386/sys/ucontext.h: Do not include <bits/sigcontext.h>.
29219 * sysdeps/m68k/sys/ucontext.h: Likewise.
29220 * sysdeps/mips/sys/ucontext.h: Likewise. Include <bits/types.h>.
29221 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h: Do not include
29222 <bits/sigcontext.h>.
29223 (__ctx): Define earlier.
29224 (mcontext_t): Define structure contents rather than using struct
29225 sigcontext.
29226 * sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym (oEXTENSION): Use
29227 __glibc_reserved1 instead of __reserved.
29228 * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h: Do not include
29229 <bits/sigcontext.h>.
29230 (__ctx): Define earlier.
29231 (mcontext_t): Define structure contents rather than using struct
29232 sigcontext.
29233 * sysdeps/unix/sysv/linux/alpha/ucontext-offsets.sym: Use
29234 mcontext_t instead of struct sigcontext.
29235 * sysdeps/unix/sysv/linux/arm/sys/ucontext.h: Do not include
29236 <bits/sigcontext.h>.
29237 (__ctx): Define earlier.
29238 (mcontext_t): Define structure contents rather than using struct
29239 sigcontext.
29240 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h: Do not include
29241 <bits/sigcontext.h>.
29242 (__ctx): Define earlier.
29243 (mcontext_t): Define structure contents rather than using struct
29244 sigcontext.
29245 * sysdeps/unix/sysv/linux/ia64/makecontext.c (__makecontext): Use
29246 mcontext_t instead of struct sigcontext.
29247 * sysdeps/unix/sysv/linux/ia64/sigcontext-offsets.sym: Use
29248 mcontext_t instead of struct sigcontext.
29249 * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: Do not include
29250 <bits/sigcontext.h>.
29251 (__ctx): New macro.
29252 (struct __ia64_fpreg_mcontext): New type.
29253 (mcontext_t): Define structure contents rather than using struct
29254 sigcontext.
29255 (_SC_GR0_OFFSET): Use mcontext_t instead of struct sigcontext.
29256 (uc_sigmask): Define using __ctx.
29257 (uc_stack): Likewise.
29258 * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Include
29259 <bits/sigcontext.h>.
29260 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
29261 * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h: Do not include
29262 <bits/sigcontext.h>.
29263 * sysdeps/unix/sysv/linux/microblaze/sys/ucontext.h: New file.
29264 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Do not include
29265 <bits/sigcontext.h>.
29266 * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h: Do not include
29267 <bits/sigcontext.h>.
29268 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Do not include
29269 <bits/sigcontext.h>.
29270 * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Do not include
29271 <bits/sigcontext.h>.
29272 * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: Do not include
29273 <bits/sigcontext.h>.
29274 * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h: Do not include
29275 <bits/sigcontext.h>.
29276 * sysdeps/unix/sysv/linux/tile/sys/ucontext.h: Do not include
29277 <bits/sigcontext.h>.
29278 (__ctx): Define earlier.
29279 (mcontext_t): Define structure contents rather than using struct
29280 sigcontext.
29281 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: Do not include
29282 <bits/sigcontext.h>. Include <bits/types.h>.
29283 * conform/Makefile (test-xfail-XPG42/signal.h/conform): Remove.
29284 (test-xfail-XPG42/sys/wait.h/conform): Likewise.
29285 (test-xfail-XPG42/ucontext.h/conform): Likewise.
29286 (test-xfail-UNIX98/signal.h/conform): Likewise.
29287 (test-xfail-UNIX98/sys/wait.h/conform): Likewise.
29288 (test-xfail-UNIX98/ucontext.h/conform): Likewise.
29289 (test-xfail-XOPEN2K/signal.h/conform): Likewise.
29290 (test-xfail-XOPEN2K/sys/wait.h/conform): Likewise.
29291 (test-xfail-XOPEN2K/ucontext.h/conform): Likewise.
29292 (test-xfail-POSIX2008/signal.h/conform): Likewise.
29293 (test-xfail-POSIX2008/sys/wait.h/conform): Likewise.
29294 (test-xfail-XOPEN2K8/signal.h/conform): Likewise.
29295 (test-xfail-XOPEN2K8/sys/wait.h/conform): Likewise.
29296
29297 2017-08-30 Florian Weimer <fweimer@redhat.com>
29298
29299 * malloc/dynarray_emplace_enlarge.c
29300 (__libc_dynarray_emplace_enlarge): Set errno on overflow.
29301 * malloc/dynarray_resize.c (__libc_dynarray_resize): Likewise.
29302 * malloc/tst-dynarray.c (test_long_overflow): New function.
29303 (do_test): Call it.
29304
29305 2017-08-30 Florian Weimer <fweimer@redhat.com>
29306
29307 * malloc/malloc.c (ARENA_CORRUPTION_BIT, arena_is_corrupt)
29308 (set_arena_corrupt): Remove definitions.
29309 (mtrim): Do not check for corrupt arena.
29310 * malloc/arena.c (arena_lock, reused_arena, arena_get_retry):
29311 Likewise.
29312
29313 2017-08-30 Florian Weimer <fweimer@redhat.com>
29314
29315 [BZ #21754]
29316 * malloc/arena.c (TUNABLE_CALLBACK set_mallopt_check): Do not set
29317 check_action.
29318 (ptmalloc_init): Do not set or use check_action.
29319 * malloc/hooks.c (malloc_check_get_size, realloc_check): Adjust
29320 call to malloc_printerr. Remove return statement.
29321 (free_check): Likewise. Remove arena unlock.
29322 (top_check): Update comment. Adjust call to malloc_printerr.
29323 Remove heap repair code.
29324 * malloc/malloc.c (unlink): Adjust calls to malloc_printerr.
29325 (DEFAULT_CHECK_ACTION, check_action): Remove definitions.
29326 (sysmalloc): Adjust call to malloc_printerr.
29327 (munmap_chunk, __libc_realloc): Likewise. Remove return
29328 statement.
29329 (_int_malloc, int_realloc): Likewise. Remove errstr variable.
29330 Remove errout label and corresponding gotos.
29331 (_int_free): Likewise. Remove arena unlock.
29332 (do_set_mallopt_check): Do not set check_action.
29333 (malloc_printerr): Adjust parameter list. Do not mark arena as
29334 corrupt.
29335 * manual/memory.texi (Malloc Tunable Parameters): Remove TODO
29336 comment.
29337 * manual/probes.texi (Memory Allocation Probes): Remove
29338 memory_mallopt_check_action.
29339
29340 2017-08-30 Steve Ellcey <sellcey@cavium.com>
29341
29342 * sysdeps/unix/sysv/linux/aarch64/makecontext.c (__makecontext):
29343 Use pointer to uint64_t instead of long int for sp.
29344
29345 2017-08-30 Florian Weimer <fweimer@redhat.com>
29346
29347 [BZ #21754]
29348 * malloc/malloc.c (malloc_printerr): Always terminate the process,
29349 without printing a backtrace. Do not leak any information in the
29350 error message.
29351 * manual/memory.texi (Heap Consistency Checking): Update.
29352 * manual/tunables.texi (Memory Allocation Tunables): Likewise.
29353
29354 2017-08-30 Florian Weimer <fweimer@redhat.com>
29355
29356 Do not scale NPTL tests with available number of CPUs.
29357 * nptl/tst-cond16.c (count): Set to constant value of 8.
29358 * nptl/tst-cond18.c (count): Likewise.
29359
29360 2017-08-29 Joseph Myers <joseph@codesourcery.com>
29361
29362 [BZ #22035]
29363 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__inline_functions):
29364 Define to take a second argument that is a macro that
29365 concatentates a suffix, not the suffix itself.
29366 (__CONCAT_d): New macro.
29367 (__CONCAT_f): Likewise.
29368 (__CONCAT_l): Likewise.
29369
29370 2017-08-29 Paul Pluzhnikov <ppluzhnikov@google.com>
29371
29372 * stdlib/tst-atexit-common.c (do_test): Test handler inheritance
29373 by child.
29374
29375 2017-08-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
29376 Aurelien Jarno <aurelien@aurel32.net>
29377 Maciej W. Rozycki <macro@imgtec.com>
29378
29379 [BZ #21956]
29380 * sysdeps/unix/sysv/linux/mips/mips32/mips16/Makefile
29381 [subdir = misc] (sysdep_routines): Remove `mips16-syscall5',
29382 `mips16-syscall6' and `mips16-syscall7'.
29383 (CFLAGS-mips16-syscall5.c, CFLAGS-mips16-syscall6.c)
29384 (CFLAGS-mips16-syscall7.c): Remove.
29385 * sysdeps/unix/sysv/linux/mips/mips32/mips16/Versions (libc):
29386 Remove `__mips16_syscall5', `__mips16_syscall6' and
29387 `__mips16_syscall7'.
29388 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall0.c
29389 (__mips16_syscall0): Rename `__mips16_syscall_return' to
29390 `__mips_syscall_return'.
29391 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall1.c
29392 (__mips16_syscall1): Likewise.
29393 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall2.c
29394 (__mips16_syscall2): Likewise.
29395 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall3.c
29396 (__mips16_syscall3): Likewise.
29397 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall4.c
29398 (__mips16_syscall4): Likewise.
29399 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall5.c:
29400 Remove.
29401 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall6.c:
29402 Remove.
29403 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall7.c:
29404 Remove.
29405 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall.h
29406 (__mips16_syscall5): Expand to `__mips_syscall5' rather than
29407 `__mips16_syscall5'. Remove prototype.
29408 (__mips16_syscall6): Expand to `__mips_syscall6' rather than
29409 `__mips16_syscall6'. Remove prototype.
29410 (__mips16_syscall7): Expand to `__mips_syscall7' rather than
29411 `__mips16_syscall7'. Remove prototype.
29412 (__nomips16, __mips16_syscall_return): Move to...
29413 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h
29414 (__nomips16, __mips_syscall_return): ... here.
29415 [__mips16] (INTERNAL_SYSCALL_NCS): Rename
29416 `__mips16_syscall_return' to `__mips_syscall_return'.
29417 [__mips16] (INTERNAL_SYSCALL_MIPS16): Pass `number' to
29418 `internal_syscall##nr'.
29419 [!__mips16] (INTERNAL_SYSCALL): Pass `SYS_ify (name)' to
29420 `internal_syscall##nr'.
29421 (FORCE_FRAME_POINTER): Remove.
29422 (__mips_syscall5): New prototype.
29423 (internal_syscall5): Rewrite to call `__mips_syscall5'.
29424 (__mips_syscall6): New prototype.
29425 (internal_syscall6): Rewrite to call `__mips_syscall6'.
29426 (__mips_syscall7): New prototype.
29427 (internal_syscall7): Rewrite to call `__mips_syscall7'.
29428 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall5.S: New file.
29429 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall6.S: New file.
29430 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall7.S: New file.
29431 * sysdeps/unix/sysv/linux/mips/mips32/Makefile [subdir = misc]
29432 (sysdep_routines): Add libc-do-syscall.
29433 * sysdeps/unix/sysv/linux/mips/mips32/Versions (libc): Add
29434 `__mips_syscall5', `__mips_syscall6' and `__mips_syscall7'.
29435
29436 2017-08-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
29437
29438 [BZ #21672]
29439 * nptl/allocatestack.c [_STACK_GROWS_DOWN] (setup_stack_prot):
29440 Set to use !NEED_SEPARATE_REGISTER_STACK as well.
29441 (advise_stack_range): New function.
29442 * nptl/pthread_create.c (START_THREAD_DEFN): Move logic to mark
29443 stack non required to advise_stack_range at allocatestack.c
29444
29445 2017-08-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
29446
29447 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Use __uint64_t.
29448
29449 2017-08-29 Florian Weimer <fweimer@redhat.com>
29450
29451 [BZ #22026]
29452 * iconv/gconv_db.c (gen_steps): Decrement step_cnt after resetting
29453 __end_fct. Mangle __end_fct after setting it to NULL.
29454 * iconv/Makefile (tests): Add tst-gconv-init-failure.
29455 (modules-names, modules-names-tests): Add
29456 tst-gconv-init-failure-mod.
29457 (gconv-modules): New target.
29458 (tst-gconv-init-failure-mod.so): Link against libsupport.
29459 (tst-gconv-init-failure): Depend on gconv-modules,
29460 tst-gconv-init-failure-mod.so.
29461 * iconv/tst-gconv-init-failure-mod.c: New file.
29462 * iconv/tst-gconv-init-failure.c: Likewise.
29463 * iconv/test-gconv-modules: Likewise.
29464
29465 2017-08-29 Florian Weimer <fweimer@redhat.com>
29466
29467 [BZ #22025]
29468 * iconv/gconv_db.c (free_derivation): Remove redundant
29469 parentheses.
29470 (gen_steps): Unconditionally mangle __btowc_fct after
29471 initialization.
29472 (increment_counter): Likewise. Do not call init_fct for internal
29473 modules.
29474
29475 2017-08-29 Joseph Myers <joseph@codesourcery.com>
29476
29477 [BZ #22028]
29478 * math/math.h [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
29479 (_MSUF_): Remove macro.
29480 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (_MSUFTO_):
29481 Likewise.
29482 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
29483 (__REDIRFROM_X): New macro.
29484 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (__REDIRTO_X):
29485 Likewise.
29486 * math/bits/math-finite.h (__REDIRFROM_X): Remove macro.
29487 (__REDIRTO_X): Likewise.
29488 (__MATH_REDIRCALL): Do not pass _MSUF_ or _MSUFTO_ macro
29489 arguments.
29490 (__MATH_REDIRCALL_2): Likewise.
29491 (__MATH_REDIRCALL_INTERNAL): Likewise.
29492 (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
29493 (__REDIRFROM (gamma, , _MSUF_)): Likweise.
29494 (__REDIRFROM (__gamma, _r_finite, _MSUF_)): Likewise.
29495 (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
29496 * math/test-finite-macros.c: New file.
29497 * math/Makefile (tests): Add test-finite-macros.
29498 (CFLAGS-test-finite-macros.c): New variable.
29499
29500 2017-08-29 Patsy Franklin <pfrankli@redhat.com>
29501 Jeff Law <law@redhat.com>
29502
29503 [BZ #22025]
29504 Mangle NULL pointers in iconv/gconv.
29505 * iconv/gconv_cache.c (find_module): Demangle init_fct before
29506 checking for NULL. Mangle __btowc_fct if init_fct is non-NULL.
29507 * iconv/gconv_db.c (free_derivation): Check that __shlib_handle
29508 is non-NULL before demangling the end_fct. Check for NULL
29509 end_fct after demangling.
29510 (__gconv_release_step): Demangle the end_fct before checking
29511 it for NULL. Remove assert on __shlibc_handle != NULL.
29512 (gen_steps): Don't check btowc_fct for NULL before mangling.
29513 Demangle init_fct before checking for NULL.
29514 (increment_counter): Likewise.
29515 * gconv_dl.c (__gconv_find_shlib): Don't check init_fct or
29516 end_fct for NULL before mangling.
29517 * wcsmbs/btowc.c (__btowc): Demangle btowc_fct before checking
29518 for NULL.
29519
29520 2017-08-29 Akhilesh Kumar <akhilesh.k@samsung.com>
29521
29522 [BZ #21971]
29523 * locale/iso-639.def: add Morisyen.
29524
29525 2017-08-28 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
29526
29527 [BZ #21930]
29528 * math/math.h [defined __cplusplus && defined __SUPPORT_SNAN__]
29529 (iszero): New C++ implementation that does not use
29530 fpclassify/__MATH_TG/__builtin_types_compatible_p, when
29531 signaling nans are enabled, since __builtin_types_compatible_p
29532 is a C-only feature.
29533 * math/test-math-iszero.cc: When __HAVE_DISTINCT_FLOAT128 is
29534 defined, include ieee754_float128.h for access to the union and
29535 member ieee854_float128.ieee.
29536 [__HAVE_DISTINCT_FLOAT128] (do_test): Call check_float128.
29537 [__HAVE_DISTINCT_FLOAT128] (check_float128): New function.
29538 * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
29539 (CXXFLAGS-test-math-iszero.cc): Add -mfloat128 to the build
29540 options of test-math-zero on powerpc64le.
29541
29542 2017-08-28 H.J. Lu <hongjiu.lu@intel.com>
29543
29544 * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
29545 Change double to float.
29546
29547 2017-08-28 Joseph Myers <joseph@codesourcery.com>
29548
29549 * math/math-svid-compat.h [!__ASSEMBLER__]: Make code
29550 unconditional.
29551 * sysdeps/ieee754/s_lib_version.c [!defined SHARED]: Remove
29552 conditional code; define contents only for [LIBM_SVID_COMPAT].
29553
29554 2017-08-28 Florian Weimer <fweimer@redhat.com>
29555
29556 * sysdeps/unix/sysv/linux/aarch64/Makefile (abi-lp64-options)
29557 (abi-lp64_be-options): Remove.
29558 * sysdeps/unix/sysv/linux/arm/Makefile (abi-soft-options)
29559 (abi-hard-options): Likewise.
29560 * sysdeps/unix/sysv/linux/mips/Makefile(abi-o32_soft-options)
29561 (abi-o32_hard-options, abi-o32_soft_2008-options)
29562 (abi-o32_hard_2008-options, abi-n32_soft-options)
29563 (abi-n32_hard-options, abi-n32_soft_2008-options)
29564 (abi-n32_hard_2008-options, abi-n64_soft-options)
29565 (abi-n64_hard-options, abi-n64_soft_2008-options)
29566 (abi-n64_hard_2008-options): Likewise.
29567 * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-32-options)
29568 (abi-64-v1-options, abi-64-v2-options): Likewise.
29569 * sysdeps/unix/sysv/linux/s390/Makefile (abi-32-options)
29570 (abi-64-options): Likewise.
29571 * sysdeps/unix/sysv/linux/sparc/Makefile (abi-32-options)
29572 (abi-64-options): Likewise.
29573 * sysdeps/unix/sysv/linux/tile/tilegx/Makefile (abi-32-options)
29574 (abi-64-options): Likewise.
29575 * sysdeps/unix/sysv/linux/x86/Makefile (abi-32-options)
29576 (abi-64-options, abi-x32-options): Likewise.
29577
29578 2017-08-28 Florian Weimer <fweimer@redhat.com>
29579
29580 Store supported list of SYS_* system calls in the source tree.
29581 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
29582 (bits/syscall.h): Generate from list file.
29583 [$(subdir) = misc] (before-compile): Add bits/syscall.h.
29584 [$(subdir) = misc] (tests): Add tst-syscall-list.
29585 [$(subdir) = misc] (tests-special): Add tst-syscall-list.out
29586 [$(subdir) = misc] (tst-syscall-list-macros.list)
29587 [$(subdir) = misc] (tst-syscall-list-nr.list)
29588 (tst-syscall-list-sys.list): Helper targets for new
29589 tst-syscall-list test.
29590 [$(subdir) = misc] (tst-syscall-list.out): Run test script
29591 tst-syscall-list.sh.
29592 [$(subdir) = misc] (bits/syscall%h, bits/syscall%d): Remove
29593 target. Do not include bits/syscall.d.
29594 [$(subdir) = misc] (generated): Do not update.
29595 * sysdeps/unix/sysv/linux/syscall-names.list: New file.
29596 * sysdeps/unix/sysv/linux/gen-syscall-h.awk: Likewise.
29597 * sysdeps/unix/sysv/linux/filter-nr-syscalls.awk: Likewise.
29598 * sysdeps/unix/sysv/linux/tst-syscall-list.sh: Likewise.
29599
29600 2017-08-27 Paul Pluzhnikov <ppluzhnikov@google.com>
29601
29602 * stdlib/Makefile (tst-atexit, tst-at_quick_exit): New tests.
29603 (tst-cxa_atexit, tst-on_exit): Likewise.
29604 * stdlib/Makefile (tests): Add tst-atexit, tst-at_quick_exit,
29605 tst-cxa_atexit, and tst-on_exit.
29606 * stdlib/tst-atexit-common.c: New file.
29607 * stdlib/tst-atexit.c: New file.
29608 * stdlib/tst-at_quick_exit.c: New file.
29609 * stdlib/tst-cxa_atexit.c: New file.
29610 * stdlib/tst-on_exit.c: New file.
29611
29612 2017-08-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
29613
29614 * sysdeps/mach/hurd/bits/sysmacros.h: New file.
29615 * mach/stack_chk_fail_local.c: New file.
29616 * hurd/stack_chk_fail_local.c: New file.
29617 * mach/Machrules ($(interface-library)-routines): Add
29618 stack_chk_fail_local.
29619 * mach/Makefile (CFLAGS-mach_init.o, CFLAGS-RPC_vm_statistics.o,
29620 CFLAGS-RPC_vm_map.o, CFLAGS-RPC_vm_protect.o,
29621 CFLAGS-RPC_i386_set_gdt.o, CFLAGS-RPC_i386_set_ldt.o,
29622 CFLAGS-RPC_task_get_special_port.o): Add $(no-stack-protector).
29623 * hurd/Makefile (CFLAGS-hurdstartup.o,
29624 CFLAGS-RPC_exec_startup_get_info.o): Add $(no-stack-protector).
29625
29626 2017-08-25 H.J. Lu <hongjiu.lu@intel.com>
29627
29628 * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
29629 (index_cpu_*, index_arch_*): Removed.
29630
29631 2017-08-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
29632
29633 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h (elf_greg_t):
29634 Use uint64_t instead of unsigned long.
29635
29636 2017-08-25 Joseph Myers <joseph@codesourcery.com>
29637
29638 * math/tgmath.h [__HAVE_FLOAT128]: Change conditional to
29639 [__HAVE_DISTINCT_FLOAT128].
29640
29641 * math/math.h (_MSUFTO_): Define and undefine for each inclusion
29642 of <bits/math-finite.h>.
29643 (__MATH_DECLARING_LDOUBLE): Do not define and undefine for each
29644 inclusion of <bits/math-finite.h>.
29645 * math/bits/math-finite.h (__REDIRTO_X): Do not define
29646 conditionally on [__MATH_DECLARING_LDOUBLE && defined
29647 __NO_LONG_DOUBLE_MATH].
29648 (__MATH_REDIRCALL): Use _MSUFTO_ in __REDIRTO call.
29649 (__MATH_REDIRCALL_2): Likewise.
29650 (__MATH_REDIRCALL_INTERNAL): Likewise.
29651 (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
29652 (__REDIRFROM (gamma, , _MSUF_)): Likewise.
29653 (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
29654
29655 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-power5.S:
29656 Remove file.
29657 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-ppc32.S:
29658 Likewise.
29659 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat.c:
29660 Likewise.
29661 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-power5.S:
29662 Likewise.
29663 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-ppc32.S:
29664 Likewise.
29665 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat.c:
29666 Likewise.
29667 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
29668 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
29669 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
29670 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
29671 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
29672 (libm-sysdep-routines): Remove w_sqrt_compat-power5,
29673 w_sqrt_compat-ppc32, w_sqrtf_compat-power5 and
29674 w_sqrtf_compat-ppc32.
29675
29676 2017-08-24 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
29677
29678 * math/math.h [defined __cplusplus] (issignaling): In the long
29679 double case, call __issignalingl only if __NO_LONG_DOUBLE_MATH
29680 is not defined. Call __issignaling, otherwise.
29681
29682 2017-08-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
29683
29684 * sysdeps/unix/make-syscalls.sh: Remove cancellable tagging for
29685 syscall definitions and replace __builtin_expect with __glibc_likely.
29686 * sysdeps/unix/syscall-template.S: Update comment about cancellable
29687 syscall.
29688 (SYSCALL_CANCELLABLE): Removedefinition
29689 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (PSEUDO): Remove
29690 definition.
29691 (PSEUDO_END): Likewise.
29692 [IS_IN (libpthread)] (CENABLE): Likewise.
29693 [IS_IN (libpthread)] (CDISABLE): Likewise.
29694 [IS_IN (libc)] (CENABLE): Likewise.
29695 [IS_IN (libc)] (CENABLE): Likewise.
29696 [IS_IN (librt)] (CDISABLE): Likewise.
29697 [IS_IN (librt)] (CDISABLE): Likewise.
29698 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29699 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (PSEUDO): Remove
29700 definition.
29701 (PSEUDO_END): Likewise.
29702 [IS_IN (libpthread)] (__local_enable_asynccancel): Likewise.
29703 [IS_IN (libpthread)] (__local_disable_asynccancel): Likewise.
29704 [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
29705 [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
29706 [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
29707 [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
29708 (CENABLE): Likewise.
29709 (CDISABLE): Likewise.
29710 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29711 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (PSEUDO): Remove
29712 defintion.
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/hppa/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 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (PSEUDO): Remove
29732 definition.
29733 (PSEUDO_END): Likewise.
29734 [IS_IN (libpthread)] (CENABLE): Likewise.
29735 [IS_IN (libpthread)] (CDISABLE): Likewise.
29736 [IS_IN (libc)] (CENABLE): Likewise.
29737 [IS_IN (libc)] (CENABLE): Likewise.
29738 [IS_IN (librt)] (CDISABLE): Likewise.
29739 [IS_IN (librt)] (CDISABLE): Likewise.
29740 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29741 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (PSEUDO): Remove
29742 definition.
29743 (PSEUDO_END): Likewise.
29744 [IS_IN (libpthread)] (CENABLE): Likewise.
29745 [IS_IN (libpthread)] (CDISABLE): Likewise.
29746 [IS_IN (libc)] (CENABLE): Likewise.
29747 [IS_IN (libc)] (CENABLE): Likewise.
29748 [IS_IN (librt)] (CDISABLE): Likewise.
29749 [IS_IN (librt)] (CDISABLE): Likewise.
29750 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29751 * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (PSEUDO): Remove
29752 definition.
29753 (PSEUDO_END): Likewise.
29754 [IS_IN (libpthread)] (CENABLE): Likewise.
29755 [IS_IN (libpthread)] (CDISABLE): Likewise.
29756 [IS_IN (libc)] (CENABLE): Likewise.
29757 [IS_IN (libc)] (CENABLE): Likewise.
29758 [IS_IN (librt)] (CDISABLE): Likewise.
29759 [IS_IN (librt)] (CDISABLE): Likewise.
29760 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29761 * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h (PSEUDO): Remove
29762 definition.
29763 (PSEUDO_END): Likewise.
29764 [IS_IN (libpthread)] (CENABLE): Likewise.
29765 [IS_IN (libpthread)] (CDISABLE): Likewise.
29766 [IS_IN (libc)] (CENABLE): Likewise.
29767 [IS_IN (libc)] (CENABLE): Likewise.
29768 [IS_IN (librt)] (CDISABLE): Likewise.
29769 [IS_IN (librt)] (CDISABLE): Likewise.
29770 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29771 * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h (PSEUDO):
29772 Remove definition.
29773 (PSEUDO_END): Likewise.
29774 [IS_IN (libpthread)] (CENABLE): Likewise.
29775 [IS_IN (libpthread)] (CDISABLE): Likewise.
29776 [IS_IN (libc)] (CENABLE): Likewise.
29777 [IS_IN (libc)] (CENABLE): Likewise.
29778 [IS_IN (librt)] (CDISABLE): Likewise.
29779 [IS_IN (librt)] (CDISABLE): Likewise.
29780 (SINGLE_THREAD_P): Likewise.
29781 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (PSEUDO): Remove
29782 definition.
29783 (PSEUDO_END): Likewise.
29784 [IS_IN (libpthread)] (CENABLE): Likewise.
29785 [IS_IN (libpthread)] (CDISABLE): Likewise.
29786 [IS_IN (libc)] (CENABLE): Likewise.
29787 [IS_IN (libc)] (CENABLE): Likewise.
29788 [IS_IN (librt)] (CDISABLE): Likewise.
29789 [IS_IN (librt)] (CDISABLE): Likewise.
29790 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29791 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (PSEUDO): Remove
29792 definition.
29793 (PSEUDO_END): Likewise.
29794 [IS_IN (libpthread)] (CENABLE): Likewise.
29795 [IS_IN (libpthread)] (CDISABLE): Likewise.
29796 [IS_IN (libc)] (CENABLE): Likewise.
29797 [IS_IN (libc)] (CENABLE): Likewise.
29798 [IS_IN (librt)] (CDISABLE): Likewise.
29799 [IS_IN (librt)] (CDISABLE): Likewise.
29800 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29801 * sysdeps/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Remove file.
29802 * sysdeps/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
29803 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: New file.
29804 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h (PSEUDO): Remove
29805 definition.
29806 (PSEUDO_END): Likewise.
29807 [IS_IN (libpthread)] (CENABLE): Likewise.
29808 [IS_IN (libpthread)] (CDISABLE): Likewise.
29809 [IS_IN (libc)] (CENABLE): Likewise.
29810 [IS_IN (libc)] (CENABLE): Likewise.
29811 [IS_IN (librt)] (CDISABLE): Likewise.
29812 [IS_IN (librt)] (CDISABLE): Likewise.
29813 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29814 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h (PSEUDO): Remove
29815 definition.
29816 (PSEUDO_END): Likewise.
29817 [IS_IN (libpthread)] (CENABLE): Likewise.
29818 [IS_IN (libpthread)] (CDISABLE): Likewise.
29819 [IS_IN (libc)] (CENABLE): Likewise.
29820 [IS_IN (libc)] (CENABLE): Likewise.
29821 [IS_IN (librt)] (CDISABLE): Likewise.
29822 [IS_IN (librt)] (CDISABLE): Likewise.
29823 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29824 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (PSEUDO): Remove
29825 definition.
29826 (PSEUDO_END): Likewise.
29827 [IS_IN (libpthread)] (CENABLE): Likewise.
29828 [IS_IN (libpthread)] (CDISABLE): Likewise.
29829 [IS_IN (libc)] (CENABLE): Likewise.
29830 [IS_IN (libc)] (CENABLE): Likewise.
29831 [IS_IN (librt)] (CDISABLE): Likewise.
29832 [IS_IN (librt)] (CDISABLE): Likewise.
29833 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29834 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Remove file.
29835 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
29836 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: New file.
29837 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (PSEUDO): Remove
29838 definition.
29839 (PSEUDO_END): Likewise.
29840 [IS_IN (libpthread)] (CENABLE): Likewise.
29841 [IS_IN (libpthread)] (CDISABLE): Likewise.
29842 [IS_IN (libc)] (CENABLE): Likewise.
29843 [IS_IN (libc)] (CENABLE): Likewise.
29844 [IS_IN (librt)] (CDISABLE): Likewise.
29845 [IS_IN (librt)] (CDISABLE): Likewise.
29846 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29847 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (PSEUDO): Remove
29848 definition.
29849 (PSEUDO_END): Likewise.
29850 [IS_IN (libpthread)] (CENABLE): Likewise.
29851 [IS_IN (libpthread)] (CDISABLE): Likewise.
29852 [IS_IN (libc)] (CENABLE): Likewise.
29853 [IS_IN (libc)] (CENABLE): Likewise.
29854 [IS_IN (librt)] (CDISABLE): Likewise.
29855 [IS_IN (librt)] (CDISABLE): Likewise.
29856 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29857
29858 2017-08-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
29859
29860 * sysdeps/ieee754/dbl-64/Makefile: Don't override CFLAGS.
29861
29862 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
29863
29864 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
29865
29866 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
29867
29868 [BZ #21982]
29869 * string/stratcliff.c (do_test): Declare size, nchars, inner,
29870 middle and outer with size_t instead of int. Repleace %d and
29871 %Zd with %zu in printf. Update "MAX (0, nchars - 128)" and
29872 "MAX (outer, nchars - 64)" to support unsigned outer and
29873 nchars. Also exit loop when outer == 0.
29874
29875 2017-08-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
29876
29877 * include/fcntl.h (__fcntl_nocancel): Remove definition.
29878 * include/signal.h (__sigsuspend_nocancel): Likewise.
29879 * include/time.h (__nanosleep_nocancel): Likewise.
29880 * sysdeps/generic/not-cancel.h (__fcntl_nocancel): New macro.
29881 * login/utmp_file.c: Include non cancellable syscall header.
29882 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): New
29883 prototype.
29884
29885 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
29886
29887 * sysdeps/x86_64/fpu/svml_d_sincos8_core.S: Replace AVX512F
29888 .byte sequences with AVX512F instructions.
29889 * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Likewise.
29890 * sysdeps/x86_64/fpu/svml_s_sincosf16_core.S: Likewise.
29891 * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Likewise.
29892 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S:
29893 Likewise.
29894 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
29895 Likewise.
29896
29897 2017-08-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
29898 Steve Ellcey <sellcey@cavium.com>
29899
29900 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic):
29901 Use PTR_REG macro in cmp instruction.
29902
29903 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
29904
29905 * include/libc-symbols.h: [!defined HAVE_GCC_IFUNC] (__ifunc):
29906 Change the return type of the ifunc resolver to match the return
29907 type of the target function.
29908
29909 2017-08-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
29910
29911 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (pread64): Remove.
29912 (preadv64): Likewise.
29913 (pwrite64(: Likewise.
29914 (pwritev64): Likewise.
29915
29916 * sysdeps/unix/sysv/linux/x86_64/sysdep.h
29917 (INTERNAL_SYSCALL_NCS_TYPES): Remove define.
29918 (LOAD_ARGS_0): Likewise.
29919 (LOAD_ARGS_1): Likewise.
29920 (LOAD_ARGS_2): Likewise.
29921 (LOAD_ARGS_3): Likewise.
29922 (LOAD_ARGS_4): Likewise.
29923 (LOAD_ARGS_5): Likewise.
29924 (LOAD_ARGS_6): Likewise.
29925 (LOAD_REGS_0): Likewise.
29926 (LOAD_REGS_1): Likewise.
29927 (LOAD_REGS_2): Likewise.
29928 (LOAD_REGS_3): Likewise.
29929 (LOAD_REGS_4): Likewise.
29930 (LOAD_REGS_5): Likewise.
29931 (LOAD_REGS_6): Likewise.
29932 (ASM_ARGS_0): Likewise.
29933 (ASM_ARGS_1): Likewise.
29934 (ASM_ARGS_2): Likewise.
29935 (ASM_ARGS_3): Likewise.
29936 (ASM_ARGS_4): Likewise.
29937 (ASM_ARGS_5): Likewise.
29938 (ASM_ARGS_6): Likewise.
29939 (LOAD_ARGS_TYPES_1): Likewise.
29940 (LOAD_ARGS_TYPES_2): Likewise.
29941 (LOAD_ARGS_TYPES_3): Likewise.
29942 (LOAD_ARGS_TYPES_4): Likewise.
29943 (LOAD_ARGS_TYPES_5): Likewise.
29944 (LOAD_ARGS_TYPES_6): Likewise.
29945 (LOAD_REGS_TYPES_1): Likewise.
29946 (LOAD_REGS_TYPES_2): Likewise.
29947 (LOAD_REGS_TYPES_3): Likewise.
29948 (LOAD_REGS_TYPES_4): Likewise.
29949 (LOAD_REGS_TYPES_5): Likewise.
29950 (LOAD_REGS_TYPES_6): Likewise.
29951 (TYPEFY): New define.
29952 (ARGIFY): Likewise.
29953 (internal_syscall0): Likewise.
29954 (internal_syscall1): Likewise.
29955 (internal_syscall2): Likewise.
29956 (internal_syscall3): Likewise.
29957 (internal_syscall4): Likewise.
29958 (internal_syscall5): Likewise.
29959 (internal_syscall6): Likewise.
29960 * sysdeps/unix/sysv/linux/x86_64/x32/times.c
29961 (INTERNAL_SYSCALL_NCS): Remove define.
29962 (internal_syscall1): Add define.
29963
29964 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
29965
29966 * math/w_remainder_compat.c: Remove duplicate inclusion of
29967 math-svid-compat.h.
29968 * math/w_remainderf_compat.c: Likewise.
29969 * math/w_remainderl_compat.c: Likewise.
29970
29971 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
29972
29973 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
29974
29975 2017-08-22 Joseph Myers <joseph@codesourcery.com>
29976
29977 [BZ #21684]
29978 * math/tgmath.h (__floating_type): Simplify definitions.
29979 (__real_integer_type): New macro.
29980 (__complex_integer_type): Likewise.
29981 (__expr_is_real): Likewise.
29982 (__tgmath_real_type_sub): Update comment to describe handling of
29983 complex types.
29984 (__tgmath_complex_type_sub): New macro.
29985 (__tgmath_complex_type): Likewise.
29986 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
29987 (__TGMATH_CF128): Use __expr_is_real.
29988 (__TGMATH_UNARY_REAL_IMAG): Use __tgmath_complex_type and
29989 __expr_is_real.
29990 (__TGMATH_BINARY_REAL_IMAG): Likewise.
29991 (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Use __expr_is_real.
29992 * math/gen-tgmath-tests.py (Type.create_type): Create complex
29993 integer types.
29994
29995 2017-08-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
29996
29997 * sysdeps/generic/not-cancel.h (sigsuspend_not_cancel): Remove
29998 macro.
29999 * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Remove
30000 alias.
30001 * sysdeps/unix/sysv/linux/not-cancel.h (sigsuspend_not_cancel):
30002 Likewise.
30003
30004 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Replace
30005 nanosleep_not_cancel with __nanosleep_nocancel.
30006 * sysdeps/generic/not-cancel.h (nanosleep_not_cancel): Remove macro.
30007 (__nanosleep_nocancel): New macro.
30008 * sysdeps/unix/sysv/linux/nanosleep.c (__nanosleep_nocancel): New
30009 function.
30010 * sysdeps/unix/sysv/linux/not-cancel.h (nanosleep_not_cancel): Remove
30011 macro.
30012 (__nanosleep_nocancel): New prototype.
30013
30014 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full): Replace
30015 pause_not_cancel with __pause_nocancel.
30016 * sysdeps/generic/not-cancel.h (pause_not_cancel): Remove macro.
30017 (__pause_nocancel): New macro.
30018 * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): Remove
30019 macro.
30020 (__pause_nocancel): New prototype.
30021 * sysdeps/unix/sysv/linux/pause.c (__pause_nocancel): New function.
30022
30023 2017-08-22 Martin Sebor <msebor@redhat.com>
30024
30025 * include/libc-symbols.h (__ifunc_resolver): Declare resolver
30026 to return a pointer to the same type as the target function.
30027
30028 2017-08-22 H.J. Lu <hongjiu.lu@intel.com>
30029
30030 [BZ #18822]
30031 [BZ #21986]
30032 * include/printf.h (__printf_fphex): Add attribute_hidden.
30033 (__guess_grouping): New prototype.
30034 * stdio-common/printf_fp.c (__guess_grouping): Removed.
30035 * stdio-common/reg-printf.c (__register_printf_specifier): Add
30036 libc_hidden_proto and libc_hidden_def.
30037 * stdlib/strfmon_l.c (__guess_grouping): Removed.
30038 (__vstrfmon_l): Remove the third argument passed to
30039 __guess_grouping.
30040
30041 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
30042
30043 * math/math.h [defined __cplusplus] (issignaling): Provide a C++
30044 definition for issignaling that does not rely on __MATH_TG,
30045 since __MATH_TG uses __builtin_types_compatible_p, which is only
30046 available in C mode.
30047 (CFLAGS-test-math-issignaling.cc): New variable.
30048 * math/Makefile [CXX] (tests): Add test-math-issignaling.
30049 * math/test-math-issignaling.cc: New test for C++ implementation
30050 of type-generic issignaling.
30051 * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
30052 (CXXFLAGS-test-math-issignaling.cc): Add -mfloat128 to the build
30053 options of test-math-issignaling on powerpc64le.
30054
30055 2017-08-22 H.J. Lu <hongjiu.lu@intel.com>
30056
30057 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
30058 building libc.a.
30059 (hidden_proto): Likewise.
30060 (hidden_tls_proto): Likewise.
30061 (__hidden_proto): Likewise.
30062
30063 2017-08-22 Florian Weimer <fweimer@redhat.com>
30064
30065 math: Statically link tests of internal functionality.
30066 * math/Makefile (tests): Remove atest-exp, atest-sincos,
30067 atest-exp2.
30068 (tests-static): Add atest-exp, atest-sincos, atest-exp2.
30069 (gmp-objs): Remove assignment.
30070 (atest-exp, atest-sincos, atest-exp2): Remove targets.
30071
30072 2017-08-22 Joseph Myers <joseph@codesourcery.com>
30073
30074 [BZ #21987]
30075 * sysdeps/unix/sysv/linux/sparc/bits/long-double.h: Remove file
30076 and copy to ...
30077 * sysdeps/unix/sysv/linux/sparc/sparc32/bits/long-double.h:
30078 ... here.
30079 * sysdeps/unix/sysv/linux/sparc/sparc64/bits/long-double.h:
30080 ... and here.
30081
30082 * assert/Makefile [$(have-cxx-thread_local)]: Move conditional
30083 variable definitions above inclusion of ../Rules.
30084
30085 2017-08-21 Joseph Myers <joseph@codesourcery.com>
30086
30087 * sysdeps/ieee754/k_standard.c (__kernel_standard): Add default
30088 case calling __builtin_unreachable.
30089
30090 2017-08-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30091
30092 * libio/ioopen.c (_IO_waitpid): Replace waitpid_not_cancel with
30093 __waitpid_nocancel.
30094 * sysdeps/generic/not-cancel.h (waitpid_not_cancel): Remove macro.
30095 (__waitpid_nocancel): New macro.
30096 * sysdeps/unix/sysv/linux/not-cancel.h (waitpid_not_cancel): Remove
30097 macro.
30098 (__waitpid_nocancel): Replace macro with a function.
30099 * sysdeps/unix/sysv/linux/waitpid.c (__waitpid_nocancel): New
30100 function.
30101
30102 * login/utmp_file.c (timeout_handler): Replace fcntl_not_cancel with
30103 __fcntl_nocancel.
30104 * sysdeps/generic/not-cancel.h (fcntl_not_cancel): Remove macro.
30105 * sysdeps/unix/sysv/linux/not-cancel.h (fcntl_not_cancel): Likewise.
30106
30107 * gmon/gmon.c (write_hist): Replace writev_not_cancel_no_status with
30108 __writev_nocancel_nostatus.
30109 (write_call_graph): Likewise.
30110 (write_bb_counts): Likewise.
30111 * resolv/herror.c (herror): Likewise.
30112 * sysdeps/generic/not-cancel.h (writev_not_cancel_no_status): Remove
30113 macro.
30114 (__writev_nocancel_nostatus): New macro.
30115 * sysdeps/unix/sysv/linux/not-cancel.h (writev_not_cancel_no_status):
30116 Remove macro.
30117 (__writev_nocancel_nostatus): New function.
30118
30119 2017-08-21 Joseph Myers <joseph@codesourcery.com>
30120
30121 Revert:
30122 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
30123
30124 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
30125 building libc.a.
30126 (hidden_proto): Likewise.
30127 (hidden_tls_proto): Likewise.
30128 (__hidden_proto): Likewise.
30129
30130 [BZ #21973]
30131 * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Remove file.
30132 * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
30133 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
30134 Likewise.
30135 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat.S:
30136 Likewise.
30137 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
30138 Likewise.
30139 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat.S:
30140 Likewise.
30141 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S : Likewise.
30142 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
30143 * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
30144 * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
30145 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
30146 GLIBC_2.0 sqrtl symbol.
30147
30148 * math/math.h [__USE_MISC] (_LIB_VERSION_TYPE): Remove.
30149 [__USE_MISC] (_LIB_VERSION): Likewise.
30150 [__USE_MISC] (struct exception): Likewise.
30151 [__USE_MISC] (matherr): Likewise.
30152 [__USE_MISC] (DOMAIN): Likewise.
30153 [__USE_MISC] (SING): Likewise.
30154 [__USE_MISC] (OVERFLOW): Likewise.
30155 [__USE_MISC] (UNDERFLOW): Likewise.
30156 [__USE_MISC] (TLOSS): Likewise.
30157 [__USE_MISC] (PLOSS): Likewise.
30158 [__USE_MISC] (HUGE): Likewise.
30159 [__USE_XOPEN] (MAXFLOAT): Define even if [__USE_MISC].
30160 * math/math-svid-compat.h: New file.
30161 * conform/linknamespace.pl (@whitelist): Remove matherr, matherrf
30162 and matherrl.
30163 * include/math.h [!_ISOMAC] (__matherr): Remove.
30164 * manual/arith.texi (FP Exceptions): Do not document matherr.
30165 * math/Makefile (tests): Change test-matherr to test-matherr-3.
30166 (tests-internal): New variable.
30167 (install-lib): Do not add libieee.a.
30168 (non-lib.a): Likewise.
30169 (extra-objs): Do not add libieee.a and ieee-math.o.
30170 (CPPFLAGS-s_lib_version.c): Remove variable.
30171 ($(objpfx)libieee.a): Remove rule.
30172 ($(addprefix $(objpfx), $(tests-internal)): Depend on $(libm).
30173 * math/ieee-math.c: Remove.
30174 * math/libm-test-support.c (matherr): Remove.
30175 * math/test-matherr.c: Use <support/test-driver.c>. Add copyright
30176 and license notices. Include <math-svid-compat.h> and
30177 <shlib-compat.h>.
30178 (matherr): Undefine as macro. Use compat_symbol_reference.
30179 (_LIB_VERSION): Likewise.
30180 * math/test-matherr-2.c: New file.
30181 * math/test-matherr-3.c: Likewise.
30182 * sysdeps/generic/math_private.h (__kernel_standard): Remove
30183 declaration.
30184 (__kernel_standard_f): Likewise.
30185 (__kernel_standard_l): Likewise.
30186 * sysdeps/ieee754/s_lib_version.c: Do not include <math.h> or
30187 <math_private.h>. Include <math-svid-compat.h>.
30188 (_LIB_VERSION): Undefine as macro.
30189 (_LIB_VERSION_INTERNAL): Always initialize to _POSIX_. Define
30190 only if [LIBM_SVID_COMPAT || !defined SHARED]. If
30191 [LIBM_SVID_COMPAT], use compat_symbol.
30192 * sysdeps/ieee754/s_matherr.c: Do not include <math.h> or
30193 <math_private.h>. Include <math-svid-compat.h>.
30194 (matherr): Undefine as macro.
30195 (__matherr): Define only if [LIBM_SVID_COMPAT]. Use
30196 compat_symbol.
30197 * sysdeps/ia64/fpu/libm_error.c: Include <math-svid-compat.h>.
30198 [_LIBC && LIBM_SVID_COMPAT] (matherrf): Use
30199 compat_symbol_reference.
30200 [_LIBC && LIBM_SVID_COMPAT] (matherrl): Likewise.
30201 [_LIBC && !LIBM_SVID_COMPAT] (matherrf): Define as macro.
30202 [_LIBC && !LIBM_SVID_COMPAT] (matherrl): Likewise.
30203 * sysdeps/ia64/fpu/libm_support.h: Include <math-svid-compat.h>.
30204 (MATHERR_D): Remove declaration.
30205 [!_LIBC] (_LIB_VERSION_TYPE): Likewise
30206 [!LIBM_BUILD] (_LIB_VERSIONIMF): Likewise.
30207 [LIBM_BUILD] (pmatherrf): Likewise.
30208 [LIBM_BUILD] (pmatherr): Likewise.
30209 [LIBM_BUILD] (pmatherrl): Likewise.
30210 (DOMAIN): Likewise.
30211 (SING): Likewise.
30212 (OVERFLOW): Likewise.
30213 (UNDERFLOW): Likewise.
30214 (TLOSS): Likewise.
30215 (PLOSS): Likewise.
30216 * sysdeps/ia64/fpu/s_matherrf.c: Include <math-svid-compat.h>.
30217 (__matherrf): Define only if [LIBM_SVID_COMPAT]. Use
30218 compat_symbol.
30219 * sysdeps/ia64/fpu/s_matherrl.c: Include <math-svid-compat.h>.
30220 (__matherrl): Define only if [LIBM_SVID_COMPAT]. Use
30221 compat_symbol.
30222 * math/lgamma-compat.h: Include <math-svid-compat.h>.
30223 * math/w_acos_compat.c: Likewise.
30224 * math/w_acosf_compat.c: Likewise.
30225 * math/w_acosh_compat.c: Likewise.
30226 * math/w_acoshf_compat.c: Likewise.
30227 * math/w_acoshl_compat.c: Likewise.
30228 * math/w_acosl_compat.c: Likewise.
30229 * math/w_asin_compat.c: Likewise.
30230 * math/w_asinf_compat.c: Likewise.
30231 * math/w_asinl_compat.c: Likewise.
30232 * math/w_atan2_compat.c: Likewise.
30233 * math/w_atan2f_compat.c: Likewise.
30234 * math/w_atan2l_compat.c: Likewise.
30235 * math/w_atanh_compat.c: Likewise.
30236 * math/w_atanhf_compat.c: Likewise.
30237 * math/w_atanhl_compat.c: Likewise.
30238 * math/w_cosh_compat.c: Likewise.
30239 * math/w_coshf_compat.c: Likewise.
30240 * math/w_coshl_compat.c: Likewise.
30241 * math/w_exp10_compat.c: Likewise.
30242 * math/w_exp10f_compat.c: Likewise.
30243 * math/w_exp10l_compat.c: Likewise.
30244 * math/w_exp2_compat.c: Likewise.
30245 * math/w_exp2f_compat.c: Likewise.
30246 * math/w_exp2l_compat.c: Likewise.
30247 * math/w_fmod_compat.c: Likewise.
30248 * math/w_fmodf_compat.c: Likewise.
30249 * math/w_fmodl_compat.c: Likewise.
30250 * math/w_hypot_compat.c: Likewise.
30251 * math/w_hypotf_compat.c: Likewise.
30252 * math/w_hypotl_compat.c: Likewise.
30253 * math/w_j0_compat.c: Likewise.
30254 * math/w_j0f_compat.c: Likewise.
30255 * math/w_j0l_compat.c: Likewise.
30256 * math/w_j1_compat.c: Likewise.
30257 * math/w_j1f_compat.c: Likewise.
30258 * math/w_j1l_compat.c: Likewise.
30259 * math/w_jn_compat.c: Likewise.
30260 * math/w_jnf_compat.c: Likewise.
30261 * math/w_jnl_compat.c: Likewise.
30262 * math/w_lgamma_main.c: Likewise.
30263 * math/w_lgamma_r_compat.c: Likewise.
30264 * math/w_lgammaf_main.c: Likewise.
30265 * math/w_lgammaf_r_compat.c: Likewise.
30266 * math/w_lgammal_main.c: Likewise.
30267 * math/w_lgammal_r_compat.c: Likewise.
30268 * math/w_log10_compat.c: Likewise.
30269 * math/w_log10f_compat.c: Likewise.
30270 * math/w_log10l_compat.c: Likewise.
30271 * math/w_log2_compat.c: Likewise.
30272 * math/w_log2f_compat.c: Likewise.
30273 * math/w_log2l_compat.c: Likewise.
30274 * math/w_log_compat.c: Likewise.
30275 * math/w_logf_compat.c: Likewise.
30276 * math/w_logl_compat.c: Likewise.
30277 * math/w_pow_compat.c: Likewise.
30278 * math/w_powf_compat.c: Likewise.
30279 * math/w_powl_compat.c: Likewise.
30280 * math/w_remainder_compat.c: Likewise.
30281 * math/w_remainderf_compat.c: Likewise.
30282 * math/w_remainderl_compat.c: Likewise.
30283 * math/w_scalb_compat.c: Likewise.
30284 * math/w_scalbf_compat.c: Likewise.
30285 * math/w_scalbl_compat.c: Likewise.
30286 * math/w_sinh_compat.c: Likewise.
30287 * math/w_sinhf_compat.c: Likewise.
30288 * math/w_sinhl_compat.c: Likewise.
30289 * math/w_sqrt_compat.c: Likewise.
30290 * math/w_sqrtf_compat.c: Likewise.
30291 * math/w_sqrtl_compat.c: Likewise.
30292 * math/w_tgamma_compat.c: Likewise.
30293 * math/w_tgammaf_compat.c: Likewise.
30294 * math/w_tgammal_compat.c: Likewise.
30295 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Likewise.
30296 * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
30297 * sysdeps/ieee754/k_standard.c: Likewise.
30298 * sysdeps/ieee754/k_standardf.c: Likewise.
30299 * sysdeps/ieee754/k_standardl.c: Likewise.
30300 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
30301 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
30302 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
30303 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
30304 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
30305 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
30306 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
30307 * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Likewise.
30308 * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
30309 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
30310 Likewise.
30311 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
30312 Likewise.
30313 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S: Likewise.
30314 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
30315 * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
30316 * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
30317
30318 2017-08-21 Florian Weimer <fweimer@redhat.com>
30319
30320 [BZ #21864]
30321 Do not compile benchmark helper objects with -DMODULE_NAME=libc.
30322 * benchtests/Makefile (others-extras): Set to $(bench-extra-objs).
30323 Move before inclusion of ../Rules.
30324
30325 2017-08-21 Florian Weimer <fweimer@redhat.com>
30326
30327 [BZ #21972]
30328 * assert/assert.h (assert): Use static_cast (bool) for C++.
30329 Use the ternary operator in the warning branch for GNU C.
30330 * assert/Makefile (tests): Add tst-assert-c++, tst-assert-g++.
30331 (CFLAGS-tst-assert-c++.o): Compile in C++11 mode.
30332 (CFLAGS-tst-assert-g++.o): Compile in GnU C++11 mode.
30333 (LDLIBS-tst-assert-c++, LDLIBS-tst-assert-g++): Link with libstdc++.
30334 * assert/tst-assert-c++.cc, assert/tst-assert-g++.cc: New files.
30335
30336 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
30337
30338 [BZ #18822]
30339 * sysdeps/unix/sysv/linux/x86_64/init-first.c
30340 (__syscall_clock_gettime): Add attribute_hidden.
30341 * sysdeps/unix/sysv/linux/x86_64/makecontext.c
30342 (__start_context): Likewise.
30343
30344 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
30345
30346 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
30347 building libc.a.
30348 (hidden_proto): Likewise.
30349 (hidden_tls_proto): Likewise.
30350 (__hidden_proto): Likewise.
30351
30352 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
30353
30354 * include/libc-symbols.h (attribute_hidden): Enable hidden
30355 visibility in libc.a compiled with PIE.
30356
30357 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
30358
30359 [BZ #18822]
30360 * sysdeps/unix/sysv/linux/x86/libc-vdso.h (VDSO_SYMBOL(getcpu)):
30361 Add attribute_hidden.
30362
30363 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
30364
30365 [BZ #21864]
30366 * Makerules (all-nonlib): Add $(others-extras).
30367 * catgets/Makefile (others-extras): New.
30368 * elf/Makefile (others-extras): Likewise.
30369 * nss/Makefile (others-extras): Likewise.
30370
30371 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
30372
30373 [BZ #18822]
30374 * csu/libc-start.c (__libc_multiple_libcs): Removed.
30375 * elf/dl-open.c: Include <libc-internal.h>.
30376 (__libc_multiple_libcs): Removed.
30377 * elf/dl-sysdep.c: Include <libc-internal.h> instead of
30378 <hp-timing.h>.
30379 * include/libc-internal.h (__libc_multiple_libcs): New.
30380 * misc/sbrk.c: Include <libc-internal.h>.
30381 (__libc_multiple_libcs): Removed.
30382
30383 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
30384
30385 [BZ #18822]
30386 * grp/initgroups.c (__nss_group_database): Removed.
30387 (__nss_initgroups_database): Likewise.
30388 * nscd/gai.c (__nss_hosts_database): Likewise.
30389 * nss/XXX-lookup.c (DATABASE_NAME_SYMBOL): Likewise.
30390 * posix/tst-rfc3484-2.c (__nss_hosts_database): Likewise.
30391 * posix/tst-rfc3484-3.c (__nss_hosts_database): Likewise.
30392 * posix/tst-rfc3484.c (__nss_hosts_database): Likewise.
30393 * sysdeps/posix/getaddrinfo.c (__nss_hosts_database): Likewise.
30394 * nss/getXXent.c (INTERNAL (REENTRANT_GETNAME)): Add
30395 attribute_hidden.
30396 * nss/nsswitch.c (__nss_database_custom): Define only if
30397 USE_NSCD is defined.
30398 (__nss_configure_lookup): Use __nss_database_custom only if
30399 USE_NSCD is defined.
30400 * nss/nsswitch.h (__nss_database_custom): Declare only if
30401 USE_NSCD is defined. Add attribute_hidden.
30402 (__nss_setent): Add attribute_hidden.
30403 (__nss_endent): Likewise.
30404 (__nss_getent_r): Likewise.
30405 (__nss_getent): Likewise.
30406 (DEFINE_DATABASE): Declare __nss_##arg##_database.
30407
30408 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
30409
30410 [BZ #18822]
30411 * sysdeps/unix/sysv/linux/i386/glob64.c (__old_glob64): Add
30412 libc_hidden_proto and libc_hidden_def.
30413
30414 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
30415
30416 [BZ #18822]
30417 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_readdir64):
30418 Add libc_hidden_proto.
30419 * sysdeps/unix/sysv/linux/i386/readdir64.c (__old_readdir64):
30420 Add libc_hidden_def.
30421
30422 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
30423
30424 [BZ #21974]
30425 * gmon/Makefile (routines): Remove bb_init_func and
30426 bb_exit_func.
30427 (elide-routines.os): Removed.
30428 * gmon/bb_exit_func.c: Likewise.
30429 * gmon/bb_init_func.c: Likewise.
30430 * include/sys/gmon.h (__bb): Likewise.
30431 (__bb_init_func): Likewise.
30432 (__bb_exit_func): Likewise.
30433 * sysdeps/alpha/bb_init_func.S: Likewise.
30434
30435 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
30436
30437 * debug/longjmp_chk.c (____longjmp_chk): Moved to ...
30438 * include/setjmp.h (____longjmp_chk): Here. Add
30439 attribute_hidden.
30440
30441 2017-08-19 H.J. Lu <hongjiu.lu@intel.com>
30442
30443 [BZ #18822]
30444 * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE2): Add
30445 attribute_hidden.
30446 (__strspn_sse2): Likewise.
30447
30448 2017-08-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30449
30450 * sysdeps/generic/not-cancel.h (close_not_cancel): Remove macro.
30451 (close_not_cancel_no_status): Likewise.
30452 (__close_nocancel): New macro.
30453 (__close_nocancel_nostatus): Likewise.
30454 * sysdeps/unix/sysv/linux/not-cancel.h (__close_nocancel): Remove
30455 macro.
30456 (close_not_cancel): Likewise.
30457 (close_not_cancel_no_status): Likewise.
30458 (__close_nocancel): New prototype.
30459 (__close_nocancel_nostatus): New function.
30460 * sysdeps/unix/sysv/linux/close.c (__close_nocancel): New function.
30461 * catgets/open_catalog.c (__open_catalog): Replace
30462 close_not_cancel{_no_status) with __close_nocancel{_nostatus}.
30463 * gmon/gmon.c (write_gmon): Likewise.
30464 * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
30465 * intl/loadmsgcat.c (close): Likewise.
30466 * io/ftw.c (open_dir_stream): Likewise.
30467 (ftw_startup): Likewise.
30468 * libio/fileops.c (_IO_file_open): Likewise.
30469 (_IO_file_close_mmap): Likewise.
30470 (_IO_file_close): Likewise.
30471 * libio/iopopen.c (_IO_dup2): Likewise.
30472 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
30473 * locale/loadlocale.c (_nl_load_locale): Likewise.
30474 * login/utmp_file.c (pututline_file): Likewise.
30475 (endutent_file): Likewise.
30476 * misc/daemon.c (daemon): Likewise.
30477 * nscd/nscd_getai.c (__nscd_getai): Likewise.
30478 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
30479 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
30480 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
30481 * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
30482 * nscd/nscd_helper.c (open_socket): Likewise.
30483 (__nscd_open_socket): Likewise.
30484 * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
30485 * nscd/nscd_netgroup.c (__nscd_setnetgrent): Likewise.
30486 (__nscd_innetgr): Likewise.
30487 * nss/nss_db/db-open.c (internal_setent): Likewise.
30488 * resolv/res-close.c (__res_iclose): Likewise.
30489 * sunrpc/pm_getmaps.c (pmap_getmaps): Likewise.
30490 * sysdeps/posix/closedir.c (__closedir): Likewise.
30491 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Likewise.
30492 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
30493 * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
30494 (opendir_tail): Likewise.
30495 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
30496 * sysdeps/unix/sysv/linux/check_native.c (__check_native): Likewise.
30497 * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Likewise.
30498 * sysdeps/unix/sysv/linux/fips-private.h (fips_enabled_p): Likewise.
30499 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
30500 (gethostid): Likewise.
30501 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
30502 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
30503 Likewise.
30504 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
30505 * sysdeps/unix/sysv/linux/grantpt.c (close_all_fds): Likewise.
30506 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
30507 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
30508 Likewise.
30509 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex): Likewise.
30510 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps): Likewise.
30511 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
30512 Likewise.
30513 * sysdeps/unix/sysv/linux/mq_notify.c (init_mq_netlink): Likewise.
30514 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
30515 Likewise.
30516 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
30517 Likewise.
30518 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
30519 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
30520 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
30521 __close_nocancel.
30522
30523 * sysdeps/generic/not-cancel.h (openat_not_cancel): Remove macro.
30524 (openat_not_cancel_3): Likewise.
30525 (openat64_not_cancel_3): Likewise).
30526 (openat_not_cancel_3): Likewise).
30527 * sysdeps/unix/sysv/linux/not-cancel.h (openat_not_cancel): Remove
30528 macro.
30529 (openat_not_cancel_3): Likewise.
30530 (openat64_not_cancel): Likewise.
30531 (openat64_not_cancel_3): Likewise.
30532 * sysdeps/unix/sysv/linux/openat.c (__openat_nocancel): New function.
30533 * sysdeps/unix/sysv/linux/openat64.c (__openat64_nocancel): Likewise.
30534 * io/ftw.c (open_dir_stream): Replace openat{64}_not_cancel{_3} with
30535 __open{64}_nocancel.
30536 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
30537 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
30538 * sysdeps/posix/opendir.c (__opendirat): Likewise.
30539
30540 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
30541
30542 [BZ #18822]
30543 * include/argz.h (__argz_create_sep): New function prototype.
30544 (__argz_append): Likewise.
30545 (__argz_add): Likewise.
30546 (__argz_add_sep): Likewise.
30547 (__argz_delete): Likewise.
30548 (__argz_insert): Likewise.
30549 (__argz_replace): Likewise.
30550 * string/argz.h (__argz_create_sep): Removed.
30551 (__argz_append): Likewise.
30552 (__argz_add): Likewise.
30553 (__argz_add_sep): Likewise.
30554 (__argz_delete): Likewise.
30555 (__argz_insert): Likewise.
30556 (__argz_replace): Likewise.
30557
30558 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
30559
30560 * elf/elf.h (NT_GNU_PROPERTY_TYPE_0): New.
30561 (NOTE_GNU_PROPERTY_SECTION_NAME): Likewise.
30562 (GNU_PROPERTY_STACK_SIZE): Likewie.
30563 (GNU_PROPERTY_NO_COPY_ON_PROTECTED): Likewie.
30564 (GNU_PROPERTY_LOPROC): Likewise.
30565 (GNU_PROPERTY_HIPROC): Likewise.
30566 (GNU_PROPERTY_LOUSER): Likewise.
30567 (GNU_PROPERTY_HIUSER): Likewise.
30568 (GNU_PROPERTY_X86_ISA_1_USED): Likwise.
30569 (GNU_PROPERTY_X86_ISA_1_NEEDED): Likwise.
30570 (GNU_PROPERTY_X86_FEATURE_1_AND): Likwise.
30571 (GNU_PROPERTY_X86_ISA_1_486): Likwise.
30572 (GNU_PROPERTY_X86_ISA_1_586): Likwise.
30573 (GNU_PROPERTY_X86_ISA_1_686): Likwise.
30574 (GNU_PROPERTY_X86_ISA_1_SSE): Likwise.
30575 (GNU_PROPERTY_X86_ISA_1_SSE2): Likwise.
30576 (GNU_PROPERTY_X86_ISA_1_SSE3): Likwise.
30577 (GNU_PROPERTY_X86_ISA_1_SSSE3): Likwise.
30578 (GNU_PROPERTY_X86_ISA_1_SSE4_1): Likwise.
30579 (GNU_PROPERTY_X86_ISA_1_SSE4_2): Likwise.
30580 (GNU_PROPERTY_X86_ISA_1_AVX): Likwise.
30581 (GNU_PROPERTY_X86_ISA_1_AVX2): Likwise.
30582 (GNU_PROPERTY_X86_ISA_1_AVX512F): Likwise.
30583 (GNU_PROPERTY_X86_ISA_1_AVX512CD): Likwise.
30584 (GNU_PROPERTY_X86_ISA_1_AVX512ER): Likwise.
30585 (GNU_PROPERTY_X86_ISA_1_AVX512PF): Likwise.
30586 (GNU_PROPERTY_X86_ISA_1_AVX512VL): Likwise.
30587 (GNU_PROPERTY_X86_ISA_1_AVX512DQ): Likwise.
30588 (GNU_PROPERTY_X86_ISA_1_AVX512BW): Likwise.
30589 (GNU_PROPERTY_X86_FEATURE_1_IBT): Likwise.
30590 (GNU_PROPERTY_X86_FEATURE_1_SHSTK): Likwise.
30591
30592 2017-08-18 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
30593
30594 * misc/sys/cdefs.h (__HAVE_GENERIC_SELECTION): Define to 0, if
30595 in C++ mode.
30596
30597 2017-08-18 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
30598
30599 [BZ #21930]
30600 * math/math.h (isinf): Check if in C or C++ mode before using
30601 __builtin_types_compatible_p, since this is a C mode feature.
30602
30603 2017-08-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30604
30605 * sysdeps/generic/not-cancel.h (write_not_cancel): Remove macro.
30606 (__write_nocancel): New macro.
30607 * sysdeps/unix/sysv/linux/not-cancel.h (__write_nocancel):
30608 Rewrite as a function prototype.
30609 (write_not_cancel): Remove macro.
30610 * sysdeps/unix/sysv/linux/write.c (__write_nocancel): New function.
30611 * gmon/gmon.c (ERR): Replace write_not_cancel with __write_nocancel.
30612 (write_gmon): Likewise.
30613 * libio/fileops.c (_IO_new_file_write): Likewise.
30614 * login/utmp_file.c (pututline_file): Likewise.
30615 (updwtmp_file): Likewise.
30616 * stdio-common/psiginfo.c (psiginfo): Likewise.
30617 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
30618 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
30619 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
30620 Likewise.
30621 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
30622 Likewise.
30623
30624 * sysdeps/generic/not-cancel.h (read_not_cancel): Remove macro.
30625 (__read_nocancel): New macro.
30626 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
30627 __read_nocancel.
30628 * sysdeps/unix/sysv/linux/not-cancel.h (__read_nocancel): Remove
30629 macro.
30630 (__read_nocancel): New prototype.
30631 * sysdeps/unix/sysv/linux/read.c (__read_nocancel): New function.
30632 * catgets/open_catalog.c (__open_catalog): Replace read_not_cancel
30633 with __read_nocancel.
30634 * intl/loadmsgcat.c (read): Likewise.
30635 * libio/fileops.c (_IO_file_read): Likewise.
30636 * locale/loadlocale.c (_nl_load_locale): Likewise.
30637 * login/utmp_file.c (getutent_r_file): Likewise.
30638 (internal_getut_r): Likewise.
30639 (getutline_r_file): Likewise.
30640 * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
30641 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
30642 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
30643 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
30644 Likewise.
30645 * sysdeps/unix/sysv/linux/getsysstats.c (next_line): Likewise.
30646 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
30647 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
30648 Likewise.
30649 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
30650 Likewise.
30651 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
30652 Likewise.
30653 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
30654 Likewise.
30655 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
30656
30657 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
30658
30659 [BZ #21966]
30660 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h
30661 (IFUNC_SELECTOR): Don't use the AVX2 version if FMA isn't
30662 usable.
30663
30664 2017-08-17 DJ Delorie <dj@redhat.com>
30665
30666 * bug17079.c: Update to new test harness.
30667 * test-digits-dots.c: Likewise.
30668 * test-netdb.c: Likewise.
30669 * tst-field.c: Likewise.
30670 * tst-nss-getpwent.c: Likewise.
30671 * tst-nss-static.c: Likewise.
30672 * tst-nss-test1.c: Likewise.
30673 * tst-nss-test2.c: Likewise.
30674 * tst-nss-test3.c: Likewise.
30675 * tst-nss-test4.c: Likewise.
30676 * tst-nss-test5.c: Likewise.
30677
30678 2017-08-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30679
30680 * sysdeps/generic/not-cancel.h (open_not_cancel): Remove macro.
30681 (open_not_cancel_2): Likewise.
30682 (open_nocancel): New macro.
30683 (open64_nocancel): Likewise.
30684 * sysdeps/unix/sysv/linux/not-cancel.h (open_not_cancel): Remove macro.
30685 (open_not_cancel_2): Likewise.
30686 (__open_nocancel): New prototype.
30687 (__open64_nocancel): Likewise.
30688 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
30689 __open_nocancel.
30690 * sysdeps/unix/sysv/linux/open.c (__open_nocancel): New function.
30691 * sysdeps/unix/sysv/linux/open64.c (__open64_nocancel): Likewise.
30692 * catgets/open_catalog.c (__open_catalog): Replace open_not_cancel{_2}
30693 with __open_nocancel.
30694 * csu/check_fds.c (check_one_fd): Likewise.
30695 * gmon/gmon.c (write_gmon): Likewise.
30696 * iconv/gconv_cache.c (__gconv_load_cached): Likewise.
30697 * intl/loadmsgcat.c (open): Likewise.
30698 * libio/fileops.c (_IO_file_open): Likewise.
30699 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
30700 * locale/loadlocale.c (_nl_load_locale): Likewise.
30701 * login/utmp_file.c (setutent_file): Likewise.
30702 * misc/daemon.c (daemon): Likewise.
30703 * nss/nss_db/db-open.c (internal_setent): Likewise.
30704 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
30705 * sysdeps/posix/libc_fatal.c (__libc_message): Likewise.
30706 * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
30707 (__opendir): Likewise.
30708 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
30709 * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
30710 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
30711 (gethostid): Likewise.
30712 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
30713 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
30714 Likewise.
30715 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
30716 * sysdeps/unix/sysv/linux/grantpt.c (__close_all_fds): Likewise.
30717 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
30718 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
30719 Likewise.
30720 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
30721 Likewise.
30722 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
30723 Likewise.
30724 * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c (__get_clockfreq):
30725 Likewise.
30726 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
30727 Likewise.
30728 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
30729 Likewise.
30730 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
30731 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
30732
30733 2017-08-17 Wilco Dijkstra <wdijkstr@arm.com>
30734
30735 * benchtests/bench-skeleton.c (main): Add support for
30736 latency benchmarking.
30737 * benchtests/scripts/bench.py: Add support for latency benchmarking.
30738
30739 2017-08-17 H.J. Lu <hongjiu.lu@intel.com>
30740
30741 * Makeconfig (+link-pie-before-libc): Add CRT-* hook to override
30742 the startup object.
30743
30744 2017-08-17 Florian Weimer <fweimer@redhat.com>
30745
30746 * include/sys/socket.h (__opensock): Remove internal_function.
30747 * socket/opensock.c (__opensock): Likewise.
30748 * sysdeps/unix/sysv/linux/opensock.c (__opensock): Likewise.
30749
30750 2017-08-16 Joseph Myers <joseph@codesourcery.com>
30751
30752 [BZ #21944]
30753 * signal/bits/types/__sigval_t.h: New file.
30754 * signal/Makefile (headers): Add bits/types/__sigval_t.h.
30755 * signal/bits/types/sigval_t.h: Include <bits/types/__sigval_t.h>
30756 and define sigval_t using __sigval_t.
30757 * include/bits/types/__sigval_t.h: New file.
30758 * bits/types/sigevent_t.h: Include <bits/types/__sigval_t.h>
30759 instead of <bits/types/__sigval_t.h>.
30760 (struct sigevent): Use __sigval_t instead of sigval_t.
30761 * bits/types/siginfo_t.h: Include <bits/types/__sigval_t.h>
30762 instead of <bits/types/__sigval_t.h>.
30763 (siginfo_t): Use __sigval_t instead of sigval_t.
30764 * sysdeps/unix/sysv/linux/bits/types/sigevent_t.h: Include
30765 <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
30766 (struct sigevent): Use __sigval_t instead of sigval_t.
30767 * sysdeps/unix/sysv/linux/bits/types/siginfo_t.h: Include
30768 <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
30769 (siginfo_t): Use __sigval_t instead of sigval_t.
30770 * signal/signal.h [__USE_MISC]: Include <bits/types/sigval_t.h>.
30771
30772 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
30773
30774 * NEWS: Remove "[Add new features here]" for 2.27.
30775
30776 2017-08-16 Joseph Myers <joseph@codesourcery.com>
30777
30778 * sysdeps/unix/sysv/linux/sh/localplt.data: Allow abort in
30779 libc.so.
30780
30781 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
30782
30783 * NEWS: Mention x86-64 FMA optimization.
30784
30785 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
30786
30787 [BZ #21912]
30788 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
30789 Add e_expf-fma.
30790 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: New file.
30791 * sysdeps/x86_64/fpu/multiarch/e_expf.c: Likewise.
30792 * sysdeps/x86_64/fpu/multiarch/ifunc-fma.h: Likewise.
30793
30794 2017-08-16 Andreas Schwab <schwab@suse.de>
30795
30796 [BZ #16750]
30797 CVE-2009-5064
30798 * elf/ldd.bash.in: Never run file directly.
30799
30800 2017-08-15 H.J. Lu <hongjiu.lu@intel.com>
30801
30802 [BZ #21955]
30803 * sysdeps/x86_64/fpu/e_expf.S (L(SP_RANGE)): Aligned to 8 bytes.
30804 (L(SP_INF_0)): Likewise.
30805
30806 2017-08-15 Florian Weimer <fweimer@redhat.com>
30807
30808 * gmon/Makefile (tests-special): Add tst-gmon-prof only if
30809 run-built-tests.
30810
30811 2017-08-15 Florian Weimer <fweimer@redhat.com>
30812
30813 Remove BROKEN_THREAD_SIGNALS support for LinuxThreads.
30814 * sysdeps/pthread/aio_misc.c (__aio_enqueue_request): Remove
30815 BROKEN_THREAD_SIGNALS code.
30816 * sysdeps/ppthread/aio_misc.h (struct waitlist, struct
30817 request_list): Remove caller_pid member used for
30818 BROKEN_THREAD_SIGNALS.
30819 [BROKEN_THREAD_SIGNALS] (__aio_notify_only): Remove declaration.
30820 * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
30821 Remove BROKEN_THREAD_SIGNALS support.
30822 * sysdeps/pthread/aio_suspend.c (aio_suspend): Likewise.
30823 * sysdeps/pthread/lio_listio.c (lio_listio_internal): Likewise.
30824
30825 2017-08-15 Florian Weimer <fweimer@redhat.com>
30826
30827 * gmon/Makefile (tests): Add tst-gmon.
30828 (CFLAGS-tst-gmon.c, LDFLAGS-tst-gmon, CRT-tst-gmon, tst-gmon-ENV):
30829 Set.
30830 (tests-special): Add tst-gmon-prof.out.
30831 (tst-gmon.out): Depend on clean-tst-gmon-data.
30832 (clean-tst-gmon-data, tst-gmon-gprof.out): New targets.
30833 * gmon/tst-gmon.c, gmon/tst-gmon-gprof.sh: New files.
30834 * Makeconfig (+link-before-libc): Add CRT-* hook to override the
30835 startup object.
30836 * aclocal.m4 (GPROF): Set and substitute.
30837 * config.amke.in (GPROF): Set.
30838 * configure: Regenerate.
30839
30840 2017-08-15 Gustavo Romero <gromero@linux.vnet.ibm.com>
30841
30842 * elf/elf.h A (NT_PPC_TAR): New macro.
30843 (NT_PPC_PPR): Likewise.
30844 (NT_PPC_DSCR): Likewise.
30845 (NT_PPC_EBB): Likewise.
30846 (NT_PPC_PMU): Likewise.
30847 (NT_PPC_TM_CGPR): Likewise.
30848 (NT_PPC_TM_CFPR): Likewise.
30849 (NT_PPC_TM_CVMX): Likewise.
30850 (NT_PPC_TM_CVSX): Likewise.
30851 (NT_PPC_TM_SPR): Likewise.
30852 (NT_PPC_TM_CTAR): Likewise.
30853 (NT_PPC_TM_CPPR): Likewise.
30854 (NT_PPC_TM_CDSCR): Likewise.
30855
30856 2017-08-15 Florian Weimer <fweimer@redhat.com>
30857
30858 * sysdeps/i386/machine-gmon.h (mcount_internal): Declare with
30859 regparm (2) instead of internal_function.
30860 (_MCOUNT_DECL): Adjust.
30861
30862 2017-08-15 Stefan Liebler <stli@linux.vnet.ibm.com>
30863
30864 * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add z14.
30865 * sysdeps/s390/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increased.
30866
30867 2017-08-14 Joseph Myers <joseph@codesourcery.com>
30868
30869 * conform/data/sys/wait.h-data (si_value): Do not expect for
30870 XPG42.
30871
30872 2017-08-14 Florian Weimer <fweimer@redhat.com>
30873
30874 [BZ #21962]
30875 NSS: Create stubs for accidentally exported lookup functions.
30876 * grp/initgroups.c (__nss_group_lookup, __nss_lookup_function):
30877 Remove declaration.
30878 * inet/ether_hton.c (__nss_ethers_lookup): Likewise.
30879 (ether_hostton): Call __nss_ethers_lookup2 instead.
30880 * inet/ether_ntoh.c (__nss_ethers_lookup): Remove declaration.
30881 (ether_ntohost): Call __nss_ethers_lookup2 instead.
30882 * inet/getnetgrent_r.c (__nss_netgroup_lookup): Remove declaration.
30883 (setup): Call __nss_netgroup_lookup2 instead.
30884 * nss/Makefile (routines): Add compat-lookup.
30885 * nss/Versions (GLIBC_2.27): Add symbol version.
30886 * nss/XXX-lookup (DB_LOOKUP_FCT): Remove declaration. Now provided by <nsswitch.h>.
30887 (DB_COMPAT_FCT): Remove.
30888 * nss/compat-lookup.c: New file.
30889 * nss/nsswitch.h: Generate __nss_*_lookup2 function prototypes
30890 from databases.def.
30891 * nss/service-lookup.c (NO_COMPAT): Remove definition.
30892 * sunrpc/netname.c (__nss_publickey_lookup): Remove declaration.
30893 (netname2user): Call __nss_publickey_lookup2 instead.
30894 * sunrpc/publickey.c (__nss_publickey_lookup): Remove declaration.
30895 (getpublickey, getsecretkey): Call __nss_publickey_lookup2
30896 instead.
30897
30898 2017-08-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30899 Sergei Trofimovich <slyfox@inbox.ru>
30900
30901 [BZ #21908]
30902 * sysdeps/unix/sysv/linux/m68k/mmap_internal.h (MMAP2_PAGE_SHIFT):
30903 Rename to MMAP2_PAGE_UNIT.
30904 * sysdeps/unix/sysv/linux/mmap.c: Include mmap_internal iff
30905 __OFF_T_MATCHES_OFF64_T is not defined.
30906 * sysdeps/unix/sysv/linux/mmap_internal.h (page_unit): Declare as
30907 uint64_t.
30908 (MMAP2_PAGE_UNIT) [MMAP2_PAGE_UNIT == -1]: Redefine to page_unit.
30909 (page_unit) [MMAP2_PAGE_UNIT != -1]: Remove definition.
30910
30911 2017-08-14 Florian Weimer <fweimer@redhat.com>
30912
30913 i386: Do not set internal_function.
30914 * config.h.in (USE_REGPARMS, internal_function): Remove.
30915 * sysdeps/i386/configure.ac (USE_REGPARMS): Likewise.
30916 * sysdeps/i386/configure (USE_REGPARMS): Likewise.
30917
30918 2017-08-14 Florian Weimer <fweimer@redhat.com>
30919
30920 * elf/dl-init.c (_dl_init): Remove internal_function.
30921 * sysdeps/generic/ldsodefs.h (_dl_init): Likewise.
30922 * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to _dl_init.
30923
30924 2017-08-14 Florian Weimer <fweimer@redhat.com>
30925
30926 * elf/rtld.c (_dl_start): Remove internal_function.
30927 * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to
30928 _dl_start.
30929
30930 2017-08-14 Florian Weimer <fweimer@redhat.com>
30931
30932 * elf/dl-fini.c (_dl_fini): Remove internal_function
30933 * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
30934
30935 2017-08-14 H.J. Lu <hongjiu.lu@intel.com>
30936
30937 * sysdeps/x86/cpu-features.h (bit_cpu_IBT): New.
30938 (bit_cpu_SHSTK): Likewise.
30939 (index_cpu_IBT): Likewise.
30940 (index_cpu_SHSTK): Likewise.
30941 (reg_IBT): Likewise.
30942 (reg_SHSTK): Likewise.
30943 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
30944 Handle index_cpu_IBT and index_cpu_SHSTK.
30945
30946 2017-08-14 Mike FABIAN <mfabian@redhat.com>
30947
30948 [BZ #19982]
30949 * po/fr.po: Fix spelling mistake.
30950
30951 2017-08-13 Florian Weimer <fweimer@redhat.com>
30952
30953 * elf/dl-addr.c (_dl_addr): Remove internal_function.
30954 * elf/dl-error-skeleton.c (_dl_signal_error, _dl_signal_cerror)
30955 (_dl_catch_error, _dl_receive_error): Likewise.
30956 * elf/dl-open.c (_dl_find_dso_for_object): Likewise.
30957 * elf/dl-tls.c (_dl_allocate_tls_init, _dl_allocate_tls)
30958 (_dl_deallocate_tls): Likewise.
30959 * include/dlfcn.h (_dl_addr): Likewise.
30960 * sysdeps/generic/ldsodefs.h (_dl_signal_error, _dl_signal_cerror)
30961 (_dl_catch_error, _dl_receive_error, _dl_find_dso_for_object)
30962 (_dl_allocate_tls_init, _dl_allocate_tls, _dl_deallocate_tls):
30963 Likewise.
30964
30965 2017-08-13 Florian Weimer <fweimer@redhat.com>
30966
30967 * include/stdlib.h: (__strtof_nan, __strtod_nan, __strtold_nan)
30968 (__wcstof_nan, __wcstod_nan, __wcstold_nan): Remove
30969 internal_function.
30970 * stdlib/sttod_nan_main.c (STRTOD_NAN): Likewise.
30971
30972 2017-08-13 Florian Weimer <fweimer@redhat.com>
30973
30974 * elf/dl-support.c (_dl_make_stack_executable_hook): Remove
30975 internal_function.
30976 * nptl/allocatestack.c (__make_stacks_executable): Likewise.
30977 * nptl/pthreadP.h (__make_stacks_executable): Likewise.
30978 * sysdeps/generic/ldsodefs.h (_rtld_global): Remove
30979 internal_function from _dl_make_stack_executable_hook member.
30980 (_dl_make_stack_executable): Remove internal_function.
30981 * sysdeps/mach/hurd/dl-execstack.c (_dl_make_stack_executable):
30982 Likewise.
30983 * sysdeps/unix/sysv/linux/dl-execstack.c
30984 (_dl_make_stack_executable): Likewise.
30985
30986 2017-08-13 Florian Weimer <fweimer@redhat.com>
30987
30988 * sysdeps/unix/sysv/linux/netlinkaccess.h
30989 (__netlink_assert_response): Remove internal_function.
30990 * sysdeps/unix/sysv/linux/netlink_assert_response.c
30991 (__netlink_assert_response): Likewise.
30992
30993 2017-08-13 Florian Weimer <fweimer@redhat.com>
30994
30995 * include/rpc/pmap_clnt.h (__libc_rpc_getport): Remove
30996 internal_function.
30997 * sunrpoc/pm_getport.c (__libc_rpc_getport): Likewise.
30998
30999 2017-08-13 Florian Weimer <fweimer@redhat.com>
31000
31001 * grp/grp-merge.h (__copy_grp, __merge_grp): Remove
31002 internal_function.
31003 * grp/grp-merge.c (__copy_grp, __merge_grp): Likewise.
31004 * inet/netgroup.h (__internal_setnetgrent)
31005 (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
31006 * inet/getnetgrent_r.c (__internal_setnetgrent)
31007 (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
31008 * nss/XXX-lookup.c (DB_LOOKUP_FCT, DB_COMPAT_FCT): Likewise.
31009 * nss/getXXbyYY_r.c (DB_LOOKUP_FCT): Likewise.
31010 * nss/getXXent_r.c (DB_LOOKUP_FCT): Likewise.
31011 * nss/nsswitch.h (db_lookup_function): Likewise.
31012
31013 2017-08-13 Florian Weimer <fweimer@redhat.com>
31014
31015 * debug/fortify_fail.c (__fortify_fail, __fortify_fail_abort):
31016 Remove internal_function.
31017 * include/stdio.h (__fortify_fail, __fortify_fail_abort): Likewise.
31018 * sysdeps/mach/hurd/i386/____longjmp_chk.S (CALL_FAIL): Pass
31019 message argument on the stack.
31020 * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S (CALL_FAIL):
31021 Likeweise.
31022
31023 2017-08-12 Mike FABIAN <mfabian@redhat.com>
31024
31025 Adapt test case data to the changes in the thousands
31026 separators.
31027
31028 [BZ #20756]
31029 * localedata/tst-langinfo.sh: Adapt test case data.
31030 * stdlib/tst-strfmon_l.c: Likewise.
31031 * stdlib/tst-strtod4.c: Likewise.
31032 * stdlib/tst-strtod5i.c: Likewise.
31033
31034 2017-08-11 Florian Weimer <fweimer@redhat.com>
31035
31036 [BZ #21242]
31037 * assert/assert.h [__GNUC__ && !__STRICT_ANSI__] (assert):
31038 Suppress pedantic warning resulting from statement expression.
31039 (__ASSERT_FUNCTION): Add missing __extension__.
31040
31041 2017-08-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
31042
31043 * benchtests/bench-memmove-large.c: Print output in JSON
31044 format.
31045 * benchtests/bench-memmove.c: Likewise.
31046
31047 * benchtests/bench-memccpy.c (do_one_test): Remove checks.
31048 * benchtests/bench-memchr.c (do_one_test): Likewise.
31049 * benchtests/bench-memcpy-large.c (do_one_test): Likewise.
31050 * benchtests/bench-memcpy.c (do_one_test): Likewise.
31051 * benchtests/bench-memmove-large.c (do_one_test): Likewise.
31052 * benchtests/bench-memmove.c (do_one_test): Likewise.
31053 * benchtests/bench-memset-large.c (do_one_test): Likewise.
31054 * benchtests/bench-memset.c (do_one_test): Likewise.
31055 * benchtests/bench-string.h (test_init): Remove memsets.
31056
31057 2017-08-10 Rical Jasan <ricaljasan@pacific.net>
31058
31059 * manual/lang.texi
31060 (Computing the Width of an Integer Data Type): Rename section to
31061 "Width of an Integer Type". Remove inaccurate statement regarding
31062 lack of C language facilities for determining width of integer
31063 types, and reorder content to improve flow and context of
31064 discussion.
31065
31066 2017-08-10 Rical Jasan <ricaljasan@pacific.net>
31067
31068 * lang.texi (va_copy): Change standard from ISO to C99.
31069 (__va_copy): Add standard and header annotation.
31070 Update description for clarity of origins and current use.
31071
31072 2017-08-10 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
31073
31074 [BZ #21941]
31075 * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrtf128): Since
31076 xssqrtqp requires operands to be in Vector Registers
31077 (Altivec/VMX), replace the register constraint 'wq' with 'v'.
31078 * sysdeps/powerpc/powerpc64le/power9/fpu/e_sqrtf128.c
31079 (__ieee754_sqrtf128): Likewise.
31080
31081 2017-08-10 Wilco Dijkstra <wdijkstr@arm.com>
31082
31083 * sysdeps/aarch64/memcmp.S (memcmp):
31084 Rewrite of optimized memcmp.
31085
31086 2017-08-10 Florian Weimer <fweimer@redhat.com>
31087
31088 Introduce ld.so exceptions.
31089 * sysdeps/generic/ldsodefs.h (struct dl_exception): Define.
31090 (_dl_exception_create, _dl_exception_create_format)
31091 (_dl_exception_free, _dl_signal_exception, _dl_signal_cexception)
31092 (_dl_catch_exception): Declare.
31093 (_dl_catch_error): Update comment.
31094 * elf/dl-error-skeleton.c (struct catch): Replace objname,
31095 errstring, malloced members with exception member.
31096 (_dl_out_of_memory): Remove.
31097 (fatal_error): New function, extracted from _dl_signal_error.
31098 (_dl_signal_exception, _dl_signal_cexception): New functions.
31099 (_dl_signal_error): Call _dl_exception_create to allocate an
31100 exception object.
31101 (_dl_catch_exception): New function, based on _dl_catch_error.
31102 (_dl_catch_error): Implement using _dl_catch_exception.
31103 * elf/dl-exception.c: New file.
31104 * elf/Makefile (dl-routines): Add dl-exception.
31105 (elide-routines.os): Likewise.
31106 * elf/Version (ld/GLIBC_PRIVATE): Add _dl_exception_create,
31107 _dl_exception_create_format, _dl_exception_free.
31108 * elf/dl-deps.c (_dl_map_object_deps): Use _dl_catch_exception and
31109 _dl_signal_exception.
31110 * elf/dl-lookup.c (make_string): Remove.
31111 (_dl_lookup_symbol_x): Use _dl_exception_create_format,
31112 _dl_signal_cexception, _dl_exception_free.
31113 * elf/dl-open.c (_dl_open): Use _dl_catch_exception and
31114 _dl_signal_exception.
31115 * elf/dl-sym.c (do_sym): Likewise.
31116 * elf/dl-version.c (make_string): Remove.
31117 (match_symbol): Use _dl_exception_create_format,
31118 _dl_signal_cexception, _dl_exception_free.
31119 (_dl_check_map_versions): Likewise.
31120 * sysdeps/generic/localplt.data (ld.so): Add _dl_signal_exception,
31121 _dl_catch_exception.
31122 * sysdeps/unix/sysv/linux/aarch64/localplt.data (ld.so): Likewise.
31123 * sysdeps/unix/sysv/linux/alpha/localplt.data (ld.so): Likewise.
31124 * sysdeps/unix/sysv/linux/arm/localplt.data (ld.so): Likewise.
31125 * sysdeps/unix/sysv/linux/hppa/localplt.data (ld.so): Likewise.
31126 * sysdeps/unix/sysv/linux/i386/localplt.data (ld.so): Likewise.
31127 * sysdeps/unix/sysv/linux/ia64/localplt.data (ld.so): Likewise.
31128 * sysdeps/unix/sysv/linux/m68k/localplt.data (ld.so): Likewise.
31129 * sysdeps/unix/sysv/linux/microblaze/localplt.data (ld.so):
31130 Likewise.
31131 * sysdeps/unix/sysv/linux/nios2/localplt.data (ld.so): Likewise.
31132 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data
31133 (ld.so): Likewise.
31134 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data
31135 (ld.so): Likewise.
31136 * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data (ld.so):
31137 Likewise.
31138 * sysdeps/unix/sysv/linux/s390/localplt.data (ld.so): Likewise.
31139 * sysdeps/unix/sysv/linux/sh/localplt.data (ld.so): Likewise.
31140 * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data (ld.so):
31141 Likewise.
31142 * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data (ld.so):
31143 Likewise.
31144 * sysdeps/x86_64/localplt.data (ld.so): Likewise.
31145
31146 2017-08-10 Florian Weimer <fweimer@redhat.com>
31147
31148 * inet/net-internal.h (__inet6_scopeid_pton): Remove
31149 attribute_hidden, internal_function.
31150 * inet/inet6_scopeid_pton.c (__inet6_scopeid_pton): Remove
31151 internal_function.
31152
31153 2017-08-10 Florian Weimer <fweimer@redhat.com>
31154
31155 * malloc/malloc.c (get_max_fast): Reimplement as an inline
31156 function which calls __builtin_unreachable.
31157
31158 2017-08-10 Mike FABIAN <mfabian@redhat.com>
31159
31160 * stdlib/tst-strfmon_l.c: Fix test cases to agree with the changes in
31161 Indian monetary formatting
31162 * stdlib/Makefile: Adapt list of locales needed for the tst-strfmon_l.c
31163 test cases.
31164
31165 2017-08-09 Dmitry V. Levin <ldv@altlinux.org>
31166
31167 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (enum __ptrace_request):
31168 Fix typo in comment.
31169
31170 [BZ #21928]
31171 * sysdeps/unix/sysv/linux/sys/ptrace.h (enum __ptrace_flags,
31172 PTRACE_SEIZE_DEVEL): Remove.
31173 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Likewise.
31174 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
31175 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
31176 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
31177 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
31178
31179 2017-08-09 Joseph Myers <joseph@codesourcery.com>
31180
31181 * posix/bits/types.h (__qaddr_t): Remove.
31182
31183 [BZ #21457]
31184 * sysdeps/arm/sys/ucontext.h (__ctx): Move undefine further down.
31185 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
31186 __glibc_reserved1.
31187 * sysdeps/generic/sys/ucontext.h (__ctx): New macro.
31188 (ucontext_t): Use __ctx with uc_flags.
31189 * sysdeps/i386/sys/ucontext.h (__ctx): Move undefine further down.
31190 (__ctxt): Likewise.
31191 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
31192 __glibc_reserved1.
31193 * sysdeps/m68k/sys/ucontext.h (__ctx): Move undefine further down.
31194 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
31195 __glibc_reserved1.
31196 * sysdeps/mips/sys/ucontext.h (__ctx): Move undefine further down.
31197 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
31198 __glibc_reserved1.
31199 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (__ctx): New
31200 macro.
31201 (ucontext_t): Use __ctx with uc_flags.
31202 * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h (__ctx): New macro.
31203 (ucontext_t): Use __ctx with uc_flags.
31204 * sysdeps/unix/sysv/linux/arm/sys/ucontext.h (__ctx): New macro.
31205 (ucontext_t): Use __ctx with uc_flags and uc_regspace.
31206 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h (__ctx): New macro.
31207 (ucontext_t): Use __ctx with uc_flags.
31208 * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h (__ctx): Move
31209 undefine further down.
31210 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
31211 __glibc_reserved1.
31212 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h (__ctx): Move
31213 undefine further down.
31214 (ucontext_t): Use __ctx with uc_flags.
31215 * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h (__ctx): Move
31216 undefine further down.
31217 (ucontext_t): Use __ctx with uc_flags.
31218 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (ucontext_t): Use
31219 __ctx with uc_flags, uc_regs_ptr, uc_regs and uc_reg_space.
31220 Rename uc_pad to __glibc_reserved1.
31221 * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__ctx): Move
31222 undefine further down.
31223 (ucontext_t): Use __ctx with uc_flags.
31224 * sysdeps/unix/sysv/linux/sh/sys/ucontext.h (__ctx): Move undefine
31225 further down.
31226 (ucontext_t): Use __ctx with uc_flags.
31227 * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (ucontext_t): Use
31228 __ctx with uc_flags.
31229 * sysdeps/unix/sysv/linux/tile/sys/ucontext.h (__ctx): New macro.
31230 (ucontext_t): Use __ctx with uc_flags.
31231 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h (ucontext_t): Use
31232 __ctx with uc_flags.
31233
31234 2017-08-09 Florian Weimer <fweimer@redhat.com>
31235
31236 [BZ #21932]
31237 * nss/getXXbyYY_r.c (REENTRANT_NAME): Call __resolv_context_put
31238 before early return.
31239
31240 2017-08-09 Andreas Schwab <schwab@suse.de>
31241
31242 [BZ #21041]
31243 * sysdeps/unix/sysv/linux/s390/pt-longjmp.c: Update reference to
31244 renamed alias.
31245
31246 [BZ #21041]
31247 * nptl/Makefile (tests) [$(build-shared) = yes]: Add
31248 tst-compat-forwarder.
31249 (modules-names): Add tst-compat-forwarder-mod.
31250 ($(objpfx)tst-compat-forwarder): Depend on
31251 $(objpfx)tst-compat-forwarder-mod.so.
31252 * nptl/tst-compat-forwarder.c: New file.
31253 * nptl/tst-compat-forwarder-mod.c: New file.
31254
31255 2017-08-09 Siddhesh Poyarekar <siddhesh@sourceware.org>
31256
31257 * sysdeps/aarch64/multiarch/memcpy_falkor.S: Fix code style in
31258 comments.
31259
31260 * manual/tunables.texi (Tunable glibc.tune.cpu): Add falkor.
31261 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
31262 memcpy_falkor.
31263 * sysdeps/aarch64/multiarch/ifunc-impl-list.c (MAX_IFUNC):
31264 Bump.
31265 (__libc_ifunc_impl_list): Add __memcpy_falkor.
31266 * sysdeps/aarch64/multiarch/memcpy.c: Likewise.
31267 * sysdeps/aarch64/multiarch/memcpy_falkor.S: New file.
31268 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
31269 Add falkor.
31270 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_FALKOR):
31271 New macro.
31272
31273 2017-08-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
31274
31275 [BZ #759]
31276 * manual/setjmp.texi (getcontex): Document uc_stack value
31277 compatibility differences.
31278
31279 2017-08-08 Joseph Myers <joseph@codesourcery.com>
31280
31281 * malloc/mcheck.c (old_free_hook): Use void * instead of __ptr_t.
31282 (old_malloc_hook): Likewise.
31283 (old_memalign_hook): Likewise.
31284 (old_realloc_hook): Likewise.
31285 (struct hdr): Likewise.
31286 (flood): Likewise.
31287 (freehook): Likewise.
31288 (mallochook): Likewise.
31289 (memalignhook): Likewise.
31290 (reallochook): Likewise.
31291 (mprobe): Likewise.
31292 * malloc/mtrace.c (mallwatch): Likewise.
31293 (tr_old_free_hook): Likewise.
31294 (tr_old_malloc_hook): Likewise.
31295 (tr_old_realloc_hook): Likewise.
31296 (tr_old_memalign_hook): Likewise.
31297 (tr_where): Likewise.
31298 (lock_and_info): Likewise.
31299 (tr_freehook): Likewise.
31300 (tr_mallochook): Likewise.
31301 (tr_reallochook): Likewise.
31302 (tr_memalignhook): Likewise.
31303 * misc/err.h [!__GNUC_VA_LIST] (__gnuc_va_list): Likewise.
31304 * misc/mmap.c (__mmap): Likewise.
31305 * misc/mmap64.c (__mmap64): Likewise.
31306 * misc/mprotect.c (__mprotect): Likewise.
31307 * misc/msync.c (msync): Likewise.
31308 * misc/munmap.c (__munmap): Likewise.
31309 * posix/posix_madvise.c (posix_madvise): Likewise.
31310 * socket/send.c (__send): Likewise.
31311 * socket/sendto.c (__sendto): Likewise.
31312 * socket/setsockopt.c (__setsockopt): Likewise.
31313 * string/memcmp.c (__ptr_t): Remove macro.
31314 (MEMCMP): Use void * instead of ptr_t.
31315 * string/memrchr.c (__ptr_t): Remove macro.
31316 (__memrchr): Use void * instead of ptr_t.
31317 * sysdeps/mach/hurd/dl-sysdep.c (__mmap): Likewise.
31318 * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
31319 * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
31320 * sysdeps/mach/mprotect.c (__mprotect): Likewise.
31321 * sysdeps/mach/msync.c (msync): Likewise.
31322 * sysdeps/mach/munmap.c (__munmap): Likewise.
31323 * sysdeps/mips/bits/setjmp.h (struct __jmp_buf_internal_tag):
31324 Likewise.
31325 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
31326 * sysdeps/powerpc/powerpc32/memset.S (memset): Likewise.
31327 * sysdeps/powerpc/powerpc32/power4/memcpy.S (memcpy): Likewise.
31328 * sysdeps/powerpc/powerpc32/power4/memset.S (memset): Likewise.
31329 * sysdeps/powerpc/powerpc32/power6/memcpy.S (memcpy): Likewise.
31330 * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
31331 * sysdeps/powerpc/powerpc32/power7/memcpy.S (memcpy): Likewise.
31332 * sysdeps/powerpc/powerpc32/power7/mempcpy.S (__mempcpy):
31333 Likewise.
31334 * sysdeps/powerpc/powerpc32/power7/memset.S (memset): Likewise.
31335 * sysdeps/powerpc/powerpc64/memcpy.S (memcpy): Likewise.
31336 * sysdeps/powerpc/powerpc64/memset.S (memset): Likewise.
31337 * sysdeps/powerpc/powerpc64/power4/memcpy.S (memcpy): Likewise.
31338 * sysdeps/powerpc/powerpc64/power4/memset.S (memset): Likewise.
31339 * sysdeps/powerpc/powerpc64/power6/memcpy.S (memcpy): Likewise.
31340 * sysdeps/powerpc/powerpc64/power6/memset.S (memset): Likewise.
31341 * sysdeps/powerpc/powerpc64/power7/memcpy.S (memcpy): Likewise.
31342 * sysdeps/powerpc/powerpc64/power7/mempcpy.S (__mempcpy):
31343 Likewise.
31344 * sysdeps/powerpc/powerpc64/power7/memset.S (memset): Likewise.
31345 * sysdeps/powerpc/powerpc64/power8/memset.S (memset): Likewise.
31346 * sysdeps/tile/memcmp.c (__ptr_t): Remove macro.
31347 (MEMCMP): Use void * instead of ptr_t.
31348 * sysdeps/unix/sysv/linux/alpha/oldglob.c (old_glob_t): Likewise.
31349 * sysdeps/unix/sysv/linux/mmap.c (__mmap): Likewise.
31350
31351 2017-08-08 Florian Weimer <fweimer@redhat.com>
31352
31353 * sysdeps/posix/getaddrinfo.c (gaih_inet): Remove unreachable
31354 return statement.
31355
31356 2017-08-08 H.J. Lu <hongjiu.lu@intel.com>
31357
31358 [BZ #21913]
31359 * csu/libc-tls.c: Include <startup.h> first.
31360 (__libc_setup_tls): Call _startup_fatal instead of __libc_fatal.
31361 * elf/dl-tunables.c: Include <startup.h> first.
31362 * include/libc-symbols.h (BUILD_PIE_DEFAULT): New.
31363 * sysdeps/generic/startup.h: New file.
31364 * sysdeps/unix/sysv/linux/i386/startup.h: Likewise.
31365 * sysdeps/unix/sysv/linux/i386/brk.c [BUILD_PIE_DEFAULT != 0]
31366 (I386_USE_SYSENTER): New. Defined to 0.
31367
31368 2017-08-08 Andreas Schwab <schwab@suse.de>
31369
31370 [BZ #21041]
31371 * nptl/pt-longjmp.c (longjmp, siglongjmp): Don't use IFUNC resolver.
31372 * nptl/pt-system.c (system): Likewise.
31373
31374 2017-08-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
31375
31376 [BZ #21780]
31377 * sysdeps/posix/preadv2.c (preadv2): Use ENOTSUP instead of
31378 EOPNOTSUPP.
31379 * sysdeps/posix/preadv64v2.c (preadv64v2): Likewise.
31380 * sysdeps/posix/pwritev2.c (pwritev2): Likewise.
31381 * sysdeps/posix/pwritev64v2.c (pwritev64v2): Likewise.
31382 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Likewise.
31383 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
31384 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
31385 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likewise.
31386
31387 2017-08-07 Joseph Myers <joseph@codesourcery.com>
31388
31389 [BZ #21899]
31390 * bits/sigaction.h (struct sigaction): Define sa_handler and
31391 sa_sigaction using union also for [__USE_XOPEN_EXTENDED].
31392 (SA_ONSTACK): Change [__USE_UNIX98] condition to
31393 [__USE_XOPEN_EXTENDED].
31394 (SA_RESTART): Likewise.
31395 (SA_NODEFER): Likewise.
31396 (SA_RESETHAND): Likewise.
31397 * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h
31398 (struct sigaction): Define sa_handler and sa_sigaction using union
31399 also for [__USE_XOPEN_EXTENDED].
31400 (SA_ONSTACK): Change [__USE_UNIX98] condition to
31401 [__USE_XOPEN_EXTENDED].
31402 (SA_RESTART): Likewise.
31403 (SA_NODEFER): Likewise.
31404 (SA_RESETHAND): Likewise.
31405 * sysdeps/unix/sysv/linux/bits/sigaction.h
31406 (struct sigaction): Define sa_handler and sa_sigaction using union
31407 also for [__USE_XOPEN_EXTENDED].
31408 (SA_ONSTACK): Change [__USE_UNIX98] condition to
31409 [__USE_XOPEN_EXTENDED].
31410 (SA_RESTART): Likewise.
31411 (SA_NODEFER): Likewise.
31412 (SA_RESETHAND): Likewise.
31413 * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h
31414 (struct sigaction): Define sa_handler and sa_sigaction using union
31415 also for [__USE_XOPEN_EXTENDED].
31416 (SA_ONSTACK): Change [__USE_UNIX98] condition to
31417 [__USE_XOPEN_EXTENDED].
31418 (SA_RESTART): Likewise.
31419 (SA_NODEFER): Likewise.
31420 (SA_RESETHAND): Likewise.
31421 * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h
31422 (struct sigaction): Define sa_handler and sa_sigaction using union
31423 also for [__USE_XOPEN_EXTENDED].
31424 (SA_ONSTACK): Change [__USE_UNIX98] condition to
31425 [__USE_XOPEN_EXTENDED].
31426 (SA_RESTART): Likewise.
31427 (SA_NODEFER): Likewise.
31428 (SA_RESETHAND): Likewise.
31429 * sysdeps/unix/sysv/linux/mips/bits/sigaction.h
31430 (struct sigaction): Define sa_handler and sa_sigaction using union
31431 also for [__USE_XOPEN_EXTENDED].
31432 (SA_ONSTACK): Change [__USE_UNIX98] condition to
31433 [__USE_XOPEN_EXTENDED].
31434 (SA_RESTART): Likewise.
31435 (SA_NODEFER): Likewise.
31436 (SA_RESETHAND): Likewise.
31437 * sysdeps/unix/sysv/linux/s390/bits/sigaction.h
31438 (struct sigaction): Define sa_handler and sa_sigaction using union
31439 also for [__USE_XOPEN_EXTENDED].
31440 (SA_ONSTACK): Change [__USE_UNIX98] condition to
31441 [__USE_XOPEN_EXTENDED].
31442 (SA_RESTART): Likewise.
31443 (SA_NODEFER): Likewise.
31444 (SA_RESETHAND): Likewise.
31445 * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h
31446 (struct sigaction): Define sa_handler and sa_sigaction using union
31447 also for [__USE_XOPEN_EXTENDED].
31448 (SA_ONSTACK): Change [__USE_UNIX98] condition to
31449 [__USE_XOPEN_EXTENDED].
31450 (SA_RESTART): Likewise.
31451 (SA_NODEFER): Likewise. Define directly rather than as alias.
31452 (SA_RESETHAND): Likewise.
31453 (SA_INTERRUPT): Define only for [__USE_MISC].
31454 (SA_NOMASK): Define as alias of SA_NODEFER, only for [__USE_MISC].
31455 (SA_ONESHOT): Define as alias of SA_RESETHAND, only for
31456 [__USE_MISC].
31457 (SA_STACK): Define only for [__USE_MISC].
31458 * sysdeps/unix/sysv/linux/tile/bits/sigaction.h
31459 (struct sigaction): Define sa_handler and sa_sigaction using union
31460 also for [__USE_XOPEN_EXTENDED].
31461 (SA_ONSTACK): Change [__USE_UNIX98] condition to
31462 [__USE_XOPEN_EXTENDED].
31463 (SA_RESTART): Likewise.
31464 (SA_NODEFER): Likewise.
31465 (SA_RESETHAND): Likewise.
31466 (SA_NOPTRACE): Define only for [__USE_MISC].
31467
31468 * catgets/catgets.c (catgets): Use uintN_t instead of u_intN_t.
31469 * catgets/catgetsinfo.h (struct catalog_obj): Likewise.
31470 (struct catalog_info): Likewise.
31471 * inet/htontest.c (lo): Likewise.
31472 (foo): Likewise.
31473 * inet/inet_lnaof.c (inet_lnaof): Likewise.
31474 * inet/inet_net.c (inet_network): Likewise.
31475 * inet/inet_netof.c (inet_netof): Likewise.
31476 * inet/rcmd.c (__ivaliduser): Likewise.
31477 (iruserok): Likewise.
31478 * locale/loadlocale.c (_nl_intern_locale_data): Likewise.
31479 * locale/programs/locale-spec.c (locale_special): Likewise.
31480 * nis/nis_findserv.c (struct findserv_req): Likewise.
31481 (__nis_findfastest_with_timeout): Likewise.
31482 * nss/test-netdb.c (test_network): Likewise.
31483 * resolv/inet_neta.c (inet_neta): Likewise.
31484 * resolv/ns_date.c (ns_datetosecs): Likewise.
31485 (SECS_PER_DAY): Likewise.
31486 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r):
31487 Likewise.
31488 * resolv/res_comp.c (__putlong): Likewise.
31489 (__putshort): Likewise.
31490 (_getlong): Likewise.
31491 (_getshort): Likewise.
31492 * resolv/res_debug.c (p_time): Likewise.
31493 (precsize_ntoa): Likewise.
31494 (precsize_aton): Likewise.
31495 (latlon2ul): Likewise.
31496 (loc_aton): Likewise.
31497 (loc_ntoa): Likewise.
31498 * resolv/res_hconf.c (struct netaddr): Likewise.
31499 (_res_hconf_reorder_addrs): Likewise.
31500 * sunrpc/clnt_tcp.c (clnttcp_call): Likewise.
31501 (clnttcp_control): Likewise.
31502 * sunrpc/clnt_udp.c (clntudp_call): Likewise.
31503 (clntudp_control): Likewise.
31504 * sunrpc/clnt_unix.c (clntunix_call): Likewise.
31505 (clntunix_control): Likewise.
31506 * sunrpc/pmap_rmt.c (clnt_broadcast): Likewise.
31507 * sunrpc/rpc/auth.h (union des_block): Likewise.
31508 * sunrpc/tst-udp-nonblocking.c (do_test): Likewise.
31509 * sunrpc/xdr_rec.c (struct rec_strm): Likewise.
31510 (xdrrec_create): Likewise.
31511 (xdrrec_endofrecord): Likewise.
31512 (flush_out): Likewise.
31513 * sunrpc/xdr_stdio.c (xdrstdio_getlong): Likewise.
31514 (xdrstdio_putlong): Likewise.
31515 * sysdeps/unix/sysv/linux/errqueue.h (struct sock_extended_err):
31516 Likewise.
31517
31518 * misc/sys/cdefs.h (__long_double_t): Remove.
31519 * stdio-common/printf_fp.c (__printf_fp_l): Use long double
31520 instead of __long_double_t,
31521 * stdlib/strfmon_l.c (__vstrfmon_l): Likewise.
31522
31523 2017-08-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
31524
31525 * benchtests/scripts/compare_strings.py: Avoid display error when
31526 running on a text terminal.
31527
31528 * benchtests/scripts/compare_strings.py (main): Add an
31529 optional -base option.
31530 (process_results): New argument base_func.
31531
31532 * benchtests/bench-memcpy.c (test_main): Use TEST_NAME instead of
31533 hardcoding memcpy.
31534 * benchtests/bench-memcpy-large.c (test_name): Likewise.
31535 * benchtests/bench-memcpy-random.c (test_name): Likewise.
31536
31537 2017-08-07 Andreas Schwab <schwab@suse.de>
31538
31539 * elf/Makefile ($(objpfx)tst-pathopt.out): Redirect output to target.
31540 * grp/Makefile ($(objpfx)tst_fgetgrent.out): Likewise.
31541 * intl/Makefile ($(objpfx)tst-gettext.out)
31542 ($(objpfx)tst-translit.out, $(objpfx)tst-gettext2.out)
31543 ($(objpfx)tst-gettext4.out, $(objpfx)tst-gettext6.out): Likewise.
31544 * libio/Makefile ($(objpfx)test-freopen.out): Likewise.
31545 * malloc/Makefile ($(objpfx)tst-mtrace.out): Likewise.
31546 * nptl/Makefile ($(objpfx)tst-tls6.out): Likewise.
31547 * posix/Makefile ($(objpfx)globtest.out)
31548 ($(objpfx)wordexp-tst.out, $(objpfx)tst-getconf.out): Likewise.
31549 * stdio-common/Makefile ($(objpfx)tst-unbputc.out)
31550 ($(objpfx)tst-printf.out): Likewise.
31551 * stdlib/Makefile ($(objpfx)tst-fmtmsg.out)
31552 ($(objpfx)tst-setcontext3.out): Likewise.
31553
31554 2017-08-07 H.J. Lu <hongjiu.lu@intel.com>
31555
31556 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
31557 Add e_exp-fma, e_log-fma, e_pow-fma, s_atan-fma, e_asin-fma,
31558 e_atan2-fma, s_sin-fma, s_tan-fma, mplog-fma, mpa-fma,
31559 slowexp-fma, slowpow-fma, sincos32-fma, doasin-fma, dosincos-fma,
31560 halfulp-fma, mpexp-fma, mpatan2-fma, mpatan-fma, mpsqrt-fma,
31561 and mptan-fma.
31562 (CFLAGS-doasin-fma.c): New.
31563 (CFLAGS-dosincos-fma.c): Likewise.
31564 (CFLAGS-e_asin-fma.c): Likewise.
31565 (CFLAGS-e_atan2-fma.c): Likewise.
31566 (CFLAGS-e_exp-fma.c): Likewise.
31567 (CFLAGS-e_log-fma.c): Likewise.
31568 (CFLAGS-e_pow-fma.c): Likewise.
31569 (CFLAGS-halfulp-fma.c): Likewise.
31570 (CFLAGS-mpa-fma.c): Likewise.
31571 (CFLAGS-mpatan-fma.c): Likewise.
31572 (CFLAGS-mpatan2-fma.c): Likewise.
31573 (CFLAGS-mpexp-fma.c): Likewise.
31574 (CFLAGS-mplog-fma.c): Likewise.
31575 (CFLAGS-mpsqrt-fma.c): Likewise.
31576 (CFLAGS-mptan-fma.c): Likewise.
31577 (CFLAGS-s_atan-fma.c): Likewise.
31578 (CFLAGS-sincos32-fma.c): Likewise.
31579 (CFLAGS-slowexp-fma.c): Likewise.
31580 (CFLAGS-slowpow-fma.c): Likewise.
31581 (CFLAGS-s_sin-fma.c): Likewise.
31582 (CFLAGS-s_tan-fma.c): Likewise.
31583 * sysdeps/x86_64/fpu/multiarch/doasin-fma.c: New file.
31584 * sysdeps/x86_64/fpu/multiarch/dosincos-fma.c: Likewise.
31585 * sysdeps/x86_64/fpu/multiarch/e_asin-fma.c: Likewise.
31586 * sysdeps/x86_64/fpu/multiarch/e_atan2-fma.c: Likewise.
31587 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c: Likewise.
31588 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c: Likewise.
31589 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c: Likewise.
31590 * sysdeps/x86_64/fpu/multiarch/halfulp-fma.c: Likewise.
31591 * sysdeps/x86_64/fpu/multiarch/ifunc-avx-fma4.h: Likewise.
31592 * sysdeps/x86_64/fpu/multiarch/ifunc-fma4.h: Likewise.
31593 * sysdeps/x86_64/fpu/multiarch/mpa-fma.c: Likewise.
31594 * sysdeps/x86_64/fpu/multiarch/mpatan-fma.c: Likewise.
31595 * sysdeps/x86_64/fpu/multiarch/mpatan2-fma.c: Likewise.
31596 * sysdeps/x86_64/fpu/multiarch/mpexp-fma.c: Likewise.
31597 * sysdeps/x86_64/fpu/multiarch/mplog-fma.c: Likewise.
31598 * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma.c: Likewise.
31599 * sysdeps/x86_64/fpu/multiarch/mptan-fma.c: Likewise.
31600 * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c: Likewise.
31601 * sysdeps/x86_64/fpu/multiarch/s_sin-fma.c: Likewise.
31602 * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c: Likewise.
31603 * sysdeps/x86_64/fpu/multiarch/sincos32-fma.c: Likewise.
31604 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
31605 * sysdeps/x86_64/fpu/multiarch/slowpow-fma.c: Likewise.
31606 * sysdeps/x86_64/fpu/multiarch/e_asin.c: Rewrite.
31607 * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
31608 * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
31609 * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
31610 * sysdeps/x86_64/fpu/multiarch/e_pow.c: Likewise.
31611 * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
31612 * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
31613 * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
31614
31615 2017-08-04 Joseph Myers <joseph@codesourcery.com>
31616
31617 * sysdeps/generic/math_private.h (__EXPR_FLT128): Remove macro.
31618 (min_of_type_f): New macro.
31619 (min_of_type_): Likewise.
31620 (min_of_type_l): Likewise.
31621 (min_of_type_f128): Likewise.
31622 (min_of_type): Define using __MATH_TG and taking an expression
31623 argument.
31624 (math_check_force_underflow): Pass expression instead of type to
31625 min_of_type.
31626 (math_check_force_underflow_nonneg): Likewise.
31627
31628 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
31629
31630 * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
31631 (LOAD_RTLD_GLOBAL_RO_RDX, HAS_FEATURE, LOAD_FUNC_GOT_EAX,
31632 HAS_CPU_FEATURE, HAS_ARCH_FEATURE): Removed.
31633
31634 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
31635
31636 * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
31637 bcopy-ia32, bzero-ia32, rawmemchr-ia32 memchr-ia32,
31638 memcmp-ia32, memcpy-ia32, memmove-ia32, mempcpy-ia32,
31639 memset-ia32, strcat-ia32, strchr-ia32, strrchr-ia32,
31640 strcpy-ia32, strcmp-ia32, strcspn-ia32, strpbrk-ia32,
31641 strspn-ia32, strlen-ia32, stpcpy-ia32, stpncpy-ia32,
31642 memcpy_chk-nonshared, mempcpy_chk-nonshared,
31643 memmove_chk-nonshared and memset_chk-nonshared
31644 * sysdeps/i386/i686/multiarch/bcopy-ia32.S: New file.
31645 * sysdeps/i386/i686/multiarch/bcopy.c: Likewise.
31646 * sysdeps/i386/i686/multiarch/bzero-ia32.S: Likewise.
31647 * sysdeps/i386/i686/multiarch/bzero.c: Likewise.
31648 * sysdeps/i386/i686/multiarch/ifunc-memmove.h: Likewise.
31649 * sysdeps/i386/i686/multiarch/ifunc-memset.h: Likewise.
31650 * sysdeps/i386/i686/multiarch/ifunc-sse2-bsf.h: Likewise.
31651 * sysdeps/i386/i686/multiarch/ifunc-sse2-ssse3.h: Likewise.
31652 * sysdeps/i386/i686/multiarch/ifunc-sse2.h: Likewise.
31653 * sysdeps/i386/i686/multiarch/ifunc-sse4_2.h: Likewise.
31654 * sysdeps/i386/i686/multiarch/ifunc-ssse3-sse4_2.h: Likewise.
31655 * sysdeps/i386/i686/multiarch/memchr-ia32.S: Likewise.
31656 * sysdeps/i386/i686/multiarch/memchr.c: Likewise.
31657 * sysdeps/i386/i686/multiarch/memcmp-ia32.S: Likewise.
31658 * sysdeps/i386/i686/multiarch/memcmp.c: Likewise.
31659 * sysdeps/i386/i686/multiarch/memcpy-ia32.S: Likewise.
31660 * sysdeps/i386/i686/multiarch/memcpy.c: Likewise.
31661 * sysdeps/i386/i686/multiarch/memcpy_chk-nonshared.S: Likewise.
31662 * sysdeps/i386/i686/multiarch/memcpy_chk.c: Likewise.
31663 * sysdeps/i386/i686/multiarch/memmove-ia32.S: Likewise.
31664 * sysdeps/i386/i686/multiarch/memmove.c: Likewise.
31665 * sysdeps/i386/i686/multiarch/memmove_chk-nonshared.S: Likewise.
31666 * sysdeps/i386/i686/multiarch/memmove_chk.c: Likewise.
31667 * sysdeps/i386/i686/multiarch/mempcpy-ia32.S: Likewise.
31668 * sysdeps/i386/i686/multiarch/mempcpy.c: Likewise.
31669 * sysdeps/i386/i686/multiarch/mempcpy_chk-nonshared.S: Likewise.
31670 * sysdeps/i386/i686/multiarch/mempcpy_chk.c: Likewise.
31671 * sysdeps/i386/i686/multiarch/memrchr.c: Likewise.
31672 * sysdeps/i386/i686/multiarch/memset-ia32.S: Likewise.
31673 * sysdeps/i386/i686/multiarch/memset.c: Likewise.
31674 * sysdeps/i386/i686/multiarch/memset_chk-nonshared.S: Likewise.
31675 * sysdeps/i386/i686/multiarch/rawmemchr-ia32.S: Likewise.
31676 * sysdeps/i386/i686/multiarch/rawmemchr.c: Likewise.
31677 * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
31678 * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
31679 * sysdeps/i386/i686/multiarch/stpcpy.c: Likewise.
31680 * sysdeps/i386/i686/multiarch/stpncpy-ia32.S: Likewise.
31681 * sysdeps/i386/i686/multiarch/stpncpy.c: Likewise.
31682 * sysdeps/i386/i686/multiarch/strcasecmp.c: Likewise.
31683 * sysdeps/i386/i686/multiarch/strcasecmp_l.c: Likewise.
31684 * sysdeps/i386/i686/multiarch/strcat-ia32.S: Likewise.
31685 * sysdeps/i386/i686/multiarch/strcat.c: Likewise.
31686 * sysdeps/i386/i686/multiarch/strchr-ia32.S: Likewise.
31687 * sysdeps/i386/i686/multiarch/strchr.c: Likewise.
31688 * sysdeps/i386/i686/multiarch/strcmp-ia32.S: Likewise.
31689 * sysdeps/i386/i686/multiarch/strcmp.c: Likewise.
31690 * sysdeps/i386/i686/multiarch/strcpy-ia32.S: Likewise.
31691 * sysdeps/i386/i686/multiarch/strcpy.c: Likewise.
31692 * sysdeps/i386/i686/multiarch/strcspn-ia32.S: Likewise.
31693 * sysdeps/i386/i686/multiarch/strcspn.c: Likewise.
31694 * sysdeps/i386/i686/multiarch/strlen-ia32.S: Likewise.
31695 * sysdeps/i386/i686/multiarch/strlen.c: Likewise.
31696 * sysdeps/i386/i686/multiarch/strncase.c: Likewise.
31697 * sysdeps/i386/i686/multiarch/strncase_l.c: Likewise.
31698 * sysdeps/i386/i686/multiarch/strncat.c: Likewise.
31699 * sysdeps/i386/i686/multiarch/strncmp.c: Likewise.
31700 * sysdeps/i386/i686/multiarch/strncpy.c: Likewise.
31701 * sysdeps/i386/i686/multiarch/strnlen.c: Likewise.
31702 * sysdeps/i386/i686/multiarch/strpbrk-ia32.S: Likewise.
31703 * sysdeps/i386/i686/multiarch/strpbrk.c: Likewise.
31704 * sysdeps/i386/i686/multiarch/strrchr-ia32.S: Likewise.
31705 * sysdeps/i386/i686/multiarch/strrchr.c: Likewise.
31706 * sysdeps/i386/i686/multiarch/strspn-ia32.S: Likewise.
31707 * sysdeps/i386/i686/multiarch/strspn.c: Likewise.
31708 * sysdeps/i386/i686/multiarch/wcschr.c: Likewise.
31709 * sysdeps/i386/i686/multiarch/wcscmp.c: Likewise.
31710 * sysdeps/i386/i686/multiarch/wcscpy.c: Likewise.
31711 * sysdeps/i386/i686/multiarch/wcslen.c: Likewise.
31712 * sysdeps/i386/i686/multiarch/wcsrchr.c: Likewise.
31713 * sysdeps/i386/i686/multiarch/wmemcmp.c: Likewise.
31714 * sysdeps/i386/i686/multiarch/bcopy.S: Removed.
31715 * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
31716 * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
31717 * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
31718 * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
31719 * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
31720 * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
31721 * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
31722 * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
31723 * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
31724 * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
31725 * sysdeps/i386/i686/multiarch/memset.S: Likewise.
31726 * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
31727 * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
31728 * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
31729 * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
31730 * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
31731 * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
31732 * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
31733 * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
31734 * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
31735 * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
31736 * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
31737 * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
31738 * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
31739 * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
31740 * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
31741 * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
31742 * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
31743 * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
31744 * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
31745 * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
31746 * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
31747 * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
31748 * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
31749 * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
31750 * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
31751 * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
31752
31753 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
31754
31755 * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines)
31756 Add svml_d_cos2_core-sse2, svml_d_cos4_core-sse,
31757 svml_d_cos8_core-avx2, svml_d_exp2_core-sse2,
31758 svml_d_exp4_core-sse, svml_d_exp8_core-avx2,
31759 svml_d_log2_core-sse2, svml_d_log4_core-sse,
31760 svml_d_log8_core-avx2, svml_d_pow2_core-sse2,
31761 svml_d_pow4_core-sse, svml_d_pow8_core-avx2
31762 svml_d_sin2_core-sse2, svml_d_sin4_core-sse,
31763 svml_d_sin8_core-avx2, svml_d_sincos2_core-sse2,
31764 svml_d_sincos4_core-sse, svml_d_sincos8_core-avx2,
31765 svml_s_cosf16_core-avx2, svml_s_cosf4_core-sse2,
31766 svml_s_cosf8_core-sse, svml_s_expf16_core-avx2,
31767 svml_s_expf4_core-sse2, svml_s_expf8_core-sse,
31768 svml_s_logf16_core-avx2, svml_s_logf4_core-sse2,
31769 svml_s_logf8_core-sse, svml_s_powf16_core-avx2,
31770 svml_s_powf4_core-sse2, svml_s_powf8_core-sse,
31771 svml_s_sincosf16_core-avx2, svml_s_sincosf4_core-sse2,
31772 svml_s_sincosf8_core-sse, svml_s_sinf16_core-avx2,
31773 svml_s_sinf4_core-sse2 and svml_s_sinf8_core-sse.
31774 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h: New file.
31775 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h: Likewise.
31776 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-sse4_1.h: Likewise.
31777 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.c: Likewise.
31778 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.c: Likewise.
31779 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.c: Likewise.
31780 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.c: Likewise.
31781 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.c: Likewise.
31782 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.c: Likewise.
31783 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.c: Likewise.
31784 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.c: Likewise.
31785 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.c: Likewise.
31786 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.c: Likewise.
31787 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.c: Likewise.
31788 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.c: Likewise.
31789 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.c: Likewise.
31790 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.c: Likewise.
31791 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.c: Likewise.
31792 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.c: Likewise.
31793 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.c: Likewise.
31794 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.c: Likewise.
31795 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.c: Likewise.
31796 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.c: Likewise.
31797 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.c: Likewise.
31798 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.c: Likewise.
31799 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.c: Likewise.
31800 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.c: Likewise.
31801 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.c: Likewise.
31802 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.c: Likewise.
31803 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.c: Likewise.
31804 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.c: Likewise.
31805 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.c: Likewise.
31806 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.c: Likewise.
31807 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.c: Likewise.
31808 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.c: Likewise.
31809 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.c: Likewise.
31810 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.c: Likewise.
31811 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.c: Likewise.
31812 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.c: Likewise.
31813 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.S: Renamed to
31814 ...
31815 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core-sse2.S: This.
31816 Don't include <sysdep.h> nor <init-arch.h>.
31817 (_ZGVbN2v_cos): Removed.
31818 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.S: Renamed to
31819 ...
31820 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core-sse.S: This.
31821 Don't include <sysdep.h> nor <init-arch.h>.
31822 (_ZGVdN4v_cos): Removed.
31823 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S: Renamed to
31824 ...
31825 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core-avx2.S: This.
31826 Don't include <sysdep.h> nor <init-arch.h>.
31827 (_ZGVeN8v_cos): Removed.
31828 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.S: Renamed to
31829 ...
31830 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core-sse2.S: This.
31831 Don't include <sysdep.h> nor <init-arch.h>.
31832 (_ZGVbN2v_exp): Removed.
31833 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.S: Renamed to
31834 ...
31835 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core-sse.S: This.
31836 Don't include <sysdep.h> nor <init-arch.h>.
31837 (_ZGVdN4v_exp): Removed.
31838 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S: Renamed to
31839 ...
31840 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core-avx2.S: This.
31841 Don't include <sysdep.h> nor <init-arch.h>.
31842 (_ZGVeN8v_exp): Removed.
31843 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.S: Renamed to
31844 ...
31845 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core-sse2.S: This.
31846 Don't include <sysdep.h> nor <init-arch.h>.
31847 (_ZGVbN2v_log): Removed.
31848 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.S: Renamed to
31849 ...
31850 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core-sse.S: This.
31851 Don't include <sysdep.h> nor <init-arch.h>.
31852 (_ZGVdN4v_log): Removed.
31853 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S: Renamed to
31854 ...
31855 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core-avx2.S: This.
31856 Don't include <sysdep.h> nor <init-arch.h>.
31857 (_ZGVeN8v_log): Removed.
31858 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.S: Renamed to
31859 ...
31860 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core-sse2.S: This.
31861 Don't include <sysdep.h> nor <init-arch.h>.
31862 (_ZGVbN2vv_pow): Removed.
31863 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.S: Renamed to
31864 ...
31865 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core-sse.S: This.
31866 Don't include <sysdep.h> nor <init-arch.h>.
31867 (_ZGVdN4vv_pow): Removed.
31868 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S: Renamed to
31869 ...
31870 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core-avx2.S: This.
31871 Don't include <sysdep.h> nor <init-arch.h>.
31872 (_ZGVeN8vv_pow): Removed.
31873 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.S: Renamed to
31874 ...
31875 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core-sse2.S: This.
31876 Don't include <sysdep.h> nor <init-arch.h>.
31877 (_ZGVbN2v_sin): Removed.
31878 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.S: Renamed to
31879 ...
31880 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core-sse.S: This.
31881 Don't include <sysdep.h> nor <init-arch.h>.
31882 (_ZGVbN4v_sin): Removed.
31883 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S: Renamed to
31884 ...
31885 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core-avx2.S: This.
31886 Don't include <sysdep.h> nor <init-arch.h>.
31887 (_ZGVbN8v_sin): Removed.
31888 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.S: Renamed to
31889 ...
31890 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core-sse2.S: This.
31891 Don't include <sysdep.h> nor <init-arch.h>.
31892 (_ZGVbN2vvv_sincos): Removed.
31893 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.S: Renamed to
31894 ...
31895 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core-sse.S: This.
31896 Don't include <sysdep.h> nor <init-arch.h>.
31897 (_ZGVdN4vvv_sincos): Removed.
31898 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S: Renamed to
31899 ...
31900 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core-avx2.S: This.
31901 Don't include <sysdep.h> nor <init-arch.h>.
31902 (_ZGVeN8vvv_sincos): Removed.
31903 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.S: Renamed to
31904 ...
31905 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core-avx2.S: This.
31906 Don't include <sysdep.h> nor <init-arch.h>.
31907 (_ZGVeN16v_cosf): Removed.
31908 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.S: Renamed to
31909 ...
31910 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core-sse2.S: This.
31911 Don't include <sysdep.h> nor <init-arch.h>.
31912 (_ZGVbN4v_cosf): Removed.
31913 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.S: Renamed to
31914 ...
31915 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core-sse.S: This.
31916 Don't include <sysdep.h> nor <init-arch.h>.
31917 (_ZGVdN8v_cosf): Removed.
31918 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.S: Renamed to
31919 ...
31920 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core-avx2.S: This.
31921 Don't include <sysdep.h> nor <init-arch.h>.
31922 (_ZGVeN16v_expf): Removed.
31923 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.S: Renamed to
31924 ...
31925 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core-sse2.S: This.
31926 Don't include <sysdep.h> nor <init-arch.h>.
31927 (_ZGVbN4v_expf): Removed.
31928 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.S: Renamed to
31929 ...
31930 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core-sse.S: This.
31931 Don't include <sysdep.h> nor <init-arch.h>.
31932 (_ZGVdN8v_expf): Removed.
31933 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.S: Renamed to
31934 ...
31935 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core-avx2.S: This.
31936 Don't include <sysdep.h> nor <init-arch.h>.
31937 (_ZGVeN16v_logf): Removed.
31938 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.S: Renamed to
31939 ...
31940 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core-sse2.S: This.
31941 Don't include <sysdep.h> nor <init-arch.h>.
31942 (_ZGVbN4v_logf): Removed.
31943 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.S: Renamed to
31944 ...
31945 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core-sse.S: This.
31946 Don't include <sysdep.h> nor <init-arch.h>.
31947 (_ZGVdN8v_logf): Removed.
31948 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.S: Renamed to
31949 ...
31950 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core-avx2.S: This.
31951 Don't include <sysdep.h> nor <init-arch.h>.
31952 (_ZGVeN16vv_powf): Removed.
31953 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.S: Renamed to
31954 ...
31955 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core-sse2.S: This.
31956 Don't include <sysdep.h> nor <init-arch.h>.
31957 (_ZGVbN4vv_powf): Removed.
31958 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.S: Renamed to
31959 ...
31960 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core-sse.S: This.
31961 Don't include <sysdep.h> nor <init-arch.h>.
31962 (_ZGVdN8vv_powf): Removed.
31963 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.S: Renamed to
31964 ...
31965 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core-avx2.S: This.
31966 Don't include <sysdep.h> nor <init-arch.h>.
31967 (_ZGVeN16vvv_sincosf): Removed.
31968 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.S: Renamed to
31969 ...
31970 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core-sse2.S: This.
31971 Don't include <sysdep.h> nor <init-arch.h>.
31972 (_ZGVbN4vvv_sincosf): Removed.
31973 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.S: Renamed to
31974 ...
31975 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core-sse.S: This.
31976 Don't include <sysdep.h> nor <init-arch.h>.
31977 (_ZGVdN8vvv_sincosf): Removed.
31978 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.S: Renamed to
31979 ...
31980 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core-avx2.S: This.
31981 Don't include <sysdep.h> nor <init-arch.h>.
31982 (_ZGVeN16v_sinf): Removed.
31983 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.S: Renamed to
31984 ...
31985 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core-sse2.S: This.
31986 Don't include <sysdep.h> nor <init-arch.h>.
31987 (_ZGVbN4v_sinf): Removed.
31988 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.S: Renamed to
31989 ...
31990 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core-sse.S: This.
31991 Don't include <sysdep.h> nor <init-arch.h>.
31992 (_ZGVdN8v_sinf): Removed.
31993
31994 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
31995
31996 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
31997 Add s_ceil-sse4_1, s_ceilf-sse4_1, s_floor-sse4_1,
31998 s_floorf-sse4_1, s_nearbyint-sse4_1, s_nearbyintf-sse4_1,
31999 s_rint-sse4_1 and s_rintf-sse4_1.
32000 * sysdeps/x86_64/fpu/multiarch/ifunc-sse4_1.h: New file.
32001 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Likewise.
32002 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Likewise.
32003 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Likewise.
32004 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Likewise.
32005 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Likewise.
32006 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Likewise.
32007 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Likewise.
32008 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Likewise.
32009 * sysdeps/x86_64/fpu/multiarch/s_ceil.S: Renamed to ...
32010 * sysdeps/x86_64/fpu/multiarch/s_ceil-sse4_1.S: This. Don't
32011 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
32012 (__ceil): Removed.
32013 * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: Renamed to ...
32014 * sysdeps/x86_64/fpu/multiarch/s_ceilf-sse4_1.S: This. Don't
32015 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
32016 (__ceilf): Removed.
32017 * sysdeps/x86_64/fpu/multiarch/s_floor.S: Renamed to ...
32018 * sysdeps/x86_64/fpu/multiarch/s_floor-sse4_1.S: This. Don't
32019 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
32020 (__floor): Removed.
32021 * sysdeps/x86_64/fpu/multiarch/s_floorf.S: Renamed to ...
32022 * sysdeps/x86_64/fpu/multiarch/s_floorf-sse4_1.S: This. Don't
32023 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
32024 (__floorf): Removed.
32025 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: Renamed to ...
32026 * sysdeps/x86_64/fpu/multiarch/s_nearbyint-sse4_1.S: This. Don't
32027 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
32028 (__nearbyint): Removed.
32029 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: Renamed to ...
32030 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-sse4_1.S: This. Don't
32031 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
32032 (__nearbyintf): Removed.
32033 * sysdeps/x86_64/fpu/multiarch/s_rint.S: Renamed to ...
32034 * sysdeps/x86_64/fpu/multiarch/s_rint-sse4_1.S: This. Don't
32035 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
32036 (__rint): Removed.
32037 * sysdeps/x86_64/fpu/multiarch/s_rintf.S: Renamed to ...
32038 * sysdeps/x86_64/fpu/multiarch/s_rintf-sse4_1.S: This. Don't
32039 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
32040 (__rintf): Removed.
32041
32042 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32043
32044 * sysdeps/i386/start.S (_start): Check Check PIC instead of
32045 SHARED. Avoid dynamic relocation against main in static PIE.
32046
32047 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32048
32049 [BZ #21815]
32050 * elf/Makefile (CFLAGS-tst-prelink.c): New.
32051 (LDFLAGS-tst-prelink): Likewise.
32052
32053 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32054
32055 * sysdeps/unix/sysv/linux/i386/sysdep.h (I386_USE_SYSENTER):
32056 Define to I386_USE_SYSENTER to 0 or 1 if not defined.
32057 (ENTER_KERNEL): Check if I386_USE_SYSENTER is 1 and check PIC.
32058 (INTERNAL_SYSCALL_MAIN_INLINE): Likewise.
32059 (INTERNAL_SYSCALL_NCS): Likewise.
32060 (LOADARGS_1): Likewise.
32061 (LOADARGS_5): Likewise.
32062 (RESTOREARGS_1): Likewise.
32063 (RESTOREARGS_5): Likewise.
32064
32065 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32066
32067 * sysdeps/x86_64/memmove.S (MEMCPY_SYMBOL): Don't check SHARED.
32068 (MEMPCPY_SYMBOL): Likewise.
32069 * sysdeps/x86_64/multiarch/ifunc-impl-list.c
32070 (__libc_ifunc_impl_list): Test memcpy and mempcpy in libc.a.
32071 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Also include
32072 in libc.a.
32073 * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
32074 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
32075 Likewise.
32076 * sysdeps/x86_64/multiarch/memcpy.c: Also include in libc.a.
32077 (__hidden_ver1): Don't use in libc.a.
32078 * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S
32079 (__mempcpy): Don't create a weak alias in libc.a.
32080 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S: Support
32081 libc.a.
32082 * sysdeps/x86_64/multiarch/mempcpy.c: Also include in libc.a.
32083 (__hidden_ver1): Don't use in libc.a.
32084
32085 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32086
32087 * config.make.in (have-insert): New.
32088 * configure.ac (libc_cv_insert): New. Set to yes if linker
32089 supports INSERT in linker script.
32090 (AC_SUBST(libc_cv_insert): New.
32091 * configure: Regenerated.
32092 * sysdeps/x86_64/Makefile (tests): Add tst-split-dynreloc only
32093 if $(have-insert) == yes.
32094
32095 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32096
32097 * elf/Makefile (tests): Add vismain only if
32098 $(have-protected-data) == yes.
32099 (tests-pie): Likewise.
32100
32101 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32102
32103 [BZ #21871]
32104 * sysdeps/x86/cpu-features.c (init_cpu_features): Set
32105 bit_arch_Use_dl_runtime_resolve_opt only with AVX512F.
32106
32107 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32108
32109 [BZ #21790]
32110 * sysdeps/i386/i586/memset.S
32111 (__memset_zero_constant_len_parameter): Removed.
32112 * sysdeps/i386/i686/memset.S
32113 (__memset_zero_constant_len_parameter): Likewise.
32114 * sysdeps/i386/i686/multiarch/memset_chk.S
32115 (__memset_zero_constant_len_parameter): Likewise.
32116 * sysdeps/x86_64/memset.S (__memset_zero_constant_len_parameter):
32117 Likewise.
32118
32119 2017-08-03 Aurelien Jarno <aurelien@aurel32.net>
32120
32121 * stdlib/getentropy.c (getentropy): Change return type to int.
32122
32123 2017-08-03 Aurelien Jarno <aurelien@aurel32.net>
32124
32125 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Regenerated.
32126
32127 2017-08-03 Joseph Myers <joseph@codesourcery.com>
32128
32129 * math/s_nextafter.c (__nextafter): Use uintN_t instead of
32130 u_intN_t.
32131 * math/s_nexttowardf.c (__nexttowardf): Likewise.
32132 * sysdeps/generic/math_private.h (ieee_double_shape_type):
32133 Likewise.
32134 (ieee_float_shape_type): Likewise.
32135 * sysdeps/i386/fpu/s_fpclassifyl.c (__fpclassifyl): Likewise.
32136 * sysdeps/i386/fpu/s_isnanl.c (__isnanl): Likewise.
32137 * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Likewise.
32138 * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
32139 * sysdeps/i386/fpu/s_nexttowardf.c (__nexttowardf): Likewise.
32140 * sysdeps/ieee754/dbl-64/e_acosh.c (__ieee754_acosh): Likewise.
32141 * sysdeps/ieee754/dbl-64/e_cosh.c (__ieee754_cosh): Likewise.
32142 * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Likewise.
32143 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
32144 Likewise.
32145 * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
32146 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
32147 (__ieee754_yn): Likewise.
32148 * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
32149 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
32150 * sysdeps/ieee754/dbl-64/e_rem_pio2.c (__ieee754_rem_pio2):
32151 Likewise.
32152 * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
32153 * sysdeps/ieee754/dbl-64/s_ceil.c (__ceil): Likewise.
32154 * sysdeps/ieee754/dbl-64/s_copysign.c (__copysign): Likewise.
32155 * sysdeps/ieee754/dbl-64/s_erf.c (__erf): Likewise.
32156 (__erfc): Likewise.
32157 * sysdeps/ieee754/dbl-64/s_expm1.c (__expm1): Likewise.
32158 * sysdeps/ieee754/dbl-64/s_finite.c (FINITE): Likewise.
32159 * sysdeps/ieee754/dbl-64/s_floor.c (__floor): Likewise.
32160 * sysdeps/ieee754/dbl-64/s_fpclassify.c (__fpclassify): Likewise.
32161 * sysdeps/ieee754/dbl-64/s_isnan.c (__isnan): Likewise.
32162 * sysdeps/ieee754/dbl-64/s_issignaling.c (__issignaling):
32163 Likewise.
32164 * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Likewise.
32165 * sysdeps/ieee754/dbl-64/s_llround.c (__llround): Likewise.
32166 * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
32167 * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Likewise.
32168 * sysdeps/ieee754/dbl-64/s_modf.c (__modf): Likewise.
32169 * sysdeps/ieee754/dbl-64/s_nextup.c (__nextup): Likewise.
32170 * sysdeps/ieee754/dbl-64/s_remquo.c (__remquo): Likewise.
32171 * sysdeps/ieee754/dbl-64/s_round.c (__round): Likewise.
32172 * sysdeps/ieee754/dbl-64/s_trunc.c (__trunc): Likewise.
32173 * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c
32174 (__issignaling): Likewise.
32175 * sysdeps/ieee754/flt-32/e_atan2f.c (__ieee754_atan2f): Likewise.
32176 * sysdeps/ieee754/flt-32/e_fmodf.c (__ieee754_fmodf): Likewise.
32177 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
32178 Likewise.
32179 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
32180 * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
32181 * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Likewise.
32182 * sysdeps/ieee754/flt-32/e_rem_pio2f.c (__ieee754_rem_pio2f):
32183 Likewise.
32184 * sysdeps/ieee754/flt-32/e_remainderf.c (__ieee754_remainderf):
32185 Likewise.
32186 * sysdeps/ieee754/flt-32/e_sqrtf.c (__ieee754_sqrtf): Likewise.
32187 * sysdeps/ieee754/flt-32/s_ceilf.c (__ceilf): Likewise.
32188 * sysdeps/ieee754/flt-32/s_copysignf.c (__copysignf): Likewise.
32189 * sysdeps/ieee754/flt-32/s_erff.c (__erff): Likewise.
32190 (__erfcf): Likewise.
32191 * sysdeps/ieee754/flt-32/s_expm1f.c (__expm1f): Likewise.
32192 * sysdeps/ieee754/flt-32/s_finitef.c (FINITEF): Likewise.
32193 * sysdeps/ieee754/flt-32/s_floorf.c (__floorf): Likewise.
32194 * sysdeps/ieee754/flt-32/s_fpclassifyf.c (__fpclassifyf):
32195 Likewise.
32196 * sysdeps/ieee754/flt-32/s_isnanf.c (__isnanf): Likewise.
32197 * sysdeps/ieee754/flt-32/s_issignalingf.c (__issignalingf):
32198 Likewise.
32199 * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
32200 * sysdeps/ieee754/flt-32/s_llroundf.c (__llroundf): Likewise.
32201 * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
32202 * sysdeps/ieee754/flt-32/s_lroundf.c (__lroundf): Likewise.
32203 * sysdeps/ieee754/flt-32/s_modff.c (__modff): Likewise.
32204 * sysdeps/ieee754/flt-32/s_remquof.c (__remquof): Likewise.
32205 * sysdeps/ieee754/flt-32/s_roundf.c (__roundf): Likewise.
32206 * sysdeps/ieee754/ldbl-128/e_acoshl.c (__ieee754_acoshl):
32207 Likewise.
32208 * sysdeps/ieee754/ldbl-128/e_atan2l.c (__ieee754_atan2l):
32209 Likewise.
32210 * sysdeps/ieee754/ldbl-128/e_atanhl.c (__ieee754_atanhl):
32211 Likewise.
32212 * sysdeps/ieee754/ldbl-128/e_fmodl.c (__ieee754_fmodl): Likewise.
32213 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
32214 Likewise.
32215 * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
32216 Likewise.
32217 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
32218 (__ieee754_ynl): Likewise.
32219 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
32220 * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c (__ieee754_rem_pio2l):
32221 Likewise.
32222 * sysdeps/ieee754/ldbl-128/e_remainderl.c (__ieee754_remainderl):
32223 Likewise.
32224 * sysdeps/ieee754/ldbl-128/e_sinhl.c (__ieee754_sinhl): Likewise.
32225 * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Likewise.
32226 * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
32227 Likewise.
32228 * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Likewise.
32229 * sysdeps/ieee754/ldbl-128/s_ceill.c (__ceill): Likewise.
32230 * sysdeps/ieee754/ldbl-128/s_copysignl.c (__copysignl): Likewise.
32231 * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Likewise.
32232 * sysdeps/ieee754/ldbl-128/s_fabsl.c (__fabsl): Likewise.
32233 * sysdeps/ieee754/ldbl-128/s_finitel.c (__finitel): Likewise.
32234 * sysdeps/ieee754/ldbl-128/s_floorl.c (__floorl): Likewise.
32235 * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c (__fpclassifyl):
32236 Likewise.
32237 * sysdeps/ieee754/ldbl-128/s_frexpl.c (__frexpl): Likewise.
32238 * sysdeps/ieee754/ldbl-128/s_isnanl.c (__isnanl): Likewise.
32239 * sysdeps/ieee754/ldbl-128/s_issignalingl.c (__issignalingl):
32240 Likewise.
32241 * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
32242 * sysdeps/ieee754/ldbl-128/s_llroundl.c (__llroundl): Likewise.
32243 * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
32244 * sysdeps/ieee754/ldbl-128/s_lroundl.c (__lroundl): Likewise.
32245 * sysdeps/ieee754/ldbl-128/s_modfl.c (__modfl): Likewise.
32246 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
32247 Likewise.
32248 * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl):
32249 Likewise.
32250 * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
32251 Likewise.
32252 * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
32253 Likewise.
32254 * sysdeps/ieee754/ldbl-128/s_nextupl.c (__nextupl): Likewise.
32255 * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Likewise.
32256 * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
32257 * sysdeps/ieee754/ldbl-128/s_roundl.c (__roundl): Likewise.
32258 * sysdeps/ieee754/ldbl-128/s_tanhl.c (__tanhl): Likewise.
32259 * sysdeps/ieee754/ldbl-128/s_truncl.c (__truncl): Likewise.
32260 * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl):
32261 Likewise.
32262 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
32263 Likewise.
32264 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
32265 * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
32266 Likewise.
32267 * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c
32268 (__ieee754_remainderl): Likewise.
32269 * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
32270 * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
32271 * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Likewise.
32272 * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c (___fpclassifyl):
32273 Likewise.
32274 * sysdeps/ieee754/ldbl-128ibm/s_modfl.c (__modfl): Likewise.
32275 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
32276 Likewise.
32277 * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
32278 * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Likewise.
32279 * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
32280 * sysdeps/ieee754/ldbl-96/e_atanhl.c (__ieee754_atanhl): Likewise.
32281 * sysdeps/ieee754/ldbl-96/e_coshl.c (__ieee754_coshl): Likewise.
32282 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
32283 Likewise.
32284 * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
32285 * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Likewise.
32286 (__ieee754_y0l): Likewise.
32287 (pzero): Likewise.
32288 (qzero): Likewise.
32289 * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
32290 (__ieee754_y1l): Likewise.
32291 (pone): Likewise.
32292 (qone): Likewise.
32293 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
32294 (__ieee754_ynl): Likewise.
32295 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Likewise.
32296 (__ieee754_lgammal_r): Likewise.
32297 * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c (__ieee754_rem_pio2l):
32298 Likewise.
32299 * sysdeps/ieee754/ldbl-96/e_sinhl.c (__ieee754_sinhl): Likewise.
32300 * sysdeps/ieee754/ldbl-96/s_copysignl.c (__copysignl): Likewise.
32301 * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfl): Likewise.
32302 (__erfcl): Likewise.
32303 * sysdeps/ieee754/ldbl-96/s_frexpl.c (__frexpl): Likewise.
32304 * sysdeps/ieee754/ldbl-96/s_issignalingl.c (__issignalingl):
32305 Likewise.
32306 * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
32307 * sysdeps/ieee754/ldbl-96/s_llroundl.c (__llroundl): Likewise.
32308 * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
32309 * sysdeps/ieee754/ldbl-96/s_lroundl.c (__lroundl): Likewise.
32310 * sysdeps/ieee754/ldbl-96/s_modfl.c (__modfl): Likewise.
32311 * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
32312 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
32313 Likewise.
32314 * sysdeps/ieee754/ldbl-96/s_nextupl.c (__nextupl): Likewise.
32315 * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Likewise.
32316 * sysdeps/ieee754/ldbl-96/s_roundl.c (__roundl): Likewise.
32317 * sysdeps/ieee754/ldbl-96/s_tanhl.c (__tanhl): Likewise.
32318 * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
32319 Likewise.
32320 * sysdeps/m68k/m680x0/fpu/e_pow.c (s(__ieee754_pow)): Likewise.
32321 * sysdeps/m68k/m680x0/fpu/s_fpclassifyl.c (__fpclassifyl):
32322 Likewise.
32323 * sysdeps/m68k/m680x0/fpu/s_llrint.c (__llrint): Likewise.
32324 * sysdeps/m68k/m680x0/fpu/s_llrintf.c (__llrintf): Likewise.
32325 * sysdeps/m68k/m680x0/fpu/s_llrintl.c (__llrintl): Likewise.
32326 * sysdeps/m68k/m680x0/fpu/s_nextafterl.c (__nextafterl): Likewise.
32327 * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Likewise.
32328
32329 2017-08-03 Florian Weimer <fweimer@redhat.com>
32330
32331 [BZ #21885]
32332 * sysdeps/posix/getaddrinfo.c (gethosts): Release resolver context
32333 on memory allocation failure.
32334
32335 2017-08-03 Alan Modra <amodra@gmail.com>
32336
32337 * sysdeps/powerpc/mod-tlsopt-powerpc.c: Extract from
32338 tst-tlsopt-powerpc.c with function name change and no test harness.
32339 * sysdeps/powerpc/tst-tlsopt-powerpc.c: Remove body of test.
32340 Call tls_get_addr_opt_test.
32341 * sysdeps/powerpc/Makefile (LDFLAGS-tst-tlsopt-powerpc): Don't define.
32342 (modules-names): Add mod-tlsopt-powerpc.
32343 (mod-tlsopt-powerpc.so-no-z-defs): Define.
32344 (tst-tlsopt-powerpc): Depend on .so.
32345 * sysdeps/powerpc/powerpc64/tls-macros.h (__TLS_GET_ADDR): Don't
32346 define. Expand use in TLS_GD and TLS_LD.
32347
32348 2017-08-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
32349
32350 * sysdeps/mach/hurd/enbl-secure.c (__libc_init_secure): Define
32351 function.
32352 * sysdeps/posix/shm_open.c: Include <pthread.h>.
32353
32354 2017-08-02 Joseph Myers <joseph@codesourcery.com>
32355
32356 [BZ #21686]
32357 * math/tgmath.h (__TGMATH_BINARY_REAL_ONLY): Add arguments before
32358 comparing size with that of double.
32359 (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
32360 (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
32361 (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
32362 (__TGMATH_TERNARY_REAL_ONLY): Likewise.
32363 (__TGMATH_BINARY_REAL_IMAG): Likewise.
32364 * math/gen-tgmath-tests.py (Type.init_types): Create __int128 and
32365 unsigned __int128 types.
32366
32367 2017-08-02 Steve Ellcey <sellcey@cavium.com>
32368
32369 * localedata/Makefile (CFLAGS-tst_iswalnum.c, CFLAGS-tst_iswalpha.c
32370 CFLAGS-tst_iswcntrl.c, CFLAGS-tst_iswdigit.c, CFLAGS-tst_iswgraph.c,
32371 CFLAGS-tst_iswlower.c, CFLAGS-tst_iswprint.c, CFLAGS-tst_iswpunct.c,
32372 CFLAGS-tst_iswspace.c, CFLAGS-tst_iswupper.c, CFLAGS-tst_iswxdigit.c,
32373 CFLAGS-tst_towlower.c, CFLAGS-tst_towupper.c): Remove.
32374
32375 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
32376
32377 * sysdeps/x86_64/start.S (_start): Check PIC instead of SHARED.
32378
32379 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
32380
32381 * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Check PIC instead
32382 of SHARED.
32383 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Likewise.
32384 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
32385 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
32386 * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
32387 * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
32388 * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
32389 * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
32390
32391 2017-08-02 Joseph Myers <joseph@codesourcery.com>
32392
32393 [BZ #21685]
32394 * math/tgmath.h (__tgmath_real_type): Use unary + on potentially
32395 bit-field expressions passed to sizeof or typeof.
32396 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
32397 (__TGMATH_F128): Likewise.
32398 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
32399 (__TGMATH_CF128): Likewise.
32400 (__TGMATH_UNARY_REAL_ONLY): Likewise.
32401 (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
32402 (__TGMATH_BINARY_FIRST_REAL_ONLY): Likewise.
32403 (__TGMATH_BINARY_FIRST_REAL_STD_ONLY): Likewise.
32404 (__TGMATH_BINARY_REAL_ONLY): Likewise.
32405 (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
32406 (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
32407 (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
32408 (__TGMATH_TERNARY_REAL_ONLY): Likewise.
32409 (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY): Likewise.
32410 (__TGMATH_UNARY_REAL_IMAG): Likewise.
32411 (__TGMATH_UNARY_IMAG): Likewise.
32412 (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
32413 (__TGMATH_BINARY_REAL_IMAG): Likewise.
32414 * math/gen-tgmath-tests.py (Type.init_types): Create bit_field
32415 type.
32416 (define_vars_for_type): Handle bit_field type specially.
32417 (Tests.__init__): Declare structure with bit-field element.
32418
32419 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
32420
32421 [BZ #21791]
32422 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S
32423 (MEMCPY_CHK): Define only if SHARED is defined.
32424 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S (MEMCPY_CHK):
32425 Likewise.
32426 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S (MEMCPY_CHK):
32427 Likewise.
32428
32429 See ChangeLog.18 for earlier changes.