powerpc: Remove optimized isinf
[glibc.git] / ChangeLog
blobb9bcc3a210bde3604e027b93bd3847eb21ba58be
1 2019-06-12  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
4         (sysdeps_routines, libm-sysdep_routines): Remove s_isinf* and s_isinf*
5         objects.
6         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf-power7.S:
7         Remove file.
8         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf-ppc32.c:
9         Likewise.
10         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf.c: Likewise.
11         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinff-ppc32.c:
12         Likewise.
13         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinff.c: Likewise.
14         * sysdeps/powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
15         * sysdeps/powerpc/powerpc32/power7/fpu/s_isinff.S: Likewise.
16         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile (sysdep_call):
17         Remove s_isinf* and s_isinf* objects.
18         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power7.S: Likewise.
19         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power8.S: Likewise.
20         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-ppc64.c: Likewise.
21         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c: Likewise.
22         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff-ppc64.c: Likewise.
23         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff.c: Likewise.
24         * sysdeps/powerpc/powerpc64/power7/fpu/s_isinf.S: Likewise.
25         * sysdeps/powerpc/powerpc64/power7/fpu/s_isinff.S: Likewise.
26         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinf.S: Likewise.
27         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinff.S: Likewise.
29         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Move to ...
30         * sysdeps/ieee754/dbl-64/s_isinf.c: ... here and format code.
32         * sysdeps/powerpc/fpu/s_isnan.c: Remove file.
33         * sysdeps/powerpc/fpu/s_isnanf.S: Likewise.
34         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: Likewise.
35         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
36         (sysdeps_routines, libm-sysdep_routines): Remove s_isnan-* and
37         s_isnanf-* objects.
38         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power5.S:
39         Remove file
40         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power6.S:
41         Likewise.
42         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power7.S:
43         Likewise.
44         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-ppc32.S:
45         Likewise.
46         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan.c: Likewise.
47         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf-power5.S:
48         Likewise.
49         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf-power6.S:
50         Likewise.
51         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf.c: Likewise.
52         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: Likewise.
53         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnanf.S: Likewise.
54         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: Likewise.
55         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S: Likewise.
56         * sysdeps/powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
57         * sysdeps/powerpc/powerpc32/power7/fpu/s_isnanf.S: Likewise.
58         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile (sysdep_calls):
59         Remove s_isnan-* and s_isnanf-* objects.
60         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power5.S: Likewise.
61         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6.S: Likewise.
62         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6x.S:
63         Likewise.
64         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power7.S: Likewise.
65         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power8.S: Likewise.
66         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S: Likewise.
67         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c: Likewise.
68         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnanf.c: Likewise.
69         * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: Likewise.
70         * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: Likewise.
71         * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: Likewise.
72         * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: Likewise.
73         * sysdeps/powerpc/powerpc64/power7/fpu/s_isnan.S: Likewise.
74         * sysdeps/powerpc/powerpc64/power7/fpu/s_isnanf.S: Likewise.
75         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S: Likewise.
76         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnanf.S: Likewise.
78         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Move to ...
79         * sysdeps/ieee754/dbl-64/s_isnan.c: ... here and format code.
81         * benchtests/Makefile (bench-math): Add isnan, isinf, and isfinite.
82         (CFLAGS-bench-isnan.c, CFLAGS-bench-isinf.c,
83         CFLAGS-bench-isfinite.c): New rule.
84         * benchtests/isnan-input: New file.
85         * benchtests/isinf-input: New file.
86         * benchtests/isfinite-input: New file.
88         * sysdeps/powerpc/fpu/s_copysign.c: New file.
89         * sysdeps/powerpc/fpu/s_copysignf.c: Likewise.
90         * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Remove file.
91         * sysdeps/powerpc/powerpc32/fpu/s_copysignf.S: Likewise.
92         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
93         (sysdep_routines, libm-sysdep_routines): Remove s_copysign-power6 and
94         s_copysign-ppc32.
95         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign-power6.S:
96         Remove file.
97         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign-ppc32.S:
98         Likewise.
99         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
100         Likewise.
101         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c:
102         Likewise.
103         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Likewise.
104         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: Likewise.
105         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile (sysdeps_calls):
106         Remove s_copysign-power6 s_copysign-ppc64.
107         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-power6.S:
108         Remove file.
109         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-ppc64.S:
110         Likewise.
111         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Likewise.
112         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: Likewise.
113         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Likewise.
114         * sysdeps/powerpc/powerpc64/fpu/s_copysignf.S: Likewise.
115         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
116         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: Likewise.
118         * sysdeps/powerpc/fpu/round_to_integer.h (set_fenv_mode,
119         round_to_integer_float, round_mode): Add RINT handling.
120         (reset_fenv_mode): New symbol.
121         * sysdeps/powerpc/fpu/s_rint.c (__rint): Use generic implementation.
122         * sysdeps/powerpc/fpu/s_rintf.c (__rintf): Likewise.
123         * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Remove file.
124         * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Likewise.
125         * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Likewise.
126         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Likewise.
128 2019-06-12  Florian Weimer  <fweimer@redhat.com>
130         [BZ #24632]
131         * libio/libioP.h (_IO_JUMPS_FUNC_UPDATE): New macro.
132         * libio/freopen.c (freopen): Use it.
134 2019-06-12  Florian Weimer  <fweimer@redhat.com>
136         Linux: Deprecate sysctl.
137         * include/sysctl.h (__sysctl): Remove declaration.
138         * scripts/check-installed-headers.sh (sys/sysctl.h): Disable
139         check.
140         * sysdeps/unix/sysv/linux/sys/sysctl.h: Add deprecation warning.
141         (sysctl): Add deprecation attribute.
142         * sysdeps/unix/sysv/linux/sysctl.c: Include <linux/sysctl.h>
143         directly, to avoid the deprecation warning.  Do not include
144         <string.h>.
145         (__sysctl): Remove hidden alias.
147 2019-06-12  Florian Weimer  <fweimer@redhat.com>
149         Linux: Use kernel headers for statx definitions if available.
150         * include/bits/statx-generic.h: New file.
151         * include/bits/types/struct_statx.h: Likewise.
152         * include/bits/types/struct_statx_timestamp.h: Likewise.
153         * io/Makefile (headers): Add bits/statx-generic.h.
154         * io/bits/statx-generic.h: New file.  Partly copied from
155         io/bits/statx.h.
156         * io/statx_generic.c: Include <bits/types/struct_statx.h> to
157         define original_statx.
158         * io/bits/types/struct_statx.h: Likewise.
159         * io/bits/types/struct_statx_timestamp.h: Likewise.
160         (statx_generic): Use original_statx.
161         * io/bits/statx.h: Rewrite to include <bits/statx-generic.h>.
162         * sysdeps/unix/sysv/linux/bits/statx.h: New file.
164 2019-06-12  Florian Weimer  <fweimer@redhat.com>
166         * misc/sys/cdefs.h (__glibc_has_include): Define.
168 2019-06-12  Wilco Dijkstra  <wdijkstr@arm.com>
170         * string/memmem.c (__memmem): Rewrite to improve performance.
172 2019-06-12  Wilco Dijkstra  <wdijkstr@arm.com>
174         * string/str-two-way.h (two_way_short_needle): Add inline to avoid
175         warning.
176         (two_way_long_needle): Block inlining.
177         * string/strstr.c (strstr2): Add new function.
178         (strstr3): Likewise.
179         (STRSTR): Completely rewrite strstr to improve performance.
181 2019-06-11  Wilco Dijkstra  <wdijkstr@arm.com>
183         * benchtests/bench-strstr.c (test_hard_needle): New function.
185 2019-06-10  Joseph Myers  <joseph@codesourcery.com>
187         * malloc/tst-calloc.c: Include <libc-diag.h>.
188         (null_test): Ignore -Wunused-result around calls to calloc.
189         * malloc/tst-mallocfork.c: Include <libc-diag.h>.
190         (do_test): Ignore -Wunused-result around call to malloc.
192 2019-06-07  Florian Weimer  <fweimer@redhat.com>
194         Linux: Add getdents64 system call.
195         * include/dirnent.h (getdents): Add comment and change buffer
196         argument type to void *.
197         (getdents64): Likewise.  Add hidden prototype.
198         * sysdeps/unix/sysv/linux/bits/Versions (GLIBC_2.30): Export
199         getdents64.
200         * sysdeps/unix/sysv/linux/Makefile [$(subdir) == dirent] (tests):
201         Add tst-getdents64.
202         * sysdeps/unix/sysv/linux/bits/unistd_ext.h (getdents64): Declare.
203         * sysdeps/unix/sysv/linux/getdents.c (__getdents): Change buffer
204         argument type to void *.
205         * sysdeps/unix/sysv/linux/getdents64.c (__getdents64): Likewise.
206         Add hidden definition and getdents64 alias.
207         * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c (__getdents64):
208         Likewise.
209         * sysdeps/unix/sysv/linux/tst-getdents64.c: New file.
210         * manual/filesys.texi (Accessing Directories): Add Low-level
211         Directory Access node reference.
212         (Opening a Directory): Cross-reference it.
213         (Low-level Directory Access): New node.
214         * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.30): Add
215         getdents64.
216         * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.30):
217         Likewise.
218         * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.30): Likewise.
219         * sysdeps/unix/sysv/linux/csky/libc.abilist (GLIBC_2.30):
220         Likewise.
221         * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.30):
222         Likewise.
223         * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.30):
224         Likewise.
225         * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.30):
226         Likewise.
227         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.30):
228         Likewise.
229         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.30):
230         Likewise.
231         * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.30):
232         Likewise.
233         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
234         (GLIBC_2.30): Likewise.
235         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
236         (GLIBC_2.30): Likewise.
237         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
238         (GLIBC_2.30): Likewise.
239         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
240         (GLIBC_2.30): Likewise.
241         * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.30):
242         Likewise.
243         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
244         (GLIBC_2.30): Likewise.
245         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
246         (GLIBC_2.30): Likewise.
247         * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libc.abilist
248         (GLIBC_2.30): Likewise.
249         * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libc.abilist
250         (GLIBC_2.30): Likewise.
251         * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.30):
252         Likewise.
253         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.30):
254         Likewise.
255         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.30):
256         Likewise.
257         * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.30): Likewise.
258         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.30):
259         Likewise.
260         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.30):
261         Likewise.
262         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.30):
263         Likewise.
264         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.30):
265         Likewise.
267 2019-06-06  Paul A. Clarke  <pc@us.ibm.com>
269         * sysdeps/powerpc/fpu_control.h (_FPU_MASK_RC): New.
270         (__FPU_MFFS): New.
271         (__FPU_MFFSL): New.
272         (_FPU_GET_RC): New.
273         (_FPU_GETCW): Use __FPU_MFFS().
274         * sysdeps/powerpc/fpu/get-rounding-mode.h: New file.
276 2019-06-06  Florian Weimer  <fweimer@redhat.com>
278         * sysdeps/unix/sysv/linux/riscv/flush-icache.c: Do not use
279         internal GCC preprocessor identifier __has_include__.
281 2019-06-05  Paul A. Clarke  <pc@us.ibm.com>
283         * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Replace code
284         with call to equivalent function.
286 2019-06-04  Florian Weimer  <fweimer@redhat.com>
288         * iconv/gconv_dl.c (release_handle): Remove file-level definition.
289         (do_release_shlib): Adjust for __twalk_r.
290         (__gconv_release_shlib): Call __twalk_r.
292 2019-06-04  Andreas Schwab  <schwab@suse.de>
294         [BZ #18830]
295         * iconv/skeleton.c (FUNCTION_NAME): Use RESET_INPUT_BUFFER only if
296         no irreversible characters occurred.
297         * iconv/gconv_simple.c (internal_ucs4_loop)
298         (internal_ucs4_loop_unaligned, internal_ucs4_loop_single)
299         (ucs4_internal_loop, ucs4_internal_loop_unaligned)
300         (ucs4_internal_loop_single, internal_ucs4le_loop)
301         (internal_ucs4le_loop_unaligned, internal_ucs4le_loop_single)
302         (ucs4le_internal_loop, ucs4le_internal_loop_unaligned)
303         (ucs4le_internal_loop_single): Add const to outend.
304         * sysdeps/s390/multiarch/gconv_simple.c (internal_ucs4le_loop)
305         (ucs4_internal_loop, ucs4le_internal_loop): Likewise.
306         * iconv/Makefile (tests): Add tst-iconv7.
307         * iconv/tst-iconv7.c: New file.
309 2019-06-03  Joseph Myers  <joseph@codesourcery.com>
311         * inet/netinet/in.h (INADDR_ALLSNOOPERS_GROUP): New macro.
313 2019-06-01  Florian Weimer  <fweimer@redhat.com>
315         arm: Remove ioperm/iopl/inb/inw/inl/outb/outw/outl support.
316         * sysdeps/unix/sysv/linux/arm/Makefile
317         [$(subdir) == misc] (sysdep_headers): Remove sys/io.h.
318         * sysdeps/unix/sysv/linux/arm/sys/io.h: Remove file.
319         * sysdeps/unix/sysv/linux/arm/ioperm.c: Rewrite file.
320         (ioperm, iopl, inb, inw, inl, outb, outw, outl): Turn into
321         compatibility symbols.
323 2019-05-31  Florian Weimer  <fweimer@redhat.com>
325         * sysdeps/unix/sysv/linux/syscall-names.list: Add oddly named
326         system calls for the arm architecture: breakpoint, get_tls,
327         set_tls, usr26, usr32.
329 2019-05-30  Gabriel F. T. Gomes  <gabrielftg@linux.ibm.com>
331         * sysdeps/powerpc/Makefile
332         [$(subdir) == misc] (CFLAGS-tst-set_ppr.c): New variable.
333         * sysdeps/powerpc/powerpc64/power4/memcmp.S [__LITTLE_ENDIAN__]:
334         Declare '.machine power7' to get support for ldbrx.
335         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Declare '.machine'
336         directive based on the directory of the file.
337         * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Likewise.
338         * sysdeps/powerpc/powerpc64/power8/strcmp.S: Likewise.
339         * sysdeps/powerpc/powerpc64/power8/strcasecmp.S: Update
340         '.machine' directive.
341         (VCLZD_V8_v7, MFVRD_R3_V1, VSUBUDM_V9_V8, VPOPCNTD_V8_V8)
342         (VADDUQM_V7_V8): Remove.
343         (__STRCASECMP): Replace macros with actual instructions.
344         * sysdeps/powerpc/powerpc64/power8/strcasestr.S: Update
345         '.machine' directive.
346         (VCLZD_V8_v7): Remove.
347         (STRCASESTR): Replace VCLZD_V8_v7 with actual instruction.
349 2019-05-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
351         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/get_clockfreq.c:
352         Remove file.
353         * sysdeps/unix/sysv/linux/x86_64/get_clockfreq.c: Likewise.
355 2019-05-28  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
357         * sysdeps/powerpc/fpu/round_to_integer.h (set_fenv_mode): Add
358         NEARBYINT handling.
359         * sysdeps/powerpc/fpu/s_nearbyint.c: New file.
360         * sysdeps/powerpc/fpu/s_nearbyintf.c: Likewise.
361         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: Remove file.
362         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: Likewise.
363         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: Likewise.
364         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: Likewise.
366 2019-05-28  mansayk  <6688000@gmail.com>
368         [BZ #24370]
369         * localedata/locales/tt_RU (lang_name): Add from CLDR-35.1.
371 2019-05-28  mansayk  <6688000@gmail.com>
373         [BZ #24369]
374         * localedata/locales/tt_RU (mon): Update from CLDR-35.1, fix errors.
375         (abmon): Likewise, but remove the trailing dots.
377 2019-05-28  Joseph Myers  <joseph@codesourcery.com>
379         * inet/netinet/igmp.h (IGMP_MRDISC_ADV): New macro.
381 2019-05-27  Florian Weimer  <fweimer@redhat.com>
383         * nptl/nptl-init.c: Add comment.
385 2019-05-24  Florian Weimer  <fweimer@redhat.com>
387         * resolv/nss_dns/dns-host.c (getanswer_r): Be more explicit about
388         struct in_addr/struct in6_addr alignment.
390 2019-05-23  Joseph Myers  <joseph@codesourcery.com>
392         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
393         (F_SEAL_FUTURE_WRITE): New macro.
395 2019-05-23 Alexandra Hajkova  <ahajkova@redhat.com>
397        * elf/Makefile (test-container): Add tst-ldconfig-bad-aux-cache.
398        * elf/tst-ldconfig-bad-aux-cache.c: New file.
399        * elf/tst-ldconfig_aux-cache.root: New directory.
400        * elf/tst-ldconfig-bad-aux-cache.root/postclean.req: New file.
401        * elf/tst-ldconfig-bad-aux-cache.root/etc: New directory.
402        * elf/tst-ldconfig-bad-aux-cache.root/etc/ld.so.conf: New file.
404 2019-05-22  Zack Weinberg  <zackw@panix.com>
406         * sysdeps/powerpc/preconfigure: Error out on powerpc-*-*gnuspe*
407         host type.
408         * scripts/build-many-glibcs.py: Remove powerpc-*-linux-gnuspe
409         and powerpc-*-linux-gnuspe-e500v1 from list of build configurations.
411         * sysdeps/powerpc/powerpc32/e500: Recursively delete.
412         * sysdeps/unix/sysv/linux/powerpc/powerpc32/e500: Recursively delete.
413         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/context-e500.h:
414         Delete.
416         * sysdeps/powerpc/fpu_control.h: Remove SPE variant.
417         Issue an #error if used with a compiler in SPE-float mode.
418         * sysdeps/powerpc/powerpc32/__longjmp_common.S
419         * sysdeps/powerpc/powerpc32/setjmp_common.S
420         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S
421         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/getcontext.S
422         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/setcontext.S
423         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/swapcontext.S
424         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
425         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
426         Remove code to preserve SPE register state.
428         * sysdeps/unix/sysv/linux/powerpc/elision-lock.c
429         * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c
430         * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c:
431         Remove __SPE__ ifndefs.
433 2019-05-21  Wilco Dijkstra  <wdijkstr@arm.com>
435         * benchtests/bench-memcpy-random.c (do_one_test): Use medium iterations.
436         * benchtests/bench-memcpy-walk.c (test_main): Reduce alignment tests.
437         * benchtests/bench-memmem.c (do_one_test): Use small iterations.
438         * benchtests/bench-memmove-walk.c (test_main): Reduce alignment tests.
439         * benchtests/bench-memset-walk.c (test_main): Reduce alignment tests.
440         * benchtests/bench-strcasestr.c (do_one_test): Use small iterations.
441         * benchtests/bench-string.h (INNER_LOOP_ITERS): Increase iterations.
442         (INNER_LOOP_ITERS_MEDIUM): New define.
443         (INNER_LOOP_ITERS_SMALL): New define.
444         * benchtests/bench-strpbrk.c (do_one_test): Use medium iterations.
445         * benchtests/bench-strsep.c (do_one_test): Use small iterations.
446         * benchtests/bench-strspn.c (do_one_test): Use medium iterations.
447         * benchtests/bench-strstr.c (do_one_test): Use small iterations.
448         * benchtests/bench-strtok.c (do_one_test): Use small iterations.
450 2019-05-21  Adhemeval Zanella  <adhemerval.zanella@linaro.org>
452         * sysdeps/unix/sysv/linux/powerpc/ipc_priv.h (SEMTIMEDOP_IPC_ARGS):
453         New define.
454         * sysdeps/unix/sysv/linux/sparc/sparc64/ipc_priv.h
455         (SEMTIMEDOP_IPC_ARGS): Likewise.
457 2019-05-21  Florian Weimer  <fweimer@redhat.com>
459         [BZ #24584]
460         * wcsmbs/wcsmbsload.c (__wcsmbs_clone_conv): Acquire __gconv_lock
461         before updating __counter field and release it afterwards.  Add
462         overflow check.
463         * iconv/gconv.h (struct __gconv_step): Mention synchronization
464         requirement for __counter member.
466 2019-05-21  Florian Weimer  <fweimer@redhat.com>
468         [BZ #24583]
469         * wcsmbs/wcsmbsload.h (__wcsmbs_close_conv): Declare.
470         * wcsmbs/wcsmbsload.c (__wcsmbs_close_conv): Define.
471         * libio/iofclose.c (_IO_new_fclose): Call __wcsmbs_close_conv
472         instead of __gconv_release_step.
473         * libio/Makefile (tests): Add tst-wfile-gconv.
474         (tests-container): Add tst-wfile-ascii.
475         (tst-wfile-gconv-ENV): Enable mtrace.
476         (generated): Add tst-wfile-gconv.mtrace, tst-wfile-gconv.check.
477         (tests-special): Add tst-wfile-gconv-mem.out.
478         (tst-wfile-gconv.out): Depend on locales.
479         (tst-wfile-gconv-mem.out): Add mtrace rule.
480         * libio/tst-wfile-ascii.c: New file.
481         * libio/tst-wfile-gconv.c: Likewise.
483 2019-05-20  Florian Weimer  <fweimer@redhat.com>
485         [BZ #24588]
486         libio: Remove codecvt vtable.
487         * libio/fileops.c ( _IO_new_file_fopen): Do not copy
488         __libio_codecvt.
489         * libio/iofgetpos.c (_IO_new_fgetpos): Call
490         __libio_codecvt_encoding.
491         * libio/iofgetpos64.c (_IO_new_fgetpos): Likewise.
492         * libio/iofsetpos.c (_IO_new_fsetpos): Likewise.
493         * libio/iofsetpos64.c (_IO_new_fsetpos): Likewise.
494         * libio/iofwide.c (__libio_codecvt): Remove variable.
495         (_IO_fwide): Do not copy __libio_codecvt.
496         (__libio_codecvt_out): Rename from do_out and export.
497         (do_unshift): Remove function.
498         (__libio_codecvt_in): Rename from do_in and export.
499         (__libio_codecvt_encoding): Rename from do_encoding and export.
500         (do_always_noconv): Remove function.
501         (__libio_codecvt_length): Rename from do_length and export.
502         (do_max_length): Remove function.
503         * libio/libio.h (enum __codecvt_result): Remove definition; moved
504         to libioP.h.
505         (struct _IO_codecvt): Remove fields __codecvt_destr,
506         __codecvt_do_out, __codecvt_do_unshift, __codecvt_do_in,
507         __codecvt_do_encoding, __codecvt_do_always_noconv,
508         __codecvt_do_length, __codecvt_do_max_length.
509         * libio/libioP.h (enum __codecvt_result): Define; moved from
510         libio.h.
511         (__libio_codecvt_out, __libio_codecvt_in)
512         (__libio_codecvt_encoding, __libio_codecvt_length): Declare
513         functions.
514         * libio/wfileops.c (_IO_wdo_write): Call __libio_codecvt_out.
515         (_IO_wfile_underflow): Call __libio_codecvt_in.
516         (_IO_wfile_underflow): Likewise.
517         (_IO_wfile_underflow_mmap): Likewise.
518         (_IO_wfile_sync): Call __libio_codecvt_encoding,
519         __libio_codecvt_length.
520         (adjust_wide_data): Call __libio_codecvt_encoding,
521         __libio_codecvt_in.
522         (do_ftell_wide): Call __libio_codecvt_length, __libio_codecvt_out.
523         (_IO_wfile_seekoff): Call __libio_codecvt_encoding,
524         __libio_codecvt_length.
526 2019-05-20  Florian Weimer  <fweimer@redhat.com>
528         * support/support.h (support_sbindir_prefix): Declare.
529         (support_install_rootsbindir): Update comment.
530         * support/Makefile (CFLAGS-support_paths.c): Define SBINDIR_PATH.
531         * support/support_paths.c (support_sbindir_prefix): Define.
533 2019-05-20  Mike Crowe  <mac@mcrowe.com>
535         * support/timespec.c: Add backslash to correct newline in failure
536         message.
538         * support/timespec.h: Correct confusing comment.
540 2019-05-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
542         * sysdeps/unix/sysv/linux/ipc_priv.h (SEMTIMEDOP_IPC_ARGS): New
543         define.
544         * sysdpes/unix/sysv/linux/s390/ipc_priv.h: New file.
545         * sysdeps/unix/sysv/linux/s390/semtimedop.c: Remove file.
546         * sysdeps/unix/sysv/linux/semtimedop.c (semtimedop): Use
547         SEMTIMEDOP_IPC_ARGS for calls with __NR_ipc.
549         [BZ #24570]
550         * sysdeps/unix/sysv/linux/msgctl.c (__old_msgctl): Remove __IPC_64
551         usage.
553 2019-05-20  Joseph Myers  <joseph@codesourcery.com>
555         * elf/elf.h (NT_ARM_PACA_KEYS): New macro.
556         (NT_ARM_PACG_KEYS): Likewise.
558 2019-05-17  Wilco Dijkstra  <wdijkstr@arm.com>
560         * malloc/malloc.c (MAX_TCACHE_COUNT): Increase to UINT16_MAX.
561         (tcache_put): Remove redundant assert.
562         (tcache_get): Remove redundant asserts.
563         (__libc_malloc): Check tcache count is not zero.
564         * manual/tunables.texi (glibc.malloc.tcache_count): Update maximum.
566 2019-05-17  Florian Weimer  <fweimer@redhat.com>
568         * manual/llio.texi (Open-time Flags): Document O_DIRECTORY.
570 2019-05-16  Joseph Myers  <joseph@codesourcery.com>
572         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
573         (__ASSUME_STATFS64): Only undefine if [__LINUX_KERNEL_VERSION <
574         0x050100].
575         * sysdeps/unix/sysv/linux/ia64/kernel-features.h (__ASSUME_STATX):
576         Likewise.
577         * sysdeps/unix/sysv/linux/sh/kernel-features.h
578         (__ASSUME_STATX): Likewise.
580 2019-05-16  Florian Weimer  <fweimer@redhat.com>
582         * nis/nss_nis/nis-hosts.c (EXTRA_ARGS, EXTRA_ARGS_DECL): Remove
583         flags argument.
584         (LINE_PARSER): Do not map IPv4 addresses.
585         (internal_nis_gethostent_r): Remove flags argument.  Adjust call
586         to parse_line.
587         (_nss_nis_gethostent_r): Always pass AF_INET to
588         internal_nis_gethostent_r.
589         (internal_gethostbyname2_r): Remove flags argument.  Adjust call
590         to parse_line.
591         (_nss_nis_gethostbyname2_r): Adjust call to
592         internal_nis_gethostent_r.
593         (_nss_nis_gethostbyname_r): Do not attempt IPv6 query.  Adjust
594         call to internal_nis_gethostent_r.
595         (_nss_nis_gethostbyaddr_r): Do not request IPv4 address mapping
596         from parse_line.
597         (_nss_nis_gethostbyname4_r):Adjust call to parse_line.
598         * nis/nss_nisplus/nisplus-hosts.c (_nss_nisplus_parse_hostent):
599         Remove flags argument.  Do not map IPv4 addresses.
600         (internal_nisplus_gethostent_r): Adjust call to
601         _nss_nisplus_parse_hostent.
602         (internal_gethostbyname2_r): Remove flags argument.  Adjust call
603         to _nss_nisplus_parse_hostent.
604         (_nss_nisplus_gethostbyname2_r): Adjust call to
605         internal_gethostbyname2_r.
606         (_nss_nisplus_gethostbyname_r): Do not perform IPv6 lookup.
607         Adjust call to internal_gethostbyname2_r.
608         (_nss_nisplus_gethostbyaddr_r): Adjust call to
609         _nss_nisplus_parse_hostent.
610         (_nss_nisplus_gethostbyname4_r): Adjust call to
611         internal_gethostbyname2_r.
613 2019-05-16  Florian Weimer  <fweimer@redhat.com>
615         * nss/nss_files/files-hosts.c (EXTRA_ARGS, EXTRA_ARGS_DECL):
616         Remove flags.
617         (LINE_PARSER): Remove address mapping.
618         (EXTRA_ARGS_VALUE): Remove flags argument.
619         (gethostbyname3_multi): Likewise.  Adjust call to internal_getent.
620         (_nss_files_gethostbyname3_r): Adjust calls to internal_getent and
621         gethostbyname3_multi.
622         (_nss_files_gethostbyname_r): Always use AF_INET.  Adjust call to
623         _nss_files_gethostbyname3_r.
624         (_nss_files_gethostbyname4_r): Adjust call to internal_getent.
626 2019-05-16  Florian Weimer  <fweimer@redhat.com>
628         * support/support_test_compare_blob.c (report_blob): Report
629         incorrect NULL blobs.
631 2019-05-15  Mark Wielaard  <mark@klomp.org>
633         [BZ# 24476]
634         * dlfcn/dlerror.c (__dlerror_main_freeres): Guard using
635         __libc_once_get (once) and static_buf == NULL.
636         (__dlerror): Check we have a valid key, set result to static_buf
637         otherwise.
639 2019-05-15  Andreas Schwab  <schwab@suse.de>
641         [BZ #20568]
642         * libio/wfileops.c (_IO_wfile_sync): Correct last argument to
643         __codecvt_do_length.
644         * libio/Makefile (tests): Add tst-wfile-sync.
645         ($(objpfx)tst-wfile-sync.out): Depend on $(gen-locales).
646         * libio/tst-wfile-sync.c: New file.
647         * libio/tst-wfile-sync.input: New file.
649 2019-05-15  Florian Weimer  <fweimer@redhat.com>
651         nss: Turn __nss_database_lookup into a compatibility symbol.
652         * nss/nsswitch.h (__nss_database_lookup2): Renamed from
653         __nss_database_lookup.
654         * nss/nsswitch.c (__nss_database_lookup2): Likewise.
655         (nss_load_all_libraries): Call __nss_database_lookup2 instead of
656         __nss_database_lookup.
657         (__nss_next): Move to …
658         * nss/compat-lookup.c (nss_next): … here.  Change it to fail
659         unconditionally.
660         (__nss_database_lookup): New function.
661         * nss/Versions (GLIBC_2.0): Update comment.
662         (GLIBC_PRIVATE): Export __nss_database_lookup2.
663         * grp/initgroups.c (internal_getgrouplist): Call
664         __nss_database_lookup2 instead of __nss_database_lookup.
665         * nscd/aicache.c (addhstaiX): Likewise.
666         * nscd/initgrcache.c (addinitgroupsX): Likewise.
667         * nscd/netgroupcache.c (addgetnetgrentX): Likewise.
668         * nss/XXX-lookup.c (DB_LOOKUP_FCT): Likewise.
669         * nss/nss_compat/compat-grp.c (init_nss_interface): Likewise.
670         * nss/nss_compat/compat-initgroups.c (init_nss_interface):
671         Likewise.
672         * nss/nss_compat/compat-pwd.c (init_nss_interface): Likewise.
673         * nss/nss_compat/compat-spwd.c (init_nss_interface): Likewise.
674         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
676 2019-05-15  Alexandra Hajkova  <ahajkova@redhat.com>
678         * support/support.h (support_install_rootsbindir): New variable.
679         * support/support_paths.c: Likewise.
680         * support/Makefile (CFLAGS-support_paths.c): Add -DROOTSBINDIR_PATH.
682 2019-05-15  Florian Weimer  <fweimer@redhat.com>
684         * iconv/gconv.h (__gconv_transliterate): Move declaration …
685         * iconv/gconv_int.h (__gconv_transliterate): … here.
686         * iconv/loop.c: Include <iconv/gconv_int.h> instead of <gconv.h>.
687         * iconv/skeleton.c: Likewise.
689 2019-05-14  Florian Weimer  <fweimer@redhat.com>
691         Linux: Add the tgkill function.
692         * bits/signal_ext.h: New file.
693         * manual/signal.texi (Signaling Another Process): Document tgkill.
694         * signal/Makefile (headers): Add bits/signal_ext.h.
695         * signal/signal.h: Include <bits/signal_ext.h>.
696         * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-tgkill.
697         (tst-tgkill): Link with libpthread.
698         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.30): Export tgkill.
699         * sysdeps/unix/sysv/linux/bits/signal_ext.h: New file.
700         * sysdeps/unix/sysv/linux/bits/tst-tgkill.c: Likewise.
701         * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.30): Add
702         tgkill.
703         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
704         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
705         * sysdeps/unix/sysv/linux/csky/libc.abilist: Likewise.
706         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
707         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
708         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
709         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
710         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
711         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
712         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
713         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
714         Likewise.
715         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
716         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
717         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
718         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
719         Likewise.
720         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
721         Likewise.
722         * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libc.abilist:
723         Likewise.
724         * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libc.abilist:
725         Likewise.
726         * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
727         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
728         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
729         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
730         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
731         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
732         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
733         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
735 2019-05-14  Carlos O'Donell  <carlos@redhat.com>
737         * manual/search.texi (Tree Search Function): Adjust twalk_r
738         documentation.
740 2019-05-14  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
742         [BZ #24544]
743         * elf/tst-pldd.c (do_test): Use support_bindir_prefix instead of
744         pre-defined value.
746         * support/Makefile (CFLAGS-support_paths.c): Add -DBINDIR_PATH.
747         * support/support.h (support_bindir_prefix): New variable.
748         * support/support_paths.c [BINDIR_PATH] (support_bindir_prefix):
750         * config.make.in (bindir): New variable.
752         * sysdeps/nptl/lowlevellock.h (__lll_trylock): New macro.
753         (lll_trylock): Call __lll_trylock.
754         * sysdeps/unix/sysv/linux/i386/libc-lowlevellock.S: Remove file.
755         * sysdeps/unix/sysv/linux/i386/lll_timedlock_wait.c: Likewise.
756         * sysdeps/unix/sysv/linux/i386/lowlevellock.S: Likewise.
757         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
758         * sysdeps/unix/sysv/linux/x86_64/libc-lowlevellock.S: Likewise.
759         * sysdeps/unix/sysv/linux/x86_64/lll_timedlock_wait.c: Likewise.
760         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
761         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
762         * sysdeps/unix/sysv/linux/x86/lowlevellock.h: New file.
763         * sysdeps/unix/sysv/linux/x86_64/cancellation.S: Include
764         lowlevellock-futex.h.
766         * nptl/nptl-init.c (__pthread_initialize_minimal_internal): Remove
767         initialization for LLL_LOCK_INITIALIZER different than 0.
768         * nptl/old_pthread_cond_broadcast.c (__pthread_cond_broadcast_2_0):
769         Assume LLL_LOCK_INITIALIZER being 0.
770         * nptl/old_pthread_cond_signal.c (__pthread_cond_signal_2_0): Likewise.
771         * nptl/old_pthread_cond_timedwait.c (__pthread_cond_timedwait_2_0):
772         Likewise.
773         * nptl/old_pthread_cond_wait.c (__pthread_cond_wait_2_0): Likewise.
774         * sysdeps/nptl/libc-lockP.h (__libc_lock_define_initialized): Likewise.
776         * nptl/lowlevellock.c (__lll_lock_wait, __lll_lock_wait_private):
777         Optimize futex call and add systemtap probe.
779         * nptl/pthreadP.h (CANCEL_ASYNC, CANCEL_RESET, LIBC_CANCEL_ASYNC,
780         LIBC_CANCEL_RESET, __libc_enable_asynccancel,
781         __libc_disable_asynccancel, __librt_enable_asynccancel,
782         __libc_disable_asynccancel, __librt_enable_asynccancel,
783         __librt_disable_asynccancel): Move to ...
784         * sysdeps/unix/sysv/linux/sysdep-cancel.h: ... here.
785         (SINGLE_THREAD_P, RTLD_SINGLE_THREAD_P): Move to ...
786         * sysdeps/unix/sysv/linux/single-thread.h: ... here.
787         * sysdeps/generic/single-thread.h: New file.
788         * sysdeps/unix/sysdep.h: Include single-thread.h.
789         * sysdeps/unix/sysv/linux/futex-internal.h: Include sysdep-cancel.h.
790         * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Likewise.
792 2019-05-08  Mike FABIAN  <mfabian@redhat.com>
794         [BZ #24535]
795         * localedata/unicode-gen/Makefile (UNICODE_VERSION): Set to 12.1.0.
796         * localedata/unicode-gen/DerivedCoreProperties.txt: Update to
797         Unicode 12.1.0.
798         * localedata/unicode-gen/EastAsianWidth.txt: Likewise.
799         * localedata/unicode-gen/PropList.txt: Likewise.
800         * localedata/unicode-gen/UnicodeData.txt: Likewise.
801         * localedata/charmaps/UTF-8: Regenerate.
802         * localedata/locales/i18n_ctype: Likewise.
803         * localedata/locales/tr_TR: Likewise.
804         * localedata/locales/translit_circle: Likewise.
805         * localedata/locales/translit_cjk_compat: Likewise.
806         * localedata/locales/translit_combining: Likewise.
807         * localedata/locales/translit_compat: Likewise.
808         * localedata/locales/translit_font: Likewise.
809         * localedata/locales/translit_fraction: Likewise.
811 2019-05-10  Wilco Dijkstra  <wdijkstr@arm.com>
813         [BZ #24531]
814         * malloc/malloc.c (MAX_TCACHE_COUNT): New define.
815         (do_set_tcache_count): Only update if count is small enough.
816         * manual/tunables.texi (glibc.malloc.tcache_count): Document max value.
818 2019-05-10  Florian Weimer  <fweimer@redhat.com>
820         * nptl/sem_close.c (struct walk_closure): Define.
821         (walker): Adjust for __twalk_r.
822         (sem_close): Call __twalk_r.
824 2019-05-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
826         * support/timespec.c (test_timespec_before_impl,
827         test_timespec_equal_or_after_impl): print timespec member as intmax_t
828         insted of long int.
830 2019-05-09  Mike Crowe <mac@mcrowe.com>
832         * nptl/tst-abstime.c: Use libsupport.
834         * nptl/tst-rwlock6.c: Use libsupport. This also happens to fix a
835         small bug where only tv.tv_usec was checked which could cause an
836         erroneous pass if pthread_rwlock_timedrdlock incorrectly took more
837         than a second.
839         * nptl/tst-rwlock7.c, nptl/tst-rwlock9.c, nptl/tst-rwlock14.c: Use
840         libsupport.
842         * nptl/tst-sem5.c (do_test): Use xclock_gettime, timespec_add and
843         TEST_TIMESPEC_NOW_OR_AFTER from libsupport.
845         * nptl/tst-cond11.c: Use libsupport.
847         * support/timespec.h: New file.  Provide timespec helper functions
848         along with macros in the style of those in check.h.
849         * support/timespec.c: New file.  Implement check functions declared
850         in support/timespec.h.
851         * support/timespec-add.c: New file from gnulib containing
852         timespec_add implementation that handles overflow.
853         * support/timespec-sub.c: New file from gnulib containing
854         timespec_sub implementation that handles overflow.
855         * support/README: Mention timespec.h.
857 2019-05-09  Szabolcs Nagy  <szabolcs.nagy@arm.com>
859         [BZ #24537]
860         * nptl/Makefile: Move tst-eintr1 to xtests.
862 2019-05-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
864         * sysdeps/powerpc/fpu/trunc_to_integer.h (set_fenv_mode): Add
865          TRUNC handling.
866         (round_mode): Add definition for TRUNC.
867         * sysdeps/powerpc/fpu/s_trunc.c: New file.
868         * sysdeps/powerpc/fpu/s_truncf.c: New file.
869         * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Remove file.
870         * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Likewise.
871         * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_trunc-power5+.S:
872         Likewise.
873         * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_trunc-ppc32.S:
874         Likewise.
875         * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_truncf-power5+.S:
876         Likewise.
877         * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_truncf-ppc32.S:
878         Likewise.
879         * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_trunc-power5+.c: New
880         file.
881         * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_trunc-ppc32.c:
882         Likewise.
883         * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_truncf-power5+.c:
884         Likewise.
885         * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_truncf-ppc32.c:
886         Likewise.
887         * sysdep/powerpc/powerpc32/power5+/fpu/s_trunc.S: Remove file.
888         * sysdep/powerpc/powerpc32/power5+/fpu/s_truncf.S: Likewise.
889         * sysdep/powerpc/powerpc64/be/fpu/multiarch/Makefile
890         (libm-sysdep_routines): Add s_trunc-power5+, s_trunc-ppc64,
891         s_truncf-power5+, and s_truncf-ppc64.
892         (CFLAGS-s_trunc-power5+.c, CFLAGS-s_truncf-power5+.c): New rule.
893         * sysdep/powerpc/powercp64/be/fpu/multiarch/s_trunc-power5+.c: New
894         file.
895         * sysdep/powerpc/powercp64/be/fpu/multiarch/s_trunc-ppc64.c: Likewise.
896         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: Move to ...
897         * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_trunc.c: ... here.
898         * sysdep/powerpc/powercp64/be/fpu/multiarch/s_truncf-power5+.c: New
899         file.
900         * sysdep/powerpc/powercp64/be/fpu/multiarch/s_truncf-ppc64.c:
901         Likewise.
902         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Move to ...
903         * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_truncf.c: ... here.
904         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
905         (libm-sysdep_routines): Remove s_trunc-power5+, s_trunc-ppc64,
906         s_truncf-power5+, and s_truncf-ppc64.
907         * sysdep/powerpc/powerpc64/fpu/multiarch/s_trunc-power5+.S: Remove
908         file.
909         * sysdep/powerpc/powerpc64/fpu/multiarch/s_trunc-ppc64.S: Likewise.
910         * sysdep/powerpc/powerpc64/fpu/multiarch/s_truncf-power5+.S:
911         Likewise.
912         * sysdep/powerpc/powerpc64/fpu/multiarch/s_truncf-ppc64.S: Likewise.
913         * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Likewise.
914         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Likewise.
915         * sysdep/powerpc/powerpc64/power5+/fpu/s_trunc.S: Likewise.
916         * sysdep/powerpc/powerpc64/power5+/fpu/s_truncf.S: Likewise.
918         * sysdeps/powerpc/fpu/round_to_integer.h (set_fenv_mode): Add
919         ROUND handling.
920         (round_mode): Add definition for ROUND.
921         (round_to_integer_float): Likewise.
922         * sysdeps/powerpc/fpu/s_round.c: New file.
923         * sysdeps/powerpc/fpu/s_roundf.c: New file.
924         * sysdeps/powerpc/powerpc32/fpu/s_round.S: Remove file.
925         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Likewise.
926         * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_round-power5+.S:
927         Likewise.
928         * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_round-ppc32.S:
929         Likewise.
930         * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_roundf-power5+.S:
931         Likewise.
932         * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_roundf-ppc32.S:
933         Likewise.
934         * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_round-power5+.c: New
935         file.
936         * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_round-ppc32.c:
937         Likewise.
938         * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_roundf-power5+.c:
939         Likewise.
940         * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_roundf-ppc32.c:
941         Likewise.
942         * sysdep/powerpc/powerpc32/power5+/fpu/s_round.S: Remove file.
943         * sysdep/powerpc/powerpc32/power5+/fpu/s_roundf.S: Likewise.
944         * sysdep/powerpc/powerpc64/be/fpu/multiarch/Makefile
945         (libm-sysdep_routines): Add s_round-power5+, s_round-ppc64,
946         s_roundf-power5+, and s_roundf-ppc64.
947         (CFLAGS-s_round-power5+.c, CFLAGS-s_roundf-power5+.c): New rule.
948         * sysdep/powerpc/powercp64/be/fpu/multiarch/s_round-power5+.c: New
949         file.
950         * sysdep/powerpc/powercp64/be/fpu/multiarch/s_round-ppc64.c: Likewise.
951         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: Move to ...
952         * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_round.c: ... here.
953         * sysdep/powerpc/powercp64/be/fpu/multiarch/s_roundf-power5+.c: New
954         file.
955         * sysdep/powerpc/powercp64/be/fpu/multiarch/s_roundf-ppc64.c:
956         Likewise.
957         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Move to ...
958         * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_roundf.c: ... here.
959         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
960         (libm-sysdep_routines): Remove s_round-power5+, s_round-ppc64,
961         s_roundf-power5+, and s_roundf-ppc64.
962         * sysdep/powerpc/powerpc64/fpu/multiarch/s_round-power5+.S: Remove
963         file.
964         * sysdep/powerpc/powerpc64/fpu/multiarch/s_round-ppc64.S: Likewise.
965         * sysdep/powerpc/powerpc64/fpu/multiarch/s_roundf-power5+.S:
966         Likewise.
967         * sysdep/powerpc/powerpc64/fpu/multiarch/s_roundf-ppc64.S: Likewise.
968         * sysdeps/powerpc/powerpc64/fpu/s_round.S: Likewise.
969         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Likewise.
970         * sysdep/powerpc/powerpc64/power5+/fpu/s_round.S: Likewise.
971         * sysdep/powerpc/powerpc64/power5+/fpu/s_roundf.S: Likewise.
973         * sysdeps/powerpc/fpu/round_to_integer.h (set_fenv_mode):
974         Add FLOOR option.
975         (round_mode): Add definition for FLOOR.
976         * sysdeps/powerpc/fpu/s_floor.c: New file.
977         * sysdeps/powerpc/fpu/s_floorf.c: Likewise.
978         * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Remove file.
979         * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Likewise.
980         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-power5+.S:
981         Remove file.
982         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-ppc32.S:
983         Likewise
984         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-power5+.S:
985         Likewise.
986         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-ppc32.S:
987         Likewise.
988         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-power5+.c:
989         New file.
990         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-ppc32.c:
991         Likewise.
992         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-power5+.c:
993         Likewise.
994         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-ppc32.c:
995         Likewise.
996         * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: Remove file.
997         * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: Remove file.
998         * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Makefile
999         (libm-sysdep_routines): Add s_floor-power5+, s_floor-ppc64,
1000         s_floorf-power5+, and s_floorf-ppc64.
1001         (CFLAGS-s_floor-power5+.c, CFLAGS-s_floorf-power5+.c): New rule.
1002         * sysdep/powerpc/powerpc64/be/fpu/multiarch/s_floor-power5+.c: New
1003         file.
1004         * sysdep/powerpc/powerpc64/be/fpu/multiarch/s_floor-ppc64.c: Likewise.
1005         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: Move to ...
1006         * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_floor.c: ... here.
1007         * sysdep/powerpc/powerpc64/be/fpu/multiarch/s_floorf-power5+.c: New
1008         file.
1009         * sysdep/powerpc/powerpc64/be/fpu/multiarch/s_floorf-ppc64.c:
1010         Likewise.
1011         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Move to ...
1012         * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_floorf.c: ... here.
1013         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
1014         (libm-sysdep_routines): Remove s_floor-power5+, s_floor-ppc64,
1015         s_floorf-power5+, and s_floorf-ppc64.
1016         * sysdep/powerpc/powerpc64/fpu/multiarch/s_floor-power5+.S: Remove
1017         file.
1018         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-ppc64.S: Remove
1019         file.
1020         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-power5+.S:
1021         Likewise.
1022         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-ppc64.S:
1023         Likewise.
1024         * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Likewise.
1025         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Likewise.
1026         * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: Likewise.
1027         * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: Likewise.
1029 2019-05-08  Mike Crowe  <mac@mcrowe.com>
1031         * support/xclock_gettime.c (xclock_gettime): New file. Provide
1032         clock_gettime wrapper for use in tests that fails the test rather
1033         than returning failure.
1035         * support/xtime.h: New file to declare xclock_gettime.
1037         * support/Makefile: Add xclock_gettime.c.
1039         * support/README: Mention xtime.h.
1041 2019-05-08  Florian Weimer  <fweimer@redhat.com>
1043         malloc/tst-mallocfork2: Use process-shared barriers.
1044         * malloc/tst-mallocfork2.c: Switch to <support/test-driver.c>.
1045         (signal_count, sigusr1_sender_pid): Remove.
1046         (iterations): Define constant.
1047         (shared): New variable.
1048         (sigusr1_received): Update comment.
1049         (sigusr1_handler): Do not send SIGSTOP to the sender process.
1050         (signal_sender): Optional use barriers to avoid sending signals
1051         during irrelevant times.
1052         (do_it): Initialize variable shared.  Use xfork for error
1053         checking.  Launch multiple SIGUSR1-sending subprocesses.  Limit
1054         the iteration count, independent of signal delivery.  Check for
1055         deadlocks in fork.  Introduce barriers for reducing signal
1056         traffic.  Do not send SIGCONT to the SIGUSR1-sending processes;
1057         replaced by the barriers.  Count signals during fork/free/malloc
1058         and report them.
1059         * malloc/Makefile (tst-mallocfork): Link with libpthread.
1061 2019-05-07  Joseph Myers  <joseph@codesourcery.com>
1063         * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
1064         version to 5.1.
1065         (clock_adjtime64) New syscall.
1066         (clock_getres_time64) Likewise.
1067         (clock_gettime64) Likewise.
1068         (clock_nanosleep_time64) Likewise.
1069         (clock_settime64) Likewise.
1070         (futex_time64) Likewise.
1071         (io_pgetevents_time64) Likewise.
1072         (io_uring_enter) Likewise.
1073         (io_uring_register) Likewise.
1074         (io_uring_setup) Likewise.
1075         (mq_timedreceive_time64) Likewise.
1076         (mq_timedsend_time64) Likewise.
1077         (pidfd_send_signal) Likewise.
1078         (ppoll_time64) Likewise.
1079         (pselect6_time64) Likewise.
1080         (recvmmsg_time64) Likewise.
1081         (rt_sigtimedwait_time64) Likewise.
1082         (sched_rr_get_interval_time64) Likewise.
1083         (semtimedop_time64) Likewise.
1084         (timer_gettime64) Likewise.
1085         (timer_settime64) Likewise.
1086         (timerfd_gettime64) Likewise.
1087         (timerfd_settime64) Likewise.
1088         (utimensat_time64) Likewise.
1090         * scripts/build-many-glibcs.py (Context.checkout): Default GCC
1091         version to 9 branch.
1093 2019-05-03  Anton Youdkevitch  <anton.youdkevitch@bell-sw.com>
1095         * sysdeps/aarch64/multiarch/ifunc-impl-list.c: Added
1096         __memmove_thunderx2 to the list of implementations
1097         * sysdeps/aarch64/multiarch/memmove.c: Likewise
1098         * sysdeps/aarch64/multiarch/memcpy_thunderx2.S:
1099         (__memmove_thunderx2): Rewritten using SIMD ld/st
1100         (__memcpy_thunderx2): Fixed handling overlapping cases.
1101         Used ldp/stp instead of ldr/str if possible. Made loops
1102         tails branchless.
1104 2019-05-03  Florian Weimer  <fweimer@redhat.com>
1106         * misc/tst-tsearch.c (walk_tree): Add more error checking.
1108 2019-05-02  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1110         [BZ #24506]
1111         * elf/tst-pldd.c (in_str_list): New function.
1112         (do_test): Add default names for ld and libc as one option.
1114 2019-05-02  Florian Weimer  <fweimer@redhat.com>
1116         misc: Add twalk_r function.
1117         * include/search.h (__twalk_r): Declare.
1118         * manual/examples/twalk.c: New file.
1119         * manual/search.texi (Tree Search Function): Document twalk_r.
1120         * misc/Versions (2.30): Export twalk_r.
1121         (GLIBC_PRIVATE): Export __twalk_r.
1122         * misc/search.h [__USE_GNU] (twalk_r): Declare.
1123         * misc/tsearch.c (trecurse_r, __twalk_r): New functions.
1124         (twalk_r): Add weak alias.
1125         * misc/tst-tsearch.c (struct walk_trace_element): Define.
1126         (walk_trace): New variable.
1127         (struct twalk_with_twalk_r_closure): Define.
1128         (twalk_with_twalk_r_action): New function.
1129         (twalk_with_twalk_r): Likewise.
1130         (walk_action): Call walk_trace_add.
1131         (walk_tree_with): Rename from walk_tree.  Add walk argument.
1132         (walk_tree): New function.
1133         * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.30): Add twalk_r.
1134         * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.30):
1135         Likewise.
1136         * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.30):
1137         Likewise.
1138         * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.30): Likewise.
1139         * sysdeps/unix/sysv/linux/csky/libc.abilist (GLIBC_2.30): Likewise.
1140         * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.30): Likewise.
1141         * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.30): Likewise.
1142         * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.30): Likewise.
1143         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.30):
1144         Likewise.
1145         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.30):
1146         Likewise.
1147         * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.30):
1148         Likewise.
1149         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
1150         (GLIBC_2.30): Likewise.
1151         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
1152         (GLIBC_2.30): Likewise.
1153         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
1154         (GLIBC_2.30): Likewise.
1155         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
1156         (GLIBC_2.30): Likewise.
1157         * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.30):
1158         Likewise.
1159         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
1160         (GLIBC_2.30): Likewise.
1161         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
1162         (GLIBC_2.30): Likewise.
1163         * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libc.abilist
1164         (GLIBC_2.30): Likewise.
1165         * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libc.abilist
1166         (GLIBC_2.30): Likewise.
1167         * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.30):
1168         Likewise.
1169         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.30):
1170         Likewise.
1171         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.30):
1172         Likewise.
1173         * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.30): Likewise.
1174         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.30):
1175         Likewise.
1176         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.30):
1177         Likewise.
1178         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.30):
1179         Likewise.
1180         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.30):
1181         Likewise.
1183 2019-04-30  Paul Eggert  <eggert@cs.ucla.edu>
1185         Make mktime etc. compatible with __time64_t
1186         Keep these functions compatible with Gnulib while adding
1187         __time64_t support.  The basic idea is to move private API
1188         declarations from include/time.h to time/mktime-internal.h, since
1189         the former file cannot easily be shared with Gnulib whereas the
1190         latter can.
1191         Also, do some other minor cleanup while in the neighborhood.
1192         * include/time.h: Include stdbool.h, time/mktime-internal.h.
1193         (__mktime_internal): Move this prototype to time/mktime-internal.h,
1194         since Gnulib needs it.
1195         (__localtime64_r, __gmtime64_r) [__TIMESIZE == 64]:
1196         Move these macros to time/mktime-internal.h, since Gnulib needs them.
1197         (__mktime64, __timegm64) [__TIMESIZE != 64]: New prototypes.
1198         (in_time_t_range): New static function.
1199         * posix/bits/types.h (__time64_t): Move to time/mktime-internal.h,
1200         so that glibc users are not tempted to use __time64_t.
1201         * time/mktime-internal.h: Rewrite so that it does both glibc
1202         and Gnulib work.  Include time.h if not _LIBC.
1203         (mktime_offset_t) [!_LIBC]: Define for gnulib.
1204         (__time64_t): New type or macro, moved here from
1205         posix/bits/types.h.
1206         (__gmtime64_r, __localtime64_r, __mktime64, __timegm64)
1207         [!_LIBC || __TIMESIZE == 64): New macros, mostly moved here
1208         from include/time.h.
1209         (__gmtime_r, __localtime_r, __mktime_internal) [!_LIBC]:
1210         New macros, taken from GNulib.
1211         (__mktime_internal): New prototype, moved here from include/time.h.
1212         * time/mktime.c (mktime_min, mktime_max, convert_time)
1213         (ranged_convert, __mktime_internal, __mktime64):
1214         * time/timegm.c (__timegm64):
1215         Use __time64_t, not time_t.
1216         * time/mktime.c: Stop worrying about whether time_t is floating-point.
1217         (__mktime64) [! (_LIBC && __TIMESIZE != 64)]:
1218         Rename from mktime.
1219         (mktime) [_LIBC && __TIMESIZE != 64]: New function.
1220         * time/timegm.c [!_LIBC]: Include libc-config.h, not config.h,
1221         for libc_hidden_def.
1222         Include errno.h.
1223         (__timegm64) [! (_LIBC && __TIMESIZE != 64)]:
1224         Rename from timegm.
1225         (timegm) [_LIBC && __TIMESIZE != 64]: New function.
1227 2019-04-30  Maciej W. Rozycki  <macro@wdc.com>
1229         [BZ #19444]
1230         * sysdeps/ieee754/soft-fp/s_ddivl.c (__ddivl): Ignore errors
1231         from `-Wmaybe-uninitialized'.
1232         * sysdeps/ieee754/soft-fp/s_fdivl.c (__fdivl): Likewise.
1234 2019-04-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1236         * sysdeps/powerpc/fpu/fenv_libc.h (__fesetround_inline_nocheck): New
1237         function.
1238         * sysdeps/powerpc/fpu/round_to_integer.h: New file.
1239         * sysdeps/powerpc/fpu/s_ceil.c: Likewise.
1240         * sysdeps/powerpc/fpu/s_ceilf.c: Likewise.
1241         * sysdeps/powerpc/powerpc32/fpu/s_ceil.S: Remove file.
1242         * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
1243         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
1244         (CFLAGS-s_ceil-power5+.c, CFLAGS-s_ceilf-power5+.c): New rule.
1245         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-power5+.S:
1246         Remove file.
1247         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-ppc32.S:
1248         Likewise.
1249         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-power5+.S:
1250         Likewise.
1251         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-ppc32.S:
1252         Likewise.
1253         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-power5+.c:
1254         New file.
1255         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-ppc32.c:
1256         Likewise.
1257         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-power5+.c:
1258         Likewise.
1259         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-ppc32.c:
1260         Likewise.
1261         * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: Remove file.
1262         * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: Likewise.
1263         * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Makefile: New file.
1264         * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceil-power5+.c:
1265         Likewise.
1266         * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceil-ppc64.c:
1267         Likewise.
1268         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: Move to ...
1269         * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceil.c: ... here.
1270         * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceilf-power5+.c: New
1271         file.
1272         * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceilf-ppc64.c:
1273         Likewise.
1274         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Move to ...
1275         * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceilf.c: ...
1276         * here.
1277         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
1278         (libm-sysdep_routines): Remove s_ceil-power5+, s_ceil-ppc64,
1279         s_ceilf-power5+, and s_ceilf-ppc64.
1280         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-power5+.S: Remove
1281         file.
1282         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-ppc64.S: Likewise.
1283         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-power5+.S: Likewise.
1284         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-ppc64.S: Likewise.
1285         * sysdeps/powerpc/powerpc64/fpu/s_ceil.S: Likewise.
1286         * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Likewise.
1287         * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: Likewise.
1288         * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: Likewise.
1290         * sysdeps/powerpc/power4/fpu/Makefile: Remove file.
1291         * sysdeps/powerpc/power4/fpu/mpa-arch.h: Likewise.
1292         * sysdeps/powerpc/power4/fpu/mpa.c: Likewise.
1294 2019-04-29  Yann Droneaud  <ydroneaud@opteya.com>
1296         * sysdeps/pthread/semaphore.h (sem_init): Add __nonnull attribute.
1297         (sem_destroy, sem_open, sem_close, sem_unlink): Likewise.
1298         (sem_wait, sem_timedwait, sem_trywait, sem_post): Likewise.
1299         (sem_getvalue): Likewise.
1301 2019-04-26  Florian Weimer  <fweimer@redhat.com>
1303         elf: Link sotruss-lib.so with BIND_NOW for --enable-bind-now.
1304         * elf/Makefile (LDFLAGS-sotruss-lib.so): Set.
1306 2019-04-26  Florian Weimer  <fweimer@redhat.com>
1308         Makeconfig: Move -Wl,-rpath-link options before library references.
1309         * Makeconfig (+link-pie, +link): Add $(link-libc-rpath-link).
1310         (link-libc): Remove $(link-libc-rpath-link).
1312 2019-04-25  Florian Weimer  <fweimer@redhat.com>
1314         * Makeconfig (+link-pie-before-libc): Remove $(CC).
1315         (+link-pie, +link-pie-tests, +link-pie-printers-tests): Add $(CC).
1316         (+link-static-before-libc): Remove $(CC).
1317         (+link-static, +link-static-tests): Add $(CC).
1318         (+link-before-libc): Remove $(CC).
1319         (+link, +link-pie, +link-pie-printers): Add $(CC).
1321 2019-04-26  Florian Weimer  <fweimer@redhat.com>
1323         * Makeconfig (+link-pie-before-libc): Remove $(CC).
1324         (+link-pie, +link-pie-tests, +link-pie-printers-tests): Add $(CC).
1325         (+link-static-before-libc): Remove $(CC).
1326         (+link-static, +link-static-tests): Add $(CC).
1327         (+link-before-libc): Remove $(CC).
1328         (+link, +link-pie, +link-pie-printers): Add $(CC).
1330 2019-04-25  David Abdurachmanov  <david.abdurachmanov@gmail.com>
1332         [BZ#24484]
1333         * sysdeps/riscv/ldsodefs.h (DL_RO_DYN_SECTION): Remove.
1335 2019-04-25  Florian Weimer  <fweimer@redhat.com>
1337         benchtests: Enable BIND_NOW if configured with --enable-bind-now.
1338         * benchtests/Makefile [$(bind-now)] (link-bench-bind-now): Set.
1339         (bench-link-targets): New variable.
1340         ($(binaries-bench) …): Use it.  Set LDFLAGS accordingly.
1342 2019-04-25  Florian Weimer  <fweimer@redhat.com>
1344         Also enable BIND_NOW for programs if --enable-bind-now.
1345         * Makeconfig [$(bind-now)] (link-extra-flags): Add -Wl,-z,now.
1346         (+link-pie): Use $(link-extra-flags).
1347         (+link-static): Likewise.
1348         [! $(build-pie-default)] (+link): Likewise.
1349         * manual/install.texi (Configuring and compiling): Update
1350         --enable-bind-now description.
1351         * INSTALL: Regenerated.
1353 2019-04-24  Wilco Dijkstra  <wdijkstr@arm.com>
1355         * benchtests/Makefile (BENCH_DURATION): Set to 1 second.
1356         * benchtests/bench-malloc-thread.c (BENCH_DURATION): Set to 10 seconds.
1358 2019-04-24  Mike Frysinger  <vapier@gentoo.org>
1360         [BZ #18465]
1361         * malloc/Makefile (others): Add memusagestat.
1362         ($(objpfx)memusagestat): Delete rule.
1363         (LDLIBS-memusagestat): New variable.
1365 2019-04-24  Florian Weimer  <fweimer@redhat.com>
1367         * locale/Makefile (tests-special): Guard setting by
1368         $(run-built-tests) == yes, otherwise tst-locale-locpath attempts
1369         to run while cross-compiling.
1371 2019-04-23  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1373         [BZ #18035]
1374         * elf/Makefile (tests-container): Add tst-pldd.
1375         * elf/pldd-xx.c: Use _Static_assert in of pldd_assert.
1376         (E(find_maps)): Avoid use alloca, use default read file operations
1377         instead of explicit LFS names, and fix infinite loop.
1378         * elf/pldd.c: Explicit set _FILE_OFFSET_BITS, cleanup headers.
1379         (get_process_info): Use _Static_assert instead of assert, use default
1380         directory operations instead of explicit LFS names, and free some
1381         leadek pointers.
1382         * elf/tst-pldd.c: New file.
1384 2019-04-23  H.J. Lu  <hongjiu.lu@intel.com>
1386         * malloc/arena.c (do_set_mallopt_check): Removed.
1388 2019-04-23  Florian Weimer  <fweimer@redhat.com>
1390         locale: Add LOCPATH diagnostics to the locale program.
1391         * locale/programs/locale.c (setlocale_failed): New variable.
1392         (try_setlocale): New function.
1393         (quote_string): Likewise.
1394         (setlocale_diagnostics): Likewise.
1395         (main): Call try_setlocale instead of setlocale.  Call
1396         setlocale_diagnostics.
1397         * locale/Makefile (tests-special): Add tst-locale-locpath.out.
1398         (tst-locale-locpath.out): New target.
1399         * locale/tst-locale-locpath.sh: New file.
1401 2019-04-21  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1403         * NEWS: Move memory allocation changes of BZ#23741 from 2.29
1404         to 2.30 notes.
1406 2019-04-18  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1408         [BZ #23741]
1409         * malloc/hooks.c (malloc_check, realloc_check): Use
1410         __builtin_add_overflow on overflow check and adapt to
1411         checked_request2size change.
1412         * malloc/malloc.c (__libc_malloc, __libc_realloc, _mid_memalign,
1413         __libc_pvalloc, __libc_calloc, _int_memalign): Limit maximum
1414         allocation size to PTRDIFF_MAX.
1415         (REQUEST_OUT_OF_RANGE): Remove macro.
1416         (checked_request2size): Change to inline function and limit maximum
1417         requested size to PTRDIFF_MAX.
1418         (__libc_malloc, __libc_realloc, _int_malloc, _int_memalign): Limit
1419         maximum allocation size to PTRDIFF_MAX.
1420         (_mid_memalign): Use _int_memalign call for overflow check.
1421         (__libc_pvalloc): Use __builtin_add_overflow on overflow check.
1422         (__libc_calloc): Use __builtin_mul_overflow for overflow check and
1423         limit maximum requested size to PTRDIFF_MAX.
1424         * malloc/malloc.h (malloc, calloc, realloc, reallocarray, memalign,
1425         valloc, pvalloc): Add __attribute_alloc_size__.
1426         * stdlib/stdlib.h (malloc, realloc, reallocarray, valloc): Likewise.
1427         * malloc/tst-malloc-too-large.c (do_test): Add check for allocation
1428         larger than PTRDIFF_MAX.
1429         * malloc/tst-memalign.c (do_test): Disable -Walloc-size-larger-than=
1430         around tests of malloc with negative sizes.
1431         * malloc/tst-posix_memalign.c (do_test): Likewise.
1432         * malloc/tst-pvalloc.c (do_test): Likewise.
1433         * malloc/tst-valloc.c (do_test): Likewise.
1434         * malloc/tst-reallocarray.c (do_test): Replace call to reallocarray
1435         with resulting size allocation larger than PTRDIFF_MAX with
1436         reallocarray_nowarn.
1437         (reallocarray_nowarn): New function.
1438         * NEWS: Mention the malloc function semantic change.
1440 2019-04-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1442         * sysdeps/powerpc/fpu/s_fma.c: Fix format.
1443         * sysdeps/powerpc/fpu/s_fmaf.c: Likewise.
1445         * sysdeps/powerpc/fpu/s_fma.S: Remove file.
1446         * sysdeps/powerpc/fpu/s_fmaf.S: Likewise.
1447         * sysdeps/powerpc/fpu/s_fma.c: New file.
1448         * sysdeps/powerpc/fpu/s_fmaf.c: Likewise.
1450         * sysdeps/powerpc/fpu/s_fabs.S: Remove file.
1451         * sysdeps/powerpc/fpu/s_fabsf.S: Likewise.
1453         * sysdeps/unix/sysv/linux/mips/getcontext.S (__getcontext): Remove
1454         the magic flag store.
1455         * sysdeps/unix/sysv/linux/mips/makecontext.S (__makecontext):
1456         Likewise.
1457         * sysdeps/unix/sysv/linux/mips/swapcontext.S (__swapcontext):
1458         Likewise.
1459         * sysdeps/unix/sysv/linux/mips/setcontext.S (__setcontext):
1460         Remove rt_sigreturn call.
1462         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S:
1463         Remove rt_sigreturn call.
1464         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
1465         Likewise.
1466         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Likewie.
1467         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
1469         * support/Makefile (libsupport-routines): Add support_subprocess,
1470         xposix_spawn, xposix_spawn_file_actions_addclose, and
1471         xposix_spawn_file_actions_adddup2.
1472         (tst-support_capture_subprocess-ARGS): New rule.
1473         * support/capture_subprocess.h (support_capture_subprogram): New
1474         prototype.
1475         * support/support_capture_subprocess.c (support_capture_subprocess):
1476         Refactor to use support_subprocess and support_capture_poll.
1477         (support_capture_subprogram): New function.
1478         * support/tst-support_capture_subprocess.c (write_mode_to_str,
1479         str_to_write_mode, test_common, parse_int, handle_restart,
1480         do_subprocess, do_subprogram, do_multiple_tests): New functions.
1481         (do_test): Add support_capture_subprogram tests.
1482         * support/subprocess.h: New file.
1483         * support/support_subprocess.c: Likewise.
1484         * support/xposix_spawn.c: Likewise.
1485         * support/xposix_spawn_file_actions_addclose.c: Likewise.
1486         * support/xposix_spawn_file_actions_adddup2.c: Likewise.
1487         * support/xspawn.h: Likewise.
1489 2019-04-17  Mike Gerow  <gerow@google.com>
1491         * stdlib/tst-secure-getenv.c (choose_gid): Remove 64 supplemental
1492         groups limit.
1494 2019-04-11  Florian Weimer  <fweimer@redhat.com>
1496         * resolv/nss_dns/dns-network.c (getanswer_r): Do not replace root
1497         domain with empty string.
1498         * resolv/nss_dns/dns-host.c (getanswer_r): Likewise.
1500 2019-04-11  Florian Weimer  <fweimer@redhat.com>
1502         * include/alloc_buffer.h (alloc_buffer_alloc_bytes): Update
1503         comment.
1504         (alloc_buffer_next): Change return type to non-const.  Update
1505         comment.
1507 2019-04-10  TAMUKI Shoichi  <tamuki@linet.gr.jp>
1509         * manual/time.texi (Formatting Calendar Time): Add missing percent
1510         sign to conversion specifier.
1512 2019-04-09  Carlos O'Donell  <carlos@redhat.com>
1513             Kwok Cheung Yeung  <kcy@codesourcery.com>
1515         [BZ #16573]
1516         * malloc/mtrace.c: Define prototypes for all hooks.
1517         (set_default_hooks): New function.
1518         (set_trace_hooks): Likewise.
1519         (save_default_hooks): Likewise.
1520         (tr_freehook): Use new s*_hooks functions.
1521         (tr_mallochook): Likewise.
1522         (tr_reallochook): Likewise.
1523         (tr_memalignhook): Likewise.
1524         (mtrace): Likewise.
1525         (muntrace): Likewise.
1527 2019-04-09  Wilco Dijkstra  <wdijkstr@arm.com>
1529         * benchtests/bench-stpcpy.c (SIMPLE_STPCPY): Remove function.
1530         (generic_stpcpy): New function.
1531         * benchtests/bench-stpncpy.c (SIMPLE_STPNCPY): Remove function.
1532         (generic_stpncpy): New function.
1533         * benchtests/bench-strcat.c (SIMPLE_STRCAT): Remove function.
1534         (generic_strcat): New function.
1535         * benchtests/bench-strcpy.c (SIMPLE_STRCPY): Remove function.
1536         (generic_strcpy): New function.
1537         * benchtests/bench-strncat.c (SIMPLE_STRNCAT): Remove function.
1538         (STUPID_STRNCAT): Remove function.
1539         (generic_strncat): New function.
1540         * benchtests/bench-strncpy.c (SIMPLE_STRNCPY): Remove function.
1541         (STUPID_STRNCPY): Remove function.
1542         (generic_strncpy): New function.
1543         * benchtests/bench-strnlen.c (SIMPLE_STRNLEN): Remove function.
1544         (generic_strnlen): New function.
1545         (memchr_strnlen): New function.
1546         * benchtests/bench-strlen.c (generic_strlen): Define for WIDE.
1547         (memchr_strlen): Likewise.
1549 2019-04-09  Wilco Dijkstra  <wdijkstr@arm.com>
1551         * benchtests/bench-strstr.c (input): Add realistic input text.
1552         (stupid_strstr): Remove function.
1553         (basic_strstr): Add function.
1554         (twoway_strstr): Add function.
1555         (do_one_test): Add result checking.
1556         (do_test): Use new input text.  Remove accidental early matches.
1557         (test_main): Improve range of tests, reduce unaligned cases.
1559 2019-04-09  Wilco Dijkstra  <wdijkstr@arm.com>
1561         * benchtests/bench-memmem.c (simple_memmem): Remove function.
1562         (basic_memmem): Add function.
1563         (twoway_memmem): Add function.
1565 2019-04-09  Wilco Dijkstra  <wdijkstr@arm.com>
1567         * benchtests/bench-malloc-simple.c: Remove TIMING_INIT.
1568         * benchtests/bench-malloc-thread.c: Likewise.
1569         * benchtests/bench-skeleton.c: Likewise.
1570         * benchtests/bench-strtod.c: Likewise.
1571         * benchtests/bench-timing.h: Likewise.
1573 2019-04-08  Florian Weimer  <fweimer@redhat.com>
1575         * resolv/resolv.h (RES_INSECURE1, RES_INSECURE2): Remove
1576         definitions.
1577         * resolv/res_send.c (send_dg): Always perform RES_INSECURE1 and
1578         RES_INSECURE2 security checks.
1579         * resolv/res_debug.c (p_option): Remove RES_INSECURE1 and
1580         RES_INSECURE2 handling.
1582 2019-04-08  Florian Weimer  <fweimer@redhat.com>
1584         resolv: Remove support for RES_USE_INET6 and the inet6 option.
1585         * nscd/aicache.c (addhstaiX): Do not disable RES_USE_INET6.
1586         * nscd/nscd_gehst_r.c (__nscd_gethostbyname_r): Always use
1587         GETHOSTBYNAME.
1588         * resolv/Makefile (tests): Remove tst-res_use_inet6.
1589         (tests-internal): Update justification for tst-resolv-res_init,
1590         tst-resolv-res_init-thread.
1591         (tst-res_use_inet6): Remove target.
1592         (CFLAGS-tst-res_use_inet6.c): Do not set variable.
1593         * resolv/res_debug.c (p_option): Remove "inet6" support.
1594         * resolv/res_init.c (res_setoptions): Likewise.
1595         * resolv/res_use_inet6.h: Remove file.
1596         * resolv/resolv-internal.h (DEPRECATED_RES_USE_INET6): Remove
1597         definition.
1598         (res_use_inet6): Always return false.
1599         * resolv/resolv.h (RES_USE_INET6): Remove definition.
1600         * resolv/resolv_context.h: Adjust file comment.
1601         (struct resolv_context): Update comment on __next field.
1602         (__resolv_context_put): Update comment.
1603         * resolv/tst-res_use_inet6.c: Remove file.
1604         * resolv/tst-resolv-res_init-skeleton.c (print_resp): Remove
1605         "inet6" support.
1606         (test_cases): Adjust test case.
1607         * resolv/tst-resolv-threads.c (byname_inet6) Remove function.
1608         (thread_byname2_af_inet6): Use old byname_inet6 code.
1609         (thread_byname_inet6, thread_byname2_af_inet6): Remove functions.
1610         (gai): Remove do_inet6 argument.
1611         (thread_gai_inet, thread_gai_inet6, thread_gai_unspec): Adjust.
1612         (thread_gai_inet_inet6, thread_gai_inet6_inet6)
1613         (thread_gai_unspec_inet6): Remove functions.
1614         (do_test): Adjust thread_funcs.
1615         * sysdeps/posix/getaddrinfo.c (gethosts): Do not restore
1616         RES_USE_INET6 flag.
1617         (gaih_inet): Do not disable RES_USE_INET6 flag.
1619 2019-04-05  Anton Youdkevitch  <anton.youdkevitch@bell-sw.com>
1621         * sysdeps/aarch64/multiarch/memcpy_thunderx2.S: Cleanup branching
1622         and remove redundant code.
1624 2019-04-04  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1626         * sysdeps/powerpc/Makefile [$(subdir) == wcsmbs] (CFLAGS-wcsrchr.c):
1627         New rule.
1628         * sysdeps/powerpc/power6/wcsrchr.c: Remove file.
1629         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-power6.c:
1630         Likewise.
1631         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-power7.c:
1632         Likewise.
1633         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-ppc32.c:
1634         Likewise.
1635         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr.c: Likewise.
1636         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-power6.c: Likewise.
1637         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-power7.c: Likewise.
1638         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-ppc64.c: Likewise.
1639         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr.c: Likewise.
1640         * sysdeps/powerpc/powerpc64/power6/wcsrchr.c: Likewise.
1641         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile
1642         [$(subdir) == wcsmbs] (sysdeps_routines): Remove wcsrchr-power6 and
1643         wcsrchr-power7.
1644         (CFLAGS-wcsrchr-power7.c, CFLAGS-wcsrchr-power6.c): Remove rule.
1645         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Likewise.
1646         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c:
1647         Remove wcsrchr optimizations.
1648         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Likewise.
1650         * wcsmbs/wcsrchr.c (WCSRCHR): Use loop_unroll.h to parametrize
1651         the loop unroll.
1653         * sysdeps/powerpc/Makefile [$(subdir) == wcsmbs] (CFLAGS-wcschr.c):
1654         New rule.
1655         * sysdeps/powerpc/power6/wcschr.c: Remove file.
1656         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-power6.c:
1657         Likewise.
1658         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-power7.c:
1659         Likewise.
1660         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-ppc32.c:
1661         Likewise.
1662         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr.c: Likewise.
1663         * sysdeps/powerpc/powerpc64/multiarch/wcschr-power6.c: Likewise.
1664         * sysdeps/powerpc/powerpc64/multiarch/wcschr-power7.c: Likewise.
1665         * sysdeps/powerpc/powerpc64/multiarch/wcschr-ppc64.c: Likewise.
1666         * sysdeps/powerpc/powerpc64/multiarch/wcschr.c: Likewise.
1667         * sysdeps/powerpc/powerpc64/power6/wcschr.c: Likewise.
1668         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile
1669         [$(subdir) == wcsmbs] (sysdeps_routines): Remove wcschr-power6 and
1670         wcschr-power7.
1671         (CFLAGS-wcschr-power7.c, CFLAGS-wcschr-power6.c): Remove rule.
1672         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Likewise.
1673         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c:
1674         Remove wcschr optimizations.
1675         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Likewise.
1677         * wcsmbs/wcschr.c (WCSCHR): Use loop_unroll.h to parametrize
1678         the loop unroll.
1680         * sysdeps/powerpc/Makefile [$(subdir) == wcsmbs] (CFLAGS-wcscpy.c):
1681         New rule.
1682         * sysdeps/powerpc/power6/wcscpy.c: Remove file.
1683         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-power6.c:
1684         Likewise.
1685         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-power7.c:
1686         Likewise.
1687         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-ppc32.c:
1688         Likewise.
1689         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c: Likewise.
1690         * sysdeps/powerpc/powerpc64/multiarch/wcscpy-power6.c: Likewise.
1691         * sysdeps/powerpc/powerpc64/multiarch/wcscpy-power7.c: Likewise.
1692         * sysdeps/powerpc/powerpc64/multiarch/wcscpy-ppc64.c: Likewise.
1693         * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c: Likewise.
1694         * sysdeps/powerpc/powerpc64/power6/wcscpy.c: Likewise.
1695         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile
1696         [$(subdir) == wcsmbs] (sysdeps_routines): Remove wcscpy-power6 and
1697         wcscpy-power7.
1698         (CFLAGS-wcscpy-power7.c, CFLAGS-wcscpy-power6.c): Remove rule.
1699         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Likewise.
1700         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c:
1701         Remove wcscpy optimizations.
1702         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Likewise.
1704         * include/loop_unroll.h: New file.
1705         * wcsmbs/wcscpy (__wcscpy): Add option to use loop unrolling
1706         besides generic implementation.
1708 2019-04-03  DJ Delorie  <dj@redhat.com>
1710         * time/tst-strftime3.c (tm_to_printed): Disable warning about
1711         snprintf truncating output.
1713 2019-04-02  DJ Delorie  <dj@redhat.com>
1715         * time/tst-strftime3.c: Add new Japanese era tests.  Fix printf
1716         warning.
1718 2019-04-02  TAMUKI Shoichi  <tamuki@linet.gr.jp>
1720         [BZ #22964]
1721         * localedata/locales/ja_JP (LC_TIME): Add entry for the new Japanese
1722         era.
1723         * time/tst-strftime2.c (dates): Add 2019-04-30 and 2019-05-01.
1724         (mkreftable): Add rules for the new Japanese era and the new dates.
1726 2019-04-02  TAMUKI Shoichi  <tamuki@linet.gr.jp>
1727             Rafal Luzynski  <digitalfreak@lingonborough.com>
1729         * time/tst-strftime2.c (date_t): Explicitly define the type.
1730         (dates): Use natural month and year numbers to express a date.
1731         (is_before): New function to compare dates.
1732         (mkreftable): Minor improvements to simplify maintenance.
1733         (do_test): Reflect the changes in dates array.
1735         [BZ #24293]
1736         * time/Makefile (LOCALES): Add zh_TW.UTF-8, cmn_TW.UTF-8,
1737         hak_TW.UTF-8, nan_TW.UTF-8, and lzh_TW.UTF-8.
1738         * time/tst-strftime2.c (locales): Likewise.
1739         (dates): Add 1910-04-01, 1911-12-31, 1912-01-01, 1913-04-01,
1740         2010-04-01, and 2011-04-01.
1741         (mkreftable): Add rules for the new locales and the new dates.
1743 2019-04-01  Carlos O'Donell  <carlos@redhat.com>
1745         * localedata/locales/ja_JP: Add comments to era entries.
1747 2019-04-01  DJ Delorie  <dj@redhat.com>
1749         [BZ #24394]
1750         * time/strptime_l.c (%Ey): Fix fencepost error.
1751         * time/tst-strftime3.c: New.
1752         * time/Makefile (tests): Add tst-strftime3.
1754 2019-04-01  Uros Bizjak  <ubizjak@gmail.com>
1756         * sysdeps/alpha/divqu.S (__divqu): Move save of $f0 and excb after
1757         conditional branch to DIVBYZERO.  Fix unwind info.
1758         * sysdeps/alpha/remqu.S (__remqu): Move saves of $f0, $f1, $f2 and
1759         excb after conditional branch to $powerof2.  Add missing unop
1760         instructions and .align directives and reorder instructions to
1761         match __divqu.
1763 2019-04-01  Richard Henderson  <rth@twiddle.net>
1765         * sysdeps/unix/sysv/linux/alpha/kernel-features.h (__NR_shmat):
1766         Do not redefine.
1767         * sysdeps/unix/sysv/linux/alpha/sysdep.h (__NR_osf_shmat):
1768         Do not redefine.
1770 2019-03-30  Maciej W. Rozycki  <macro@wdc.com>
1772         * sysdeps/unix/sysv/linux/riscv/configure.ac: Quote
1773         $libc_cv_riscv_float_abi in `test' invocation.
1774         * sysdeps/unix/sysv/linux/riscv/configure: Regenerate.
1776 2019-03-29  Paul A. Clarke  <pc@us.ibm.com>
1778         * sysdeps/powerpc/fpu/fenv_libc.h (fegetenv_register): Replace inline
1779         asm with builtin.
1780         * sysdeps/powerpc/powerpc64/le/fpu/sfp-machine.h (FP_INIT_ROUNDMODE):
1781         Likewise.
1782         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_GET_DI_FPSCR): Likewise.
1783         (_GET_SI_FPSCR): Likewise.
1784         (_SET_SI_FPSCR): Likewise.
1786 2019-03-26  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1788         * math/math.h (fpclassify, isfinite, isnormal, isnan): Use builtin for
1789         clang 2.8.
1790         (signbit): Use builtin for clang 3.3.
1791         (isinf): Use builtin for clang 3.7.
1793 2019-03-25  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1795         * sysdeps/powerpc/fpu/s_float_bitwise.h: Remove file.
1797 2019-03-25  Andreas K. Hüttel  <dilfridge@gentoo.org>
1799         * nss/tst-nss-files-alias-leak.c (do_test): add missing opening
1800         quote in printf.
1802 2019-03-25  Mike Crowe  <mac@mcrowe.com>
1804         * nptl/tst-rwlock14.c (do_test): Replace duplicate calls to
1805         pthread_rwlock_timedrdlock with calls to
1806         pthread_rwlock_timedwrlock to ensure that the latter is tested
1807         too. Use new function name in diagnostic messages too.
1809         * nptl/tst-sem5.c: Remove unused headers. Add <support/check.h>.
1810         (do_test) Use libsupport test macros rather than hand-coded
1811         conditionals and error messages. Ensure that sem_init returns zero
1812         rather than not -1. Use <support/test-driver.c> rather than
1813         test-skeleton.c.
1815         * nptl/tst-sem13.c: Add <support/check.h>. (do_test) Use libsupport
1816         test macros rather than hand-coded conditionals and error messages.
1817         Use <support/test-driver.c> rather than test-skeleton.c.
1819 2019-03-25  Joseph Myers  <joseph@codesourcery.com>
1821         * sysdeps/gnu/netinet/udp.h (UDP_GRO): New macro.
1823         * elf/elf.h (NT_ARM_PAC_MASK): New macro.
1824         (NT_MIPS_MSA): Likewise.
1826 2019-03-22  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1828         * benchtests/Makefile (USE_CLOCK_GETTIME) Remove.
1829         * benchtests/README: Update description.
1830         * benchtests/bench-timing.h: Default to hp-timing.
1831         * sysdeps/generic/hp-timing.h (HP_TIMING_DIFF, HP_TIMING_ACCUM_NT,
1832         HP_TIMING_PRINT): Remove.
1833         (HP_TIMING_NOW): Add generic implementation.
1834         (hp_timing_t): Change to uint64_t.
1836         * benchtests/bench-timing.h: Replace HP_TIMING_AVAIL with
1837         HP_TIMING_INLINE.
1838         * nptl/descr.h: Likewise.
1839         * elf/rtld.c (RLTD_TIMING_DECLARE, RTLD_TIMING_NOW, RTLD_TIMING_DIFF,
1840         RTLD_TIMING_ACCUM_NT, RTLD_TIMING_SET): Define.
1841         (dl_start_final_info, _dl_start_final, dl_main, print_statistics):
1842         Abstract hp-timing usage with RTLD_* macros.
1843         * sysdeps/alpha/hp-timing.h (HP_TIMING_INLINE): Define iff IS_IN(rtld).
1844         (HP_TIMING_AVAIL, HP_SMALL_TIMING_AVAIL): Remove.
1845         * sysdeps/generic/hp-timing.h (HP_TIMING_AVAIL, HP_SMALL_TIMING_AVAIL,
1846         HP_TIMING_NONAVAIL): Likewise.
1847         * sysdeps/ia64/hp-timing.h (HP_TIMING_AVAIL, HP_SMALL_TIMING_AVAIL):
1848         Likewise.
1849         * sysdeps/powerpc/powerpc32/power4/hp-timing.h (HP_TIMING_AVAIL,
1850         HP_SMALL_TIMING_AVAIL): Likewise.
1851         * sysdeps/powerpc/powerpc64/hp-timing.h (HP_TIMING_AVAIL,
1852         HP_SMALL_TIMING_AVAIL): Likewise.
1853         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h (HP_TIMING_AVAIL,
1854         HP_SMALL_TIMING_AVAIL): Likewise.
1855         * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_AVAIL,
1856         HP_SMALL_TIMING_AVAIL): Likewise.
1857         * sysdeps/x86/hp-timing.h (HP_TIMING_AVAIL, HP_SMALL_TIMING_AVAIL):
1858         Likewise.
1859         * sysdeps/generic/hp-timing-common.h: Update comment with
1860         HP_TIMING_AVAIL removal.
1862         * include/random-bits.h: New file.
1863         * resolv/res_mkquery.c [HP_TIMING_AVAIL] (RANDOM_BITS,
1864         (__res_context_mkquery): Remove usage hp-timing usage and replace with
1865         random_bits.
1866         * resolv/res_send.c [HP_TIMING_AVAIL] (nameserver_offset): Likewise.
1867         * sysdeps/posix/tempname.c [HP_TIMING_AVAIL] (__gen_tempname):
1868         Likewise.
1870         * include/libc-internal.h (__get_clockfreq): Remove prototype.
1871         * rt/Makefile (clock-routines): Remove get_clockfreq.
1872         * rt/get_clockfreq.c: Remove file.
1873         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c: Likewise.
1874         * sysdeps/unix/sysv/linux/ia64/get_clockfreq.c: Likewise.
1875         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Likewise.
1876         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Move code to ...
1877         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: ... here.
1879         * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c: Remove file.
1880         * sysdeps/unix/sysv/linux/ia64/sysconf.c: Likewise.
1881         * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock): Remove function.
1882         (__sysconf): Assume kernel support for _SC_MONOTONIC_CLOCK,
1883         _SC_CPUTIME, and _SC_THREAD_CPUTIME.
1885         * nptl/Makefile (libpthread-routines): Remove pthread_clock_gettime and
1886         pthread_clock_settime.
1887         * nptl/pthreadP.h (__find_thread_by_id): Remove prototype.
1888         * elf/dl-support.c [!HP_TIMING_NOAVAIL] (_dl_cpuclock_offset): Remove.
1889         (_dl_non_dynamic_init): Remove _dl_cpuclock_offset setting.
1890         * elf/rtld.c (_dl_start_final): Likewise.
1891         * nptl/allocatestack.c (__find_thread_by_id): Remove function.
1892         * sysdeps/generic/ldsodefs.h [!HP_TIMING_NOAVAIL] (_dl_cpuclock_offset):
1893         Remove.
1894         * sysdeps/mach/hurd/dl-sysdep.c [!HP_TIMING_NOAVAIL]
1895         (_dl_cpuclock_offset): Remove.
1896         * nptl/descr.h (struct pthread): Rename cpuclock_offset to
1897         cpuclock_offset_ununsed.
1898         * nptl/nptl-init.c (__pthread_initialize_minimal_internal): Remove
1899         cpuclock_offset set.
1900         * nptl/pthread_create.c (START_THREAD_DEFN): Likewise.
1901         * sysdeps/nptl/fork.c (__libc_fork): Likewise.
1902         * nptl/pthread_clock_gettime.c: Remove file.
1903         * nptl/pthread_clock_settime.c: Likewise.
1904         * sysdeps/unix/clock_gettime.c (hp_timing_gettime): Remove function.
1905         [HP_TIMING_AVAIL] (realtime_gettime): Remove CLOCK_THREAD_CPUTIME_ID
1906         and CLOCK_PROCESS_CPUTIME_ID support.
1907         * sysdeps/unix/clock_settime.c (hp_timing_gettime): Likewise.
1908         [HP_TIMING_AVAIL] (realtime_gettime): Likewise.
1909         * sysdeps/posix/clock_getres.c (hp_timing_getres): Likewise.
1910         [HP_TIMING_AVAIL] (__clock_getres): Likewise.
1911         * sysdeps/unix/clock_nanosleep.c (CPUCLOCK_P, INVALID_CLOCK_P):
1912         Likewise.
1913         (__clock_nanosleep): Remove CPUCLOCK_P and INVALID_CLOCK_P usage.
1915 2019-03-22  Stefan Liebler  <stli@linux.ibm.com>
1917         * sysdeps/s390/Makefile (sysdep_routines): Add memmem-arch13.
1918         * sysdeps/s390/ifunc-memmem.h (HAVE_MEMMEM_ARCH13, MEMMEM_ARCH13,
1919         MEMMEM_Z13_ONLY_USED_AS_FALLBACK, HAVE_MEMMEM_IFUNC_AND_ARCH13_SUPPORT):
1920         New defines.
1921         * sysdeps/s390/memmem-arch13.S: New file.
1922         * sysdeps/s390/memmem-vx.c: Omit GI symbol for z13 memmem ifunc variant
1923         if it is only used as fallback.
1924         * sysdeps/s390/memmem.c (memmem): Add arch13 variant in ifunc selector.
1925         * sysdeps/s390/multiarch/ifunc-impl-list.c
1926         (__libc_ifunc_impl_list): Add ifunc variant for arch13 memmem.
1928 2019-03-22  Stefan Liebler  <stli@linux.ibm.com>
1930         * sysdeps/s390/Makefile (sysdep_routines): Add strstr-arch13.
1931         * sysdeps/s390/ifunc-strstr.h (HAVE_STRSTR_ARCH13, STRSTR_ARCH13,
1932         STRSTR_Z13_ONLY_USED_AS_FALLBACK, HAVE_STRSTR_IFUNC_AND_ARCH13_SUPPORT):
1933         New defines.
1934         * sysdeps/s390/multiarch/ifunc-impl-list.c
1935         (__libc_ifunc_impl_list): Add ifunc variant for arch13 strstr.
1936         * sysdeps/s390/strstr-arch13.S: New file.
1937         * sysdeps/s390/strstr-vx.c: Omit GI symbol for z13 strstr ifunc variant
1938         if it is only used as fallback.
1939         * sysdeps/s390/strstr.c (strstr): Add arch13 variant in ifunc selector.
1941 2019-03-22  Stefan Liebler  <stli@linux.ibm.com>
1943         * sysdeps/s390/ifunc-memcpy.h (HAVE_MEMMOVE_ARCH13, MEMMOVE_ARCH13
1944         HAVE_MEMMOVE_IFUNC_AND_ARCH13_SUPPORT): New defines.
1945         * sysdeps/s390/memcpy-z900.S: Add arch13 memmove implementation.
1946         * sysdeps/s390/memmove.c (memmove): Add arch13 variant in
1947         ifunc selector.
1948         * sysdeps/s390/multiarch/ifunc-impl-list.c
1949         (__libc_ifunc_impl_list): Add ifunc variant for arch13 memmove.
1950         * sysdeps/s390/multiarch/ifunc-resolve.h (S390_STFLE_BITS_ARCH13_MIE3,
1951         S390_IS_ARCH13_MIE3): New defines.
1953 2019-03-22  Stefan Liebler  <stli@linux.ibm.com>
1955         * config.h.in (HAVE_S390_MIN_ARCH13_ZARCH_ASM_SUPPORT,
1956         HAVE_S390_ARCH13_ASM_SUPPORT): New undefine.
1957         * sysdeps/s390/configure.ac: Add checks for arch13 support.
1958         * sysdeps/s390/configure: Regenerated.
1960 2019-03-22  Stefan Liebler  <stli@linux.ibm.com>
1962         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags):
1963         Add vxe2, vxp, dflt, sort flags.
1964         * sysdeps/s390/dl-procinfo.h: Add HWCAP_S390_VXRS_EXT2,
1965         HWCAP_S390_VXRS_PDE, HWCAP_S390_SORT, HWCAP_S390_DFLT
1966         capabilities.
1967         (HWCAP_IMPORTANT): Add HWCAP_S390_VXRS_EXT2.
1968         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h
1969         (HWCAP_S390_VXRS_EXT2, HWCAP_S390_VXRS_PDE, HWCAP_S390_SORT,
1970         HWCAP_S390_DFLT): Define.
1972 2019-03-21  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
1974         [BZ #24372]
1975         * iconv/iconvconfig.c (write_output): Add parentheses to get rid
1976         of compiler warning.
1977         * locale/programs/ld-collate.c (collate_output): Likewise.
1979 2019-03-21  DJ Delorie  <dj@redhat.com>
1981         [BZ #24372]
1982         * iconv/iconvconfig.c (write_output): Replace floating point math
1983         with integer math to avoid imprecise results.
1984         * locale/programs/ld-collate.c (collate_output): Likewise.
1986 2019-03-21  Stefan Liebler  <stli@linux.ibm.com>
1988         * sysdeps/s390/dl-procinfo.h (HWCAP_IMPORTANT):
1989         Add HWCAP_S390_VX and HWCAP_S390_VXE.
1991 2019-03-20  mansayk  <6688000@gmail.com>
1993         [BZ #24296]
1994         * localedata/locales/tt_RU (day): Update from CLDR-34, fix errors.
1995         (abday): Likewise, but remove the trailing dots.
1997 2019-03-19  Joseph Myers  <joseph@codesourcery.com>
1999         * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SB): New
2000         macro.
2001         (HWCAP_PACA): Likewise.
2002         (HWCAP_PACG): Likewise.
2003         * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
2004         Increase to 32.
2005         (_dl_aarch64_cap_flags): Add new entries for new HWCAPs.
2007 2019-03-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
2009         * hurd/hurd/signal.h (_hurd_critical_section_lock): Document how EINTR
2010         should be handled.
2012 2019-03-15  Joseph Myers  <joseph@codesourcery.com>
2014         * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
2015         version to 5.0.
2016         (old_getpagesize): New syscall.
2018 2019-03-15  Felix Yan  <felixonmars@archlinux.org>
2020         [BZ #24293]
2021         * localedata/locales/zh_TW (era): Add, support Minguo calendar.
2022         * localedata/locales/cmn_TW (era): Likewise.
2023         * localedata/locales/hak_TW (era): Likewise.
2024         * localedata/locales/lzh_TW (era): Likewise.
2025         * localedata/locales/nan_TW (era): Likewise.
2027 2019-03-14  Adam Maris  <amaris@redhat.com>
2029         * malloc/malloc.c (_int_malloc): Check for large bin list
2030         corruption when inserting unsorted chunk.
2032 2019-03-14  Florian Weimer  <fweimer@redhat.com>
2034         Remove obsolete, never-implemented XSI STREAMS declarations.
2035         * manual/terminal.texi (Allocation): Remove portability note and
2036         adjust example.
2037         * sysdeps/posix/sysconf.c (__sysconf): Always return -1 for
2038         _SC_STREAMS.
2039         * sysdeps/unix/sysv/linux/syscalls.list (getpmsg, putpmsg): Remove.
2040         * sysdeps/unix/inet/Subdirs (streams): Remove.
2041         * conform/Makefile (conformtest-headers-XPG42): Remove stropts.h.
2042         (conformtest-headers-UNIX98): Likewise.
2043         (conformtest-headers-XOPEN2K): Likewise.
2044         (conformtest-headers-POSIX2008): Likewise.
2045         * posix/compat-streams.c: New file.
2046         * posix/Makefile (routines): Add it.
2047         * posix/Versions (GLIBC_2.1): Add fattach, fdetach, getmsg,
2048         getpmsg, isastream, putmsg, putpmsg.
2049         (GLIBC_2.30): New section.
2050         * bits/stropts.h: Remove file.
2051         * bits/xtitypes.h: Likewise.
2052         * conform/data/stropts.h-data: Likewise.
2053         * include/stropts.h: Likewise.
2054         * include/sys/stropts.h: Likewise.
2055         * include/xtitypes.h: Likewise.
2056         * streams/Makefile: Likewise.
2057         * streams/fattach.c: Likewise.
2058         * streams/fdetach.c: Likewise.
2059         * streams/getmsg.c: Likewise.
2060         * streams/getpmsg.c: Likewise.
2061         * streams/isastream.c: Likewise.
2062         * streams/putmsg.c: Likewise.
2063         * streams/putpmsg.c: Likewise.
2064         * streams/stropts.h: Likewise.
2065         * streams/sys/stropts.h: Likewise.
2066         * sysdeps/ia64/bits/xtitypes.h: Likewise.
2067         * sysdeps/s390/bits/xtitypes.h: Likewise.
2068         * sysdeps/unix/sysv/linux/i386/getmsg.c: Likewise.
2069         * sysdeps/unix/sysv/linux/i386/putmsg.c: Likewise.
2070         * sysdeps/unix/sysv/linux/m68k/getmsg.c: Likewise.
2071         * sysdeps/unix/sysv/linux/m68k/putmsg.c: Likewise.
2072         * sysdeps/unix/sysv/linux/mips/getmsg.c: Likewise.
2073         * sysdeps/unix/sysv/linux/mips/putmsg.c: Likewise.
2074         * sysdeps/unix/sysv/linux/powerpc/getmsg.c: Likewise.
2075         * sysdeps/unix/sysv/linux/powerpc/putmsg.c: Likewise.
2076         * sysdeps/x86/bits/xtitypes.h: Likewise.
2078 2019-03-14  Florian Weimer  <fweimer@redhat.com>
2080         * nss/tst-nss-files-alias-truncated.c (do_test): Load
2081         libnss_files.
2082         * nss/Makefile (tst-nss-files-alias-truncated): Link with -ldl,
2083         but not with libnss_files.
2084         (tst-nss-files-alias-truncated.out): Depend on libnss_files.
2086 2019-03-14  Zack Weinberg  <zackw@panix.com>
2088         * scripts/check-obsolete-constructs.py (HeaderChecker.check):
2089         Specify encoding="utf-8" when opening headers to check.
2091 2019-03-13  Joseph Myers  <joseph@codesourcery.com>
2093         * scripts/build-many-glibcs.py (Context.checkout): Default Linux
2094         version to 5.0.
2095         (Context.checkout_tar): Handle variable major version for Linux
2096         kernel.
2098 2019-03-13  Florian Weimer  <fweimer@redhat.com>
2100         [BZ #24047]
2101         * sysdeps/mach/hurd/res_enable_icmp.c: New file.
2103 2019-03-13  Zack Weinberg  <zackw@panix.com>
2105         * sysdeps/generic/inttypes.h, sysdeps/generic/stdint.h:
2106         Move to stdlib.
2107         * include/inttypes.h: Adjust to match.
2108         * include/stdint.h: New wrapper.
2110 2019-03-13  Zack Weinberg  <zackw@panix.com>
2112         * scripts/check-obsolete-constructs.py: New test script.
2113         * scripts/check-installed-headers.sh: Remove tests for
2114         obsolete typedefs, superseded by check-obsolete-constructs.py.
2115         * Rules: Run scripts/check-obsolete-constructs.py over $(headers)
2116         as a special test.  Update commentary.
2117         * posix/bits/types.h (__SQUAD_TYPE, __S64_TYPE): Define as __int64_t.
2118         (__UQUAD_TYPE, __U64_TYPE): Define as __uint64_t.
2119         Update commentary.
2120         * posix/sys/types.h (__u_intN_t): Remove.
2121         (u_int8_t): Typedef using __uint8_t.
2122         (u_int16_t): Typedef using __uint16_t.
2123         (u_int32_t): Typedef using __uint32_t.
2124         (u_int64_t): Typedef using __uint64_t.
2126 2019-03-13  Stefan Liebler  <stli@linux.ibm.com>
2128         * elf/dl-sysdep.c (_dl_show_auxv): Remove condition and always
2129         call _dl_procinfo.
2130         * sysdeps/unix/sysv/linux/s390/dl-procinfo.h (_dl_procinfo):
2131         Ignore types other than AT_HWCAP.
2132         * sysdeps/sparc/dl-procinfo.h (_dl_procinfo): Likewise.
2133         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h (_dl_procinfo):
2134         Likewise.
2135         * sysdeps/powerpc/dl-procinfo.h (_dl_procinfo): Adjust comment
2136         in the case of falling back to generic output mechanism.
2137         * sysdeps/unix/sysv/linux/arm/dl-procinfo.h (_dl_procinfo):
2138         Likewise.
2140 2019-03-12  Florian Weimer  <fweimer@redhat.com>
2142         * elf/elf.h (DF_1_KMOD, DF_1_WEAKFILTER, DF_1_NOCOMMON): Define.
2144 2019-03-12  Florian Weimer  <fweimer@redhat.com>
2146         [BZ #24047]
2147         resolv: Enable full ICMP errors for UDP DNS sockets
2148         * resolv/res_enable_icmp.c: New file.
2149         * resolv/Makefile (libresolv-routines): Add res_enable_icmp.
2150         * resolv/resolv-internal.h (__res_enable_icmp): Declare.
2151         * resolv/res_send.c (reopen): Call __res_enable_icmp on new
2152         socket.
2154 2019-03-11  Mao Han  <han_mao@c-sky.com>
2156         * elf/elf.h (EF_CSKY_ABIMASK, EF_CSKY_OTHER, EF_CSKY_PROCESSOR)
2157         (EF_CSKY_ABIV1, EF_CSKY_ABIV2, SHT_CSKY_ATTRIBUTES): New defines.
2159 2019-03-11  Mao Han  <han_mao@c-sky.com>
2161         * sysdeps/csky/abiv2/start.S: Mark lr as undefined.
2162         * sysdeps/unix/sysv/linux/csky/abiv2/clone.S: Likewise.
2163         * sysdeps/unix/sysv/linux/csky/abiv2/setcontext.S: Likewise.
2165 2019-03-11  Mao Han  <han_mao@c-sky.com>
2167         * sysdeps/unix/sysv/linux/csky/sys/procfs.h: Use linux definition
2168         directly.
2169         * sysdeps/unix/sysv/linux/csky/sys/user.h: Remove user_regs
2170         definition.
2172 2019-03-11  Mao Han  <han_mao@c-sky.com>
2174         * sysdeps/unix/sysv/linux/csky/register-dump.h: Adjust offset change.
2175         * sysdeps/unix/sysv/linux/csky/sys/ucontext.h: Remove __mask field
2176         in mcontext_t
2178 2019-03-08  Mike FABIAN  <mfabian@redhat.com>
2180         [BZ #24307]
2181         * localedata/unicode-gen/Makefile (UNICODE_VERSION): Set to 12.0.0.
2182         * localedata/unicode-gen/DerivedCoreProperties.txt: Update to
2183         Unicode 12.0.0.
2184         * localedata/unicode-gen/EastAsianWidth.txt: Likewise.
2185         * localedata/unicode-gen/PropList.txt: Likewise.
2186         * localedata/unicode-gen/UnicodeData.txt: Likewise.
2187         * localedata/unicode-gen/ctype_compatibility_test_cases.py: U+108D
2188         became "Alphabetic" in Unicode 12.0.0. Adapt test case.
2189         * localedata/charmaps/UTF-8: Regenerate.
2190         * localedata/locales/i18n_ctype: Likewise.
2191         * localedata/locales/tr_TR: Likewise.
2192         * localedata/locales/translit_circle: Likewise.
2193         * localedata/locales/translit_cjk_compat: Likewise.
2194         * localedata/locales/translit_combining: Likewise.
2195         * localedata/locales/translit_compat: Likewise.
2196         * localedata/locales/translit_font: Likewise.
2197         * localedata/locales/translit_fraction: Likewise.
2199 2019-03-07  Joseph Myers  <joseph@codesourcery.com>
2201         * stdio-common/vfscanf-internal.c (ARG): Break lines before rather
2202         than after operators.
2203         * sysdeps/mach/hurd/setitimer.c (timer_thread): Likewise.
2204         (setitimer_locked): Likewise.
2205         * sysdeps/mach/hurd/sigaction.c (__sigaction): Likewise.
2206         * sysdeps/mach/hurd/sigaltstack.c (__sigaltstack): Likewise.
2207         * sysdeps/mach/pagecopy.h (PAGE_COPY_FWD): Likewise.
2208         * sysdeps/mach/thread_state.h (machine_get_basic_state): Likewise.
2209         * sysdeps/powerpc/powerpc64/tst-ucontext-ppc64-vscr.c
2210         (PPC_CPU_SUPPORTED): Likewise.
2211         * sysdeps/unix/sysv/linux/alpha/a.out.h (N_TXTOFF): Likewise.
2212         * sysdeps/unix/sysv/linux/generic/wordsize-32/overflow.h
2213         (stat_overflow): Likewise.
2214         (statfs_overflow): Likewise.
2215         * sysdeps/unix/sysv/linux/tst-personality.c (do_test): Likewise.
2216         * sysdeps/unix/sysv/linux/tst-ttyname.c (eq_ttyname): Likewise.
2217         (eq_ttyname_r): Likewise.
2218         (run_chroot_tests): Likewise.
2220 2019-03-07  Florian Weimer  <fweimer@redhat.com>
2222         * scripts/check-wrapper-headers.py (check_headers): Adjust Fortran
2223         header check.
2225 2019-03-07  Martin Liska  <mliska@suse.cz>
2227         * math/Makefile: Change location where math-vector-fortran.h is
2228         installed.
2229         * math/finclude/math-vector-fortran.h: Move from bits/math-vector-fortran.h.
2230         * sysdeps/x86/fpu/finclude/math-vector-fortran.h: Move
2231         from sysdeps/x86/fpu/bits/math-vector-fortran.h.
2232         * scripts/check-installed-headers.sh: Skip Fortran header files.
2233         * scripts/check-wrapper-headers.py: Likewise.
2235 2019-03-05  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2237         * nptl/nptl-init.c (__have_futex_clock_realtime,
2238         __have_futex_clock_realtime): Remove definition.
2239         (__pthread_initialize_minimal_internal): Remove FUTEX_CLOCK_REALTIME
2240         check test for !__ASSUME_FUTEX_CLOCK_REALTIME.
2241         * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Assume
2242         __ASSUME_FUTEX_CLOCK_REALTIME support.
2243         * sysdeps/unix/sysv/linux/i386/lowlevellock.S: Likewise.
2244         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
2245         * sysdeps/unix/sysv/linux/kernel-features.h
2246         (__ASSUME_FUTEX_CLOCK_REALTIME): Remove.
2247         * sysdeps/nptl/lowlevellock-futex.h (lll_futex_timed_wait_bitset):
2248         Adjust comment.
2250 2019-03-05  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
2252         * sysdeps/powerpc/powerpc64/power6/wcscpy.c (WCSCPY): Define to
2253         __wcscpy, then use libc_hidden_def and weak_alias to bind it to
2254         __GI___wcscpy and wcscpy.
2256 2019-03-04  Florian Weimer  <fweimer@redhat.com>
2258         * sysdeps/generic/ldsodefs.h (_dl_sysdep_open_zero_fill): Remove
2259         declaration.
2260         * elf/dl-load.c (_dl_map_object_from_fd): Assume MAP_ANON is
2261         defined.
2263 2019-03-04  Stefan Liebler  <stli@linux.ibm.com>
2265         * sysdeps/s390/s390-64/sysdep.h (ENTRY): Use alignment of 16byte.
2266         * sysdeps/s390/s390-32/sysdep.h: Likewise.
2268 2019-03-02  TAMUKI Shoichi  <tamuki@linet.gr.jp>
2270         [BZ #24162]
2271         * localedata/locales/ja_JP (LC_TIME): Change the offset for Taisho
2272         gan-nen from 2 to 1.  Problem reported by Morimitsu, Junji.
2274 2019-03-01  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
2276         * misc/tst-ldbl-error.c (do_one_test): Adapt for reuse by nldbl
2277         tests.
2278         (do_test): Likewise.
2279         * misc/tst-ldbl-warn.c (do_one_test): Likewise.
2280         (do_test_call_varg): Likewise.
2281         (do_test_call_rarg): Likewise.
2282         * sysdeps/ieee754/ldbl-opt/Makefile
2283         [subdir == misc] (tests-internal): Add tst-nldbl-warn,
2284         tst-nldbl-error.
2285         ($(objpfx)tst-nldbl-warn.c): New rule.
2286         ($(objpfx)tst-nldbl-error.c): Likewise.
2287         (CFLAGS-tst-nldbl-warn.c, CFLAGS-tst-nldbl-error.c):
2288         New variables.
2290 2019-03-01  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
2292         [BZ #23984]
2293         * include/bits/error-ldbl.h: New file.
2294         * include/error.h: Include stdarg.h.  Declare internal functions
2295         __error_internal and __error_at_line_internal.
2296         * misc/Makefile (headers): Add bits/error-ldbl.h.
2297         * misc/bits/error-ldbl.h: New file.
2298         * misc/error.h [__LDBL_COMPAT]: Include bits/error-ldbl.h and
2299         avoid the inclusion of bits/error.h.
2300         * sysdeps/ieee754/ldbl-opt/Versions (libc): Add __nldbl_error,
2301         and __nldbl_error_at_line.
2302         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include error.h.
2303         (__nldbl_error, __ndlbl_error_at_line): New functions.
2304         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Include error.h.
2305         Redirect error and error_at_line.
2306         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Update.
2307         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
2308         Likewise.
2309         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
2310         Likewise.
2311         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
2312         Likewise.
2313         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
2314         Likewise.
2315         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
2316         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
2317         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
2319 2019-03-01  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
2321         [BZ #23984]
2322         * include/bits/err-ldbl.h: New file.
2323         * include/err.h: Add prototypes for the internal functions:
2324         __vwarnx_internal and __vwarn_internal.
2325         * misc/Makefile (headers): Add bits/err-ldbl.h.
2326         * misc/bits/err-ldbl.h: New file.
2327         * misc/err.h: Include bits/err-ldbl.h when __LDBL_COMPAT is
2328         defined, i.e.: when -mlong-double-64 is in use.
2329         * sysdeps/ieee754/ldbl-opt/Versions (libc): Add __nldbl_warn,
2330         __nldbl_vwarn, __nldbl_warnx, __nldbl_vwarnx, __nldbl_err,
2331         __nldbl_verr, __nldbl_errx, and __nldbl_verrx.
2332         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include err.h.
2333         (VA_CALL): New macro.
2334         (__nldbl_vwarn, __nldbl_vwarnx, __nldbl_warn, __nldbl_warnx)
2335         (__nldbl_verr, __nldbl_verrx, __nldbl_err, __nldbl_errx): New
2336         functions.
2337         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Include err.h and
2338         declare prototypes for the new functions.
2339         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Update.
2340         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
2341         Likewise.
2342         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
2343         Likewise.
2344         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
2345         Likewise.
2346         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
2347         Likewise.
2348         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
2349         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
2350         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
2352 2019-03-01  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
2354         * sysdeps/ieee754/ldbl-opt/Makefile
2355         [subdir == argp] (tests-internal): Add tst-nldbl-argp.
2356         [subdir == argp] ($(objpfx)tst-nldbl-argp.c): New rule.
2357         [subdir == argp] (CFLAGS-tst-nldbl-argp.c): New variable.
2359 2019-03-01  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
2361         [BZ #23983]
2362         * argp/Makefile (headers): Add bits/argp-ldbl.h.
2363         * argp/argp.h [defined __LDBL_COMPAT]: Include bits/argp-ldbl.h.
2364         * argp/bits/argp-ldbl.h: New file.
2365         * include/argp.h: Include stdarg.h.  Add prototypes for internal
2366         functions: __argp_error_internal and __argp_failure_internal.
2367         * include/bits/argp-ldbl.h: New file.
2368         * sysdeps/ieee754/ldbl-opt/Versions (libc): Add
2369         __nldbl_argp_error and __nldbl_argp_failure.
2370         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include argp.h.
2371         (__nldbl_argp_error, __nldbl_argp_failure): New functions.
2372         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Include argp.h.
2373         Redirect argp_error and argp_failure calls.
2374         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Update.
2375         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
2376         Likewise.
2377         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
2378         Likewise.
2379         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
2380         Likewise.
2381         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
2382         Likewise.
2383         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
2384         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
2385         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
2387 2019-03-01  Florian Weimer  <fweimer@redhat.com>
2389         [BZ #20419]
2390         * elf/tst-big-note-lib.S: Create a syntactically valid note.
2391         * elf/Makefile (tst-big-note-lib.so): Do not link with startup
2392         code, to avoid creating an ABI tag note.
2393         (modules-names-nobuild): Add tst-big-note-lib.
2395 2019-03-01  Stefan Liebler  <stli@linux.ibm.com>
2397         * sysdeps/s390/wcscpy-vx.S: Add strong aliases to
2398         __wcscpy, __GI___wcscpy and weak alias to wcscpy.
2400 2019-03-01  Florian Weimer  <fweimer@redhat.com>
2402         [BZ #20271]
2403         * sysdeps/unix/sysv/linux/netlink_assert_response.c
2404         (__netlink_assert_response): Add additional missing newlines.
2406 2019-02-28  Joseph Myers  <joseph@codesourcery.com>
2408         * sysdeps/powerpc/powerpc32/dl-machine.c
2409         (__elf_machine_fixup_plt): Use space before '('.
2410         (__process_machine_rela): Likewise.
2411         * sysdeps/powerpc/powerpc32/register-dump.h (register_dump):
2412         Likewise.
2413         * sysdeps/powerpc/powerpc64/le/fpu/sfp-machine.h (TI_BITS):
2414         Likewise.
2415         * sysdeps/powerpc/powerpc64/register-dump.h (register_dump):
2416         Likewise.
2417         * sysdeps/powerpc/test-arith.c (union_t): Likewise.
2418         (pattern): Likewise.
2419         (delta): Likewise.
2420         (check_result): Likewise.
2421         (check_excepts): Likewise.
2422         (check_op): Likewise.
2423         (fail_xr): Likewise.
2424         * sysdeps/unix/alpha/sysdep.h (syscall_promote): Likewise.
2425         * sysdeps/unix/sysv/linux/alpha/a.out.h (AOUTHSZ): Likewise.
2426         (SCNHSZ): Likewise.
2427         * sysdeps/unix/sysv/linux/hppa/makecontext.c (FRAME_SIZE_BYTES):
2428         Likewise.
2429         (ARGS): Likewise.
2430         (__makecontext): Likewise.
2431         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (ucontext_t):
2432         Likewise.
2434 2019-02-28  Florian Weimer  <fweimer@redhat.com>
2436         [BZ #23937]
2437         elf: Add test with a local IFUNC resolver.
2438         * elf/ifuncmain9.c: New file.
2439         * elf/ifuncmain9pic.c: Likewise.
2440         * elf/ifuncmain9picstatic.c: Likewise.
2441         * elf/ifuncmain9pie.c: Likewise.
2442         * elf/ifuncmain9static.c: Likewise.
2443         * elf/Makefile [multi-arch] (tests-ifuncstatic): Add
2444         ifuncmain9static, ifuncmain9picstatic.
2445         * elf/Makefile [multi-arch && build-shared] (tests-internal):
2446         Add ifuncmain9, ifuncmain9pic.
2447         * elf/Makefile [multi-arch && build-shared && have-fpie]
2448         (ifunc-pie-tests): Add ifuncmain9pie.
2449         (CFLAGS-ifuncmain9pic.c): Add $(pic-ccflag).
2450         (CFLAGS-ifuncmain9picstatic.c): Likewise.
2451         (CFLAGS-ifuncmain9pie.c): Add $(pie-ccflag).
2453 2019-02-27  H.J. Lu  <hongjiu.lu@intel.com>
2455         * configure.ac (have-ifunc): New LIBC_CONFIG_VAR.
2456         * configure: Regenerated.
2457         * elf/Makefile: Run IFUNC tests if binutils supports IFUNC.
2459 2019-02-27  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2461         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c: Define ifunc
2462         symbol as __wcspcy instead of wcscpy.
2464 2019-02-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
2466         * include/stdio.h (__renameat2): New hidden prototype.
2467         * stdio-common/renameat2.c (__renameat2): Add hidden definition.
2468         * sysdeps/mach/hurd/renameat.c (__renameat): Move implementation to...
2469         * sysdeps/mach/hurd/renameat2.c (__renameat2): ... new function.
2470         * sysdeps/unix/sysv/linux/renameat2.c (__renameat2): Add hidden definition.
2472 2019-02-27  Joseph Myers  <joseph@codesourcery.com>
2474         * hurd/hurdinit.c (_hurd_init): Use braces around empty body of an
2475         if statement.
2477         * benchtests/bench-strcpy.c (do_test): Use space before '('.
2478         * benchtests/bench-string.h (cmdline_process_function): Likewise.
2479         * benchtests/bench-strlen.c (do_test): Likewise.
2480         (test_main): Likewise.
2481         * catgets/gencat.c (read_old): Likewise.
2482         * elf/cache.c (load_aux_cache): Likewise.
2483         * iconvdata/bug-iconv8.c (do_test): Likewise.
2484         * math/test-tgmath-ret.c (do_test): Likewise.
2485         * nis/nis_call.c (rec_dirsearch): Likewise.
2486         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Likewise.
2487         * nptl/tst-audit-threads.c (do_test): Likewise.
2488         * nptl/tst-cancel4-common.h (set_socket_buffer): Likewise.
2489         * nss/nss_test1.c (init): Likewise.
2490         * nss/test-netdb.c (test_hosts): Likewise.
2491         * posix/execvpe.c (maybe_script_execute): Likewise.
2492         * stdio-common/tst-fmemopen4.c (do_test): Likewise.
2493         * stdio-common/tst-printf.c (do_test): Likewise.
2494         * stdio-common/vfscanf-internal.c (__vfscanf_internal): Likewise.
2495         * stdlib/fmtmsg.c (NKEYWORDS): Likewise.
2496         * stdlib/qsort.c (STACK_SIZE): Likewise.
2497         * stdlib/test-canon.c (do_test): Likewise.
2498         * stdlib/tst-swapcontext1.c (do_test): Likewise.
2499         * string/memcmp.c (OPSIZ): Likewise.
2500         * string/test-strcpy.c (do_test): Likewise.
2501         (do_random_tests): Likewise.
2502         * string/test-strlen.c (do_test): Likewise.
2503         (test_main): Likewise.
2504         * string/test-strrchr.c (do_test): Likewise.
2505         (do_random_tests): Likewise.
2506         * string/tester.c (test_memrchr): Likewise.
2507         (test_memchr): Likewise.
2508         * sysdeps/generic/memcopy.h (OPSIZ): Likewise.
2509         * sysdeps/generic/unwind-dw2.c (execute_stack_op): Likewise.
2510         * sysdeps/generic/unwind-pe.h (read_sleb128): Likewise.
2511         (read_encoded_value_with_base): Likewise.
2512         * sysdeps/hppa/dl-machine.h (elf_machine_runtime_setup): Likewise.
2513         * sysdeps/hppa/fpu/feupdateenv.c (__feupdateenv): Likewise.
2514         * sysdeps/ia64/fpu/sfp-machine.h (TI_BITS): Likewise.
2515         * sysdeps/mach/hurd/spawni.c (__spawni): Likewise.
2516         * sysdeps/posix/spawni.c (maybe_script_execute): Likewise.
2517         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (query_auxv):
2518         Likewise.
2519         * sysdeps/unix/sysv/linux/aarch64/bits/procfs.h (ELF_NGREG):
2520         Likewise.
2521         * sysdeps/unix/sysv/linux/arm/bits/procfs.h (ELF_NGREG): Likewise.
2522         * sysdeps/unix/sysv/linux/arm/ioperm.c (init_iosys): Likewise.
2523         * sysdeps/unix/sysv/linux/csky/bits/procfs.h (ELF_NGREG):
2524         Likewise.
2525         * sysdeps/unix/sysv/linux/m68k/bits/procfs.h (ELF_NGREG):
2526         Likewise.
2527         * sysdeps/unix/sysv/linux/nios2/bits/procfs.h (ELF_NGREG):
2528         Likewise.
2529         * sysdeps/unix/sysv/linux/spawni.c (maybe_script_execute):
2530         Likewise.
2531         * sysdeps/unix/sysv/linux/x86/bits/procfs.h (ELF_NGREG): Likewise.
2532         * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h
2533         (FP_XSTATE_MAGIC2_SIZE): Likewise.
2534         * sysdeps/x86/fpu/sfp-machine.h (TI_BITS): Likewise.
2535         * time/test_time.c (main): Likewise.
2537 2019-02-27  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2539         * wcsmbs/wcsnlen.c (__wcsnlen): Rewrite using wmemchr.
2541         * wcsmbs/wcsncpy.c (__wcsncpy): Rewrite using wcsnlen, wmemset, and
2542         wmemcpy.
2544         * wcsmbs/wcsncat.c (wcsncat): Rewrite using wcslen, wcsnlen, and
2545         wmemcpy.
2547         * wcsmbs/wcscpy.c (__wcpcpy): Rewrite using wcslen and wmemcpy.
2549         * include/wchar.h (__wcscpy): New prototype.
2550         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-ppc32.c
2551         (__wcscpy): Route internal symbol to generic implementation.
2552         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c (wcscpy):
2553         Add internal __wcscpy alias.
2554         * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c (wcscpy): Likewise.
2555         * sysdeps/s390/wcscpy.c (wcscpy): Likewise.
2556         * sysdeps/x86_64/multiarch/wcscpy.c (wcscpy): Likewise.
2557         * wcsmbs/wcscpy.c (wcscpy): Add
2558         * sysdeps/x86_64/multiarch/wcscpy-c.c (WCSCPY): Adjust macro to
2559         use generic implementation.
2560         * wcsmbs/wcscat.c (wcscat): Rewrite using wcslen and wcscpy.
2562         * wcsmbs/wcpncpy.c (__wcpcpy): Rewrite using wcslen, wmemcpy, and
2563         wmemset.
2565         * sysdeps/m68k/wcpcpy.c: Remove file.
2566         * wcsmbs/wcpcpy.c (__wcpcpy): Rewrite using wcslen and wmemcpy.
2568 2019-02-26  Joseph Myers  <joseph@codesourcery.com>
2570         * sysdeps/arm/sysdep.h (#if condition): Break lines before rather
2571         than after operators.
2572         * sysdeps/mach/hurd/fork.c (__fork): Likewise.
2573         * sysdeps/mach/hurd/getcwd.c
2574         (__hurd_canonicalize_directory_name_internal): Likewise.
2575         * sysdeps/mach/hurd/htl/pt-mutex-consistent.c
2576         (pthread_mutex_consistent): Likewise.
2577         * sysdeps/mach/hurd/htl/pt-mutex-init.c (_pthread_mutex_init):
2578         Likewise.
2579         * sysdeps/mach/hurd/htl/pt-mutex-transfer-np.c
2580         (__pthread_mutex_transfer_np): Likewise.
2581         * sysdeps/mach/hurd/htl/pt-mutex-unlock.c
2582         (__pthread_mutex_unlock): Likewise.
2583         * sysdeps/mach/hurd/htl/pt-mutex.h (ROBUST_LOCK): Likewise.
2584         (mtx_owned_p): Likewise.
2585         * sysdeps/mach/hurd/htl/pt-mutexattr-getrobust.c
2586         (pthread_mutexattr_getrobust): Likewise.
2587         * sysdeps/mach/hurd/i386/init-first.c (init1): Likewise.
2588         * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
2589         Likewise.
2590         * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
2591         * sysdeps/mach/hurd/jmp-unwind.c (_longjmp_unwind): Likewise.
2592         * sysdeps/mach/hurd/kill.c (__kill): Likewise.
2593         * sysdeps/mach/hurd/mig-reply.c (__mig_get_reply_port): Likewise.
2594         * sysdeps/mach/hurd/ptrace.c (ptrace): Likewise.
2595         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
2596         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (#if condition):
2597         Likewise.
2598         * sysdeps/unix/sysv/linux/alpha/ioperm.c (process_cpuinfo):
2599         Likewise.
2600         * sysdeps/unix/sysv/linux/bits/timex.h (STA_RONLY): Likewise.
2601         * sysdeps/unix/sysv/linux/csky/sysdep.h (#if condition): Likewise.
2602         * sysdeps/unix/sysv/linux/generic/____longjmp_chk.c
2603         (____longjmp_chk): Likewise.
2604         * sysdeps/unix/sysv/linux/generic/futimesat.c (futimesat):
2605         Likewise.
2606         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
2607         (INTERNAL_SYSCALL): Likewise.
2608         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
2609         (INTERNAL_SYSCALL): Likewise.
2610         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
2611         (__get_clockfreq_via_cpuinfo): Likewise.
2613         * sysdeps/i386/dl-machine.h (elf_machine_rela): Add fall-through
2614         comments.
2615         * sysdeps/m68k/m680x0/fpu/s_cexp_template.c (s(__cexp)): Likewise.
2616         * sysdeps/m68k/memcopy.h (WORD_COPY_FWD): Likewise.
2617         (WORD_COPY_BWD): Likewise.
2618         * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
2619         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
2620         Likewise.
2621         * sysdeps/s390/iso-8859-1_cp037_z900.c (TR_LOOP): Likewise.
2622         * sysdeps/mips/dl-machine.h (elf_machine_reloc): Move fall-through
2623         comment.
2624         * sysdeps/mips/dl-trampoline.c (__dl_runtime_resolve): Likewise.
2626 2019-02-25  Joseph Myers  <joseph@codesourcery.com>
2628         * dirent/dirent.h [!_DIRENT_HAVE_D_NAMLEN
2629         && _DIRENT_HAVE_D_RECLEN] (_D_ALLOC_NAMLEN): Break lines before
2630         rather than after operators.
2631         * elf/cache.c (print_cache): Likewise.
2632         * gshadow/fgetsgent_r.c (__fgetsgent_r): Likewise.
2633         * htl/pt-getattr.c (__pthread_getattr_np): Likewise.
2634         * hurd/hurdinit.c (_hurd_setproc): Likewise.
2635         * hurd/hurdkill.c (_hurd_sig_post): Likewise.
2636         * hurd/hurdlookup.c (__file_name_lookup_under): Likewise.
2637         * hurd/hurdsig.c (_hurd_internal_post_signal): Likewise.
2638         (reauth_proc): Likewise.
2639         * hurd/lookup-at.c (__file_name_lookup_at): Likewise.
2640         (__file_name_split_at): Likewise.
2641         (__directory_name_split_at): Likewise.
2642         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Likewise.
2643         * hurd/port2fd.c (_hurd_port2fd): Likewise.
2644         * iconv/gconv_dl.c (do_print): Likewise.
2645         * inet/netinet/in.h (struct sockaddr_in): Likewise.
2646         * libio/wstrops.c (_IO_wstr_seekoff): Likewise.
2647         * locale/setlocale.c (new_composite_name): Likewise.
2648         * malloc/memusagestat.c (main): Likewise.
2649         * misc/fstab.c (fstab_convert): Likewise.
2650         * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_usercnt):
2651         Likewise.
2652         * nss/nss_compat/compat-grp.c (getgrent_next_nss): Likewise.
2653         (getgrent_next_file): Likewise.
2654         (internal_getgrnam_r): Likewise.
2655         (internal_getgrgid_r): Likewise.
2656         * nss/nss_compat/compat-initgroups.c (getgrent_next_nss):
2657         Likewise.
2658         (internal_getgrent_r): Likewise.
2659         * nss/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
2660         (getpwent_next_nss): Likewise.
2661         (getpwent_next_file): Likewise.
2662         (internal_getpwnam_r): Likewise.
2663         (internal_getpwuid_r): Likewise.
2664         * nss/nss_compat/compat-spwd.c (getspent_next_nss_netgr):
2665         Likewise.
2666         (getspent_next_nss): Likewise.
2667         (internal_getspnam_r): Likewise.
2668         * pwd/fgetpwent_r.c (__fgetpwent_r): Likewise.
2669         * shadow/fgetspent_r.c (__fgetspent_r): Likewise.
2670         * string/strchr.c (STRCHR): Likewise.
2671         * string/strchrnul.c (STRCHRNUL): Likewise.
2672         * sysdeps/aarch64/fpu/fpu_control.h (_FPU_FPCR_IEEE): Likewise.
2673         * sysdeps/aarch64/sfp-machine.h (_FP_CHOOSENAN): Likewise.
2674         * sysdeps/csky/dl-machine.h (elf_machine_rela): Likewise.
2675         * sysdeps/generic/memcopy.h (PAGE_COPY_FWD_MAYBE): Likewise.
2676         * sysdeps/generic/symbol-hacks.h (__stack_chk_fail_local):
2677         Likewise.
2678         * sysdeps/gnu/netinet/ip_icmp.h (ICMP_INFOTYPE): Likewise.
2679         * sysdeps/gnu/updwtmp.c (TRANSFORM_UTMP_FILE_NAME): Likewise.
2680         * sysdeps/gnu/utmp_file.c (TRANSFORM_UTMP_FILE_NAME): Likewise.
2681         * sysdeps/hppa/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Likewise.
2682         * sysdeps/mach/hurd/bits/stat.h (S_ISPARE): Likewise.
2683         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Likewise.
2684         (open_file): Likewise.
2685         * sysdeps/mach/hurd/htl/pt-mutexattr-setprotocol.c
2686         (pthread_mutexattr_setprotocol): Likewise.
2687         * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
2688         * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
2689         * sysdeps/mach/hurd/ptrace.c (ptrace): Likewise.
2690         * sysdeps/mach/hurd/spawni.c (__spawni): Likewise.
2691         * sysdeps/microblaze/dl-machine.h (elf_machine_type_class):
2692         Likewise.
2693         (elf_machine_rela): Likewise.
2694         * sysdeps/mips/mips32/sfp-machine.h (_FP_CHOOSENAN): Likewise.
2695         * sysdeps/mips/mips64/sfp-machine.h (_FP_CHOOSENAN): Likewise.
2696         * sysdeps/mips/sys/asm.h (multiple #if conditionals): Likewise.
2697         * sysdeps/posix/rename.c (rename): Likewise.
2698         * sysdeps/powerpc/novmx-sigjmp.c (__novmx__sigjmp_save): Likewise.
2699         * sysdeps/powerpc/sigjmp.c (__vmx__sigjmp_save): Likewise.
2700         * sysdeps/s390/fpu/fenv_libc.h (FPC_VALID_MASK): Likewise.
2701         * sysdeps/s390/utf8-utf16-z9.c (gconv_end): Likewise.
2702         * sysdeps/unix/grantpt.c (grantpt): Likewise.
2703         * sysdeps/unix/sysv/linux/a.out.h (N_TXTOFF): Likewise.
2704         * sysdeps/unix/sysv/linux/updwtmp.c (TRANSFORM_UTMP_FILE_NAME):
2705         Likewise.
2706         * sysdeps/unix/sysv/linux/utmp_file.c (TRANSFORM_UTMP_FILE_NAME):
2707         Likewise.
2708         * sysdeps/x86/cpu-features.c (get_common_indices): Likewise.
2709         * time/tzfile.c (__tzfile_compute): Likewise.
2711 2019-02-22  Joseph Myers  <joseph@codesourcery.com>
2713         * benchtests/bench-memmem.c (simple_memmem): Break lines before
2714         rather than after operators.
2715         * benchtests/bench-skeleton.c (TIMESPEC_AFTER): Likewise.
2716         * crypt/md5.c (md5_finish_ctx): Likewise.
2717         * crypt/sha256.c (__sha256_finish_ctx): Likewise.
2718         * crypt/sha512.c (__sha512_finish_ctx): Likewise.
2719         * elf/cache.c (load_aux_cache): Likewise.
2720         * elf/dl-load.c (open_verify): Likewise.
2721         * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
2722         * elf/readelflib.c (process_elf_file): Likewise.
2723         * elf/rtld.c (dl_main): Likewise.
2724         * elf/sprof.c (generate_call_graph): Likewise.
2725         * hurd/ctty-input.c (_hurd_ctty_input): Likewise.
2726         * hurd/ctty-output.c (_hurd_ctty_output): Likewise.
2727         * hurd/dtable.c (reauth_dtable): Likewise.
2728         * hurd/getdport.c (__getdport): Likewise.
2729         * hurd/hurd/signal.h (_hurd_interrupted_rpc_timeout): Likewise.
2730         * hurd/hurd/sigpreempt.h (HURD_PREEMPT_SIGNAL_P): Likewise.
2731         * hurd/hurdfault.c (_hurdsig_fault_catch_exception_raise):
2732         Likewise.
2733         * hurd/hurdioctl.c (fioctl): Likewise.
2734         * hurd/hurdselect.c (_hurd_select): Likewise.
2735         * hurd/hurdsig.c (_hurdsig_abort_rpcs): Likewise.
2736         (STOPSIGS): Likewise.
2737         * hurd/hurdstartup.c (_hurd_startup): Likewise.
2738         * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Likewise.
2739         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Likewise.
2740         * hurd/msgportdemux.c (msgport_server): Likewise.
2741         * hurd/setauth.c (_hurd_setauth): Likewise.
2742         * include/features.h (__GLIBC_USE_DEPRECATED_SCANF): Likewise.
2743         * libio/libioP.h [IO_DEBUG] (CHECK_FILE): Likewise.
2744         * locale/programs/ld-ctype.c (set_class_defaults): Likewise.
2745         * localedata/tests-mbwc/tst_swscanf.c (tst_swscanf): Likewise.
2746         * login/tst-utmp.c (do_check): Likewise.
2747         (simulate_login): Likewise.
2748         * mach/lowlevellock.h (lll_lock): Likewise.
2749         (lll_trylock): Likewise.
2750         * math/test-fenv.c (ALL_EXC): Likewise.
2751         * math/test-fenvinline.c (ALL_EXC): Likewise.
2752         * misc/sys/cdefs.h (__attribute_deprecated_msg__): Likewise.
2753         * nis/nis_call.c (__do_niscall3): Likewise.
2754         * nis/nis_callback.c (cb_prog_1): Likewise.
2755         * nis/nis_defaults.c (searchaccess): Likewise.
2756         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Likewise.
2757         * nis/nis_ismember.c (internal_ismember): Likewise.
2758         * nis/nis_local_names.c (nis_local_principal): Likewise.
2759         * nis/nss_nis/nis-rpc.c (_nss_nis_getrpcbyname_r): Likewise.
2760         * nis/nss_nisplus/nisplus-netgrp.c (_nss_nisplus_getnetgrent_r):
2761         Likewise.
2762         * nis/ypclnt.c (yp_match): Likewise.
2763         (yp_first): Likewise.
2764         (yp_next): Likewise.
2765         (yp_master): Likewise.
2766         (yp_order): Likewise.
2767         * nscd/hstcache.c (cache_addhst): Likewise.
2768         * nscd/initgrcache.c (addinitgroupsX): Likewise.
2769         * nss/nss_compat/compat-pwd.c (copy_pwd_changes): Likewise.
2770         (internal_getpwuid_r): Likewise.
2771         * nss/nss_compat/compat-spwd.c (copy_spwd_changes): Likewise.
2772         * posix/glob.h (__GLOB_FLAGS): Likewise.
2773         * posix/regcomp.c (peek_token): Likewise.
2774         (peek_token_bracket): Likewise.
2775         (parse_expression): Likewise.
2776         * posix/regexec.c (sift_states_iter_mb): Likewise.
2777         (check_node_accept_bytes): Likewise.
2778         * posix/tst-spawn3.c (do_test): Likewise.
2779         * posix/wordexp-test.c (testit): Likewise.
2780         * posix/wordexp.c (parse_tilde): Likewise.
2781         (exec_comm): Likewise.
2782         * posix/wordexp.h (__WRDE_FLAGS): Likewise.
2783         * resource/vtimes.c (TIMEVAL_TO_VTIMES): Likewise.
2784         * setjmp/sigjmp.c (__sigjmp_save): Likewise.
2785         * stdio-common/printf_fp.c (__printf_fp_l): Likewise.
2786         * stdio-common/tst-fileno.c (do_test): Likewise.
2787         * stdio-common/vfprintf-internal.c (vfprintf): Likewise.
2788         * stdlib/strfmon_l.c (__vstrfmon_l_internal): Likewise.
2789         * stdlib/strtod_l.c (round_and_return): Likewise.
2790         (____STRTOF_INTERNAL): Likewise.
2791         * stdlib/tst-strfrom.h (TEST_STRFROM): Likewise.
2792         * string/strcspn.c (STRCSPN): Likewise.
2793         * string/test-memmem.c (simple_memmem): Likewise.
2794         * termios/tcsetattr.c (tcsetattr): Likewise.
2795         * time/alt_digit.c (_nl_parse_alt_digit): Likewise.
2796         * time/asctime.c (asctime_internal): Likewise.
2797         * time/strptime_l.c (__strptime_internal): Likewise.
2798         * time/sys/time.h (timercmp): Likewise.
2799         * time/tzfile.c (__tzfile_compute): Likewise.
2801 2019-02-21  Patsy Griffin Franklin  <pfrankli@redhat.com>
2803         [BZ #21915]
2804         * nss/tst-nss-files-hosts-long.root/etc/host.conf: New file.
2806 2019-02-21  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
2808         * argp/argp-help.c (__argp_error_internal): New function,
2809         renamed from __argp_error, but that takes a 'mode_flags'
2810         parameter to control the format of long double parameters.
2811         (__argp_error): Converted into a call __argp_error_internal.
2812         (__argp_failure_internal): New function, renamed from
2813         __argp_failure, but that takes a 'mode_flags' parameter.
2814         (__argp_failure): Converted into a call __argp_failure_internal.
2815         * misc/err.c (__vwarnx_internal): New function, renamed from
2816         vwarnx, but that takes a 'mode_flags' parameter.
2817         (vwarnx): Converted into a call to __vwarnx_internal.
2818         (__vwarn_internal): New function, renamed from vwarn, but that
2819         takes a 'mode_flags' parameter.
2820         (vwarn): Converted into a call to __vwarn_internal.
2821         * misc/error.c (error_tail): Add 'mode_flags' parameter. Update
2822         call to __vfxprintf with 'mode_flags'.
2823         (__error_internal): New function, renamed from error, but that
2824         takes a 'mode_flags' parameter.
2825         (error): Converted into a call to __error_internal.
2826         (__error_at_line_internal): New function, renamed from
2827         error_at_line, but that takes a 'mode_flags' parameter.
2828         (error_at_line): Converted into a call to
2829         __error_at_line_internal.
2830         * include/stdio.h (__vfxprintf): Add mode_flags parameter.
2831         * stdio-common/fxprintf.c (locked_vfxprintf, __vfxprintf):
2832         Likewise.
2834 2019-02-20  Martin Liska  <mliska@suse.cz>
2836         * math/Makefile: Install math-vector-fortran.h.
2837         * bits/math-vector-fortran.h: New file.
2838         * sysdeps/x86/fpu/bits/math-vector-fortran.h: New file.
2840 2019-02-20  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
2842         * sysdeps/powerpc/powerpc64/le/configure.ac: Remove test.
2843         * sysdeps/powerpc/powerpc64/le/configure: Regenerate.
2845 2019-02-19  Wolfram Sang  <wsa@the-dreams.de>
2847         * nptl/pthread_mutex_trylock.c: Fix comment.
2849 2019-02-19  Carlos O'Donell  <carlos@redhat.com>
2851         * nptl/pthread_tryjoin.c: Fix comment.
2853 2019-02-18  Joseph Myers  <joseph@codesourcery.com>
2855         [BZ #24231]
2856         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Add break
2857         after R_SPARC_H34 case.
2859 2019-02-18  Florian Weimer  <fweimer@redhat.com>
2861         * resolv/compat-gethnamaddr.c (Dprintf): Remove definition.
2862         (getanswer): Do not call Dprintf.
2863         (res_gethostbyname2_context): Likewise.
2864         (res_gethostbyaddr_context): Likewise.
2866 2019-02-18  Florian Weimer  <fweimer@redhat.com>
2868         * libio/libio.h (_IO_stdin, _IO_stdout, _IO_stderr): Remove
2869         declaration.
2870         * libio/stdio.c (AL, AL2, _IO_stdin, _IO_stdout, _IO_stderr):
2871         Remove definitions.
2872         * libio/stdfiles.c: Update comment.
2873         * libio/oldstdfiles.c (_IO_check_libio): Update comment.  Do not
2874         set _IO_stdin, _IO_stdout, _IO_stderr.
2875         * libio/libioP.h (_IO_fake_stdiobuf): Remove unused declaration.
2876         [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_1)] (_IO_legacy_file): New
2877         inline function.
2878         (_IO_deallocate_file): New inline function.
2879         * libio/iolibio.h (_IO_vprintf): Remove definition.
2880         * libio/iofclose.c (_IO_new_fclose): Use _IO_deallocate_file.
2881         * libio/oldiofclose.c (_IO_old_fclose): Likewise.
2882         * libio/iofwide.c (_IO_fwide): Use __glibc_unlikely and
2883         _IO_legacy_file.
2884         * libio/oldfileops.c (_IO_old_file_init_internal): Remove
2885         __builtin_expect.  Use _IO_legacy_file.
2887 2019-02-18  Stefan Liebler  <stli@linux.ibm.com>
2889         * sysdeps/unix/sysv/linux/tst-clone3.c (do_test):
2890         Initialize ctid with a known value and remove update of ctid
2891         after clone.
2892         (wait_tid): Adjust arguments and call futex_wait with ctid_val
2893         as assumed current value of ctid_ptr.
2895 2019-02-16  Florian Weimer  <fweimer@redhat.com>
2897         Check that non-sysdeps headers have wrapper headers.
2898         * scripts/check-wrapper-headers.py: New file.
2899         * Makefile (tests-special): Add check-wrapper-headers.out.
2900         (check-wrapper-headers.out): New target.
2901         * Rules (tests-special): Add check-wrapper-headers.out.
2902         (check-wrapper-headers.out): New target.
2904 2019-02-16  Florian Weimer  <fweimer@redhat.com>
2906         Add missing header wrappers under include/.
2907         * include/ar.h: New file.
2908         * include/bits/mqueue2.h: Likewise.
2909         * include/bits/stdio.h: Likewise.
2910         * include/bits/stdio2.h: Likewise.
2911         * include/fstab.h: Likewise.
2912         * include/fts.h: Likewise.
2913         * include/lastlog.h: Likewise.
2914         * include/netinet/icmp6.h: Likewise.
2915         * include/netinet/igmp.h: Likewise.
2916         * include/netinet/ip6.h: Likewise.
2917         * include/re_comp.h: Likewise.
2918         * include/regexp.h: Likewise.
2919         * include/rpcsvc/bootparam.h: Likewise.
2920         * include/rpcsvc/yp_prot.h: Likewise.
2921         * include/sys/random.h: Likewise.
2922         * include/sys/stropts.h: Likewise.
2923         * include/sys/ttychars.h: Likewise.
2924         * include/sys/vfs.h: Likewise.
2925         * include/wait.h: Likewise.
2927 2019-02-16  Florian Weimer  <fweimer@redhat.com>
2929         * nptl_db/proc_service.h: Move to ...
2930         * sysdeps/nptl/proc_service.h: ... here.
2931         * nptl_db/thread_db.h: Move to ...
2932         * sysdeps/nptl/thread_db.h: ... here.
2933         * nptl/descr.h: Include <thread_db.h>.
2935 2019-02-15  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2937         * io/Makefile (tests): Add tst-lockf.
2938         * io/lockf.c (lockf): Use __fcntl and only define for
2939         !__OFF_T_MATCHES_OFF64_T.
2940         * io/lockf64.c (__lockf64): Call __fcntl64 and alias to lockf for
2941         __OFF_T_MATCHES_OFF64_T case.
2942         * io/tst-lockf.c: New file.
2943         * sysdeps/unix/sysv/linux/i386/lockf64.c: Remove file.
2944         * sysdeps/unix/sysv/linux/arm/lockf64.c: Likewise.
2945         * sysdeps/unix/sysv/linux/m68k/lockf64.c: Likewise.
2946         * sysdeps/unix/sysv/linux/mips/mips32/lockf64.c: Likewise.
2947         * sysdeps/unix/sysv/linux/mips/mips64/n32/lockf64.c: Likewise.
2948         * sysdeps/unix/sysv/linux/powerpc/powerpc32/lockf64.c: Likewise.
2949         * sysdeps/unix/sysv/linux/s390/s390-32/lockf64.c: Likewise.
2950         * sysdeps/unix/sysv/linux/sh/lockf64.c: Likewise.
2951         * sysdeps/unix/sysv/linux/sparc/sparc32/lockf64.c: Likewise.
2953 2019-02-15  Florian Weimer  <fweimer@redhat.com>
2955         [BZ #24211]
2956         * nptl/pthread_join_common.c (__pthread_timedjoin_ex): Do not read
2957         pd->result after the thread descriptor has been freed.
2959 2019-02-15  Joseph Myers  <joseph@codesourcery.com>
2961         * sunrpc/tst-svc_register.c (rpcbind_address): Remove qualifier
2962         from function return type.
2964         * setjmp/tst-setjmp.c (jump): Use __attribute__ ((__noreturn__)).
2966 2019-02-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
2968         * scripts/test_printers_common.py: Set TERM to a known harmless
2969         value.
2971 2019-02-14  Joseph Myers  <joseph@codesourcery.com>
2973         * sunrpc/xdr.c (xdr_int): Add fall-through comment.
2974         (xdr_u_int): Likewise.
2975         (xdr_enum): Likewise.
2976         (xdr_bytes): Reword fall-through comment.
2977         (xdr_string): Likewise.
2979 2019-02-14  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2981         [BZ #2421]
2982         * nptl/Makefile (lpthread-routines): Remove lll_timedwait_tid.
2983         (tests): Add tst-join8 tst-join9.
2984         * nptl/lll_timedwait_tid.c: Remove file.
2985         * sysdeps/sparc/sparc32/lll_timedwait_tid.c: Likewise.
2986         * sysdeps/unix/sysv/linux/i386/lll_timedwait_tid.c: Likewise.
2987         * sysdeps/sysv/linux/x86_64/lll_timedwait_tid.c: Likewise.
2988         * nptl/pthread_join_common.c (timedwait_tid): New function.
2989         (__pthread_timedjoin_ex): Act as cancellation entrypoint is block
2990         is set.
2991         * nptl/tst-join5.c (thread_join): New function.
2992         (tf1, tf2, do_test): Use libsupport and add pthread_timedjoin_np
2993         check.
2994         * nptl/tst-join8.c: New file.
2995         * nptl/tst-join9.c: Likewise.
2996         * sysdeps/nptl/lowlevellock-futex.h (lll_futex_wait_cancel,
2997         lll_futex_timed_wait_cancel): Add generic macros.
2998         * sysdeps/nptl/lowlevellock.h (__lll_timedwait_tid, lll_wait_tid):
2999         Remove definitions.
3000         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
3001         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
3002         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
3003         * sysdeps/sparc/sparc32/lowlevellock.c (__lll_timedwait_tid):
3004         Remove function.
3005         * sysdeps/unix/sysv/linux/i386/lowlevellock.S (__lll_timedwait_tid):
3006         Likewise.
3007         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
3008         * sysdeps/unix/sysv/linux/lowlevellock-futex.h
3009         (lll_futex_timed_wait_cancel): New macro.
3011 2019-02-14  Wilco Dijkstra  <wdijkstr@arm.com>
3013         * benchtests/Makefile: Add malloc-simple benchmark.
3014         * benchtests/bench-malloc-simple.c: New benchmark.
3016 2019-02-14  Siddhesh Poyarekar  <siddhesh@sourceware.org>
3018         * benchtests/bench-memmove.c (do_one_test): Remove unused
3019         ORIG_SRC.
3020         (do_test): Adjust.
3021         * benchtests/bench-memmove-large.c (do_one_test): Remove unused
3022         ORIG_SRC.
3023         (do_test): Adjust.
3025 2019-01-13  Jim Wilson  <jimw@sifive.com>
3027         [BZ #24040]
3028         * elf/Makefile (CFLAGS-tst-unwind-main.c): Add -DUSE_PTHREADS=0.
3029         * elf/tst-unwind-main.c: If USE_PTHEADS, include pthread.h and error.h
3030         (func): New.
3031         (main): If USE_PTHREADS, call pthread_create to run func.  Otherwise
3032         call func directly.
3033         * nptl/Makefile (tests): Add tst-unwind-thread.
3034         (CFLAGS-tst-unwind-thread.c): Define.
3035         * nptl/tst-unwind-thread.c: New file.
3036         * sysdeps/unix/sysv/linux/riscv/clone.S (__thread_start): Mark ra
3037         as undefined.
3039 2019-02-13  Joseph Myers  <joseph@codesourcery.com>
3041         * iconvdata/cns11643.h (ucs4_to_cns11643): Adjust fall-through
3042         comment wording.
3043         * nis/nis_call.c (__do_niscall3): Likewise.
3045         * catgets/gencat.c (normalize_line): Use braces around empty
3046         'else' body.
3047         * include/stap-probe.h [!USE_STAP_PROBE && !__ASSEMBLER__]
3048         (STAP_PROBE0): Use do {} while (0) for do-nothing definition.
3049         [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE1): Likewise.
3050         [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE2): Likewise.
3051         [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE3): Likewise.
3052         [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE4): Likewise.
3053         * libio/libio.h (_IO_funlockfile): Use ((void) 0) for do-nothing
3054         definition.
3056         * support/test-container.c (recursive_remove): Use FAIL_EXIT1 if
3057         execlp returns.
3059 2019-02-12  Wilco Dijkstra  <wdijkstr@arm.com>
3061         * benchtests/bench-strcasecmp.c (stupid_strcasecmp): Remove.
3062         * benchtests/bench-strcasestr.c (stupid_strcasestr): Remove.
3063         * benchtests/bench-strchr.c (stupid_strchr): Remove.
3064         * benchtests/bench-strcmp.c (stupid_strcmp): Remove.
3065         * benchtests/bench-strcspn.c (stupid_strcspn): Remove.
3066         * benchtests/bench-strlen.c (builtin_strlen): Remove.
3067         * benchtests/bench-strncasecmp.c (stupid_strncasecmp): Remove.
3068         * benchtests/bench-strncmp.c (stupid_strncmp): Remove.
3069         * benchtests/bench-strpbrk.c (stupid_strpbrk): Remove.
3070         * benchtests/bench-strspn.c (stupid_strspn): Remove.
3071         * benchtests/Makefile: Remove bench-bcopy.c and bench-bzero.c.
3072         * benchtests/bench-bcopy.c: Delete file.
3073         * benchtests/bench-bzero.c: Likewise.
3074         * benchtests/bench-memccpy.c (stupid_memccpy): Remove.
3075         (simple_memccpy): Remove.
3076         (generic_memccpy): Add function.
3077         * benchtests/bench-memcpy.c: (builtin_memcpy): Remove.
3078         * benchtests/bench-memmove.c (simple_bcopy): Remove.
3079         * benchtests/bench-mempcpy.c (simple_mempcpy): Remove.
3080         (generic_mempcpy): Add new function.
3081         * benchtests/bench-memset.c (simple_bzero): Remove.
3082         (builtin_bzero): Remove.
3083         (builtin_memset): Remove.
3084         * benchtests/bench-rawmemchr.c (simple_rawmemchr): Remove.
3085         (generic_rawmemchr): Add new function.
3087 2019-02-12  Florian Weimer  <fweimer@redhat.com>
3089         * nss/getent.c (ahosts_keys_int): Include IPv6 scope ID in output.
3091 2019-02-12  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3093         [BZ #24122]
3094         * elf/Makefile (tests): Add tst-audit13.
3095         (modules-names): Add tst-audit13mod1.
3096         (tst-audit13.out, LDFLAGS-tst-audit13mod1.so, tst-audit13-ENV): New
3097         rule.
3098         * elf/tst-audit13.c: New file.
3099         * elf/tst-audit13mod1.c: Likewise.
3101 2019-02-12  Florian Weimer  <fweimer@redhat.com>
3103         [BZ #24122]
3104         * elf/rtld.c (unload_audit_module): New function.
3105         (report_audit_module_load_error): Likewise.
3106         (load_audit_module): Likewise.  Extracted from dl_main.  Call
3107         _dl_close if the laversion symbol cannot be found.  Use early
3108         returns for error handling.  Add malloc error check.  Check for a
3109         zero return value from la_version.  Remove spurious comment about
3110         static TLS initialization.  Remove useless casts.
3111         (notify_audit_modules_of_loaded_object): New function.  Extracted
3112         from dl_main.
3113         (load_audit_module): Likewise.
3114         (dl_main): Call load_audit_modules.
3116 2019-02-12  Joseph Myers  <joseph@codesourcery.com>
3118         * elf/dl-exception.c (_dl_exception_create_format): Add
3119         fall-through comments.
3120         * elf/ldconfig.c (parse_conf_include): Likewise.
3121         * elf/rtld.c (print_statistics): Likewise.
3122         * locale/programs/charmap.c (parse_charmap): Likewise.
3123         * misc/mntent_r.c (__getmntent_r): Likewise.
3124         * posix/wordexp.c (parse_arith): Likewise.
3125         (parse_backtick): Likewise.
3126         * resolv/ns_ttl.c (ns_parse_ttl): Likewise.
3127         * sysdeps/x86/cpu-features.c (init_cpu_features): Likewise.
3128         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
3130 2019-02-11  Paul A. Clarke  <pc@us.ibm.com>
3132         * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrtf):
3133         Use float instead of double.
3135 2019-02-11  TAMUKI Shoichi  <tamuki@linet.gr.jp>
3137         * time/strftime_l.c: Fix a few whitespace arrangement inconsistencies.
3139 2019-02-08  Joseph Myers  <joseph@codesourcery.com>
3141         * sysdeps/powerpc/bits/mathinline.h: Remove.
3143 2019-02-08  Florian Weimer  <fweimer@redhat.com>
3145         math: Enable <bits/math-finite.h> sysdeps override, as used on ia64.
3146         * math/bits/math-finite.h: Move to ...
3147         * bits/math-finite.h: ... here.
3149 2019-02-08  Florian Weimer  <fweimer@redhat.com>
3151         * sysdeps/generic/bits/unistd_ext.h: Move to ...
3152         * bits/unistd_ext.h: here.
3154 2019-02-08  Patsy Griffin Franklin  <pfrankli@redhat.com>
3156         [BZ #21915]
3157         * nss/Makefile (test-container): Add tst-nss-files-hosts-long.
3158         * nss/tst-nss-files-hosts-long.c: New file.
3159         * nss/tst-nss-files-hosts-long.root: New directory.
3160         * nss/tst-nss-files-hosts-long.root/etc: Likewise.
3161         * nss/tst-nss-files-hosts-long.root/etc/hosts: New file.
3163 2019-02-08  Florian Weimer  <fweimer@redhat.com>
3165         * include/bits/unistd_ext.h: Remove file.
3166         * posix/bits/unistd_ext.h: Move to ...
3167         * sysdeps/generic/bits/unistd_ext.h: ... here.
3169 2019-02-08  Florian Weimer  <fweimer@redhat.com>
3171         * include/bits/unistd_ext.h: New file.
3173 2019-02-08  TAMUKI Shoichi  <tamuki@linet.gr.jp>
3175         * time/tst-strftime2.c: Use array_length macros instead of magic
3176         numbers.
3178 2019-02-08  Florian Weimer  <fweimer@redhat.com>
3180         [BZ #24161]
3181         * sysdeps/nptl/fork.h (__run_fork_handlers): Add multiple_threads
3182         argument.
3183         * nptl/register-atfork.c (__run_fork_handlers): Only perform
3184         locking if the new do_locking argument is true.
3185         * sysdeps/nptl/fork.c (__libc_fork): Pass multiple_threads to
3186         __run_fork_handlers.
3188 2019-02-08  Florian Weimer  <fweimer@redhat.com>
3190         [BZ #6399]
3191         Linux: Add gettid system call wrapper.
3192         * posix/Makefile (headers): Add bits/unistd_ext.h.
3193         * posix/bits/unistd_ext.h: New file.
3194         * posix/unistd.h: Include it.
3195         * manual/process.texi (Process Identification): Document gettid.
3196         * sysdeps/unix/sysv/linux/Makefile [subdir == misc] (tests): Add
3197         tst-gettid, tst-gettid-kill.
3198         (tst-gettid): Link with $(shared-thread-library).
3199         * sysdeps/unix/sysv/linux/Version (GLIBC_2.30): Export gettid.
3200         * sysdeps/unix/sysv/linux/bits/unistd_ext.h: New file.
3201         * sysdeps/unix/sysv/linux/bits/syscalls.list (gettid): Add.
3202         * sysdeps/unix/sysv/linux/bits/tst-gettid.c: New file.
3203         * sysdeps/unix/sysv/linux/bits/tst-gettid-kill.c: Likewise.
3204         * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.30):
3205         Add gettid.
3206         * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.30):
3207         Likewise.
3208         * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.30): Likewise.
3209         * sysdeps/unix/sysv/linux/csky/libc.abilist (GLIBC_2.30):
3210         Likewise.
3211         * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.30):
3212         Likewise.
3213         * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.30):
3214         Likewise.
3215         * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.30):
3216         Likewise.
3217         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.30):
3218         Likewise.
3219         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.30):
3220         Likewise.
3221         * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.30):
3222         Likewise.
3223         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
3224         (GLIBC_2.30): Likewise.
3225         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
3226         (GLIBC_2.30): Likewise.
3227         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
3228         (GLIBC_2.30): Likewise.
3229         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
3230         (GLIBC_2.30): Likewise.
3231         * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.30):
3232         Likewise.
3233         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
3234         (GLIBC_2.30): Likewise.
3235         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
3236         (GLIBC_2.30): Likewise.
3237         * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libc.abilist
3238         (GLIBC_2.30): Likewise.
3239         * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libc.abilist
3240         (GLIBC_2.30): Likewise.
3241         * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.30):
3242         Likewise.
3243         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.30):
3244         Likewise.
3245         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.30):
3246         Likewise.
3247         * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.30): Likewise.
3248         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.30):
3249         Likewise.
3250         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.30):
3251         Likewise.
3252         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.30):
3253         Likewise.
3254         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.30):
3255         Likewise.
3256         * sysdeps/unix/sysv/linux/tst-setgetname.c (gettid): Remove.
3258 2019-02-08  Florian Weimer  <fweimer@redhat.com>
3260         * rt/clock-compat.c (COMPAT_REDIRECT): Turn librt forwarders into
3261         compatibility symbols.
3263 2019-02-07  Stefan Liebler  <stli@linux.ibm.com>
3265         [BZ #24180]
3266         * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock):
3267         Add compiler barriers and comments.
3269 2019-02-07  Florian Weimer  <fweimer@redhat.com>
3271         * include/array_length.h (array_length): Do not use a statement
3272         expression and _Static_assert, so that array_length can be used at
3273         file scope and as a constant expression.
3275 2019-02-07  Florian Weimer  <fweimer@redhat.com>
3277         * support/xdlfcn.h (xdlmopen): Declare.
3278         * support/xdlmopen.c: New file.
3279         * support/Makefile (libsupport-routines): Add xdlmopen.
3281 2019-02-06  Joseph Myers  <joseph@codesourcery.com>
3283         * elf/dl-load.h (_dl_postprocess_loadcmd): Use __always_inline
3284         before return type, without separate inline.
3285         * elf/dl-tunables.c (maybe_enable_malloc_check): Likewise.
3286         * elf/dl-tunables.h (tunable_is_name): Likewise.
3287         * malloc/malloc.c (do_set_trim_threshold): Likewise.
3288         (do_set_top_pad): Likewise.
3289         (do_set_mmap_threshold): Likewise.
3290         (do_set_mmaps_max): Likewise.
3291         (do_set_mallopt_check): Likewise.
3292         (do_set_perturb_byte): Likewise.
3293         (do_set_arena_test): Likewise.
3294         (do_set_arena_max): Likewise.
3295         (do_set_tcache_max): Likewise.
3296         (do_set_tcache_count): Likewise.
3297         (do_set_tcache_unsorted_limit): Likewise.
3298         * nis/nis_subr.c (count_dots): Likewise.
3299         * nptl/allocatestack.c (advise_stack_range): Likewise.
3300         * sysdeps/ieee754/dbl-64/s_sin.c (do_cos): Likewise.
3301         (do_sin): Likewise.
3302         (reduce_sincos): Likewise.
3303         (do_sincos): Likewise.
3304         * sysdeps/unix/sysv/linux/x86/elision-conf.c
3305         (do_set_elision_enable): Likewise.
3306         (TUNABLE_CALLBACK_FNDECL): Likewise.
3308 2019-02-06  Florian Weimer  <fweimer@redhat.com>
3310         * support/xdlfcn.c (xdlopen, xdlclose): Do not call dlerror.
3311         (xdlsym): Use dlerror to detect a NULL symbol.
3313 2019-02-06  Florian Weimer  <fweimer@redhat.com>
3315         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Do not include
3316         <stap-probe.h>.
3317         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
3319 2019-02-06  Stefan Liebler  <stli@linux.ibm.com>
3321         * libio/tst-bz24153.c (wide): Use wide char format specifier.
3323 2019-02-06  Stefan Liebler  <stli@linux.ibm.com>
3325         * sysdeps/s390/wmemcmp-vx.S: Add strong alias to
3326         __wmemcmp and weak alias to wmemcmp.
3328 2019-02-06  Stefan Liebler  <stli@linux.ibm.com>
3330         [BZ #23403]
3331         * nptl/allocatestack.c (allocate_stack): Align pointer pd for
3332         TLS_TCB_AT_TP tls variant.
3333         * nptl/tst-tls1.c: Migrate to support/test-driver.c.
3334         Add alignment checks.
3335         * support/Makefile (libsupport-routines): Add xposix_memalign and
3336         xpthread_setstack.
3337         * support/support.h: Add xposix_memalign.
3338         * support/xthread.h: Add xpthread_attr_setstack.
3339         * support/xposix_memalign.c: New File.
3340         * support/xpthread_attr_setstack.c: Likewise.
3342 2019-02-05  Florian Weimer  <fweimer@redhat.com>
3344         [BZ #24164]
3345         arm: Use "nr" constraint for Systemtap probes, to avoid the
3346         compiler using memory operands for constants, due to the "o"
3347         alternative in the default "nor" constraint.
3348         * include/stap-probe.h [USE_STAP_PROBE]: Include
3349         <stap-probe-machine.h>
3350         * sysdeps/generic/stap-probe-machine.h: New file.
3351         * sysdeps/arm/stap-probe-machine.h: Likewise.
3353 2019-02-04  Joseph Myers  <joseph@codesourcery.com>
3355         * malloc/malloc.c (tcache_get): Compare tcache->counts[tc_idx]
3356         with 0, not tcache->entries[tc_idx].
3358         * nscd/connections.c (reqinfo): Initialize SHUTDOWN element only
3359         once.
3361 2019-02-04  Andreas Schwab  <schwab@suse.de>
3363         [BZ #16976]
3364         [BZ #17396]
3365         * posix/fnmatch_loop.c (internal_fnmatch, internal_fnwmatch): When
3366         looking up collating elements match against (wide) character
3367         sequence instead of name.  Correct alignment adjustment.
3368         * posix/fnmatch.c: Don't include "../locale/elem-hash.h".
3369         (WMEMCMP) [HANDLE_MULTIBYTE]: Define.
3370         * posix/Makefile (tests): Add tst-fnmatch4 and tst-fnmatch5.
3371         (LOCALES): Add cs_CZ.ISO-8859-2.
3372         * posix/tst-fnmatch4.c: New file.
3373         * posix/tst-fnmatch5.c: New file.
3374         * include/wchar.h (__wmemcmp): Declare.
3375         * wcsmbs/wmemcmp.c: Define __wmemcmp and add wmemcmp as weak alias.
3376         * sysdeps/i386/i686/multiarch/wmemcmp.c: Likewise.
3377         * sysdeps/x86_64/multiarch/wmemcmp.c: Likewise.
3378         * sysdeps/s390/wmemcmp.c: Likewise.
3380 2019-02-04  H.J. Lu  <hongjiu.lu@intel.com>
3382         [BZ #24155]
3383         CVE-2019-7309
3384         * NEWS: Updated for CVE-2019-7309.
3385         * sysdeps/x86_64/memcmp.S: Use RDX_LP for size.  Clear the
3386         upper 32 bits of RDX register for x32.  Use unsigned Jcc
3387         instructions, instead of signed.
3388         * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcmp-2.
3389         * sysdeps/x86_64/x32/tst-size_t-memcmp-2.c: New test.
3391 2019-02-04  Florian Weimer  <fweimer@redhat.com>
3393         * posix/spawn.h (posix_spawn, posix_spawnp): Add __nonnull attribute.
3394         (posix_spawnattr_init, posix_spawnattr_destroy): Likewise.
3395         (posix_spawnattr_getsigdefault, posix_spawnattr_setsigdefault):
3396         Likewise.
3397         (posix_spawnattr_getsigmask, posix_spawnattr_setsigmask): Likewise.
3398         (posix_spawnattr_getflags, posix_spawnattr_setflags): Likewise.
3399         (posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Likewise.
3400         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy):
3401         Likewise.
3402         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam):
3403         Likewise.
3404         (posix_spawn_file_actions_init, posix_spawn_file_actions_destroy):
3405         Likewise.
3406         (posix_spawn_file_actions_addopen): Likewise.
3407         (posix_spawn_file_actions_addclose): Likewise.
3408         (posix_spawn_file_actions_adddup2): Likewise.
3409         (posix_spawn_file_actions_addchdir_np): Likewise.  Add __restrict
3410         qualifiers.
3411         (posix_spawn_file_actions_addfchdir_np): Likewise.
3413 2019-02-04  David Newall  <glibc@davidnewall.com>
3415         elf: Implement --preload option for the dynamic linker.
3416         * elf/rtld.c (preloadarg): New variable.
3417         (handle_preload_list): Pass through “where” argument to
3418         do_preload.
3419         (dl_main): Handle "--preload" and add second call to
3420         handle_preload_list.
3421         * elf/Makefile (tests-special): Add tst-rtld-preload.out.
3422         (tst-rtld-preload-OBJS): Set variable.
3423         (tst-rtld-preload.out): New target.
3424         * elf/tst-rtld-preload.sh: New file.
3426 2019-02-04  Matthew Malcomson  <matthew.malcomson@arm.com>
3428         * Makefile (testrun.sh): Exit in case of incorrect argument.
3430 2019-02-04  Florian Weimer  <fweimer@redhat.com>
3432         * time/tzfile.c (__tzfile_read): Reorder suballocations to avoid
3433         alignment gaps.
3435 2019-02-03  Florian Weimer  <fweimer@redhat.com>
3437         * time/tzfile.c (__tzfile_read): Use struct alloc_buffer and its
3438         implicit overflow checks.
3440 2019-02-03  Aurelien Jarno  <aurelien@aurel32.net>
3442         * stdlib/isomac.c: Include <unistd.h>.
3444 2019-02-03  Florian Weimer  <fweimer@redhat.com>
3446         * include/time.h (__tzfile_default): Use int, not long int, for
3447         the GMT offsets.
3448         * time/tzfile.c (struct ttinfo): Change type of the offset member
3449         to int.
3450         (__tzfile_read): Remove useless cast.
3451         (__tzfile_default): Adjust prototype.
3452         * time/tzset.c (tz_rule): Change type of the offset member to int.
3453         (parse_offset): Change the type of the sign variable to int.
3455 2019-02-03  Florian Weimer  <fweimer@redhat.com>
3457         [BZ #24153]
3458         * debug/gets_chk.c (__gets_chk): Use stdin instead of _IO_stdin.
3459         * libio/getchar.c (getchar): Likewise.
3460         * libio/getchar_u.c (getchar_unlocked): Likewise.
3461         * libio/getwchar.c (getwchar): Likewise.
3462         * libio/getwchar_u.c (getwchar_unlocked): Likewise.
3463         * libio/iogets.c (_IO_gets): Likewise.
3464         * libio/vscanf.c (_IO_vscanf): Likewise.
3465         * libio/vwscanf.c (__vwscanf): Likewise.
3466         * libio/tst-bz24153.c: New file.
3467         * libio/Makefile (tests): Add it.
3469 2019-02-02  Florian Weimer  <fweimer@redhat.com>
3471         [BZ #14829]
3472         * manual/resource.texi (Basic Scheduling Functions): Add
3473         portability note.  Change process to task throughout the section.
3474         Remove incorrect comment about sched_yield as it affects
3475         tasks/threads, not entire processes.
3476         * sysdeps/unix/sysv/linux/bits/posix_opt.h
3477         (_POSIX_PRIORITY_SCHEDULING): Update comment.
3479 2019-02-01  Joseph Myers  <joseph@codesourcery.com>
3481         * configure.ac (libc_cv_compiler_ok): Require GCC 6.2 or later.
3482         * configure: Regenerated.
3483         * manual/install.texi (Tools for Compilation): Update minimum GCC
3484         version.
3485         * INSTALL: Regenerated.
3487 2019-02-01  Florian Weimer  <fweimer@redhat.com>
3489         * support/support_test_compare_string.c
3490         (support_test_compare_string): Use "string" in error message.
3491         * support/tst-test_compare_string.c (do_test): Adjust.
3493 2019-02-01  Florian Weimer  <fweimer@redhat.com>
3495         * support/support_format_address_family.c
3496         (support_format_address_family): Handle AF_LOCAL, AF_UNSPEC.
3498 2019-02-01  Florian Weimer  <fweimer@redhat.com>
3500         * manual/socket.texi (Internet Address Formats): Clarify the byte
3501         order of struct sockaddr_in, struct sockaddr_in6.  Document
3502         sin6_flowinfo and sin6_scope_id.
3504 2019-02-01  Wilco Dijkstra  <wdijkstr@arm.com>
3506         * sysdeps/posix/clock_getres.c (__clock_getres): Cleanup.
3507         * sysdeps/unix/clock_gettime.c (__clock_gettime): Cleanup.
3508         * sysdeps/unix/clock_settime.c (__clock_settime): Cleanup.
3509         * sysdeps/unix/sysv/linux/clock_getres.c (__clock_getres): Cleanup.
3510         * sysdeps/unix/sysv/linux/clock_gettime.c (__clock_gettime): Cleanup.
3511         * sysdeps/unix/sysv/linux/clock_settime.c (__clock_settime): Cleanup.
3513 2019-02-01  Feng Xue  <fxue@os.amperecomputing.com>
3515         * sysdeps/aarch64/memchr.S (__memchr): Rename to MEMCHR.
3516         [!MEMCHR](MEMCHR): Set to __memchr.
3517         * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
3518         Add memchr_generic and memchr_nosimd.
3519         * sysdeps/aarch64/multiarch/ifunc-impl-list.c
3520         (__libc_ifunc_impl_list): Add memchr ifuncs.
3521         * sysdeps/aarch64/multiarch/memchr.c: New file.
3522         * sysdeps/aarch64/multiarch/memchr_generic.S: Likewise.
3523         * sysdeps/aarch64/multiarch/memchr_nosimd.S: Likewise.
3525 2019-02-01  Feng Xue  <fxue@os.amperecomputing.com>
3527         * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
3528         Add memset_emag.
3529         * sysdeps/aarch64/multiarch/ifunc-impl-list.c
3530         (__libc_ifunc_impl_list): Add __memset_emag to memset ifunc.
3531         * sysdeps/aarch64/multiarch/memset.c (libc_ifunc):
3532         Add IS_EMAG check for ifunc dispatch.
3533         * sysdeps/aarch64/multiarch/memset_base64.S: New file.
3534         * sysdeps/aarch64/multiarch/memset_emag.S: New file.
3536 2019-02-01  Feng Xue  <fxue@os.amperecomputing.com>
3538         * manual/tunables.texi (Tunable glibc.cpu.name): Add emag.
3539         * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
3540         Add emag.
3541         * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_EMAG):
3542         New macro.
3544 2019-02-01  Stefan Liebler  <stli@linux.ibm.com>
3546         * posix/tst-spawn do_test(): Move waitpid before posix_spawn.
3548 2019-01-31  Vineet Gupta  <vgupta@synopsys.com>
3550         * sysdeps/unix/make-syscalls.sh: Fix comment referencing
3551         syscall-template file.
3553 2019-01-31  Carlos O'Donell  <carlos@redhat.com>
3554             Torvald Riegel  <triegel@redhat.com>
3555             Rik Prohaska  <prohaska7@gmail.com>
3557         [BZ# 23844]
3558         * nptl/Makefile (tests): Add tst-rwlock-tryrdlock-stall, and
3559         tst-rwlock-trywrlock-stall.
3560         * nptl/pthread_rwlock_tryrdlock.c (__pthread_rwlock_tryrdlock):
3561         Wake waiters if PTHREAD_RWLOCK_FUTEX_USED is set.
3562         * nptl/pthread_rwlock_trywrlock.c (__pthread_rwlock_trywrlock):
3563         Set __wrphase_fute to 1 only if we started the write phase.
3564         * nptl/tst-rwlock-tryrdlock-stall.c: New file.
3565         * nptl/tst-rwlock-trywrlock-stall.c: New file.
3566         * support/Makefile (libsupport-routines): Add xpthread_rwlock_destroy.
3567         * support/xpthread_rwlock_destroy.c: New file.
3568         * support/xthread.h: Declare xpthread_rwlock_destroy.
3570 2019-02-01  Joseph Myers  <joseph@codesourcery.com>
3572         * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
3573         version to 4.0.2.
3575 2019-01-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
3577         [BZ #24051]
3578         * libio/ioputs.c (_IO_puts): Use stdout instead of _IO_stdout.
3579         * libio/fileops.c (_IO_new_file_underflow): Likewise
3580         * libio/wfileops.c (_IO_wfile_underflow): Likewise
3581         * libio/putchar.c (putchar): Likewise.
3582         * libio/putchar_u.c (putchar_unlocked): Likewise.
3583         * libio/putwchar.c (putchar): Likewise.
3584         * libio/putwchar_u.c (putwchar_unlocked): Likewise.
3585         * libio/tst-bz24051.c: New test.
3586         * libio/Makefile (tests): Add tst-bz24051
3588 2019-01-31  Paul Eggert  <eggert@cs.ucla.edu>
3590         CVE-2019-9169
3591         regex: fix read overrun [BZ #24114]
3592         Problem found by AddressSanitizer, reported by Hongxu Chen in:
3593         https://debbugs.gnu.org/34140
3594         * posix/regexec.c (proceed_next_node):
3595         Do not read past end of input buffer.
3597 2019-01-31  Florian Weimer  <fweimer@redhat.com>
3599         [BZ #24059]
3600         * nss/nss_files/files-alias.c (get_next_alias): Handle
3601         continuation line without newline at the end.
3602         * nss/tst-nss-files-alias-truncated.c: New file.
3603         * nss/Makefile [$(build-shared)] (tests): Add
3604         tst-nss-files-alias-truncated.
3605         (tst-nss-files-alias-truncated): Link with libnss_files.so.
3606         * support/namespace.h (struct support_chroot_configuration): Add
3607         aliases member.
3608         (struct support_chroot): Add path_aliases member.
3609         * support/support_chroot.c (support_chroot_create): Handle
3610         aliases.
3611         (support_chroot_free): Free path_aliases.
3613 2019-01-31  Siddhesh Poyarekar  <siddhesh@sourceware.org>
3615         * version.h (RELEASE): Set to "development".
3616         (VERSION): Set to "2.29.9000".
3617         * NEWS: Add section for 2.30.
3619         * version.h (RELEASE): Set to "stable".
3620         (VERSION): Set to "2.29".
3621         * include/features.h (__GLIBC_MINOR__): Set to 2.29.
3623         * NEWS: Add the list of bugs fixed in 2.29.
3624         * manual/contrib.texi: Update contributors list with some more
3625         names.
3626         * manual/install.texi: Update latest versions of packages
3627         tested.
3628         * INSTALL: Regenerated.
3630 2019-01-25  Siddhesh Poyarekar  <siddhesh@sourceware.org>
3632         * po/be.po: Update translations.
3633         * po/bg.po: Likewise.
3634         * po/ca.po: Likewise.
3635         * po/cs.po: Likewise.
3636         * po/da.po: Likewise.
3637         * po/de.po: Likewise.
3638         * po/el.po: Likewise.
3639         * po/eo.po: Likewise.
3640         * po/es.po: Likewise.
3641         * po/fi.po: Likewise.
3642         * po/fr.po: Likewise.
3643         * po/gl.po: Likewise.
3644         * po/hr.po: Likewise.
3645         * po/hu.po: Likewise.
3646         * po/ia.po: Likewise.
3647         * po/id.po: Likewise.
3648         * po/it.po: Likewise.
3649         * po/ja.po: Likewise.
3650         * po/ko.po: Likewise.
3651         * po/lt.po: Likewise.
3652         * po/nb.po: Likewise.
3653         * po/nl.po: Likewise.
3654         * po/pl.po: Likewise.
3655         * po/pt_BR.po: Likewise.
3656         * po/ru.po: Likewise.
3657         * po/rw.po: Likewise.
3658         * po/sk.po: Likewise.
3659         * po/sl.po: Likewise.
3660         * po/sv.po: Likewise.
3661         * po/tr.po: Likewise.
3662         * po/uk.po: Likewise.
3663         * po/vi.po: Likewise.
3664         * po/zh_CN.po: Likewise.
3665         * po/zh_TW.po: Likewise.
3667 2019-01-24  Uroš Bizjak  <ubizjak@gmail.com>
3669         [BZ #24130]
3670         * sysdeps/alpha/remqu.S (__remqu): Add missing restore
3671         of $f3 register on $y_is_neg path.
3673 2019-01-24  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3675         [BZ #24110]
3676         * hurd/hurdsig.c (_hurd_thread_sigstate): Set SS_DISABLE in
3677         sigaltstack.ss_flags.
3679 2019-01-24  TAMUKI Shoichi  <tamuki@linet.gr.jp>
3681         [BZ #23758]
3682         * manual/time.texi (strftime): Document "%Ey".
3683         * time/strftime_l.c (__strftime_internal): Set the default width
3684         padding with zero of "%Ey" to 2.
3686         [BZ #24096]
3687         * manual/time.texi (strftime): Document "%EC" and "%EY".
3688         * time/Makefile (tests): Add tst-strftime2.
3689         (LOCALES): Add ja_JP.UTF-8, lo_LA.UTF-8, and th_TH.UTF-8.
3690         * time/strftime_l.c (__strftime_internal): Add argument yr_spec to
3691         override padding for "%Ey".
3692         If an optional flag ('_' or '-') is specified to "%EY", interpret the
3693         "%Ey" in the subformat as if decorated with that flag.
3694         * time/tst-strftime2.c: New file.
3696 2019-01-24  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3698         * support/xsigstack.c (MAP_NORESERVE, MAP_STACK): Define if they
3699         are not defined.
3701         [BZ #24122]
3702         * elf/Makefile (tests): Add tst-audit13.
3703         (modules-names): Add tst-audit13mod1.
3704         (tst-audit13.out, LDFLAGS-tst-audit13mod1.so, tst-audit13-ENV): New
3705         rule.
3706         * elf/rtld.c (dl_main): Handle invalid audit module version.
3707         * elf/tst-audit13.c: New file.
3708         * elf/tst-audit13mod1.c: Likewise.
3710 2019-01-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3712         * sysdeps/mach/hurd/faccessat.c (__faccessat_common): Check for errors
3713         returned by __hurd_at_flags.
3714         * hurd/lookup-at.c (__file_name_lookup_at): When at_flags contains
3715         AT_EMPTY_PATH, call __dir_lookup and __hurd_file_name_lookup_retry
3716         directly instead of __hurd_file_name_lookup.
3718 2019-01-21  Joseph Myers  <joseph@codesourcery.com>
3720         * scripts/build-many-glibcs.py (Context.checkout): Default
3721         binutils version to 2.32 branch.
3723 2019-01-21  Florian Weimer  <fweimer@redhat.com>
3725         [BZ #20018]
3726         CVE-2016-10739
3727         resolv: Reject trailing characters in host names
3728         * include/arpa/inet.h (__inet_aton_exact): Declare.
3729         (inet_aton): Remove hidden prototype.  No longer used internally.
3730         * nscd/gai.c (__inet_aton): Do not define.
3731         * nscd/gethstbynm3_r.c (__inet_aton): Likewise.
3732         * nss/digits_dots.c (__inet_aton): Likewise.
3733         (__nss_hostname_digits_dots_context): Call __inet_aton_exact.
3734         * resolv/Makefile (tests-internal): Add tst-inet_aton_exact.
3735         (tests): Add tst-resolv-nondecimal, tst-resolv-trailing.
3736         (tst-resolv-nondecimal): Link with libresolv.so and libpthread.
3737         (tst-resolv-trailing): Likewise.
3738         * resolv/Versions (GLIBC_PRIVATE): Export __inet_aton_exact from
3739         libc.
3740         * resolv/inet_addr.c (inet_aton_end): Remame from __inet_aton.
3741         Make static.  Add endp parameter.
3742         (__inet_aton_exact): New function.
3743         (__inet_aton_ignore_trailing): New function, aliased to inet_aton.
3744         (__inet_addr): Call inet_aton_end.
3745         * resolv/res_init.c (res_vinit_1): Truncate nameserver for IPv4,
3746         not just IPv6.  Call __inet_aton_exact.
3747         * resolv/tst-aton.c: Switch to <support/test-driver.c>.
3748         (tests): Make const.  Add additional test cases with trailing
3749         characters.
3750         (do_test): Use array_length.
3751         * resolv/tst-inet_aton_exact.c: New file.
3752         * resolv/tst-resolv-trailing.c: Likewise.
3753         * resolv/tst-resolv-nondecimal.c: Likewise.
3754         * sysdeps/posix/getaddrinfo.c (gaih_inet): Call __inet_aton_exact.
3756 2019-01-21  H.J. Lu  <hongjiu.lu@intel.com>
3758         [BZ# 24097]
3759         CVE-2019-6488
3760         * sysdeps/x86_64/multiarch/strlen-avx2.S: Use RSI_LP for length.
3761         Clear the upper 32 bits of RSI register.
3762         * sysdeps/x86_64/strlen.S: Use RSI_LP for length.
3763         * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strnlen
3764         and tst-size_t-wcsnlen.
3765         * sysdeps/x86_64/x32/tst-size_t-strnlen.c: New file.
3766         * sysdeps/x86_64/x32/tst-size_t-wcsnlen.c: Likewise.
3768 2019-01-21  H.J. Lu  <hongjiu.lu@intel.com>
3770         [BZ# 24097]
3771         CVE-2019-6488
3772         * sysdeps/x86_64/multiarch/strcpy-avx2.S: Use RDX_LP for length.
3773         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
3774         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
3775         * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strncpy.
3776         * sysdeps/x86_64/x32/tst-size_t-strncpy.c: New file.
3778 2019-01-21  H.J. Lu  <hongjiu.lu@intel.com>
3780         [BZ# 24097]
3781         CVE-2019-6488
3782         * sysdeps/x86_64/multiarch/strcmp-avx2.S: Use RDX_LP for length.
3783         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
3784         * sysdeps/x86_64/strcmp.S: Likewise.
3785         * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strncasecmp,
3786         tst-size_t-strncmp and tst-size_t-wcsncmp.
3787         * sysdeps/x86_64/x32/tst-size_t-strncasecmp.c: New file.
3788         * sysdeps/x86_64/x32/tst-size_t-strncmp.c: Likewise.
3789         * sysdeps/x86_64/x32/tst-size_t-wcsncmp.c: Likewise.
3791 2019-01-21  H.J. Lu  <hongjiu.lu@intel.com>
3793         [BZ# 24097]
3794         CVE-2019-6488
3795         * sysdeps/x86_64/multiarch/memset-avx512-no-vzeroupper.S: Use
3796         RDX_LP for length.  Clear the upper 32 bits of RDX register.
3797         * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S: Likewise.
3798         * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-wmemset.
3799         * sysdeps/x86_64/x32/tst-size_t-memset.c: New file.
3800         * sysdeps/x86_64/x32/tst-size_t-wmemset.c: Likewise.
3802 2019-01-21  H.J. Lu  <hongjiu.lu@intel.com>
3804         [BZ# 24097]
3805         CVE-2019-6488
3806         * sysdeps/x86_64/memrchr.S: Use RDX_LP for length.
3807         * sysdeps/x86_64/multiarch/memrchr-avx2.S: Likewise.
3808         * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memrchr.
3809         * sysdeps/x86_64/x32/tst-size_t-memrchr.c: New file.
3811 2019-01-21  H.J. Lu  <hongjiu.lu@intel.com>
3813         [BZ# 24097]
3814         CVE-2019-6488
3815         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Use RDX_LP for
3816         length.  Clear the upper 32 bits of RDX register.
3817         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
3818         * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
3819         Likewise.
3820         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S:
3821         Likewise.
3822         * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcpy.
3823         tst-size_t-wmemchr.
3824         * sysdeps/x86_64/x32/tst-size_t-memcpy.c: New file.
3826 2019-01-21  H.J. Lu  <hongjiu.lu@intel.com>
3828         [BZ# 24097]
3829         CVE-2019-6488
3830         * sysdeps/x86_64/multiarch/memcmp-avx2-movbe.S: Use RDX_LP for
3831         length.  Clear the upper 32 bits of RDX register.
3832         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
3833         * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Likewise.
3834         * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcmp and
3835         tst-size_t-wmemcmp.
3836         * sysdeps/x86_64/x32/tst-size_t-memcmp.c: New file.
3837         * sysdeps/x86_64/x32/tst-size_t-wmemcmp.c: Likewise.
3839 2019-01-21  H.J. Lu  <hongjiu.lu@intel.com>
3841         [BZ# 24097]
3842         CVE-2019-6488
3843         * sysdeps/x86_64/memchr.S: Use RDX_LP for length.  Clear the
3844         upper 32 bits of RDX register.
3845         * sysdeps/x86_64/multiarch/memchr-avx2.S: Likewise.
3846         * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memchr and
3847         tst-size_t-wmemchr.
3848         * sysdeps/x86_64/x32/test-size_t.h: New file.
3849         * sysdeps/x86_64/x32/tst-size_t-memchr.c: Likewise.
3850         * sysdeps/x86_64/x32/tst-size_t-wmemchr.c: Likewise.
3852 2019-01-18  Florian Weimer  <fweimer@redhat.com>
3854         [BZ #24112]
3855         resolv: Do not send queries for non-host-names in nss_dns.
3856         * resolv/nss_dns/dns-host.c (check_name): New function.
3857         (_nss_dns_gethostbyname2_r): Use it.
3858         (_nss_dns_gethostbyname_r): Likewise.
3859         (_nss_dns_gethostbyname4_r): Likewise.
3861 2019-01-21  Florian Weimer  <fweimer@redhat.com>
3863         * resolv/inet_addr.c: Reformat to GNU style.
3864         (__inet_addr, __inet_aton): Update comment.
3866 2019-01-18  Florian Weimer  <fweimer@redhat.com>
3868         malloc: Revert commit 6923f6db1e688dedcf3a6556da76e0bf24a41872
3869         ("malloc: Use current (C11-style) atomics for fastbin access").
3870         This commit introduces a substantial performance regression on
3871         POWER and Aarch64.
3872         * malloc/malloc.c (fastbin_push_entry, fastbin_pop_entry): Remove.
3873         (REMOVE_FB): Define.
3874         (_int_malloc): Use it and reindent.
3875         (_int_free): Use CAS loop with
3876         catomic_compare_and_exchange_val_rel.
3877         (malloc_consolidate): Use atomic_exchange_acq.
3880 2019-01-18  H.J. Lu  <hongjiu.lu@intel.com>
3882         * signal/Makefile (LDFLAGS-tst-minsigstksz-1): New.  Set to
3883         -Wl,-z,now.
3884         (LDFLAGS-tst-minsigstksz-2): Likewise.
3885         (LDFLAGS-tst-minsigstksz-3): Likewise.
3886         (LDFLAGS-tst-minsigstksz-3a): Likewise.
3887         (LDFLAGS-tst-minsigstksz-4): Likewise.
3889 2019-01-18  TAMUKI Shoichi  <tamuki@linet.gr.jp>
3891         * manual/time.texi (strftime): Fix the wording to "alternative" rather
3892         than "alternate".
3894 2019-01-16  Paul A. Clarke  <pc@us.ibm.com>
3896         * sysdeps/powerpc/powerpc64/multiarch/strncmp.c: Fix #ifdef.
3898 2019-01-16  Zack Weinberg  <zackw@panix.com>
3900         * support/xsignal.h (xalloc_sigstack, xfree_sigstack)
3901         (xget_sigstack_location): New test support functions.
3902         * support/xsigstack.c: New file, implementing them.
3903         * support/tst-xsigstack.c: New test for them.
3904         * support/Makefile: Update.
3906         * signal/tst-minsigstksz-1.c
3907         * signal/tst-minsigstksz-2.c
3908         * signal/tst-minsigstksz-3.c
3909         * signal/tst-minsigstksz-3a.c
3910         * signal/tst-minsigstksz-4.c: New tests.
3911         * signal/Makefile: Run them.
3913 2019-01-16  Siddhesh Poyarekar  <siddhesh@sourceware.org>
3915         * po/libc.pot: Regenerate.
3917 2019-01-15  Tulio Magno Quites Machado Filho  <tuliom@linux.ibm.com>
3919         * math/libm-test-fma.inc (fma_test_data): Set
3920         XFAIL_ROUNDING_IBM128_LIBGCC to more tests.
3922 2019-01-15  Rogerio A. Cardoso  <rcardoso@linux.ibm.com>
3924         * sysdeps/powerpc/powerpc64/tst-ucontext-ppc64-vscr.c:
3925         (do_test): Changed __vector __int128_t to __vector unsigned int.
3927 2019-01-14  Leonardo Sandoval  <leonardo.sandoval.gonzalez@intel.com>
3929         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
3930         strcat-avx2, strncat-avx2, strcpy-avx2, strncpy-avx2,
3931         stpcpy-avx2 and stpncpy-avx2.
3932         * sysdeps/x86_64/multiarch/ifunc-impl-list.c:
3933         (__libc_ifunc_impl_list): Add tests for __strcat_avx2,
3934         __strncat_avx2, __strcpy_avx2, __strncpy_avx2, __stpcpy_avx2
3935         and __stpncpy_avx2.
3936         * sysdeps/x86_64/multiarch/{ifunc-unaligned-ssse3.h =>
3937         ifunc-strcpy.h}: rename header for a more generic name.
3938         * sysdeps/x86_64/multiarch/ifunc-strcpy.h:
3939         (IFUNC_SELECTOR): Return OPTIMIZE (avx2) on AVX 2 machines if
3940         AVX unaligned load is fast and vzeroupper is preferred.
3941         * sysdeps/x86_64/multiarch/stpcpy-avx2.S: New file.
3942         * sysdeps/x86_64/multiarch/stpncpy-avx2.S: Likewise.
3943         * sysdeps/x86_64/multiarch/strcat-avx2.S: Likewise.
3944         * sysdeps/x86_64/multiarch/strcpy-avx2.S: Likewise.
3945         * sysdeps/x86_64/multiarch/strncat-avx2.S: Likewise.
3946         * sysdeps/x86_64/multiarch/strncpy-avx2.S: Likewise.
3948 2019-01-12  Dmitry V. Levin  <ldv@altlinux.org>
3950         * argp/argp-help.c: Fix typo in comment.
3951         * misc/sys/cdefs.h: Likewise.
3952         * posix/regexec.c (sift_states_iter_mb): Likewise.
3953         * socket/sockatmark.c: Likewise.
3954         * socket/sys/socket.h: Likewise.
3955         * sysdeps/ia64/fpu/libm_sincos_large.S: Likewise.
3956         * sysdeps/ia64/fpu/libm_sincosl.S: Likewise.
3957         * sysdeps/ia64/fpu/s_cosl.S: Likewise.
3958         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
3959         * sysdeps/unix/sockatmark.c: Likewise.
3960         * time/strptime_l.c: Likewise.
3962 2019-01-11  TAMUKI Shoichi  <tamuki@linet.gr.jp>
3964         * time/strftime_l.c (__strftime_internal): Use "L_" macros, also add a
3965         missing space after the cast of "_NL_CURRENT".
3967 2019-01-11  Rogerio A. Cardoso  <rcardoso@linux.ibm.com>
3969         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (vscr_t): Added
3970         ifdef to fix read of VSCR.
3971         * sysdeps/powerpc/powerpc64/Makefile [$subdir == stdlib]: Add
3972         tst-ucontext-ppc64-vscr.c to test list.
3973         * sysdeps/powerpc/powerpc64/tst-ucontext-ppc64-vscr.c: New test file.
3975 2019-01-10  Andreas K. Hüttel  <dilfridge@gentoo.org>
3977         * resolv/tst-resolv-ai_idn-common.c (response): Avoid switch
3978         fall-through.
3980 2019-01-09  Jim Wilson  <jimw@sifive.com>
3982         * sysdeps/riscv/rv64/rvd/libm-test-ulps: Update.
3984 2019-01-09  Wilco Dijkstra  <wdijkstr@arm.com>
3986         * manual/tunables.texi (glibc.cpu.name): Add ares tunable.
3987         * sysdeps/aarch64/multiarch/memcpy.c (__libc_memcpy): Use
3988         __memcpy_falkor for ares.
3989         * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_ARES):
3990         Add new define.
3991         * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
3992         Add ares cpu.
3994 2019-01-07  H.J. Lu  <hongjiu.lu@intel.com>
3996         [BZ #24066]
3997         * soft-fp/extenddftf2.c: Use "_FP_W_TYPE_SIZE < 64" to check if
3998         4_FP_W_TYPEs are used for IEEE quad precision.
3999         * soft-fp/extendhftf2.c: Likewise.
4000         * soft-fp/extendsftf2.c: Likewise.
4001         * soft-fp/extendxftf2.c: Likewise.
4002         * soft-fp/trunctfdf2.c: Likewise.
4003         * soft-fp/trunctfhf2.c: Likewise.
4004         * soft-fp/trunctfsf2.c: Likewise.
4005         * soft-fp/trunctfxf2.c: Likewise.
4006         * sysdeps/alpha/ots_cvttx.c: Likewise.
4007         * sysdeps/alpha/ots_cvtxt.c: Likewise.
4008         * sysdeps/ieee754/soft-fp/s_daddl.c: Likewise.
4009         * sysdeps/ieee754/soft-fp/s_ddivl.c: Likewise.
4010         * sysdeps/ieee754/soft-fp/s_dmull.c: Likewise.
4011         * sysdeps/ieee754/soft-fp/s_dsubl.c: Likewise.
4012         * sysdeps/ieee754/soft-fp/s_faddl.c: Likewise.
4013         * sysdeps/ieee754/soft-fp/s_fdivl.c: Likewise.
4014         * sysdeps/ieee754/soft-fp/s_fmull.c: Likewise.
4015         * sysdeps/ieee754/soft-fp/s_fsubl.c: Likewise.
4016         * sysdeps/sparc/sparc32/q_dtoq.c: Likewise.
4017         * sysdeps/sparc/sparc32/q_qtod.c: Likewise.
4018         * sysdeps/sparc/sparc32/q_qtos.c: Likewise.
4019         * sysdeps/sparc/sparc32/q_stoq.c: Likewise.
4020         * sysdeps/sparc/sparc64/qp_dtoq.c: Likewise.
4021         * sysdeps/sparc/sparc64/qp_qtod.c: Likewise.
4022         * sysdeps/sparc/sparc64/qp_qtos.c: Likewise.
4023         * sysdeps/sparc/sparc64/qp_stoq.c: Likewise.
4025 2019-01-07  Aurelien Jarno  <aurelien@aurel32.net>
4027         [BZ #24024]
4028         * Makeconfig: Build libm with -fno-math-errno but build the remaining
4029         code with -fmath-errno.
4030         * string/Makefile [$(build-shared)] (tests): Add test-strerror-errno.
4031         [$(build-shared)] (LDLIBS-test-strerror-errno): New variable.
4032         * string/test-strerror-errno.c: New file.
4034 2019-01-07  Aurelien Jarno  <aurelien@aurel32.net>
4036         [BZ #24046]
4037         * localedata/locales/en_US (date_fmt): Add, set to
4038         "%a %d %b %Y %r %Z".
4040 2019-01-07  Florian Weimer  <fweimer@redhat.com>
4042         [BZ #24063]
4043         * manual/arith.texi (Math Error Reporting): Use @code{errno}
4044         instead of @var{errno}.
4045         (Parsing of Integers): Likewise.
4046         (Parsing of Floats): Likewise.
4047         * manual/filesys.texi (Working with Directory Trees): Likewise.
4048         (Temporary Files): Likewise.
4049         * manual/job.texi (Terminal Access Functions): Likewise.
4050         * manual/llio.texi (Synchronizing I/O): Likewise.
4051         * manual/math.texi (SVID Random): Likewise.
4052         * manual/message.texi (The catgets Functions): Likewise.
4053         (Translation with gettext): Likewise.
4054         (Locating gettext catalog): Likewise.
4055         (Charset conversion in gettext): Likewise.
4056         * manual/nss.texi (NSS Module Function Internals): Likewise.
4057         * manual/search.texi (Hash Search Function): Likewise.
4058         * manual/setjmp.texi (System V contexts): Likewise.
4059         * manual/time.texi (Sleeping): Likewise.
4060         * manual/users.texi (Lookup User): Likewise.
4061         (Lookup Group): Likewise.
4063 2019-01-05  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4065         * posix/tst-spawn.c (do_test): Extend spargv to new required size and
4066         fix typo.
4068 2019-01-04  Martin Jansa  <Martin.Jansa@gmail.com>
4070         [BZ #19444]
4071         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Use
4072         __builtin_unreachable for default case in switch.
4073         (__ieee754_yn): Likewise.
4074         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
4075         (__ieee754_ynl): Likewise.
4076         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
4077         (__ieee754_ynl): Likewise.
4078         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
4079         (__ieee754_ynl): Likewise.
4081 2019-01-04  Szabolcs Nagy  <szabolcs.nagy@arm.com>
4083         * manual/maint.texi: Use @{ and @}.
4085 2019-01-04  Florian Weimer  <fweimer@redhat.com>
4087         * sysdeps/unix/sysv/linux/tst-ttyname.c (adjust_file_limit): New
4088         function.
4089         (do_in_chroot_1): Call it.
4090         (run_chroot_tests):
4091         Improve error reporting in case it is not possible to create a
4092         collision for the PTY name required by the test.
4094 2019-01-03  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4096         * nptl/pthread_join_common.c (__pthread_timedjoin_ex): Use
4097         lll_wait_tid with timeout.
4098         * nptl/sem_wait.c (__old_sem_wait): Use lll_futex_wait_cancel.
4099         * sysdeps/nptl/aio_misc.h (AIO_MISC_WAIT): Use
4100         futex_reltimed_wait_cancelable for cancelabla mode.
4101         * sysdeps/nptl/gai_misc.h (GAI_MISC_WAIT): Likewise.
4102         * sysdeps/posix/open64.c (__libc_open64): Do not call cancelation
4103         macros.
4104         * sysdeps/posix/sigwait.c (__sigwait): Likewise.
4105         * sysdeps/posix/waitid.c (__sigwait): Likewise.
4106         * sysdeps/unix/sysdep.h (__SYSCALL_CANCEL_CALL,
4107         SYSCALL_CANCEL_NCS): New macro.
4108         * sysdeps/nptl/lowlevellock.h (lll_wait_tid): Add timeout argument.
4109         (lll_timedwait_tid): Remove macro.
4110         * sysdeps/unix/sysv/linux/i386/lowlevellock.h (lll_wait_tid):
4111         Likewise.
4112         (lll_timedwait_tid): Likewise.
4113         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (lll_wait_tid):
4114         Likewise.
4115         (lll_timedwait_tid): Likewise.
4116         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (lll_wait_tid):
4117         Likewise.
4118         (lll_timedwait_tid): Likewise.
4119         * sysdeps/unix/sysv/linux/clock_nanosleep.c (__clock_nanosleep):
4120         Use INTERNAL_SYSCALL_CANCEL.
4121         * sysdeps/unix/sysv/linux/futex-internal.h
4122         (futex_reltimed_wait_cancelable): Use LIBC_CANCEL_{ASYNC,RESET}
4123         instead of __pthread_{enable,disable}_asynccancel.
4124         * sysdeps/unix/sysv/linux/lowlevellock-futex.h
4125         (lll_futex_wait_cancel): New macro.
4127         * sysdeps/i386/nptl/tls.h (THREAD_ATOMIC_CMPXCHG_VAL,
4128         THREAD_ATOMIC_AND, THREAD_ATOMIC_BIT_SET): Remove macros.
4130         * sysdeps/x86_64/nptl/tls.h (THREAD_ATOMIC_CMPXCHG_VAL,
4131         THREAD_ATOMIC_AND, THREAD_ATOMIC_BIT_SET): Remove macros.
4133         * debug/tst-backtrace5.c (handle_signal): Avoid cancellable wrappers
4134         in backtrace analysis.
4135         * nptl/tst-cancel4.c (tf_write): Handle cancelled syscall with
4136         side-effects.
4137         (tf_send): Likewise.
4139         * io/creat.c (LIBC_CANCEL_HANDLED): Remove macro.
4140         * io/ppoll.c (LIBC_CANCEL_HANDLED): Likewise.
4141         * misc/pselect.c (LIBC_CANCEL_HANDLED): Likewise.
4142         * nptl/pthreadP.h (LIBC_CANCEL_HANDLED): Likewise.
4143         * sysdeps/generic/sysdep-cancel.h (LIBC_CANCEL_HANDLED): Likewise.
4144         * sysdeps/mach/hurd/sysdep-cancel.h (LIBC_CANCEL_HANDLED): Likewise.
4145         * sysdeps/posix/pause.c (LIBC_CANCEL_HANDLED): Likewise.
4146         * sysdeps/posix/sigpause.c (LIBC_CANCEL_HANDLED): Likewise.
4147         * sysdeps/unix/sysv/linux/creat.c (LIBC_CANCEL_HANDLED): Likewise.
4148         * sysdeps/unix/sysv/linux/creat64.c (LIBC_CANCEL_HANDLED): Likewise.
4149         * sysdeps/unix/sysv/linux/sigwait.c (LIBC_CANCEL_HANDLED): Likewise.
4150         * sysdeps/unix/sysv/linux/sigwaitinfo.c (LIBC_CANCEL_HANDLED):
4151         Likewise.
4152         * nptl/Makefile [$(run-built-tests) = yes] (tests-special): Remove
4153         tst-cancel-wrappers.sh.
4154         (generated): Remove tst-cancel-wrappers.out.
4155         (tst-cancel-wrappers.out): Remove rule.
4156         * nptl/tst-cancel-wrappers.sh: Remove file.
4158 2019-01-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
4160         * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h: Add comment.
4161         * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
4162         Update.
4164 2019-01-03  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4166         [BZ #23640]
4167         * posix/tst-spawn.c (do_prepare, handle_restart, do_test): Add
4168         posix_spawn_file_actions_adddup2 test to check O_CLOCEXEC reset.
4169         * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Add
4170         close-on-exec reset for adddup2 file action.
4171         * sysdeps/posix/spawni.c (__spawni_child): Likewise.
4173 2019-01-03  Zack Weinberg  <zackw@panix.com>
4175         * include/features.h (__GLIBC_USE_DEPRECATED_SCANF): New __GLIBC_USE
4176         parameter.  Only use deprecated scanf when __USE_GNU is defined
4177         and __STDC_VERSION__ is less than 199901L or __cplusplus is less
4178         than 201103L, whichever is relevant for the language being compiled.
4180         * libio/stdio.h, libio/bits/stdio-ldbl.h: Decide whether to redirect
4181         scanf, fscanf, sscanf, vscanf, vfscanf, and vsscanf to their
4182         __isoc99_ variants based only on __GLIBC_USE (DEPRECATED_SCANF).
4183         * wcsmbs/wchar.h: wcsmbs/bits/wchar-ldbl.h: Likewise for
4184         wscanf, fwscanf, swscanf, vwscanf, vfwscanf, and vswscanf.
4186         * libio/iovsscanf.c
4187         * libio/fwscanf.c
4188         * libio/iovswscanf.c
4189         * libio/swscanf.c
4190         * libio/vscanf.c
4191         * libio/vwscanf.c
4192         * libio/wscanf.c
4193         * stdio-common/fscanf.c
4194         * stdio-common/scanf.c
4195         * stdio-common/vfscanf.c
4196         * stdio-common/vfwscanf.c
4197         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
4198         * sysdeps/ieee754/ldbl-opt/nldbl-fscanf.c
4199         * sysdeps/ieee754/ldbl-opt/nldbl-fwscanf.c
4200         * sysdeps/ieee754/ldbl-opt/nldbl-iovfscanf.c
4201         * sysdeps/ieee754/ldbl-opt/nldbl-scanf.c
4202         * sysdeps/ieee754/ldbl-opt/nldbl-sscanf.c
4203         * sysdeps/ieee754/ldbl-opt/nldbl-swscanf.c
4204         * sysdeps/ieee754/ldbl-opt/nldbl-vfscanf.c
4205         * sysdeps/ieee754/ldbl-opt/nldbl-vfwscanf.c
4206         * sysdeps/ieee754/ldbl-opt/nldbl-vscanf.c
4207         * sysdeps/ieee754/ldbl-opt/nldbl-vsscanf.c
4208         * sysdeps/ieee754/ldbl-opt/nldbl-vswscanf.c
4209         * sysdeps/ieee754/ldbl-opt/nldbl-vwscanf.c
4210         * sysdeps/ieee754/ldbl-opt/nldbl-wscanf.c:
4211         Override __GLIBC_USE_DEPRECATED_SCANF to 1.
4213         * stdio-common/sscanf.c: Likewise.  Remove ldbl_hidden_def for __sscanf.
4214         * stdio-common/isoc99_sscanf.c: Add libc_hidden_def for __isoc99_sscanf.
4215         * include/stdio.h: Provide libc_hidden_proto for __isoc99_sscanf,
4216         not sscanf.
4217         [!__GLIBC_USE (DEPRECATED_SCANF)]: Define sscanf as __isoc99_scanf
4218         with a preprocessor macro.
4220         * stdio-common/bug21.c, stdio-common/scanf14.c:
4221         Use %ms instead of %as, %mS instead of %aS, %m[] instead of %a[];
4222         remove DIAG_IGNORE_NEEDS_COMMENT for -Wformat.
4223         * stdio-common/scanf16.c: Likewise.  Add __attribute__ ((format (scanf)))
4224         to xscanf, xfscanf, xsscanf.
4226         * stdio-common/scanf14a.c: New copy of scanf14.c which still uses
4227         %as, %aS, %a[].  Remove DIAG_IGNORE_NEEDS_COMMENT for -Wformat.
4228         * stdio-common/scanf16a.c: New copy of scanf16.c which still uses
4229         %as, %aS, %a[].  Add __attribute__ ((format (scanf))) to xscanf,
4230         xfscanf, xsscanf.
4231         * stdio-common/scanf15.c, stdio-common/scanf17.c: No need to
4232         override feature selection macros or provide definitions of u_char etc.
4233         * stdio-common/Makefile (tests): Add scanf14a and scanf16a.
4234         (CFLAGS-scanf15.c, CFLAGS-scanf17.c): Remove.
4235         (CFLAGS-scanf14a.c, CFLAGS-scanf16a.c): New.  Compile these files
4236         with -std=gnu89.
4238 2019-01-03  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4240         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
4241         bits/termios-misc.h.
4242         * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Remove file.
4243         * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
4244         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
4245         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
4246         * sysdeps/unix/sysv/linux/bits/termios-misc.h: New file.
4247         * sysdeps/unix/sysv/linux/bits/termios.h: Include termios-misc.h.
4249         * sysdeps/unix/sysv/linux/powerpc/bits/termios-misc.h: New file.
4250         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_MISC]
4251         (struct sgtty, struct tchars, struct ltchars, TIOCPKT_DATA,
4252         TIOCPKT_FLUSHREAD, TIOCPKT_FLUSHWRITE, TIOCPKT_STOP, TIOCPKT_START,
4253         TIOCPKT_NOSTOP, TIOCPKT_DOSTOP, _VINTR, _VQUIT, _VERASE, _VKILL,
4254         _VEOF, _VMIN, _VEOL, _VTIME, _VEOL2, _VSWTC): Move to
4255         termios-misc.h.
4256         * sysdeps/unix/sysv/linux/powerpc/Makefile [$subdir == misc]
4257         (sysdep_headers): Add termios-misc.h.
4259         * sysdeps/unix/sysv/linux/bits/termios.h (_IOT_termios): Remove.
4260         * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
4261         * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
4263         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
4264         termios-tcflow.h.
4265         * sysdeps/unix/sysv/linux/bits/termios-tcflow.h: New file.
4266         * sysdeps/unix/sysv/linux/mips/bits/termios-tcflow.h: Likewise.
4267         * sysdeps/unix/sysv/linux/bits/termios.h (TCSANOW, TCSADRAIN,
4268         TCSAFLUSH): Move to termios-tcflow.h.
4269         * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
4270         * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
4271         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
4272         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
4274         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
4275         termios-c_lflag.h.
4276         * sysdeps/unix/sysv/linux/bits/termios-c_lflag.h: New file.
4277         * sysdeps/unix/sysv/linux/alpha/bits/termios-c_lflag.h: Likewise.
4278         * sysdeps/unix/sysv/linux/mips/bits/termios-c_lflag.h: Likewise.
4279         * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_lflag.h: Likewise.
4280         * sysdeps/unix/sysv/linux/bits/termios.h (ISIG, ISCANON, ECHO, ECHOE,
4281         ECHOK, ECHONL, NOFLSH, TOSTOP, IEXTEN): Move to termios-c_lflag.h.
4282         [__USE_MISC || (__USE_XOPEN && !__USE_XOPEN2K)] (XCASE): Likewise.
4283         [__USE_MISC] (ECHOCTL, ECHOPRT, ECHOKE, FLUSHO, PENDIN, EXTPROC):
4284         Likewise.
4285         * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
4286         * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
4287         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
4288         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
4290         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
4291         termios-c_cflag.h.
4292         * sysdeps/unix/sysv/linux/bits/termios-c_cflag.h: New file.
4293         * sysdeps/unix/sysv/linux/alpha/bits/termios-c_cflag.h: Likewise.
4294         * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_cflag.h: Likewise.
4295         * sysdeps/unix/sysv/linux/bits/termios.h (CSIZE, CS5, CS6, CS7, CS8,
4296         CSTOPB, CREAD, PARENB, PARODD, HUPCL, CLOCAL): Move to
4297         termios-c_cflag.h.
4298         * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
4299         * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
4300         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
4301         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
4303         [BZ #23783]
4304         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
4305         termios-baud.h.
4306         * sysdeps/unix/sysv/linux/bits/termios-baud.h: New file.
4307         * sysdeps/unix/sysv/linux/alpha/bits/termios-baud.h: Likewise.
4308         * sysdeps/unix/sysv/linux/powerpc/bits/termios-baud.h: Likewise.
4309         * sysdeps/unix/sysv/linux/sparc/bits/termios-baud.h: Likewise.
4310         * sysdeps/unix/sysv/linux/alpha/bits/termios.h (B57600, B115200,
4311         B230400, B460800, B500000, B576000, B921600, B1000000, B1152000,
4312         B1500000, B2000000, B2500000, B3000000, B3500000, B4000000,
4313         __MAX_BAUD): Move to termios-baud.h.
4314         [__USE_MISC] (CBAUD, CBAUDEX): Likewise.
4315         * sysdeps/unix/sysv/linux/bits/termios.h: Likewise.
4316         * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
4317         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
4318         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
4320         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add
4321         termios-c_oflag.h.
4322         * sysdeps/unix/sysv/linux/bits/termios-c_oflag.h: New file.
4323         * sysdeps/unix/sysv/linux/alpha/bits/termios-c_oflag.h: Likewise.
4324         * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_oflag.h: Likewise.
4325         * sysdeps/unix/sysv/linux/sparc/bits/termios-c_oflag.h: Likewise.
4326         * sysdeps/unix/sysv/linux/bits/termios.h (OPOST, OLCUC, ONLCR, OCRNL,
4327         ONOCR, ONLRET, OFILL, OFDEL, VTDLY, VT0, VT1):  Move to
4328         termios-c_oflag.h.
4329         [__USE_MISC || __USE_XOPEN] (NLDLY, NL0, NL1, CRDLY, CR0, CR1, CR2,
4330         CR3, TABDLY, TAB0, TAB1, TAB2, TAB3, BSDLY, BS0, BS1, FFDLY, FF0,
4331         FFR1): Likewise.
4332         [USE_MISC] (XTABS): Likewise.
4333         * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
4334         * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
4335         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
4336         * sysdeps/unix/sysv/linux/sparc/bits/termios.h Likewise.
4338         * sysdeps/unix/sysv/linux/Makefile (sysdeps_headers): Add
4339         termios-c_iflag.h.
4340         * sysdeps/unix/sysv/linux/bits/termios-c_iflag.h: New file.
4341         * sysdeps/unix/sysv/linux/alpha/bits/termios-c_iflag.h: Likewise.
4342         * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_iflag.h: Likewise.
4343         * sysdeps/unix/sysv/linux/bits/termios.h (IGNBRK, BRKINT, IGNPAR, PARMRK,
4344         INPCK, ISTRIP, INLCR, IGNCR, ICRNL, IXON, IXOFF, IXANY, IUCLC, IMAXBEL,
4345         IUTF8): Move to termios-c_iflag.h.
4346         * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
4347         * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
4348         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
4349         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
4351         * sysdeps/unix/sysv/linux/Makefile (sysdeps_headers): Add
4352         termios-cc.h.
4353         * sysdeps/unix/sysv/linux/bits/termios-c_cc.h: Likewise.
4354         * sysdeps/unix/sysv/linux/alpha/bits/termios-c_cc.h: New file.
4355         * sysdeps/unix/sysv/linux/mips/bits/termios-c_cc.h: Likewise.
4356         * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_cc.h: Likewise.
4357         * sysdeps/unix/sysv/linux/sparc/bits/termios-c_cc.h: Likewise.
4358         * sysdeps/unix/sysv/linux/bits/termios.h (VINTR, VQUIT, VERASE,
4359         VKILL, VEOF, VTIME, VMIN, VSWTC, VSTART, VSTOP, VSUSP, VEOL,
4360         VREPRINT, VDISCARD, VWERASE, VLNEXT, VEOLF2): Move to termios-cc.h.
4361         * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
4362         * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
4363         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
4364         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
4366         * sysdeps/unix/sysv/linux/alpha/bits/termios-struct.h: New file.
4367         * sysdeps/unix/sysv/linux/bits/termios-struct.h: Likewise.
4368         * sysdeps/unix/sysv/linux/mips/bits/termios-struct.h: Likewise.
4369         * sysdeps/unix/sysv/linux/sparc/bits/termios-struct.h: Likewise.
4370         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
4371         termios-struct.h.
4372         * sysdeps/unix/sysv/linux/bits/termios.h (struct termios): Move to
4373         termios-struct.h.
4374         * sysdeps/unix/sysv/linux/alpha/bits/termios.h (struct termios):
4375         Likewise.
4376         * sysdeps/unix/sysv/linux/mips/bits/termios.h (struct termios):
4377         Likewise.
4378         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h (struct termios):
4379         Likewise.
4380         * sysdeps/unix/sysv/linux/sparc/bits/termios.h (struct termios):
4381         Likewise.
4382         * sysdeps/unix/sysv/linux/kernel_termios.h (_HAVE_C_ISPEED,
4383         _HAVE_C_OSPEED): Define.
4384         * sysdeps/unix/sysv/linux/mips/kernel_termios.h (_HAVE_C_ISPEED,
4385         _HAVE_C_OSPEED): Likewise.
4386         * sysdeps/unix/sysv/linux/sparc/kernel_termios.h (_HAVE_C_ISPEED,
4387         _HAVE_C_OSPEED): Likewise.
4388         * sysdeps/unix/sysv/linux/speed.c [_HAVE_STRUCT_TERMIOS_C_OSPEED]
4389         (cfsetospeed): Check for define value instead of existence.
4390         [_HAVE_STRUCT_TERMIOS_C_ISPEED] (cfsetispeed): Likewise.
4391         * sysdeps/unix/sysv/linux/tcgetattr.c [_HAVE_STRUCT_TERMIOS_C_ISPEED
4392         && _HAVE_C_ISPEED] (__tcgetattr): Likewise.
4393         * sysdeps/unix/sysv/linux/tcsetattr.c [_HAVE_STRUCT_TERMIOS_C_ISPEED
4394         && _HAVE_C_ISPEED] (__tcsetattr): Likewise.
4396         [BZ #17783]
4397         * sysdeps/unix/sysv/linux/bits/termios.h [__USE_MISC] (TIOCSER_TEMT):
4398         Define.
4399         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_MISC]
4400         (TIOCSER_TEMT): Likewise.
4401         * sysdeps/unix/sysv/linux/sparc/bits/termios.h [__USE_MISC]
4402         (TEOCSER_TEMT): Likewise.
4404 2019-01-02  PanderMusubi  <pander@users.sourceforge.net>
4406         [BZ #24011]
4407         * localedata/locales/bs_BA (LC_TELEPHONE): Fix a typo in comment.
4409 2019-01-02  Joseph Myers  <joseph@codesourcery.com>
4411         * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
4413 2019-01-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4415         * sysdeps/htl/pt-barrierattr-setpshared.c
4416         (pthread_barrierattr_setpshared): Add stub warning.
4417         * sysdeps/htl/pt-condattr-setpshared.c
4418         (pthread_condattr_setpshared): Likewise.
4419         * sysdeps/htl/pt-mutexattr-setpshared.c
4420         (pthread_mutexattr_setpshared): Likewise.
4421         * sysdeps/htl/pt-rwlockattr-setpshared.c
4422         (pthread_rwlockattr_setpshared): Likewise.
4423         * sysdeps/mach/hurd/htl/pt-mutexattr-setpshared.c
4424         (pthread_mutexattr_setpshared): Likewise.
4426 2019-01-02  Joseph Myers  <joseph@codesourcery.com>
4428         * sysdeps/unix/sysv/linux/tst-mman-consts.py (main): Expect
4429         constants to match with Linux 4.20.
4431         * sysdeps/mips/mips32/libm-test-ulps: Update.
4432         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
4434 2019-01-02  Aurelien Jarno  <aurelien@aurel32.net>
4436         [BZ #24034]
4437         * sysdeps/unix/sysv/linux/arm/atomic-machine.h
4438         (__arm_assisted_compare_and_exchange_val_32_acq): Use uint32_t rather
4439         than __typeof (...) for the a_ptr variable.
4441 2019-01-02  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
4443         * debug/sprintf_chk.c (___sprintf_chk): Use PRINTF_CHK.
4444         * debug/vsprintf_chk.c (___vsprintf_chk): Likewise.
4445         * libio/Makefile (tests): Add tst-sprintf-ub and
4446         tst-sprintf-chk-ub.
4447         (CFLAGS-tst-sprintf-ub.c): New variable.
4448         (CFLAGS-tst-sprintf-chk-ub.c): Likewise.
4449         * libio/iovsprintf.c (__vsprintf_internal): Only erase the
4450         destination buffer and check for overflows in fortified mode.
4451         * libio/libioP.h (PRINTF_CHK): New macro.
4452         * libio/tst-sprintf-chk-ub.c: New file.
4453         * libio/tst-sprintf-ub.c: Likewise.
4455 2019-01-02  Florian Weimer  <fweimer@redhat.com>
4457         [BZ #24018]
4458         * intl/dcigettext.c (DCIGETTEXT): Do not return NULL on asprintf
4459         failure.
4461 2019-01-02  Florian Weimer  <fweimer@redhat.com>
4463         * nptl/tst-audit-threads.c: Switch to <support/test-driver.c>.
4465 2019-01-01  Joseph Myers  <joseph@codesourcery.com>
4467         * sysdeps/unix/sysv/linux/bits/in.h (IPV6_MULTICAST_ALL): New
4468         macro.
4470         * sysdeps/unix/sysv/linux/netpacket/packet.h
4471         (PACKET_IGNORE_OUTGOING): New macro.
4473         * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SSBS): New
4474         macro.
4476         * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
4477         version to 4.20.
4478         (riscv_flush_icache): New syscall.
4480         * manual/texinfo.tex: Update to version 2018-12-28.17 with
4481         trailing whitespace removed.
4482         * scripts/config.guess: Update to version 2019-01-01.
4483         * scripts/config.sub: Update to version 2019-01-01.
4484         * scripts/move-if-change: Update from gnulib.
4486         * NEWS: Update copyright dates.
4487         * catgets/gencat.c (print_version): Likewise.
4488         * csu/version.c (banner): Likewise.
4489         * debug/catchsegv.sh: Likewise.
4490         * debug/pcprofiledump.c (print_version): Likewise.
4491         * debug/xtrace.sh (do_version): Likewise.
4492         * elf/ldconfig.c (print_version): Likewise.
4493         * elf/ldd.bash.in: Likewise.
4494         * elf/pldd.c (print_version): Likewise.
4495         * elf/sotruss.sh: Likewise.
4496         * elf/sprof.c (print_version): Likewise.
4497         * iconv/iconv_prog.c (print_version): Likewise.
4498         * iconv/iconvconfig.c (print_version): Likewise.
4499         * locale/programs/locale.c (print_version): Likewise.
4500         * locale/programs/localedef.c (print_version): Likewise.
4501         * login/programs/pt_chown.c (print_version): Likewise.
4502         * malloc/memusage.sh (do_version): Likewise.
4503         * malloc/memusagestat.c (print_version): Likewise.
4504         * malloc/mtrace.pl: Likewise.
4505         * manual/libc.texinfo: Likewise.
4506         * nptl/version.c (banner): Likewise.
4507         * nscd/nscd.c (print_version): Likewise.
4508         * nss/getent.c (print_version): Likewise.
4509         * nss/makedb.c (print_version): Likewise.
4510         * posix/getconf.c (main): Likewise.
4511         * scripts/test-installation.pl: Likewise.
4512         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
4514         * All files with FSF copyright notices: Update copyright dates
4515         using scripts/update-copyrights.
4516         * locale/programs/charmap-kw.h: Regenerated.
4517         * locale/programs/locfile-kw.h: Likewise.
4519 2018-12-31  Joseph Myers  <joseph@codesourcery.com>
4521         * timezone/zdump.c: Update from tzcode 2018i.
4522         * timezone/zic.c: Likewise.
4524 2018-12-31  Paul Eggert  <eggert@cs.ucla.edu>
4526         regex: improve Gnulib port to AIX
4527         From the glibc point of view, this removes duplicate macro
4528         definitions and is obviously safe.
4529         From the Gnulib point of view, this pacifies xlc 12.01 on AIX 7.1.
4530         * posix/regex_internal.h:
4531         (__attribute__, __attribute_warn_unused_result__):
4532         Remove; already defined elsewhere.
4534 2018-12-31  Florian Weimer  <fw@deneb.enyo.de>
4536         [BZ #24027]
4537         * malloc/malloc.c (_int_realloc): Always call memcpy for the
4538         copying operation.  (ncopies had the wrong type, resulting in an
4539         integer wraparound and too few elements being copied.)
4541 2018-12-31  H.J. Lu  <hongjiu.lu@intel.com>
4543         [BZ #24022]
4544         * sysdeps/unix/sysv/linux/riscv/flush-icache.c: Check if
4545         <asm/syscalls.h> exists with __has_include__ before including it.
4547 2018-12-31  Joseph Myers  <joseph@codesourcery.com>
4549         * scripts/build-many-glibcs.py (Context.checkout): Default Linux
4550         version to 4.20.
4552 2018-12-28  Justus Winter  <4winter@informatik.uni-hamburg.de>
4554         * hurd/lookup-retry: Include <unistd.h>.
4555         (__hurd_file_name_lookup_retry): Keep a ref on last result in `lastdir'.
4556         Release it on return.  Handle "pid" magical lookup retry.
4558 2018-12-28  Rafal Luzynski  <digitalfreak@lingonborough.com>
4560         [BZ #10496]
4561         * localedata/locales/aa_DJ (t_fmt): Set to "%l:%M:%S %p".
4562         (t_fmt_ampm): Likewise.
4563         * localedata/locales/aa_ER (t_fmt): Likewise.
4564         (t_fmt_ampm): Likewise.
4565         * localedata/locales/aa_ER@saaho (t_fmt): Likewise.
4566         (t_fmt_ampm): Likewise.
4567         * localedata/locales/aa_ET (t_fmt): Likewise.
4568         (t_fmt_ampm): Likewise.
4569         * localedata/locales/am_ET (t_fmt): Likewise.
4570         (t_fmt_ampm): Likewise.
4571         * localedata/locales/byn_ER (t_fmt): Likewise.
4572         (t_fmt_ampm): Likewise.
4573         * localedata/locales/om_ET (t_fmt): Likewise.
4574         (t_fmt_ampm): Likewise.
4575         * localedata/locales/sid_ET (t_fmt): Likewise.
4576         (t_fmt_ampm): Likewise.
4577         * localedata/locales/so_DJ (t_fmt): Likewise.
4578         (t_fmt_ampm): Likewise.
4579         * localedata/locales/so_ET (t_fmt): Likewise.
4580         (t_fmt_ampm): Likewise.
4581         * localedata/locales/so_SO (t_fmt): Likewise.
4582         (t_fmt_ampm): Likewise.
4583         * localedata/locales/ti_ER (t_fmt): Likewise.
4584         (t_fmt_ampm): Likewise.
4585         * localedata/locales/ti_ET (t_fmt): Likewise.
4586         (t_fmt_ampm): Likewise.
4587         * localedata/locales/tig_ER (t_fmt): Likewise.
4588         (t_fmt_ampm): Likewise.
4589         * localedata/locales/wal_ET (t_fmt): Likewise.
4590         (t_fmt_ampm): Likewise.
4592         * localedata/locales/anp_IN (t_fmt): Set to "%I:%M:%S %p %Z".
4593         * localedata/locales/ar_IN (t_fmt): Likewise.
4594         * localedata/locales/bhb_IN (t_fmt): Likewise.
4595         * localedata/locales/bho_IN (t_fmt): Likewise.
4596         * localedata/locales/bi_VU (t_fmt): Likewise.
4597         * localedata/locales/bn_BD (t_fmt): Likewise.
4598         * localedata/locales/bn_IN (t_fmt): Likewise.
4599         * localedata/locales/brx_IN (t_fmt): Likewise.
4600         * localedata/locales/doi_IN (t_fmt): Likewise.
4601         * localedata/locales/en_HK (t_fmt): Likewise.
4602         (t_fmt_ampm): Likewise.
4603         * localedata/locales/en_IN (t_fmt): Likewise.
4604         * localedata/locales/en_PH (t_fmt): Likewise.
4605         * localedata/locales/gu_IN (t_fmt): Likewise.
4606         * localedata/locales/hi_IN (t_fmt): Likewise.
4607         * localedata/locales/hif_FJ (t_fmt): Likewise.
4608         * localedata/locales/hne_IN (t_fmt): Likewise.
4609         * localedata/locales/kn_IN (t_fmt): Likewise.
4610         * localedata/locales/kok_IN (t_fmt): Likewise.
4611         * localedata/locales/ks_IN (t_fmt): Likewise.
4612         * localedata/locales/ks_IN@devanagari (t_fmt): Likewise.
4613         * localedata/locales/mag_IN (t_fmt): Likewise.
4614         * localedata/locales/mai_IN (t_fmt): Likewise.
4615         * localedata/locales/mjw_IN (t_fmt): Likewise.
4616         * localedata/locales/ml_IN (t_fmt): Likewise.
4617         * localedata/locales/mni_IN (t_fmt): Likewise.
4618         * localedata/locales/mr_IN (t_fmt): Likewise.
4619         * localedata/locales/ms_MY (t_fmt): Likewise.
4620         * localedata/locales/pa_IN (t_fmt): Likewise.
4621         * localedata/locales/raj_IN (t_fmt): Likewise.
4622         * localedata/locales/sa_IN (t_fmt): Likewise.
4623         * localedata/locales/sat_IN (t_fmt): Likewise.
4624         * localedata/locales/sd_IN (t_fmt): Likewise.
4625         * localedata/locales/sd_IN@devanagari (t_fmt): Likewise.
4626         * localedata/locales/tcy_IN (t_fmt): Likewise.
4627         * localedata/locales/the_NP (t_fmt): Likewise.
4628         * localedata/locales/to_TO (t_fmt): Likewise.
4629         * localedata/locales/ur_IN (t_fmt): Likewise.
4631         * localedata/locales/hif_FJ (d_t_fmt): Set to
4632         "%A %d %b %Y %I:%M:%S %p".
4633         (date_fmt): Add, set to "%A %d %b %Y %I:%M:%S %p %Z".
4635         * localedata/locales/ar_AE (t_fmt): Set to "%Z %I:%M:%S %p".
4636         * localedata/locales/ar_BH (t_fmt): Likewise.
4637         * localedata/locales/ar_DZ (t_fmt): Likewise.
4638         * localedata/locales/ar_EG (t_fmt): Likewise.
4639         * localedata/locales/ar_IQ (t_fmt): Likewise.
4640         * localedata/locales/ar_JO (t_fmt): Likewise.
4641         * localedata/locales/ar_KW (t_fmt): Likewise.
4642         * localedata/locales/ar_LB (t_fmt): Likewise.
4643         * localedata/locales/ar_LY (t_fmt): Likewise.
4644         * localedata/locales/ar_OM (t_fmt): Likewise.
4645         * localedata/locales/ar_QA (t_fmt): Likewise.
4646         * localedata/locales/ar_SD (t_fmt): Likewise.
4647         * localedata/locales/ar_SS (t_fmt): Likewise.
4648         * localedata/locales/ar_SY (t_fmt): Likewise.
4649         * localedata/locales/ar_TN (t_fmt): Likewise.
4650         * localedata/locales/ar_YE (t_fmt): Likewise.
4652         * localedata/locales/gez_ER (t_fmt): Set to "%l:%M:%S<U1361>%p".
4653         (t_fmt_ampm): Likewise.
4654         * localedata/locales/gez_ET (t_fmt): Likewise.
4655         (t_fmt_ampm): Likewise.
4657         * localedata/locales/ta_IN (t_fmt): Set to "%p %I:%M:%S %Z".
4658         (t_fmt_ampm): Likewise.
4659         (d_t_fmt): Set to "%A %d %B %Y %p %I:%M:%S %Z".
4661         * localedata/locales/zh_HK (t_fmt):
4662         Set to "%p %I<U6642>%M<U5206>%S<U79D2> %Z".
4664         * localedata/locales/ar_MA (t_fmt_ampm): Set to "" (empty string)
4665         because this locale does not use the 12-hour clock.
4666         (t_fmt): Set to "%Z %H:%M:%S".
4667         (d_t_fmt): Set to "%d %b, %Y %Z %H:%M:%S".
4669         * localedata/locales/mt_MT (t_fmt_ampm): Set to "" (empty string)
4670         because this locale does not use the 12-hour clock.
4671         (t_fmt): Set to "%H:%M:%S %Z".
4672         (d_t_fmt): Set to "%A, %d ta %b, %Y %H:%M:%S %Z".
4674         * localedata/locales/so_KE (t_fmt_ampm): Set to "" (empty string)
4675         because this locale does not use the 12-hour clock.
4676         (t_fmt): Set to "%T".
4677         (d_t_fmt): Set to "%A, %B %e, %Y %X %Z".
4678         (date_fmt): Set to "%A, %B %e, %X %Z %Y".
4680         * localedata/locales/ta_LK (t_fmt_ampm): Set to "" (empty string)
4681         because this locale does not use the 12-hour clock.
4682         (t_fmt): Set to "%H:%M:%S %Z".
4683         (d_t_fmt): Set to "%A %d %B %Y %H:%M:%S %Z".
4685         * localedata/locales/bg_BG (t_fmt_ampm): Set to "" (empty string)
4686         because this locale does not use the 12-hour clock.
4687         * localedata/locales/cs_CZ (t_fmt_ampm): Likewise.
4688         * localedata/locales/sk_SK (t_fmt_ampm): Likewise.
4690 2018-12-28  Rafal Luzynski  <digitalfreak@lingonborough.com>
4692         [BZ #10496]
4693         [BZ #23724]
4694         * localedata/locales/sq_AL (t_fmt): Set to "%I:%M:%S.%p %Z".
4695         (t_fmt_ampm): Likewise.
4696         (d_t_fmt): Set to "%a %-d %b %Y %I:%M:%S.%p".
4697         (date_fmt): Add, set to "%a %-d %b %Y %I:%M:%S.%p %Z".
4698         (d_fmt): Set to "%-d.%-m.%y".
4700 2018-12-28  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4702         * malloc/alloc_buffer_alloc_array.c (__libc_alloc_buffer_alloc_array):
4703         Use __builtin_mul_overflow in place of check_mul_overflow_size_t.
4704         * malloc/dynarray_emplace_enlarge.c (__libc_dynarray_emplace_enlarge):
4705         Likewise.
4706         * malloc/dynarray_resize.c (__libc_dynarray_resize): Likewise.
4707         * malloc/reallocarray.c (__libc_reallocarray): Likewise.
4708         * malloc/malloc-internal.h (check_mul_overflow_size_t): Remove
4709         function.
4710         * support/blob_repeat.c (check_mul_overflow_size_t,
4711         (minimum_stride_size, support_blob_repeat_allocate): Likewise.
4713 2018-12-28  Aurelien Jarno  <aurelien@aurel32.net>
4715         * sysdeps/alpha/fpu/libm-test-ulps: Regenerated.
4717 2018-12-27  Paul Eggert  <eggert@cs.ucla.edu>
4719         regex: simplify Gnulib port
4720         This simplifies the code, by removing stuff intended for porting
4721         to Gnulib but no longer needed there.
4722         * posix/regcomp.c [!_LIBC]: No need to put #ifdef _LIBC around
4723         uses of libc_hidden_def, weak_alias.
4724         * posix/regcomp.c, posix/regexec.c: Use __restrict rather than
4725         _Restrict_ except for public-facing headers.
4726         * posix/regex_internal.h (attribute_hidden) [!_LIBC]:
4727         Remove; already defined elsewhere.
4728         * posix/regex.c, posix/regex_internal.h:
4729         Use __GNUC_PREREQ instead of rolling our own.
4730         * posix/regex_internal.h (__GNUC_PREREQ): Remove duplicate defn.
4732 2018-12-27  Wilco Dijkstra  <wdijkstr@arm.com>
4734         * benchtests/bench-strlen.c (generic_strlen): New function.
4735         (memchr_strlen): New function.
4737 2018-12-26  H.J. Lu  <hongjiu.lu@intel.com>
4739         * sysdeps/x86_64/fpu/s_sincosf.S: Removed.
4740         * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.S: Likewise.
4741         * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.c: New file.
4743 2018-12-26  H.J. Lu  <hongjiu.lu@intel.com>
4745         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
4747 2018-12-26  H.J. Lu  <hongjiu.lu@intel.com>
4749         * sysdeps/ieee754/flt-32/s_sincosf.h: Include <sincosf_poly.h>.
4750         (sincos_t, sincosf_poly, sinf_poly): Moved to ...
4751         * sysdeps/ieee754/flt-32/sincosf_poly.h: Here.  New file.
4752         * sysdeps/x86/fpu/s_sincosf_data.c: New file.
4753         * sysdeps/x86/fpu/sincosf_poly.h: Likewise.
4754         * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: Just include
4755         <sysdeps/ieee754/flt-32/s_sincosf.c>.
4757 2018-12-21  Joseph Myers  <joseph@codesourcery.com>
4759         [BZ #24023]
4760         * sysdeps/unix/sysv/linux/nios2/localplt.data: Allow __floatundidf
4761         PLT reference in libc.so.
4762         * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: Allow
4763         _Q_lltoq and _Q_qtod PLT references in libc.so.
4765 2018-12-21  Wilco Dijkstra  <wdijkstr@arm.com>
4767         * benchtests/bench-memchr.c: Cleanup defines.
4768         * benchtests/bench-memcmp.c: Likewise.
4769         * benchtests/bench-memset.c: Likewise.
4770         * benchtests/bench-memset-large.c: Likewise.
4771         * benchtests/bench-memset-walk.c: Likewise.
4772         * benchtests/bench-stpcpy.c: Likewise.
4773         * benchtests/bench-stpncpy.c: Likewise.
4774         * benchtests/bench-strcat.c: Likewise.
4775         * benchtests/bench-strchr.c: Likewise.
4776         * benchtests/bench-strcmp.c: Likewise.
4777         * benchtests/bench-strcpy.c: Likewise.
4778         * benchtests/bench-strcspn.c: Likewise.
4779         * benchtests/bench-string.h: Likewise.
4780         * benchtests/bench-strlen.c: Likewise.
4781         * benchtests/bench-strncat.c: Likewise.
4782         * benchtests/bench-strncmp.c: Likewise.
4783         * benchtests/bench-strncpy.c: Likewise.
4784         * benchtests/bench-strnlen.c: Likewise.
4785         * benchtests/bench-strpbrk.c: Likewise.
4786         * benchtests/bench-strrchr.c: Likewise.
4787         * benchtests/bench-strspn.c: Likewise.
4789 2018-12-21  Joseph Myers  <joseph@codesourcery.com>
4791         * stdlib/longlong.h: Update from GCC.
4793         [BZ #23993]
4794         * configure.ac (libc_cv_compiler_ok): Require GCC 5 or later.
4795         * configure: Regenerated.
4796         * manual/install.texi (Tools for Compilation): Update minimum GCC
4797         version.
4798         * INSTALL: Regenerated.
4800 2018-12-21  Istvan Kurucsai  <pistukem@gmail.com>
4802         * malloc/malloc.c (munmap_chunk): Verify chunk alignment.
4804 2018-12-20  Istvan Kurucsai  <pistukem@gmail.com>
4806         * malloc/malloc.c (mremap_chunk): Additional checks.
4808 2018-12-21  Mao Han  <han_mao@c-sky.com>
4810         * config.h.in (CSKYABI, CSKY_HARD_FLOAT): New Define.
4811         * scripts/build-many-glibcs.py: Add C-SKY targets.
4812         * sysdeps/csky/Implies: New file.
4813         * sysdeps/csky/Makefile: Likewise.
4814         * sysdeps/csky/abiv2/__longjmp.S: Likewise.
4815         * sysdeps/csky/abiv2/csky-mcount.S: Likewise.
4816         * sysdeps/csky/abiv2/dl-trampoline.S: Likewise.
4817         * sysdeps/csky/abiv2/memcmp.S: Likewise.
4818         * sysdeps/csky/abiv2/memcpy.S: Likewise.
4819         * sysdeps/csky/abiv2/memmove.S: Likewise.
4820         * sysdeps/csky/abiv2/memset.S: Likewise.
4821         * sysdeps/csky/abiv2/setjmp.S: Likewise.
4822         * sysdeps/csky/abiv2/start.S: Likewise.
4823         * sysdeps/csky/abiv2/strcmp.S: Likewise.
4824         * sysdeps/csky/abiv2/strcpy.S: Likewise.
4825         * sysdeps/csky/abiv2/strlen.S: Likewise.
4826         * sysdeps/csky/abiv2/tls-macros.h: Likewise.
4827         * sysdeps/csky/abort-instr.h: Likewise.
4828         * sysdeps/csky/atomic-machine.h: Likewise.
4829         * sysdeps/csky/bits/endian.h: Likewise.
4830         * sysdeps/csky/bits/fenv.h: Likewise.
4831         * sysdeps/csky/bits/link.h: Likewise.
4832         * sysdeps/csky/bits/setjmp.h: Likewise.
4833         * sysdeps/csky/bsd-_setjmp.S: Likewise.
4834         * sysdeps/csky/bsd-setjmp.S: Likewise.
4835         * sysdeps/csky/configure: Likewise.
4836         * sysdeps/csky/configure.ac: Likewise.
4837         * sysdeps/csky/dl-machine.h: Likewise.
4838         * sysdeps/csky/dl-procinfo.c: Likewise.
4839         * sysdeps/csky/dl-procinfo.h: Likewise.
4840         * sysdeps/csky/dl-sysdep.h: Likewise.
4841         * sysdeps/csky/dl-tls.h: Likewise.
4842         * sysdeps/csky/fpu/fclrexcpt.c: Likewise.
4843         * sysdeps/csky/fpu/fedisblxcpt.c: Likewise.
4844         * sysdeps/csky/fpu/feenablxcpt.c: Likewise.
4845         * sysdeps/csky/fpu/fegetenv.c: Likewise.
4846         * sysdeps/csky/fpu/fegetexcept.c: Likewise.
4847         * sysdeps/csky/fpu/fegetmode.c: Likewise.
4848         * sysdeps/csky/fpu/fegetround.c: Likewise.
4849         * sysdeps/csky/fpu/feholdexcpt.c: Likewise.
4850         * sysdeps/csky/fpu/fenv_libc.h: Likewise.
4851         * sysdeps/csky/fpu/fenv_private.h: Likewise.
4852         * sysdeps/csky/fpu/fesetenv.c: Likewise.
4853         * sysdeps/csky/fpu/fesetexcept.c: Likewise.
4854         * sysdeps/csky/fpu/fesetmode.c: Likewise.
4855         * sysdeps/csky/fpu/fesetround.c: Likewise.
4856         * sysdeps/csky/fpu/feupdateenv.c: Likewise.
4857         * sysdeps/csky/fpu/fgetexcptflg.c: Likewise.
4858         * sysdeps/csky/fpu/fix-fp-int-convert-overflow.h: Likewise.
4859         * sysdeps/csky/fpu/fraiseexcpt.c: Likewise.
4860         * sysdeps/csky/fpu/fsetexcptflg.c: Likewise.
4861         * sysdeps/csky/fpu/ftestexcept.c: Likewise.
4862         * sysdeps/csky/fpu/libm-test-ulps: Likewise.
4863         * sysdeps/csky/fpu/libm-test-ulps-name: Likewise.
4864         * sysdeps/csky/fpu_control.h: Likewise.
4865         * sysdeps/csky/gccframe.h: Likewise.
4866         * sysdeps/csky/jmpbuf-unwind.h: Likewise.
4867         * sysdeps/csky/ldsodefs.h: Likewise.
4868         * sysdeps/csky/libc-tls.c: Likewise.
4869         * sysdeps/csky/linkmap.h: Likewise.
4870         * sysdeps/csky/machine-gmon.h: Likewise.
4871         * sysdeps/csky/memusage.h: Likewise.
4872         * sysdeps/csky/nofpu/Implies: Likewise.
4873         * sysdeps/csky/nofpu/libm-test-ulps: Likewise.
4874         * sysdeps/csky/nofpu/libm-test-ulps-name: Likewise.
4875         * sysdeps/csky/nptl/Makefile: Likewise.
4876         * sysdeps/csky/nptl/bits/pthreadtypes-arch.h: Likewise.
4877         * sysdeps/csky/nptl/bits/semaphore.h: Likewise.
4878         * sysdeps/csky/nptl/pthread-offsets.h: Likewise.
4879         * sysdeps/csky/nptl/pthreaddef.h: Likewise.
4880         * sysdeps/csky/nptl/tcb-offsets.sym: Likewise.
4881         * sysdeps/csky/nptl/tls.h: Likewise.
4882         * sysdeps/csky/preconfigure: Likewise.
4883         * sysdeps/csky/sfp-machine.h: Likewise.
4884         * sysdeps/csky/sotruss-lib.c: Likewise.
4885         * sysdeps/csky/stackinfo.h: Likewise.
4886         * sysdeps/csky/sysdep.h: Likewise.
4887         * sysdeps/csky/tininess.h: Likewise.
4888         * sysdeps/csky/tst-audit.h: Likewise.
4889         * sysdeps/unix/sysv/linux/csky/Implies: Likewise.
4890         * sysdeps/unix/sysv/linux/csky/Makefile: Likewise.
4891         * sysdeps/unix/sysv/linux/csky/Versions: Likewise.
4892         * sysdeps/unix/sysv/linux/csky/abiv2/____longjmp_chk.S: Likewise.
4893         * sysdeps/unix/sysv/linux/csky/abiv2/clone.S: Likewise.
4894         * sysdeps/unix/sysv/linux/csky/abiv2/getcontext.S: Likewise.
4895         * sysdeps/unix/sysv/linux/csky/abiv2/setcontext.S: Likewise.
4896         * sysdeps/unix/sysv/linux/csky/abiv2/swapcontext.S: Likewise.
4897         * sysdeps/unix/sysv/linux/csky/abiv2/syscall.S: Likewise.
4898         * sysdeps/unix/sysv/linux/csky/abiv2/sysdep.S: Likewise.
4899         * sysdeps/unix/sysv/linux/csky/abiv2/ucontext_i.sym: Likewise.
4900         * sysdeps/unix/sysv/linux/csky/bits/procfs.h: Likewise.
4901         * sysdeps/unix/sysv/linux/csky/bits/shmlba.h: Likewise.
4902         * sysdeps/unix/sysv/linux/csky/c++-types.data: Likewise.
4903         * sysdeps/unix/sysv/linux/csky/configure: Likewise.
4904         * sysdeps/unix/sysv/linux/csky/configure.ac: Likewise.
4905         * sysdeps/unix/sysv/linux/csky/ipc_priv.h: Likewise.
4906         * sysdeps/unix/sysv/linux/csky/jmp_buf-macros.h: Likewise.
4907         * sysdeps/unix/sysv/linux/csky/kernel-features.h: Likewise.
4908         * sysdeps/unix/sysv/linux/csky/ld.abilist: Likewise.
4909         * sysdeps/unix/sysv/linux/csky/ldconfig.h: Likewise.
4910         * sysdeps/unix/sysv/linux/csky/libBrokenLocale.abilist: Likewise.
4911         * sysdeps/unix/sysv/linux/csky/libanl.abilist: Likewise.
4912         * sysdeps/unix/sysv/linux/csky/libc.abilist: Likewise.
4913         * sysdeps/unix/sysv/linux/csky/libcrypt.abilist: Likewise.
4914         * sysdeps/unix/sysv/linux/csky/libdl.abilist: Likewise.
4915         * sysdeps/unix/sysv/linux/csky/libm.abilist: Likewise.
4916         * sysdeps/unix/sysv/linux/csky/libpthread.abilist: Likewise.
4917         * sysdeps/unix/sysv/linux/csky/libresolv.abilist: Likewise.
4918         * sysdeps/unix/sysv/linux/csky/librt.abilist: Likewise.
4919         * sysdeps/unix/sysv/linux/csky/libthread_db.abilist: Likewise.
4920         * sysdeps/unix/sysv/linux/csky/libutil.abilist: Likewise.
4921         * sysdeps/unix/sysv/linux/csky/localplt.data: Likewise.
4922         * sysdeps/unix/sysv/linux/csky/makecontext.c: Likewise.
4923         * sysdeps/unix/sysv/linux/csky/profil-counter.h: Likewise.
4924         * sysdeps/unix/sysv/linux/csky/pt-vfork.S: Likewise.
4925         * sysdeps/unix/sysv/linux/csky/register-dump.h: Likewise.
4926         * sysdeps/unix/sysv/linux/csky/shlib-versions: Likewise.
4927         * sysdeps/unix/sysv/linux/csky/sigcontextinfo.h: Likewise.
4928         * sysdeps/unix/sysv/linux/csky/sys/cachectl.h: Likewise.
4929         * sysdeps/unix/sysv/linux/csky/sys/ucontext.h: Likewise.
4930         * sysdeps/unix/sysv/linux/csky/sys/user.h: Likewise.
4931         * sysdeps/unix/sysv/linux/csky/syscalls.list: Likewise.
4932         * sysdeps/unix/sysv/linux/csky/sysdep.h: Likewise.
4934 2018-12-18  Albert ARIBAUD  <albert.aribaud@3adev.fr>
4936         * include/time.h (__difftime64): Add.
4937         * time/difftime.c (subtract): convert to 64-bit time.
4938         * time/difftime.c (__difftime64): Add.
4939         * time/difftime.c (__difftime): Wrap around __difftime64.
4941 2018-12-20  H.J. Lu  <hongjiu.lu@intel.com>
4943         * manual/examples/add.c: Remove redundant "if not".
4944         * manual/examples/argp-ex1.c: Likewise.
4945         * manual/examples/argp-ex2.c: Likewise.
4946         * manual/examples/argp-ex3.c: Likewise.
4947         * manual/examples/argp-ex4.c: Likewise.
4948         * manual/examples/atexit.c: Likewise.
4949         * manual/examples/db.c: Likewise.
4950         * manual/examples/dir.c: Likewise.
4951         * manual/examples/dir2.c: Likewise.
4952         * manual/examples/execinfo.c: Likewise.
4953         * manual/examples/filecli.c: Likewise.
4954         * manual/examples/filesrv.c: Likewise.
4955         * manual/examples/fmtmsgexpl.c: Likewise.
4956         * manual/examples/genpass.c: Likewise.
4957         * manual/examples/inetcli.c: Likewise.
4958         * manual/examples/inetsrv.c: Likewise.
4959         * manual/examples/isockad.c: Likewise.
4960         * manual/examples/longopt.c: Likewise.
4961         * manual/examples/memopen.c: Likewise.
4962         * manual/examples/memstrm.c: Likewise.
4963         * manual/examples/mkdirent.c: Likewise.
4964         * manual/examples/mkfsock.c: Likewise.
4965         * manual/examples/mkisock.c: Likewise.
4966         * manual/examples/mygetpass.c: Likewise.
4967         * manual/examples/pipe.c: Likewise.
4968         * manual/examples/popen.c: Likewise.
4969         * manual/examples/rprintf.c: Likewise.
4970         * manual/examples/search.c: Likewise.
4971         * manual/examples/select.c: Likewise.
4972         * manual/examples/setjmp.c: Likewise.
4973         * manual/examples/sigh1.c: Likewise.
4974         * manual/examples/sigusr.c: Likewise.
4975         * manual/examples/stpcpy.c: Likewise.
4976         * manual/examples/strdupa.c: Likewise.
4977         * manual/examples/strftim.c: Likewise.
4978         * manual/examples/subopt.c: Likewise.
4979         * manual/examples/swapcontext.c: Likewise.
4980         * manual/examples/termios.c: Likewise.
4981         * manual/examples/testopt.c: Likewise.
4982         * manual/examples/testpass.c: Likewise.
4983         * manual/examples/timeval_subtract.c: Likewise.
4985 2018-12-19  Joseph Myers  <joseph@codesourcery.com>
4987         * sysdeps/x86/fpu/math_private.h: New file.
4988         * sysdeps/x86/fpu/bits/mathinline.h: Remove.
4990         * sysdeps/x86/fpu/bits/mathinline.h (sinh): Remove inline
4991         definition.
4992         (cosh): Likewise.
4993         (tanh): Likewise.
4995 2018-12-19  Tulio Magno Quites Machado Filho  <tuliom@linux.ibm.com>
4997         * elf/dl-sysdep.c (auxvars): Add AT_L1I_CACHESIZE,
4998         AT_L1I_CACHEGEOMETRY, AT_L1D_CACHESIZE, AT_L1D_CACHEGEOMETRY,
4999         AT_L2_CACHESIZE, AT_L2_CACHEGEOMETRY, AT_L3_CACHESIZE and
5000         AT_L3_CACHEGEOMETRY.  Fix indentation when printing the other
5001         fields.
5002         (_dl_show_auxv): Give a special treatment to
5003         AT_L1I_CACHEGEOMETRY, AT_L1D_CACHEGEOMETRY, AT_L2_CACHEGEOMETRY
5004         and AT_L3_CACHEGEOMETRY.
5005         * sysdeps/powerpc/dl-procinfo.h (cache_geometry): New function.
5006         (_dl_procinfo): Fix indentation when printing AT_HWCAP and
5007         AT_HWCAP2.  Add support for AT_L1I_CACHEGEOMETRY,
5008         AT_L1D_CACHEGEOMETRY, AT_L2_CACHEGEOMETRY and AT_L3_CACHEGEOMETRY.
5010 2018-12-19  Andreas Schwab  <schwab@suse.de>
5012         * nscd/connections.c (check_use): Don't abort on invalid len.
5014 2018-12-18  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5016         * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Test against 64bit `cmd'
5017         values in the 64bit value cases.
5019 2018-12-18  Albert ARIBAUD  <albert.aribaud@3adev.fr>
5021         * include/time.h
5022         (__ctime64_r): Add.
5023         * time/ctime_r.c
5024         (__ctime64_r): Add.
5025         [__TIMESIZE != 64] (__ctime_r): Turn into a wrapper.
5027         * include/time.h
5028         (__ctime64): Add.
5029         * time/gmtime.c
5030         (__ctime64): Add.
5031         [__TIMESIZE != 64] (ctime): Turn into a wrapper.
5033         * include/time.h
5034         (__gmtime64_r): Add.
5035         * time/gmtime.c
5036         (__gmtime64_r): Add.
5037         [__TIMESIZE != 64] (__gmtime): Turn into a wrapper.
5039         * include/time.h
5040         (__gmtime64): Add.
5041         * time/gmtime.c
5042         (__gmtime64): Add.
5043         [__TIMESIZE != 64] (__gmtime): Turn into a wrapper.
5045         * include/time.h
5046         (__localtime64_r): Add.
5047         * time/localtime.c
5048         (__localtime64_r): Add.
5049         [__TIMESIZE != 64] (__localtime_r): Turn into a wrapper.
5051 2018-12-18  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
5053         * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Use Linux generic
5054         kernel_sigction definition.
5056         * sysdeps/unix/sysv/linux/ia64/kernel_sigaction.h: Remove file.
5058         * sysdeps/unix/sysv/linux/hppa/kernel_sigaction.h: Remove file.
5060         * sysdeps/unix/sysv/linux/alpha/Makefile: Update comment about
5061         __syscall_rt_sigaction.
5062         * sysdeps/unix/sysv/linux/alpha/kernel_sigaction.h
5063         (kernel_sigaction): Use Linux generic defintion.
5064         (STUB): Define.
5065         (__syscall_rt_sigreturn, __syscall_sigreturn): Add prototype.
5066         * sysdeps/unix/sysv/linux/alpha/rt_sigaction.S
5067         (__syscall_rt_sigaction): Remove implementation.
5068         (__syscall_sigreturn, __syscall_rt_sigreturn): Define as global and
5069         hidden.
5070         * sysdeps/unix/sysv/linux/alpha/sigaction.c: Remove file.
5071         * sysdeps/unix/sysv/linux/alpha/sysdep.h (INLINE_SYSCALL,
5072         INTERNAL_SYSCALL): Remove definitions.
5073         * sysdeps/unix/sysv/linux/sigaction.c: Define STUB to accept both the
5074         action and signal set size.
5075         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c (STUB): Redefine.
5076         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c (STUB): Likewise.
5078 2018-12-18  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
5079             James Clarke  <jrtc27@jrtc27.com>
5081         [BZ #23967]
5082         * sysdeps/unix/sysv/linux/kernel_sigaction.h (HAS_SA_RESTORER):
5083         Define if SA_RESTORER is defined.
5084         (kernel_sigaction): Define sa_restorer if HAS_SA_RESTORER is defined.
5085         (SET_SA_RESTORER, RESET_SA_RESTORER): Define iff the macro are not
5086         already defined.
5087         * sysdeps/unix/sysv/linux/m68k/kernel_sigaction.h (SA_RESTORER,
5088         kernel_sigaction, SET_SA_RESTORER, RESET_SA_RESTORER): Remove
5089         definitions.
5090         (HAS_SA_RESTORER): Define.
5091         * sysdeps/unix/sysv/linux/sparc/kernel_sigaction.h (SA_RESTORER,
5092         SET_SA_RESTORER, RESET_SA_RESTORER): Remove definition.
5093         (HAS_SA_RESTORER): Define.
5094         * sysdeps/unix/sysv/linux/nios2/kernel_sigaction.h: Include generic
5095         kernel_sigaction after define SET_SA_RESTORER and RESET_SA_RESTORER.
5096         * sysdeps/unix/sysv/linux/powerpc/kernel_sigaction.h: Likewise.
5097         * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Likewise.
5098         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
5100 2018-12-18  Joseph Myers  <joseph@codesourcery.com>
5102         * sysdeps/unix/sysv/linux/kernel-features.h
5103         (__ASSUME_ST_INO_64_BIT): Remove macro definition.
5104         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
5105         (__ASSUME_ST_INO_64_BIT): Do not undefine and define.
5106         * sysdeps/unix/sysv/linux/sh/kernel-features.h
5107         (__ASSUME_ST_INO_64_BIT): Likewise.
5108         * sysdeps/unix/sysv/linux/fxstat64.c: Do not include
5109         <kernel-features.h>.
5110         (___fxstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
5111         Remove conditional code.
5112         * sysdeps/unix/sysv/linux/lxstat64.c: Do not include
5113         <kernel-features.h>.
5114         (___lxstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
5115         Remove conditional code.
5116         * sysdeps/unix/sysv/linux/xstat64.c: Do not include
5117         <kernel-features.h>.
5118         (___xstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
5119         Remove conditional code.
5120         * sysdeps/unix/sysv/linux/xstatconv.c: Do not include
5121         <kernel-features.h>.
5122         (__xstat32_conv) [_HAVE_STAT64___ST_INO]: Remove conditional code.
5123         [!_HAVE_STAT64___ST_INO]: Make code unconditional.
5125 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
5127         * sysdeps/s390/multiarch/ifunc-resolve.h
5128         (s390_vx_libc_ifunc, s390_vx_libc_ifunc_redirected,
5129         s390_vx_libc_ifunc2, s390_vx_libc_ifunc_init,
5130         s390_vx_libc_ifunc2_redirected, s390_libc_ifunc):
5131         Delete macro definition.
5132         (s390_libc_ifunc_init): Rename to
5133         s390_libc_ifunc_expr_stfle_init.
5134         * sysdeps/s390/bzero: Use
5135         s390_libc_ifunc_expr_stfle_init instead of
5136         s390_libc_ifunc_init.
5137         * sysdeps/s390/memcmp.c: Likewise.
5138         * sysdeps/s390/memcpy.c: Likewise.
5139         * sysdeps/s390/mempcpy.c: Likewise.
5140         * sysdeps/s390/memset.c: Likewise.
5142 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
5144         * sysdeps/s390/multiarch/gconv_simple.c (ICONV_VX_IFUNC):
5145         Define macro dependent on HAVE_S390_MIN_Z13_ZARCH_ASM_SUPPORT.
5147 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
5149         * sysdeps/s390/multiarch/Makefile
5150         (sysdep_routines): Remove wmemcmp variants.
5151         * sysdeps/s390/Makefile (sysdep_routines): Add wmemcmp variants.
5152         * sysdeps/s390/multiarch/ifunc-impl-list.c
5153         (__libc_ifunc_impl_list): Refactor ifunc handling for wmemcmp.
5154         * sysdeps/s390/multiarch/wmemcmp-c.c: Move to ...
5155         * sysdeps/s390/wmemcmp-c.c: ... here and adjust ifunc handling.
5156         * sysdeps/s390/multiarch/wmemcmp-vx.S: Move to ...
5157         * sysdeps/s390/wmemcmp-vx.S: ... here and adjust ifunc handling.
5158         * sysdeps/s390/multiarch/wmemcmp.c: Move to ...
5159         * sysdeps/s390/wmemcmp.c: ... here and adjust ifunc handling.
5160         * sysdeps/s390/ifunc-wmemcmp.h: New file.
5162 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
5164         * sysdeps/s390/multiarch/Makefile
5165         (sysdep_routines): Remove wmemset variants.
5166         * sysdeps/s390/Makefile (sysdep_routines): Add wmemset variants.
5167         * sysdeps/s390/multiarch/ifunc-impl-list.c
5168         (__libc_ifunc_impl_list): Refactor ifunc handling for wmemset.
5169         * sysdeps/s390/multiarch/wmemset-c.c: Move to ...
5170         * sysdeps/s390/wmemset-c.c: ... here and adjust ifunc handling.
5171         * sysdeps/s390/multiarch/wmemset-vx.S: Move to ...
5172         * sysdeps/s390/wmemset-vx.S: ... here and adjust ifunc handling.
5173         * sysdeps/s390/multiarch/wmemset.c: Move to ...
5174         * sysdeps/s390/wmemset.c: ... here and adjust ifunc handling.
5175         * sysdeps/s390/ifunc-wmemset.h: New file.
5177 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
5179         * sysdeps/s390/multiarch/Makefile
5180         (sysdep_routines): Remove wmemchr variants.
5181         * sysdeps/s390/Makefile (sysdep_routines): Add wmemchr variants.
5182         * sysdeps/s390/multiarch/ifunc-impl-list.c
5183         (__libc_ifunc_impl_list): Refactor ifunc handling for wmemchr.
5184         * sysdeps/s390/multiarch/wmemchr-c.c: Move to ...
5185         * sysdeps/s390/wmemchr-c.c: ... here and adjust ifunc handling.
5186         * sysdeps/s390/multiarch/wmemchr-vx.S: Move to ...
5187         * sysdeps/s390/wmemchr-vx.S: ... here and adjust ifunc handling.
5188         * sysdeps/s390/multiarch/wmemchr.c: Move to ...
5189         * sysdeps/s390/wmemchr.c: ... here and adjust ifunc handling.
5190         * sysdeps/s390/ifunc-wmemchr.h: New file.
5192 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
5194         * sysdeps/s390/multiarch/Makefile
5195         (sysdep_routines): Remove wcscspn variants.
5196         * sysdeps/s390/Makefile (sysdep_routines): Add wcscspn variants.
5197         * sysdeps/s390/multiarch/ifunc-impl-list.c
5198         (__libc_ifunc_impl_list): Refactor ifunc handling for wcscspn.
5199         * sysdeps/s390/multiarch/wcscspn-c.c: Move to ...
5200         * sysdeps/s390/wcscspn-c.c: ... here and adjust ifunc handling.
5201         * sysdeps/s390/multiarch/wcscspn-vx.S: Move to ...
5202         * sysdeps/s390/wcscspn-vx.S: ... here and adjust ifunc handling.
5203         * sysdeps/s390/multiarch/wcscspn.c: Move to ...
5204         * sysdeps/s390/wcscspn.c: ... here and adjust ifunc handling.
5205         * sysdeps/s390/ifunc-wcscspn.h: New file.
5207 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
5209         * sysdeps/s390/multiarch/Makefile
5210         (sysdep_routines): Remove wcspbrk variants.
5211         * sysdeps/s390/Makefile (sysdep_routines): Add wcspbrk variants.
5212         * sysdeps/s390/multiarch/ifunc-impl-list.c
5213         (__libc_ifunc_impl_list): Refactor ifunc handling for wcspbrk.
5214         * sysdeps/s390/multiarch/wcspbrk-c.c: Move to ...
5215         * sysdeps/s390/wcspbrk-c.c: ... here and adjust ifunc handling.
5216         * sysdeps/s390/multiarch/wcspbrk-vx.S: Move to ...
5217         * sysdeps/s390/wcspbrk-vx.S: ... here and adjust ifunc handling.
5218         * sysdeps/s390/multiarch/wcspbrk.c: Move to ...
5219         * sysdeps/s390/wcspbrk.c: ... here and adjust ifunc handling.
5220         * sysdeps/s390/ifunc-wcspbrk.h: New file.
5222 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
5224         * sysdeps/s390/multiarch/Makefile
5225         (sysdep_routines): Remove wcsspn variants.
5226         * sysdeps/s390/Makefile (sysdep_routines): Add wcsspn variants.
5227         * sysdeps/s390/multiarch/ifunc-impl-list.c
5228         (__libc_ifunc_impl_list): Refactor ifunc handling for wcsspn.
5229         * sysdeps/s390/multiarch/wcsspn-c.c: Move to ...
5230         * sysdeps/s390/wcsspn-c.c: ... here and adjust ifunc handling.
5231         * sysdeps/s390/multiarch/wcsspn-vx.S: Move to ...
5232         * sysdeps/s390/wcsspn-vx.S: ... here and adjust ifunc handling.
5233         * sysdeps/s390/multiarch/wcsspn.c: Move to ...
5234         * sysdeps/s390/wcsspn.c: ... here and adjust ifunc handling.
5235         * sysdeps/s390/ifunc-wcsspn.h: New file.
5237 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
5239         * sysdeps/s390/multiarch/Makefile
5240         (sysdep_routines): Remove wcsrchr variants.
5241         * sysdeps/s390/Makefile (sysdep_routines): Add wcsrchr variants.
5242         * sysdeps/s390/multiarch/ifunc-impl-list.c
5243         (__libc_ifunc_impl_list): Refactor ifunc handling for wcsrchr.
5244         * sysdeps/s390/multiarch/wcsrchr-c.c: Move to ...
5245         * sysdeps/s390/wcsrchr-c.c: ... here and adjust ifunc handling.
5246         * sysdeps/s390/multiarch/wcsrchr-vx.S: Move to ...
5247         * sysdeps/s390/wcsrchr-vx.S: ... here and adjust ifunc handling.
5248         * sysdeps/s390/multiarch/wcsrchr.c: Move to ...
5249         * sysdeps/s390/wcsrchr.c: ... here and adjust ifunc handling.
5250         * sysdeps/s390/ifunc-wcsrchr.h: New file.
5252 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
5254         * sysdeps/s390/multiarch/Makefile
5255         (sysdep_routines): Remove wcschrnul variants.
5256         * sysdeps/s390/Makefile (sysdep_routines): Add wcschrnul variants.
5257         * sysdeps/s390/multiarch/ifunc-impl-list.c
5258         (__libc_ifunc_impl_list): Refactor ifunc handling for wcschrnul.
5259         * sysdeps/s390/multiarch/wcschrnul-c.c: Move to ...
5260         * sysdeps/s390/wcschrnul-c.c: ... here and adjust ifunc handling.
5261         * sysdeps/s390/multiarch/wcschrnul-vx.S: Move to ...
5262         * sysdeps/s390/wcschrnul-vx.S: ... here and adjust ifunc handling.
5263         * sysdeps/s390/multiarch/wcschrnul.c: Move to ...
5264         * sysdeps/s390/wcschrnul.c: ... here and adjust ifunc handling.
5265         * sysdeps/s390/ifunc-wcschrnul.h: New file.
5267 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
5269         * sysdeps/s390/multiarch/Makefile
5270         (sysdep_routines): Remove wcschr variants.
5271         * sysdeps/s390/Makefile (sysdep_routines): Add wcschr variants.
5272         * sysdeps/s390/multiarch/ifunc-impl-list.c
5273         (__libc_ifunc_impl_list): Refactor ifunc handling for wcschr.
5274         * sysdeps/s390/multiarch/wcschr-c.c: Move to ...
5275         * sysdeps/s390/wcschr-c.c: ... here and adjust ifunc handling.
5276         * sysdeps/s390/multiarch/wcschr-vx.S: Move to ...
5277         * sysdeps/s390/wcschr-vx.S: ... here and adjust ifunc handling.
5278         * sysdeps/s390/multiarch/wcschr.c: Move to ...
5279         * sysdeps/s390/wcschr.c: ... here and adjust ifunc handling.
5280         * sysdeps/s390/ifunc-wcschr.h: New file.
5282 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
5284         * sysdeps/s390/multiarch/Makefile
5285         (sysdep_routines): Remove wcsncmp variants.
5286         * sysdeps/s390/Makefile (sysdep_routines): Add wcsncmp variants.
5287         * sysdeps/s390/multiarch/ifunc-impl-list.c
5288         (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncmp.
5289         * sysdeps/s390/multiarch/wcsncmp-c.c: Move to ...
5290         * sysdeps/s390/wcsncmp-c.c: ... here and adjust ifunc handling.
5291         * sysdeps/s390/multiarch/wcsncmp-vx.S: Move to ...
5292         * sysdeps/s390/wcsncmp-vx.S: ... here and adjust ifunc handling.
5293         * sysdeps/s390/multiarch/wcsncmp.c: Move to ...
5294         * sysdeps/s390/wcsncmp.c: ... here and adjust ifunc handling.
5295         * sysdeps/s390/ifunc-wcsncmp.h: New file.
5297 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
5299         * sysdeps/s390/multiarch/Makefile
5300         (sysdep_routines): Remove wcscmp variants.
5301         * sysdeps/s390/Makefile (sysdep_routines): Add wcscmp variants.
5302         * sysdeps/s390/multiarch/ifunc-impl-list.c
5303         (__libc_ifunc_impl_list): Refactor ifunc handling for wcscmp.
5304         * sysdeps/s390/multiarch/wcscmp-c.c: Move to ...
5305         * sysdeps/s390/wcscmp-c.c: ... here and adjust ifunc handling.
5306         * sysdeps/s390/multiarch/wcscmp-vx.S: Move to ...
5307         * sysdeps/s390/wcscmp-vx.S: ... here and adjust ifunc handling.
5308         * sysdeps/s390/multiarch/wcscmp.c: Move to ...
5309         * sysdeps/s390/wcscmp.c: ... here and adjust ifunc handling.
5310         * sysdeps/s390/ifunc-wcscmp.h: New file.
5312 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
5314         * sysdeps/s390/multiarch/Makefile
5315         (sysdep_routines): Remove wcsncat variants.
5316         * sysdeps/s390/Makefile (sysdep_routines): Add wcsncat variants.
5317         * sysdeps/s390/multiarch/ifunc-impl-list.c
5318         (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncat.
5319         * sysdeps/s390/multiarch/wcsncat-c.c: Move to ...
5320         * sysdeps/s390/wcsncat-c.c: ... here and adjust ifunc handling.
5321         * sysdeps/s390/multiarch/wcsncat-vx.S: Move to ...
5322         * sysdeps/s390/wcsncat-vx.S: ... here and adjust ifunc handling.
5323         * sysdeps/s390/multiarch/wcsncat.c: Move to ...
5324         * sysdeps/s390/wcsncat.c: ... here and adjust ifunc handling.
5325         * sysdeps/s390/ifunc-wcsncat.h: New file.
5327 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
5329         * sysdeps/s390/multiarch/Makefile
5330         (sysdep_routines): Remove wcscat variants.
5331         * sysdeps/s390/Makefile (sysdep_routines): Add wcscat variants.
5332         * sysdeps/s390/multiarch/ifunc-impl-list.c
5333         (__libc_ifunc_impl_list): Refactor ifunc handling for wcscat.
5334         * sysdeps/s390/multiarch/wcscat-c.c: Move to ...
5335         * sysdeps/s390/wcscat-c.c: ... here and adjust ifunc handling.
5336         * sysdeps/s390/multiarch/wcscat-vx.S: Move to ...
5337         * sysdeps/s390/wcscat-vx.S: ... here and adjust ifunc handling.
5338         * sysdeps/s390/multiarch/wcscat.c: Move to ...
5339         * sysdeps/s390/wcscat.c: ... here and adjust ifunc handling.
5340         * sysdeps/s390/ifunc-wcscat.h: New file.
5342 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
5344         * sysdeps/s390/multiarch/Makefile
5345         (sysdep_routines): Remove wcpncpy variants.
5346         * sysdeps/s390/Makefile (sysdep_routines): Add wcpncpy variants.
5347         * sysdeps/s390/multiarch/ifunc-impl-list.c
5348         (__libc_ifunc_impl_list): Refactor ifunc handling for wcpncpy.
5349         * sysdeps/s390/multiarch/wcpncpy-c.c: Move to ...
5350         * sysdeps/s390/wcpncpy-c.c: ... here and adjust ifunc handling.
5351         * sysdeps/s390/multiarch/wcpncpy-vx.S: Move to ...
5352         * sysdeps/s390/wcpncpy-vx.S: ... here and adjust ifunc handling.
5353         * sysdeps/s390/multiarch/wcpncpy.c: Move to ...
5354         * sysdeps/s390/wcpncpy.c: ... here and adjust ifunc handling.
5355         * sysdeps/s390/ifunc-wcpncpy.h: New file.
5357 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
5359         * sysdeps/s390/multiarch/Makefile
5360         (sysdep_routines): Remove wcsncpy variants.
5361         * sysdeps/s390/Makefile (sysdep_routines): Add wcsncpy variants.
5362         * sysdeps/s390/multiarch/ifunc-impl-list.c
5363         (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncpy.
5364         * sysdeps/s390/multiarch/wcsncpy-c.c: Move to ...
5365         * sysdeps/s390/wcsncpy-c.c: ... here and adjust ifunc handling.
5366         * sysdeps/s390/multiarch/wcsncpy-vx.S: Move to ...
5367         * sysdeps/s390/wcsncpy-vx.S: ... here and adjust ifunc handling.
5368         * sysdeps/s390/multiarch/wcsncpy.c: Move to ...
5369         * sysdeps/s390/wcsncpy.c: ... here and adjust ifunc handling.
5370         * sysdeps/s390/ifunc-wcsncpy.h: New file.
5372 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
5374         * sysdeps/s390/multiarch/Makefile
5375         (sysdep_routines): Remove wcpcpy variants.
5376         * sysdeps/s390/Makefile (sysdep_routines): Add wcpcpy variants.
5377         * sysdeps/s390/multiarch/ifunc-impl-list.c
5378         (__libc_ifunc_impl_list): Refactor ifunc handling for wcpcpy.
5379         * sysdeps/s390/multiarch/wcpcpy-c.c: Move to ...
5380         * sysdeps/s390/wcpcpy-c.c: ... here and adjust ifunc handling.
5381         * sysdeps/s390/multiarch/wcpcpy-vx.S: Move to ...
5382         * sysdeps/s390/wcpcpy-vx.S: ... here and adjust ifunc handling.
5383         * sysdeps/s390/multiarch/wcpcpy.c: Move to ...
5384         * sysdeps/s390/wcpcpy.c: ... here and adjust ifunc handling.
5385         * sysdeps/s390/ifunc-wcpcpy.h: New file.
5387 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
5389         * sysdeps/s390/multiarch/Makefile
5390         (sysdep_routines): Remove wcscpy variants.
5391         * sysdeps/s390/Makefile (sysdep_routines): Add wcscpy variants.
5392         * sysdeps/s390/multiarch/ifunc-impl-list.c
5393         (__libc_ifunc_impl_list): Refactor ifunc handling for wcscpy.
5394         * sysdeps/s390/multiarch/wcscpy-c.c: Move to ...
5395         * sysdeps/s390/wcscpy-c.c: ... here and adjust ifunc handling.
5396         * sysdeps/s390/multiarch/wcscpy-vx.S: Move to ...
5397         * sysdeps/s390/wcscpy-vx.S: ... here and adjust ifunc handling.
5398         * sysdeps/s390/multiarch/wcscpy.c: Move to ...
5399         * sysdeps/s390/wcscpy.c: ... here and adjust ifunc handling.
5400         * sysdeps/s390/ifunc-wcscpy.h: New file.
5402 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
5404         * sysdeps/s390/multiarch/Makefile
5405         (sysdep_routines): Remove wcsnlen variants.
5406         * sysdeps/s390/Makefile (sysdep_routines): Add wcsnlen variants.
5407         * sysdeps/s390/multiarch/ifunc-impl-list.c
5408         (__libc_ifunc_impl_list): Refactor ifunc handling for wcsnlen.
5409         * sysdeps/s390/multiarch/wcsnlen-c.c: Move to ...
5410         * sysdeps/s390/wcsnlen-c.c: ... here and adjust ifunc handling.
5411         * sysdeps/s390/multiarch/wcsnlen-vx.S: Move to ...
5412         * sysdeps/s390/wcsnlen-vx.S: ... here and adjust ifunc handling.
5413         * sysdeps/s390/multiarch/wcsnlen.c: Move to ...
5414         * sysdeps/s390/wcsnlen.c: ... here and adjust ifunc handling.
5415         * sysdeps/s390/ifunc-wcsnlen.h: New file.
5417 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
5419         * sysdeps/s390/multiarch/Makefile
5420         (sysdep_routines): Remove wcslen variants.
5421         * sysdeps/s390/Makefile (sysdep_routines): Add wcslen variants.
5422         * sysdeps/s390/multiarch/ifunc-impl-list.c
5423         (__libc_ifunc_impl_list): Refactor ifunc handling for wcslen.
5424         * sysdeps/s390/multiarch/wcslen-c.c: Move to ...
5425         * sysdeps/s390/wcslen-c.c: ... here and adjust ifunc handling.
5426         * sysdeps/s390/multiarch/wcslen-vx.S: Move to ...
5427         * sysdeps/s390/wcslen-vx.S: ... here and adjust ifunc handling.
5428         * sysdeps/s390/multiarch/wcslen.c: Move to ...
5429         * sysdeps/s390/wcslen.c: ... here and adjust ifunc handling.
5430         * sysdeps/s390/ifunc-wcslen.h: New file.
5432 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
5434         * sysdeps/s390/multiarch/Makefile
5435         (sysdep_routines): Remove memrchr variants.
5436         * sysdeps/s390/Makefile (sysdep_routines): Add memrchr variants.
5437         * sysdeps/s390/multiarch/ifunc-impl-list.c
5438         (__libc_ifunc_impl_list): Refactor ifunc handling for memrchr.
5439         * sysdeps/s390/multiarch/memrchr-c.c: Move to ...
5440         * sysdeps/s390/memrchr-c.c: ... here and adjust ifunc handling.
5441         * sysdeps/s390/multiarch/memrchr-vx.S: Move to ...
5442         * sysdeps/s390/memrchr-vx.S: ... here and adjust ifunc handling.
5443         * sysdeps/s390/multiarch/memrchr.c: Move to ...
5444         * sysdeps/s390/memrchr.c: ... here and adjust ifunc handling.
5445         * sysdeps/s390/ifunc-memrchr.h: New file.
5447 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
5449         * sysdeps/s390/multiarch/Makefile
5450         (sysdep_routines): Remove memccpy variants.
5451         * sysdeps/s390/Makefile (sysdep_routines): Add memccpy variants.
5452         * sysdeps/s390/multiarch/ifunc-impl-list.c
5453         (__libc_ifunc_impl_list): Refactor ifunc handling for memccpy.
5454         * sysdeps/s390/multiarch/memccpy-c.c: Move to ...
5455         * sysdeps/s390/memccpy-c.c: ... here and adjust ifunc handling.
5456         * sysdeps/s390/multiarch/memccpy-vx.S: Move to ...
5457         * sysdeps/s390/memccpy-vx.S: ... here and adjust ifunc handling.
5458         * sysdeps/s390/multiarch/memccpy.c: Move to ...
5459         * sysdeps/s390/memccpy.c: ... here and adjust ifunc handling.
5460         * sysdeps/s390/ifunc-memccpy.h: New file.
5462 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
5464         * sysdeps/s390/multiarch/Makefile
5465         (sysdep_routines): Remove rawmemchr variants.
5466         * sysdeps/s390/Makefile (sysdep_routines): Add rawmemchr variants.
5467         * sysdeps/s390/multiarch/ifunc-impl-list.c
5468         (__libc_ifunc_impl_list): Refactor ifunc handling for rawmemchr.
5469         * sysdeps/s390/multiarch/rawmemchr-c.c: Move to ...
5470         * sysdeps/s390/rawmemchr-c.c: ... here and adjust ifunc handling.
5471         * sysdeps/s390/multiarch/rawmemchr-vx.S: Move to ...
5472         * sysdeps/s390/rawmemchr-vx.S: ... here and adjust ifunc handling.
5473         * sysdeps/s390/multiarch/rawmemchr.c: Move to ...
5474         * sysdeps/s390/rawmemchr.c: ... here and adjust ifunc handling.
5475         * sysdeps/s390/ifunc-rawmemchr.h: New file.
5477 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
5479         * sysdeps/s390/multiarch/Makefile
5480         (sysdep_routines): Remove memchr variants.
5481         * sysdeps/s390/Makefile (sysdep_routines): Add memchr variants.
5482         * sysdeps/s390/multiarch/ifunc-impl-list.c
5483         (__libc_ifunc_impl_list): Refactor ifunc handling for memchr.
5484         * sysdeps/s390/multiarch/memchr-vx.S: Move to ...
5485         * sysdeps/s390/memchr-vx.S: ... here and adjust ifunc handling.
5486         * sysdeps/s390/multiarch/memchr.c: Move to ...
5487         * sysdeps/s390/memchr.c: ... here and adjust ifunc handling.
5488         * sysdeps/s390/ifunc-memchr.h: New file.
5489         * sysdeps/s390/s390-64/memchr.S: Move to ...
5490         * sysdeps/s390/memchr-z900.S: ... here and adjust to be usable
5491         for 31/64bit and ifunc handling.
5492         * sysdeps/s390/s390-32/multiarch/memchr.c: Delete file.
5493         * sysdeps/s390/s390-64/multiarch/memchr.c: Likewise.
5494         * sysdeps/s390/s390-32/memchr.S: Likewise.
5496 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
5498         * sysdeps/s390/multiarch/Makefile
5499         (sysdep_routines): Remove strcspn variants.
5500         * sysdeps/s390/Makefile (sysdep_routines): Add strcspn variants.
5501         * sysdeps/s390/multiarch/ifunc-impl-list.c
5502         (__libc_ifunc_impl_list): Refactor ifunc handling for strcspn.
5503         * sysdeps/s390/multiarch/strcspn-c.c: Move to ...
5504         * sysdeps/s390/strcspn-c.c: ... here and adjust ifunc handling.
5505         * sysdeps/s390/multiarch/strcspn-vx.S: Move to ...
5506         * sysdeps/s390/strcspn-vx.S: ... here and adjust ifunc handling.
5507         * sysdeps/s390/multiarch/strcspn.c: Move to ...
5508         * sysdeps/s390/strcspn.c: ... here and adjust ifunc handling.
5509         * sysdeps/s390/ifunc-strcspn.h: New file.
5511 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
5513         * sysdeps/s390/multiarch/Makefile
5514         (sysdep_routines): Remove strpbrk variants.
5515         * sysdeps/s390/Makefile (sysdep_routines): Add strpbrk variants.
5516         * sysdeps/s390/multiarch/ifunc-impl-list.c
5517         (__libc_ifunc_impl_list): Refactor ifunc handling for strpbrk.
5518         * sysdeps/s390/multiarch/strpbrk-c.c: Move to ...
5519         * sysdeps/s390/strpbrk-c.c: ... here and adjust ifunc handling.
5520         * sysdeps/s390/multiarch/strpbrk-vx.S: Move to ...
5521         * sysdeps/s390/strpbrk-vx.S: ... here and adjust ifunc handling.
5522         * sysdeps/s390/multiarch/strpbrk.c: Move to ...
5523         * sysdeps/s390/strpbrk.c: ... here and adjust ifunc handling.
5524         * sysdeps/s390/ifunc-strpbrk.h: New file.
5526 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
5528         * sysdeps/s390/multiarch/Makefile
5529         (sysdep_routines): Remove strspn variants.
5530         * sysdeps/s390/Makefile (sysdep_routines): Add strspn variants.
5531         * sysdeps/s390/multiarch/ifunc-impl-list.c
5532         (__libc_ifunc_impl_list): Refactor ifunc handling for strspn.
5533         * sysdeps/s390/multiarch/strspn-c.c: Move to ...
5534         * sysdeps/s390/strspn-c.c: ... here and adjust ifunc handling.
5535         * sysdeps/s390/multiarch/strspn-vx.S: Move to ...
5536         * sysdeps/s390/strspn-vx.S: ... here and adjust ifunc handling.
5537         * sysdeps/s390/multiarch/strspn.c: Move to ...
5538         * sysdeps/s390/strspn.c: ... here and adjust ifunc handling.
5539         * sysdeps/s390/ifunc-strspn.h: New file.
5541 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
5543         * sysdeps/s390/multiarch/Makefile
5544         (sysdep_routines): Remove strrchr variants.
5545         * sysdeps/s390/Makefile (sysdep_routines): Add strrchr variants.
5546         * sysdeps/s390/multiarch/ifunc-impl-list.c
5547         (__libc_ifunc_impl_list): Refactor ifunc handling for strrchr.
5548         * sysdeps/s390/multiarch/strrchr-c.c: Move to ...
5549         * sysdeps/s390/strrchr-c.c: ... here and adjust ifunc handling.
5550         * sysdeps/s390/multiarch/strrchr-vx.S: Move to ...
5551         * sysdeps/s390/strrchr-vx.S: ... here and adjust ifunc handling.
5552         * sysdeps/s390/multiarch/strrchr.c: Move to ...
5553         * sysdeps/s390/strrchr.c: ... here and adjust ifunc handling.
5554         * sysdeps/s390/ifunc-strrchr.h: New file.
5556 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
5558         * sysdeps/s390/multiarch/Makefile
5559         (sysdep_routines): Remove strchrnul variants.
5560         * sysdeps/s390/Makefile (sysdep_routines): Add strchrnul variants.
5561         * sysdeps/s390/multiarch/ifunc-impl-list.c
5562         (__libc_ifunc_impl_list): Refactor ifunc handling for strchrnul.
5563         * sysdeps/s390/multiarch/strchrnul-c.c: Move to ...
5564         * sysdeps/s390/strchrnul-c.c: ... here and adjust ifunc handling.
5565         * sysdeps/s390/multiarch/strchrnul-vx.S: Move to ...
5566         * sysdeps/s390/strchrnul-vx.S: ... here and adjust ifunc handling.
5567         * sysdeps/s390/multiarch/strchrnul.c: Move to ...
5568         * sysdeps/s390/strchrnul.c: ... here and adjust ifunc handling.
5569         * sysdeps/s390/ifunc-strchrnul.h: New file.
5571 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
5573         * sysdeps/s390/multiarch/Makefile
5574         (sysdep_routines): Remove strchr variants.
5575         * sysdeps/s390/Makefile (sysdep_routines): Add strchr variants.
5576         * sysdeps/s390/multiarch/ifunc-impl-list.c
5577         (__libc_ifunc_impl_list): Refactor ifunc handling for strchr.
5578         * sysdeps/s390/multiarch/strchr-c.c: Move to ...
5579         * sysdeps/s390/strchr-c.c: ... here and adjust ifunc handling.
5580         * sysdeps/s390/multiarch/strchr-vx.S: Move to ...
5581         * sysdeps/s390/strchr-vx.S: ... here and adjust ifunc handling.
5582         * sysdeps/s390/multiarch/strchr.c: Move to ...
5583         * sysdeps/s390/strchr.c: ... here and adjust ifunc handling.
5584         * sysdeps/s390/ifunc-strchr.h: New file.
5586 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
5588         * sysdeps/s390/multiarch/Makefile
5589         (sysdep_routines): Remove strncmp variants.
5590         * sysdeps/s390/Makefile (sysdep_routines): Add strncmp variants.
5591         * sysdeps/s390/multiarch/ifunc-impl-list.c
5592         (__libc_ifunc_impl_list): Refactor ifunc handling for strncmp.
5593         * sysdeps/s390/multiarch/strncmp-c.c: Move to ...
5594         * sysdeps/s390/strncmp-c.c: ... here and adjust ifunc handling.
5595         * sysdeps/s390/multiarch/strncmp-vx.S: Move to ...
5596         * sysdeps/s390/strncmp-vx.S: ... here and adjust ifunc handling.
5597         * sysdeps/s390/multiarch/strncmp.c: Move to ...
5598         * sysdeps/s390/strncmp.c: ... here and adjust ifunc handling.
5599         * sysdeps/s390/ifunc-strncmp.h: New file.
5601 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
5603         * sysdeps/s390/multiarch/Makefile
5604         (sysdep_routines): Remove strcmp variants.
5605         * sysdeps/s390/Makefile (sysdep_routines): Add strcmp variants.
5606         * sysdeps/s390/multiarch/ifunc-impl-list.c
5607         (__libc_ifunc_impl_list): Refactor ifunc handling for strcmp.
5608         * sysdeps/s390/multiarch/strcmp-vx.S: Move to ...
5609         * sysdeps/s390/strcmp-vx.S: ... here and adjust ifunc handling.
5610         * sysdeps/s390/multiarch/strcmp.c: Move to ...
5611         * sysdeps/s390/strcmp.c: ... here and adjust ifunc handling.
5612         * sysdeps/s390/ifunc-strcmp.h: New file.
5613         * sysdeps/s390/s390-64/strcmp.S: Move to ...
5614         * sysdeps/s390/strcmp-z900.S: ... here and adjust to be usable
5615         for 31/64bit and ifunc handling.
5616         * sysdeps/s390/s390-32/multiarch/strcmp.c: Delete file.
5617         * sysdeps/s390/s390-64/multiarch/strcmp.c: Likewise.
5618         * sysdeps/s390/s390-32/strcmp.S: Likewise.
5620 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
5622         * sysdeps/s390/multiarch/Makefile
5623         (sysdep_routines): Remove strncat variants.
5624         * sysdeps/s390/Makefile (sysdep_routines): Add strncat variants.
5625         * sysdeps/s390/multiarch/ifunc-impl-list.c
5626         (__libc_ifunc_impl_list): Refactor ifunc handling for strncat.
5627         * sysdeps/s390/multiarch/strncat-c.c: Move to ...
5628         * sysdeps/s390/strncat-c.c: ... here and adjust ifunc handling.
5629         * sysdeps/s390/multiarch/strncat-vx.S: Move to ...
5630         * sysdeps/s390/strncat-vx.S: ... here and adjust ifunc handling.
5631         * sysdeps/s390/multiarch/strncat.c: Move to ...
5632         * sysdeps/s390/strncat.c: ... here and adjust ifunc handling.
5633         * sysdeps/s390/ifunc-strncat.h: New file.
5635 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
5637         * sysdeps/s390/multiarch/Makefile
5638         (sysdep_routines): Remove strcat variants.
5639         * sysdeps/s390/Makefile (sysdep_routines): Add strcat variants.
5640         * sysdeps/s390/multiarch/ifunc-impl-list.c
5641         (__libc_ifunc_impl_list): Refactor ifunc handling for strcat.
5642         * sysdeps/s390/multiarch/strcat-c.c: Move to ...
5643         * sysdeps/s390/strcat-c.c: ... here and adjust ifunc handling.
5644         * sysdeps/s390/multiarch/strcat-vx.S: Move to ...
5645         * sysdeps/s390/strcat-vx.S: ... here and adjust ifunc handling.
5646         * sysdeps/s390/multiarch/strcat.c: Move to ...
5647         * sysdeps/s390/strcat.c: ... here and adjust ifunc handling.
5648         * sysdeps/s390/ifunc-strcat.h: New file.
5650 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
5652         * sysdeps/s390/multiarch/Makefile
5653         (sysdep_routines): Remove stpncpy variants.
5654         * sysdeps/s390/Makefile (sysdep_routines): Add stpncpy variants.
5655         * sysdeps/s390/multiarch/ifunc-impl-list.c
5656         (__libc_ifunc_impl_list): Refactor ifunc handling for stpncpy.
5657         * sysdeps/s390/multiarch/stpncpy-c.c: Move to ...
5658         * sysdeps/s390/stpncpy-c.c: ... here and adjust ifunc handling.
5659         * sysdeps/s390/multiarch/stpncpy-vx.S: Move to ...
5660         * sysdeps/s390/stpncpy-vx.S: ... here and adjust ifunc handling.
5661         * sysdeps/s390/multiarch/stpncpy.c: Move to ...
5662         * sysdeps/s390/stpncpy.c: ... here and adjust ifunc handling.
5663         * sysdeps/s390/ifunc-stpncpy.h: New file.
5665 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
5667         * sysdeps/s390/multiarch/Makefile
5668         (sysdep_routines): Remove strncpy variants.
5669         * sysdeps/s390/Makefile (sysdep_routines): Add strncpy variants.
5670         * sysdeps/s390/multiarch/ifunc-impl-list.c
5671         (__libc_ifunc_impl_list): Refactor ifunc handling for strncpy.
5672         * sysdeps/s390/multiarch/strncpy-vx.S: Move to ...
5673         * sysdeps/s390/strncpy-vx.S: ... here and adjust ifunc handling.
5674         * sysdeps/s390/multiarch/strncpy.c: Move to ...
5675         * sysdeps/s390/strncpy.c: ... here and adjust ifunc handling.
5676         * sysdeps/s390/ifunc-strncpy.h: New file.
5677         * sysdeps/s390/s390-64/strncpy.S: Move to ...
5678         * sysdeps/s390/s390-64/strncpy-z900.S: ... here
5679         and adjust ifunc handling.
5680         * sysdeps/s390/s390-32/strncpy.S: Move to ...
5681         * sysdeps/s390/s390-32/strncpy-z900.S: ... here
5682         and adjust ifunc handling.
5683         * sysdeps/s390/s390-32/multiarch/strncpy.c: Delete file.
5684         * sysdeps/s390/s390-64/multiarch/strncpy.c: Likewise.
5686 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
5688         * sysdeps/s390/multiarch/Makefile
5689         (sysdep_routines): Remove stpcpy variants.
5690         * sysdeps/s390/Makefile (sysdep_routines): Add stpcpy variants.
5691         * sysdeps/s390/multiarch/ifunc-impl-list.c
5692         (__libc_ifunc_impl_list): Refactor ifunc handling for stpcpy.
5693         * sysdeps/s390/multiarch/stpcpy-c.c: Move to ...
5694         * sysdeps/s390/stpcpy-c.c: ... here and adjust ifunc handling.
5695         * sysdeps/s390/multiarch/stpcpy-vx.S: Move to ...
5696         * sysdeps/s390/stpcpy-vx.S: ... here and adjust ifunc handling.
5697         * sysdeps/s390/multiarch/stpcpy.c: Move to ...
5698         * sysdeps/s390/stpcpy.c: ... here and adjust ifunc handling.
5699         * sysdeps/s390/ifunc-stpcpy.h: New file.
5701 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
5703         * sysdeps/s390/multiarch/Makefile
5704         (sysdep_routines): Remove strcpy variants.
5705         * sysdeps/s390/Makefile (sysdep_routines): Add strcpy variants.
5706         * sysdeps/s390/multiarch/ifunc-impl-list.c
5707         (__libc_ifunc_impl_list): Refactor ifunc handling for strcpy.
5708         * sysdeps/s390/multiarch/strcpy-vx.S: Move to ...
5709         * sysdeps/s390/strcpy-vx.S: ... here and adjust ifunc handling.
5710         * sysdeps/s390/multiarch/strcpy.c: Move to ...
5711         * sysdeps/s390/strcpy.c: ... here and adjust ifunc handling.
5712         * sysdeps/s390/ifunc-strcpy.h: New file.
5713         * sysdeps/s390/s390-64/strcpy.S: Move to ...
5714         * sysdeps/s390/strcpy-z900.S: ... here and adjust to be usable
5715         for 31/64bit and ifunc handling.
5716         * sysdeps/s390/s390-32/multiarch/strcpy.c: Delete file.
5717         * sysdeps/s390/s390-64/multiarch/strcpy.c: Likewise.
5718         * sysdeps/s390/s390-32/strcpy.S: Likewise.
5720 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
5722         * sysdeps/s390/multiarch/Makefile
5723         (sysdep_routines): Remove strnlen variants.
5724         * sysdeps/s390/Makefile (sysdep_routines): Add strnlen variants.
5725         * sysdeps/s390/multiarch/ifunc-impl-list.c
5726         (__libc_ifunc_impl_list): Refactor ifunc handling for strnlen.
5727         * sysdeps/s390/multiarch/strnlen-c.c: Move to ...
5728         * sysdeps/s390/strnlen-c.c: ... here and adjust ifunc handling.
5729         * sysdeps/s390/multiarch/strnlen-vx.S: Move to ...
5730         * sysdeps/s390/strnlen-vx.S: ... here and adjust ifunc handling.
5731         * sysdeps/s390/multiarch/strnlen.c: Move to ...
5732         * sysdeps/s390/strnlen.c: ... here and adjust ifunc handling.
5733         * sysdeps/s390/ifunc-strnlen.h: New file.
5735 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
5737         * sysdeps/s390/multiarch/Makefile
5738         (sysdep_routines): Remove strlen variants.
5739         * sysdeps/s390/Makefile (sysdep_routines): Add strlen variants.
5740         * sysdeps/s390/multiarch/ifunc-impl-list.c
5741         (__libc_ifunc_impl_list): Refactor ifunc handling for strlen.
5742         * sysdeps/s390/multiarch/strlen-c.c: Move to ...
5743         * sysdeps/s390/strlen-c.c: ... here and adjust ifunc handling.
5744         * sysdeps/s390/multiarch/strlen-vx.S: Move to ...
5745         * sysdeps/s390/strlen-vx.S: ... here and adjust ifunc handling.
5746         * sysdeps/s390/multiarch/strlen.c: Move to ...
5747         * sysdeps/s390/strlen.c: ... here and adjust ifunc handling.
5748         * sysdeps/s390/ifunc-strlen.h: New file.
5750 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
5752         * sysdeps/s390/Makefile (sysdep_routines): Add memmem variants.
5753         * sysdeps/s390/multiarch/ifunc-impl-list.c
5754         (__libc_ifunc_impl_list): Add ifunc variants for memmem.
5755         * sysdeps/s390/ifunc-memmem.h: New file.
5756         * sysdeps/s390/memmem.c: Likewise.
5757         * sysdeps/s390/memmem-c.c: Likewise.
5758         * sysdeps/s390/memmem-vx.c: Likewise.
5760 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
5762         * sysdeps/s390/Makefile (sysdep_routines): Add strstr variants.
5763         * sysdeps/s390/multiarch/ifunc-impl-list.c
5764         (__libc_ifunc_impl_list): Add ifunc variants for strstr.
5765         * sysdeps/s390/ifunc-strstr.h: New file.
5766         * sysdeps/s390/strstr.c: Likewise.
5767         * sysdeps/s390/strstr-c.c: Likewise.
5768         * sysdeps/s390/strstr-vx.c: Likewise.
5770 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
5772         * sysdeps/s390/Makefile (sysdep_routines): Add memmove-c.
5773         * sysdeps/s390/ifunc-memcpy.h (HAVE_MEMMOVE_IFUNC,
5774         HAVE_MEMMOVE_IFUNC_AND_VX_SUPPORT, MEMMOVE_DEFAULT,
5775         HAVE_MEMMOVE_C, MEMMOVE_C,  HAVE_MEMMOVE_Z13, MEMMOVE_Z13):
5776         New defines.
5777         * sysdeps/s390/memcpy-z900.S: Add z13 memmove implementation.
5778         * sysdeps/s390/memmove-c.c: New file.
5779         * sysdeps/s390/memmove.c: Likewise.
5780         * sysdeps/s390/multiarch/ifunc-impl-list.c
5781         (__libc_ifunc_impl_list): Add ifunc variants for memmove.
5783 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
5785         * config.h.in (HAVE_S390_MIN_Z13_ZARCH_ASM_SUPPORT): New undefine.
5786         * sysdeps/s390/configure.ac: Add check for z13 support.
5787         * sysdeps/s390/configure: Regenerated.
5789 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
5791         * sysdeps/s390/memcopy.h: New file.
5793 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
5795         * sysdeps/s390/s390-32/bcopy.S: Remove.
5796         * sysdeps/s390/s390-64/bcopy.S: Likewise.
5798 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
5800         * sysdeps/s390/ifunc-memcpy.h: New File.
5801         * sysdeps/s390/memcpy.S: Move to ...
5802         * sysdeps/s390/memcpy-z900.S ... here.
5803         Move implementations from memcpy-s390x.s to here.
5804         * sysdeps/s390/multiarch/memcpy-s390x.S: Delete File.
5805         * sysdeps/s390/multiarch/Makefile (sysdep_routines):
5806         Remove memcpy/mempcpy variants.
5807         * sysdeps/s390/Makefile (sysdep_routines):
5808         Add memcpy/mempcpy variants.
5809         * sysdeps/s390/multiarch/ifunc-impl-list.c
5810         (__libc_ifunc_impl_list): Adjust ifunc variants for
5811         memcpy and mempcpy.
5812         * sysdeps/s390/multiarch/memcpy.c: Move ifunc resolver
5813         to ...
5814         * sysdeps/s390/memcpy.c: ... here.
5815         Adjust ifunc variants for memcpy.
5816         * sysdeps/s390/multiarch/mempcpy.c: Move to ...
5817         * sysdeps/s390/mempcpy.c: ... here.
5818         Adjust ifunc variants for mempcpy.
5819         * sysdeps/s390/mempcpy.S: Delete file.
5821 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
5823         * sysdeps/s390/s390-64/memcpy.S: Move to ...
5824         * sysdeps/s390/memcpy.S: ... here.
5825         Adjust to be usable for 31/64bit.
5826         * sysdeps/s390/s390-32/memcpy.S: Delete File.
5827         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memcpy.
5828         * sysdeps/s390/s390-32/multiarch/Makefile: Delete file.
5829         * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
5830         * sysdeps/s390/s390-64/multiarch/memcpy-s390x.S: Move to ...
5831         * sysdeps/s390/multiarch/memcpy-s390x.S: ... here.
5832         Adjust to be usable for 31/64bit.
5833         * sysdeps/s390/s390-32/multiarch/memcpy-s390.S: Delete File.
5834         * sysdeps/s390/s390-64/multiarch/memcpy.c: Move to ...
5835         * sysdeps/s390/multiarch/memcpy.c: ... here.
5836         * sysdeps/s390/s390-32/multiarch/memcpy.c: Delete File.
5838 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
5840         * sysdeps/s390/ifunc-memcmp.h: New File.
5841         * sysdeps/s390/memcmp.S: Move to ...
5842         * sysdeps/s390/memcmp-z900.S ... here.
5843         Move implementations from memcmp-s390x.s to here.
5844         * sysdeps/s390/multiarch/memcmp-s390x.S: Delete File.
5845         * sysdeps/s390/multiarch/Makefile (sysdep_routines):
5846         Remove memcmp variants.
5847         * sysdeps/s390/Makefile (sysdep_routines):
5848         Add memcmp variants.
5849         * sysdeps/s390/multiarch/ifunc-impl-list.c
5850         (__libc_ifunc_impl_list): Adjust ifunc variants for
5851         memcmp.
5852         * sysdeps/s390/multiarch/memcmp.c: Move ifunc resolver
5853         to ...
5854         * sysdeps/s390/memcmp.c: ... here.
5855         Adjust ifunc variants for memcmp.
5857 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
5859         * sysdeps/s390/s390-64/memcmp.S: Move to ...
5860         * sysdeps/s390/memcmp.S: ... here.
5861         Adjust to be usable for 31/64bit.
5862         * sysdeps/s390/s390-32/memcmp.S: Delete File.
5863         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memcmp.
5864         * sysdeps/s390/s390-32/multiarch/Makefile (sysdep_routines):
5865         Remove memcmp.
5866         * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
5867         * sysdeps/s390/s390-64/multiarch/memcmp-s390x.S: Move to ...
5868         * sysdeps/s390/multiarch/memcmp-s390x.S: ... here.
5869         Adjust to be usable for 31/64bit.
5870         * sysdeps/s390/s390-32/multiarch/memcmp-s390.S: Delete File.
5871         * sysdeps/s390/s390-64/multiarch/memcmp.c: Move to ...
5872         * sysdeps/s390/multiarch/memcmp.c: ... here.
5873         * sysdeps/s390/s390-32/multiarch/memcmp.c: Delete File.
5875 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
5877         * sysdeps/s390/s390-32/bzero.S: Delete file.
5878         * sysdeps/s390/s390-64/bzero.S: Likewise.
5879         * sysdeps/s390/Makefile (sysdep_routines): Add bzero.
5880         * sysdeps/s390/bzero.c: New file.
5881         * sysdeps/s390/memset-z900.S: Add bzero entry points.
5882         * sysdeps/s390/ifunc-memset.h: Add bzero function macros.
5883         * sysdeps/s390/multiarch/ifunc-impl-list.c
5884         (__libc_ifunc_impl_list): Add bzero ifunc variants.
5886 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
5888         * sysdeps/s390/ifunc-memset.h: New File.
5889         * sysdeps/s390/memset.S: Move to ...
5890         * sysdeps/s390/memset-z900.S ... here.
5891         Move implementations from memset-s390x.s to here.
5892         * sysdeps/s390/multiarch/memset-s390x.S: Delete File.
5893         * sysdeps/s390/multiarch/Makefile (sysdep_routines):
5894         Remove memset variants.
5895         * sysdeps/s390/Makefile (sysdep_routines):
5896         Add memset variants.
5897         * sysdeps/s390/multiarch/ifunc-impl-list.c
5898         (__libc_ifunc_impl_list): Adjust ifunc variants for
5899         memset.
5900         * sysdeps/s390/multiarch/memset.c: Move ifunc resolver
5901         to ...
5902         * sysdeps/s390/memset.c: ... here.
5903         Adjust ifunc variants for memset.
5905 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
5907         * sysdeps/s390/s390-64/memset.S: Move to ...
5908         * sysdeps/s390/memset.S: ... here.
5909         Adjust to be usable for 31/64bit.
5910         * sysdeps/s390/s390-32/memset.S: Delete File.
5911         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memset.
5912         * sysdeps/s390/s390-32/multiarch/Makefile (sysdep_routines):
5913         Remove memset.
5914         * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
5915         * sysdeps/s390/s390-64/multiarch/memset-s390x.S: Move to ...
5916         * sysdeps/s390/multiarch/memset-s390x.S: ... here.
5917         Adjust to be usable for 31/64bit.
5918         * sysdeps/s390/s390-32/multiarch/memset-s390.S: Delete File.
5919         * sysdeps/s390/s390-64/multiarch/memset.c: Move to ...
5920         * sysdeps/s390/multiarch/memset.c: ... here.
5921         * sysdeps/s390/s390-32/multiarch/memset.c: Delete File.
5923 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
5925         * sysdeps/s390/multiarch/ifunc-resolve.h
5926         (s390_libc_ifunc_init, s390_libc_ifunc,
5927         s390_vx_libc_ifunc2_redirected): Use hwcap instead of dl_hwcap.
5929 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
5931         * config.h.in (HAVE_S390_MIN_Z10_ZARCH_ASM_SUPPORT): New undefine.
5932         * sysdeps/s390/configure.ac: Add check for z10 support.
5933         * sysdeps/s390/configure: Regenerated.
5935 2018-12-18  H.J. Lu  <hongjiu.lu@intel.com>
5937         * sysdeps/i386/atomic-machine.h: Merged with ...
5938         * sysdeps/x86_64/atomic-machine.h: To ...
5939         * sysdeps/x86/atomic-machine.h: This.  New file.
5941 2018-12-18  Florian Weimer  <fweimer@redhat.com>
5943         Rewrite locale/gen-translit.pl in Python.
5944         * locale/Makefile (generated): Add C-translit.h.
5945         (before-compile): Add $(objpfx)C-translit.h.
5946         (C-translit.h): Move to $(objpfx).  Create target directory.
5947         Build using Python script.
5948         * locale/gen-translit.py: New file.
5949         * locale/gen-translit.pl: Remove file.
5950         * locale/C-translit.h.in: Change comment character to '#' for
5951         easier parsing without a C preprocessor.
5952         * locale/C-translit.h: Remove generated file.
5953         * manual/install.texi (Tools for Compilation): Do not mention
5954         C-translit.h.
5955         * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps):
5956         Remove locale/C-translit.h.
5957         * scripts/update-copyrights: Likewise.
5958         * INSTALL: Regenerate.
5960 2018-12-18  Florian Weimer  <fweimer@redhat.com>
5962         [BZ #23995]
5963         * localedata/locales/bi_VU: Remove executable bit from file.
5965 2018-12-17  Albert ARIBAUD  <albert.aribaud@3adev.fr>
5967         * include/time.h
5968         (__localtime64): Add.
5969         * manual/maint.texi: Document Y2038 symbol handling.
5970         * time/localtime.c
5971         (__localtime64): Add.
5972         [__TIMESIZE != 64] (__localtime): Turn into a wrapper.
5974 2018-12-17  Joseph Myers  <joseph@codesourcery.com>
5976         * sysdeps/unix/sysv/linux/ia64/sysdep.h (ASM_CLOBBERS_6_COMMON):
5977         Do not clobber r12.
5979         * scripts/glibcextract.py (compare_macro_consts): Take parameters
5980         to allow extra macros from first or second sources.
5981         * sysdeps/unix/sysv/linux/tst-mman-consts.py: New file.
5982         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
5983         (tests-special): Add $(objpfx)tst-mman-consts.out.
5984         ($(objpfx)tst-mman-consts.out): New makefile target.
5986 2018-12-17  Mao Han  <han_mao@c-sky.com>
5988         * sysdeps/unix/sysv/linux/Makefile: Add statx_cp.c.
5989         * sysdeps/unix/sysv/linux/fxstat64.c: Add conditionals for kernel
5990         without stat64 system call support.
5991         * sysdeps/unix/sysv/linux/fxstatat64.c: Likewise.
5992         * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstat.c: Likewise.
5993         * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstatat.c: Likewise.
5994         * sysdeps/unix/sysv/linux/generic/wordsize-32/lxstat.c: Likewise.
5995         * sysdeps/unix/sysv/linux/generic/wordsize-32/lxstat64.c: Likewise.
5996         * sysdeps/unix/sysv/linux/generic/wordsize-32/xstat.c: Likewise.
5997         * sysdeps/unix/sysv/linux/generic/wordsize-32/xstat64.c: Likewise.
5998         * sysdeps/unix/sysv/linux/mips/mips64/statx_cp.c: New file.
5999         * sysdeps/unix/sysv/linux/statx_cp.c: Likewise.
6000         * sysdeps/unix/sysv/linux/statx_cp.h: Likewise.
6001         * sysdeps/unix/sysv/linux/wordsize-64/statx_cp.c: Likewise.
6003 2018-12-15  Paul Eggert  <eggert@cs.ucla.edu>
6005         regex: fix storage-exhaustion error
6006         [BZ #18040]
6007         * posix/regexec.c (get_subexp):
6008         Do not continue if storage is exhausted.
6010 2018-12-15  Assaf Gordon  <assafgordon@gmail.com>
6012         regex: fix heap-use-after-free error
6013         [BZ #18040]
6014         Problem reported by Saito Takaaki <tails.saito@gmail.com> in
6015         https://debbugs.gnu.org/32592
6016         Call stack get_subexp->get_subexp_sub->clean_state_log_if_needed may
6017         call extend_buffers which reallocates the re_string_t internal buffer.
6018         Local variable 'buf' was not updated in such case, resulting in
6019         use-after-free.
6020         * posix/regexec.c (get_subexp): Update 'buf' after call to
6021         get_subexp_sub.
6023 2018-12-15  Florian Weimer  <fweimer@redhat.com>
6025         * support/blob_repeat.c (check_mul_overflow_size_t): New function.
6026         (minimum_stride_size): Use it.
6027         (support_blob_repeat_allocate): Likewise.
6029 2018-12-14  Joseph Myers  <joseph@codesourcery.com>
6031         * sysdeps/x86/fpu/bits/mathinline.h (asinh): Remove inline
6032         definition.
6033         (acosh): Likewise.
6034         (atanh): Likewise.
6036 2018-12-14  Florian Weimer  <fweimer@redhat.com>
6038         * manual/process.texi (Process Creation Concepts): Remove
6039         documentation of process (ID) lifetime.  List more process
6040         creation functions.  Reference Process Identification section.
6041         (Process Identification): Add information about process ID
6042         lifetime.  Describe Linux thread/task IDs.
6043         * manual/signal.texi (Signaling Another Process): Mention that the
6044         signal is always sent to the process.
6046 2018-12-14  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
6048         * misc/Makefile (tests): Remove tst-efgcvt.  Add tst-dbl-efgcvt
6049         and tst-ldbl-efgcvt.
6050         * misc/tst-efgcvt.c: Renamed to misc/tst-efgcvt-template.c.
6051         * misc/tst-efgcvt-template.c: Renamed from misc/tst-efgcvt.c.
6052         (struct testcase, efcvt_func, efcvt_r_func, ecvt_tests)
6053         (fcvt_tests, output_error, output_r_error, do_test): Use the
6054         macros defined in tst-dbl-efgcvt.c and tst-ldbl-efgcvt.c to:
6055         select the type of floating-point variables and arguments; to
6056         produce extra tests for double and conversion specifiers for
6057         printf; and to set the names of called functions.
6058         * misc/tst-dbl-efgcvt.c: New file that defines the macros used
6059         in tst-efgcvt-template.c.
6060         * misc/tst-ldbl-efgcvt.c: Likewise.
6062 2018-12-14  Stefan Liebler  <stli@linux.ibm.com>
6064         * nss/Makefile (tst-nss-test3.out): New rule.
6066 2018-12-13  Joseph Myers  <joseph@codesourcery.com>
6068         * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Do not
6069         clobber sp.
6071 2018-12-13  fanjinke  <fanjinke@hygon.cn>
6073         * sysdeps/x86/cpu-features.c (init_cpu_features): Check for
6074         "HygonGenuine".
6076 2018-12-13  Andreas Schwab  <schwab@suse.de>
6078         [BZ #23861]
6079         * nptl/pthread_rwlock_common.c: Reindent.  Fix typos.
6080         (__pthread_rwlock_rdlock_full): Update expected value for
6081         __readers while waiting on PTHREAD_RWLOCK_RWAITING.
6082         * nptl/tst-rwlock-pwn.c: New file.
6083         * nptl/Makefile (tests): Add tst-rwlock-pwn.
6085 2018-12-12  Joseph Myers  <joseph@codesourcery.com>
6087         * sysdeps/x86/fpu/bits/mathinline.h (hypot): Remove inline
6088         definition.
6090 2018-12-12  Leonardo Sandoval  <leonardo.sandoval.gonzalez@intel.com>
6092         * benchtests/scripts/compare_bench.py (do_compare): write to
6093         stderr in casestat is not present.
6094         * benchtests/scripts/compare_bench.py (plot_graphs): write to
6095         stderr in case timings field is not present. Also string showing
6096         the output filename goes into the stderr.
6098 2018-12-12  Leonardo Sandoval  <leonardo.sandoval.gonzalez@intel.com>
6100         * benchtests/scripts/compare_bench.py (do_compare): Catch KeyError
6101         and ZeroDivisorError exceptions.
6102         * benchtests/scripts/compare_bench.py (compare_runs): Use stats
6103         argument to loop through user provided statistics.
6104         * benchtests/scripts/compare_bench.py (main): Include the --stats
6105         argument.
6107 2018-12-12  Leonardo Sandoval  <leonardo.sandoval.gonzalez@intel.com>
6109         * benchtests/scripts/compare_bench.py (compare_runs): Continue
6110         instead of return.
6112 2018-12-12  Florian Weimer  <fweimer@redhat.com>
6114         * sysdeps/posix/timespec_get.c: Add missing “any later version”
6115         clause to copyright header.
6117 2018-12-12  Tulio Magno Quites Machado Filho  <tuliom@linux.ibm.com>
6119         [BZ #23614]
6120         * sysdeps/powerpc/powerpc64/addmul_1.S (FUNC): Add CFI offset for
6121         registers saved in the stack frame.
6122         * sysdeps/powerpc/powerpc64/lshift.S (__mpn_lshift): Likewise.
6123         * sysdeps/powerpc/powerpc64/mul_1.S (__mpn_mul_1): Likewise.
6125 2018-12-11  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
6127         * include/bits/monetary-ldbl.h: New file.
6128         * include/bits/printf-ldbl.h: Likewise.
6129         * include/bits/stdio-ldbl.h: Likewise.
6130         * include/bits/stdlib-ldbl.h: Likewise.
6131         * include/bits/syslog-ldbl.h: Likewise.
6132         * include/bits/wchar-ldbl.h: Likewise.
6134 2018-12-11  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
6136         * libio/libio.h: Remove redirection for _IO_vfprintf.
6138 2018-12-11  Andreas Schwab  <schwab@suse.de>
6140         * Makerules: Remove all references to abilist-pattern.
6141         (update-all-abi): Simplify find expression.
6143 2018-12-11  Szabolcs Nagy  <szabolcs.nagy@arm.com>
6145         [BZ #23961]
6146         * math/auto-libm-test-in: Add new test case.
6147         * math/auto-libm-test-out-pow: Regenerated.
6148         * sysdeps/ieee754/flt-32/e_powf.c (__powf): Fix overflow check.
6150 2018-12-10  DJ Delorie  <dj@redhat.com>
6152         [BZ #23948]
6153         * support/test-container.c: Move postclean step to before we
6154         change namespaces.
6156 2018-12-10  Joseph Myers  <joseph@codesourcery.com>
6158         * scripts/gen-as-const.py (main): Handle --python option.
6159         * scripts/gen-py-const.awk: Remove.
6160         * Makerules (py-const-script): Use gen-as-const.py.
6161         ($(py-const)): Likewise.
6162         * nptl/nptl-printers.py (MutexPrinter.read_status_no_robust): Mask
6163         with 0xffffffff together with ~(PTHREAD_MUTEX_PRIO_CEILING_MASK).
6164         (MutexAttributesPrinter.read_values): Mask with 0xffffffff
6165         together with ~PTHREAD_MUTEXATTR_FLAG_BITS and
6166         ~PTHREAD_MUTEX_NO_ELISION_NP.
6167         * manual/README.pretty-printers: Update reference to
6168         gen-py-const.awk.
6170         * scripts/glibcextract.py: New file.
6171         * scripts/gen-as-const.py: Do not import os.path, re, subprocess
6172         or tempfile.  Import glibcexctract.
6173         (compute_c_consts): Remove.  Moved to glibcextract.py.
6174         (gen_test): Update reference to compute_c_consts.
6175         (main): Likewise.
6176         * sysdeps/unix/sysv/linux/tst-signal-numbers.py: New file.
6177         * sysdeps/unix/sysv/linux/tst-signal-numbers.sh: Remove.
6178         * sysdeps/unix/sysv/linux/Makefile
6179         ($(objpfx)tst-signal-numbers.out): Use tst-signal-numbers.py.
6180         Redirect stderr as well as stdout.
6182 2018-12-10  Rafael Ávila de Espíndola  <rafael@espindo.la>
6184         [BZ #19767]
6185         * sysdeps/unix/sysv/linux/mips/init-first.c: Remove #ifdef SHARED.
6186         * sysdeps/unix/sysv/linux/mips/libc-vdso.h: Remove #ifdef SHARED.
6187         * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h: Define
6188         ALWAYS_USE_VSYSCALL.
6189         * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: Define
6190         ALWAYS_USE_VSYSCALL.
6191         * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: Define
6192         ALWAYS_USE_VSYSCALL.
6194 2018-12-10  Florian Weimer  <fweimer@redhat.com>
6196         [BZ #23972]
6197         * sysdeps/unix/sysv/linux/getdents64.c (handle_overflow): Check
6198         offset instead of count for clarity.  Fix typo in comment.
6199         (__old_getdents64): Keep track of previous offset.  Use it to call
6200         handle_overflow.
6201         * sysdeps/unix/sysv/linux/tst-readdir64-compat.c (do_test): Check
6202         that d_off is never zero.
6204 2018-12-10  Andreas Schwab  <schwab@suse.de>
6206         * sysdeps/unix/sysv/linux/powerpc/powerpc64/*-le.abilist: Move to
6207         sysdeps/unix/sysv/linux/powerpc/powerpc64/le/*.abilist.
6208         * sysdeps/unix/sysv/linux/powerpc/powerpc64/*.abilist: Move to
6209         sysdeps/unix/sysv/linux/powerpc/powerpc64/be/*.abilist.
6210         * sysdeps/powerpc/Makefile (abilist-pattern): Don't define.
6212 2018-12-10  Joseph Myers  <joseph@codesourcery.com>
6214         * timezone/private.h: Update from tzcode 2018g.
6215         * timezone/tzfile.h: Likewise.
6216         * timezone/tzselect.ksh: Likewise.
6217         * timezone/zdump.c: Likewise.
6218         * timezone/zic.c: Likewise.
6220 2018-12-08  Paul Pluzhnikov  <ppluzhnikov@google.com>
6222         [BZ #23490]
6223         * sysdeps/unix/sysv/linux/x86/tst-cet-property-2.c
6224         (do_test): Adjust buffer size and fix format.
6226 2018-12-07  DJ Delorie  <dj@redhat.com>
6228         [BZ #23907]
6229         * malloc/tst-tcfree3.c: New.
6230         * malloc/Makefile: Add it.
6232 2018-12-07  H.J. Lu  <hongjiu.lu@intel.com>
6234         * include/sched.h (__getcpu): Don't use __typeof__ (getcpu).
6236 2018-12-07  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
6238         * libio/libioP.h (SCANF_LDBL_USES_FLOAT128): New macro to be
6239         used as a mask for the mode argument of __vfscanf_internal and
6240         __vfwscanf_internal.
6241         * stdio-common/vfscanf-internal.c
6242         [defined COMPILE_WSCANF && __HAVE_FLOAT128_UNLIKE_LDBL]
6243         (__strtof128_internal): Define to __wcstof128_internal.
6244         [__HAVE_FLOAT128_UNLIKE_LDBL] (__vfscanf_internal): Call
6245         __strtof128_internal or __wcstof128_internal when the format of
6246         long double is the same as _Float128.
6248 2018-12-05  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6250         * include/unistd.h (__confstr): Add prototype and hidden prototype.
6251         * posix/confstr.c (confstr): Rename to __confstr.
6252         (__confstr): Add hidden def.
6253         (confstr): Add weak alias for __confstr.
6254         * sysdeps/mach/hurd/spawni.c (__spawni): Call __confstr instead of
6255         confstr.
6257 2018-12-07  H.J. Lu  <hongjiu.lu@intel.com>
6259         * NEWS: Mention getcpu.
6260         * include/sched.h (__getcpu): New libc_hidden_proto.
6261         * manual/resource.texi: Document getcpu.
6262         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add getcpu.
6263         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.29): Add getcpu.
6264         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add getcpu.
6265         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
6266         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
6267         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
6268         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
6269         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
6270         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
6271         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
6272         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
6273         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
6274         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
6275         Likewise.
6276         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
6277         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
6278         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
6279         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
6280         Likewise.
6281         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
6282         Likewise.
6283         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
6284         Likewise.
6285         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
6286         Likewise.
6287         * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
6288         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
6289         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
6290         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
6291         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
6292         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
6293         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
6294         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
6295         * sysdeps/unix/sysv/linux/bits/sched.h (getcpu): New prototype.
6296         * sysdeps/unix/sysv/linux/getcpu.c: New file.
6297         * sysdeps/unix/sysv/linux/tst-skeleton-affinity.c (test_size):
6298         Also check getcpu.
6300 2018-12-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6302         * sysdeps/mach/hurd/spawni.c (child_lookup_under, child_fchdir): New
6303         functions.
6304         (__spawni): Handle spawn_do_fchdir by calling child_fchdir.
6306 2018-12-07  Florian Weimer  <fweimer@redhat.com>
6308         [BZ #17405]
6309         * posix/Makefile (routines): Add spawn_faction_addfchdir.
6310         * posix/Versions (GLIBC_2.29): Export
6311         posix_spawn_file_actions_addfchdir_np.
6312         * posix/spawn.h (posix_spawn_file_actions_addfchdir_np): Declare.
6313         * posix/spawn_faction_destroy.c
6314         (__posix_spawn_file_actions_destroy): Handle spawn_do_fchdir.
6315         * posix/spawn_int.h (struct __spawn_action): Add spawn_do_fchdir
6316         and the field action.fchdir_action.
6317         * posix/tst-spawn-chdir.c (add_chdir): New function.
6318         (do_test): Add do_fchdir loop.  Call add_chdir.
6319         * sysdeps/posix/spawni.c (__spawni_child): Handle spawn_do_fchdir.
6320         * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
6321         * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.29): Add
6322         posix_spawn_file_actions_addfchdir_np.
6323         * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.29):
6324         Likewise.
6325         * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.29):
6326         Likewise.
6327         * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.29): Likewise.
6328         * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.29):
6329         Likewise.
6330         * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.29):
6331         Likewise.
6332         * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.29):
6333         Likewise.
6334         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.29):
6335         Likewise.
6336         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.29):
6337         Likewise.
6338         * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.29):
6339         Likewise.
6340         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
6341         (GLIBC_2.29): Likewise.
6342         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
6343         (GLIBC_2.29): Likewise.
6344         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
6345         (GLIBC_2.29): Likewise.
6346         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
6347         (GLIBC_2.29): Likewise.
6348         * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.29):
6349         Likewise.
6350         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
6351         (GLIBC_2.29): Likewise.
6352         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
6353         (GLIBC_2.29): Likewise.
6354         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
6355         (GLIBC_2.29): Likewise.
6356         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
6357         (GLIBC_2.29): Likewise.
6358         * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.29):
6359         Likewise.
6360         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.29):
6361         Likewise.
6362         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.29):
6363         Likewise.
6364         * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.29): Likewise.
6365         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.29):
6366         Likewise.
6367         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.29):
6368         Likewise.
6369         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.29):
6370         Likewise.
6371         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.29):
6372         Likewise.
6374 2018-12-06  Joseph Myers  <joseph@codesourcery.com>
6376         * manual/texinfo.tex: Update to version 2018-09-21.20 with
6377         trailing whitespace removed.
6378         * scripts/config.guess: Update to version 2018-11-28.
6379         * scripts/config.sub: Update to version 2018-11-28.
6380         * scripts/install-sh: Update to version 2018-03-11.20.
6381         * scripts/mkinstalldirs: Update to version 2018-03-07.03.
6382         * scripts/move-if-change: Update to version 2018-03-07 03:47.
6384 2018-12-07  Florian Weimer  <fweimer@redhat.com>
6386         [BZ #23927]
6387         CVE-2018-19591
6388         * inet/tst-if_index-long.c: New file.
6389         * inet/Makefile (tests): Add tst-if_index-long.
6391 2018-12-07  Florian Weimer  <fweimer@redhat.com>
6393         * support/check.h (support_record_failure_is_failed): Declare.
6394         * support/descriptors.h: New file.
6395         * support/support_descriptors.c: Likewise.
6396         * support/tst-support_descriptors.c: Likewise.
6397         * support/support_record_failure.c
6398         (support_record_failure_is_failed): New function.
6399         * support/Makefile (libsupport-routines): Add support_descriptors.
6400         (tests): Add tst-support_descriptors.
6402 2018-12-05  Zack Weinberg  <zackw@panix.com>
6403             Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
6405         * stdio-common/vfprintf-internal.c
6406         (__vfprintf_internal, __vfwprintf_internal): Don't use __ldbl_is_dbl.
6407         * sysdeps/generic/math_ldbl_opt.h: Remove __ldbl_is_dbl.
6408         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Remove __ldbl_is_dbl
6409         and __no_long_double.
6410         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.c: Remove file.
6411         * sysdeps/ieee754/ldbl-opt/Makefile (routines): Remove math_ldbl_opt.
6412         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Remove
6413         libc_hidden_proto and libc_hidden_def from all __nldbl_*printf*
6414         and __nldbl_*syslog* functions.
6415         (__nldbl_cleanup, set_no_long_double, clear_no_long_double): Remove.
6416         (__nldbl___asprintf, __nldbl_dprintf, __nldbl_fprintf)
6417         (__nldbl_fwprintf, __nldbl_printf, __nldbl_sprintf)
6418         (__nldbl_vfprintf, __nldbl___vsprintf, __nldbl_obstack_vprintf)
6419         (__ndlbl_obstack_printf, __nldbl_snprintf, __nldbl_swprintf)
6420         (__nldbl_vasprintf, __nldbl_vdprintf, __nldbl_vfwprintf)
6421         (__nldbl_vprintf, __nldbl_vsnprintf, __ndlbl_vswprintf)
6422         (__nldbl_vwprintf, __nldbl_wprintf):
6423         Directly call the appropriate __v*printf_internal routine, passing
6424         PRINTF_LDBL_IS_DBL.  Do not mess with __no_long_double. Normalize
6425         variable names.
6426         (__nldbl___fprintf_chk, __nldbl___fwprintf_chk)
6427         (__nldbl___printf_chk, __nldbl___snprintf_chk)
6428         (__nldbl___sprintf_chk, __nldbl___swprintf_chk)
6429         (__nldbl___vfprintf_chk, __nldbl___vfwprintf_chk)
6430         (__nldbl___vprintf_chk, __nldbl___vsnprintf_chk)
6431         (__nldbl___vsprintf_chk, __nldbl___vswprintf_chk)
6432         (__nldbl___vwprintf_chk, __nldbl___wprintf_chk)
6433         (__nldbl___vasprintf_chk, __nldbl___asprintf_chk)
6434         (__nldbl___vdprintf_chk, __nldbl___dprintf_chk)
6435         (__nldbl___obstack_vprintf_chk, __nldbl___obstack_printf_chk):
6436         Likewise, and also pass PRINTF_FORTIFY when appropriate.
6437         (__nldbl_syslog, __nldbl_vsyslog):
6438         Directly call __vsyslog_internal, passing PRINTF_LDBL_IS_DBL.
6439         (__nldbl_syslog_chk): Likewise, and also pass PRINTF_FORTIFY when
6440         appropriate.
6441         (__nldbl_vsyslog_chk): Likewise, and also pass PRINTF_FORTIFY when
6442         appropriate.
6444 2018-12-05  Zack Weinberg  <zackw@panix.com>
6445             Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
6447         [BZ #11319]
6448         * libio/iovsprintf.c (_IO_str_chk_overflow, libio_vtable):
6449         Moved here from debug/vsprintf_chk.c.
6450         (__vsprintf_internal): Add 'maxlen' argument.  Change the setup
6451         and completion logic for the strfile to match exactly what
6452         __vsprintf_chk used to do, except, when maxlen is -1, pass -1 to
6453         _IO_str_init_static_internal instead of maxlen-1.
6454         (__vsprintf): Pass -1 as maxlen to __vsprintf_internal.
6455         * stdio-common/sprintf.c (__sprintf): Pass -1 as maxlen to
6456         __vsprintf_internal.
6458         * debug/vsprintf_chk.c (__vsprintf_chk)
6459         * debug/sprintf_chk.c (__sprintf_chk):
6460         Directly call __vsprintf_internal, passing PRINTF_FORTIFY if
6461         'flags' argument is positive, and slen as maxlen.  No need to lock
6462         the FILE and/or construct a temporary FILE.  Minimize and normalize
6463         header inclusions and variable names.  Do not libc_hidden_def anything.
6465         * debug/asprintf_chk.c (__asprintf_chk)
6466         * debug/dprintf_chk.c (__dprintf_chk)
6467         * debug/fprintf_chk.c (__fprintf_chk)
6468         * debug/fwprintf_chk.c (__fwprintf_chk)
6469         * debug/printf_chk.c (__printf_chk)
6470         * debug/snprintf_chk.c (__snprintf_chk)
6471         * debug/swprintf_chk.c (__swprintf_chk)
6472         * debug/vasprintf_chk.c (__vasprintf_chk)
6473         * debug/vdprintf_chk.c (__vdprintf_chk)
6474         * debug/vfprintf_chk.c (__vfprintf_chk)
6475         * debug/vfwprintf_chk.c (__vfwprintf_chk)
6476         * debug/vprintf_chk.c (__vprintf_chk)
6477         * debug/vsnprintf_chk.c (__vsnprintf_chk)
6478         * debug/vswprintf_chk.c (__vswprintf_chk)
6479         * debug/vwprintf_chk.c (__vwprintf_chk)
6480         * debug/wprintf_chk.c (__wprintf_chk):
6481         Directly call the corresponding vxxprintf_internal function, passing
6482         PRINTF_FORTIFY if 'flag' argument is positive.  No need to lock
6483         the FILE and/or construct a temporary FILE.  Minimize and normalize
6484         header inclusions and variable names.  Do not libc_hidden_def anything.
6486         * debug/obprintf_chk.c (__obstack_printf_chk): Directly call
6487         __obstack_vprintf_internal.
6488         (__obstack_vprintf_chk): Convert into a wrapper that calls
6489         __obstack_vprintf_internal (these two functions already had the
6490         same code) and move to new file...
6491         * debug/vobprintf_chk.c (__obstack_vprintf_chk): ... here.  New
6492         file.
6493         * debug/obprintf.c (__obstack_vprintf_internal): Remove the checking of
6494         the flags argument and the setting of _IO_FLAGS2_FORTIFY.
6495         * debug/Makefile (routines): Add vobprintf_chk.
6497         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
6498         (__nldbl___vsprintf): Pass -1 as maxlen to __vsprintf_internal.
6499         (__nldbl___vfprintf_chk, __nldbl___vsnprintf_chk)
6500         (__nldbl___vsprintf_chk, __nldbl___vswprintf_chk)
6501         (__nldbl___vasprintf_chk, __nldbl___vdprintf_chk)
6502         (__nldbl___obstack_vfprintf_chk):
6503         Directly call the corresponding vxxprintf_internal function,
6504         passing PRINTF_FORTIFY if 'flag' argument is positive.  If necessary,
6505         duplicate comparison of slen with 0 or maxlen from the corresponding
6506         non-__nldbl function.
6508         * include/stdio.h (__vsnprintf_chk, __vfprintf_chk, __vasprintf_chk)
6509         (__vdprintf_chk, __obstack_vfprintf_chk): Remove libc_hidden_proto.
6510         * include/wchar.h (__vfwprintf_chk, __vswprintf_chk):
6511         Remove libc_hidden_proto.
6513         * stdio-common/vfprintf-internal.c
6514         (__vfprintf_internal, __vfwprintf_internal):
6515         Do not check _IO_FLAGS2_FORTIFY.
6516         * libio/libio.h (_IO_FLAGS2_FORTIFY): Remove.
6517         * libio/libioP.h: Update prototype of __vsprintf_internal and add
6518         a comment explaining why it has the maxlen argument.
6519         (_IO_acquire_lock_clear_flags2_fct): Remove.
6520         (_IO_acquire_lock_clear_flags2): Remove.
6521         (_IO_release_lock): Remove conditional statement which will
6522         now never execute.
6523         (_IO_acquire_lock): Remove variable which is now unused.
6524         * sysdeps/generic/stdio-lock.h (_IO_acquire_lock_clear_flags2): Remove.
6525         * sysdeps/nptl/stdio-lock.h (_IO_acquire_lock_clear_flags2): Remove.
6527         * stdio-common/Makefile (tests): Add tst-bz11319 and
6528         tst-bz11319-fortify2.
6529         (CFLAGS-tst-bz11319-fortify2.c): New macro.
6530         * stdio-common/tst-bz11319-fortify2.c: New file.
6531         * stdio-common/tst-bz11319.c: Likewise.
6533 2018-12-05  Zack Weinberg  <zackw@panix.com>
6534             Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
6536         * misc/syslog.c: Include libioP.h, not iolibio.h.
6537         (__vsyslog_internal): New function with the former body of
6538         __vsyslog_chk; takes mode_flags argument same as
6539         __v*printf_internal.  Call __vfprintf_internal directly.
6541         (__vsyslog_chk): Now a wrapper around __vsyslog_internal.
6542         Remove libc_hidden_def.
6543         (__syslog, __syslog_chk): Use __vsyslog_internal.
6544         (__vsyslog): Move to just below __syslog.  Use __vsyslog_internal.
6546         * include/sys/syslog.h: Add multiple inclusion guard.
6547         Add prototype for __vsyslog_internal.
6548         Remove declaration and libc_hidden_proto for __vsyslog_chk.
6550         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl___vsyslog_chk):
6551         Use __vsyslog_internal.
6553 2018-12-05  Zack Weinberg  <zackw@panix.com>
6554             Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
6556         * libio/libioP.h (__vfprintf_internal, __vfwprintf_internal)
6557         (__vasprintf_internal, __vdprintf_internal, __obstack_vprintf_internal)
6558         (__vsprintf_internal, __vsnprintf_internal, __vswprintf_internal):
6559         New functions.
6560         (PRINTF_LDBL_IS_DBL, PRINTF_FORTIFY): New constants.
6561         (_IO_vasprintf, _IO_vdprintf, _IO_vsnprintf): Remove prototypes.
6563         * stdio-common/vfprintf-internal.c: Rename from vfprintf.c.
6564         Include wctype.h here if COMPILE_WPRINTF is defined.
6565         Define __vfprintf_internal or __vfwprintf_internal, depending
6566         on COMPILE_WPRINTF.
6567         Temporarily, on entry to this function, update mode_flags
6568         according to the environmental settings corresponding to
6569         PRINTF_LDBL_IS_DBL and PRINTF_FORTIFY.
6570         Throughout, check mode_flags instead of __ldbl_is_dbl and
6571         _IO_FLAGS2_FORTIFY on the destination FILE.
6572         * stdio-common/vfwprintf-internal.c: Rename from vfwprintf.c.
6573         Include vfprintf-internal.c.  Don't include wctype.h.
6574         * stdio-common/vfprintf.c: New file.  Just define __vfprintf
6575         as a wrapper around __vfprintf_internal, with aliases _IO_vfprintf
6576         and vfprintf.
6577         * stdio-common/vfwprintf.c: New file.  Just define __vfwprintf
6578         as a wrapper around __vfwprintf_internal, with aliases _IO_vfwprintf
6579         and vfwprintf.
6580         * stdio-common/Makefile: Add vfprintf-internal and vfwprintf-internal.
6582         * libio/iovdprintf.c (_IO_vdprintf): Rename to __vdprintf_internal
6583         and add mode_flags argument; use __vfprintf_internal.
6584         (__vdprintf): New function.  Alias vdprintf to this.
6585         * libio/iovsprintf.c (_IO_vsprintf, __vsprintf): Similarly.
6586         * libio/vasprintf.c (_IO_vasprintf, __vasprintf): Similarly.
6587         * libio/obprintf.c (_IO_obstack_vprintf, __obstack_vprintf): Similarly.
6588         (__obstack_printf): Use __obstack_printf_internal.
6589         * libio/vsnprintf.c (_IO_vsnprintf, ___vsnprintf): Similarly, with
6590         public aliases __vsnprintf and vsnprintf.
6591         Remove use of ldbl_hidden_def, since __vsnprintf is no longer
6592         called internally.
6593         * libio/vswprintf (_IO_vswprintf, __vswprintf): Similarly, with
6594         public aliases _IO_vsprintf and vsprintf.
6595         * libio/swprintf.c (__swprintf): Use __vswprintf_internal.
6596         * stdio-common/asprintf.c (__asprintf): Use __vasprintf_internal.
6597         * stdio-common/dprintf.c (__dprintf): Use __vdprintf_internal.
6598         * stdio-common/snprintf.c (__snprintf): Use __vsprintf_internal.
6599         * stdio-common/sprintf.c (__sprintf): Use __vsprintf_internal.
6601         * debug/obprintf_chk.c, debug/vasprintf_chk.c, debug/vdprintf_chk.c
6602         * debug/vsnprintf_chk.c, debug/vsprintf_chk.c, hurd/vpprintf.c
6603         * stdio-common/fprintf.c, stdio-common/fxprintf.c
6604         * stdio-common/printf.c: Use __vfprintf_internal.
6606         * debug/fwprintf_chk.c, debug/vfwprintf_chk.c, debug/vswprintf_chk.c
6607         * debug/vwprintf_chk.c, debug/wprintf_chk.c, libio/fwprintf.c
6608         * libio/vwprintf.c, libio/wprintf.c: Use __vfwprintf_internal.
6610         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Use __vsprintf_internal,
6611         __obstack_vprintf_internal, __vasprintf_internal, __vdprintf_internal,
6612         __vsnprintf_internal, __vswprintf_internal, __vfprintf_internal, and
6613         __vfwprintf_internal.
6615         * libio/libio.h: Remove libc_hidden_proto and declaration for
6616         _IO_vfprintf.
6617         Remove declaration of _IO_vfwprintf.
6618         * libio/iolibio.h: Remove libc_hidden_proto and declaration for
6619         _IO_vsprintf.
6620         Remove declarations of _IO_vswprintf, _IO_obstack_printf, and
6621         _IO_obstack_printf.
6622         * include/stdio.h: Add prototype for __vasprintf.
6623         (__vsnprintf): Remove declaration, because there are no more
6624         internal calls.
6625         * include/wchar.h (__vfwprintf, __vswprintf): Remove
6626         declaration, because there are no more internal calls.
6628         * argp/argp-fmtstream.c (__argp_fmtstream_printf): Use
6629         __vsnprintf_internal, instead of _IO_vsnprintf.
6630         * argp/argp-help.c (__argp_error, __argp_failure): Use
6631         __vasprintf_internal, instead of _IO_vasprintf.
6632         * argp/argp-namefrob.h (__vsnprintf): Do not undefined then
6633         redefine, because there are no more internal calls.
6635 2018-12-05  Zack Weinberg  <zackw@panix.com>
6636             Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
6638         * stdio-common/vfscanf-internal.c: Don't look at __ldbl_is_dbl.
6639         * sysdeps/ieee754/ldbl-opt/ndlbl-compat.c:
6640         Include libio/strfile.h instead of libioP.h.
6641         (__nldbl_IO_vfscanf, __ndlbl___vfscanf, __nldbl_sscanf)
6642         (__nldbl___vsscanf, __nldbl_vscanf, __nldbl_fscanf)
6643         (__nldbl_scanf, __nldbl_vfwscanf, __nldbl_swscanf)
6644         (__nldbl_vswscanf, __nldbl_vwscanf, __nldbl_fwscanf)
6645         (__nldbl_wscanf): Call __vfscanf_internal / __vfwscanf_internal
6646         directly, passing SCANF_LDBL_IS_DBL.  Set up a strfile if
6647         necessary.  Do not set __no_long_double.  Normalize variable names.
6648         (__nldbl___isoc99_vfscanf, __nldbl___isoc99_sscanf)
6649         (__nldbl___isoc99_vsscanf, __nldbl___isoc99_vscanf)
6650         (__nldbl___isoc99_fscanf, __nldbl___isoc99_scanf)
6651         (__nldbl___isoc99_vfwscanf, __nldbl___isoc99_swscanf)
6652         (__nldbl___isoc99_vswscanf, __nldbl___isoc99_vwscanf)
6653         (__nldbl___isoc99_fwscanf, __nldbl___isoc99_wscanf):
6654         Call __vfscanf_internal / __vfwscanf_internal directly, passing
6655         SCANF_LDBL_IS_DBL | SCANF_ISOC99_A.  Set up a strfile if necessary.
6656         Do not set __no_long_double.  Normalize variable names.
6658 2018-12-05  Zack Weinberg  <zackw@panix.com>
6659             Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
6661         * stdio-common/isoc99_scanf.c
6662         * stdio-common/isoc99_fscanf.c
6663         * stdio-common/isoc99_sscanf.c
6664         * stdio-common/isoc99_vscanf.c
6665         * stdio-common/isoc99_vfscanf.c
6666         * stdio-common/isoc99_vsscanf.c
6667         * wcsmbs/isoc99_wscanf.c
6668         * wcsmbs/isoc99_fwscanf.c
6669         * wcsmbs/isoc99_swscanf.c
6670         * wcsmbs/isoc99_vwscanf.c
6671         * wcsmbs/isoc99_vfwscanf.c
6672         * wcsmbs/isoc99_vswscanf.c:
6673         Pass SCANF_ISOC99_A to __vfscanf_internal and/or __vfwscanf_internal.
6674         Do not set _IO_FLAGS2_SCANF_STD on the FILE passed to that function.
6675         No need to lock and unlock the FILE passed to that function.
6677         * stdio-common/vfscanf-internal.c
6678         (__vfscanf_internal, __vfwscanf_internal):
6679         Don't look at _IO_FLAGS2_SCANF_STD.
6680         * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct)
6681         (_IO_release_lock): Don't clear _IO_FLAGS2_SCANF_STD.
6682         * libio/libio.h (_IO_FLAGS2_SCANF_STD): Delete.
6684 2018-12-05  Zack Weinberg  <zackw@panix.com>
6685             Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
6687         * libio/libioP.h (SCANF_LDBL_IS_DBL, SCANF_ISOC99_A): New constants.
6688         (__vfscanf_internal, __vfwscanf_internal): New function prototypes.
6689         * libio/libio.h: Remove libc_hidden_proto for _IO_vfscanf.
6690         * libio/strfile.h: Add multiple inclusion guard.
6691         (_IO_strfile_read, _IO_strfile_readw): New inline functions.
6693         * sysdeps/generic/math_ldbl_opt.h: Include shlib-compat.h, for
6694         consistency with the other version of this file.
6695         (ldbl_compat_symbol): New macro.
6696         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h (ldbl_compat_symbol):
6697         New macro.
6699         * stdio-common/vfscanf-internal.c: Rename from vfscanf.c.
6700         Define __vfscanf_internal or __vfwscanf_internal, depending on
6701         COMPILE_WSCANF; don't define any other public symbols.
6702         Remove errval and code to set errp.
6703         Temporarily check __ldbl_is_dbl and _IO_FLAGS2_SCANF_STD as well
6704         as the mode_flags argument.
6705         (encode_error, conv_error, input_error): Don't set errval.
6706         * stdio-common/vfwscanf-internal.c: Rename from vfwscanf.c.
6707         Include vfscanf-internal.c.
6708         * stdio-common/vfscanf.c: New file defining the public entry
6709         point vfscanf, which calls __vfscanf_internal.
6710         * stdio-common/vfwscanf.c: New file defining the public entry
6711         point vfwscanf, which calls __vfwscanf_internal.
6713         * stdio-common/iovfscanf.c: New file.
6714         * stdio-common/iovfwscanf.c: Likewise.
6716         * stdio-common/Makefile (routines): Add vfscanf-internal,
6717         vfwscanf-internal, iovfscanf, iovfwscanf.
6718         * stdio-common/Versions: Mention GLIBC_2.29, so that
6719         it can be used in SHLIB_COMPAT expressions.
6720         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl__IO_vfscanf):
6721         Wrap definition and compat_symbol line in #if SHLIB_COMPAT.
6722         Call __vfscanf_internal, instead of _IO_vfscanf.
6723         (__nldbl___vfscanf): Call __vfscanf_internal, instead of
6724         _IO_vfscanf.
6725         (__nldbl_vfwscanf): Call __vfwscanf_internal, instead of
6726         _IO_vfwscanf.
6728         * libio/iovsscanf.c: Clean up includes, when possible.  Use
6729         _IO_strfile_read or _IO_strfile_readw, when needed.  Call
6730         __vfscanf_internal or __vfwscanf_internal directly.
6731         * libio/iovswscanf.c: Likewise.
6732         * libio/swscanf.c: Likewise.
6733         * libio/vscanf.c: Likewise.
6734         * libio/vwscanf.c: Likewise.
6735         * libio/wscanf.c: Likewise.
6736         * stdio-common/isoc99_fscanf.c: Likewise.
6737         * stdio-common/isoc99_scanf.c: Likewise.
6738         * stdio-common/isoc99_sscanf.c: Likewise.
6739         * stdio-common/isoc99_vfscanf.c: Likewise.
6740         * stdio-common/isoc99_vscanf.c: Likewise.
6741         * stdio-common/isoc99_vsscanf.c: Likewise.
6742         * stdio-common/scanf.c: Likewise.
6743         * stdio-common/sscanf.c: Likewise.
6744         * wcsmbs/isoc99_fwscanf.c: Likewise.
6745         * wcsmbs/isoc99_swscanf.c: Likewise.
6746         * wcsmbs/isoc99_vfwscanf.c: Likewise.
6747         * wcsmbs/isoc99_vswscanf.c: Likewise.
6748         * wcsmbs/isoc99_vwscanf.c: Likewise.
6749         * wcsmbs/isoc99_wscanf.c: Likewise.
6751 2018-12-05  Albert ARIBAUD  <albert.aribaud@3adev.fr>
6753         * include/time.h
6754         (__tz_compute): Replace time_t with __time64_t.
6755         (__tz_convert): Replace time_t* with __time64_t.
6756         (__offtime): Replace time_t* with __time64_t.
6757         * time/gmtime.c
6758         (__gmtime_r): Adjust call to __tz_convert.
6759         (gmtime): Likewise.
6760         * time/localtime.c
6761         (__localtime_r): Likewise.
6762         (localtime): Likewise.
6763         * time/offtime.c: Replace time_t with __time64_t.
6764         * time/tzset.c: Likewise.
6766 2018-12-04  Joseph Myers  <joseph@codesourcery.com>
6768         * Makefile ($(objpfx)testroot.pristine/install.stamp): Do not run
6769         dynamic linker unless [$(run-built-tests) = yes].
6771 2018-12-03  DJ Delorie  <dj@delorie.com>
6773         * support/test-container.c (check_for_unshare_hints): New.
6774         (main): Call it if unshare fails.  Add support for "su" scriptlet
6775         command.
6777 2018-12-03  Joseph Myers  <joseph@codesourcery.com>
6779         * scripts/gen-as-const.py (compute_c_consts): Take an argument
6780         'START' to indicate that start text should be output.
6781         (gen_test): Likewise.
6782         (main): Generate 'START' for first symbol or '--' line, or at end
6783         of input if not previously generated.
6785 2018-12-03  Rafael Ávila de Espíndola  <rafael@espindo.la>
6787         [BZ #19767]
6788         * sysdeps/unix/sysv/linux/arm/init-first.c: Remove #ifdef SHARED.
6789         * sysdeps/unix/sysv/linux/arm/libc-vdso.h: Remove #ifdef SHARED.
6790         * sysdeps/unix/sysv/linux/arm/sysdep.h: Define
6791         ALWAYS_USE_VSYSCALL.
6793 2018-12-03  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6795         [BZ #23913]
6796         * sysdeps/posix/spawni.c (maybe_script_execute): Increment size of
6797         new_argv by one.
6799 2018-12-03  Carlos O'Donell  <carlos@redhat.com>
6801         [BZ #23923]
6802         * locale/programs/localedef.c: Declare boolean hard_links default true.
6803         (options): Add --no-hard-links option.
6804         (parse_opt): Add OPT_NO_HARD_LINKS case and set hard_links to false.
6805         * locale/programs/localedef.h: Declare prototype for hard_links.
6806         * locale/programs/locfile.c (write_locale_data): Don't use hard
6807         links if hard_links is false.
6809 2018-12-03  H.J. Lu  <hongjiu.lu@intel.com>
6811         * sysdeps/x86/cacheinfo.c (intel_check_word): Updated for
6812         cpu_features_basic.
6813         (__cache_sysconf): Likewise.
6814         (init_cacheinfo): Likewise.
6815         * sysdeps/x86/cpu-features.c (get_extended_indeces): Also
6816         populate COMMON_CPUID_INDEX_80000007 and
6817         COMMON_CPUID_INDEX_80000008.
6818         (get_common_indices): Also populate COMMON_CPUID_INDEX_D_ECX_1.
6819         Use CPU_FEATURES_CPU_P (cpu_features, XSAVEC) to check if
6820         XSAVEC is available.  Set the bit_arch_XXX_Usable bits.
6821         (init_cpu_features): Use _Static_assert on
6822         index_arch_Fast_Unaligned_Load.
6823         __get_cpuid_registers and __get_arch_feature.  Updated for
6824         cpu_features_basic.  Set stepping in cpu_features.
6825         * sysdeps/x86/cpu-features.h: (FEATURE_INDEX_1): Changed to enum.
6826         (FEATURE_INDEX_2): New.
6827         (FEATURE_INDEX_MAX): Changed to enum.
6828         (COMMON_CPUID_INDEX_D_ECX_1): New.
6829         (COMMON_CPUID_INDEX_80000007): Likewise.
6830         (COMMON_CPUID_INDEX_80000008): Likewise.
6831         (cpuid_registers): Likewise.
6832         (cpu_features_basic): Likewise.
6833         (CPU_FEATURE_USABLE): Likewise.
6834         (bit_arch_XXX_Usable): Likewise.
6835         (cpu_features): Use cpuid_registers and cpu_features_basic.
6836         (bit_arch_XXX): Reweritten.
6837         (bit_cpu_XXX): Likewise.
6838         (index_cpu_XXX): Likewise.
6839         (reg_XXX): Likewise.
6840         * sysdeps/x86/tst-get-cpu-features.c: Include <stdio.h> and
6841         <support/check.h>.
6842         (CHECK_CPU_FEATURE): New.
6843         (CHECK_CPU_FEATURE_USABLE): Likewise.
6844         (cpu_kinds): Likewise.
6845         (do_test): Print vendor, family, model and stepping.  Check
6846         HAS_CPU_FEATURE and CPU_FEATURE_USABLE.
6847         (TEST_FUNCTION): Removed.
6848         Include <support/test-driver.c> instead of
6849         "../../test-skeleton.c".
6850         * sysdeps/x86_64/multiarch/sched_cpucount.c (__sched_cpucount):
6851         Check POPCNT instead of POPCOUNT.
6852         * sysdeps/x86_64/multiarch/test-multiarch.c (do_test): Likewise.
6854 2018-12-03  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6856         * scripts/gen-as-const.py (main): Avoid emitting empty line when
6857         there is no element in `consts'.
6859 2018-12-01  Florian Weimer  <fweimer@redhat.com>
6861         * support/support_capture_subprocess.c
6862         (support_capture_subprocess): Check that pipe descriptors have
6863         expected values.  Close original pipe descriptors in subprocess.
6865 2018-12-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6867         [BZ #23032]
6868         * sysdeps/htl/pt-barrier-init.c (pthread_barrier_init): Fix comparing
6869         attr with __pthread_default_barrierattr.
6870         * sysdeps/htl/pt-cond-init.c (__pthread_cond_init): Fix comparing
6871         attr with __pthread_default_condattr.
6872         * sysdeps/htl/pt-mutex-init.c (_pthread_mutex_init): Fix comparing
6873         attr with __pthread_default_mutexattr.
6874         * sysdeps/htl/pt-rwlock-init.c (_pthread_rwlock_init): Fix comparing
6875         attr with __pthread_default_rwlockattr.
6877 2018-12-01  Kemi Wang  <kemi.wang@intel.com>
6879         * manual/tunables.texi (POSIX Thread Tunables): New node.
6880         * nptl/Makefile (libpthread-routines): Add pthread_mutex_conf.
6881         * nptl/nptl-init.c: Include pthread_mutex_conf.h
6882         (__pthread_initialize_minimal_internal) [HAVE_TUNABLES]: Call
6883         __pthread_tunables_init.
6884         * nptl/pthreadP.h (MAX_ADAPTIVE_COUNT): Remove.
6885         (max_adaptive_count): Define.
6886         * nptl/pthread_mutex_conf.c: New file.
6887         * nptl/pthread_mutex_conf.h: New file.
6888         * sysdeps/generic/adaptive_spin_count.h: New file.
6889         * sysdeps/nptl/dl-tunables.list: New file.
6890         * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Use
6891         max_adaptive_count () not MAX_ADAPTIVE_COUNT.
6892         * nptl/pthread_mutex_timedlock.c (__pthrad_mutex_timedlock):
6893         Likewise.
6895 2018-12-01  Paul Pluzhnikov  <ppluzhnikov@google.com>
6897         [BZ #20544]
6898         * stdlib/cxa_atexit.c (__internal_atexit): assert func != NULL.
6899         * stdlib/on_exit.c (__on_exit): Likewise.
6900         * stdlib/Makefile (tests): Add tst-bz20544.
6901         * stdlib/tst-bz20544.c: New test.
6903 2018-11-30  Rafael Ávila de Espíndola  <rafael@espindo.la>
6905         [BZ #19767]
6906         * sysdeps/unix/sysv/linux/i386/init-first.c: Don't check SHARED.
6907         * sysdeps/unix/sysv/linux/i386/sysdep.h (ALWAYS_USE_VSYSCALL):
6908         New.
6910 2018-11-30  Florian Weimer  <fweimer@redhat.com>
6912         * scripts/abilist.awk: Print "0x0" for size 0. Handle "g"/"D".
6913         Extend error logging.
6914         * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.2.6): Adjust _end
6915         symbol.
6917 2018-11-30  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6919         * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Use
6920         __sigismember instead of sigismember.
6921         * sysdeps/posix/system.c [SIGCANCEL] (cancel_handler_args,
6922         cancel_handler): New definitions.
6923         (do_system): Use posix_spawn instead of fork and execl and remove
6924         reentracy code.
6925         * sysdeps/generic/not-errno.h (__kill_noerrno): New prototype.
6926         * sysdeps/unix/sysv/linux/not-errno.h (__kill_noerrno): Likewise.
6927         * sysdeps/unix/sysv/linux/ia64/system.c: Remove file.
6928         * sysdeps/unix/sysv/linux/s390/system.c: Likewise.
6929         * sysdeps/unix/sysv/linux/sparc/system.c: Likewise.
6930         * sysdeps/unix/sysv/linux/system.c: Likewise.
6932         [BZ #22834]
6933         [BZ #17490]
6934         * NEWS: Add new semantic for atfork with popen and system.
6935         * libio/iopopen.c (_IO_new_proc_open): use posix_spawn instead of
6936         fork and execl.
6938 2018-11-30  Tulio Magno Quites Machado Filho  <tuliom@linux.ibm.com>
6940         [BZ #23690]
6941         * elf/dl-runtime.c (_dl_profile_fixup): Guarantee memory
6942         modification order when accessing reloc_result->addr.
6943         * include/link.h (reloc_result): Add field init.
6944         * nptl/Makefile (tests): Add tst-audit-threads.
6945         (modules-names): Add tst-audit-threads-mod1 and
6946         tst-audit-threads-mod2.
6947         Add rules to build tst-audit-threads.
6948         * nptl/tst-audit-threads-mod1.c: New file.
6949         * nptl/tst-audit-threads-mod2.c: Likewise.
6950         * nptl/tst-audit-threads.c: Likewise.
6951         * nptl/tst-audit-threads.h: Likewise.
6953 2018-11-30  Joseph Myers  <joseph@codesourcery.com>
6955         * scripts/gen-as-const.py: New file.
6956         * scripts/gen-as-const.awk: Remove.
6957         * Makerules ($(common-objpfx)%.h $(common-objpfx)%.h.d): Use
6958         gen-as-const.py.
6959         ($(objpfx)test-as-const-%.c): Likewise.
6961 2018-11-29  H.J. Lu  <hongjiu.lu@intel.com>
6963         * elf/dl-exception.c: Include <_itoa.h>.
6965 2018-11-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6967         * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Directly return value
6968         returned by __f_setlk.
6970 2018-11-29  H.J. Lu  <hongjiu.lu@intel.com>
6971             Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6973         * elf/Makefile (tests-internal): Add tst-create_format1.
6974         * elf/dl-exception.c (_dl_exception_create_format): Support
6975         %x, %lx and %zx.
6976         * elf/tst-create_format1.c: New file.
6978 2018-11-29  Charles-Antoine Couret  <charles-antoine.couret@essensium.com>
6980         * argp/argp-fmtstream.c (__argp_fmtstream_update): Use [_LIBC]
6981         conditional on calls to _IO_fwide and putwc_unlocked.  (Merge from
6982         gnulib.)
6983         * argp/argp-help.c (__argp_failure): Likewise.
6985 2018-11-29  Mao Han  <han_mao@c-sky.com>
6987         * elf/elf.h (EM_CSKY, R_CKCORE_NONE, R_CKCORE_ADDR32)
6988         (R_CKCORE_PCRELIMM8BY4, R_CKCORE_PCRELIMM11BY2, R_CKCORE_PCREL32)
6989         (R_CKCORE_PCRELJSR_IMM11BY2, R_CKCORE_RELATIVE, R_CKCORE_COPY)
6990         (R_CKCORE_GLOB_DAT, R_CKCORE_JUMP_SLOT, R_CKCORE_GOTOFF)
6991         (R_CKCORE_GOTPC, R_CKCORE_GOT32, R_CKCORE_PLT32, R_CKCORE_ADDRGOT)
6992         (R_CKCORE_ADDRPLT, R_CKCORE_PCREL_IMM26BY2, R_CKCORE_PCREL_IMM16BY2)
6993         (R_CKCORE_PCREL_IMM16BY4, R_CKCORE_PCREL_IMM10BY2)
6994         (R_CKCORE_PCREL_IMM10BY4, R_CKCORE_ADDR_HI16, R_CKCORE_ADDR_LO16)
6995         (R_CKCORE_GOTPC_HI16, R_CKCORE_GOTPC_LO16, R_CKCORE_GOTOFF_HI16)
6996         (R_CKCORE_GOTOFF_LO16, R_CKCORE_GOT12, R_CKCORE_GOT_HI16)
6997         (R_CKCORE_GOT_LO16, R_CKCORE_PLT12, R_CKCORE_PLT_HI16)
6998         (R_CKCORE_PLT_LO16, R_CKCORE_ADDRGOT_HI16, R_CKCORE_ADDRGOT_LO16)
6999         (R_CKCORE_ADDRPLT_HI16, R_CKCORE_ADDRPLT_LO16)
7000         (R_CKCORE_PCREL_JSR_IMM26BY2, R_CKCORE_TOFFSET_LO16)
7001         (R_CKCORE_DOFFSET_LO16, R_CKCORE_PCREL_IMM18BY2)
7002         (R_CKCORE_DOFFSET_IMM18, R_CKCORE_DOFFSET_IMM18BY2)
7003         (R_CKCORE_DOFFSET_IMM18BY4, R_CKCORE_GOT_IMM18BY4)
7004         (R_CKCORE_PLT_IMM18BY4, R_CKCORE_PCREL_IMM7BY4, R_CKCORE_TLS_LE32)
7005         (R_CKCORE_TLS_IE32, R_CKCORE_TLS_GD32, R_CKCORE_TLS_LDM32)
7006         (R_CKCORE_TLS_LDO32, R_CKCORE_TLS_DTPMOD32, R_CKCORE_TLS_DTPOFF32)
7007         (R_CKCORE_TLS_TPOFF32): New defines.
7009 2018-11-29  Florian Weimer  <fweimer@redhat.com>
7011         * posix/Makefile (before-compile): Remove testcases.h and
7012         ptestcases.h.
7013         (generated): Add testcases.h and ptestcases.h.
7014         (testcases.h, ptestcases.h): Move to $(objpfx).
7015         (runtests.o): Add dependency on testcases.h.
7016         (runptests.o): Add dependency on ptestcases.h.
7017         * posix/testcases.h, posix/ptestcases.h: Remove files.
7018         * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps): Do
7019         not touch posix/testcases.h and posix/ptestcases.h.
7021 2018-11-28  Florian Weimer  <fweimer@redhat.com>
7023         support: Add signal support to support_capture_subprocess_check.
7024         * support/capture_subprocess.h (support_capture_subprocess_check):
7025         Adjust comment and rename parameter.
7026         * support/support_capture_subprocess_check.c
7027         (print_actual_status): New function.
7028         (support_capture_subprocess_check): Support negative
7029         status_or_signal.  Call print_actual_status.
7030         * support/tst-support_capture_subprocess.c (do_test): Call
7031         support_capture_subprocess_check.
7032         * libio/tst-vtables-common.c (termination_status)
7033         (init_termination_status): Remove.
7034         (check_for_termination): Adjust support_capture_subprocess_check
7035         call.
7036         (do_test): Remove call to init_termination_status.
7038 2018-11-28  Joseph Myers  <joseph@codesourcery.com>
7040         * scripts/build-many-glibcs.py (Glibc.build_glibc): Use original
7041         source directory instead of a copy.
7042         (CommandList.create_copy_dir): Remove.
7044 2018-11-28  Stefan Liebler  <stli@linux.ibm.com>
7046         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
7048 2018-11-28  Florian Weimer  <fweimer@redhat.com>
7050         * support/support.h (support_quote_string): Do not use str
7051         parameter name.
7053 2018-11-27  Joseph Myers  <joseph@codesourcery.com>
7055         * sysdeps/mach/hurd/Makefile ($(common-objpfx)stamp-errnos): Use
7056         $(hurd-objpfx)bits/errno.h-tmp, not $(hurd)/bits/errno.h-tmp.
7058 2018-11-27  Florian Weimer  <fweimer@redhat.com>
7060         * support/support.h (support_quote_string): Declare.
7061         * support/support_quote_string.c: New file.
7062         * support/tst-support_quote_string.c: Likewise.
7063         * support/Makefile (libsupport-routines): Add
7064         support_quote_string.
7065         (tests): Add tst-support_quote_string.
7067 2018-11-27  Florian Weimer  <fweimer@redhat.com>
7069         [BZ #23927]
7070         CVE-2018-19591
7071         * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex): Avoid
7072         descriptor leak in case of ENODEV error.
7074 2018-11-27  Rafael Ávila de Espíndola  <rafael@espindo.la>
7076         [BZ #19767]
7077         * sysdeps/unix/sysv/linux/aarch64/init-first.c: Remove #ifdef SHARED.
7078         * sysdeps/unix/sysv/linux/aarch64/libc-vdso.h: Remove #ifdef SHARED.
7079         * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Define ALWAYS_USE_VSYSCALL.
7081 2018-11-26  Carlos O'Donell  <carlos@redhat.com>
7083         * scripts/abilist.awk: Handle .tdata. Error for unknown combinations.
7084         Error for unknown lines.
7086 2018-11-26  Joseph Myers  <joseph@codesourcery.com>
7088         * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps):
7089         Touch additional files.
7091 2018-11-26  Florian Weimer  <fweimer@redhat.com>
7093         [BZ #23907]
7094         * malloc/malloc.c (_int_free): Validate tc_idx before checking for
7095         double-frees.
7097 2018-11-26  Rafael Ávila de Espíndola  <rafael@espindo.la>
7099         [BZ #19767]
7100         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Remove #ifdef SHARED.
7101         * sysdeps/unix/sysv/linux/powerpc/libc-vdso.h: Remove #ifdef
7102         SHARED.  Include sysdep.h.
7103         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Define
7104         ALWAYS_USE_VSYSCALL.
7105         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Define
7106         ALWAYS_USE_VSYSCALL.
7108 2018-11-23  Rafael Ávila de Espíndola  <rafael@espindo.la>
7110         [BZ #19767]
7111         * nptl/Makefile (tests-static): Add tst-cond11-static.
7112         (tests): Likewise.
7113         * nptl/tst-cond11-static.c: New File.
7114         * sysdeps/unix/sysv/linux/Makefile (tests-static): Add
7115         tst-affinity-static.
7116         (tests): Likewise.
7117         * sysdeps/unix/sysv/linux/sysdep-vdso.h: Check USE_VSYSCALL
7118         instead of SHARED.
7119         * sysdeps/unix/sysv/linux/sysdep.h (ALWAYS_USE_VSYSCALL): New.
7120         (USE_VSYSCALL): Likewise.
7121         * sysdeps/unix/sysv/linux/tst-affinity-static.c: New file.
7122         * sysdeps/unix/sysv/linux/x86/libc-vdso.h: Check USE_VSYSCALL
7123         instead of SHARED.
7124         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Don't check
7125         SHARED.
7126         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (ALWAYS_USE_VSYSCALL):
7127         New.
7129 2018-11-23  Joseph Myers  <joseph@codesourcery.com>
7131         [BZ #23915]
7132         * sysdeps/unix/sysv/linux/arm/kernel-features.h
7133         [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_COPY_FILE_RANGE):
7134         Undefine.
7136 2018-11-23  H.J. Lu  <hongjiu.lu@intel.com>
7138         * sysdeps/x86/Makefile (tests): Add tst-cet-legacy-1a.
7139         (tst-cet-legacy-1a-ARGS): New.
7140         ($(objpfx)tst-cet-legacy-1a): New target.
7141         * sysdeps/x86/tst-cet-legacy-1a.c: New file.
7143 2018-11-22  Joseph Myers  <joseph@codesourcery.com>
7145         * conform/conformtest.py (CompileSubTest.__init__): Set
7146         self.run_early to False.
7147         (ExecuteSubTest.__init__): Likewise.
7148         (HeaderTests.run): Try running all non-optional, non-XFAILed
7149         compilation tests in a single execution of the compiler.
7151         * conform/conformtest.py (CompileSubTest): New class.
7152         (ExecuteSubTest): Likewise.
7153         (ElementTest.run): Rename to gen_subtests.  Append tests to
7154         self.subtests instead of running them.
7155         (ConstantTest.run): Likewise.
7156         (SymbolTest.run): Likewise.
7157         (TypeTest.run): Likewise.
7158         (TagTest.run): Likewise.
7159         (FunctionTest.run): Likewise.
7160         (VariableTest.run): Likewise.
7161         (MacroFunctionTest.run): Likewise.
7162         (MacroStrTest.run): Likewise.
7163         (HeaderTests.handle_test_line): Generate subtests for tests.
7164         (HeaderTests.run): Run subtests for tests.
7166 2018-11-21  Szabolcs Nagy  <szabolcs.nagy@arm.com>
7168         * math/Versions (GLIBC_2.29): Add pow.
7169         * math/w_pow_compat.c (__pow_compat): Change to versioned compat
7170         symbol.
7171         * math/w_pow.c: New file.
7172         * sysdeps/i386/fpu/w_pow.c: New file.
7173         * sysdeps/ia64/fpu/e_pow.S: Add versioned symbols.
7174         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Rename to __pow
7175         and add necessary aliases.
7176         * sysdeps/ieee754/dbl-64/w_pow.c: New file.
7177         * sysdeps/m68k/m680x0/fpu/w_pow.c: New file.
7178         * sysdeps/mach/hurd/i386/libm.abilist: Update.
7179         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
7180         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
7181         * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
7182         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
7183         * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
7184         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
7185         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
7186         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
7187         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
7188         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
7189         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
7190         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
7191         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
7192         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
7193         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
7194         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
7195         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
7196         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
7197         * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
7198         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
7199         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
7200         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
7201         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
7202         * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c (__ieee754_pow): Rename to
7203         __pow.
7204         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c (__ieee754_pow): Likewise.
7205         * sysdeps/x86_64/fpu/multiarch/e_pow.c (__ieee754_pow): Likewise.
7206         * sysdeps/x86_64/fpu/multiarch/w_pow.c: New file.
7208 2018-11-21  Szabolcs Nagy  <szabolcs.nagy@arm.com>
7210         * math/Versions (GLIBC_2.29): Add log2.
7211         * math/w_log2_compat.c (__log2_compat): Change to versioned compat
7212         symbol.
7213         * math/w_log2.c: New file.
7214         * sysdeps/i386/fpu/w_log2.c: New file.
7215         * sysdeps/ia64/fpu/e_log2.S: Add versioned symbols.
7216         * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Rename to __log2
7217         and add necessary aliases.
7218         * sysdeps/ieee754/dbl-64/w_log2.c: New file.
7219         * sysdeps/m68k/m680x0/fpu/w_log2.c: New file.
7220         * sysdeps/mach/hurd/i386/libm.abilist: Update.
7221         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
7222         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
7223         * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
7224         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
7225         * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
7226         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
7227         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
7228         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
7229         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
7230         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
7231         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
7232         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
7233         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
7234         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
7235         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
7236         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
7237         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
7238         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
7239         * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
7240         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
7241         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
7242         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
7243         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
7245 2018-11-21  Szabolcs Nagy  <szabolcs.nagy@arm.com>
7247         * math/Versions (GLIBC_2.29): Add log.
7248         * math/w_log_compat.c (__log_compat): Change to versioned compat
7249         symbol.
7250         * math/w_log.c: New file.
7251         * sysdeps/i386/fpu/w_log.c: New file.
7252         * sysdeps/ia64/fpu/e_log.S: Update.
7253         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Rename to __log
7254         and add necessary aliases.
7255         * sysdeps/ieee754/dbl-64/w_log.c: New file.
7256         * sysdeps/m68k/m680x0/fpu/w_log.c: New file.
7257         * sysdeps/mach/hurd/i386/libm.abilist: Update.
7258         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
7259         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
7260         * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
7261         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
7262         * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
7263         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
7264         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
7265         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
7266         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
7267         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
7268         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
7269         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
7270         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
7271         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
7272         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
7273         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
7274         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
7275         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
7276         * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
7277         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
7278         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
7279         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
7280         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
7281         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c (__ieee754_log): Rename to
7282         __log.
7283         * sysdeps/x86_64/fpu/multiarch/e_log-fma.c (__ieee754_log): Likewise.
7284         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c (__ieee754_log): Likewise.
7285         * sysdeps/x86_64/fpu/multiarch/e_log.c (__ieee754_log): Likewise.
7286         * sysdeps/x86_64/fpu/multiarch/w_log.c: New file.
7288 2018-11-21  Szabolcs Nagy  <szabolcs.nagy@arm.com>
7290         * math/Versions (GLIBC_2.29): Add exp and exp2.
7291         * math/w_exp2_compat.c (__exp2_compat): Change to versioned compat
7292         symbol, handle NO_LONG_DOUBLE and LONG_DOUBLE_COMPAT explicitly.
7293         * math/w_exp_compat.c (__exp_compat): Likewise.
7294         * math/w_exp.c: New file.
7295         * math/w_exp2.c: New file.
7296         * sysdeps/i386/fpu/w_exp.c: New file.
7297         * sysdeps/i386/fpu/w_exp2.c: New file.
7298         * sysdeps/ia64/fpu/e_exp.S: Add versioned symbols.
7299         * sysdeps/ia64/fpu/e_exp2.S: Likewise.
7300         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Rename to __exp
7301         and add necessary aliases.
7302         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Rename to __exp2
7303         and add necessary aliases.
7304         * sysdeps/ieee754/dbl-64/w_exp.c: New file.
7305         * sysdeps/ieee754/dbl-64/w_exp2.c: New file.
7306         * sysdeps/m68k/m680x0/fpu/w_exp.c: New file.
7307         * sysdeps/m68k/m680x0/fpu/w_exp2.c: New file.
7308         * sysdeps/mach/hurd/i386/libm.abilist: Update.
7309         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
7310         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
7311         * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
7312         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
7313         * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
7314         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
7315         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
7316         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
7317         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
7318         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
7319         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
7320         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
7321         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
7322         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
7323         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
7324         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
7325         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
7326         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
7327         * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
7328         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
7329         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
7330         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
7331         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
7332         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__exp1): Remove.
7333         (__ieee754_exp): Rename to __exp.
7334         * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__exp1): Remove.
7335         (__ieee754_exp): Rename to __exp.
7336         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__exp1): Remove.
7337         (__ieee754_exp): Rename to __exp.
7338         * sysdeps/x86_64/fpu/multiarch/e_exp.c (__ieee754_exp): Rename to
7339         __exp.
7340         * sysdeps/x86_64/fpu/multiarch/w_exp.c: New file.
7342 2018-11-20  DJ Delorie  <dj@redhat.com>
7344         * malloc/malloc.c (tcache_entry): Add key field.
7345         (tcache_put): Set it.
7346         (tcache_get): Likewise.
7347         (_int_free): Check for double free in tcache.
7348         * malloc/tst-tcfree1.c: New.
7349         * malloc/tst-tcfree2.c: New.
7350         * malloc/Makefile: Run the new tests.
7351         * manual/probes.texi: Document memory_tcache_double_free probe.
7353         * dlfcn/dlerror.c (check_free): Prevent double frees.
7355 2018-11-20  Wilco Dijkstra  <wdijkstr@arm.com>
7357         * sysdeps/aarch64/memset.S (MEMSET): Improve non-zero memset loop.
7359 2018-11-20  Joseph Myers  <joseph@codesourcery.com>
7361         * conform/conformtest.py (ElementTest.run): Use unique identifiers
7362         in tests.  Use names for format arguments.
7363         (ConstantTest.run): Likewise.
7364         (SymbolTest.run): Likewise.
7365         (TypeTest.run): Likewise.
7366         (TagTest.run): Likewise.
7367         (FunctionTest.run): Likewise.
7368         (VariableTest.run): Likewise.
7369         (MacroFunctionTest.run): Likewise.
7370         (MacroStrTest.run): Likewise.
7371         (HeaderTests.__init__): Set self.num_tests.
7372         (HeaderTests.handle_test_line): Set test.num.  Increment
7373         self.num_tests.
7375 2018-11-19  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7377         * sysdeps/mach/hurd/f_setlk.c: Include <unistd.h>.
7378         (__f_setlk): When whence is SEEK_CUR, use __lseek64 to convert it to
7379         SEEK_SET.
7381 2018-11-19  Mao Han  <han_mao@c-sky.com>
7383         * scripts/config.guess: Update to version 2018-08-29.
7384         * scripts/config.sub: Update to version 2018-08-29.
7386 2018-11-19  Florian Weimer  <fweimer@redhat.com>
7388         support: Print timestamps in timeout handler.
7389         * support/support_test_main.c (print_timestamp): New function.
7390         (signal_handler): Use it to print the termination time and the
7391         time of the last write to standard output.
7393 2018-11-16  Zack Weinberg  <zackw@panix.com>
7394             Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
7396         * include/monetary.h (STRFMON_LDBL_IS_DBL): New constant.
7397         (__vstrfmon_l): Rename to __vstrfmon_l_internal and add flags
7398         argument.
7399         * stdlib/strfmon_l.c (__vstrfmon_l): Rename to __vstrfmon_l_internal
7400         and add flags argument.  Check flags instead of __ldbl_is_dbl when
7401         deciding whether to set is_long_double.
7402         (__strfmon_l): Call __vstrfmon_l_internal instead of __vstrfmon_l,
7403         passing zero for flags argument.
7404         * stdlib/strfmon.c (strfmon): Same change as made to __strfmon_l.
7406         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
7407         (__nldbl___vstrfmon, __nldbl___vstrfmon_l)
7408         (__nldbl_strfmon, __nldbl___strfmon_l): Call __vstrfmon_l_internal
7409         directly, passing STRFMON_LDBL_IS_DBL for flags argument.  Normalize
7410         variable names.  Remove libc_hidden_def/libc_hidden_proto from
7411         __nldbl___vstrfmon and __nldbl___vstrfmon_l, because they are no
7412         longer called from within the library.
7413         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Don't use NLDBL_DECL
7414         for __nldbl___vstrfmon_l, declare it explicitly.
7416         * manual/locale.texi: Update a reference to vstrfmon_l in comments.
7418 2018-11-15  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7420         * sysdeps/mach/hurd/bits/fcntl.h (F_GETLK64, F_SETLK64, F_SETLKW64): New
7421         macros
7422         [__USE_FILE_OFFSET64] (F_GETLK, F_SETLK, F_SETLKW): Define to F_GETLK64,
7423         F_SETLK64, F_SETLKW64, respectively.
7424         * sysdeps/mach/hurd/f_setlk.c: New file.
7425         * sysdeps/mach/hurd/f_setlk.h: New file.
7426         * sysdeps/mach/hurd/Makefile [$(subdir) = io] (sysdeps_routines): Add
7427         f_setlk.
7428         * sysdeps/mach/hurd/fcntl.c: Include "f_setlk.h".h".
7429         (__libc_fcntl): Move non-flock operations to...
7430         * sysdeps/mach/hurd/vfcntl.c (__libc_vfcntl): ... New file.
7431         * sysdeps/mach/hurd/fcntl.c (fcntl64): Add missing alias.
7433 2018-11-15  Paul Eggert  <eggert@cs.ucla.edu>
7435         mktime: DEBUG_MKTIME cleanup
7436         The DEBUG_MKTIME code no longer works in glibc or in Gnulib.
7437         And it’s no longer needed now that glibc and Gnulib both have
7438         their own testing mechanisms for mktime.
7439         * time/mktime.c (DEBUG_MKTIME): Remove.  All uses removed.
7441         mktime: fix non-EOVERFLOW errno handling
7442         [BZ#23789]
7443         mktime was not properly reporting failures when the underlying
7444         localtime_r fails with errno != EOVERFLOW; it incorrectly treated
7445         them like EOVERFLOW failures, and set errno to EOVERFLOW.
7446         The problem could happen on non-glibc platforms, with Gnulib.
7447         * time/mktime.c (guess_time_tm): Remove, replacing with ...
7448         (tm_diff): ... this simpler function, which does not change errno.
7449         All callers changed to deal with errno themselves.
7450         (ranged_convert, __mktime_internal): Return failure immediately if
7451         the underlying function reports any failure other than EOVERFLOW.
7452         (__mktime_internal): Set errno to EOVERFLOW if the spring-forward
7453         gap code fails.
7455         mktime: fix bug with Y2038 DST transition
7456         [BZ#23789]
7457         * time/mktime.c (ranged_convert): On 32-bit platforms, don’t
7458         mishandle a DST transition that jumps over the Y2038 boundary.
7459         No such DST transitions are known so this is only a theoretical
7460         bug, but we might as well do things right.
7462         mktime: make more room for overflow
7463         [BZ#23789]
7464         * time/mktime.c (long_int): Now 4⨯ int, not just 3⨯.
7465         This is so that we can add tm_diff results to a previous guess,
7466         which will be useful in a later patch.
7468         mktime: simplify offset guess
7469         [BZ#23789]
7470         * time/mktime.c (__mktime_internal): Omit excess precision.
7472         mktime: new test for mktime failure
7473         [BZ#23789]
7474         Based on a test suggested by Albert Aribaud in:
7475         https://www.sourceware.org/ml/libc-alpha/2018-10/msg00662.html
7476         * time/Makefile (tests): Add bug-mktime4.
7477         * time/bug-mktime4.c: New file.
7479         mktime: fix EOVERFLOW bug
7480         [BZ#23789]
7481         * time/mktime.c [!_LIBC && !DEBUG_MKTIME]:
7482         Include libc-config.h, not config.h, for __set_errno.
7483         (guess_time_tm, __mktime_internal): Set errno to EOVERFLOW on overflow.
7485 2018-11-14  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7487         * sysdeps/mach/hurd/dl-sysdep.c (check_no_hidden): Use
7488         __attribute_copy__ to copy attributes from name. Drop static qualifier
7489         to avoid warnings about leaf attribute not having effect on static
7490         functions.
7492 2018-11-13  Florian Weimer  <fweimer@redhat.com>
7494         * malloc/malloc.c (fastbin_push_entry): New function.
7495         (fastbin_pop_entry): Likewise.  Replaces REMOVE_FB.
7496         (REMOVE_FB): Remove macro.
7497         (_int_malloc): Use fastbin_pop_entry and reindent.
7498         (_int_free): Use fastbin_push_entry.
7499         (malloc_consolidate): Use atomic_exchange_acquire.
7501 2018-11-13  Joseph Myers  <joseph@codesourcery.com>
7503         * sysdeps/mips/__longjmp.c (__longjmp): Define alias manually with
7504         alias attribute, not with strong_alias.
7506         * include/libc-symbols.h [SHARED && !NO_HIDDEN && !__ASSEMBLER__]
7507         (__hidden_ver2): New macro.  Use old definition of __hidden_ver1
7508         with additional parameter thread.
7509         [SHARED && !NO_HIDDEN && !__ASSEMBLER__] (__hidden_ver1): Define
7510         in terms of __hidden_ver2.
7511         (hidden_tls_def): New macro.
7512         (libc_hidden_tls_def): Likewise.
7513         (rtld_hidden_tls_def): Likewise.
7514         (libm_hidden_tls_def): Likewise.
7515         (libmvec_hidden_tls_def): Likewise.
7516         (libresolv_hidden_tls_def): Likewise.
7517         (librt_hidden_tls_def): Likewise.
7518         (libdl_hidden_tls_def): Likewise.
7519         (libnss_files_hidden_tls_def): Likewise.
7520         (libnsl_hidden_tls_def): Likewise.
7521         (libnss_nisplus_hidden_tls_def): Likewise.
7522         (libutil_hidden_tls_def): Likewise.
7523         (libutil_hidden_tls_def): Likweise.
7524         * sysdeps/powerpc/nofpu/sim-full.c (__sim_exceptions_thread): Use
7525         libc_hidden_tls_def.
7526         (__sim_disabled_exceptions_thread): Likewise.
7527         (__sim_round_mode_thread): Likewise.
7529         * sysdeps/sparc/sparc-ifunc.h [SHARED]
7530         (sparc_ifunc_redirected_hidden_def): Use __attribute_copy__ to
7531         copy attributes from name.
7533 2018-11-12  Joseph Myers  <joseph@codesourcery.com>
7535         * sysdeps/arm/arm-ifunc.h [SHARED] (arm_libc_ifunc_hidden_def):
7536         Use __attribute_copy__ to copy attributes from name.
7538         * sysdeps/i386/i686/fpu/multiarch/e_expf.c [SHARED]: Use __THROW
7539         with __hidden_ver1 call.
7540         * sysdeps/i386/i686/fpu/multiarch/e_log2f.c [SHARED]: Likewise.
7541         * sysdeps/i386/i686/fpu/multiarch/e_logf.c [SHARED]: Likewise.
7542         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Include <math.h>.
7543         (__cosf): Do not declare here.
7544         * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: Include <math.h>.
7545         (__sincosf): Do not declare here.
7546         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: Include <math.h>.
7547         (__sinf): Do not declare here.
7549         * sysdeps/ia64/fpu/sfp-machine.h (__LITTLE_ENDIAN): Remove.
7550         (__BIG_ENDIAN): Likewise.
7551         (__BYTE_ORDER): Likewise.
7552         (strong_alias): Likewise.
7553         (_strong_alias): Likewise.
7555 2018-11-12  Florian Weimer  <fweimer@redhat.com>
7557         * malloc/malloc.c (unlink_chunk): Turn the unlink macro into this
7558         function.  Move after the definition of in_smallbin_range.  Do not
7559         use __builtin_expect for paths that lead to a noreturn function.
7560         Drop remaining __builtin_expect (p->fd_nextsize != NULL, 0)
7561         because it is unclear whether this is in fact an unlikely
7562         condition.
7563         (_int_malloc, _int_free): Adjust.
7564         (malloc_consolidate, _int_realloc): Adjust.  Remove bck, fwd
7565         variables.
7566         * malloc/arena.c (heap_trim): Likewise.
7568 2018-11-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7570         * sysdeps/mach/hurd/spawni.c (__spawni): Add ccwdir port. Test and use
7571         it, free it if needed.
7572         (reauthenticate): Test and use ccwdir.
7573         (child_init_port): In non-resetids case, test and use ccwdir.
7574         (child_chdir): New nested function to set ccwdir.
7575         * hurd/hurd/userlink.h (_hurd_userlink_move): New function.
7576         * hurd/hurd/port.h (_hurd_port_move): New function.
7577         * sysdeps/mach/hurd/spawni.c (NEW_ULINK_TABLE): New macro.
7578         (EXPAND_DTABLE): Use NEW_ULINK_TABLE macro for ulink_dtable.
7579         * hurd/Versions (_hurd_port_move): Export function.
7580         * sysdeps/mach/hurd/i386/libc.abilist (_hurd_port_move): Expect
7581         symbol.
7582         * sysdeps/mach/hurd/spawni.c (__spawni): Use orig_dtablesize instead
7583         of dtablesize for allocating dtable_cloexec.
7585 2018-11-09  Martin Sebor  <msebor@redhat.com>
7587         * include/libc-symbols.h (__attribute_copy__): Define macro unless
7588         it's already defined.
7589         (_strong_alias): Use __attribute_copy__.
7590         (_weak_alias,  __hidden_ver1,  __hidden_nolink2): Same.
7591         * misc/sys/cdefs.h (__attribute_copy__): New macro.
7592         * sysdeps/x86_64/multiarch/memchr.c (memchr): Use __attribute_copy__.
7593         * sysdeps/x86_64/multiarch/memcmp.c (memcmp): Same.
7594         * sysdeps/x86_64/multiarch/mempcpy.c (mempcpy): Same.
7595         * sysdeps/x86_64/multiarch/memset.c (memset): Same.
7596         * sysdeps/x86_64/multiarch/stpcpy.c (stpcpy): Same.
7597         * sysdeps/x86_64/multiarch/strcat.c (strcat): Same.
7598         * sysdeps/x86_64/multiarch/strchr.c (strchr): Same.
7599         * sysdeps/x86_64/multiarch/strcmp.c (strcmp): Same.
7600         * sysdeps/x86_64/multiarch/strcpy.c (strcpy): Same.
7601         * sysdeps/x86_64/multiarch/strcspn.c (strcspn): Same.
7602         * sysdeps/x86_64/multiarch/strlen.c (strlen): Same.
7603         * sysdeps/x86_64/multiarch/strncmp.c (strncmp): Same.
7604         * sysdeps/x86_64/multiarch/strncpy.c (strncpy): Same.
7605         * sysdeps/x86_64/multiarch/strnlen.c (strnlen): Same.
7606         * sysdeps/x86_64/multiarch/strpbrk.c (strpbrk): Same.
7607         * sysdeps/x86_64/multiarch/strrchr.c (strrchr): Same.
7608         * sysdeps/x86_64/multiarch/strspn.c (strspn): Same.
7610 2018-11-09  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
7612         * misc/tst-efgcvt.c: Include support/check.h and
7613         support/test-driver.c.  Do not include test-skeleton.c.
7614         (error_count): Remove.
7615         (output_error): Replace increments to error_count with calls to
7616         support_record_failure.
7617         (output_r_error): Likewise.
7618         (special): Likewise.
7619         (do_test): Unconditionally return zero.
7620         (TEST_FUNCTION): Remove.
7622 2018-11-09  Joseph Myers  <joseph@codesourcery.com>
7624         * conform/Makefile ($(conformtest-header-tests)): Create $(@D),
7625         not $(@D)/scratch.
7626         ($(linknamespace-header-tests)): Likewise.
7628         * conform/conformtest.py: New file.
7629         * conform/conformtest.pl: Remove.
7630         * conform/GlibcConform.pm: Likewise.
7631         * conform/glibcconform.py (KEYWORDS_C90): New constant.
7632         (KEYWORDS_C99): Likewise.
7633         (KEYWORDS): Likewise.
7634         * conform/Makefile ($(conformtest-header-tests)): Use
7635         conformtest.py instead of conformtest.pl.  Do not pass --tmpdir
7636         option.  Use --header instead of --headers.
7637         * conform/data/arpa/inet.h-data: Remove trailing semicolons on
7638         function entries.
7639         * conform/data/spawn.h-data: Likewise.
7640         * conform/data/fcntl.h-data (openat): Add space after function
7641         name.
7642         * conform/data/wchar.h-data (wcscasecmp): Likewise.
7643         (wcscasecmp_l): Likewise.
7644         * conform/data/termios.h-data (c_cc): Add space after element
7645         name.
7647 2018-11-08  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
7649         * argp/tst-ldbl-argp.c (do_one_test): Use TEST_COMPARE_STRING,
7650         instead of manually comparing and reporting mismatching strings.
7651         * misc/tst-ldbl-error.c (do_one_test): Likewise.
7652         * misc/tst-ldbl-warn.c (do_one_test): Likewise.
7654 2018-11-08  Joseph Myers  <joseph@codesourcery.com>
7656         * sysdeps/unix/sysv/linux/kernel-features.h: Remove comment about
7657         __ASSUME_SOCKETCALL.
7658         * sysdeps/unix/sysv/linux/i386/kernel-features.h
7659         (__ASSUME_SOCKETCALL): Remove.
7660         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
7661         (__ASSUME_SOCKETCALL): Likewise.
7662         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
7663         (__ASSUME_SOCKETCALL): Likewise.
7664         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
7665         (__ASSUME_SOCKETCALL): Likewise.
7666         * sysdeps/unix/sysv/linux/s390/kernel-features.h
7667         (__ASSUME_SOCKETCALL): Likewise.
7668         * sysdeps/unix/sysv/linux/sh/kernel-features.h
7669         (__ASSUME_SOCKETCALL): Likewise.
7670         * sysdeps/unix/sysv/linux/sparc/kernel-features.h
7671         (__ASSUME_SOCKETCALL): Likewise.
7673 2018-11-08  H.J. Lu  <hongjiu.lu@intel.com>
7675         [BZ #23509]
7676         * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Skip
7677         note parsing if a NT_GNU_PROPERTY_TYPE_0 note has been processed.
7678         Update the l_cet field when processing NT_GNU_PROPERTY_TYPE_0 note.
7679         Check multiple NT_GNU_PROPERTY_TYPE_0 notes.
7680         * sysdeps/x86/link_map.h (l_cet): Expand to 3 bits,  Add
7681         lc_unknown.
7683 2018-11-08  Alexandra Hájková  <ahajkova@redhat.com>
7685         [BZ #17630]
7686         * resolv/tst-resolv-network.c: Add test for getnetbyname.
7688 2018-11-07  Joseph Myers  <joseph@codesourcery.com>
7690         [BZ #23867]
7691         * sysdeps/unix/sysv/linux/arm/kernel-features.h
7692         [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_MLOCK2): Undefine.
7693         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
7694         [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_MLOCK2): Undefine.
7696 2018-11-07  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7698         * support/support_test_compare_string.c
7699         (support_test_compare_string): Fix printf format.
7701 2018-11-07  Florian Weimer  <fweimer@redhat.com>
7703         Implement TEST_COMPARE_STRING.
7704         * support/check.h (TEST_COMPARE_STRING): Define.
7705         (support_test_compare_string): Declare.
7706         * support/Makefile (libsupport-routines): Add
7707         support_test_compare_string.
7708         (tests): Add tst-test_compare_string.
7709         * support/support_test_compare_string.c: New file.
7710         * support/tst-test_compare_string.c: Likewise.
7712 2018-11-07  Andreas Schwab  <schwab@suse.de>
7714         [BZ #23864]
7715         * sysdeps/unix/sysv/linux/riscv/kernel-features.h
7716         (__ASSUME_SET_ROBUST_LIST) [__LINUX_KERNEL_VERSION < 0x041400]:
7717         Undef.
7719 2018-11-06  Joseph Myers  <joseph@codesourcery.com>
7721         [BZ #23862]
7722         * sysdeps/unix/sysv/linux/sh/kernel-features.h
7723         [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_EXECVEAT): Undefine.
7724         [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_MLOCK2): Likewise.
7725         [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_COPY_FILE_RANGE):
7726         Likewise.
7728 2018-11-06  Florian Weimer  <fweimer@redhat.com>
7730         [BZ #17405]
7731         * posix/Makefile (routines): Add spawn_faction_addchdir.
7732         (tests): Add tst-spawn-chdir.
7733         * posix/Versions (GLIBC_2.29): Add
7734         posix_spawn_file_actions_addchdir_np.
7735         * posix/spawn_faction_addchdir.c: New file.
7736         * posix/spawn_faction_destroy.c
7737         (__posix_spawn_file_actions_destroy): Handle spawn_do_chdir.
7738         * posix/spawn.h (posix_spawn_file_actions_addchdir_np): Declare.
7739         * posix/spawn_int.h (struct __spawn_action): Add spawn_do_chdir,
7740         chdir_action.
7741         * posix/tst-spawn-chdir.c: New file.
7742         * sysdeps/posix/spawni.c (__spawni_child): Handle spawn_do_chdir.
7743         * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
7744         * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.29): Add
7745         posix_spawn_file_actions_addchdir_np.
7746         * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.29):
7747         Likewise.
7748         * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.29):
7749         Likewise.
7750         * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.29): Likewise.
7751         * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.29):
7752         Likewise.
7753         * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.29):
7754         Likewise.
7755         * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.29):
7756         Likewise.
7757         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.29):
7758         Likewise.
7759         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.29):
7760         Likewise.
7761         * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.29):
7762         Likewise.
7763         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
7764         (GLIBC_2.29): Likewise.
7765         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
7766         (GLIBC_2.29): Likewise.
7767         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
7768         (GLIBC_2.29): Likewise.
7769         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
7770         (GLIBC_2.29): Likewise.
7771         * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.29):
7772         Likewise.
7773         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
7774         (GLIBC_2.29): Likewise.
7775         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
7776         (GLIBC_2.29): Likewise.
7777         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
7778         (GLIBC_2.29): Likewise.
7779         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
7780         (GLIBC_2.29): Likewise.
7781         * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.29):
7782         Likewise.
7783         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.29):
7784         Likewise.
7785         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.29):
7786         Likewise.
7787         * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.29): Likewise.
7788         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.29):
7789         Likewise.
7790         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.29):
7791         Likewise.
7792         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.29):
7793         Likewise.
7794         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.29):
7795         Likewise.
7797 2018-11-06  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
7799         * misc/Makefile (tests): Add tst-ldbl-error.
7800         * misc/tst-ldbl-error.c: New file.
7802 2018-11-06  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
7804         * misc/Makefile (tests): Add tst-ldbl-warn.
7805         * misc/tst-ldbl-warn.c: New file.
7807 2018-11-06  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
7809         * argp/Makefile (tests): Add tst-ldbl-argp.
7810         * argp/tst-ldbl-argp.c: New file.
7812 2018-11-05  Arjun Shankar  <arjun@redhat.com>
7814         * iconv/gconv_conf.c (__gconv_read_conf): Remove NULL check for
7815         __gconv_path_elem and call __gconv_get_path unconditionally.
7817 2018-11-05  Andreas Schwab  <schwab@suse.de>
7819         [BZ #22927]
7820         * resolv/gai_misc.c (__gai_enqueue_request): Don't crash if
7821         creating the first helper thread failed.
7823 2018-11-03  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7825         * sysdeps/mach/hurd/msync.c: New file.
7827 2018-11-02  Florian Weimer  <fweimer@redhat.com>
7829         * support/shell-container.c (copy_func): Call
7830         support_copy_file_range instead of copy_file_range to support
7831         cross-device copies.
7833 2018-11-02  Florian Weimer  <fweimer@redhat.com>
7835         * support/test-container.c: Include <libc-pointer-arith.h> for
7836         ALIGN_UP.
7838 2018-11-01  Zong Li  <zong@andestech.com>
7840         * soft-fp/op-8.h (_FP_FRAC_SET_8, _FP_FRAC_ADD_8, _FP_FRAC_SUB_8)
7841         (_FP_FRAC_CLZ_8, _FP_MINFRAC_8, _FP_FRAC_NEGP_8, _FP_FRAC_ZEROP_8)
7842         (_FP_FRAC_HIGHBIT_DW_8, _FP_FRAC_COPY_4_8, _FP_FRAC_COPY_8_4)
7843         (__FP_FRAC_SET_8): Add implementation for RV32 use.
7845         * soft-fp/op-4.h (_FP_FRAC_SUB_3, _FP_FRAC_SUB_4): Use temporary
7846         variable to avoid overlap arguments.
7848 2018-11-01  Joseph Myers  <joseph@codesourcery.com>
7850         * posix/bug-regex22.c (main): Use puts with distinct error
7851         messages for unexpected success of re_compile_pattern, not printf
7852         with NULL argument to %s.
7854         * stdio-common/bug22.c: Include <libc-diag.h>.
7855         (do_test): Disable -Wformat-overflow= warnings around fprintf
7856         calls outputting more than INT_MAX characters.
7857         * stdio-common/tst-printf.c: Disable -Wformat-overflow= warnings
7858         around printf call with NULL %s argument.
7860         [BZ #23848]
7861         * sysdeps/unix/sysv/linux/sparc/kernel-features.h [!__arch64__ &&
7862         __LINUX_KERNEL_VERSION < 0x040400] (__ASSUME_SENDMSG_SYSCALL):
7863         Undefine.
7864         [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
7865         (__ASSUME_RECVMSG_SYSCALL): Likewise.
7866         [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
7867         (__ASSUME_SENDTO_SYSCALL): Likewise.
7868         [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
7869         (__ASSUME_ACCEPT_SYSCALL): Undefine under this condition, not just
7870         [!__arch64__].
7871         [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
7872         (__ASSUME_CONNECT_SYSCALL): Likewise.
7873         [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
7874         (__ASSUME_RECVFROM_SYSCALL): Likewise.
7875         [__LINUX_KERNEL_VERSION >= 0x040400] (__ASSUME_BIND_SYSCALL):
7876         Define.
7877         [__LINUX_KERNEL_VERSION >= 0x040400] (__ASSUME_LISTEN_SYSCALL):
7878         Likewise.
7879         [__LINUX_KERNEL_VERSION >= 0x040400]
7880         (__ASSUME_SETSOCKOPT_SYSCALL): Likewise.
7881         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (bind):
7882         Remove.
7883         (listen): Likewise.
7884         (setsockopt): Likewise.
7886 2018-11-01  Fredrik Noring  <noring@nocrew.org>
7888         * sysdeps/mips/sys/tas.h (_test_and_set): Handle the R5900 CPU
7889         with the ISA override.
7891 2018-10-31  Rafael Avila de Espindola  <rafael@espindo.la>
7893         * sysdeps/unix/sysv/linux/sysdep-vdso.h: Simplify an #if #else
7894         #endif.
7896 2018-10-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7898         * manual/errno.texi (EIEIO): Document how translators should
7899         translate the error message.
7900         * sysdeps/mach/hurd/errnos.awk: Avoid printing errnos.d.  Avoid
7901         printing trailing whitespaces refused by git.
7902         * sysdeps/gnu/errlist.c (EIEIO): Regenerate.
7903         * sysdeps/mach/hurd/bits/errno.h: Regenerate.
7904         * hurd/Makefile (user-interfaces): Add pci.
7906 2018-10-30  Joseph Myers  <joseph@codesourcery.com>
7908         * conform/linknamespace.py: New file.
7909         * conform/linknamespace.pl: Remove file.
7910         * conform/Makefile ($(linknamespace-header-tests)): Use
7911         linknamespace.py instead of linknamespace.pl.  Do not use --tmpdir
7912         option.
7914 2018-10-30  Florian Weimer  <fweimer@redhat.com>
7916         * stdlib/test-bz22786.c (do_test): Additional free calls to avoid
7917         memory leaks.
7919 2018-10-30  Florian Weimer  <fweimer@redhat.com>
7921         * support/blob_repeat.c (allocate_big): Call mkstemp directly.
7923 2018-10-30  Florian Weimer  <fweimer@redhat.com>
7925         * stdlib/tst-strtod-overflow.c (do_test): Switch to
7926         support_blob_repeat.
7928 2018-10-30  Florian Weimer  <fweimer@redhat.com>
7930         Avoid spurious test failures in stdlib/test-bz22786.
7931         * support/Makefile (libsupport-routines): Add blob_repeat.
7932         (tests): Add tst-support_blob_repeat.
7933         * support/blob_repeat.h: New file.
7934         * support/blob_repeat.c: Likewise.
7935         * support/tst-support_blob_repeat.c: Likewise.
7936         * stdlib/test-bz22786.c (do_test): Replace malloc and memset with
7937         support_blob_repeat_allocate.
7939 2018-10-30  Andreas Schwab  <schwab@suse.de>
7941         [BZ #23125]
7942         * sysdeps/riscv/start.S (ENTRY_POINT): Mark ra as undefined.
7943         Don't use tail call.
7944         * elf/tst-unwind-main.c: New file.
7945         * elf/Makefile (tests): Add tst-unwind-main.
7946         (CFLAGS-tst-unwind-main.c): Define.
7948 2018-10-29  Sergi Almacellas Abellana  <sergi@koolpi.com>
7950         [BZ #23791]
7951         * localedata/locales/ca_ES (LC_MONETARY): set p_cs_precedes and
7952         n_cs_precedes to 0.
7953         * localedata/locales/ca_ES (LC_MONETARY): set grouping to 3;3
7955 2018-10-29  Joseph Myers  <joseph@codesourcery.com>
7957         * conform/glibcconform.py: Do not import shutil.
7958         (list_exported_functions): Use tempfile.TemporaryDirectory instead
7959         of mkdtemp.
7961         * configure.ac (PYTHON_PROG): Use AC_CHECK_PROG_VER.  Set
7962         critic_missing for versions before 3.4.
7963         * configure: Regenerated.
7964         * manual/install.texi (Tools for Compilation): Document
7965         requirement for Python to build glibc.
7966         * INSTALL: Regenerated.
7967         * Rules [PYTHON]: Make code unconditional.
7968         * benchtests/Makefile [PYTHON]: Likewise.
7969         * conform/Makefile [PYTHON]: Likewise.
7970         * manual/Makefile [PYTHON]: Likewise.
7971         * math/Makefile [PYTHON]: Likewise.
7973 2018-10-28  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7975         * hurd/hurdsig.c (_hurd_interrupted_rpc_timeout): Set to 60000.
7976         * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): When the server does not
7977         answer to interrupt_operation, return EIEIO instead of EINTR.
7978         * sysdeps/mach/hurd/i386/intr-msg.h (INTR_MSG_TRAP): Make
7979         _hurd_intr_rpc_msg_about_to global point to start of controlled
7980         assembly snippet. Make it check canceled flag.
7981         * hurd/hurdsig.c (_hurdsig_abort_rpcs): Only mutate thread if it passed
7982         the _hurd_intr_rpc_msg_about_to point.
7983         * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Remove comment on mutation
7984         issue, remove cancel flag check.
7986 2018-10-26  Joseph Myers  <joseph@codesourcery.com>
7988         * scripts/build-many-glibcs.py: Remove compatibility for missing
7989         os.cpu_count and re.fullmatch.
7991 2018-10-26  Szabolcs Nagy  <szabolcs.nagy@arm.com>
7993         [BZ #23822]
7994         * sysdeps/ia64/fpu/e_exp2f.S (exp2f): Use WEAK_LIBM_ENTRY.
7995         * sysdeps/ia64/fpu/e_log2f.S (log2f): Likewise.
7996         * sysdeps/ia64/fpu/e_exp2f.S (powf): Likewise.
7998 2018-10-25  Joseph Myers  <joseph@codesourcery.com>
8000         * sysdeps/unix/sysv/linux/sys/inotify.h (IN_MASK_CREATE): New
8001         macro.
8003 2018-10-25  Florian Weimer  <fweimer@redhat.com>
8005         [BZ #23562]
8006         [BZ #23821]
8007         XFAIL siginfo_t si_band conform test on sparc64.
8008         * sysdeps/unix/sysv/linux/sparc/bits/siginfo-arch.h
8009         (__SI_BAND_TYPE): Only override long int default type on sparc64.
8010         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile
8011         (conformtest-xfail-conds): Add sparc64-linux.
8012         * conform/data/signal.h-data (siginfo_t): XFAIL si_band test on
8013         sparc64.
8014         * conform/data/sys/wait.h-data (siginfo_t): Likewise.
8016 2018-10-25  Joseph Myers  <joseph@codesourcery.com>
8018         * elf/elf.h (NT_MIPS_DSP): New macro.
8019         (NT_MIPS_FP_MODE): Likewise.
8021 2018-10-25  Zong Li  <zong@andestech.com>
8023         * elf/Makefile (LDFLAGS-tst-execstack-mod.so): Change variable
8024         name by adding the file extension (.so).
8026 2018-10-25  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8028         * sysdeps/mach/hurd/i386/Makefile [$(subdir) = conform]
8029         (test-xfail-ISO11/threads.h/linknamespace,
8030         test-xfail-ISO11/threads.h/conform): Add.
8032 2018-10-24  Joseph Myers  <joseph@codesourcery.com>
8034         * math/gen-libm-test.py: Import os.
8035         (ALL_FLOATS_MANUAL): New constant.
8036         (ALL_FLOATS_SUFFIX): Likewise.
8037         (Ulps.all_functions): New function.
8038         (real_all_ulps): Likewise.
8039         (generate_err_table_sub): Likewise.
8040         (generate_err_table): Likewise.
8041         (main): Handle -s and -m options.
8042         * manual/libm-err-tab.pl: Remove.
8043         * manual/Makefile ($(objpfx)stamp-libm-err): Use gen-libm-test.py
8044         instead of libm-err-tab.pl.
8045         [$(PERL) != no]: Change condition to [$(if $(PYTHON),$(PERL),no)
8046         != no].
8047         * manual/install.texi (Tools for Compilation): Document
8048         requirement for Python to build manual.
8049         * INSTALL: Regenerated.
8051 2018-10-24  Albert ARIBAUD  <albert.aribaud@3adev.fr>
8053         * bits/time64.h: New file.
8054         * include/time.h: Replace internal_time_t with __time64_t.
8055         * posix/bits/types (__time64_t): Add.
8056         * stdlib/Makefile: Add bits/time64.h to includes.
8057         * time/tzfile.c: Replace internal_time_t with __time64_t.
8059 2018-10-24  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
8061         * include/spawn.h (__posix_spawn, posix_spawn_file_actions_addclose,
8062         __posix_spawn_file_actions_adddup2, __posix_spawn_file_actions_destroy,
8063         __posix_spawn_file_actions_init, __posix_spawnattr_init,
8064         __posix_spawnattr_destroy, __posix_spawnattr_setflags,
8065         __posix_spawnattr_setsigdefault, __posix_spawnattr_setsigmask): New
8066         prototype.
8067         * posix/spawn.c (__posix_spawn): Add libc_hidden_def.
8068         * posix/spawn_faction_addclose.c
8069         (__posix_spawn_file_actions_addclose): Add hidden definition.
8070         * posix/spawn_faction_adddup2.c
8071         (__posix_spawn_file_actions_adddup2): Likewise.
8072         * posix/spawn_faction_destroy.c
8073         (__posix_spawn_file_actions_destroy): Likewise.
8074         * posix/spawn_faction_init.c (__posix_spawn_file_actions_init):
8075         Likewise.
8076         * posix/spawnattr_destroy.c (__posix_spawnattr_destroy): Likewise.
8077         * posix/spawnattr_init.c (__posix_spawnattr_init): Likewise.
8078         * posix/spawnattr_setdefault.c (__posix_spawnattr_setsigdefault):
8079         Likewise.
8080         * posix/spawnattr_setflags.c (__posix_spawnattr_setflags): Likewise.
8081         * posix/spawnattr_setsigmask.c (__posix_spawnattr_setsigmask):
8082         Likewise.
8084 2018-10-24  Andreas Schwab  <schwab@suse.de>
8086         [BZ #18093]
8087         * elf/dl-cache.c (_dl_load_cache_lookup): Check for truncated old
8088         format cache.
8089         * elf/cache.c (print_cache): Likewise.
8091 2018-10-24  Albert ARIBAUD  <albert.aribaud@3adev.fr>
8093         * bits/timesize.h: New file.
8094         * stdlib/Makefile (headers): Add bits/timesize.h.
8095         * sysdeps/unix/sysv/linux/bits/msq-pad.h
8096         (__MSQ_PAD_AFTER_TIME): Use __TIMESIZE instead of __WORDSIZE.
8097         * sysdeps/unix/sysv/linux/bits/sem-pad.h
8098         (__SEM_PAD_AFTER_TIME): Likewise.
8099         * sysdeps/unix/sysv/linux/bits/shm-pad.h
8100         (__SHM_PAD_AFTER_TIME): Likewise.
8101         * sysdeps/unix/sysv/linux/hppa/bits/msq-pad.h
8102         (__MSQ_PAD_BEFORE_TIME): Likewise.
8103         * sysdeps/unix/sysv/linux/hppa/bits/sem-pad.h
8104         (__SEM_PAD_BEFORE_TIME): Likewise.
8105         * sysdeps/unix/sysv/linux/hppa/bits/shm-pad.h
8106         (__SHM_PAD_BEFORE_TIME, __SHM_PAD_BETWEEN_TIME_AND_SEGSZ): Likewise.
8107         * sysdeps/unix/sysv/linux/mips/bits/msq-pad.h
8108         (__MSQ_PAD_AFTER_TIME, __MSQ_PAD_BEFORE_TIME): Likewise.
8109         * sysdeps/unix/sysv/linux/powerpc/bits/msq-pad.h
8110         (__MSQ_PAD_BEFORE_TIME): Likewise.
8111         * sysdeps/unix/sysv/linux/powerpc/bits/sem-pad.h
8112         (__SEM_PAD_BEFORE_TIME): Likewise.
8113         * sysdeps/unix/sysv/linux/powerpc/bits/shm-pad.h
8114         (__SHM_PAD_BEFORE_TIME, __SHM_PAD_BETWEEN_TIME_AND_SEGSZ): Likewise.
8115         * sysdeps/unix/sysv/linux/sparc/bits/msq-pad.h
8116         (__MSQ_PAD_BEFORE_TIME): Likewise.
8117         * sysdeps/unix/sysv/linux/sparc/bits/sem-pad.h
8118         (__SEM_PAD_BEFORE_TIME): Likewise.
8119         * sysdeps/unix/sysv/linux/sparc/bits/shm-pad.h
8120         (__SHM_PAD_BEFORE_TIME): Likewise.
8121         * sysdeps/unix/sysv/linux/x86/bits/msq-pad.h: Delete file.
8122         * sysdeps/unix/sysv/linux/x86/bits/shm-pad.h: Likewise.
8123         * sysdeps/unix/sysv/linux/x86/bits/timesize.h: New file.
8125 2018-10-24  H.J. Lu  <hongjiu.lu@intel.com>
8127         * benchtests/Makefile (CPPFLAGS-nonlib): Add -DUSE_RDTSCP if
8128         USE_RDTSCP is defined.
8129         * sysdeps/x86/hp-timing.h (HP_TIMING_NOW): Use RDTSCP if
8130         USE_RDTSCP is defined.
8132 2018-10-23  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
8134         * misc/tst-preadvwritev2-common.c (IOV_MAX): Define if not
8135         defined.
8137         [BZ #23709]
8138         * sysdeps/x86/cpu-features.c (init_cpu_features): Set TSX bits
8139         independently of other flags.
8141 2018-10-23  Florian Weimer  <fweimer@redhat.com>
8143         * time/tst-mktime2.c (N_STRINGS): Remove.
8144         (set_timezone): New function.
8145         (spring_forward_gap): Call it.  Use FAIL_EXIT1.
8146         (mktime_test1): Report localtime failure and check errno value.
8147         Use TEST_COMPARE.
8148         (irix_6_4_bug, bigtime_test): Use TEST_COMPARE.
8149         (do_test): Remove alarm call. Use set_timezone and array_length.
8151 2018-10-23  Andreas Schwab  <schwab@suse.de>
8153         * sysdeps/unix/sysv/linux/riscv/setcontext.S (__setcontext)
8154         (__start_context): Use END instead of PSEUDO_END.
8156 2018-10-22  Joseph Myers  <joseph@codesourcery.com>
8158         * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
8159         version to 4.19.
8161         * scripts/build-many-glibcs.py (Context.checkout): Default Linux
8162         version to 4.19.
8164         [BZ #23793]
8165         * wcsmbs/c32rtomb.c: New file.
8166         * wcsmbs/mbrtoc32.c: Likewise.
8167         * wcsmbs/tst-c32-state.c: Likewise.
8168         * wcsmbs/mbrtowc.c (mbrtoc32): Do not define as alias.
8169         * wcsmbs/wcrtomb.c (c32rtomb): Likewise.
8170         * wcsmbs/Makefile (routines): Add mbrtoc32 and c32rtomb.
8171         (tests): Add tst-c32-state.
8172         [$(run-built-tests) = yes] ($(objpfx)tst-c32-state.out): Depend on
8173         $(gen-locales).
8175 2018-10-21  H.J. Lu  <hongjiu.lu@intel.com>
8177         * sysdeps/x86/hp-timing.h: Don't include <x86intrin.h>.
8178         (HP_TIMING_NOW): Replace _rdtsc with __builtin_ia32_rdtsc.
8180 2018-10-19  Joseph Myers  <joseph@codesourcery.com>
8182         [BZ #23794]
8183         * wcsmbs/c16rtomb.c (c16rtomb): Save first character of surrogate
8184         pair and return 0 in that case, and use saved character to
8185         interpret following character.
8186         * wcsmbs/tst-c16-surrogate.c: New file.
8187         * wcsmbs/Makefile (tests): Add tst-c16-surrogate.c.
8188         [$(run-built-tests) = yes] ($(objpfx)tst-c16-surrogate.out):
8189         Depend on $(gen-locales)
8191 2018-10-19  Ilya Yu. Malakhov  <malakhov@mcst.ru>
8193         [BZ #23562]
8194         * sysdeps/unix/sysv/linux/bits/types/siginfo_t.h
8195         (struct siginfo_t): Use correct type for si_band.
8197 2018-10-19  Florian Weimer  <fweimer@redhat.com>
8199         [BZ #23689]
8200         * resource/bits/types/struct_rusage.h (struct rusage): Update
8201         comment on struct.  Remove extraneous field comment.
8203 2018-10-18  David S. Miller  <davem@davemloft.net>
8205         * sysdeps/unix/sysv/linux/sparc/init-first.c: New file.
8206         * sysdeps/unix/sysv/linux/sparc/libc-vdso.h: New file.
8207         * sysdeps/unix/sysv/linux/sparc/Makefile: Add dl-vdso to
8208         sysdep_routines in subdir elf.
8209         * sysdeps/unix/sysv/linux/sparc/Versions: Add GLIBC_PRIVATE
8210         version for __vdso_clock_gettime.
8211         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_VSYSCALL_CALL):
8212         Define.
8213         (HAVE_CLOCK_GETTIME_VSYSCALL): Define.
8214         (HAVE_GETTIMEOFDAY_VSYSCALL): Define.
8216         * sysdeps/sparc/fpu/libm-test-ulps: Regenerated.
8218 2018-10-17  H.J. Lu  <hongjiu.lu@intel.com>
8220         * sysdeps/i386/init-arch.h: Removed.
8221         * sysdeps/i386/i586/init-arch.h: Likewise.
8222         * sysdeps/i386/i686/init-arch.h: Likewise.
8223         * sysdeps/i386/i686/hp-timing.h: Likewise.
8224         * sysdeps/x86_64/hp-timing.h: Likewise.
8225         * sysdeps/i386/isa.h: New file.
8226         * sysdeps/i386/i586/isa.h: Likewise.
8227         * sysdeps/i386/i686/isa.h: Likewise.
8228         * sysdeps/x86_64/isa.h: Likewise.
8229         * sysdeps/x86/hp-timing.h: New file.
8230         * sysdeps/x86/init-arch.h: Include <isa.h>.
8232 2018-10-17  Joseph Myers  <joseph@codesourcery.com>
8234         * math/libm-test-pow.inc (pow_test_data): Do not allow
8235         divide-by-zero exception for pow(+/- 0, -Inf).
8237 2018-10-17  Zack Weinberg  <zackw@panix.com>
8239         * manual/job.texi (Job Control is Optional): Remove node, as
8240         job control has not been optional in quite some time.
8241         (Job Control): Mention briefly that systems older than
8242         POSIX.1-2001 might not support job control.
8243         * manual/conf.texi (_POSIX_JOB_CONTROL): Will always be
8244         defined on systems conforming to POSIX.1-2001.
8246 2018-10-17  Arjun Shankar  <arjun@redhat.com>
8248         [BZ #22062]
8249         * iconv/gconv_conf.c (__gconv_get_path): Remove locking and fix
8250         indentation.
8251         * (__gconv_read_conf): Mark function static.
8252         * (once): New static variable.
8253         * (__gconv_load_conf): New function.
8254         * iconv/gconv_int.h (__gconv_load_conf): Likewise.
8255         * iconv/gconv_db.c (once): Remove static variable.
8256         * (__gconv_compare_alias): Use __gconv_load_conf instead of
8257         __gconv_read_conf.
8258         * (__gconv_find_transform): Likewise.
8259         * iconv/tst-iconv-mt.c: New test.
8260         * iconv/Makefile: Add tst-iconv_mt.
8262 2018-10-17  Joseph Myers  <joseph@codesourcery.com>
8264         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
8265         bits/shm-pad.h.
8266         * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/shm-pad.h>.
8267         (shmatt_t): Define as __syscall_ulong_t.
8268         (__SHM_PAD_TIME): New macro, depending on [__SHM_PAD_BEFORE_TIME]
8269         and [__SHM_PAD_AFTER_TIME].
8270         (struct shmid_ds): Define time fields using __SHM_PAD_TIME.
8271         Define shm_segsz and associated padding based on
8272         [__SHM_SEGSZ_AFTER_TIME] and [__SHM_PAD_BETWEEN_TIME_AND_SEGSZ].
8273         Use __syscall_ulong_t instead of unsigned long int.
8274         [__USE_MISC] (struct shminfo): Use __syscall_ulong_t instead of
8275         unsigned long int.
8276         [__USE_MISC] (struct shm_info): Likewise.
8277         * sysdeps/unix/sysv/linux/bits/shm-pad.h: New file.
8278         * sysdeps/unix/sysv/linux/hppa/bits/shm-pad.h: Likewise.
8279         * sysdeps/unix/sysv/linux/mips/bits/shm-pad.h: Likewise.
8280         * sysdeps/unix/sysv/linux/powerpc/bits/shm-pad.h: Likewise.
8281         * sysdeps/unix/sysv/linux/sparc/bits/shm-pad.h: Likewise.
8282         * sysdeps/unix/sysv/linux/x86/bits/shm-pad.h: Likewise.
8283         * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Remove.
8284         * sysdeps/unix/sysv/linux/mips/bits/shm.h: Likewise.
8285         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
8286         * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
8287         * sysdeps/unix/sysv/linux/x86/bits/shm.h: Likewise.
8289         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
8290         bits/shmlba.h.
8291         * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/shmlba.h>.
8292         (SHMLBA): Remove macro.
8293         (__getpagesize): Remove function declaration.
8294         * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Include
8295         <bits/shmlba.h>.
8296         (SHMLBA): Remove macro.
8297         * sysdeps/unix/sysv/linux/mips/bits/shm.h: Include
8298         <bits/shmlba.h>.
8299         (SHMLBA): Remove macro.
8300         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Include
8301         <bits/shmlba.h>.
8302         (SHMLBA): Remove macro.
8303         (__getpagesize): Remove function declaration.
8304         * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Include
8305         <bits/shmlba.h>.
8306         (SHMLBA): Remove macro.
8307         (__getshmlba): Remove function declaration.
8308         * sysdeps/unix/sysv/linux/x86/bits/shm.h: Include <bits/shmlba.h>.
8309         (SHMLBA): Remove macro.
8310         (__getpagesize): Remove function declaration.
8311         * sysdeps/unix/sysv/linux/arm/bits/shm.h: Remove file.
8312         * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
8313         * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
8314         * sysdeps/unix/sysv/linux/bits/shmlba.h: New file.
8315         * sysdeps/unix/sysv/linux/arm/bits/shmlba.h: Likewise.
8316         * sysdeps/unix/sysv/linux/hppa/bits/shmlba.h: Likewise.
8317         * sysdeps/unix/sysv/linux/ia64/bits/shmlba.h: Likewise.
8318         * sysdeps/unix/sysv/linux/mips/bits/shmlba.h: Likewise.
8319         * sysdeps/unix/sysv/linux/sh/bits/shmlba.h: Likewise.
8320         * sysdeps/unix/sysv/linux/sparc/bits/shmlba.h: Likewise.
8322 2018-10-17  Stefan Liebler  <stli@linux.ibm.com>
8324         [BZ #23275]
8325         * nptl/tst-mutex10.c: New File.
8326         * nptl/Makefile (tests): Add tst-mutex10.
8327         (tst-mutex10-ENV): New variable.
8328         * sysdeps/unix/sysv/linux/s390/force-elision.h: (FORCE_ELISION):
8329         Ensure that elision path is used if elision is available.
8330         * sysdeps/unix/sysv/linux/powerpc/force-elision.h (FORCE_ELISION):
8331         Likewise.
8332         * sysdeps/unix/sysv/linux/x86/force-elision.h: (FORCE_ELISION):
8333         Likewise.
8334         * nptl/pthreadP.h (PTHREAD_MUTEX_TYPE, PTHREAD_MUTEX_TYPE_ELISION)
8335         (PTHREAD_MUTEX_PSHARED): Use atomic_load_relaxed.
8336         * nptl/pthread_mutex_consistent.c (pthread_mutex_consistent): Likewise.
8337         * nptl/pthread_mutex_getprioceiling.c (pthread_mutex_getprioceiling):
8338         Likewise.
8339         * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full)
8340         (__pthread_mutex_cond_lock_adjust): Likewise.
8341         * nptl/pthread_mutex_setprioceiling.c (pthread_mutex_setprioceiling):
8342         Likewise.
8343         * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Likewise.
8344         * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock): Likewise.
8345         * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full): Likewise.
8346         * sysdeps/nptl/bits/thread-shared-types.h (struct __pthread_mutex_s):
8347         Add comments.
8348         * nptl/pthread_mutex_destroy.c (__pthread_mutex_destroy):
8349         Use atomic_load_relaxed and atomic_store_relaxed.
8350         * nptl/pthread_mutex_init.c (__pthread_mutex_init):
8351         Use atomic_store_relaxed.
8353 2018-10-17  Andreas Schwab  <schwab@suse.de>
8355         * benchtests/bench-strtod.c (TIMEOUT): Don't define.
8356         * crypt/badsalttest.c (TIMEOUT): Likewise.
8357         * crypt/sha256c-test.c (TIMEOUT): Likewise.
8358         * dirent/tst-fdopendir.c (TIMEOUT): Likewise.
8359         * io/test-lfs.c (TIMEOUT): Likewise.
8360         * libio/tst-atime.c (TIMEOUT): Likewise.
8361         * localedata/tst-leaks.c (TIMEOUT): Likewise.
8362         * nptl/tst-cancel19.c (TIMEOUT): Likewise.
8363         * nptl/tst-cancel22.c (TIMEOUT): Likewise.
8364         * nptl/tst-cancel25.c (TIMEOUT): Likewise.
8365         * nptl/tst-cancel7.c (TIMEOUT): Likewise.
8366         * nptl/tst-cond-except.c (TIMEOUT): Likewise.
8367         * nptl/tst-cond11.c (TIMEOUT): Likewise.
8368         * nptl/tst-cond14.c (TIMEOUT): Likewise.
8369         * nptl/tst-cond15.c (TIMEOUT): Likewise.
8370         * nptl/tst-cond24.c (TIMEOUT): Likewise.
8371         * nptl/tst-cond25.c (TIMEOUT): Likewise.
8372         * nptl/tst-kill2.c (TIMEOUT): Likewise.
8373         * nptl/tst-kill3.c (TIMEOUT): Likewise.
8374         * nptl/tst-mutex4.c (TIMEOUT): Likewise.
8375         * nptl/tst-mutex5.c (TIMEOUT): Likewise.
8376         * nptl/tst-mutex9.c (TIMEOUT): Likewise.
8377         * nptl/tst-once2.c (TIMEOUT): Likewise.
8378         * nptl/tst-once3.c (TIMEOUT): Likewise.
8379         * nptl/tst-once4.c (TIMEOUT): Likewise.
8380         * nptl/tst-robust8.c (TIMEOUT): Likewise.
8381         * nptl/tst-robust9.c (TIMEOUT): Likewise.
8382         * nptl/tst-rwlock16.c (TIMEOUT): Likewise.
8383         * nptl/tst-sem14.c (TIMEOUT): Likewise.
8384         * nptl/tst-sem6.c (TIMEOUT): Likewise.
8385         * nptl/tst-signal3.c (TIMEOUT): Likewise.
8386         * nptl/tst-spin4.c (TIMEOUT): Likewise.
8387         * nptl/tst-tls3.c (TIMEOUT): Likewise.
8388         * nptl/tst-tls4.c (TIMEOUT): Likewise.
8389         * posix/tst-chmod.c (TIMEOUT): Likewise.
8390         * posix/tst-getaddrinfo4.c (TIMEOUT): Likewise.
8391         * posix/tst-getaddrinfo5.c (TIMEOUT): Likewise.
8392         * posix/tst-preadwrite-common.c (TIMEOUT): Likewise.
8393         * posix/tst-regex2.c (TIMEOUT): Likewise.
8394         * posix/tst-waitid.c (TIMEOUT): Likewise.
8395         * rt/tst-aio.c (TIMEOUT): Likewise.
8396         * rt/tst-aio10.c (TIMEOUT): Likewise.
8397         * rt/tst-aio4.c (TIMEOUT): Likewise.
8398         * rt/tst-aio5.c (TIMEOUT): Likewise.
8399         * rt/tst-aio6.c (TIMEOUT): Likewise.
8400         * rt/tst-aio64.c (TIMEOUT): Likewise.
8401         * rt/tst-aio7.c (TIMEOUT): Likewise.
8402         * rt/tst-aio9.c (TIMEOUT): Likewise.
8403         * rt/tst-clock.c (TIMEOUT): Likewise.
8404         * rt/tst-cpuclock1.c (TIMEOUT): Likewise.
8405         * rt/tst-cpuclock2.c (TIMEOUT): Likewise.
8406         * rt/tst-mqueue2.c (TIMEOUT): Likewise.
8407         * rt/tst-mqueue4.c (TIMEOUT): Likewise.
8408         * rt/tst-mqueue5.c (TIMEOUT): Likewise.
8409         * rt/tst-timer4.c (TIMEOUT): Likewise.
8410         * stdio-common/tst-fseek.c (TIMEOUT): Likewise.
8411         * stdio-common/tst-rndseek.c (TIMEOUT): Likewise.
8412         * stdlib/tst-empty-env.c (TIMEOUT): Likewise.
8413         * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Likewise.
8414         * time/tst-ftime.c (TIMEOUT): Likewise.
8415         * timezone/tst-tzset.c (TIMEOUT): Likewise.
8417 2018-10-16  Anton Youdkevitch  <anton.youdkevitch@bell-sw.com>
8419         * sysdeps/aarch64/multiarch/memcpy_thunderx.S: Remove thunderx2 code.
8420         * sysdeps/aarch64/multiarch/memcpy_thunderx2.S: New implementation
8421         for thunderX2.
8423 2018-10-15  Joseph Myers  <joseph@codesourcery.com>
8425         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
8426         bits/sem-pad.h.
8427         * sysdeps/unix/sysv/linux/bits/sem.h: Include <bits/sem-pad.h>
8428         instead of <bits/wordsize.h>.
8429         (__SEM_PAD_TIME): New macro, depending on [__SEM_PAD_BEFORE_TIME]
8430         and [__SEM_PAD_AFTER_TIME].
8431         (struct semid_ds): Define time fields using __SEM_PAD_TIME.  Use
8432         __syscall_ulong_t instead of unsigned long int.
8433         * sysdeps/unix/sysv/linux/bits/sem-pad.h: New file.
8434         * sysdeps/unix/sysv/linux/hppa/bits/sem-pad.h: Likewise.
8435         * sysdeps/unix/sysv/linux/mips/bits/sem-pad.h: Likewise.
8436         * sysdeps/unix/sysv/linux/powerpc/bits/sem-pad.h: Likewise.
8437         * sysdeps/unix/sysv/linux/sparc/bits/sem-pad.h: Likewise.
8438         * sysdeps/unix/sysv/linux/x86/bits/sem-pad.h: Likewise.
8439         * sysdeps/unix/sysv/linux/hppa/bits/sem.h: Remove.
8440         * sysdeps/unix/sysv/linux/mips/bits/sem.h: Likewise.
8441         * sysdeps/unix/sysv/linux/powerpc/bits/sem.h: Likewise.
8442         * sysdeps/unix/sysv/linux/sparc/bits/sem.h: Likewise.
8443         * sysdeps/unix/sysv/linux/x86/bits/sem.h: Likewise.
8445 2018-10-14  Paul Eggert  <eggert@cs.ucla.edu>
8447         regex: simplify by using intprops.h
8448         [BZ#23744]
8449         * posix/regex_internal.h [_LIBC]: Include intprops.h.
8450         (TYPE_SIGNED, INT_ADD_WRAPV) [_LIBC]: Remove.
8451         intprops.h defines them.
8453         regex: __builtin_expect → __glibc_unlikely
8454         [BZ#23744]
8455         This refactoring was prompted by a problem when the regex code is
8456         used as part of Gnulib and when the builder’s compiler does not grok
8457         __builtin_expect.  Problem reported for Gawk by Nelson H.F. Beebe in:
8458         https://lists.gnu.org/r/bug-gnulib/2018-09/msg00137.html
8459         Although this refactoring does not fix the problem directly,
8460         we might as well have Gawk use the now-preferred glibc style for when
8461         __builtin_expect is unavailable.
8462         * posix/regex_internal.h (BE): Remove.
8463         All uses replaced by __glibc_unlikely or __glibc_likely.
8465 2018-10-11  Joseph Myers  <joseph@codesourcery.com>
8467         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
8468         bits/msq-pad.h.
8469         * sysdeps/unix/sysv/linux/bits/msq.h: Include <bits/msq-pad.h>
8470         instead of <bits/wordsize.h>.
8471         (msgqnum_t): Define as __syscall_ulong_t.
8472         (msglen_t): Likewise.
8473         (__MSQ_PAD_TIME): New macro, depending on [__MSQ_PAD_BEFORE_TIME]
8474         and [__MSQ_PAD_AFTER_TIME].
8475         (struct msqid_ds): Define time fields using __MSQ_PAD_TIME.  Use
8476         __syscall_ulong_t instead of unsigned long int.
8477         * sysdeps/unix/sysv/linux/bits/msq-pad.h: New file.
8478         * sysdeps/unix/sysv/linux/hppa/bits/msq-pad.h: Likewise.
8479         * sysdeps/unix/sysv/linux/mips/bits/msq-pad.h: Likewise.
8480         * sysdeps/unix/sysv/linux/powerpc/bits/msq-pad.h: Likewise.
8481         * sysdeps/unix/sysv/linux/sparc/bits/msq-pad.h: Likewise.
8482         * sysdeps/unix/sysv/linux/x86/bits/msq-pad.h: Likewise.
8483         * sysdeps/unix/sysv/linux/hppa/bits/msq.h: Remove.
8484         * sysdeps/unix/sysv/linux/mips/bits/msq.h: Likewise.
8485         * sysdeps/unix/sysv/linux/powerpc/bits/msq.h: Likewise.
8486         * sysdeps/unix/sysv/linux/sparc/bits/msq.h: Likewise.
8487         * sysdeps/unix/sysv/linux/x86/bits/msq.h: Likewise.
8489 2018-10-10  Joseph Myers  <joseph@codesourcery.com>
8491         * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/wordsize.h>.
8492         (struct shmid_ds): Condition padding after time fields on
8493         [__WORDSIZE == 32].
8494         * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Remove file.
8495         * sysdeps/unix/sysv/linux/generic/bits/shm.h: Likewise.
8496         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
8498         * sysdeps/unix/sysv/linux/bits/sem.h: Include <bits/wordsize.h>.
8499         (struct semid_ds): Condition padding after time fields on
8500         [__WORDSIZE == 32].
8501         * sysdeps/unix/sysv/linux/alpha/bits/sem.h: Remove file.
8502         * sysdeps/unix/sysv/linux/generic/bits/sem.h: Likewise.
8503         * sysdeps/unix/sysv/linux/ia64/bits/sem.h: Likewise.
8504         * sysdeps/unix/sysv/linux/s390/bits/sem.h: Likewise.
8506         * sysdeps/unix/sysv/linux/bits/msq.h: Include <bits/wordsize.h>.
8507         (struct msqid_ds): Condition padding after time fields on
8508         [__WORDSIZE == 32].
8509         * sysdeps/unix/sysv/linux/alpha/bits/msq.h: Remove file.
8510         * sysdeps/unix/sysv/linux/generic/bits/msq.h: Likewise.
8511         * sysdeps/unix/sysv/linux/ia64/bits/msq.h: Likewise.
8512         * sysdeps/unix/sysv/linux/s390/bits/msq.h: Likewise.
8514 2018-10-09  Szabolcs Nagy  <szabolcs.nagy@arm.com>
8516         * nss/tst-nss-files-hosts-multi.c (TIMEOUT): Define.
8518 2018-10-09  Szabolcs Nagy  <szabolcs.nagy@arm.com>
8520         * libio/tst-readline.c (TIMEOUT): Define.
8522 2018-10-08  Paul Eggert  <eggert@cs.ucla.edu>
8524         mktime fix for Gnulib + coreutils
8525         [BZ#23745]
8526         This fix affects only Gnulib.  Problem discovered when
8527         mktime.c was used as part of Gnulib in bleeding-edge Coreutils.
8528         * time/mktime.c:
8529         (my_tzset) [!_LIBC && !NEED_MKTIME_WORKING && !NEED_MKTIME_WINDOWS]:
8530         Do not define since it is not used.  Defining an unused static
8531         function prompts a warning from GCC when Coreutils is configured
8532         with --enable-gcc-warnings.
8534 2018-10-08  Leonardo Sandoval  <leonardo.sandoval.gonzalez@intel.com>
8536         * benchtests/scripts/compare_bench.py (main): set float type on
8537         threshold argument.
8539 2018-10-08  Rafal Luzynski  <digitalfreak@lingonborough.com>
8541         [BZ #23740]
8542         * localedata/locales/kl_GL (mon): Update, the relative case.
8543         (alt_mon): Add, fill with month names in the nominative case.
8544         (d_t_fmt): Set to "%a %b %d %Y %T %Z".
8545         (d_fmt): Set to "%b %d %Y".
8547 2018-10-04  Joseph Myers  <joseph@codesourcery.com>
8549         * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Include
8550         <bits/mman-linux.h>.
8551         (PROT_READ): Don't define here.
8552         (PROT_WRITE): Likewise.
8553         (PROT_EXEC): Likewise.
8554         (PROT_NONE): Likewise.
8555         (PROT_GROWSDOWN): Likewise.
8556         (PROT_GROWSUP): Likewise.
8557         (MAP_SHARED): Likewise.
8558         (MAP_PRIVATE): Likewise.
8559         [__USE_MISC] (MAP_SHARED_VALIDATE): Likewise.
8560         [__USE_MISC] (MAP_FILE): Likewise.
8561         [__USE_MISC] (MAP_ANONYMOUS): Likewise.
8562         [__USE_MISC] (MAP_ANON): Likewise.
8563         [__USE_MISC] (MAP_HUGE_SHIFT): Likewise.
8564         [__USE_MISC] (MAP_HUGE_MASK): Likewise.
8565         (MCL_CURRENT): Likewise.
8566         (MCL_FUTURE): Likewise.
8567         (MCL_ONFAULT): Likewise.
8568         [__USE_MISC] (MADV_NORMAL): Likewise.
8569         [__USE_MISC] (MADV_RANDOM): Likewise.
8570         [__USE_MISC] (MADV_SEQUENTIAL): Likewise.
8571         [__USE_MISC] (MADV_WILLNEED): Likewise.
8572         [__USE_MISC] (MADV_DONTNEED): Likewise.
8573         [__USE_MISC] (MADV_FREE): Likewise.
8574         [__USE_MISC] (MADV_REMOVE): Likewise.
8575         [__USE_MISC] (MADV_DONTFORK): Likewise.
8576         [__USE_MISC] (MADV_DOFORK): Likewise.
8577         [__USE_MISC] (MADV_HWPOISON): Likewise.
8578         [__USE_XOPEN2K] (POSIX_MADV_NORMAL): Likewise.
8579         [__USE_XOPEN2K] (POSIX_MADV_RANDOM): Likewise.
8580         [__USE_XOPEN2K] (POSIX_MADV_SEQUENTIAL): Likewise.
8581         [__USE_XOPEN2K] (POSIX_MADV_WILLNEED): Likewise.
8582         [__USE_XOPEN2K] (POSIX_MADV_DONTNEED): Likewise.
8583         (__MAP_ANONYMOUS): New macro.
8584         [__USE_MISC] (MAP_TYPE): Undefine and redefine after
8585         <bits/mman-linux.h> inclusion.
8586         (MAP_FIXED): Likewise.
8587         (MS_SYNC): Likewise.
8588         (MS_ASYNC): Likewise.
8589         (MS_INVALIDATE): Likewise.
8590         [__USE_MISC] (MADV_MERGEABLE): Likewise.
8591         [__USE_MISC] (MADV_UNMERGEABLE): Likewise.
8592         [__USE_MISC] (MADV_HUGEPAGE): Likewise.
8593         [__USE_MISC] (MADV_NOHUGEPAGE): Likewise.
8594         [__USE_MISC] (MADV_DONTDUMP): Likewise.
8595         [__USE_MISC] (MADV_DODUMP): Likewise.
8596         [__USE_MISC] (MADV_WIPEONFORK): Likewise.
8597         [__USE_MISC] (MADV_KEEPONFORK): Likewise.
8599         [BZ #23735]
8600         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (NO_MATH_REDIRECT):
8601         Define.
8602         * sysdeps/ieee754/ldbl-opt/test-nldbl-redirect.c: New file.
8603         * sysdeps/ieee754/ldbl-opt/Makefile [$(subdir) = math] (tests):
8604         Add test-nldbl-redirect.
8605         [$(subdir) = math] (CFLAGS-test-nldbl-redirect.c): New variable.
8606         [$(subdir) = math] ($(objpfx)test-nldbl-redirect): Depend on
8607         $(objpfx)libnldbl_nonshared.a.
8609 2018-10-04  Stefan Liebler  <stli@linux.ibm.com>
8611         * support/support.h (support_objdir_elf_ldso): New variable.
8612         * support/support_paths.c (support_objdir_elf_ldso): Likewise.
8613         * support/Makefile (CFLAGS-support_paths.c): Add definition
8614         for OBJDIR_ELF_LDSO_PATH.
8615         * support/test-container.c (main): Search for the ld.so
8616         which is also used by the testsuite.
8618 2018-10-02  Rafal Luzynski  <digitalfreak@lingonborough.com>
8620         [BZ #20209]
8621         * localedata/locales/kl_GL: (abday): Fix spelling of Sun (Sunday),
8622         should be "sap" rather than "sab".
8623         (day): Fix spelling of Sunday, should be "sapaat" rather than
8624         "sabaat".
8626 2018-10-02  Joseph Myers  <joseph@codesourcery.com>
8628         * math/libm-test-fma.inc (fma_test_data): Add more tests.
8630 2018-10-02  Martin Jansa  <Martin.Jansa@gmail.com>
8632         [BZ #19444]
8633         * sysdeps/ieee754/soft-fp/s_fdiv.c: Include <libc-diag.h> and use
8634         DIAG_PUSH_NEEDS_COMMENT, DIAG_IGNORE_NEEDS_COMMENT and
8635         DIAG_POP_NEEDS_COMMENT to disable -Wmaybe-uninitialized.
8637 2018-10-02  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
8639         * sysdeps/unix/sysv/linux/fd_to_filename.h: Add missing includes.
8641 2018-10-02  H.J. Lu  <hongjiu.lu@intel.com>
8643         * sysdeps/unix/sysv/linux/x86/Makefile (CFLAGS-elision-lock.c):
8644         Add -mrtm.
8645         (CFLAGS-elision-unlock.c): Likewise.
8646         (CFLAGS-elision-timed.c): Likewise.
8647         (CFLAGS-elision-trylock.c): Likewise.
8648         * sysdeps/unix/sysv/linux/x86/hle.h: Rewritten.
8650 2018-10-02  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
8652         [BZ #21037]
8653         * libio/Makefile (tests): Add tst-memstream4 and tst-wmemstream4.
8654         * libio/freopen.c (freopen): Sync stream before reopen and adjust to
8655         new fd_to_filename interface.
8656         * libio/freopen64.c (freopen64): Likewise.
8657         * libio/tst-memstream.h: New file.
8658         * libio/tst-memstream4.c: Likewise.
8659         * libio/tst-wmemstream4.c: Likewise.
8660         * sysdeps/generic/fd_to_filename.h (fd_to_filename): Change signature.
8661         * sysdeps/unix/sysv/linux/fd_to_filename.h (fd_to_filename): Likewise
8662         and remove internal dynamic allocation.
8664 2018-10-01  Joseph Myers  <joseph@codesourcery.com>
8666         * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_GNU]
8667         (MREMAP_MAYMOVE): Do not define here.
8668         [__USE_GNU] (MREMAP_FIXED): Likewise.
8669         * sysdeps/unix/sysv/linux/bits/mman-shared.h [__USE_GNU]
8670         (MREMAP_MAYMOVE): Define here instead.
8671         [__USE_GNU] (MREMAP_FIXED): Likewise.
8672         * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_GNU]
8673         (MREMAP_MAYMOVE): Remove.
8674         [__USE_GNU] (MREMAP_FIXED): Likewise.
8676 2018-09-28  Joseph Myers  <joseph@codesourcery.com>
8678         * math/fromfp.h: Do not include <math_private.h>.
8679         * math/s_cacosh_template.c: Likewise.
8680         * math/s_casin_template.c: Likewise.
8681         * math/s_casinh_template.c: Likewise.
8682         * math/s_ccos_template.c: Likewise.
8683         * math/s_cproj_template.c: Likewise.
8684         * math/s_fdim_template.c: Likewise.
8685         * math/s_fmaxmag_template.c: Likewise.
8686         * math/s_fminmag_template.c: Likewise.
8687         * math/s_iseqsig_template.c: Likewise.
8688         * math/s_ldexp_template.c: Likewise.
8689         * math/s_nextdown_template.c: Likewise.
8690         * math/w_log1p_template.c: Likewise.
8691         * math/w_scalbln_template.c: Likewise.
8692         * sysdeps/aarch64/fpu/feholdexcpt.c: Likewise.
8693         * sysdeps/aarch64/fpu/fesetround.c: Likewise.
8694         * sysdeps/aarch64/fpu/fgetexcptflg.c: Likewise.
8695         * sysdeps/aarch64/fpu/ftestexcept.c: Likewise.
8696         * sysdeps/aarch64/fpu/s_llrint.c: Likewise.
8697         * sysdeps/aarch64/fpu/s_llrintf.c: Likewise.
8698         * sysdeps/aarch64/fpu/s_lrint.c: Likewise.
8699         * sysdeps/aarch64/fpu/s_lrintf.c: Likewise.
8700         * sysdeps/i386/fpu/s_atanl.c: Likewise.
8701         * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
8702         * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
8703         * sysdeps/i386/fpu/s_fdim.c: Likewise.
8704         * sysdeps/i386/fpu/s_logbl.c: Likewise.
8705         * sysdeps/i386/fpu/s_rintl.c: Likewise.
8706         * sysdeps/i386/fpu/s_significandl.c: Likewise.
8707         * sysdeps/ia64/fpu/s_matherrf.c: Likewise.
8708         * sysdeps/ia64/fpu/s_matherrl.c: Likewise.
8709         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
8710         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
8711         * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
8712         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
8713         * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
8714         * sysdeps/ieee754/k_standardf.c: Likewise.
8715         * sysdeps/ieee754/k_standardl.c: Likewise.
8716         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
8717         * sysdeps/ieee754/ldbl-64-128/s_finitel.c: Likewise.
8718         * sysdeps/ieee754/ldbl-64-128/s_fpclassifyl.c: Likewise.
8719         * sysdeps/ieee754/ldbl-64-128/s_isinfl.c: Likewise.
8720         * sysdeps/ieee754/ldbl-64-128/s_isnanl.c: Likewise.
8721         * sysdeps/ieee754/ldbl-64-128/s_signbitl.c: Likewise.
8722         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
8723         * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
8724         * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
8725         * sysdeps/ieee754/s_signgam.c: Likewise.
8726         * sysdeps/powerpc/power5+/fpu/s_modf.c: Likewise.
8727         * sysdeps/powerpc/power5+/fpu/s_modff.c: Likewise.
8728         * sysdeps/powerpc/power7/fpu/s_logbf.c: Likewise.
8729         * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
8730         * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
8731         * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
8732         * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
8733         * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
8734         * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
8735         * sysdeps/riscv/rvd/s_finite.c: Likewise.
8736         * sysdeps/riscv/rvd/s_fmax.c: Likewise.
8737         * sysdeps/riscv/rvd/s_fmin.c: Likewise.
8738         * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
8739         * sysdeps/riscv/rvd/s_isinf.c: Likewise.
8740         * sysdeps/riscv/rvd/s_isnan.c: Likewise.
8741         * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
8742         * sysdeps/riscv/rvf/fegetround.c: Likewise.
8743         * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
8744         * sysdeps/riscv/rvf/fesetenv.c: Likewise.
8745         * sysdeps/riscv/rvf/fesetround.c: Likewise.
8746         * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
8747         * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
8748         * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
8749         * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
8750         * sysdeps/riscv/rvf/s_finitef.c: Likewise.
8751         * sysdeps/riscv/rvf/s_floorf.c: Likewise.
8752         * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
8753         * sysdeps/riscv/rvf/s_fminf.c: Likewise.
8754         * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
8755         * sysdeps/riscv/rvf/s_isinff.c: Likewise.
8756         * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
8757         * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
8758         * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
8759         * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
8760         * sysdeps/riscv/rvf/s_roundf.c: Likewise.
8761         * sysdeps/riscv/rvf/s_truncf.c: Likewise.
8762         * sysdeps/riscv/rv64/rvd/s_rint.c: Include <stdbool.h> instead of
8763         <math_private.h>.
8764         * sysdeps/riscv/rvf/s_rintf.c: Likewise.
8766 2018-09-28  H.J. Lu  <hongjiu.lu@intel.com>
8768         [BZ #23716]
8769         * sysdeps/i386/dl-cet.c: Removed.
8770         * sysdeps/i386/dl-machine.h (_dl_runtime_resolve_shstk): New
8771         prototype.
8772         (_dl_runtime_profile_shstk): Likewise.
8773         (elf_machine_runtime_setup): Use _dl_runtime_profile_shstk or
8774         _dl_runtime_resolve_shstk if SHSTK is enabled by kernel.
8776 2018-09-28  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
8778         [BZ #23579]
8779         * misc/tst-preadvwritev2-common.c (do_test_with_invalid_fd,
8780         do_test_with_invalid_iov): New tests.
8781         * misc/tst-preadvwritev2.c, misc/tst-preadvwritev64v2.c (do_test):
8782         Call do_test_with_invalid_fd and do_test_with_invalid_iov.
8783         * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Use fallback code iff
8784         errno is ENOSYS.
8785         * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
8786         * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
8787         * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likewise.
8789 2018-09-27  Joseph Myers  <joseph@codesourcery.com>
8791         * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
8792         __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT]
8793         (MATH_REDIRECT_BINARY_ARGS): New macro.
8794         [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
8795         && !NO_MATH_REDIRECT] (copysign): Redirect using MATH_REDIRECT.
8796         * sysdeps/alpha/fpu/s_copysign.c: Define NO_MATH_REDIRECT before
8797         header inclusion.
8798         * sysdeps/alpha/fpu/s_copysignf.c: Likewise.
8799         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
8800         * sysdeps/ieee754/float128/s_copysignf128.c: Likewise.
8801         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
8802         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
8803         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
8804         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
8805         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
8806         Likewise.
8807         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c:
8808         Likewise.
8809         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Likewise.
8810         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: Likewise.
8811         * sysdeps/riscv/rvd/s_copysign.c: Likewise.
8812         * sysdeps/riscv/rvf/s_copysignf.c: Likewise.
8813         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c:
8814         Likewise.
8815         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.c:
8816         Likewise.
8817         * sysdeps/generic/math_private_calls.h
8818         [!__MATH_DECLARING_LONG_DOUBLE || !NO_LONG_DOUBLE] (__copysign):
8819         Do not declare and define as an inline function.
8820         * math/divtc3.c (__divtc3): Use copysign functions instead of
8821         __copysign variants.
8822         * math/multc3.c (__multc3): Likewise.
8823         * sysdeps/generic/math-type-macros.h (M_COPYSIGN): Likewise.
8824         * sysdeps/ieee754/dbl-64/e_atan2.c (signArctan2): Likewise.
8825         * sysdeps/ieee754/dbl-64/e_atanh.c (__ieee754_atanh): Likewise.
8826         * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
8827         Likewise.
8828         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
8829         (__ieee754_yn): Likewise.
8830         * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
8831         * sysdeps/ieee754/dbl-64/s_atan.c (__signArctan): Likewise.
8832         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): Likewise.
8833         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
8834         * sysdeps/ieee754/dbl-64/s_sin.c (do_sin): Likewise.
8835         (__sin): Likewise.
8836         * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
8837         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
8838         Likewise.
8839         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
8840         Likewise.
8841         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
8842         Likewise.
8843         * sysdeps/ieee754/flt-32/e_atanhf.c (__ieee754_atanhf): Likewise.
8844         * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
8845         Likewise.
8846         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise.
8847         (__ieee754_ynf): Likewise.
8848         * sysdeps/ieee754/flt-32/s_asinhf.c (__asinhf): Likewise.
8849         * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
8850         * sysdeps/ieee754/k_standard.c (__kernel_standard): Likewise.
8851         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
8852         Likewise.
8853         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
8854         (__ieee754_ynl): Likewise.
8855         * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
8856         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
8857         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
8858         Likewise.
8859         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
8860         (__ieee754_ynl): Likewise.
8861         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c (__fmal): Likewise.
8862         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
8863         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
8864         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
8865         Likewise.
8866         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
8867         (__ieee754_ynl)
8868         * sysdeps/ieee754/ldbl-96/s_asinhl.c (__asinhl): Likewise.
8869         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
8870         * sysdeps/ieee754/ldbl-opt/nldbl-copysign.c (copysignl): Likewise.
8871         * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
8872         * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
8874         * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
8875         __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (round): Redirect
8876         using MATH_REDIRECT.
8877         * sysdeps/aarch64/fpu/s_round.c: Define NO_MATH_REDIRECT before
8878         header inclusion.
8879         * sysdeps/aarch64/fpu/s_roundf.c: Likewise.
8880         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
8881         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
8882         * sysdeps/ieee754/float128/s_roundf128.c: Likewise.
8883         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
8884         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
8885         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
8886         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c: Likewise.
8887         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c: Likewise.
8888         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: Likewise.
8889         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Likewise.
8890         * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
8891         * sysdeps/riscv/rvf/s_roundf.c: Likewise.
8892         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
8893         (round): Redirect to __round.
8894         (__roundl): Call round instead of __round.
8895         * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__round):
8896         Remove macro.
8897         [_ARCH_PWR5X] (__roundf): Likewise.
8898         * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Use round
8899         functions instead of __round variants.
8900         * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
8901         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive):
8902         Likewise.
8903         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive):
8904         Likewise.
8905         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive):
8906         Likewise.
8907         * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Likewise.
8908         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lroundl): Redirect to
8909         __lroundl.
8910         (__ieee754_expl): Call roundl instead of __roundl.
8912 2018-09-27  Andreas Schwab  <schwab@suse.de>
8914         [BZ #23717]
8915         * stdlib/tst-setcontext9.c (f1a): Make st2 static.
8916         (do_test): Make st1 static.
8918 2018-09-26  Andreas Schwab  <schwab@suse.de>
8920         [BZ #23707]
8921         * sysdeps/powerpc/powerpc32/dl-start.S: Add unwind information.
8922         * elf/Makefile (tests): Add tst-unwind-ctor.
8923         (modules-names): Add tst-unwind-ctor-lib.
8924         ($(objpfx)tst-unwind-ctor): Depend on
8925         $(objpfx)tst-unwind-ctor-lib.so.
8927 2018-09-26  Joseph Myers  <joseph@codesourcery.com>
8929         * sysdeps/unix/sysv/linux/bits/mman-map-flags-generic.h: New
8930         file.  Most contents moved from ....
8931         * sysdeps/unix/sysv/linux/bits/mman.h: ... here.  Move contents to
8932         and include <bits/mman-map-flags-generic.h>.
8933         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
8934         (sysdep_headers): Add bits/mman-map-flags-generic.h.
8935         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Include
8936         <bits/mman-map-flags-generic.h>.
8937         [__USE_MISC] (MAP_GROWSUP): Only define this macro, not other
8938         macros defined in <bits/mman-map-flags-generic.h>.
8939         * sysdeps/unix/sysv/linux/x86/bits/mman.h: Include
8940         <bits/mman-map-flags-generic.h>.
8941         [__USE_MISC] (MAP_32BIT): Only define this macro, not other macros
8942         defined in <bits/mman-map-flags-generic.h>.
8944 2018-09-26  Andreas Schwab  <schwab@suse.de>
8946         * Makefile ($(common-objpfx)testrun.sh): Remove leading space from
8947         output.
8949 2018-09-25  Adam J. Richte  <adam_richter2004@yahoo.com>
8950             Adhemerval Zanella  <adhemerval.zanella@linaro.org>
8951             Fangrui Song  <maskray@google.com>
8953         [BZ #20480]
8954         * config.make.in (have-textrel_ifunc): New define.
8955         * configure.ac: Add check if linker supports textrel relocation with
8956         ifunc.
8957         * elf/Makefile [have-textrel_ifunc == yes] (ifunc-pie-tests): Add
8958         tst-ifunc-textrel.
8959         (CFLAGS-tst-ifunc-textrel.c): New rule.
8960         * elf/dl-reloc.c (_dl_relocate_object): Use all required flags on
8961         DT_TEXTREL segments, not only PROT_READ and PROT_WRITE.
8962         * elf/tst-ifunc-textrel.c: New file.
8964 2018-09-25  Joseph Myers  <joseph@codesourcery.com>
8966         * sysdeps/unix/sysv/linux/sys/procfs.h: Include
8967         <bits/procfs-prregset.h>.
8968         (prgregset_t): Define using __prgregset_t.
8969         (prfpregset_t): Define using __prfpregset_t.
8970         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
8971         (sysdep_headers): Add bits/procfs-prregset.h.
8972         * sysdeps/unix/sysv/linux/bits/procfs-prregset.h: New file.
8973         * sysdeps/unix/sysv/linux/alpha/bits/procfs-prregset.h: Likewise.
8974         * sysdeps/unix/sysv/linux/alpha/bits/procfs.h: Likewise.
8975         * sysdeps/unix/sysv/linux/alpha/sys/procfs.h: Remove file.
8977         * sysdeps/unix/sysv/linux/sys/procfs.h: Include
8978         <bits/procfs-id.h> and <bits/procfs-extra.h>.
8979         (struct elf_prpsinfo): Use __pr_uid_t and __pr_gid_t as types of
8980         pr_uid and pr_gid.
8981         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
8982         (sysdep_headers): Add bits/procfs-id.h and bits/procfs-extra.h.
8983         * sysdeps/unix/sysv/linux/bits/procfs-extra.h: New file.
8984         * sysdeps/unix/sysv/linux/bits/procfs-id.h: Likewise.
8985         * sysdeps/unix/sysv/linux/arm/bits/procfs-id.h: Likewise.
8986         * sysdeps/unix/sysv/linux/arm/bits/procfs.h: Likewise.
8987         * sysdeps/unix/sysv/linux/m68k/bits/procfs-id.h: Likewise.
8988         * sysdeps/unix/sysv/linux/m68k/bits/procfs.h: Likewise.
8989         * sysdeps/unix/sysv/linux/s390/bits/procfs-extra.h: Likewise.
8990         * sysdeps/unix/sysv/linux/s390/bits/procfs-id.h: Likewise.
8991         * sysdeps/unix/sysv/linux/s390/bits/procfs.h: Likewise.
8992         * sysdeps/unix/sysv/linux/sh/bits/procfs-id.h: Likewise.
8993         * sysdeps/unix/sysv/linux/sh/bits/procfs.h: Likewise.
8994         * sysdeps/unix/sysv/linux/sparc/bits/procfs-extra.h: Likewise.
8995         * sysdeps/unix/sysv/linux/sparc/bits/procfs-id.h: Likewise.
8996         * sysdeps/unix/sysv/linux/sparc/bits/procfs.h: Likewise.
8997         * sysdeps/unix/sysv/linux/x86/bits/procfs-id.h: Likewise.
8998         * sysdeps/unix/sysv/linux/x86/bits/procfs.h: Likewise.
8999         * sysdeps/unix/sysv/linux/arm/sys/procfs.h: Remove file.
9000         * sysdeps/unix/sysv/linux/m68k/sys/procfs.h: Likewise.
9001         * sysdeps/unix/sysv/linux/s390/sys/procfs.h: Likewise.
9002         * sysdeps/unix/sysv/linux/sh/sys/procfs.h: Likewise.
9003         * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Likewise.
9004         * sysdeps/unix/sysv/linux/x86/sys/procfs.h: Likewise.
9006         * sysdeps/unix/sysv/linux/sys/procfs.h: Replace with file based on
9007         AArch64 version.  Include <bits/procfs.h>.
9008         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
9009         (sysdep_headers): Add bits/procfs.h.
9010         * sysdeps/unix/sysv/linux/bits/procfs.h: New file.
9011         * sysdeps/unix/sysv/linux/aarch64/bits/procfs.h: Likewise.
9012         * sysdeps/unix/sysv/linux/hppa/bits/procfs.h: Likewise.
9013         * sysdeps/unix/sysv/linux/ia64/bits/procfs.h: Likewise.
9014         * sysdeps/unix/sysv/linux/microblaze/bits/procfs.h: Likewise.
9015         * sysdeps/unix/sysv/linux/mips/bits/procfs.h: Likewise.
9016         * sysdeps/unix/sysv/linux/nios2/bits/procfs.h: Likewise.
9017         * sysdeps/unix/sysv/linux/powerpc/bits/procfs.h: Likewise.
9018         * sysdeps/unix/sysv/linux/riscv/bits/procfs.h: Likewise.
9019         * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Remove file.
9020         * sysdeps/unix/sysv/linux/hppa/sys/procfs.h: Likewise.
9021         * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Likewise.
9022         * sysdeps/unix/sysv/linux/microblaze/sys/procfs.h: Likewise.
9023         * sysdeps/unix/sysv/linux/mips/sys/procfs.h: Likewise.
9024         * sysdeps/unix/sysv/linux/nios2/sys/procfs.h: Likewise.
9025         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: Likewise.
9026         * sysdeps/unix/sysv/linux/riscv/sys/procfs.h: Likewise.
9028 2018-09-25  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
9030         * posix/tst-spawn.c (do_prepare, handle_restart, do_test):
9031         Use libsupport.
9033 2018-09-25  Arjun Shankar  <arjun@redhat.com>
9035         * iconv/gconv_int.h (__gconv_path_elem): Remove.
9036         (__gconv_max_path_elem_len): Likewise.
9037         (__gconv_nmodules): Likewise.
9038         (__gconv_get_path): Likewise.
9039         (path_elem): Move to ...
9040         * iconv/gconv_conf.c: ... here.
9041         (__gconv_get_path): Mark function static.
9042         * iconv/gconv_int.h (GCONV_NCHAR_GOAL): Move to ...
9043         * iconv/gconv_open.c: ... here.
9045 2018-09-24  Andreas Schwab  <schwab@suse.de>
9047         * scripts/haveversions.awk: New file.
9048         * Makerules ($(common-objpfx)Versions.def)
9049         ($(common-objpfx)Versions.all, $(common-objpfx)Versions.v.i)
9050         ($(common-objpfx)sysd-versions, $(common-objpfx)versions.stmp):
9051         Move rules ...
9052         * Makeconfig ($(common-objpfx)Versions.def)
9053         ($(common-objpfx)Versions.all, $(common-objpfx)Versions.v.i)
9054         ($(common-objpfx)sysd-versions, $(common-objpfx)versions.stmp):
9055         ... here.
9056         ($(common-objpfx)Versions.mk): New rule.  Include it.
9057         * nis/Makefile [!have-GLIBC_2.28]: Don't build any targets.
9058         Emit error if build-obsolete-nsl = yes.
9059         * manual/install.texi (Configuring and compiling): Describe
9060         --enable-obsolete-nsl as unavaiable after version 2.28.
9061         * INSTALL: Regenerate.
9063 2018-09-21  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
9065         * NEWS: Add note about new TLE support on powerpc64le.
9066         * sysdeps/powerpc/nptl/tcb-offsets.sym (TM_CAPABLE): Remove.
9067         * sysdeps/powerpc/nptl/tls.h (tcbhead_t): Rename tm_capable to
9068         __ununsed1.
9069         (TLS_INIT_TP, TLS_DEFINE_INIT_TP): Remove tm_capable setup.
9070         (THREAD_GET_TM_CAPABLE, THREAD_SET_TM_CAPABLE): Remove macros.
9071         * sysdeps/powerpc/powerpc32/sysdep.h,
9072         sysdeps/powerpc/powerpc64/sysdep.h (ABORT_TRANSACTION_IMPL,
9073         ABORT_TRANSACTION): Remove macros.
9074         * sysdeps/powerpc/sysdep.h (ABORT_TRANSACTION): Likewise.
9075         * sysdeps/unix/sysv/linux/powerpc/elision-conf.c (elision_init): Set
9076         __pthread_force_elision iff PPC_FEATURE2_HTM_NOSC is set.
9077         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h,
9078         sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
9079         sysdeps/unix/sysv/linux/powerpc/syscall.S (ABORT_TRANSACTION): Remove
9080         usage.
9081         * sysdeps/unix/sysv/linux/powerpc/not-errno.h: Remove file.
9083 2018-09-21  Rafal Luzynski  <digitalfreak@lingonborough.com>
9085         [BZ #10425]
9086         * localedata/locales/it_IT (d_t_fmt): Use "%a %-d %b %Y, %T".
9087         (date_fmt): Use "%a %-d %b %Y, %T, %Z".
9088         * localedata/locales/it_CH (d_t_fmt): Use "%a %-d %b %Y, %T"
9089         which is the same as in it_IT.
9090         (d_fmt): Use "%d.%m.%Y" which is the same as in de_CH.
9091         (date_fmt): Use "%a %-d %b %Y, %T, %Z" which is the same as in it_IT.
9093 2018-09-20  Joseph Myers  <joseph@codesourcery.com>
9095         * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
9096         __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (trunc): Redirect
9097         using MATH_REDIRECT.
9098         * sysdeps/aarch64/fpu/s_trunc.c: Define NO_MATH_REDIRECT before
9099         header inclusion.
9100         * sysdeps/aarch64/fpu/s_truncf.c: Likewise.
9101         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
9102         * sysdeps/ieee754/float128/s_truncf128.c: Likewise.
9103         * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
9104         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
9105         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
9106         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c: Likewise.
9107         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c: Likewise.
9108         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: Likewise.
9109         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Likewise.
9110         * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
9111         * sysdeps/riscv/rvf/s_truncf.c: Likewise.
9112         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Likewise.
9113         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Likewise.
9114         * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Likewise.
9115         * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Likewise.
9116         * sysdeps/m68k/m680x0/fpu/s_trunc_template.c: Likewise.
9117         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
9118         (ceil): Redirect to __ceil.
9119         (floor): Redirect to __floor.
9120         (trunc): Redirect to __trunc.
9121         (__truncl): Call trunc instead of __trunc.
9122         * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__trunc):
9123         Remove macro.
9124         [_ARCH_PWR5X] (__truncf): Likewise.
9125         * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r): Use
9126         trunc functions instead of __trunc variants.
9127         * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
9128         Likewise.
9129         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
9130         Likewise.
9131         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
9132         Likewise.
9133         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
9134         Likewise.
9136         * sysdeps/x86/cpu-features.h [__geode__ || __k6__]: Handle like
9137         [__i586__ || __pentium__].
9138         [__i486__]: Handle explicitly.
9139         (HAS_CPUID): Define to 1 if above macros are undefined.
9140         (HAS_I586): Likewise.
9141         (HAS_I686): Likewise.
9143 2018-09-20  Florian Weimer  <fweimer@redhat.com>
9145         * misc/tst-gethostid.c: New file.
9146         * misc/Makefile [$(build-shared)] (tests): Add tst-gethostid.
9147         (tst-gethostid): Link with -ldl.
9149 2018-09-20  Mingli Yu  <Mingli.Yu@windriver.com>
9151         * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Check for NULL
9152         value from gethostbyname_r.
9154 2018-09-19  Carlos O'Donell  <carlos@redhat.com>
9156         * stdlib/tst-setcontext9.c (f1): Rename to...
9157         (f1a): ... this.
9158         (f1b): New function implementing lower half of f1 in alternate stack.
9160 2018-09-19  Paul Eggert  <eggert@cs.ucla.edu>
9162         Fix mktime localtime offset confusion
9163         [BZ #23603]
9164         * include/time.h (__mktime_internal): The localtime offset is now
9165         of type long int instead of time_t.  This is the longstanding type
9166         in glibc, and it is more than enough to represent difference
9167         between localtime and gmtime even if it is 32 bits and time_t is
9168         64.  Changing it now will let us avoid an unnecessary change when
9169         time_t is widened to 64 bits on 32-bit platforms.
9170         * time/mktime-internal.h (mktime_offset_t): Now long int.
9172         Merge mktime, timegm from upstream Gnulib
9173         [BZ #23603][BZ #16346]
9174         This fixes some obscure problems with integer overflow.
9175         Although it looks scary, it is almost all a byte-for-byte copy
9176         from Gnulib, and the Gnulib code has been tested reasonably well.
9177         * include/intprops.h: New file, copied from Gnulib.
9178         * include/verify.h, time/mktime-internal.h:
9179         New tiny files, simplified from Gnulib.
9180         * time/mktime.c: Copy from Gnulib.  This has the following changes:
9181         Do not include config.h if DEBUG_MKTIME is nonzero.
9182         Include stdbool.h, intprops.h, verify.h.
9183         Include string.h only if needed.
9184         Include stdlib.h on MS-Windows.
9185         Include mktime-internal.h.
9186         (DEBUG_MKTIME): Default to 0, and simplify later uses.
9187         (NEED_MKTIME_INTERNAL, NEED_MKTIME_WINDOWS)
9188         (NEED_MKTIME_WORKING): Give default values to pacify -Wundef,
9189         which glibc uses.  Default NEED_MKTIME_WORKING to DEBUG_MKTIME, to
9190         simplify later conditionals; default the others to zero.  Use
9191         these conditionals to express only the code needed on the current
9192         platform.  In uses of these conditionals, explicitly spell out how
9193         _LIBC affects things, so it’s easier to review from a glibc
9194         viewpoint.
9195         (WRAPV): Remove; no longer needed now that we have
9196         systematic overflow checking.
9197         (my_tzset, __tzset) [!_LIBC]: New function and macro, to better
9198         compartmentalize tzset issues.  Move system-dependent tzsettish
9199         code here from mktime.
9200         (verify): Remove; now done by verify.h.  All uses changed.
9201         (long_int): Use a more-conservative definition, to avoid
9202         integer overflow.
9203         (SHR): Remove, replacing with ...
9204         (shr): New function, which means we needn’t worry about side
9205         effects in args, and conversion analysis is simpler.
9206         (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT, TYPE_SIGNED, TYPE_MINIMUM)
9207         (TYPE_MAXIMUM, TIME_T_MIN, TIME_T_MAX, TIME_T_MIDPOINT)
9208         (time_t_avg, time_t_add_ok): Remove.
9209         (mktime_min, mktime_max): New constants.
9210         (leapyear, isdst_differ): Use bool for booleans.
9211         (ydhms_diff, guess_time_tm, ranged_convert, __mktime_internal):
9212         Use long_int, not time_t, for mktime differences.
9213         (long_int_avg): New function, replacing time_t_avg.
9214         INT_ADD_WRAPV replaces time_t_add_ok.
9215         (guess_time_tm): 6th arg is now long_int, not time_t const *.
9216         All uses changed.
9217         (convert_time): New function.
9218         (ranged_convert): Use it.
9219         (__mktime_internal): Last arg now points to mktime_offset_t, not
9220         time_t.  All uses changed.  This is a no-op on glibc, where
9221         mktime_offset_t is always time_t.  Use int, not time_t, for UTC
9222         offset guess.  Directly check for integer overflow instead of
9223         using a heuristic that works only 99.9...% of the time.
9224         Access *OFFSET only once, to avoid an unlikely race if the
9225         compiler delays a load and if this cascades into a signed integer
9226         overflow.
9227         (mktime): Move tzsettish code to my_tzset, and move
9228         localtime_offset to within mktime so that it doesn’t
9229         need a separate ifdef.
9230         (main) [DEBUG_MKTIME]: Speed up by using localtime_r
9231         instead of localtime.
9232         * time/timegm.c: Copy from Gnulib.  This has the following changes:
9233         Include mktime-internal.h.
9234         [!_LIBC]: Include config.h and time.h.  Do not include
9235         timegm.h or time_r.h.  Make __mktime_internal a macro,
9236         and include mktime-internal.h to get its declaration.
9237         (timegm): Temporary is now mktime_offset_t, not time_t.
9238         This affects only Gnulib.
9240 2018-09-19  Wilco Dijkstra  <wdijkstr@arm.com>
9242         [BZ #23637]
9243         * string/test-strstr.c (pr23637): New function.
9244         (test_main): Add tests with longer needles.
9245         * string/strcasestr.c (AVAILABLE): Fix readahead distance.
9246         * string/strstr.c (AVAILABLE): Likewise.
9248 2018-09-19  Szabolcs Nagy  <szabolcs.nagy@arm.com>
9250         * sysdeps/ieee754/flt-32/e_powf.c (checkint): Fix documentation.
9252 2018-09-19  Szabolcs Nagy  <szabolcs.nagy@arm.com>
9254         * NEWS: Mention pow improvements.
9255         * math/Makefile (type-double-routines): Add e_pow_log_data.
9256         * sysdeps/generic/math_private.h (__exp1): Remove.
9257         * sysdeps/i386/fpu/e_pow_log_data.c: New file.
9258         * sysdeps/ia64/fpu/e_pow_log_data.c: New file.
9259         * sysdeps/ieee754/dbl-64/Makefile (CFLAGS-e_pow.c): Allow fma
9260         contraction.
9261         * sysdeps/ieee754/dbl-64/e_exp.c (__exp1): Remove.
9262         (exp_inline): Remove.
9263         (__ieee754_exp): Only single double input is handled.
9264         * sysdeps/ieee754/dbl-64/e_pow.c: Rewrite.
9265         * sysdeps/ieee754/dbl-64/e_pow_log_data.c: New file.
9266         * sysdeps/ieee754/dbl-64/math_config.h (issignaling_inline): Define.
9267         (__pow_log_data): Define.
9268         * sysdeps/ieee754/dbl-64/upow.h: Remove.
9269         * sysdeps/ieee754/dbl-64/upow.tbl: Remove.
9270         * sysdeps/m68k/m680x0/fpu/e_pow_log_data.c: New file.
9271         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_pow-fma.c): Allow fma
9272         contraction.
9273         (CFLAGS-e_pow-fma4.c): Likewise.
9275 2018-09-18  Paul Eggert  <eggert@cs.ucla.edu>
9277         Simplify tzfile fstat failure code
9278         [BZ #21716]
9279         * time/tzfile.c (__tzfile_read): Simplify slightly.
9281         Fix tzfile low-memory assertion failure
9282         [BZ #21716]
9283         * time/tzfile.c (__tzfile_read): Check for memory exhaustion
9284         when registering time zone abbreviations.
9286 2018-09-18  Joseph Myers  <joseph@codesourcery.com>
9288         * sysdeps/unix/sysv/linux/bits/mman.h: New file.
9289         * sysdeps/unix/sysv/linux/aarch64/bits/mman.h: Remove.
9290         * sysdeps/unix/sysv/linux/arm/bits/mman.h: Likewise.
9291         * sysdeps/unix/sysv/linux/m68k/bits/mman.h: Likewise.
9292         * sysdeps/unix/sysv/linux/microblaze/bits/mman.h: Likewise.
9293         * sysdeps/unix/sysv/linux/nios2/bits/mman.h: Likewise.
9294         * sysdeps/unix/sysv/linux/riscv/bits/mman.h: Likewise.
9295         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
9296         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
9298         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c (ceil): Redirect to
9299         __ceil.
9300         (__ceill): Call ceil instead of __ceil.
9301         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c (floor): Redirect to
9302         __floor.
9303         (__floorl): Call floor instead of __floor.
9305 2018-09-17  Joseph Myers  <joseph@codesourcery.com>
9307         * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
9308         __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (ceil): Redirect
9309         using MATH_REDIRECT.
9310         * sysdeps/aarch64/fpu/s_ceil.c: Define NO_MATH_REDIRECT before
9311         header inclusion.
9312         * sysdeps/aarch64/fpu/s_ceilf.c: Likewise.
9313         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
9314         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
9315         * sysdeps/ieee754/float128/s_ceilf128.c: Likewise.
9316         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
9317         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
9318         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
9319         * sysdeps/m68k/m680x0/fpu/s_ceil_template.c: Likewise.
9320         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: Likewise.
9321         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c: Likewise.
9322         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: Likewise.
9323         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Likewise.
9324         * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
9325         * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
9326         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Likewise.
9327         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Likewise.
9328         * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Likewise.
9329         * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Likewise.
9330         * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__ceil):
9331         Remove macro.
9332         * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Use ceil
9333         functions instead of __ceil variants.
9334         * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
9335         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive):
9336         Likewise.
9337         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive):
9338         Likewise.
9339         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Likewise.
9340         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive):
9341         Likewise.
9342         * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
9343         * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
9345         [BZ #21286]
9346         * sysdeps/unix/sysv/linux/bits/siginfo-consts.h (SI_DETHREAD): New
9347         constant.
9348         [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (ILL_BADIADDR): Likewise.
9349         [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (FPE_FLTUNK): Likewise.
9350         [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (FPE_CONDTRAP): Likewise.
9351         [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ACCADI): Likewise.
9352         [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ADIDERR): Likewise.
9353         [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ADIPERR): Likewise.
9354         [__USE_XOPEN_EXTENDED] (TRAP_BRANCH): Likewise.
9355         [__USE_XOPEN_EXTENDED] (TRAP_HWBKPT): Likewise.
9356         [__USE_XOPEN_EXTENDED] (TRAP_UNK): Likweise.
9357         * sysdeps/unix/sysv/linux/ia64/bits/siginfo-consts-arch.h
9358         (ILL_BADIADDR): Remove constant.
9359         (TRAP_BRANCH): Likewise.
9360         (TRAP_HWBKPT): Likewise.
9362 2018-09-14  Joseph Myers  <joseph@codesourcery.com>
9364         [BZ #23656]
9365         * sysdeps/unix/sysv/linux/mips/sys/procfs.h (struct elf_prstatus):
9366         Remove [_MIPS_SIM = _ABIN32] conditional case.
9367         (struct elf_prpsinfo): Likewise.
9369         [BZ #23649]
9370         * sysdeps/unix/sysv/linux/microblaze/sys/procfs.h (struct
9371         elf_prpsinfo): Use unsigned int for pr_uid and pr_gid.
9372         * sysdeps/unix/sysv/linux/mips/sys/procfs.h (struct elf_prpsinfo):
9373         Likewise.
9374         * sysdeps/unix/sysv/linux/nios2/sys/procfs.h (struct
9375         elf_prpsinfo): Likewise.
9376         * sysdeps/unix/sysv/linux/riscv/sys/procfs.h (struct
9377         elf_prpsinfo): Likewise.
9378         * sysdeps/unix/sysv/linux/sys/procfs.h (struct elf_prpsinfo):
9379         Likewise.
9381         * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
9382         __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (rint): Redirect
9383         using MATH_REDIRECT.
9384         * sysdeps/aarch64/fpu/s_rint.c: Define NO_MATH_REDIRECT before
9385         header inclusion.
9386         * sysdeps/aarch64/fpu/s_rintf.c: Likewise.
9387         * sysdeps/alpha/fpu/s_rint.c: Likewise.
9388         * sysdeps/alpha/fpu/s_rintf.c: Likewise.
9389         * sysdeps/i386/fpu/s_rintl.c: Likewise.
9390         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
9391         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
9392         * sysdeps/ieee754/float128/s_rintf128.c: Likewise.
9393         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
9394         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
9395         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
9396         * sysdeps/m68k/coldfire/fpu/s_rint.c: Likewise.
9397         * sysdeps/m68k/coldfire/fpu/s_rintf.c: Likewise.
9398         * sysdeps/m68k/m680x0/fpu/s_rint.c: Likewise.
9399         * sysdeps/m68k/m680x0/fpu/s_rintf.c: Likewise.
9400         * sysdeps/m68k/m680x0/fpu/s_rintl.c: Likewise.
9401         * sysdeps/powerpc/fpu/s_rint.c: Likewise.
9402         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
9403         * sysdeps/riscv/rv64/rvd/s_rint.c: Likewise.
9404         * sysdeps/riscv/rvf/s_rintf.c: Likewise.
9405         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.c: Likewise.
9406         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.c: Likewise.
9407         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Likewise.
9408         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Likewise.
9409         * sysdeps/x86_64/fpu/multiarch/s_rint.c: Likewise.
9410         * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Likewise.
9411         * sysdeps/x86_64/fpu/math_private.h: Remove file.
9412         * math/e_scalb.c (invalid_fn): Use rint functions instead of
9413         __rint variants.
9414         * math/e_scalbf.c (invalid_fn): Likewise.
9415         * math/e_scalbl.c (invalid_fn): Likewise.
9416         * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
9417         Likewise.
9418         * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
9419         Likewise.
9420         * sysdeps/ieee754/k_standard.c (__kernel_standard): Likewise.
9421         * sysdeps/ieee754/k_standardl.c (__kernel_standard_l): Likewise.
9422         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
9423         Likewise.
9424         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
9425         Likewise.
9426         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
9427         Likewise.
9428         * sysdeps/powerpc/powerpc32/fpu/s_llrint.c (__llrint): Likewise.
9429         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c (__llrintf): Likewise.
9431         * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
9432         __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (MATH_REDIRECT):
9433         New macro.
9434         [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
9435         && !NO_MATH_REDIRECT] (MATH_REDIRECT_LDBL): Likewise.
9436         [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
9437         && !NO_MATH_REDIRECT] (MATH_REDIRECT_F128): Likewise.
9438         [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
9439         && !NO_MATH_REDIRECT] (MATH_REDIRECT_UNARY_ARGS): Likewise.
9440         [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
9441         && !NO_MATH_REDIRECT] (sqrt): Redirect using MATH_REDIRECT.
9442         [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
9443         && !NO_MATH_REDIRECT] (floor): Likewise.
9444         * sysdeps/aarch64/fpu/s_floor.c: Define NO_MATH_REDIRECT before
9445         header inclusion.
9446         * sysdeps/aarch64/fpu/s_floorf.c: Likewise.
9447         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
9448         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
9449         * sysdeps/ieee754/float128/s_floorf128.c: Likewise.
9450         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
9451         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
9452         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
9453         * sysdeps/m68k/m680x0/fpu/s_floor_template.c: Likewise.
9454         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c: Likewise.
9455         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c: Likewise.
9456         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: Likewise.
9457         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Likewise.
9458         * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
9459         * sysdeps/riscv/rvf/s_floorf.c: Likewise.
9460         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Likewise.
9461         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Likewise.
9462         * sysdeps/x86_64/fpu/multiarch/s_floor.c: Likewise.
9463         * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Likewise.
9464         * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__floor):
9465         Remove macro.
9466         [_ARCH_PWR5X] (__floorf): Likewise.
9467         * sysdeps/x86_64/fpu/math_private.h [__SSE4_1__] (__floor): Remove
9468         inline function.
9469         [__SSE4_1__] (__floorf): Likewise.
9470         * math/w_lgamma_main.c (LGFUNC (__lgamma)): Use floor functions
9471         instead of __floor variants.
9472         * math/w_lgamma_r_compat.c (__lgamma_r): Likewise.
9473         * math/w_lgammaf_main.c (LGFUNC (__lgammaf)): Likewise.
9474         * math/w_lgammaf_r_compat.c (__lgammaf_r): Likewise.
9475         * math/w_lgammal_main.c (LGFUNC (__lgammal)): Likewise.
9476         * math/w_lgammal_r_compat.c (__lgammal_r): Likewise.
9477         * math/w_tgamma_compat.c (__tgamma): Likewise.
9478         * math/w_tgamma_template.c (M_DECL_FUNC (__tgamma)): Likewise.
9479         * math/w_tgammaf_compat.c (__tgammaf): Likewise.
9480         * math/w_tgammal_compat.c (__tgammal): Likewise.
9481         * sysdeps/ieee754/dbl-64/e_lgamma_r.c (sin_pi): Likewise.
9482         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2):
9483         Likewise.
9484         * sysdeps/ieee754/dbl-64/lgamma_neg.c (__lgamma_neg): Likewise.
9485         * sysdeps/ieee754/flt-32/e_lgammaf_r.c (sin_pif): Likewise.
9486         * sysdeps/ieee754/flt-32/lgamma_negf.c (__lgamma_negf): Likewise.
9487         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
9488         Likewise.
9489         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
9490         * sysdeps/ieee754/ldbl-128/lgamma_negl.c (__lgamma_negl):
9491         Likewise.
9492         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Likewise.
9493         * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c (__ieee754_lgammal_r):
9494         Likewise.
9495         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
9496         * sysdeps/ieee754/ldbl-128ibm/lgamma_negl.c (__lgamma_negl):
9497         Likewise.
9498         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Likewise.
9499         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Likewise.
9500         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Likewise.
9501         * sysdeps/ieee754/ldbl-96/lgamma_negl.c (__lgamma_negl): Likewise.
9502         * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
9503         * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
9505 2018-09-12  Joseph Myers  <joseph@codesourcery.com>
9507         * elf/Makefile (modules-names-tests): New variable.
9509 2018-09-12  Szabolcs Nagy  <szabolcs.nagy@arm.com>
9511         * NEWS: Mention log2 improvements.
9512         * math/Makefile (type-double-routines): Add e_log2_data.
9513         * sysdeps/i386/fpu/e_log2_data.c: New file.
9514         * sysdeps/ia64/fpu/e_log2_data.c: New file.
9515         * sysdeps/ieee754/dbl-64/e_log2.c: Rewrite.
9516         * sysdeps/ieee754/dbl-64/e_log2_data.c: New file.
9517         * sysdeps/ieee754/dbl-64/math_config.h (__log2_data): Add.
9518         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: Remove.
9519         * sysdeps/m68k/m680x0/fpu/e_log2_data.c: New file.
9521 2018-09-12  Szabolcs Nagy  <szabolcs.nagy@arm.com>
9523         * NEWS: Mention log improvement.
9524         * math/Makefile (type-double-routines): Add e_log_data.
9525         * sysdeps/i386/fpu/e_log_data.c: New file.
9526         * sysdeps/ia64/fpu/e_log_data.c: New file.
9527         * sysdeps/ieee754/dbl-64/e_log.c: Rewrite.
9528         * sysdeps/ieee754/dbl-64/e_log_data.c: New file.
9529         * sysdeps/ieee754/dbl-64/math_config.h (__log_data): Add.
9530         * sysdeps/ieee754/dbl-64/ulog.h: Remove.
9531         * sysdeps/ieee754/dbl-64/ulog.tbl: Remove.
9532         * sysdeps/m68k/m680x0/fpu/e_log_data.c: New file.
9534 2018-09-12  H.J. Lu  <hongjiu.lu@intel.com>
9535             Xuepeng Guo  <xuepeng.guo@intel.com>
9537         [BZ #23606]
9538         * sysdeps/i386/start.S: Include <sysdep.h>
9539         (_start): Use ENTRY/END to insert ENDBR32 at entry when CET is
9540         enabled.  Add cfi_undefined (eip).
9542 2018-09-11  Joseph Myers  <joseph@codesourcery.com>
9544         * sysdeps/x86_64/fpu/math_private.h (MOVD): Remove macro.
9545         (MOVQ): Likewise.
9546         (EXTRACT_WORDS64): Likewise.
9547         (INSERT_WORDS64): Likewise.
9548         (GET_FLOAT_WORD): Likewise.
9549         (SET_FLOAT_WORD): Likewise.
9551         * scripts/build-many-glibcs.py (Context.__init__): Add full_gcc
9552         argument.
9553         (Config.build_gcc): Use --disable-libsanitizer for first GCC
9554         build, but not for second build if --full-gcc.  Use
9555         --enable-languages=all for second build if --full-gcc.
9556         (get_parser): Add --full-gcc option.
9557         (main): Update call to Context.
9559 2018-09-10  Rafal Luzynski  <digitalfreak@lingonborough.com>
9561         [BZ #10797]
9562         * localedata/locales/de_CH (mon_thousands_sep): Use "<U2019>" (Right
9563         Single Quotation Mark).
9564         (thousands_sep): Likewise.
9565         * localedata/locales/it_CH (LC_NUMERIC): Use “copy "de_CH"”.
9566         * localedata/locales/it_IT (thousands_sep): Use ".".
9567         (grouping): Use "3;3".
9569 2018-09-10  Joseph Myers  <joseph@codesourcery.com>
9571         * scripts/build-many-glibcs.py (Context.add_all_configs): Add
9572         x86_64 and i686 configs using --enable-obsolete-rpc
9573         --enable-obsolete-nsl.
9575 2018-09-06  Stefan Liebler  <stli@linux.ibm.com>
9577         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
9579 2018-09-06  Stefan Liebler  <stli@linux.ibm.com>
9581         * sysdeps/unix/sysv/linux/spawni.c (maybe_script_execute):
9582         Increment size of new_argv by one.
9584 2018-09-05  Rafal Luzynski  <digitalfreak@lingonborough.com>
9586         [BZ #17426]
9587         * localedata/locales/anp_IN (d_fmt): Use "%-d//%-m//%y".
9588         * localedata/locales/ar_IN (d_fmt): Likewise.
9589         * localedata/locales/bhb_IN (d_fmt): Likewise.
9590         * localedata/locales/bho_IN (d_fmt): Likewise.
9591         * localedata/locales/bn_BD (d_fmt): Likewise.
9592         * localedata/locales/bn_IN (d_fmt): Likewise.
9593         * localedata/locales/doi_IN (d_fmt): Likewise.
9594         * localedata/locales/gu_IN (d_fmt): Likewise.
9595         * localedata/locales/hi_IN (d_fmt): Likewise.
9596         * localedata/locales/hne_IN (d_fmt): Likewise.
9597         * localedata/locales/kn_IN (d_fmt): Likewise.
9598         * localedata/locales/mag_IN (d_fmt): Likewise.
9599         * localedata/locales/mai_IN (d_fmt): Likewise.
9600         * localedata/locales/mjw_IN (d_fmt): Likewise.
9601         * localedata/locales/ml_IN (d_fmt): Likewise.
9602         * localedata/locales/mni_IN (d_fmt): Likewise.
9603         * localedata/locales/mr_IN (d_fmt): Likewise.
9604         * localedata/locales/pa_IN (d_fmt): Likewise.
9605         * localedata/locales/raj_IN (d_fmt): Likewise.
9606         * localedata/locales/sat_IN (d_fmt): Likewise.
9607         * localedata/locales/sd_IN (d_fmt): Likewise.
9608         * localedata/locales/sd_IN@devanagari (d_fmt): Likewise.
9609         * localedata/locales/ta_IN (d_fmt): Likewise.
9610         * localedata/locales/ta_LK (d_fmt): Likewise.
9611         * localedata/locales/tcy_IN (d_fmt): Likewise.
9612         * localedata/locales/ur_IN (d_fmt): Likewise.
9614         * localedata/locales/brx_IN (d_fmt): Use "%-m//%-d//%y".
9615         * localedata/locales/ks_IN (d_fmt): Likewise.
9616         * localedata/locales/ks_IN@devanagari (d_fmt): Likewise.
9618         * localedata/locales/kok_IN (d_fmt): Use "%-d-%-m-%y".
9619         * localedata/locales/ne_NP (d_fmt): Use "%y//%-m//%-d".
9620         * localedata/locales/sa_IN (d_fmt): Use "%-d-%m-%y".
9621         * localedata/locales/te_IN (d_fmt): Use "%d-%m-%y".
9623 2018-09-05  Szabolcs Nagy  <szabolcs.nagy@arm.com>
9625         * NEWS: Mention exp and exp2 improvements.
9626         * math/Makefile (libm-support): Remove t_exp.
9627         (type-double-routines): Add math_err and e_exp_data.
9628         * sysdeps/aarch64/libm-test-ulps: Update.
9629         * sysdeps/arm/libm-test-ulps: Update.
9630         * sysdeps/i386/fpu/e_exp_data.c: New file.
9631         * sysdeps/i386/fpu/math_err.c: New file.
9632         * sysdeps/i386/fpu/t_exp.c: Remove.
9633         * sysdeps/ia64/fpu/e_exp_data.c: New file.
9634         * sysdeps/ia64/fpu/math_err.c: New file.
9635         * sysdeps/ia64/fpu/t_exp.c: Remove.
9636         * sysdeps/ieee754/dbl-64/e_exp.c: Rewrite.
9637         * sysdeps/ieee754/dbl-64/e_exp2.c: Rewrite.
9638         * sysdeps/ieee754/dbl-64/e_exp_data.c: New file.
9639         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Update error bound.
9640         * sysdeps/ieee754/dbl-64/eexp.tbl: Remove.
9641         * sysdeps/ieee754/dbl-64/math_config.h: New file.
9642         * sysdeps/ieee754/dbl-64/math_err.c: New file.
9643         * sysdeps/ieee754/dbl-64/t_exp.c: Remove.
9644         * sysdeps/ieee754/dbl-64/t_exp2.h: Remove.
9645         * sysdeps/ieee754/dbl-64/uexp.h: Remove.
9646         * sysdeps/ieee754/dbl-64/uexp.tbl: Remove.
9647         * sysdeps/m68k/m680x0/fpu/e_exp_data.c: New file.
9648         * sysdeps/m68k/m680x0/fpu/math_err.c: New file.
9649         * sysdeps/m68k/m680x0/fpu/t_exp.c: Remove.
9650         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9651         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
9653 2018-09-05  Joseph Myers  <joseph@codesourcery.com>
9655         * sysdeps/alpha/fpu/math_private.h: Remove.
9657         * sysdeps/generic/math_private.h
9658         [__HAVE_DISTINCT_FLOAT128 && !__GNUC_PREREQ (7, 0)] (__isinff128):
9659         Move this inline function ....
9660         [__HAVE_DISTINCT_FLOAT128] (fabsf128): And this one ....
9661         * include/math.h [!_ISOMAC]: To here....
9663 2018-09-04  Joseph Myers  <joseph@codesourcery.com>
9665         * sysdeps/generic/fenv_private.h [FE_ALL_EXCEPT == 0]: Move this
9666         code ....
9667         [!FE_HAVE_ROUNDING_MODES]: And this code ....
9668         * include/fenv.h [!_ISOMAC]: ... to here.
9669         * math/fraiseexcpt.c (__feraiseexcept): Undefine as macro.
9670         (feraiseexcept): Likewise.
9671         * math/fromfp.h: Do not include <fenv_private.h>.
9672         * math/s_cexp_template.c: Likewise.
9673         * math/s_csin_template.c: Likewise.
9674         * math/s_csinh_template.c: Likewise.
9675         * math/s_ctan_template.c: Likewise.
9676         * math/s_ctanh_template.c: Likewise.
9677         * math/s_iseqsig_template.c: Likewise.
9678         * math/w_acos_compat.c: Likewise.
9679         * math/w_acosf_compat.c: Likewise.
9680         * math/w_acosl_compat.c: Likewise.
9681         * math/w_asin_compat.c: Likewise.
9682         * math/w_asinf_compat.c: Likewise.
9683         * math/w_asinl_compat.c: Likewise.
9684         * math/w_j0_compat.c: Likewise.
9685         * math/w_j0f_compat.c: Likewise.
9686         * math/w_j0l_compat.c: Likewise.
9687         * math/w_j1_compat.c: Likewise.
9688         * math/w_j1f_compat.c: Likewise.
9689         * math/w_j1l_compat.c: Likewise.
9690         * math/w_jn_compat.c: Likewise.
9691         * math/w_jnf_compat.c: Likewise.
9692         * math/w_log10_compat.c: Likewise.
9693         * math/w_log10f_compat.c: Likewise.
9694         * math/w_log10l_compat.c: Likewise.
9695         * math/w_log2_compat.c: Likewise.
9696         * math/w_log2f_compat.c: Likewise.
9697         * math/w_log2l_compat.c: Likewise.
9698         * math/w_log_compat.c: Likewise.
9699         * math/w_logf_compat.c: Likewise.
9700         * math/w_logl_compat.c: Likewise.
9701         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
9702         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
9703         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
9704         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
9705         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
9706         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
9707         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
9708         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
9709         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
9710         * sysdeps/ieee754/k_standardl.c: Likewise.
9711         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
9712         * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
9713         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
9714         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
9715         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
9716         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
9717         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
9718         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
9719         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
9720         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
9721         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
9722         * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
9723         * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
9724         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
9725         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
9726         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
9727         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
9728         * math/w_ilogb_template.c: Include <fenv.h> instead of
9729         <fenv_private.h>.
9730         * math/w_llogb_template.c: Likewise.
9731         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
9732         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
9734 2018-09-03  Joseph Myers  <joseph@codesourcery.com>
9736         * sysdeps/generic/math_private.h: Do not include <fenv_private.h>.
9737         * math/fromfp.h: Include <fenv_private.h>.
9738         * math/math-narrow.h: Likewise.
9739         * math/s_cexp_template.c: Likewise.
9740         * math/s_csin_template.c: Likewise.
9741         * math/s_csinh_template.c: Likewise.
9742         * math/s_ctan_template.c: Likewise.
9743         * math/s_ctanh_template.c: Likewise.
9744         * math/s_iseqsig_template.c: Likewise.
9745         * math/w_acos_compat.c: Likewise.
9746         * math/w_acosf_compat.c: Likewise.
9747         * math/w_acosl_compat.c: Likewise.
9748         * math/w_asin_compat.c: Likewise.
9749         * math/w_asinf_compat.c: Likewise.
9750         * math/w_asinl_compat.c: Likewise.
9751         * math/w_ilogb_template.c: Likewise.
9752         * math/w_j0_compat.c: Likewise.
9753         * math/w_j0f_compat.c: Likewise.
9754         * math/w_j0l_compat.c: Likewise.
9755         * math/w_j1_compat.c: Likewise.
9756         * math/w_j1f_compat.c: Likewise.
9757         * math/w_j1l_compat.c: Likewise.
9758         * math/w_jn_compat.c: Likewise.
9759         * math/w_jnf_compat.c: Likewise.
9760         * math/w_llogb_template.c: Likewise.
9761         * math/w_log10_compat.c: Likewise.
9762         * math/w_log10f_compat.c: Likewise.
9763         * math/w_log10l_compat.c: Likewise.
9764         * math/w_log2_compat.c: Likewise.
9765         * math/w_log2f_compat.c: Likewise.
9766         * math/w_log2l_compat.c: Likewise.
9767         * math/w_log_compat.c: Likewise.
9768         * math/w_logf_compat.c: Likewise.
9769         * math/w_logl_compat.c: Likewise.
9770         * sysdeps/aarch64/fpu/feholdexcpt.c: Likewise.
9771         * sysdeps/aarch64/fpu/fesetround.c: Likewise.
9772         * sysdeps/aarch64/fpu/fgetexcptflg.c: Likewise.
9773         * sysdeps/aarch64/fpu/ftestexcept.c: Likewise.
9774         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
9775         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
9776         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
9777         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
9778         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
9779         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
9780         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
9781         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
9782         * sysdeps/ieee754/dbl-64/gamma_product.c: Likewise.
9783         * sysdeps/ieee754/dbl-64/lgamma_neg.c: Likewise.
9784         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
9785         * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
9786         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
9787         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
9788         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
9789         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
9790         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
9791         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
9792         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
9793         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
9794         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
9795         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
9796         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
9797         * sysdeps/ieee754/dbl-64/x2y2m1.c: Likewise.
9798         * sysdeps/ieee754/float128/float128_private.h: Likewise.
9799         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
9800         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
9801         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
9802         * sysdeps/ieee754/flt-32/lgamma_negf.c: Likewise.
9803         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
9804         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
9805         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
9806         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
9807         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
9808         * sysdeps/ieee754/k_standardl.c: Likewise.
9809         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
9810         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
9811         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
9812         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
9813         * sysdeps/ieee754/ldbl-128/gamma_productl.c: Likewise.
9814         * sysdeps/ieee754/ldbl-128/lgamma_negl.c: Likewise.
9815         * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
9816         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
9817         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
9818         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
9819         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
9820         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
9821         * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
9822         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
9823         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
9824         * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
9825         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
9826         * sysdeps/ieee754/ldbl-128ibm/lgamma_negl.c: Likewise.
9827         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
9828         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
9829         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
9830         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
9831         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
9832         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
9833         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
9834         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
9835         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
9836         * sysdeps/ieee754/ldbl-96/gamma_productl.c: Likewise.
9837         * sysdeps/ieee754/ldbl-96/lgamma_negl.c: Likewise.
9838         * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
9839         * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
9840         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
9841         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
9842         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
9843         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
9844         * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
9845         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
9846         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
9847         * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
9848         * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
9849         * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
9850         * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
9851         * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
9852         * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
9853         * sysdeps/riscv/rvd/s_finite.c: Likewise.
9854         * sysdeps/riscv/rvd/s_fmax.c: Likewise.
9855         * sysdeps/riscv/rvd/s_fmin.c: Likewise.
9856         * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
9857         * sysdeps/riscv/rvd/s_isinf.c: Likewise.
9858         * sysdeps/riscv/rvd/s_isnan.c: Likewise.
9859         * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
9860         * sysdeps/riscv/rvf/fegetround.c: Likewise.
9861         * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
9862         * sysdeps/riscv/rvf/fesetenv.c: Likewise.
9863         * sysdeps/riscv/rvf/fesetround.c: Likewise.
9864         * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
9865         * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
9866         * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
9867         * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
9868         * sysdeps/riscv/rvf/s_finitef.c: Likewise.
9869         * sysdeps/riscv/rvf/s_floorf.c: Likewise.
9870         * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
9871         * sysdeps/riscv/rvf/s_fminf.c: Likewise.
9872         * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
9873         * sysdeps/riscv/rvf/s_isinff.c: Likewise.
9874         * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
9875         * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
9876         * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
9877         * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
9878         * sysdeps/riscv/rvf/s_roundf.c: Likewise.
9879         * sysdeps/riscv/rvf/s_truncf.c: Likewise.
9881 2018-08-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
9883         [BZ #20271]
9884         * include/stdio.h (__libc_fatal): Mention newline in comment.
9885         * grp/initgroups.c (internal_getgrouplist): Add missing newline.
9886         * nptl/pthread_cond_wait.c (__pthread_cond_wait_common): Likewise.
9887         * nscd/initgrcache.c (addinitgroupsX): Likewise.
9888         * nss/nsswitch.c (__nss_next2): Likewise.
9889         * sysdeps/aarch64/dl-irel.h (elf_irela): Likewise.
9890         * sysdeps/arm/dl-irel.h (elf_irel): Likewise.
9891         * sysdeps/generic/unwind-dw2.c (execute_cfa_program): Likewise.
9892         * sysdeps/i386/dl-irel.h (elf_irel): Likewise.
9893         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_irel): Likewise.
9894         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_irel): Likewise.
9895         * sysdeps/s390/dl-irel.h (elf_irel): Likewise.
9896         * sysdeps/sparc/sparc32/dl-irel.h (elf_irel): Likewise.
9897         * sysdeps/sparc/sparc64/dl-irel.h (elf_irel): Likewise.
9898         * sysdeps/x86_64/dl-irel.h (elf_irel): Likewise.
9899         * sysdeps/nptl/futex-internal.h (futex_wake): Likewise.
9900         * sysdeps/unix/sysv/linux/netlink_assert_response.c
9901         (__netlink_assert_response): Likewise.
9903 2018-08-31  Joseph Myers  <joseph@codesourcery.com>
9905         * conform/glibcconform.py: New file.
9906         * conform/list-header-symbols.py: Likewise.
9907         * conform/list-header-symbols.pl: Remove.
9908         * conform/Makefile (tests-special): Only add linknamespace tests
9909         if [PYTHON].
9910         ($(linknamespace-symlists-tests)): Use list-header-symbols.py.
9912 2018-08-31  H.J. Lu  <hongjiu.lu@intel.com>
9914         [BZ #23597]
9915         * support/Makefile (libsupport-routines): Add
9916         support_copy_file_range and xcopy_file_range.
9917         * support/support.h: Include <sys/types.h>.
9918         (support_copy_file_range): New prototype.
9919         * support/support_copy_file_range.c: New file.  Copied and
9920         modified from io/copy_file_range-compat.c.
9921         * support/test-container.c (copy_one_file): Call xcopy_file_rang
9922         instead of copy_file_range.
9923         * support/xcopy_file_range.c: New file.
9924         * support/xunistd.h (xcopy_file_range): New prototype.
9926 2018-08-30  Carlos O'Donell  <carlos@redhat.com>
9928         * elf/tst-dlopen-aout.c: Include support/xthread.h. Use
9929         xpthread_create and xpthread_join.
9931 2018-08-30  Florian Weimer  <fweimer@redhat.com>
9933         * stdlib/stdlib.h (reallocarray): Make available under __USE_MISC.
9935 2018-08-30  Stefan Liebler  <stli@linux.ibm.com>
9937         * stdlib/test-bz22786.c (do_test): Return EXIT_UNSUPPORTED
9938         if malloc fails.
9940 2018-08-29  Joseph Myers  <joseph@codesourcery.com>
9942         * math/gen-libm-test.py (gen_test_args_res): Also treat plus_oflow
9943         and minus_oflow as non-finite.
9945 2018-08-28  Joseph Myers  <joseph@codesourcery.com>
9947         * sysdeps/aarch64/fpu/fenv_private.h: New file.  Based on ....
9948         * sysdeps/aarch64/fpu/math_private.h: ... this file.  All contents
9949         moved to fenv_private.h except for ...
9950         (TOINT_INTRINSICS): Kept in math_private.h.
9951         (roundtoint): Likewise.
9952         (converttoint): Likewise.
9953         * sysdeps/arm/fenv_private.h: Change multiple-include guard to
9954         [ARM_FENV_PRIVATE_H].  Include next <fenv_private.h>.
9955         * sysdeps/arm/math_private.h: Remove.
9956         * sysdeps/generic/fenv_private.h: New file.  Contents moved from
9957         ....
9958         * sysdeps/generic/math_private.h: ... this file.  Include
9959         <stdbool.h>.  Do not include <fenv.h> or <get-rounding-mode.h>.
9960         Include <fenv_private.h>.  Remove functions and macros moved to
9961         fenv_private.h.
9962         * sysdeps/i386/fpu/math_private.h: Remove.
9963         * sysdeps/mips/math_private.h: Move to ....
9964         * sysdeps/mips/fpu/fenv_private.h: ... here.  Change
9965         multiple-include guard to [MIPS_FENV_PRIVATE_H].  Remove
9966         [__mips_hard_float] conditional.  Include next <fenv_private.h>.
9967         * sysdeps/powerpc/fpu/fenv_private.h: Change multiple-include
9968         guard to [POWERPC_FENV_PRIVATE_H].  Include next <fenv_private.h>.
9969         * sysdeps/powerpc/fpu/math_private.h: Do not include
9970         <fenv_private.h>.
9971         * sysdeps/riscv/rvf/math_private.h: Move to ....
9972         * sysdeps/riscv/rvf/fenv_private.h: ... here.  Change
9973         multiple-include guard to [RISCV_FENV_PRIVATE_H].  Include next
9974         <fenv_private.h>.
9975         * sysdeps/sparc/fpu/fenv_private.h: Change multiple-include guard
9976         to [SPARC_FENV_PRIVATE_H].  Include next <fenv_private.h>.
9977         * sysdeps/sparc/fpu/math_private.h: Remove.
9978         * sysdeps/i386/fpu/fenv_private.h: Move to ....
9979         * sysdeps/x86/fpu/fenv_private.h: ... here.  Change
9980         multiple-include guard to [X86_FENV_PRIVATE_H].  Include next
9981         <fenv_private.h>.
9982         * sysdeps/x86_64/fpu/math_private.h: Do not include
9983         <sysdeps/i386/fpu/fenv_private.h>.
9985 2018-08-28  Florian Weimer  <fweimer@redhat.com>
9987         [BZ #23578]
9988         * posix/tst-regcomp-truncated.c: New file.
9989         * posix/Makefile (tests): Add it.
9990         (tst-regcomp-truncated.out): Depend on generated locales.
9992 2018-08-28  Florian Weimer  <fweimer@redhat.com>
9994         * support/test-container.c (main): Treat unshare failure with
9995         EPERM as an unsupported test.
9997 2018-08-28  Florian Weimer  <fweimer@redhat.com>
9999         [BZ #23520]
10000         nscd: Fix use-after-free in addgetnetgrentX and its callers.
10001         * nscd/netgroupcache.c
10002         (addgetnetgrentX): Add tofreep parameter.  Do not free
10003         heap-allocated buffer.
10004         (addinnetgrX): Free buffer allocated bt addgetnetgrentX.
10005         (addgetnetgrentX_ignore): New function.
10006         (addgetnetgrent): Call it.
10007         (readdgetnetgrent): Likewise.
10009 2018-08-28  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
10011         * string/memmem.c: Use memcmp for first match.
10013 2018-08-28  Rafal Luzynski  <digitalfreak@lingonborough.com>
10015         [BZ #17426]
10016         * localedata/locales/en_IN (d_fmt): Use "%d/%m/%y".
10018 2018-08-27  DJ Delorie  <dj@redhat.com>
10020         * support/Makefile (others): Don't list programs explicitly as a
10021         dependency of "others".
10023 2018-08-27  Joseph Myers  <joseph@codesourcery.com>
10025         * sysdeps/generic/math-tests-trap-force.h: New file.
10026         * sysdeps/generic/math-tests.h: Include <math-tests-trap-force.h>.
10027         (EXCEPTION_SET_FORCES_TRAP): Do not define here.
10028         * sysdeps/powerpc/math-tests.h: Remove file.
10029         * sysdeps/powerpc/fpu/math-tests-trap-force.h: New file.
10031 2018-08-27  Martin Kuchta  <martin.kuchta@netapp.com>
10032             Torvald Riegel  <triegel@redhat.com>
10034         [BZ #23538]
10035         * nptl/pthread_cond_common.c (__condvar_quiesce_and_switch_g1):
10036         Update r to include the set wake-request flag if waiters are
10037         remaining after spinning.
10039 2018-08-27  Joseph Myers  <joseph@codesourcery.com>
10041         * sysdeps/gnu/netinet/udp.h (UDP_SEGMENT): New macro.
10043 2018-08-25  Paul Eggert  <eggert@cs.ucla.edu>
10045         [BZ #23578]
10046         regex: fix uninitialized memory access
10047         I introduced this bug into gnulib in commit
10048         8335a4d6c7b4448cd0bcb6d0bebf1d456bcfdb17 dated 2006-04-10;
10049         eventually it was merged into glibc.  The bug was found by
10050         project-repo <bugs@feusi.co> and reported here:
10051         https://lists.gnu.org/r/sed-devel/2018-08/msg00017.html
10052         Diagnosis and draft fix reported by Assaf Gordon here:
10053         https://lists.gnu.org/r/bug-gnulib/2018-08/msg00071.html
10054         https://lists.gnu.org/r/bug-gnulib/2018-08/msg00142.html
10055         * posix/regex_internal.c (build_wcs_upper_buffer):
10056         Fix bug when mbrtowc returns 0.
10058 2018-08-24  Carlos O'Donell  <carlos@redhat.com>
10060         * po/be.po: Update translation.
10062 2018-08-24  DJ Delorie  <dj@delorie.com>
10064         * support/Makefile (LDLIBS-links-dso-program): Add -lgcc and
10065         $(libunwind).
10067 2018-08-24  Paul Pluzhnikov  <ppluzhnikov@google.com>
10069         [BZ #23400]
10070         * stdlib/test-bz22786.c (do_test): Fix undefined behavior, don't
10071         create temporary files in source tree.
10073 2018-08-24  Joseph Myers  <joseph@codesourcery.com>
10075         * sysdeps/generic/math-tests-trap.h: New file.
10076         * sysdeps/generic/math-tests.h: Include <math-tests-trap.h>.
10077         (EXCEPTION_ENABLE_SUPPORTED): Do not define here.
10078         * sysdeps/aarch64/math-tests.h: Remove file.
10079         * sysdeps/arm/math-tests.h: Likewise.
10080         * sysdeps/riscv/math-tests.h: Likewise.
10081         * sysdeps/aarch64/math-tests-trap.h: New file.
10082         * sysdeps/arm/math-tests-trap.h: Likewise.
10083         * sysdeps/riscv/math-tests-trap.h: Likewise.
10085 2018-08-24  Wilco Dijkstra  <wdijkstr@arm.com>
10087         * math/Makefile: Remove empty files k_sin(f).c, k_cos(f).c.
10088         Remove unused files e_rem_pio2(f).c, k_rem_pio2f.c.
10089         * sysdeps/i386/fpu/e_rem_pio2.c: Delete file.
10090         * sysdeps/ia64/fpu/e_rem_pio2.c: Likewise.
10091         * sysdeps/ia64/fpu/e_rem_pio2f.c: Likewise.
10092         * sysdeps/ia64/fpu/k_rem_pio2f.c: Likewise.
10093         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
10094         * sysdeps/ieee754/dbl-64/k_cos.c: Likewise.
10095         * sysdeps/ieee754/dbl-64/k_sin.c: Likewise.
10096         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
10097         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
10098         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
10099         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
10100         * sysdeps/m68k/m680x0/fpu/e_rem_pio2.c: Likewise
10101         * sysdeps/m68k/m680x0/fpu/e_rem_pio2f.c: Likewise
10102         * sysdeps/m68k/m680x0/fpu/k_rem_pio2f.c: Likewise
10103         * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
10104         * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
10106 2018-08-23  Joseph Myers  <joseph@codesourcery.com>
10108         * sysdeps/generic/math-tests-exceptions.h: New file.
10109         * sysdeps/generic/math-tests.h: Include <math-tests-exceptions.h>.
10110         (EXCEPTION_TESTS_float): Do not define here.
10111         (EXCEPTION_TESTS_double): Likewise.
10112         (EXCEPTION_TESTS_long_double): Likewise.
10113         (EXCEPTION_TESTS_float128): Likewise.
10114         * sysdeps/arm/math-tests.h [__SOFTFP__] (EXCEPTION_TESTS_float):
10115         Likewise.
10116         [__SOFTFP__] (EXCEPTION_TESTS_double): Likewise.
10117         [__SOFTFP__] (EXCEPTION_TESTS_long_double): Likewise.
10118         * sysdeps/arm/nofpu/math-tests-exceptions.h: New file.
10119         * sysdeps/m68k/coldfire/math-tests.h: Remove file.
10120         * sysdeps/mips/math-tests.h: Likewise.
10121         * sysdeps/nios2/math-tests.h: Likewise.
10122         * sysdeps/riscv/math-tests.h [!__riscv_flen]
10123         (EXCEPTION_TESTS_float): Do not define here.
10124         [!__riscv_flen] (EXCEPTION_TESTS_double): Likewise.
10125         [!__riscv_flen] (EXCEPTION_TESTS_long_double): Likewise.
10126         * sysdeps/riscv/nofpu/math-tests-exceptions.h: New file.
10128 2018-08-23  Wilco Dijkstra  <wdijkstr@arm.com>
10130         * NEWS: Move optimized sinf entry to 2.29.
10132 2018-08-23  Wilco Dijkstra  <wdijkstr@arm.com>
10134         * sysdeps/ieee754/flt-32/s_tanf.c (__tanf): Use fast range reduction.
10136 2018-08-22  DJ Delorie  <dj@redhat.com>
10138         * Makefile (testroot.pristine): New rules to initialize the
10139         test-in-container "testroot".
10140         * Makerules (all-testsuite): Add tests-container.
10141         * Rules (tests-expected): Add tests-container.
10142         (binaries-all-tests): Likewise.
10143         (tests-container): New, run these tests in the testroot container.
10144         * support/Makefile (others): Add *-container, support_paths.c,
10145         xmkdirp, and links-dso-program.
10146         * support/links-dso-program-c.c: New.
10147         * support/links-dso-program.cc: New.
10148         * support/test-container.c: New.
10149         * support/shell-container.c: New.
10150         * support/echo-container.c: New.
10151         * support/true-container.c: New.
10152         * support/xmkdirp.c: New.
10153         * support/xsymlink.c: New.
10154         * support/support_paths.c: New.
10155         * support/support.h: Add support paths prototypes.
10156         * support/xunistd.h: Add xmkdirp () and xsymlink ().
10158         * nss/tst-nss-test3.c: Convert to test-in-container.
10159         * nss/tst-nss-test3.root/: New.
10161 2018-08-22  Paul Eggert  <eggert@cs.ucla.edu>
10163         regex: port Gnulib code to z/OS POSIX environment
10164         Problem reported by Arnold Robbins in:
10165         https://lists.gnu.org/r/bug-gnulib/2018-08/msg00129.html
10166         * posix/regex_internal.h (__iswalnum, __towlower, __towupper) [!_LIBC]:
10167         Undef.
10169 2018-08-22  Joseph Myers  <joseph@codesourcery.com>
10171         * math/test-double-vlen2.h: Don't include <math-tests-rounding.h>.
10172         (ROUNDING_TESTS_double): Remove.
10173         * math/test-double-vlen4.h: Don't include <math-tests-rounding.h>.
10174         (ROUNDING_TESTS_double): Remove.
10175         * math/test-double-vlen8.h: Don't include <math-tests-rounding.h>.
10176         (ROUNDING_TESTS_double): Remove.
10177         * math/test-float-vlen16.h: Don't include <math-tests-rounding.h>.
10178         (ROUNDING_TESTS_float): Remove.
10179         * math/test-float-vlen4.h: Don't include <math-tests-rounding.h>.
10180         (ROUNDING_TESTS_float): Remove.
10181         * math/test-float-vlen8.h: Don't include <math-tests-rounding.h>.
10182         (ROUNDING_TESTS_float): Remove.
10183         * math/libm-test-driver.c (IF_ROUND_INIT_FE_DOWNWARD): Check
10184         !TEST_MATHVEC here.
10185         (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
10186         (IF_ROUND_INIT_FE_UPWARD): Likewise.
10188         * sysdeps/generic/math-tests-rounding.h: New file.
10189         * sysdeps/generic/math-tests.h: Include <math-tests-rounding.h>.
10190         (ROUNDING_TESTS_float): Do not define here.
10191         (ROUNDING_TESTS_double): Likewise.
10192         (ROUNDING_TESTS_long_double): Likewise.
10193         (ROUNDING_TESTS_float128): Likewise.
10194         * math/test-double-vlen2.h: Include <math-tests-rounding.h>.
10195         (ROUNDING_TESTS_double): Undefine before defining.
10196         * math/test-double-vlen4.h: Include <math-tests-rounding.h>.
10197         (ROUNDING_TESTS_double): Undefine before defining.
10198         * math/test-double-vlen8.h: Include <math-tests-rounding.h>.
10199         (ROUNDING_TESTS_double): Undefine before defining.
10200         * math/test-float-vlen16.h: Include <math-tests-rounding.h>.
10201         (ROUNDING_TESTS_float): Undefine before defining.
10202         * math/test-float-vlen4.h: Include <math-tests-rounding.h>.
10203         (ROUNDING_TESTS_float): Undefine before defining.
10204         * math/test-float-vlen8.h: Include <math-tests-rounding.h>.
10205         (ROUNDING_TESTS_float): Undefine before defining.
10206         * sysdeps/arm/nofpu/math-tests-rounding.h: New file.
10207         * sysdeps/arm/math-tests.h [__SOFTFP__] (ROUNDING_TESTS_float): Do
10208         not define here.
10209         [__SOFTFP__] (ROUNDING_TESTS_double): Likewise.
10210         [__SOFTFP__] (ROUNDING_TESTS_long_double): Likewise.
10211         * sysdeps/riscv/nofpu/math-tests-rounding.h: New file.
10212         * sysdeps/riscv/math-tests.h [!__riscv_flen]
10213         (ROUNDING_TESTS_float): Do not define here.
10214         [!__riscv_flen] (ROUNDING_TESTS_double): Likewise.
10215         [!__risv_flen] (ROUNDING_TESTS_long_double): Likewise.
10216         * sysdeps/m68k/coldfire/math-tests.h [!__mcffpu__]
10217         (ROUNDING_TESTS_float): Likewise.
10218         [!__mcffpu__] (ROUNDING_TESTS_double): Likewise.
10219         [!__mcffpu__] (ROUNDING_TESTS_long_double): Likewise.
10220         * sysdeps/mips/math-tests.h [__mips_soft_float]
10221         (ROUNDING_TESTS_float): Likewise.
10222         [__mips_soft_float] (ROUNDING_TESTS_double): Likewise.
10223         [__mips_soft_float] (ROUNDING_TESTS_long_double): Likewise.
10224         * sysdeps/nios2/math-tests.h (ROUNDING_TESTS_float): Likewise.
10225         (ROUNDING_TESTS_double): Likewise.
10226         (ROUNDING_TESTS_long_double): Likewise.
10228 2018-08-21  Tobias Klauser  <tklauser@distanz.ch>
10230         * sysdeps/unix/sysv/linux/bits/socket.h (PF_MAX): Set to 45.
10231         (PF_XDP): New macro.
10232         (AF_XDP): New macro.
10233         (SOL_XDP): New macro.
10235 2018-08-21  Joseph Myers  <joseph@codesourcery.com>
10237         * sysdeps/gnu/netinet/tcp.h (TCP_ZEROCOPY_RECEIVE): New macro.
10238         (TCP_INQ): Likewise.
10239         (TCP_CM_INQ): Likewise.
10240         (TCP_REPAIR_ON): Likewise.
10241         (TCP_REPAIR_OFF): Likewise.
10242         (TCP_REPAIR_OFF_NO_WP): Likewise.
10243         (struct tcp_zerocopy_receive): New type.
10245 2018-08-21  Florian Weimer  <fweimer@redhat.com>
10247         * support/support.h (support_descriptor_supports_holes): Declare.
10248         * support/Makefile (libsupport-routines): Add
10249         support_descriptor_supports_holes.
10250         * support/support_descriptor_supports_holes.c: New file.
10251         * io/tst-copy_file_range.c: Call support_descriptor_supports_holes
10252         and stop testing if holes are not supported.
10253         * io/test-lfs.c (do_prepare): Likewise.
10254         * sysdeps/unix/sysv/linux/tst-fallocate-common.c (do_prepare):
10255         Likewise.
10256         * timezone/tst-tzset.c (create_tz_file): Likewise.
10257         * misc/tst-preadvwritev-common.c (temp_fd_supports_holes) New
10258         variable.
10259         (do_prepare): Set it.
10260         * misc/tst-preadvwritev64.c (do_test): Use temp_fd_supports_holes.
10262 2018-08-21  Florian Weimer  <fweimer@redhat.com>
10264         [BZ #17248]
10265         * Makeconfig (+cflags): Do not sort (and deduplicate).
10267 2018-08-21  Florian Weimer  <fweimer@redhat.com>
10269         * debug/readlink_chk.c (__readlink_chk): Always call __readlink.
10270         * sysdeps/unix/sysv/linux/generic/readlink_chk.c: Remove file.
10272 2018-08-20  Florian Weimer  <fweimer@redhat.com>
10274         * sysdeps/unix/sysv/linux/generic/readlink_chk.c: Remove
10275         HAVE_INLINED_SYSCALLS conditionals.  Use INLINE_SYSCALL_CALL.
10277 2018-08-20  Joseph Myers  <joseph@codesourcery.com>
10279         * sysdeps/unix/sysv/linux/sys/signalfd.h (struct
10280         signalfd_siginfo): Add ssi_addr_lsb, ssi_syscall, ssi_call_addr
10281         and ssi_arch members.
10283         * elf/elf.c (NT_VMCOREDD): New macro.
10284         (AT_MINSIGSTKSZ): Likewise.
10286 2018-08-20  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
10288         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
10289         (libm-sysdep_routines): Remove s_sinf-ppc64, s_sinf-power8,
10290         s_cosf-ppc64 and s_cosf-power8.
10291         * sysdeps/powerpc/fpu/s_cosf.c: Remove file.
10292         * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
10293         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
10294         * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
10295         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-power8.S: Likewise.
10296         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-ppc64.c: Likewise.
10297         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf.c: Likewise.
10298         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: Likewise.
10299         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
10300         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf.c: Likewise.
10301         * sysdeps/powerpc/powerpc64/power8/fpu/s_cosf.S: Likewise.
10302         * sysdeps/powerpc/powerpc64/power8/fpu/s_sinf.S: Likewise.
10304 2018-08-17  Florian Weimer  <fweimer@redhat.com>
10306         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
10308 2018-08-17  Istvan Kurucsai  <pistukem@gmail.com>
10310         * malloc/malloc.c (_int_malloc): Additional binning code checks.
10312 2018-08-16  Florian Weimer  <fweimer@redhat.com>
10314         * configure.ac: Add --with-nonshared-cflags option.
10315         * config.make.in (extra-nonshared-cflags): Set variable.
10316         * Makeconfig (CFLAGS-.oS): Use it.
10317         * manual/install.texi (Configuring and compiling): Document
10318         --with-nonshared-cflags.
10319         * configure: Regenerate.
10320         * INSTALL: Likewise.
10322 2018-08-16  Florian Weimer  <fweimer@redhat.com>
10324         * Makeconfig (ASFLAGS): Always append required assembler flags.
10326 2018-08-16  Moritz Eckert  <m.eckert@cs.ucsb.edu>
10328         * malloc/malloc.c (_int_free): Check for corrupt prev_size vs size.
10329         (malloc_consolidate): Likewise.
10331 2018-08-16  Pochang Chen  <johnchen902@gmail.com>
10333         * malloc/malloc.c (_int_malloc.c): Verify size of top chunk.
10335 2018-08-16  Siddhesh Poyarekar  <siddhesh@sourceware.org>
10337         * benchtests/bench-strlen.c (do_test): Allocate buffers before
10338         every strlen call.
10340         * benchtests/bench-strlen.c: Print performance numbers in json.
10342 2018-08-16  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
10344         * sysdeps/powerpc/powerpc64/multiarch/Makefile
10345         (sysdep_routines): Build strcmp-power9 and strncmp-power9
10346         only for little endian.
10347         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
10348         (strncmp): Move __strncmp_power9 inside ifdef __LITTLE_ENDIAN__.
10349         (STRCMP): Move __strcmp_power9 inside ifdef __LITTLE_ENDIAN__.
10350         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S:
10351         Add check for little endian.
10352         * sysdeps/powerpc/powerpc64/multiarch/strcmp.c
10353         (__strcmp_power9): Add check for little endian.
10354         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S:
10355         Add check for little endian.
10356         * sysdeps/powerpc/powerpc64/multiarch/strncmp.c
10357         (__strncmp_power9): Add check for little endian.
10358         * sysdeps/powerpc/powerpc64/power9/strcmp.S: Removed ifdef
10359         __LITTLE_ENDIAN__ and moved to sysdeps/powerpc/powerpc64/le/power9.
10360         * sysdeps/powerpc/powerpc64/power9/strncmp.S: Likewise.
10361         * sysdeps/powerpc/powerpc64/le/power9/strcmp.S: New file.
10362         * sysdeps/powerpc/powerpc64/le/power9/strncmp.S: Likewise.
10364 2018-08-15  Siddhesh Poyarekar  <siddhesh@sourceware.org>
10366         * sysdeps/aarch64/strlen.S (__strlen): Rename to STRLEN.
10367         [!STRLEN](STRLEN): Set to __strlen.
10368         * sysdeps/aarch64/multiarch/strlen.c: New file.
10369         * sysdeps/aarch64/multiarch/strlen_generic.S: Likewise.
10370         * sysdeps/aarch64/multiarch/strlen_asimd.S: Likewise.
10371         * sysdeps/aarch64/multiarch/ifunc-impl-list.c
10372         (__libc_ifunc_impl_list): Add strlen.
10373         * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
10374         strlen_generic and strlen_asimd.
10376 2018-08-15  Wilco Dijkstra  <wdijkstr@arm.com>
10378         * sysdeps/ieee754/flt-32/e_lgammaf_r.c (sin_pif): Use __sinf/__cosf.
10379         * sysdeps/ieee754/flt-32/k_cosf.c (__kernel_cosf): Remove all code.
10380         * sysdeps/ieee754/flt-32/k_sinf.c (__kernel_sinf): Likewise.
10382 2018-08-15  Wilco Dijkstra  <wdijkstr@arm.com>
10384         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate to fix spaces.
10386 2018-08-14  Florian Weimer  <fweimer@redhat.com>
10388         [BZ #23519]
10389         * include/stdio.h (__vfxprintf): Declare.
10390         * stdio-common/fxprintf.c (__vfxprintf): New function.
10391         (__fxprintf): Call it.
10392         * misc/err.c (convert_and_print): Remove function.
10393         (vwarnx, vwarn): Call __fxprintf and __vfxprintf.
10394         * misc/error.c [_LIBC] (error_tail): Call __vfxprintf.
10395         * misc/Makefile (tests): Add tst-warn-wide.
10396         * misc/tst-warn-wide.c: New file.
10398 2018-08-14  Wilco Dijkstra  <wdijkstr@arm.com>
10399             Szabolcs Nagy  <szabolcs.nagy@arm.com>
10401         * NEWS: Mention sinf, cosf, sincosf.
10402         * sysdeps/aarch64/libm-test-ulps: Update ULP for sinf, cosf, sincosf.
10403         * sysdeps/x86_64/fpu/libm-test-ulps: Update ULP for sinf and cosf.
10404         * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: Add definitions of
10405         constants rather than including generic sincosf.h.
10406         * sysdeps/x86_64/fpu/s_sincosf_data.c: Remove.
10407         * sysdeps/ieee754/flt-32/s_cosf.c (cosf): Rewrite.
10408         * sysdeps/ieee754/flt-32/s_sincosf.h (reduced_sin): Remove.
10409         (reduced_cos): Remove.
10410         (sinf_poly): New function.
10411         * sysdeps/ieee754/flt-32/s_sinf.c (sinf): Rewrite.
10413 2018-08-14  Florian Weimer  <fweimer@redhat.com>
10415         [BZ #23521]
10416         [BZ #23522]
10417         * nss/nss_files/files-alias.c (get_next_alias): During :include:
10418         processing, bail out if no room, and close the stream before
10419         returning ERANGE.
10420         * nss/Makefile (tests): Add tst-nss-files-alias-leak.
10421         (tst-nss-files-alias-leak): Link with libdl.
10422         (tst-nss-files-alias-leak.out): Depend on nss_files.
10424         * nss/tst-nss-files-alias-leak.c: New file.
10426 2018-08-14  Florian Weimer  <fweimer@redhat.com>
10428         * nscd/nscd_conf.c (nscd_parse_file): Deallocate old storage for
10429         server_user, stat_user.
10431 2018-08-13  Joseph Myers  <joseph@codesourcery.com>
10433         * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
10434         version to 4.18.
10435         (io_pgetevents): New syscall.
10436         (rseq): Likewise.
10438         * manual/install.texi (Configuring and compiling): Do not list
10439         tools used for testing pretty printers here.
10440         (Tools for Compilation): List Python, PExpect and GDB here.
10441         Update descriptions of uses of Perl and Python.
10442         * INSTALL: Regenerate.
10444         * scripts/build-many-glibcs.py (Context.checkout): Default Linux
10445         version to 4.18.
10447 2018-08-13  Florian Weimer  <fweimer@redhat.com>
10449         * misc/error.c (error): Add missing va_end call.
10450         (error_at_line): Likewise.
10452 2018-08-13  Florian Weimer  <fweimer@redhat.com>
10454         * stdlib/mbstowcs.c (mbstowcs): Remove outdated comment.
10456 2018-08-11  Siddhesh Poyarekar  <siddhesh@sourceware.org>
10458         * benchtests/scripts/benchout.schema.json (properties): Add
10459         new properties.
10461         * benchtests/bench-skeleton.c (main): Add duration and
10462         iterations attributes.
10464 2018-08-10  Paul Eggert  <eggert@cs.ucla.edu>
10466         regex: Gnulib unibyte RRI uses bytes not chars
10467         Adjust the non-glibc code to agree with what Gawk needs for
10468         rational range interpretation (RRI) for regular expression ranges.
10469         In unibyte locales, Gawk wants ranges to use the underlying byte
10470         rather than the character code point.  This change does not affect
10471         glibc proper.
10472         * posix/regcomp.c (parse_byte) [!LIBC && RE_ENABLE_I18N]:
10473         In unibyte locales, use the byte value rather than
10474         running it through btowc.
10476 2018-08-10  Joseph Myers  <joseph@codesourcery.com>
10478         * sysdeps/generic/math-tests-snan.h: New file.
10479         * sysdeps/generic/math-tests.h: Include <math-tests-snan.h>.
10480         (SNAN_TESTS_float): Do not define here.
10481         (SNAN_TESTS_double): Likewise.
10482         (SNAN_TESTS_long_double): Likewise.
10483         (SNAN_TESTS_float128): Likewise.
10484         * sysdeps/i386/fpu/math-tests-snan.h: New file.
10485         * sysdeps/i386/fpu/math-tests.h: Remove file.
10486         * sysdeps/ia64/math-tests-snan.h: New file.
10487         * sysdeps/ia64/math-tests.h: Remove file.
10488         * sysdeps/x86/math-tests.h: Likewise.
10489         * sysdeps/x86_64/fpu/math-tests-snan.h: New file.
10491 2018-08-10  Wilco Dijkstra  <wdijkstr@arm.com>
10492             Szabolcs Nagy  <szabolcs.nagy@arm.com>
10494         * math/Makefile: Add s_sincosf_data.c.
10495         * sysdeps/ia64/fpu/s_sincosf_data.c: New file.
10496         * sysdeps/ieee754/flt-32/s_sincosf.h (abstop12): Add new function.
10497         (sincosf_poly): Likewise.
10498         (reduce_small): Likewise.
10499         (reduce_large): Likewise.
10500         * sysdeps/ieee754/flt-32/s_sincosf.c (sincosf): Rewrite.
10501         * sysdeps/ieee754/flt-32/s_sincosf_data.c: New file with sincosf data.
10502         * sysdeps/m68k/m680x0/fpu/s_sincosf_data.c: New file.
10503         * sysdeps/x86_64/fpu/s_sincosf_data.c: New file.
10505 2018-08-10  Wilco Dijkstra  <wdijkstr@arm.com>
10506             Szabolcs Nagy  <szabolcs.nagy@arm.com>
10508         * sysdeps/aarch64/fpu/math_private.h (roundtoint): Use round.
10509         (converttoint): Use lround.
10510         * sysdeps/ieee754/flt-32/math_config.h (roundtoint): Declare and
10511         document the semantics when TOINT_INTRINSICS is set.
10512         (converttoint): Likewise.
10513         (TOINT_RINT): Remove.
10514         (TOINT_SHIFT): Remove.
10515         * sysdeps/ieee754/flt-32/e_expf.c (__expf): Remove the TOINT_RINT code
10516         path.
10518 2018-08-10  Florian Weimer  <fweimer@redhat.com>
10520         [BZ #23497]
10521         * sysdeps/unix/sysv/linux/getdents64.c (handle_overflow): New
10522         function.
10523         (__old_getdents64): Use getdents64.  Convert entries without
10524         moving them.
10525         * sysdeps/unix/sysv/linux/tst-readdir64-compat.c: New file.
10526         * sysdeps/unix/sysv/linux/Makefile (tests-internal): Add
10527         tst-readdir64-compat.
10529 2018-08-10  Ilya Leoshkevich  <iii@linux.ibm.com>
10531         * sysdeps/s390/s390-32/s390-mcount.S (_mcount):
10532         Fix unwind.
10534 2018-08-10  Ilya Leoshkevich  <iii@linux.ibm.com>
10536         * sysdeps/s390/s390-64/Versions (__fentry__): Add.
10537         * sysdeps/s390/s390-64/s390x-mcount.S: Move the common
10538         code to s390x-mcount.h and #include it.
10539         * sysdeps/s390/s390-64/s390x-mcount.h: New file.
10540         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist
10541         (__fentry__): Add.
10543 2018-08-10  Ilya Leoshkevich  <iii@linux.ibm.com>
10545         * stdlib/Versions: Remove __fentry__.
10546         * sysdeps/i386/Versions: Add __fentry__.
10547         * sysdeps/x86_64/Versions: Add __fentry__.
10549 2018-08-10  Ilya Leoshkevich  <iii@linux.ibm.com>
10551         * sysdeps/s390/Makefile: Register the new tests.
10552         * sysdeps/s390/tst-dl-runtime-mod.S: New file.
10553         * sysdeps/s390/tst-dl-runtime-profile-audit.c: New file.
10554         * sysdeps/s390/tst-dl-runtime-profile-noaudit.c: New file.
10555         * sysdeps/s390/tst-dl-runtime-resolve-audit.c: New file.
10556         * sysdeps/s390/tst-dl-runtime-resolve-noaudit.c: New file.
10557         * sysdeps/s390/tst-dl-runtime.c: New file.
10559 2018-08-10  Ilya Leoshkevich  <iii@linux.ibm.com>
10561         * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_profile):
10562         Do not clobber R0.
10564 2018-08-10  Ilya Leoshkevich  <iii@linux.ibm.com>
10566         * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
10567         Do not clobber R0.
10569 2018-08-10  Ilya Leoshkevich  <iii@linux.ibm.com>
10571         * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_profile):
10572         Do not clobber R0.
10574 2018-08-10  Ilya Leoshkevich  <iii@linux.ibm.com>
10576         * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
10577         Do not clobber R0.
10579 2018-08-10  Ilya Leoshkevich  <iii@linux.ibm.com>
10581         * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_profile):
10582         Use symbolic offsets for stack variables.
10584 2018-08-10  Ilya Leoshkevich  <iii@linux.ibm.com>
10586         * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
10587         Use symbolic offsets for stack variables.
10589 2018-08-10  Ilya Leoshkevich  <iii@linux.ibm.com>
10591         * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_profile):
10592         Use symbolic offsets for stack variables.
10594 2018-08-10  Ilya Leoshkevich  <iii@linux.ibm.com>
10596         * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
10597         Use symbolic offsets for stack variables.
10599 2018-08-09  Joseph Myers  <joseph@codesourcery.com>
10601         * math/gen-libm-test.py: New file.
10602         * math/gen-libm-test.pl: Remove.
10603         * math/Makefile [$(PERL) != no]: Change condition to [PYTHON].
10604         ($(objpfx)libm-test-ulps.h): Use gen-libm-test.py instead of
10605         gen-libm-test.pl.
10606         ($(libm-test-c-noauto-obj)): Likewise.
10607         ($(libm-test-c-auto-obj)): Likewise.
10608         ($(libm-test-c-narrow-obj)): Likewise.
10609         (regen-ulps): Likewise.
10610         * math/README.libm-test: Update references to gen-libm-test.pl.
10611         * math/libm-test-driver.c (struct test_fj_f_data): Update comment
10612         referencing gen-libm-test.pl.
10613         * math/libm-test-nexttoward.inc (nexttoward_test_data): Likewise.
10614         * math/libm-test-support.c: Likewise.
10615         * math/libm-test-support.h: Likewise.
10616         * sysdeps/generic/libm-test-ulps: Likewise.
10618 2018-08-08  Siddhesh Poyarekar  <siddhesh@sourceware.org>
10620         * sysdeps/aarch64/strlen.S [TEST_PAGE_CROSS](MIN_PAGE_SIZE):
10621         Fix value.
10623 2018-08-08  Joseph Myers  <joseph@codesourcery.com>
10625         * math/libm-test-nextdown.inc (do_test): Move comment to ....
10626         * math/libm-test-nexttoward.inc (nexttoward_test_data): ... here.
10628 2018-08-08  Samuel Thibault  <samuel.thibault@ens-lyon.org>
10630         * htl/Versions (__pthread_getspecific, __pthread_setspecific): Add
10631         symbols.
10632         * sysdeps/htl/pthreadP.h [IS_IN (libpthread)] (__pthread_getspecific,
10633         __pthread_setspecific): Add hidden proto.
10634         * sysdeps/htl/pt-getspecific.c (__pthread_getspecific): Add hidden def.
10635         * sysdeps/htl/pt-setspecific.c (__pthread_setspecific): Add hidden def.
10637 2018-08-07  Siddhesh Poyarekar  <siddhesh@sourceware.org>
10639         * benchtests/bench-string.h (buf1_size, buf2_size): New
10640         variables.
10641         (init_sizes): New function.
10642         (test_init): Use it.
10643         (alloc_buf, exit_error): New functions.
10644         (alloc_bufs): Use ALLOC_BUF.
10645         (realloc_bufs): Remove.
10646         * benchtests/bench-memcmp.c (do_test): Adjust.
10647         * benchtests/bench-memset-large.c (do_test): Likewise.
10648         * benchtests/bench-memset-walk.c (do_test): Likewise.
10649         * benchtests/bench-memset.c (do_test): Likewise.
10650         * benchtests/bench-strncmp.c (do_test): Likewise.
10652 2018-08-06  Andreas Schwab  <schwab@suse.de>
10654         * sysdeps/riscv/nptl/tls.h (DB_THREAD_SELF): Use REGISTER instead
10655         of CONST_THREAD_AREA.
10657 2018-08-06  H.J. Lu  <hongjiu.lu@intel.com>
10659         * sysdeps/x86/cpu-features.h (STATE_SAVE_OFFSET): Removed.
10660         (STATE_SAVE_MASK): Likewise.
10661         Don't check __ASSEMBLER__ to include <cpu-features-offsets.h>.
10662         * sysdeps/x86/sysdep.h (STATE_SAVE_OFFSET): New.
10663         (STATE_SAVE_MASK): Likewise.
10664         * sysdeps/x86_64/dl-trampoline.S: Include <cpu-features-offsets.h>
10665         instead of <cpu-features.h>.
10667 2018-08-03  DJ Delorie  <dj@redhat.com>
10669         * sysdeps/riscv/rvf/math_private.h (libc_feholdexcept_setround_riscv):
10670         Move libc_fesetround_riscv after libc_feholdexcept_riscv.
10672         * sysdeps/riscv/rv64/rvd/libm-test-ulps: Update.
10674 2018-08-03  Joseph Myers  <joseph@codesourcery.com>
10676         * math/libm-test-ilogb.inc (ilogb_test_data): Use ',' not ';'
10677         after TEST_* calls.
10678         * math/libm-test-llogb.inc (llogb_test_data): Likewise.
10679         * math/libm-test-logb.inc (logb_test_data): Likewise.
10681 2018-08-03  Wilco Dijkstra  <wdijkstr@arm.com>
10683         * string/strcasestr.c (STRCASESTR): Simplify and speedup first match.
10684         * string/strstr.c (AVAILABLE): Likewise.
10686 2018-08-03  H.J. Lu  <hongjiu.lu@intel.com>
10688         * sysdeps/i386/i686/multiarch/bzero-ia32.S: Don't include
10689         <init-arch.h>.
10690         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core-avx2.S: Likewise.
10691         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core-avx2.S: Likewise.
10692         * sysdeps/x86_64/multiarch/memset-sse2-unaligned-erms.S: Likewise.
10694 2018-08-03  Carlos O'Donell  <carlos@redhat.com>
10696         * po/be.po: Update translation.
10698         * po/be.po: Update translation.
10700 2018-08-03  H.J. Lu  <hongjiu.lu@intel.com>
10702         * sysdeps/x86/cpu-features-offsets.sym
10703         (rtld_global_ro_offsetof): Removed.
10704         (CPU_FEATURES_SIZE): Likewise.
10705         (CPUID_OFFSET): Likewise.
10706         (CPUID_SIZE): Likewise.
10707         (CPUID_EAX_OFFSET): Likewise.
10708         (CPUID_EBX_OFFSET): Likewise.
10709         (CPUID_ECX_OFFSET): Likewise.
10710         (CPUID_EDX_OFFSET): Likewise.
10711         (FAMILY_OFFSET): Likewise.
10712         (MODEL_OFFSET): Likewise.
10713         (FEATURE_OFFSET): Likewise.
10714         (FEATURE_SIZ): Likewise.
10715         (COMMON_CPUID_INDEX_1): Likewise.
10716         (COMMON_CPUID_INDEX_7): Likewise.
10717         (FEATURE_INDEX_1): Likewise.
10718         (RTLD_GLOBAL_RO_DL_X86_CPU_FEATURES_OFFSET): Updated.
10720 2018-08-02  Carlos O'Donell  <carlos@redhat.com>
10722         * localedata/Makefile (INSTALL-SUPPORTED-LOCALES): Remove.
10723         (INSTALL-SUPPORTED-LOCALE-ARCHIVE): Define.
10724         (INSTALL-SUPPORTED-LOCALE-FILES): Define.
10725         (install-locales): Depend on install-locale-archive.
10726         (install-locale-archive): Define.
10727         (install-locale-files): Define.
10728         (build-one-locale): Define macro.
10729         * manual/install.texi (Running make install): Document.
10730         * manual/INSTALL: Regenerate.
10732 2018-08-02  Siddhesh Poyarekar  <siddhesh@sourceware.org>
10734         * benchtests/scripts/compare_strings.py: Import traceback.
10735         (parse_file): Pretty-print error.
10737         * NEWS: Mention the change.
10738         * elf/dl-tunables.list: Rename tune namespace to cpu.
10739         * sysdeps/powerpc/dl-tunables.list: Likewise.
10740         * sysdeps/x86/dl-tunables.list: Likewise.
10741         * sysdeps/aarch64/dl-tunables.list: Rename tune.cpu to
10742         cpu.name.
10743         * elf/dl-hwcaps.c (_dl_important_hwcaps): Adjust.
10744         * elf/dl-hwcaps.h (GET_HWCAP_MASK): Likewise.
10745         * manual/README.tunables: Likewise.
10746         * manual/tunables.texi: Likewise.
10747         * sysdeps/powerpc/cpu-features.c: Likewise.
10748         * sysdeps/unix/sysv/linux/aarch64/cpu-features.c
10749         (init_cpu_features): Likewise.
10750         * sysdeps/x86/cpu-features.c: Likewise.
10751         * sysdeps/x86/cpu-features.h: Likewise.
10752         * sysdeps/x86/cpu-tunables.c: Likewise.
10753         * sysdeps/x86_64/Makefile: Likewise.
10754         * sysdeps/x86/dl-cet.c: Likewise.
10756 2018-08-02  Joseph Myers  <joseph@codesourcery.com>
10758         [BZ #23479]
10759         * sysdeps/mips/bits/fenv.h (FE_INEXACT): Define only if
10760         [__mips_hard_float].
10761         (FE_UNDERFLOW): Likewise.
10762         (FE_OVERFLOW): Likewise.
10763         (FE_DIVBYZERO): Likewise.
10764         (FE_INVALID): Likewise.
10765         (FE_ALL_EXCEPT): Define to 0 if [!__mips_hard_float].
10766         (FE_TOWARDZERO): Define only if [__mips_hard_float].
10767         (FE_UPWARD): Likewise.
10768         (FE_DOWNWARD): Likewise.
10769         (__FE_UNDEFINED): Define if [!__mips_hard_float]
10770         (FE_NOMASK_ENV): Define only if [__mips_hard_float].
10771         * sysdeps/mips/mips64/sfp-machine.h (_FP_DECL_EX): Define only if
10772         [__mips_hard_float].
10773         (FP_ROUNDMODE): Likewise.
10774         (FP_RND_NEAREST): Likewise.
10775         (FP_RND_ZERO): Likewise.
10776         (FP_RND_PINF): Likewise.
10777         (FP_RND_MINF): Likewise.
10778         (FP_EX_INVALID): Likewise.
10779         (FP_EX_OVERFLOW): Likewise.
10780         (FP_EX_UNDERFLOW): Likewise.
10781         (FP_EX_DIVZERO): Likewise.
10782         (FP_EX_INEXACT): Likewise.
10783         (FP_INIT_ROUNDMODE): Likewise.
10784         * sysdeps/mips/nofpu/fesetenv.c: New file.
10785         * sysdeps/mips/nofpu/feupdateenv.c: Likewise.
10787 2018-08-01  Joseph Myers  <joseph@codesourcery.com>
10789         * math/test-misc.c (do_test) [LDBL_MANT_DIG > DBL_MANT_DIG]: Make
10790         code using FE_UNDERFLOW conditional on [FE_UNDERFLOW], code using
10791         FE_OVERFLOW conditional on [FE_OVERFLOW] and code using FE_UPWARD
10792         conditional on [FE_UPWARD].
10794 2018-08-01  Paul Eggert  <eggert@cs.ucla.edu>
10796         regex: fix memory leak in Gnulib
10797         Problem and fix reported by Assaf Gordon in:
10798         https://lists.gnu.org/r/bug-gnulib/2018-07/txtqLKNwBdefE.txt
10799         * posix/regcomp.c (free_charset) [!_LIBC]: Free range_starts and
10800         range_ends members too, as they are defined in 'struct
10801         re_charset_t' even if not _LIBC.  This affects only Gnulib.
10803 2018-08-01  H.J. Lu  <hongjiu.lu@intel.com>
10805         * sysdeps/x86/cpu-features.c (get_common_indeces): Renamed to
10806         ...
10807         (get_common_indices): This.
10808         (init_cpu_features): Updated.
10810 2018-08-01  Joseph Myers  <joseph@codesourcery.com>
10812         * sysdeps/generic/math-tests-snan-payload.h: New file.
10813         * sysdeps/hppa/math-tests-snan-payload.h: Likewise.
10814         * sysdeps/mips/math-tests-snan-payload.h: Likewise.
10815         * sysdeps/riscv/math-tests-snan-payload.h: Likewise.
10816         * sysdeps/generic/math-tests.h: Include
10817         <math-tests-snan-payload.h>.
10818         (SNAN_TESTS_PRESERVE_PAYLOAD): Do not define macro here.
10819         * sysdeps/hppa/math-tests.h: Remove file.
10820         * sysdeps/mips/math-tests.h [!__mips_nan2008]
10821         (SNAN_TESTS_PRESERVE_PAYLOAD): Do not define macro here.
10822         * sysdeps/riscv/math-tests.h (SNAN_TESTS_PRESERVE_PAYLOAD):
10823         Likewise.
10825         * sysdeps/generic/math-tests-snan-cast.h: New file.
10826         * sysdeps/powerpc/math-tests-snan-cast.h: Likewise.
10827         * sysdeps/generic/math-tests.h: Include <math-tests-snan-cast.h>.
10828         (SNAN_TESTS_TYPE_CAST): Do not define macro here.
10829         * sysdeps/powerpc/math-tests.h (SNAN_TESTS_TYPE_CAST): Likewise.
10831 2018-08-01  Carlos O'Donel  <carlos@redhat.com>
10833         * version.h (RELEASE): Set to "development".
10834         (VERSION): Set to "2.28.9000".
10835         * NEWS (2.29): New section.
10837         * version.h (RELEASE): Set to "stable".
10838         (VERSION): Set to "2.28".
10839         * include/features.h (__GLIBC_MINOR__): Set to 2.28.
10840         * NEWS: Add the list of bugs fixed in 2.28.
10842         * po/ca.po: Update to latest version.
10843         * po/cs.po: Likewise
10844         * po/da.po: Likewise
10845         * po/el.po: Likewise
10846         * po/eo.po: Likewise
10847         * po/es.po: Likewise
10848         * po/fi.po: Likewise
10849         * po/fr.po: Likewise
10850         * po/gl.po: Likewise
10851         * po/hu.po: Likewise
10852         * po/ia.po: Likewise
10853         * po/id.po: Likewise
10854         * po/it.po: Likewise
10855         * po/ja.po: Likewise
10856         * po/ko.po: Likewise
10857         * po/lt.po: Likewise
10858         * po/nb.po: Likewise
10859         * po/nl.po: Likewise
10860         * po/pt_BR.po: Likewise
10861         * po/ru.po: Likewise
10862         * po/rw.po: Likewise
10863         * po/sk.po: Likewise
10864         * po/sl.po: Likewise
10865         * po/tr.po: Likewise
10866         * po/zh_CN.po: Likewise
10867         * po/zh_TW.po: Likewise
10869 2018-07-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
10871         * sysdeps/mach/hurd/i386/init-first.c (init1): Move ELF hdr and TLS
10872         initialization...
10873         (init): ... before initializing libpthread.
10875         * mach/mach.h (__mach_setup_tls, mach_setup_tls): Add prototypes.
10876         * mach/setup-thread.c (__mach_setup_thread): Move TLS setup to...
10877         (__mach_setup_tls): ... new function.
10878         (mach_setup_tls): New alias.
10879         * hurd/hurdsig.c (_hurdsig_init): Call __mach_setup_tls after
10880         __mach_setup_thread.
10881         * sysdeps/mach/hurd/profil.c (update_waiter): Likewise.
10882         * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Likewise.
10883         * mach/Versions [libc] (mach_setup_tls): Add symbol.
10884         * sysdeps/mach/hurd/i386/libc.abilist (mach_setup_tls): Likewise.
10886 2018-07-31  Carlos O'Donell  <carlos@redhat.com>
10888         * manual/install.texi: Update versions.
10889         * INSTALL: Regenerate.
10891         * manual/contrib.texi (Contributors): Update contributions.
10893 2018-07-31  Carlos O'Donell  <carlos@redhat.com>
10895         * po/be.po: Update translations.
10897 2018-07-31  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
10899         * sysdeps/sh/libm-test-ulps: Update.
10901 2018-07-30  Carlos O'Donell  <carlos@redhat.com>
10903         * po/bg.po: Update translations.
10904         * po/de.po: Likewise.
10905         * po/hr.po: Likewise.
10906         * po/pt_BR.po: Likewise.
10907         * po/sv.po: Likewise.
10908         * po/vi.po: Likewise.
10910 2018-07-30  H.J. Lu  <hongjiu.lu@intel.com>
10912         [BZ #23467]
10913         * sysdeps/unix/sysv/linux/x86/Makefile (tests): Add
10914         tst-cet-property-1 and tst-cet-property-2 if CET is enabled.
10915         (CFLAGS-tst-cet-property-1.o): New.
10916         (ASFLAGS-tst-cet-property-dep-2.o): Likewise.
10917         ($(objpfx)tst-cet-property-2): Likewise.
10918         ($(objpfx)tst-cet-property-2.out): Likewise.
10919         * sysdeps/unix/sysv/linux/x86/tst-cet-property-1.c: New file.
10920         * sysdeps/unix/sysv/linux/x86/tst-cet-property-2.c: Likewise.
10921         * sysdeps/unix/sysv/linux/x86/tst-cet-property-dep-2.S: Likewise.
10922         * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Parse
10923         each property item until GNU_PROPERTY_X86_FEATURE_1_AND is found.
10925 2018-07-30  H.J. Lu  <hongjiu.lu@intel.com>
10927         [BZ #23458]
10928         * sysdeps/x86/Makefile (tests): Add tst-get-cpu-features-static.
10930 2018-07-28  Samuel Thibault  <samuel.thibault@ens-lyon.org>
10932         * sysdeps/mach/hurd/dl-unistd.h (__access, __brk, __lseek, __read,
10933         __sbrk): Do not set attribute_hidden.
10934         * sysdeps/mach/hurd/not-errno.h: New file.
10935         * sysdeps/mach/hurd/i386/ld.abilist: Update accordingly.
10936         * sysdeps/mach/hurd/i386/localplt.data: Update accordingly.
10938 2018-07-27  Carlos O'Donell  <carlos@redhat.com>
10940         * po/uk.po: Update translations.
10941         * po/cs.po: Likewise.
10942         * po/pl.po: Likewise.
10944 2018-07-27  H.J. Lu  <hongjiu.lu@intel.com>
10946         * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Don't
10947         parse beyond the note end.
10949 2018-07-27  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
10951         * sysdeps/unix/sysv/linux/tst-ofdlocks.c: Return unsupported if
10952         kernel does not support OFD locks.
10953         * sysdeps/unix/sysv/linux/tst-ofdlocks-compat.c: Likewise.
10955 2018-07-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
10957         * sysdeps/mach/hurd/Versions (libc): Make __access and
10958         __access_noerrno external so they can override the ld symbols.
10959         (ld): Make __access, __read, __sbrk, __strtoul_internal, __write,
10960         __writev, __open64, __access_noerrno extern so they can be overrided.
10961         * sysdeps/mach/hurd/i386/libc.abilist: Update accordingly.
10962         * sysdeps/mach/hurd/i386/ld.abilist: Update accordingly.
10964 2018-07-26  Carlos O'Donell  <carlos@redhat.com>
10966         * po/libc.pot: Regenerate.
10968 2018-07-26  Joseph Myers  <joseph@codesourcery.com>
10970         * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
10972 2018-07-26  H.J. Lu  <hongjiu.lu@intel.com>
10974         [BZ #23459]
10975         * sysdeps/x86/cpu-features.c (get_extended_indices): New
10976         function.
10977         (init_cpu_features): Call get_extended_indices for both Intel
10978         and AMD CPUs.
10979         * sysdeps/x86/cpu-features.h (COMMON_CPUID_INDEX_80000001):
10980         Remove "for AMD" comment.
10982 2018-07-26  H.J. Lu  <hongjiu.lu@intel.com>
10984         [BZ # 23456]
10985         * sysdeps/x86/cpu-features.h (index_cpu_LZCNT): Set to
10986         COMMON_CPUID_INDEX_80000001.
10988 2018-07-26  Stefan Liebler  <stli@linux.ibm.com>
10990         * string/tst-xbzero-opt.c (use_test_buffer): New function.
10991         (prepare_test_buffer): Call use_test_buffer as compiler barrier.
10993 2018-07-26  Florian Weimer  <fweimer@redhat.com>
10995         * htl/lockfile.c (flockfile, funlockfile, ftrylockfile): Use weak
10996         aliases for symbols not in the implementation namespace.
10998 2018-07-25  Carlos O'Donell  <carlos@redhat.com>
11000         [BZ #23393]
11001         * localedata/locales/iso14651_t1_common: Deinterlace uppercase and
11002         lowercase in LATIN script.
11003         * localedata/Makefile (test-input): Add en_US.UTF-8.
11004         * localedata/en_US.UTF-8.in: New file.
11005         * posix/tst-fnmatch.input: Add comments and new tests for en_US.UTF-8,
11006         and restore old tests.
11007         * posix/tst-regexloc.c (do_test): Add back range expression test.
11009 2018-07-25  H.J. Lu  <hongjiu.lu@intel.com>
11011         * sysdeps/unix/sysv/linux/ia64/tst-setcontext4.c: New file.
11013 2018-07-25  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
11015         * nptl/threads.h: Move to ...
11016         * sysdeps/nptl/threads.h: ... here.
11017         * sysdeps/hurd/stdc-predef.h: New file.
11019 2018-07-25  H.J. Lu  <hongjiu.lu@intel.com>
11021         * sysdeps/unix/sysv/linux/x86/Makefile (tests): Add
11022         tst-cet-setcontext-1 if CET is enabled.
11023         (CFLAGS-tst-cet-setcontext-1.c): Add -mshstk.
11024         * sysdeps/unix/sysv/linux/x86/tst-cet-setcontext-1.c: New file.
11026 2018-07-25  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
11028         * include/threads.h: Move to ...
11029         * sysdeps/nptl/threads.h: ... here.
11030         * sysdeps/htl/threads.h: New file.
11031         * conform/Makefile (linknamespace-libs-ISO11): Use
11032         static-thread-library instead of linking libpthread.
11033         (linknamespace-libs-XPG4): Revert wrong libcrypt.a addition.
11035 2018-07-25  Florian Weimer  <fweimer@redhat.com>
11037         * nptl/tst-mtx-timedlock.c (do_test): Implement carry from
11038         nanoseconds into seconds.
11039         * nptl/tst-cnd-basic.c (signal_parent): Lock and unlock mutex.
11040         (do_test): Likewise.
11041         * nptl/tst-cnd-timedwait.c (signal_parent): Likewise.
11042         (do_test): Likewise.  Avoid nanosecond overflow and spurious
11043         timeouts due to system load.
11044         * nptl/tst-cnd-broadcast.c (waiting_threads): New variable.
11045         (child_wait): Increment it.
11046         (do_test): Wait as long as necessary until all expected threads
11047         have arrived.
11049 2018-07-25  Vedvyas Shanbhogue  <vedvyas.shanbhogue@intel.com>
11050             H.J. Lu  <hongjiu.lu@intel.com>
11052         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h (ucontext_t): Add
11053         __ssp.
11054         * sysdeps/unix/sysv/linux/x86_64/__start_context.S: Include
11055         <asm/prctl.h> and "ucontext_i.h" when shadow stack is enabled.
11056         (__push___start_context): New.
11057         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Include
11058         <asm/prctl.h>.
11059         (__getcontext): Record the current shadow stack base.  Save the
11060         caller's shadow stack pointer and base.
11061         * sysdeps/unix/sysv/linux/x86_64/makecontext.c: Include
11062         <pthread.h>, <libc-pointer-arith.h> and <sys/prctl.h>.
11063         (__push___start_context): New prototype.
11064         (__makecontext): Call __push___start_context to allocate a new
11065         shadow stack, push __start_context onto the new stack as well
11066         as the new shadow stack.
11067         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Include
11068         <asm/prctl.h>.
11069         (__setcontext): Restore the target shadow stack.
11070         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Include
11071         <asm/prctl.h>.
11072         (__swapcontext): Record the current shadow stack base.  Save
11073         the caller's shadow stack pointer and base. Restore the target
11074         shadow stack.
11075         * sysdeps/unix/sysv/linux/x86_64/sysdep.h
11076         (STACK_SIZE_TO_SHADOW_STACK_SIZE_SHIFT): New.
11077         * sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym (oSSP): New.
11079 2018-07-25  H.J. Lu  <hongjiu.lu@intel.com>
11081         * stdlib/Makefile ((tests): Add tst-setcontext6, tst-setcontext7,
11082         tst-setcontext8 and tst-setcontext9.
11083         * stdlib/tst-setcontext6.c: New file.
11084         * stdlib/tst-setcontext7.c: Likewise.
11085         * stdlib/tst-setcontext8.c: Likewise.
11086         * stdlib/tst-setcontext9.c: Likewise.
11088 2018-07-25  H.J. Lu  <hongjiu.lu@intel.com>
11090         * stdlib/Makefile ((tests): Add tst-setcontext5.
11091         * stdlib/tst-setcontext5.c: New file.
11093 2018-07-25  H.J. Lu  <hongjiu.lu@intel.com>
11095         * stdlib/Makefile (tests): Add tst-setcontext4.
11096         * stdlib/tst-setcontext4.c: New file.
11098 2018-07-25  H.J. Lu  <hongjiu.lu@intel.com>
11100         * stdlib/Makefile (tests): Add tst-swapcontext1.
11101         * stdlib/tst-swapcontext1.c: New test.
11103 2018-07-25  H.J. Lu  <hongjiu.lu@intel.com>
11105         * sysdeps/x86/Makefile (tests): Add tst-cet-legacy-1,
11106         tst-cet-legacy-2, tst-cet-legacy-2a, tst-cet-legacy-3,
11107         tst-cet-legacy-4, tst-cet-legacy-4a, tst-cet-legacy-4b
11108         and tst-cet-legacy-4c.
11109         (modules-names): Add tst-cet-legacy-mod-1, tst-cet-legacy-mod-2
11110         and tst-cet-legacy-mod-4.
11111         (CFLAGS-tst-cet-legacy-2.c): New.
11112         (CFLAGS-tst-cet-legacy-mod-1.c): Likewise.
11113         (CFLAGS-tst-cet-legacy-mod-2.c): Likewise.
11114         (CFLAGS-tst-cet-legacy-3.c): Likewise.
11115         (CFLAGS-tst-cet-legacy-4.c): Likewise.
11116         (CFLAGS-tst-cet-legacy-mod-4.c): Likewise.
11117         ($(objpfx)tst-cet-legacy-1): Likewise.
11118         ($(objpfx)tst-cet-legacy-2): Likewise.
11119         ($(objpfx)tst-cet-legacy-2.out): Likewise.
11120         ($(objpfx)tst-cet-legacy-2a): Likewise.
11121         ($(objpfx)tst-cet-legacy-2a.out): Likewise.
11122         ($(objpfx)tst-cet-legacy-4): Likewise.
11123         ($(objpfx)tst-cet-legacy-4.out): Likewise.
11124         ($(objpfx)tst-cet-legacy-4a): Likewise.
11125         ($(objpfx)tst-cet-legacy-4a.out): Likewise.
11126         (tst-cet-legacy-4a-ENV): Likewise.
11127         ($(objpfx)tst-cet-legacy-4b): Likewise.
11128         ($(objpfx)tst-cet-legacy-4b.out): Likewise.
11129         (tst-cet-legacy-4b-ENV): Likewise.
11130         ($(objpfx)tst-cet-legacy-4c): Likewise.
11131         ($(objpfx)tst-cet-legacy-4c.out): Likewise.
11132         (tst-cet-legacy-4c-ENV): Likewise.
11133         * sysdeps/x86/tst-cet-legacy-1.c: New file.
11134         * sysdeps/x86/tst-cet-legacy-2.c: Likewise.
11135         * sysdeps/x86/tst-cet-legacy-2a.c: Likewise.
11136         * sysdeps/x86/tst-cet-legacy-3.c: Likewise.
11137         * sysdeps/x86/tst-cet-legacy-4.c: Likewise.
11138         * sysdeps/x86/tst-cet-legacy-4a.c: Likewise.
11139         * sysdeps/x86/tst-cet-legacy-4b.c: Likewise.
11140         * sysdeps/x86/tst-cet-legacy-4c.c: Likewise.
11141         * sysdeps/x86/tst-cet-legacy-mod-1.c: Likewise.
11142         * sysdeps/x86/tst-cet-legacy-mod-2.c: Likewise.
11143         * sysdeps/x86/tst-cet-legacy-mod-4.c: Likewise.
11145 2018-07-25  H.J. Lu  <hongjiu.lu@intel.com>
11147         * sysdeps/i386/nptl/tcb-offsets.sym (SSP_BASE_OFFSET): New.
11148         * sysdeps/i386/nptl/tls.h (tcbhead_t): Replace __glibc_reserved2
11149         with ssp_base.
11150         * sysdeps/x86_64/nptl/tcb-offsets.sym (SSP_BASE_OFFSET): New.
11151         * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Replace __glibc_reserved2
11152         with ssp_base.
11154 2018-07-25  Andreas Schwab  <schwab@suse.de>
11156         [BZ #23442]
11157         * locale/weightwc.h (findidx): Handle the case where usrc is a
11158         prefix of cp but one character too short.
11160 2018-07-24  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
11162         * NEWS: Add ISO C threads addition.
11164 2018-07-24  Florian Weimer  <fweimer@redhat.com>
11166         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
11167         [__LINUX_KERNEL_VERSION < 0x040D00] (__ASSUME_MLOCK2)
11168         (__ASSUME_COPY_FILE_RANGE): Undefine.  Kernel support was added in
11169         4.13.
11171 2018-07-24  H.J. Lu  <hongjiu.lu@intel.com>
11173         * sysdeps/unix/sysv/linux/x86/include/asm/prctl.h: New file.
11174         * sysdeps/unix/sysv/linux/x86/cpu-features.c: Include
11175         <sys/prctl.h> and <asm/prctl.h>.
11176         (get_cet_status): Call arch_prctl with ARCH_CET_STATUS.
11177         * sysdeps/unix/sysv/linux/x86/dl-cet.h: Include <sys/prctl.h>
11178         and <asm/prctl.h>.
11179         (dl_cet_allocate_legacy_bitmap): Call arch_prctl with
11180         ARCH_CET_LEGACY_BITMAP.
11181         (dl_cet_disable_cet): Call arch_prctl with ARCH_CET_DISABLE.
11182         (dl_cet_lock_cet): Call arch_prctl with ARCH_CET_LOCK.
11183         * sysdeps/x86/libc-start.c: Include <startup.h>.
11185 2018-07-24  Florian Weimer  <fweimer@redhat.com>
11187         * sysdeps/unix/sysv/linux/sh/kernel-features.h (__ASSUME_STATX):
11188         Undefine.  Suggested by Romain Naour <romain.naour@gmail.com>.
11190 2018-07-24  Rical Jasan  <rj@2c3t.io>
11191             Adhemerval Zanella  <adhemerval.zanella@linaro.org>
11192             Juan Manuel Torres Palma  <jmtorrespalma@gmail.com>
11194         [BZ #14092]
11195         * manual/debug.texi: Update adjacent chapter name.
11196         * manual/probes.texi: Likewise.
11197         * manual/threads.texi (ISO C Threads): New section.
11198         (POSIX Threads): Convert to a section.
11200 2018-07-24  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
11201             Juan Manuel Torres Palma  <jmtorrespalma@gmail.com>
11203         [BZ# 14092]
11204         * nptl/Makefile (tests): Add new test files.
11205         * nptl/tst-call-once.c : New file. Tests C11 functions and types.
11206         * nptl/tst-cnd-basic.c: Likewise.
11207         * nptl/tst-cnd-broadcast.c: Likewise.
11208         * nptl/tst-cnd-timedwait.c: Likewise.
11209         * nptl/tst-mtx-basic.c: Likewise.
11210         * nptl/tst-mtx-recursive.c: Likewise.
11211         * nptl/tst-mtx-timedlock.c: Likewise.
11212         * nptl/tst-mtx-trylock.c: Likewise.
11213         * nptl/tst-thrd-basic.c: Likewise.
11214         * nptl/tst-thrd-detach.c: Likewise.
11215         * nptl/tst-thrd-sleep.c: Likewise.
11216         * nptl/tst-tss-basic.c: Likewise.
11218 2018-07-24  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
11220         [BZ #14092]
11221         * sysdeps/unix/sysv/linux/aarch64/libc.abilist [GLIBC_2.28]
11222         (thrd_current, thrd_equal, thrd_sleep, thrd_yield): Add C11 thread
11223         symbols.
11224         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
11225         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
11226         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
11227         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
11228         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
11229         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
11230         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
11231         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
11232         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
11233         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
11234         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
11235         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
11236         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
11237         Likewise.
11238         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
11239         Likewise.
11240         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
11241         Likewise.
11242         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
11243         * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
11244         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
11245         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
11246         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
11247         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
11248         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
11249         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
11250         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
11251         * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist [[GLIBC_2.28]
11252         (call_once, cnd_broadcast, cnd_destroy, cnd_init, cnd_signal,
11253         cnd_timedwait, cnd_wait, mtx_destroy, mtx_init, mtx_lock,
11254         mtx_timedlock, mtx_trylock, mtx_unlokc, thrd_create, thrd_detach,
11255         thrd_exit, thrd_join, tss_create, tss_delete, tss_get, tss_set):
11256         Likewise.
11257         * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist: Likewise.
11258         * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: Likewise.
11259         * sysdeps/unix/sysv/linux/arm/libpthread.abilist: Likewise.
11260         * sysdeps/unix/sysv/linux/hppa/libpthread.abilist: Likewise.
11261         * sysdeps/unix/sysv/linux/i386/libpthread.abilist: Likewise.
11262         * sysdeps/unix/sysv/linux/ia64/libpthread.abilist: Likewise.
11263         * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist: Likewise.
11264         * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist: Likewise.
11265         * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist: Likewise.
11266         * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist: Likewise.
11267         * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist: Likewise.
11268         * sysdeps/unix/sysv/linux/nios2/libpthread.abilist: Likewise.
11269         ikewise.
11270         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist:
11271         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread-le.abilist:
11272         Likewise.
11273         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread.abilist:
11274         Likewise.
11275         * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist: Likewise.
11276         * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist: Likewise.
11277         * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist: Likewise.
11278         * sysdeps/unix/sysv/linux/sh/libpthread.abilist: Likewise.
11279         * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist: Likewise.
11280         * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist: Likewise.
11281         * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: Likewise.
11282         * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: Likewise.
11284         [BZ #14092]
11285         * conform/data/threads.h-data (thread_local): New macro.
11286         (TSS_DTOR_ITERATIONS): Likewise.
11287         (tss_t): New type.
11288         (tss_dtor_t): Likewise.
11289         (tss_create): New function.
11290         (tss_get): Likewise.
11291         (tss_set): Likewise.
11292         (tss_delete): Likewise.
11293         * nptl/Makefile (libpthread-routines): Add tss_create, tss_delete,
11294         tss_get, and tss_set objects.
11295         * nptl/Versions (libpthread) [GLIBC_2.28]: Likewise.
11296         * nptl/tss_create.c: New file.
11297         * nptl/tss_delete.c: Likewise.
11298         * nptl/tss_get.c: Likewise.
11299         * nptl/tss_set.c: Likewise.
11300         * sysdeps/nptl/threads.h (thread_local): New define.
11301         (TSS_DTOR_ITERATIONS): Likewise.
11302         (tss_t): New typedef.
11303         (tss_dtor_t): Likewise.
11304         (tss_create): New prototype.
11305         (tss_get): Likewise.
11306         (tss_set): Likewise.
11307         (tss_delete): Likewise.
11309         [BZ #14092]
11310         * conform/data/threads.h-data (cnd_t): New type.
11311         (cnd_init): New function.
11312         (cnd_signal): Likewise.
11313         (cnd_broadcast): Likewise.
11314         (cnd_wait): Likewise.
11315         (cnd_timedwait): Likewise.
11316         (cnd_destroy): Likewise.
11317         * nptl/Makefile (libpthread-routines): Add cnd_broadcast,
11318         cnd_destroy, cnd_init, cnd_signal, cnd_timedwait, and cnd_wait
11319         object.
11320         * nptl/Versions (libpthread) [GLIBC_2.28]: Likewise.
11321         * nptl/cnd_broadcast.c: New file.
11322         * nptl/cnd_destroy.c: Likewise.
11323         * nptl/cnd_init.c: Likewise.
11324         * nptl/cnd_signal.c: Likewise.
11325         * nptl/cnd_timedwait.c: Likewise.
11326         * nptl/cnd_wait.c: Likewise.
11327         * sysdeps/nptl/threads.h (cnd_t): New type.
11328         (cnd_init): New prototype.
11329         (cnd_signa): Likewise.
11330         (cnd_broadcast): Likewise.
11331         (cnd_wait): Likewise.
11332         (cnd_timedwait): Likewise.
11333         (cnd_destroy): Likewise.
11335         [BZ #14092]
11336         * conform/data/threads.h-data (ONCE_FLAG_INIT): New macro.
11337         (once_flag): New type.
11338         (call_once): New function.
11339         * nptl/Makefile (libpthread-routines): Add call_once object.
11340         * nptl/Versions (libphread) [GLIBC_2.28]: Add call_once symbol.
11341         * nptl/call_once.c: New file.
11342         * sysdeps/nptl/threads.h (ONCE_FLAG_INIT): New define.
11343         (once_flag): New type.
11344         (call_once): New prototype.
11346         [BZ #14092]
11347         * conform/data/threads.h-data (mtx_plain): New constant.
11348         (mtx_recursive): Likewise.
11349         (mtx_timed): Likewise.
11350         (mtx_t): New type.
11351         (mtx_init): New function.
11352         (mtx_lock): Likewise.
11353         (mtx_timedlock): Likewise.
11354         (mtx_trylock): Likewise.
11355         (mtx_unlock): Likewise.
11356         (mtx_destroy): Likewise.
11357         * nptl/Makefile (libpthread-routines): Add mtx_destroy, mtx_init,
11358         mtx_lock, mtx_timedlock, mtx_trylock, and mtx_unlock object.
11359         * nptl/Versions (libpthread) [GLIBC_2.28]): Add mtx_init, mtx_lock,
11360         mtx_timedlock, mtx_trylock, mtx_unlock, and mtx_destroy.
11361         * nptl/mtx_destroy.c: New file.
11362         * nptl/mtx_init.c: Likewise.
11363         * nptl/mtx_lock.c: Likewise.
11364         * nptl/mtx_timedlock.c: Likewise.
11365         * nptl/mtx_trylock.c: Likewise.
11366         * nptl/mtx_unlock.c: Likewise.
11367         * sysdeps/nptl/threads.h (mtx_plain): New enumeration.
11368         (mtx_recursive): Likewise.
11369         (mtx_timed): Likewise.
11370         (mtx_t): New type.
11371         (mtx_init): New prototype.
11372         (mtx_lock): Likewise.
11373         (mtx_timedlock): Likewise.
11374         (mtx_trylock): Likewise.
11375         (mtx_unlock): Likewise.
11376         (mtx_destroy): Likewise.
11378         [BZ #14092]
11379         * conform/Makefile (conformtest-headers-ISO11): Add threads.h.
11380         (linknamespace-libs-ISO11): Add libpthread.a.
11381         * conform/data/threads.h-data: New file: add C11 thrd_* types and
11382         functions.
11383         * include/stdc-predef.h (__STDC_NO_THREADS__): Remove definition.
11384         * nptl/Makefile (headers): Add threads.h.
11385         (libpthread-routines): Add new C11 thread thrd_create, thrd_current,
11386         thrd_detach, thrd_equal, thrd_exit, thrd_join, thrd_sleep, and
11387         thrd_yield.
11388         * nptl/Versions (libpthread) [GLIBC_2.28]): Add new C11 thread
11389         thrd_create, thrd_current, thrd_detach, thrd_equal, thrd_exit,
11390         thrd_join, thrd_sleep, and thrd_yield symbols.
11391         * nptl/descr.h (struct pthread): Add c11 field.
11392         * nptl/pthreadP.h (ATTR_C11_THREAD): New define.
11393         * nptl/pthread_create.c (START_THREAD_DEFN): Call C11 thread start
11394         routine with expected function prototype.
11395         (__pthread_create_2_1): Add C11 threads check based on attribute
11396         value.
11397         * sysdeps/unix/sysdep.h (INTERNAL_SYSCALL_CANCEL): New macro.
11398         * nptl/thrd_create.c: New file.
11399         * nptl/thrd_current.c: Likewise.
11400         * nptl/thrd_detach.c: Likewise.
11401         * nptl/thrd_equal.c: Likewise.
11402         * nptl/thrd_exit.c: Likewise.
11403         * nptl/thrd_join.c: Likewise.
11404         * nptl/thrd_priv.h: Likewise.
11405         * nptl/thrd_sleep.c: Likewise.
11406         * nptl/thrd_yield.c: Likewise.
11407         * include/threads.h: Likewise.
11409 2018-07-24  H.J. Lu  <hongjiu.lu@intel.com>
11411         * bits/indirect-return.h: New file.
11412         * misc/sys/cdefs.h (__glibc_has_attribute): New.
11413         * sysdeps/x86/bits/indirect-return.h: Likewise.
11414         * stdlib/Makefile (headers): Add bits/indirect-return.h.
11415         * stdlib/ucontext.h: Include <bits/indirect-return.h>.
11416         (swapcontext): Add __INDIRECT_RETURN.
11417         * string/tst-xbzero-opt.c (ALWAYS_INLINE): New.
11418         (prepare_test_buffer): Use it.
11420 2018-07-24  Andreas Schwab  <schwab@suse.de>
11422         [BZ #23448]
11423         * iconvdata/ibm1364.c (MAX_NEEDED_OUTPUT) [FROM_LOOP]: Define.
11424         (MAX_NEEDED_INPUT) [TO_LOOP]: Define.
11426 2018-07-24  H.J. Lu  <hongjiu.lu@intel.com>
11428         * sysdeps/unix/sysv/linux/i386/vfork.S (SYSCALL_ERROR_HANDLER):
11429         Redefine if shadow stack is enabled.
11430         (SYSCALL_ERROR_LABEL): Likewise.
11431         (__vfork): Pop shadow stack and jump back to to caller directly
11432         when shadow stack is in use.
11433         * sysdeps/unix/sysv/linux/x86_64/vfork.S (SYSCALL_ERROR_HANDLER):
11434         Redefine if shadow stack is enabled.
11435         (SYSCALL_ERROR_LABEL): Likewise.
11436         (__vfork): Pop shadow stack and jump back to to caller directly
11437         when shadow stack is in use.
11439 2018-07-24  H.J. Lu  <hongjiu.lu@intel.com>
11441         * sysdeps/x86_64/tst-quadmod1.S (func): Add endbr64 if IBT is
11442         enabled.
11443         (foo): Likewise.
11444         * sysdeps/x86_64/tst-quadmod2.S (func) : Likewise.
11445         (foo): Likewise.
11447 2018-07-20  Joseph Myers  <joseph@codesourcery.com>
11449         * scripts/build-many-glibcs.py (Context.checkout): Default
11450         binutils version to 2.31 branch.
11452 2018-07-20  Zong Li  <zong@andestech.com>
11454         * scripts/build-many-glibcs.py (Context.checkout_tar): Change the
11455         URL of gcc's tarball.
11457 2018-07-20  Florian Weimer  <fweimer@redhat.com>
11459         [BZ #23396]
11460         * posix/regcomp.c (build_equiv_class): When comparing weights, do
11461         not compare an extra byte after the end of the weights.
11463 2018-07-20  Samuel Thibault  <samuel.thibault@ens-lyon.org>
11465         * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Set multiple_threads
11466         to 1.
11467         * sysdeps/hurd/include/hurd/port.h [!_ISOMAC]: Do not declare libc
11468         hidden prototypes.
11469         * sysdeps/mach/include/mach-shortcuts-hidden.h [!_ISOMAC]: Likewise.
11470         * sysdeps/mach/include/mach/mach_traps.h [!_ISOMAC]: Likewise.
11471         * scripts/check-execstack.awk: Consider `xfail' variable containing a
11472         list of libraries whose stack executability is expected.
11473         * elf/Makefile ($(objpfx)check-execstack.out): Pass
11474         $(check-execstack-xfail) to check-execstack.awk through `xfail'
11475         variable.
11476         * sysdeps/mach/hurd/i386/Makefile (check-execstack-xfail): Set to ld.so
11477         libc.so libpthread.so.
11479 2018-07-20  Thomas Schwinge  <tschwinge@gnu.org>
11481         * sysdeps/mach/hurd/socket.c (__socket): Handle SOCK_CLOEXEC and
11482         SOCK_NONBLOCK.
11483         * sysdeps/mach/hurd/socketpair.c (__socketpair): Handle SOCK_CLOEXEC
11484         and SOCK_NONBLOCK.
11485         * sysdeps/mach/hurd/pipe2.c: New file, copy from pipe.c.  Evolve it to
11486         implement __pipe2.
11487         * sysdeps/mach/hurd/pipe.c (__pipe): Reimplement using __pipe2.
11489 2018-07-19  Leonardo Sandoval  <leonardo.sandoval.gonzalez@intel.com>
11491         * benchtests/scripts/compare_bench.py (__main__): use the argparse
11492         library to improve command line parsing.
11493         (__main__): make schema file as optional parameter (--schema),
11494         defaulting to benchtests/scripts/benchout.schema.json.
11495         (main): move out of the parsing stuff to __main_  and leave it
11496         only as caller of main comparison functions.
11498 2018-07-19  H.J. Lu  <hongjiu.lu@intel.com>
11500         * NEWS: Add a note for Intel CET status.
11501         * manual/install.texi: Likewise.
11502         * INSTALL: Regenerated.
11504 2018-07-18  Quentin PAGÈS  <provaires@quentino.fr>
11506         [BZ #23140]
11507         * localedata/locales/oc_FR (mon): Rename to...
11508         (alt_mon): This, then update October (typo fix).
11509         (mon): New content (genitive case, month names preceded by
11510         "de" or "d’").
11512         [BZ #23422]
11513         * localedata/locales/oc_FR (abday): Update all items.
11514         (day): Update Wednesday and Saturday (typo fixes).
11515         (abmon): Update all items, except May.
11516         (d_fmt): Update "%d.%m.%Y" -> "%d/%m/%Y".
11517         (LC_IDENTIFICATION): Bump the revision number and date.
11518         Keep the "category" entries in alphabetic order.
11519         (LC_ADDRESS): Remove no longer needed comment.
11520         (LC_COLLATE): Use “copy "ca_ES"”.
11521         (LC_NAME): Set the correct values of "name_fmt", "name_mr", and
11522         "name_mrs".
11524 2018-07-18  Joseph Myers  <joseph@codesourcery.com>
11526         * grp/tst_fgetgrent.c: Include <unistd.h>.
11527         (main): Use mkstemp instead of tmpnam.
11528         * io/test-utime.c (main): Likewise.
11529         * posix/annexc.c (macrofile): Change to modifiable array.
11530         (main): Remove macrofile here.
11531         (get_null_defines): Use mkstemp instead of tmpnam.  Do not remove
11532         macrofile here.
11533         (check_header): Do not remove macrofile here.
11534         * posix/bug-getopt1.c: Include <stdlib.h>.
11535         (do_test): Use mkstemp instead of tmpnam.
11536         * posix/bug-getopt2.c: Include <stdlib.h>.
11537         (do_test): Use mkstemp instead of tmpnam.
11538         * posix/bug-getopt3.c: Include <stdlib.h>.
11539         (do_test): Use mkstemp instead of tmpnam.
11540         * posix/bug-getopt4.c: Include <stdlib.h>.
11541         (do_test): Use mkstemp instead of tmpnam.
11542         * posix/bug-getopt5.c: Include <stdlib.h>.
11543         (do_test): Use mkstemp instead of tmpnam.
11544         * stdio-common/bug7.c: Include <stdlib.h> and <unistd.h>.
11545         (main): Use mkstemp instead of tmpnam.
11546         * stdio-common/tst-fdopen.c: Include <stdlib.h>.
11547         (main): Use mkstemp instead of tmpnam.
11548         * stdio-common/tst-ungetc.c: Include <stdlib.h>.
11549         (main): use mkstemp instead of tmpnam.
11550         * stdlib/isomac.c (macrofile): Change to modifiable array.
11551         (main): Remove macrofile here.
11552         (get_null_defines): Use mkstemp instead of tmpnam.  Do not remove
11553         macrofile here.
11554         (check_header): Do not remove macrofile here.
11556 2018-07-18  H.J. Lu  <hongjiu.lu@intel.com>
11558         * manual/tunables.texi: Document glibc.tune.x86_ibt and
11559         glibc.tune.x86_shstk.
11561 2018-07-18  H.J. Lu  <hongjiu.lu@intel.com>
11563         * NEWS: Mention --enable-cet.
11564         * manual/install.texi: Document --enable-cet.
11565         * INSTALL: Regenerated.
11567 2018-07-18  H.J. Lu  <hongjiu.lu@intel.com>
11569         * sysdeps/x86_64/multiarch/memcmp-sse4.S (BRANCH_TO_JMPTBL_ENTRY):
11570         Add _CET_NOTRACK before indirect jump to jump table.
11572 2018-07-18  H.J. Lu  <hongjiu.lu@intel.com>
11574         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S
11575         (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
11576         to jump table.
11578 2018-07-18  H.J. Lu  <hongjiu.lu@intel.com>
11580         * sysdeps/i386/i686/multiarch/strcat-sse2.S
11581         (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
11582         to jump table.
11584 2018-07-18  H.J. Lu  <hongjiu.lu@intel.com>
11586         * sysdeps/i386/i686/multiarch/strcpy-sse2.S
11587         (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
11588         to jump table.
11590 2018-07-18  H.J. Lu  <hongjiu.lu@intel.com>
11592         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S
11593         (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
11594         to jump table.
11596 2018-07-18  H.J. Lu  <hongjiu.lu@intel.com>
11598         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S
11599         (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
11600         to jump table.
11601         (BRANCH_TO_JMPTBL_ENTRY_TAIL): Likewise.
11603 2018-07-18  H.J. Lu  <hongjiu.lu@intel.com>
11605         * sysdeps/i386/i686/multiarch/memcmp-sse4.S
11606         (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
11607         to jump table.
11609 2018-07-18  H.J. Lu  <hongjiu.lu@intel.com>
11611         * sysdeps/i386/i686/multiarch/memset-sse2.S
11612         (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
11613         to jump table.
11615 2018-07-18  H.J. Lu  <hongjiu.lu@intel.com>
11617         * sysdeps/i386/i686/memcmp.S (memcmp): Add _CET_NOTRACK before
11618         indirect jump to jump table.
11620 2018-07-18  H.J. Lu  <hongjiu.lu@intel.com>
11622         * sysdeps/x86_64/multiarch/memcpy-ssse3.S
11623         (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
11624         to jump table.
11625         (MEMCPY): Likewise.
11627 2018-07-18  H.J. Lu  <hongjiu.lu@intel.com>
11629         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S
11630         (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
11631         to jump table.
11632         (MEMCPY): Likewise.
11634 2018-07-18  H.J. Lu  <hongjiu.lu@intel.com>
11636         * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Add
11637         _CET_NOTRACK before indirect jump to jump table.
11639 2018-07-18  H.J. Lu  <hongjiu.lu@intel.com>
11641         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S
11642         (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
11643         to jump table.
11645 2018-07-18  H.J. Lu  <hongjiu.lu@intel.com>
11647         * sysdeps/x86_64/strcmp.S (STRCMP): Add _CET_NOTRACK before
11648         indirect jump to jump table.
11650 2018-07-18  Valery Timiriliyev  <timiriliyev@gmail.com>
11652         [BZ #22241]
11653         * localedata/Makefile (test-input): Add sah_RU.UTF-8.
11654         (LOCALES): Likewise.
11655         * localedata/SUPPORTED (sah_RU/UTF-8): New entry.
11656         * localedata/locales/sah_RU: New file.
11657         * localedata/sah_RU.UTF-8.in: New file.
11659 2018-07-17  H.J. Lu  <hongjiu.lu@intel.com>
11661         * sysdeps/i386/add_n.S: Include <sysdep.h>, instead of
11662         "sysdep.h".
11663         (__mpn_add_n): Save and restore %ebx if IBT is enabed.  Add
11664         _CET_ENDBR to indirect jump targets and adjust jump destination
11665         for _CET_ENDBR.
11666         * sysdeps/i386/i686/add_n.S: Include <sysdep.h>, instead of
11667         "sysdep.h".
11668         (__mpn_add_n): Save and restore %ebx if IBT is enabed.  Add
11669         _CET_ENDBR to indirect jump targets and adjust jump destination
11670         for _CET_ENDBR.
11671         * sysdeps/i386/sub_n.S: Include <sysdep.h>, instead of
11672         "sysdep.h".
11673         (__mpn_sub_n): Save and restore %ebx if IBT is enabed.  Add
11674         _CET_ENDBR to indirect jump targets and adjust jump destination
11675         for _CET_ENDBR.
11677 2018-07-17  H.J. Lu  <hongjiu.lu@intel.com>
11679         * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Add
11680         _CET_ENDBR.
11682 2018-07-17  H.J. Lu  <hongjiu.lu@intel.com>
11684         * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_return): Add
11685         _CET_ENDBR.
11686         (_dl_tlsdesc_undefweak): Likewise.
11687         (_dl_tlsdesc_dynamic): Likewise.
11688         (_dl_tlsdesc_resolve_abs_plus_addend): Likewise.
11689         (_dl_tlsdesc_resolve_rel): Likewise.
11690         (_dl_tlsdesc_resolve_rela): Likewise.
11691         (_dl_tlsdesc_resolve_hold): Likewise.
11692         * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_return): Likewise.
11693         (_dl_tlsdesc_undefweak): Likewise.
11694         (_dl_tlsdesc_dynamic): Likewise.
11695         (_dl_tlsdesc_resolve_rela): Likewise.
11696         (_dl_tlsdesc_resolve_hold): Likewise.
11698 2018-07-17  H.J. Lu  <hongjiu.lu@intel.com>
11700         * sysdeps/i386/crti.S (_init): Add _CET_ENDBR.
11701         (_fini): Likewise.
11702         * sysdeps/x86_64/crti.S (_init): Likewise.
11703         (_fini): Likewise.
11705 2018-07-17  Rafal Luzynski  <digitalfreak@lingonborough.com>
11707         [BZ #23140]
11708         * localedata/locales/os_RU (mon): Rename to...
11709         (alt_mon): This.
11710         (mon): Import from CLDR (genitive case).
11712 2018-07-17  H.J. Lu  <hongjiu.lu@intel.com>
11714         * sysdeps/x86/cpu-features.c: Always include <dl-cet.h> and
11715         cet-tunables.h> when CET is enabled.
11717 2018-07-16  H.J. Lu  <hongjiu.lu@intel.com>
11719         [BZ #21598]
11720         * configure.ac: Add --enable-cet.
11721         * configure: Regenerated.
11722         * elf/Makefille (all-built-dso): Add a comment.
11723         * elf/dl-load.c (filebuf): Moved before "dynamic-link.h".
11724         Include <dl-prop.h>.
11725         (_dl_map_object_from_fd): Call _dl_process_pt_note on PT_NOTE
11726         segment.
11727         * elf/dl-open.c: Include <dl-prop.h>.
11728         (dl_open_worker): Call _dl_open_check.
11729         * elf/rtld.c: Include <dl-prop.h>.
11730         (dl_main): Call _rtld_process_pt_note on PT_NOTE segment.  Call
11731         _rtld_main_check.
11732         * sysdeps/generic/dl-prop.h: New file.
11733         * sysdeps/i386/dl-cet.c: Likewise.
11734         * sysdeps/unix/sysv/linux/x86/cpu-features.c: Likewise.
11735         * sysdeps/unix/sysv/linux/x86/dl-cet.h: Likewise.
11736         * sysdeps/x86/cet-tunables.h: Likewise.
11737         * sysdeps/x86/check-cet.awk: Likewise.
11738         * sysdeps/x86/configure: Likewise.
11739         * sysdeps/x86/configure.ac: Likewise.
11740         * sysdeps/x86/dl-cet.c: Likewise.
11741         * sysdeps/x86/dl-procruntime.c: Likewise.
11742         * sysdeps/x86/dl-prop.h: Likewise.
11743         * sysdeps/x86/libc-start.h: Likewise.
11744         * sysdeps/x86/link_map.h: Likewise.
11745         * sysdeps/i386/dl-trampoline.S (_dl_runtime_resolve): Add
11746         _CET_ENDBR.
11747         (_dl_runtime_profile): Likewise.
11748         (_dl_runtime_resolve_shstk): New.
11749         (_dl_runtime_profile_shstk): Likewise.
11750         * sysdeps/linux/x86/Makefile (sysdep-dl-routines): Add dl-cet
11751         if CET is enabled.
11752         (CFLAGS-.o): Add -fcf-protection if CET is enabled.
11753         (CFLAGS-.os): Likewise.
11754         (CFLAGS-.op): Likewise.
11755         (CFLAGS-.oS): Likewise.
11756         (asm-CPPFLAGS): Add -fcf-protection -include cet.h if CET
11757         is enabled.
11758         (tests-special): Add $(objpfx)check-cet.out.
11759         (cet-built-dso): New.
11760         (+$(cet-built-dso:=.note)): Likewise.
11761         (common-generated): Add $(cet-built-dso:$(common-objpfx)%=%.note).
11762         ($(objpfx)check-cet.out): New.
11763         (generated): Add check-cet.out.
11764         * sysdeps/x86/cpu-features.c: Include <dl-cet.h> and
11765         <cet-tunables.h>.
11766         (TUNABLE_CALLBACK (set_x86_ibt)): New prototype.
11767         (TUNABLE_CALLBACK (set_x86_shstk)): Likewise.
11768         (init_cpu_features): Call get_cet_status to check CET status
11769         and update dl_x86_feature_1 with CET status.  Call
11770         TUNABLE_CALLBACK (set_x86_ibt) and TUNABLE_CALLBACK
11771         (set_x86_shstk).  Disable and lock CET in libc.a.
11772         * sysdeps/x86/cpu-tunables.c: Include <cet-tunables.h>.
11773         (TUNABLE_CALLBACK (set_x86_ibt)): New function.
11774         (TUNABLE_CALLBACK (set_x86_shstk)): Likewise.
11775         * sysdeps/x86/sysdep.h (_CET_NOTRACK): New.
11776         (_CET_ENDBR): Define if not defined.
11777         (ENTRY): Add _CET_ENDBR.
11778         * sysdeps/x86/dl-tunables.list (glibc.tune): Add x86_ibt and
11779         x86_shstk.
11780         * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve): Add
11781         _CET_ENDBR.
11782         (_dl_runtime_profile): Likewise.
11784 2018-07-16  Rogerio A. Cardoso  <rcardoso@linux.vnet.ibm.com>
11786         [BZ #21895]
11787         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Remove condition code for
11788         restore r2 on longjmp.
11789         * sysdeps/powerpc/powerpc64/Makefile: Added tst-setjmp-bug21895-static to
11790         test list.
11791         Added rules to build test tst-setjmp-bug21895-static.
11792         Added module setjmp-bug21895 and rules to build a shared object from it.
11793         * sysdeps/powerpc/powerpc64/setjmp-bug21895.c: New test file.
11794         * sysdeps/powerpc/powerpc64/tst-setjmp-bug21895-static.c: New test file.
11796 2018-07-15  Wilco Dijkstra  <wdijkstr@arm.com>
11798         * benchtests/bench-strcasestr.c: Rename __strnlen to strnlen.
11799         * benchtests/bench-strstr.c: Likewise.
11800         * string/memmem.c (FASTSEARCH): Define.
11801         * string/str-two-way.h (two_way_short_needle): Minor cleanups.
11802         Add support for FASTSEARCH.
11803         * string/strcasestr.c (AVAILABLE): Use read-ahead __strnlen.
11804         * string/strstr.c (AVAILABLE): Use read-ahead __strnlen.
11805         (FASTSEARCH): Define.
11806         * string/test-strcasestr.c: Rename __strnlen to strnlen.
11807         * string/test-strstr.c: Likewise.
11809 2018-07-15  H.J. Lu  <hongjiu.lu@intel.com>
11811         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Undef
11812         SHADOW_STACK_POINTER_OFFSET after including <jmp_buf-ssp.h>.
11814 2018-07-14  Igor Tsimbalist  <igor.v.tsimbalist@intel.com>
11815             H.J. Lu  <hongjiu.lu@intel.com>
11817         * sysdeps/i386/__longjmp.S: Include <jmp_buf-ssp.h>.
11818         (__longjmp): Restore shadow stack pointer if shadow stack is
11819         enabled, SHADOW_STACK_POINTER_OFFSET is defined and __longjmp
11820         isn't defined for __longjmp_cancel.
11821         * sysdeps/i386/bsd-_setjmp.S: Include <jmp_buf-ssp.h>.
11822         (_setjmp): Save shadow stack pointer if shadow stack is enabled
11823         and SHADOW_STACK_POINTER_OFFSET is defined.
11824         * sysdeps/i386/bsd-setjmp.S: Include <jmp_buf-ssp.h>.
11825         (setjmp): Save shadow stack pointer if shadow stack is enabled
11826         and SHADOW_STACK_POINTER_OFFSET is defined.
11827         * sysdeps/i386/setjmp.S: Include <jmp_buf-ssp.h>.
11828         (__sigsetjmp): Save shadow stack pointer if shadow stack is
11829         enabled and SHADOW_STACK_POINTER_OFFSET is defined.
11830         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Include
11831         <jmp_buf-ssp.h>.
11832         (____longjmp_chk): Restore shadow stack pointer if shadow stack
11833         is enabled and SHADOW_STACK_POINTER_OFFSET is defined.
11834         * sysdeps/unix/sysv/linux/x86/Makefile (gen-as-const-headers):
11835         Remove jmp_buf-ssp.sym.
11836         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
11837         <jmp_buf-ssp.h>.
11838         (____longjmp_chk): Restore shadow stack pointer if shadow stack
11839         is enabled and SHADOW_STACK_POINTER_OFFSET is defined.
11840         * sysdeps/x86/Makefile (gen-as-const-headers): Add
11841         jmp_buf-ssp.sym.
11842         * sysdeps/x86/jmp_buf-ssp.sym: New dummy file.
11843         * sysdeps/x86_64/__longjmp.S: Include <jmp_buf-ssp.h>.
11844         (__longjmp): Restore shadow stack pointer if shadow stack is
11845         enabled, SHADOW_STACK_POINTER_OFFSET is defined and __longjmp
11846         isn't defined for __longjmp_cancel.
11847         * sysdeps/x86_64/setjmp.S: Include <jmp_buf-ssp.h>.
11848         (__sigsetjmp): Save shadow stack pointer if shadow stack is
11849         enabled and SHADOW_STACK_POINTER_OFFSET is defined.
11851 2018-07-14  H.J. Lu  <hongjiu.lu@intel.com>
11853         [BZ #22563]
11854         * nptl/pthread_create.c: Include <tls-setup.h>.
11855         (__pthread_create_2_1): Call tls_setup_tcbhead.
11856         * sysdeps/generic/tls-setup.h: New file.
11857         * sysdeps/x86/nptl/tls-setup.h: Likewise.
11858         * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
11859         * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET):
11860         Likewise.
11861         * sysdeps/i386/nptl/tls.h (tcbhead_t): Rename __glibc_reserved1
11862         to feature_1.
11863         * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Likewise.
11864         * sysdeps/x86/sysdep.h (X86_FEATURE_1_IBT): New.
11865         (X86_FEATURE_1_SHSTK): Likewise.
11866         (CET_ENABLED): Likewise.
11867         (IBT_ENABLED): Likewise.
11868         (SHSTK_ENABLED): Likewise.
11870 2018-07-13  Rafal Luzynski  <digitalfreak@lingonborough.com>
11872         [BZ #23208]
11873         * localedata/Makefile (test-input): Add dsb_DE.UTF-8.
11874         (LOCALES): Likewise.
11875         * localedata/dsb_DE.UTF-8.in: New file.
11876         * localedata/locales/dsb_DE (LC_COLLATE): Fix syntax error.
11878 2018-07-12  Florian Weimer  <fweimer@redhat.com>
11880         * nptl/allocatestack.c [_STACK_GROWS_UP] (allocate_stack): Call
11881         __mprotect, not mprotect.
11883 2018-07-11  Florian Weimer  <fweimer@redhat.com>
11885         * io/Makefile (headers): Add bits/statx.h.
11887 2018-07-10  Mike FABIAN  <mfabian@redhat.com>
11889         * localedata/charmaps/UTF-8: Use correct Unicode version 11.0.0 in comment.
11890         * localedata/locales/i18n_ctype: Use correct Unicode version in comments
11891         and headers.
11892         * localedata/unicode-gen/utf8_gen.py: Add option to specify Unicode version
11893         * localedata/unicode-gen/Makefile: Use option to specify Unicode version
11894         for utf8_gen.py
11896 2018-07-10  Florian Weimer  <fweimer@redhat.com>
11898         * io/Makefile (routines): Add statx.
11899         (tests-internal): Add tst-statx.
11900         * io/Versions (GLIBC_2.28): Export statx.
11901         * io/bits/statx.h: New file.
11902         * io/sys/stat.h [__USE_GNU]: Include it.
11903         * io/fcntl.h [__USE_GNU] (AT_STATX_SYNC_TYPE)
11904         (AT_STATX_SYNC_AS_STAT, AT_STATX_FORCE_SYNC, AT_STATX_DONT_SYNC):
11905         Define.
11906         * io/statx.c: New file.
11907         * io/statx_generic.: Likewise.
11908         * io/tst-statx.: Likewise.
11909         * include/bits/statx.h: Likewise.
11910         * sysdeps/unix/sysv/linux/kernel-features.h
11911         [__LINUX_KERNEL_VERSION >= 0x040B00] (__ASSUME_STATX): Define.
11912         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
11913         [__LINUX_KERNEL_VERSION < 0x040D00] (__ASSUME_STATX): Undefine.
11914         * sysdeps/unix/sysv/linux/ia64/kernel-features.h (__ASSUME_STATX):
11915         Undefine.
11916         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
11917         [__LINUX_KERNEL_VERSION < 0x040C00] (__ASSUME_STATX): Undefine.
11918         * sysdeps/unix/sysv/linux/statx.c: New file.
11919         * manual/filesys.texi: Note that statx is undocumented.
11920         * sysdeps/**/libc*.abilist: Update.
11922 2018-07-10  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
11924         * sysdeps/unix/sysv/linux/tst-ofdlocks-compat.c: Add a comment about
11925         a kernel issue which lead to test failure in some cases.
11927 2018-07-10  Florian Weimer  <fweimer@redhat.com>
11929         [BZ #23036]
11930         * posix/regexec.c (check_node_accept_bytes): When comparing
11931         weights, do not compare an extra byte after the end of the
11932         weights.
11934 2018-07-10  Florian Weimer  <fweimer@redhat.com>
11936         * libio/readline.c: Fix copyright year.
11937         * libio/tst-readline.c Likewise.
11938         * nss/tst-nss-files-hosts-getent.c: Likewise.
11940 2018-07-06  Florian Weimer  <fweimer@redhat.com>
11942         [BZ #18991]
11943         * nss/nss_files/files-XXX.c (internal_getent): Use
11944         __libc_readline_unlocked.  Seek back to the start of the line if
11945         parsing failes with ERANGE.
11946         (get_contents_ret, get_contents): Remove.
11947         * nss/tst-nss-files-hosts-getent.c: New file.
11948         * nss/Makefile (tests): Add tst-nss-files-hosts-getent.
11949         (tst-nss-files-hosts-getent): Link with -ldl.
11951 2018-07-06  Florian Weimer  <fweimer@redhat.com>
11953         * include/stdio.h (__libc_readline_unlocked): Declare.
11954         (__ftello64, __fseeko64): Declare aliases.
11955         * libio/readline.c: New file.
11956         * libio/tst-readline.c: Likewise.
11957         (routines): Add readline.
11958         (tests-internal): Add tst-readlime.
11959         * libio/Versions (GLIBC_PRIVATE): Export __fseeko64, __ftello64,
11960         __libc_readline_unlocked.
11961         * libio/fseeko.c (__fseeko): Rename from fseeko.
11962         (fseeko): Add alias.
11963         [__OFF_T_MATCHES_OFF64_T] (fseeko64, __fseeko64): Likewise.
11964         * libio/fseeko64.c (__fseeko64): Rename from fseeko64.
11965         (fseeko64): Add alias.
11966         * libio/ftello.c [__OFF_T_MATCHES_OFF64_T] (__ftello64): Add alias.
11967         * libio/ftello64.c (__ftello64): Rename from ftello64.
11968         (ftello64): Add alias.
11970 2018-07-06  Szabolcs Nagy  <szabolcs.nagy@arm.com>
11972         * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h (HWCAP_IMPORTANT): Add
11973         HWCAP_ATOMICS.
11975 2018-07-06  Szabolcs Nagy  <szabolcs.nagy@arm.com>
11977         * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (init_cpu_features):
11978         Use dl_hwcap without masking.
11979         * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h (HWCAP_IMPORTANT):
11980         Remove HWCAP_CPUID.
11982 2018-07-06  Florian Weimer  <fweimer@redhat.com>
11984         * conform/conformtest.pl (checknamespace): Escape literal braces
11985         in regular expressions.
11987 2018-07-06  Amit Pawar  <amit.pawar@amd.com>
11989         * sysdeps/x86/cpu-features.c (get_common_indeces):
11990         AVX_Fast_Unaligned_Load is enabled when AVX2 is detected.
11991         * sysdeps/x86/cpu-features.c (init_cpu_features):
11992         AVX_Fast_Unaligned_Load is disabled for Excavator core.
11994 2018-07-05  Florian Weimer  <fweimer@redhat.com>
11996         * csu/Makefile (CFLAGS-static-reloc.os): Build with stack
11997         protector.
11998         (CFLAGS-elf-init.oS): Likewise.
12000 2018-07-05  Florian Weimer  <fweimer@redhat.com>
12001             Carlos O'Donell  <carlos@redhat.com>
12003         * debug/Makefile (CFLAGS-stack_chk_fail_local.c): Remove
12004         $(no-stack-protector).  stack_chk_fail_local.c can be compiled
12005         with stack protector enabled because there is no risk of infinite
12006         recursion.
12008 2018-07-05  Maciej W. Rozycki  <macro@mips.com>
12010         [BZ #19818]
12011         [BZ #23307]
12012         * libc-abis (ABSOLUTE): New ABI.
12013         * sysdeps/unix/sysv/linux/mips/libc-abis (ABSOLUTE): New ABI.
12014         * NEWS: Mention the new ABI.
12016 2018-07-05  Florian Weimer  <fweimer@redhat.com>
12018         [BZ # 17662]
12019         * libio/stdio.h [__USE_GNU] (RENAME_NOREPLACE, RENAME_EXCHANGE)
12020         (RENAME_WHITEOUT): Define.
12021         [__USE_GNU] (renameat2): Declare.
12022         * stdio-common/Makefile (routines): Add renameat2.
12023         (tests): Add tst-renameat2.
12024         * stdio-common/Versions (GLIBC_2_28): Export renameat2.
12025         * stdio-common/renameat2.c: New file.
12026         * stdio-common/tst-renameat2.c: Likewise.
12027         * sysdeps/unix/sysv/linux/renameat2.c: Likewise.
12028         * manual/filesys.texi (Temporary Files): Note that renameat2 is
12029         undocumented.
12030         * sysdeps/unix/sysv/linux/kernel-features.h
12031         [__LINUX_KERNEL_VERSION >= 0x030F00] (__ASSUME_RENAMEAT2): Define.
12032         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
12033         [__LINUX_KERNEL_VERSION < 0x031100] (__ASSUME_RENAMEAT2): Undefine.
12034         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
12035         [__LINUX_KERNEL_VERSION < 0x031100] (__ASSUME_RENAMEAT2): Undefine.
12036         * sysdeps/unix/sysv/linux/sh/kernel-features.h
12037         [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_RENAMEAT2): Undefine.
12038         * sysdeps/unix/sysv/linux/sparc/kernel-features.h
12039         [__LINUX_KERNEL_VERSION < 0x031000] (__ASSUME_RENAMEAT2): Undefine.
12040         * include/stdio.h (__renameat): Add alias for renameat.
12041         * stdio-common/renameat.c (__renameat): Rename from renameat.
12042         Add hidden definition and alias.
12043         * sysdeps/unix/sysv/linux/renameat.c: Likewise.
12044         * sysdeps/mach/hurd/renameat.c: Likewise.
12045         * sysdeps/**/libc*.abilist: Add renameat2.
12047 2018-07-04  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
12049         * posix/bug-regex33.c: Fix build after regex sync.
12051 2018-07-04  Carlos O'Donell  <carlos@redhat.com>
12053         [BZ #23164]
12054         * localedata/tst-langinfo-setlocale.c: New file.
12055         * localedata/tst-langinfo-setlocale-static.c: New file.
12056         * localedata/tst-langinfo-newlocale.c: New file.
12057         * localedata/tst-langinfo-newlocale-static.c: New file.
12058         * localedata/Makefile (test-srcs): Remove tst-langinfo. Add
12059         tst-langinfo-setlocale, tst-langinfo-setlocale-static,
12060         tst-langinfo-newlocale, tst-langinfo-newlocale-static.
12061         (tests-static): Remove tst-langinfo-static. Add
12062         tst-langinfo-newlocale-static, tst-langinfo-setlocale-static.
12063         (tests-special): Remove $(objpfx)tst-langinfo.out,
12064         $(objpfx)tst-langinfo-static.out. Add
12065         $(objpfx)tst-langinfo-setlocale.out,
12066         $(objpfx)tst-langinfo-newlocale.out,
12067         $(objpfx)tst-langinfo-setlocale-static.out,
12068         $(objpfx)tst-langinfo-newlocale-static.out.
12069         ($(objpfx)tst-langinfo.out): Remove.
12070         ($(objpfx)tst-langinfo-static.out): Remove.
12071         ($(objpfx)tst-langinfo-newlocale.out): New target.
12072         ($(objpfx)tst-langinfo-newlocale-static.out): New target.
12073         (test-xfail-tst-langinfo-newlocale-static): Add.
12074         ($(objpfx)tst-langinfo-setlocale.out): New target.
12075         ($(objpfx)tst-langinfo-setlocale-static.out): New target.
12076         * localedata/tst-langinfo.c: Call test_locale.
12077         * localedata/tst-langinfo.sh: Add LC_MONETARY CURRENCY_SYMBOL test
12078         data.
12080 2018-07-04  Florian Weimer  <fweimer@redhat.com>
12082         testrun.sh: Implement --tool=strace, --tool=valgrind
12083         * Makefile (testrun-script): Define variable.
12084         (testrun.sh): Use variable.
12085         * manual/install.texi (Tools for Compilation): make 4.0 or later
12086         is required.
12087         * configure.ac: Check for make 4.0 or later.
12088         * INSTALL: Regenerate.
12089         * configure: Likewise.
12091 2018-07-04  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
12093         [BZ #23233]
12094         [BZ #21163]
12095         [BZ #18986]
12096         [BZ #13762]
12097         * posix/Makefile (tests): Add bug-regex37 and bug-regex38.
12098         * posix/PCRE.tests: Remove invalid test.
12099         * posix/bug-regex28.c: Fix expected values for used syntax.
12100         * posix/bug-regex37.c: New file.
12101         * posix/bug-regex38.c: Likewise.
12102         * posix/regcomp.c: Sync with gnulib.
12103         * posix/regex.c: Likewise.
12104         * posix/regex.h: Likewise.
12105         * posix/regex_internal.c: Likewise.
12106         * posix/regex_internal.h: Likewise.
12107         * posix/regexec.c: Likewise.
12109 2018-06-26  Mike FABIAN  <mfabian@redhat.com>
12111         [BZ #23308]
12112         * unicode-gen/Makefile (UNICODE_VERSION): Set to 11.0.0.
12113         * localedata/unicode-gen/DerivedCoreProperties.txt: Update to Unicode 11.0.0.
12114         * localedata/unicode-gen/EastAsianWidth.txt: likewise.
12115         * localedata/unicode-gen/PropList.txt: likewise.
12116         * localedata/unicode-gen/UnicodeData.txt: likewise.
12117         * localedata/charmaps/UTF-8: Regenerate.
12118         * localedata/locales/i18n_ctype: likewise.
12119         * localedata/locales/tr_TR: likewise.
12120         * localedata/locales/translit_circle: likewise.
12121         * localedata/locales/translit_cjk_compat: likewise.
12122         * localedata/locales/translit_combining: likewise.
12123         * localedata/locales/translit_compat: likewise.
12124         * localedata/locales/translit_font: likewise.
12125         * localedata/locales/translit_fraction: likewise.
12127 2018-07-03  Florian Weimer  <fweimer@redhat.com>
12129         [BZ #23363]
12130         * stdio-common/tst-printf.c (DEC, INT, UNS, fp_test): Remove.
12131         * stdio-common/tst-printf.sh: Adjust expected output.
12132         * LICENSES: Update.
12134 2018-07-03  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
12136         * sysdeps/mach/hurd/i386/libc.abilist [GLIBC_2.28] (fcntl): Remove
12137         symbol.
12139 2018-07-02  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
12141         * stdio-common/Makefile (test-srcs): Add tst-printfsz-islongdouble.
12142         (tests-special) Add $(objpfx)tst-printfsz-islongdouble.out.
12143         ($(objpfx)tst-printfsz-islongdouble.out): New build and run rule.
12144         * stdio-common/tst-printfsz-islongdouble.c: New file.
12145         * stdio-common/tst-printfsz-islongdouble.sh: Likewise.
12146         * sysdeps/ieee754/ldbl-128ibm-compat/Makefile:
12147         [subdir == stdio-common] (routines): Add ieee128-printf_size.
12148         [subdir == stdio-common] (tests-internal): Add
12149         test-printf-size-ieee128, and test-printf-size-ibm128.
12150         [subdir == stdio-common] (CFLAGS-test-printf-size-ieee128.c)
12151         (CFLAGS-test-printf-size-ibm128.c): New variables.
12152         [subdir == stdio-common] (tests-special): Add
12153         $(objpfx)test-printf-size-ieee128.out and
12154         $(objpfx)test-printf-size-ibm128.out.
12155         [subdir == stdio-common] ($(objpfx)test-printf-size-ieee128.out)
12156         ($(objpfx)test-printf-size-ibm128.out): New build and run rules.
12157         * sysdeps/ieee754/ldbl-128ibm-compat/Versions (libc): Add
12158         __printf_sizeieee128.
12159         * sysdeps/ieee754/ldbl-128ibm-compat/ieee128-printf_size.c:
12160         New file.
12161         * sysdeps/ieee754/ldbl-128ibm-compat/test-printf-size-ibm128.c:
12162         Likewise.
12163         * sysdeps/ieee754/ldbl-128ibm-compat/test-printf-size-ieee128.c:
12164         Likewise.
12166 2018-07-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
12168         * sysdeps/ieee754/flt-32/e_powf.c (__powf): Use uint32_t.
12169         (exp2f_inline): Likewise.
12170         * sysdeps/ieee754/flt-32/math_config.h (__math_oflowf): Likewise.
12171         (__math_uflowf): Likewise.
12172         (__math_may_uflowf): Likewise.
12173         (__math_divzerof): Likewise.
12174         (__math_invalidf): Likewise.
12175         * sysdeps/ieee754/flt-32/math_errf.c (xflowf): Likewise.
12176         (__math_oflowf): Likewise.
12177         (__math_uflowf): Likewise.
12178         (__math_may_uflowf): Likewise.
12179         (__math_divzerof): Likewise.
12180         (__math_invalidf): Likewise.
12182 2018-06-29  DJ Delorie  <dj@redhat.com>
12183             Carlos O'Donell  <carlos@redhat.com>
12185         [BZ #23329]
12186         * include/libc-symbols.h: Comment the freeres framework.
12187         * include/set-hooks.h: Include libc-symbols.h.  Fix comment.
12188         * dlfcn/Makefile (libdl-routines): Add dlfreeres.
12189         * dlfcn/Versions (GLIBC_PRIVATE): Add __libdl_freeres.
12190         * dlfcn/dlerror.c: Include libc-symbols.h
12191         (__dlerror_main_freeres): New function.
12192         * dlfcn/dlfreeres.c: New file.
12193         * dlfcn/sdlfreeres.c: New file.
12194         * include/dlfcn.h: Declare __dlerror_main_freeres.
12195         * malloc/set-freeres.c: Declare __libdl_freeres, and
12196         __libpthread_freeres.
12197         (__libc_subfreeres): Call __libdl_freeres, and __libpthread_freeres if
12198         the releavant libraries are loaded.
12199         * malloc/thread-freeres.c: Add comments.
12200         * nptl/Makefile (libpthread-routines): Add nptlfreeres.
12201         * nptl/Version (GLIBC_PRIVATE): Add __libpthread_freeres.
12202         * nptl/allocatestack.c (__nptl_free_stacks): New function.
12203         (__free_stacks): Rename to...
12204         (free_stacks): ...this. Mark static.
12205         (queue_stack): Call free_stacks.
12206         * nptl/libc_pthread_init.c [SHARED] (freeres_libpthread): Delete.
12207         * nptl/nptl-init.c: Delete delcaration of nptl_freeres.
12208         * sysdeps/nptl/pthread-functions.h (pthread_functions): Remove
12209         ptr_freeres element from struct.
12210         (pthread_functions): Remove .ptr_freeres from struct initializer.
12211         [SHARED] (nptl_freeres): Remove.
12212         * nptl/nptlfreeres.c: New file.
12213         * nptl/pthreadP.h
12214         [IS_IN (libpthread) && SHARED ] (__unwind_freeres): Rename to...
12215         [IS_IN (libpthread)] (__nptl_unwind_freeres): ...this.  Mark
12216         attribute_hidden.
12217         (__free_stacks): Rename to...
12218         (__nptl_stacks_freeres): ...this.
12219         (__shm_directory_freeres): Declare.
12220         * nptl/unwind-forcedunwind.c (__unwind_freeres): Rename to...
12221         (__nptl_unwind_freeres): ...this.
12222         * resolv/res-close.c: Add comment.
12223         * resolv/resolv_conf.c: Include libc-symbols.h.
12224         * string/strerror_l.c: Include libc-symbols.h.
12225         * sunrpc/rpc_thread.c: Include libc-symbols.h.
12226         * sysdeps/mach/strerror_l.c: Inlcude libc-symbols.h
12227         * sysdeps/unix/sysv/linux/shm-directory.c (freeit): Rename to...
12228         [IS_IN (libpthread)] (__shm_directory_freeres): ...this.
12230 2018-06-29  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
12232         * stdlib/tst-strfmon_l.c: Add tests for long double.
12234 2018-06-29  Michael Wolf  <milupo@sorbzilla.de>
12236         [BZ #23208]
12237         * localedata/SUPPORTED (dsb_DE/UTF-8): New entry.
12238         * localedata/locales/dsb_DE: New file.
12240 2018-06-29  Rafal Luzynski  <digitalfreak@lingonborough.com>
12242         [BZ #23140]
12243         * localedata/locales/hy_AM (mon): Synchronize with CLDR (lowercase,
12244         genitive case).
12245         (alt_mon): New entry, import from CLDR (nominative case).
12247 2018-06-29  Sylvain Lesage  <severo@rednegra.net>
12249         [BZ #22996]
12250         * localedata/locales/es_BO (LC_PAPER): Change to “copy "en_US"”.
12252 2018-06-29  Siddhesh Poyarekar  <siddhesh@sourceware.org>
12254         * sysdeps/aarch64/multiarch/memcpy_falkor.S (__memcpy_falkor):
12255         Use vector registers.
12257         * sysdeps/aarch64/multiarch/memmove_falkor.S
12258         (__memcpy_falkor): Use vector registers.
12260 2018-06-29  Martin Sebor  <msebor@redhat.com>
12262         * manual/stdio.texi (Customizing Printf): Mention interaction
12263         with GCC built-ins.
12265 2018-06-29  Maciej W. Rozycki  <macro@mips.com>
12267         [BZ #23307]
12268         * elf/dl-lookup.c (check_match): Do not reject a symbol whose
12269         `st_value' is 0 if `st_shndx' is SHN_ABS.
12270         * elf/tst-absolute-zero.c: New file.
12271         * elf/tst-absolute-zero-lib.c: New file.
12272         * elf/tst-absolute-zero-lib.lds: New file.
12273         * elf/Makefile (tests): Add `tst-absolute-zero'.
12274         (modules-names): Add `tst-absolute-zero-lib'.
12275         (LDLIBS-tst-absolute-zero-lib.so): New variable.
12276         ($(objpfx)tst-absolute-zero-lib.so): New dependency.
12277         ($(objpfx)tst-absolute-zero: New dependency.
12279 2018-06-29  Zack Weinberg  <zackw@panix.com>
12281         * configure.ac: New command-line option --disable-crypt.
12282         Force --disable-nss-crypt when --disable-crypt is given, with a
12283         warning if it was explicitly enabled.
12284         * configure: Regenerate.
12285         * config.make.in: New boolean substitution variable $(build-crypt).
12286         * Makeconfig: Only include 'crypt' in all-subdirs and rpath-dirs
12287         when $(build-crypt).
12288         * manual/install.texi: Document --disable-crypt.
12289         * INSTALL: Regenerate.
12291         * crypt/Makefile: Remove code conditional on $(crypt-in-libc),
12292         which is never set.
12293         * conform/Makefile: Only include libcrypt.a in
12294         linknamespace-libs-xsi and linknamespace-libs-XPG4
12295         when $(build-crypt).
12296         * elf/Makefile (CFLAGS-tst-linkall-static.c): Only define
12297         USE_CRYPT to 1 when $(build-crypt).
12298         (tst-linkall-static): Only link libcrypt.a when $(build-crypt).
12299         (localplt-built-dso): Only add libcrypt.so when $(build-crypt).
12300         * elf/tst-linkall-static.c: Only include crypt.h when USE_CRYPT.
12302 2018-06-29  Zack Weinberg  <zackw@panix.com>
12304         * crypt/crypt.h, posix/unistd.h: Update comments and
12305         prototypes for crypt and crypt_r.
12307         * manual/crypt.texi (Cryptographic Functions): New initial
12308         exposition.
12309         (crypt): Section renamed to 'Passphrase Storage'.  Full rewrite.
12310         (Unpredictable Bytes): Improve initial exposition.  Clarify error
12311         behavior of getentropy and getrandom.
12312         * manual/examples/genpass.c: Generate a salt using getentropy
12313         instead of the current time. Use hash $5$ (SHA-2-256).
12314         * manual/examples/testpass.c: Demonstrate validation against
12315         hashes generated with three different one-way functions.
12317         * manual/intro.texi: crypt.texi does not need an overview
12318         anymore.
12320         * manual/nss.texi, manual/memory.texi, manual/socket.texi
12321         * manual/terminal.texi: Consistently refer to "passphrases"
12322         * instead of "passwords", and to the "user database" instead
12323         * of the "password database".
12324         * manual/users.texi: Similarly.  Add notes about how actual
12325         passphrase hashes are now stored in the shadow database.
12326         Remove 20-year-old junk todo note.
12328 2018-06-29  Zack Weinberg  <zackw@panix.com>
12330         * manual/crypt.texi: Use a normal top-level @node declaration.
12331         Move most of the introductory text to the 'crypt' section.
12332         Move the example programs below the @deftypefun for 'crypt_r'.
12333         Move the 'getpass' section...
12334         * manual/terminal.texi: ...here.
12336 2018-06-29  Zack Weinberg  <zackw@panix.com>
12337             Florian Weimer <fweimer@redhat.com>
12339         * posix/unistd.h: Do not declare encrypt.
12340         (_XOPEN_CRYPT): Remove macro definition.
12341         (crypt): Declare only for _USE_MISC.
12342         * stdlib/stdlib.h: Do not declare setkey.
12343         * crypt/crypt.h: Do not declare encrypt, setkey, encrypt_r, setkey_r.
12344         * sunrpc/Makefile: Do not install des_crypt.h nor rpc_des.h.
12346         * crypt/crypt-entry.c: Make fcrypt a compat symbol.
12347         * crypt/crypt_util.c: Make encrypt, encrypt_r, setkey, setkey_r
12348         into compat symbols.  Don't define initial_perm if it's not
12349         going to be used.
12350         * crypt/cert.c: Link explicitly with the expected versions for
12351         setkey and encrypt.  If they are not available at all, mark
12352         the test as unsupported.
12354         * sunrpc/des_crypt.c: Unconditionally block linkage with
12355         cbc_crypt and ecb_crypt for new binaries.
12356         * sunrpc/des_soft.c: Unconditionally block linkage with
12357         des_setparity for new binaries.
12359         * manual/crypt.texi: Remove the entire "DES Encryption"
12360         section.  Also remove the paragraph talking about FIPS 140-2
12361         from the introduction.
12362         * manual/string.texi (strfry, memfrob): Revise.  Recommend use
12363         of libgcrypt for "real" encryption, not DES.
12364         * manual/conf.texi (Constants for Sysconf): Mention that
12365         _XOPEN_CRYPT is no longer impelemented.
12367         * conform/data/unistd.h-data: Remove crypt function declaration.
12369 2018-06-29  Florian Weimer  <fweimer@redhat.com>
12371         [BZ #23351]
12372         * malloc/hooks.c: Update comments on restoring of dumped heaps.
12373         (disallow_malloc_check): Remove variable.
12374         (__malloc_check_init): Adjust.
12375         (malloc_set_state): Update comment.
12376         * malloc/malloc.c (__malloc_get_state, __malloc_set_state): Remove
12377         declarations.
12379 2018-06-29  Rafal Luzynski  <digitalfreak@lingonborough.com>
12381         [BZ #23140]
12382         * localedata/locales/ast_ES (mon): Rename to...
12383         (alt_mon): This.
12384         (mon): Import from CLDR (genitive case).
12386 2018-06-29  Daniel Alvarez  <dalvarez@redhat.com>
12387             Jakub Sitnicki  <jkbs@redhat.com>
12389         [BZ #21812]
12390         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs_internal): Retry
12391         on NLM_F_DUMP_INTR.
12393 2018-06-28  Szabolcs Nagy  <szabolcs.nagy@arm.com>
12395         * manual/llio.texi: Remove spurious space.
12397 2018-06-28  Florian Weimer  <fweimer@redhat.com>
12399         [BZ #23349]
12400         * time/bits/types/struct_timespec.h: Change header inclusion guard to
12401         _STRUCT_TIMESPEC.
12403 2018-06-28  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
12405         * sysdeps/ieee754/ldbl-128ibm-compat/Versions: Add __strfromieee128,
12406         __strtoieee128, __strtoieee128_l,__wcstoieee128 and __wcstoieee128_l.
12407         * sysdeps/ieee754/ldbl-128ibm-compat/strfromf128.c: New file.
12408         * sysdeps/ieee754/ldbl-128ibm-compat/strtof128.c: New file.
12409         * sysdeps/ieee754/ldbl-128ibm-compat/strtof128_l.c: New file.
12410         * sysdeps/ieee754/ldbl-128ibm-compat/wcstof128.c: New file.
12411         * sysdeps/ieee754/ldbl-128ibm-compat/wcstof128_l.c: New file.
12413 2018-06-27  Maciej W. Rozycki  <macro@mips.com>
12415         [BZ #23266]
12416         * nis/nss_nisplus/nisplus-parser.c (_nss_nisplus_parse_pwent):
12417         Copy and null-terminate entries that are not terminated, in
12418         addition to empty ones.
12420 2018-06-27  Florian Weimer  <fweimer@redhat.com>
12422         [BZ #18023]
12423         * include/alloca.h (stackinfo_alloca_round, extend_alloca)
12424         (extend_alloca_account): Remove.
12425         * manual/stdio.texi (Variable Arguments Output): Update comment.
12427 2018-06-27  Joseph Myers  <joseph@codesourcery.com>
12429         * nptl/sockperf.c: Remove file.
12431 2018-06-27  Florian Weimer  <fweimer@redhat.com>
12433         [BZ #18023]
12434         * elf/dl-deps.c (_dl_map_object_deps): Use struct
12435         scratch_buffer instead of extend_alloca.
12437 2018-06-27  Florian Weimer  <fweimer@redhat.com>
12439         [BZ #18023]
12440         * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Use struct
12441         scratch_buffer instead of extend_alloca.  Update comments.
12443 2018-06-27  Florian Weimer  <fweimer@redhat.com>
12445         [BZ #18023]
12446         * posix/wordexp.c (parse_tilde): Use struct scratch_buffer
12447         instead of extend_alloca.
12449 2018-06-26  Joseph Myers  <joseph@codesourcery.com>
12451         [BZ #13888]
12452         * posix/Makefile (CFLAGS-tst-spawn3.c): New variable.
12453         * posix/tst-spawn3.c (do_test): Put tst-spwan3.pid in OBJPFX, not
12454         /tmp.
12455         * scripts/test-installation.pl: Put temporary files in build
12456         directory, not /tmp.
12457         * stdio-common/Makefile (CFLAGS-bug3.c): New variable.
12458         (CFLAGS-bug4.c): Likewise.
12459         (CFLAGS-bug5.c): Likewise.
12460         (CFLAGS-test-fseek.c): Likewise.
12461         (CFLAGS-test-popen.c): Likewise.
12462         (CFLAGS-test_rdwr.c): Likewise.
12463         * stdio-common/bug3.c (main): Put temporary file in OBJPFX, not
12464         /tmp.
12465         * stdio-common/bug4.c (main): Likewise.
12466         * stdio-common/bug5.c (main): Likewise.
12467         * stdio-common/test-fseek.c (TESTFILE): Likewise.
12468         * stdio-common/test-popen.c (do_test): Likewise.
12469         * stdio-common/test_rdwr.c (main): Likewise.
12471 2018-06-26  Patsy Franklin  <pfrankli@redhat.com>
12473         * nptl/sem_open.c [!__HAVE_64B_ATOMICS] (sem_open): Don't update pad.
12474         (sem_open): Set sem.newsem.pad to zero for valgrind.
12476 2018-06-26  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
12478         [BZ #20251]
12479         * NEWS: Mention fcntl64 addition.
12480         * csu/check_fds.c: Replace __fcntl_nocancel by __fcntl64_nocancel.
12481         * login/utmp_file.c: Likewise.
12482         * sysdeps/posix/fdopendir.c: Likewise.
12483         * sysdeps/posix/opendir.c: Likewise.
12484         * sysdeps/unix/pt-fcntl.c: Likewise.
12485         * include/fcntl.h (__libc_fcntl64, __fcntl64,
12486         __fcntl64_nocancel_adjusted): New prototype.
12487         (__fcntl_nocancel_adjusted): Remove prototype.
12488         * io/Makefile (routines): Add fcntl64.
12489         (CFLAGS-fcntl64.c): New rule.
12490         * io/Versions [GLIBC_2.28] (fcntl64): New symbol.
12491         [GLIBC_PRIVATE] (__libc_fcntl): Rename to __libc_fcntl64.
12492         * io/fcntl.h (fcntl64): Add prototype and redirect if
12493         __USE_FILE_OFFSET64 is defined.
12494         * io/fcntl64.c: New file.
12495         * manual/llio.text: Add a note for which commands fcntl acts a
12496         cancellation point.
12497         * nptl/Makefile (CFLAGS-fcntl64.c): New rule.
12498         * sysdeps/mach/hurd/fcntl.c: Alias fcntl to fcntl64 symbols.
12499         * sysdeps/mach/hurd/i386/libc.abilist [GLIBC_2.28] (fcntl, fcntl64):
12500         New symbols.
12501         * sysdeps/unix/sysv/linux/fcntl.c (__libc_fcntl): Fix F_GETLK64,
12502         F_OFD_GETLK, F_SETLK64, F_SETLKW64, F_OFD_SETLK, and F_OFD_SETLKW for
12503         non-LFS case.
12504         * sysdeps/unix/sysv/linux/fcntl64.c: New file.
12505         * sysdeps/unix/sysv/linux/fcntl_nocancel.c (__fcntl_nocancel): Rename
12506         to __fcntl64_nocancel.
12507         (__fcntl_nocancel_adjusted): Rename to __fcntl64_nocancel_adjusted.
12508         * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): Rename
12509         to __fcntl64_nocancel.
12510         * sysdeps/generic/not-cancel.h: Likewise.
12511         * sysdeps/unix/sysv/linux/tst-ofdlocks.c: New file.
12512         * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-ofdlocks.
12513         * sysdeps/unix/sysv/linux/aarch64/libc.abilist [GLIBC_2.28]
12514         (fcntl64): New symbol.
12515         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
12516         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
12517         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
12518         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
12519         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
12520         * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
12521         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
12522         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
12523         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
12524         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
12525         * sysdeps/unix/sysv/linux/arm/libc.abilist [GLIBC_2.28] (fcntl,
12526         fcntl64): Likewise.
12527         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
12528         * sysdeps/unix/sysv/linux/i386/libc.abilis: Likewise.
12529         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
12530         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
12531         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
12532         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
12533         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
12534         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
12535         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
12536         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
12537         Likewise.
12538         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
12539         Likewise.
12540         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
12541         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
12542         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
12544 2018-06-26  Florian Weimer  <fweimer@redhat.com>
12546         Run thread shutdown functions in an explicit order.
12547         * malloc/thread-freeres.c (__libc_thread_subfreeres): Remove hook
12548         definition.
12549         (__libc_thread_freeres): Call thread shutdown functions
12550         explicitly.
12551         * include/rpc/rpc.h (__rpc_thread_destroy): Add hidden attribute.
12552         * include/string.h (__strerror_thread_freeres): Declare.
12553         * malloc/arena.c (__malloc_arena_thread_freeres): Renamed from
12554         arena_thread_freeres.  No longer static.  Remove thread shutdown
12555         hook registration.
12556         * malloc/malloc-internal.h (__malloc_arena_thread_freeres):
12557         Declare.
12558         * resolv/res-close.c (__res_thread_freeres): Renamed from
12559         res_thread_freeres.  No longer static.  Remove thread shutdown
12560         hook registration.
12561         * resolv/resolv-internal.h (__res_thread_freeres): Declare.
12562         * resolv/resolv_conf.c (freeres): Remove incorrect section
12563         attribute and use libc_freeres_fn.
12564         * string/strerror_l.c (__strerror_thread_freeres): Renamed from
12565         strerror_thread_freeres.  No longer static.  Remove thread
12566         shutdown hook registration.
12567         * sysdeps/mach/strerror_l.c (__strerror_thread_freeres): Likewise.
12568         * sunrpc/rpc_thread.c (__rpc_thread_destroy): Remove thread
12569         shutdown hook registration.
12570         * Makerules (shlib.lds): Do not provide section boundary symbols
12571         for __libc_thread_subfreeres.
12572         * manual/memory.texi (Basic Allocation): Update comment.
12574 2018-06-26  Florian Weimer  <fweimer@redhat.com>
12576         Remove always-defined _RPC_THREAD_SAFE_ macro.
12577         * sunrpc/Makefile (sunrpc-CPPFLAGS, CPPFLAGS, BUILD_CPPFLAGS):
12578         Do not define _RPC_THREAD_SAFE_.
12579         * include/rpc/rpc.h: Remove _RPC_THREAD_SAFE_ preprocessor
12580         conditional.
12581         * sunrpc/clnt_perr.c: Likewise.
12582         * sunrpc/clnt_raw.c: Likewise.
12583         * sunrpc/clnt_simp.c: Likewise.
12584         * sunrpc/key_call.c: Likewise.
12585         * sunrpc/rpc_common.c: Likewise.
12586         * sunrpc/rpc_main.c: Likewise.
12587         * sunrpc/rpc_thread.c: Likewise.
12588         * sunrpc/svc.c: Likewise.
12589         * sunrpc/svc_raw.c: Likewise.
12590         * sunrpc/svc_simple.c: Likewise.
12591         * sumrpc/svcauth_des.c: Likewise.
12593 2018-06-26  Florian Weimer  <fweimer@redhat.com>
12595         * libio/Makefile (tests-internal): Add tst-vtables,
12596         tst-vtables-interposed.
12597         * libio/tst-vtables.c: New file.
12598         * libio/tst-vtables-common.c: Likewise.
12599         * libio/tst-vtables-interposed.c: Likewise.
12601 2018-06-26  Florian Weimer  <fweimer@redhat.com>
12603         * support/support_test_main.c (support_test_main): Only call
12604         setvbuf if not disables.
12605         * support/test-driver.c (main): Check TEST_NO_SETVBUF.
12606         * support/test-driver.h (struct test_config): Add no_setvbuf member.
12608 2018-06-26  Florian Weimer  <fweimer@redhat.com>
12610         [BZ #23313]
12611         * libio/vtables.c (check_stdfiles_vtables): New ELF constructor.
12613 2018-06-25  Florian Weimer  <fweimer@redhat.com>
12615         [BZ #18023]
12616         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
12617         Use struct scratch_buffer instead of extend_alloca.
12619 2018-06-25  Florian Weimer  <fweimer@redhat.com>
12621         [BZ #18023]
12622         * nss/getent.c (initgroups_keys): Use dynarray instead of
12623         extend_alloca.
12625 2018-06-25  Florian Weimer  <fweimer@redhat.com>
12627         [BZ #18023]
12628         * nis/nss_nis/nis-initgroups.c (get_uid, _nss_nis_initgroups_dyn):
12629         Use struct scratch_buffer instead of extend_alloca.
12631 2018-06-25  Florian Weimer  <fweimer@redhat.com>
12633         [BZ #18023]
12634         * nss/nss_compat/compat-initgroups.c (getgrent_next_nss): Fall
12635         back to malloc directly, without stack allocations.
12637 2018-06-25  Florian Weimer  <fweimer@redhat.com>
12639         [BZ #18023]
12640         * nscd/aicache.c (addhstaiX): Use struct scratch_buffer instead
12641         of extend_alloca.
12643 2018-06-25  Florian Weimer  <fweimer@redhat.com>
12645         [BZ #18023]
12646         * nscd/grpcache.c (addgrbyX): Use struct scratch_buffer instead
12647         of extend_alloca.
12648         * nscd/hstcache.c (addhstbyX): Likewise.
12649         * nscd/pwdcache.c (addpwbyX): Likewise.
12650         * nscd/servicescache.c (addservbyX): Likewise.
12652 2018-06-25  Florian Weimer  <fweimer@redhat.com>
12654         [BZ #18023]
12655         * nscd/connections.c (read_cmdline): New function.
12656         (restart): Use it.  Update comment.
12658 2018-06-25  Rafal Luzynski  <digitalfreak@lingonborough.com>
12660         [BZ #23140]
12661         * localedata/locales/csb_PL (mon): Rename to...
12662         (alt_mon): This.
12663         (abmon): Rename to...
12664         (ab_alt_mon): This.
12665         (mon): Add with proper genitive forms, copy from Wikipedia.
12666         (abmon): Likewise.
12668 2018-06-25  Rafal Luzynski  <digitalfreak@lingonborough.com>
12670         [BZ #19485]
12671         * localedata/locales/csb_PL (mon): Fix typos:
12672         "łżëkwiôt" -> "łżëkwiat" (April); "lëpinc" -> "lëpińc" (July).
12673         (yesstr): Add, value is "jo".
12674         (nostr): Add, value is "nié".
12676 2018-06-22  Tulio Magno Quites Machado Filho  <tuliom@linux.ibm.com>
12678         * sysdeps/m68k/m680x0/fpu/s_log1p.c: Set as the generic file for
12679         all log1p and significand functions on m680x0.
12680         * sysdeps/m68k/m680x0/fpu/s_log1pf.c: Include s_log1p.c instead
12681         of s_significand.c..
12682         * sysdeps/m68k/m680x0/fpu/s_log1pl.c: Likewise.
12683         * sysdeps/m68k/m680x0/fpu/s_significandf.c: Likewise.
12684         * sysdeps/m68k/m680x0/fpu/s_significandl.c: Likewise.
12685         * sysdeps/m68k/m680x0/fpu/s_significand.c: Move all the code to
12686         s_log1p.c and include it..
12688 2018-06-21  Vincent Chen  <vincentc@andestech.com>
12690         * elf/elf.h (R_NDS32_NONE): New define.
12691         (R_NDS32_32_RELA): Likewise.
12692         (R_NDS32_COPY): Likewise.
12693         (R_NDS32_GLOB_DAT): Likewise.
12694         (R_NDS32_JUMP_SLOT): Likewise.
12695         (R_NDS32_RELATIVE): Likewise.
12696         (R_NDS32_TLS_TPOFF): Likewise.
12697         (R_NDS32_TLS_DESC): Likewise.
12699 2018-06-21  Mark Wielaard  <mark@klomp.org>
12701         * elf/elf.h (R_BPF_MAP_FD): Removed.
12702         (R_BPF_64_64, R_BPF_64_32): New.
12704 2018-06-21  Florian Weimer  <fweimer@redhat.com>
12706         [BZ #23253]
12707         * sysdeps/generic/math_private.h (default_libc_feholdsetround_ctx):
12708         Renamed from libc_feholdsetround_ctx.
12709         (default_libc_feresetround_ctx): Renamed from
12710         libc_feresetround_ctx.
12711         (default_libc_feholdsetround_noex_ctx): Renamed from
12712         libc_feholdsetround_noex_ctx.
12713         (default_libc_feresetround_noex_ctx): Renamed from
12714         libc_feresetround_noex_ctx.
12715         [!HAVE_RM_CTX] (libc_feholdsetround_ctx, libc_feresetround_ctx)
12716         (libc_feholdsetround_noex_ctx, libc_feresetround_noex_ctx): Macros
12717         forwardning to the old implementations under the new names.
12718         * sysdeps/i386/fpu/fenv_private.h [__SSE_MATH__]
12719         (libc_feholdexcept_setround_ctx, libc_fesetenv_ctx)
12720         (libc_feupdateenv_ctx, libc_feholdsetround_ctx)
12721         (libc_feresetround_ctx): Forward to default implements for i386
12722         and MATH_SET_BOTH_ROUNDING_MODES.
12723         * sysdeps/i386/Makefile [$(subdir) == math] (CFLAGS-e_gamma_r.c):
12724         Add -DMATH_SET_BOTH_ROUNDING_MODES.
12726 2018-06-20  Joseph Myers  <joseph@codesourcery.com>
12728         * string/tst-cmp.c: Include <libc-diag.h>.
12729         (strncmp_max): Disable -Wstringop-overflow= around call to
12730         strncmp.
12731         (strncasecmp_max): Disable -Wstringop-overflow= around call to
12732         strncasecmp.
12734         * string/bug-strpbrk1.c: Include <libc-diag.h>.
12735         (main): Disable -Wunused-value around call to strpbrk.
12736         * string/bug-strspn1.c: Include <libc-diag.h>.
12737         (main): Disable -Wunused-value around call to strspn.
12739 2018-06-20  Tulio Magno Quites Machado Filho  <tuliom@linux.ibm.com>
12740             Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
12742         * sysdeps/ieee754/ldbl-128ibm-compat/Versions: New file.
12743         * sysdeps/ieee754/ldbl-128ibm-compat/libm-alias-float128.h: New file.
12745 2018-06-20  Tulio Magno Quites Machado Filho  <tuliom@linux.ibm.com>
12747         * math/Makefile (libm-calls): Move s_significandF to...
12748         (gen-libm-calls): ... here.
12749         * math/s_significand_template.c: New file.
12750         * math/s_significand.c: Removed.
12751         * math/s_significandf.c: Removed.
12752         * math/s_significandl.c: Removed.
12753         * sysdeps/ieee754/ldbl-opt/s_significand.c: Removed.
12754         * sysdeps/ieee754/ldbl-opt/s_significandl.c: Removed.
12756         * math/e_exp2_template.c (declare_mgen_finite_alias,
12757         declare_mgen_finite_alias_s, declare_mgen_finite_alias_x): Move to...
12758         * sysdeps/generic/math-type-macros.h (declare_mgen_finite_alias,
12759         declare_mgen_finite_alias_s, declare_mgen_finite_alias_x): ... here.
12761 2018-06-20  Florian Weimer  <fweimer@redhat.com>
12763         * libio/libioP.h (IO_validate_vtable): Avoid ptrdiff_t overflow.
12765 2018-06-19  Joseph Myers  <joseph@codesourcery.com>
12767         [BZ #23280]
12768         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Pass sign of
12769         floating-point number to strtod functions rather than possibly
12770         negating result of those functions.
12771         * stdio-common/tst-scanf-round.c: New file.
12772         * stdio-common/Makefile (tests): Add tst-scanf-round.
12773         ($(objpfx)tst-scanf-round): Depend on $(libm).
12775 2018-06-18  Samuel Thibault  <samuel.thibault@ens-lyon.org>
12777         * sysdeps/mach/hurd/localplt.data: Move to...
12778         * sysdeps/mach/hurd/i386/localplt.data: new file. Add + REL
12779         R_386_GLOB_DAT like on Linux i386.
12781 2018-06-18  Joseph Myers  <joseph@codesourcery.com>
12783         * sysdeps/unix/sysv/linux/alpha/bits/shm.h [__USE_MISC]
12784         (SHM_STAT_ANY): New macro.
12785         * sysdeps/unix/sysv/linux/arm/bits/shm.h [__USE_MISC]
12786         (SHM_STAT_ANY): Likewise.
12787         * sysdeps/unix/sysv/linux/bits/shm.h [__USE_MISC]
12788         (SHM_STAT_ANY): Likewise.
12789         * sysdeps/unix/sysv/linux/generic/bits/shm.h [__USE_MISC]
12790         (SHM_STAT_ANY): Likewise.
12791         * sysdeps/unix/sysv/linux/hppa/bits/shm.h [__USE_MISC]
12792         (SHM_STAT_ANY): Likewise.
12793         * sysdeps/unix/sysv/linux/ia64/bits/shm.h [__USE_MISC]
12794         (SHM_STAT_ANY): Likewise.
12795         * sysdeps/unix/sysv/linux/mips/bits/shm.h [__USE_MISC]
12796         (SHM_STAT_ANY): Likewise.
12797         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h [__USE_MISC]
12798         (SHM_STAT_ANY): Likewise.
12799         * sysdeps/unix/sysv/linux/s390/bits/shm.h [__USE_MISC]
12800         (SHM_STAT_ANY): Likewise.
12801         * sysdeps/unix/sysv/linux/sh/bits/shm.h [__USE_MISC]
12802         (SHM_STAT_ANY): Likewise.
12803         * sysdeps/unix/sysv/linux/sparc/bits/shm.h [__USE_MISC]
12804         (SHM_STAT_ANY): Likewise.
12805         * sysdeps/unix/sysv/linux/x86/bits/shm.h [__USE_MISC]
12806         (SHM_STAT_ANY): Likewise.
12808         * sysdeps/unix/sysv/linux/alpha/bits/sem.h [__USE_MISC]
12809         (SEM_STAT_ANY): New macro.
12810         * sysdeps/unix/sysv/linux/bits/sem.h [__USE_MISC]
12811         (SEM_STAT_ANY): Likewise.
12812         * sysdeps/unix/sysv/linux/generic/bits/sem.h [__USE_MISC]
12813         (SEM_STAT_ANY): Likewise.
12814         * sysdeps/unix/sysv/linux/hppa/bits/sem.h [__USE_MISC]
12815         (SEM_STAT_ANY): Likewise.
12816         * sysdeps/unix/sysv/linux/ia64/bits/sem.h [__USE_MISC]
12817         (SEM_STAT_ANY): Likewise.
12818         * sysdeps/unix/sysv/linux/mips/bits/sem.h [__USE_MISC]
12819         (SEM_STAT_ANY): Likewise.
12820         * sysdeps/unix/sysv/linux/powerpc/bits/sem.h [__USE_MISC]
12821         (SEM_STAT_ANY): Likewise.
12822         * sysdeps/unix/sysv/linux/s390/bits/sem.h [__USE_MISC]
12823         (SEM_STAT_ANY): Likewise.
12824         * sysdeps/unix/sysv/linux/sparc/bits/sem.h [__USE_MISC]
12825         (SEM_STAT_ANY): Likewise.
12826         * sysdeps/unix/sysv/linux/x86/bits/sem.h [__USE_MISC]
12827         (SEM_STAT_ANY): Likewise.
12829         * sysdeps/unix/sysv/linux/alpha/bits/msq.h [__USE_MISC]
12830         (MSG_STAT_ANY): New macro.
12831         * sysdeps/unix/sysv/linux/bits/msq.h [__USE_MISC]
12832         (MSG_STAT_ANY): Likewise.
12833         * sysdeps/unix/sysv/linux/generic/bits/msq.h [__USE_MISC]
12834         (MSG_STAT_ANY): Likewise.
12835         * sysdeps/unix/sysv/linux/hppa/bits/msq.h [__USE_MISC]
12836         (MSG_STAT_ANY): Likewise.
12837         * sysdeps/unix/sysv/linux/ia64/bits/msq.h [__USE_MISC]
12838         (MSG_STAT_ANY): Likewise.
12839         * sysdeps/unix/sysv/linux/mips/bits/msq.h [__USE_MISC]
12840         (MSG_STAT_ANY): Likewise.
12841         * sysdeps/unix/sysv/linux/powerpc/bits/msq.h [__USE_MISC]
12842         (MSG_STAT_ANY): Likewise.
12843         * sysdeps/unix/sysv/linux/s390/bits/msq.h [__USE_MISC]
12844         (MSG_STAT_ANY): Likewise.
12845         * sysdeps/unix/sysv/linux/sparc/bits/msq.h [__USE_MISC]
12846         (MSG_STAT_ANY): Likewise.
12847         * sysdeps/unix/sysv/linux/x86/bits/msq.h [__USE_MISC]
12848         (MSG_STAT_ANY): Likewise.
12850         * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
12851         (MAP_TYPE): Change value to 0x2b.
12853 2018-06-18  Florian Weimer  <fweimer@redhat.com>
12855         [BZ #15722]
12856         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Create Netlink
12857         socket with SOCK_CLOEXEC.
12859 2018-06-18  Joseph Myers  <joseph@codesourcery.com>
12861         [BZ #23303]
12862         * sysdeps/powerpc/powerpc64/le/Makefile
12863         (CFLAGS-tst-strtod-nan-sign.c): Add -mfloat128.
12864         (CFLAGS-tst-wcstod-nan-sign.c): Likewise.
12865         (gnulib-tests): Also add $(f128-loader-link) for
12866         tst-strtod-nan-sign abd tst-wcstod-nan-sign.
12868 2018-06-15  Samuel Thibault  <samuel.thibault@ens-lyon.org>
12870         * include/sys/sendfile.h (__sendfile64): Declare hidden prototype.
12871         * sysdeps/mach/hurd/sendfile.c (sendfile): Call __sendfile64 instead
12872         of sendfile.
12873         * sysdeps/mach/hurd/sendfile64.c (sendfile64): Rename to __sendfile64.
12874         (sendfile64): New strong alias.
12875         * sysdeps/mach/hurd/lseek.c: Include <errno.h>.
12876         * sysdeps/mach/hurd/lseek.c (__libc_lseek): Check that the value
12877         returned by __lseek64 can fit off_t, return EOVERFLOW otherwise.
12878         * sysdeps/htl/pthreadP.h (___pthread_get_cleanup_stack): Add hidden
12879         attribute.
12880         * htl/pt-join.c (__pthread_get_cleanup_stack): Define to
12881         ___pthread_get_cleanup_stack.
12882         * sysdeps/mach/hurd/localplt.data (ld.so): Make ref to __open optional.
12883         * sysdeps/mach/include/mach-shortcuts-hidden.h: New file.
12884         * mach/shortcut.awk: Make syscall stubs include
12885         <mach-shortcuts-hidden.h> and add hidden definition.
12886         * sysdeps/mach/include/mach.h: Include <mach-shortcuts-hidden.h>.
12887         (__mach_msg): Add hidden prototype.
12888         * mach/msg.c: Include <mach.h>.
12889         (__mach_msg): Add hidden definition.
12890         * mach/Makefile ($(mach-syscalls:%=$(objpfx))): Add hidden definition.
12891         * sysdeps/mach/include/mach/mach_traps.h (__mach_reply_port,
12892         __mach_thread_self, __mach_task_self, __mach_host_self, __swtch,
12893         __swtch_pri, __thread_switch, __evc_wait): Add hidden prototypes.
12894         * sysdeps/mach/hurd/localplt.data (siglongjmp, longjmp,
12895         __libc_lseek64, _IO_funlockfile): Whitelist PLT references.
12896         * sysdeps/hurd/include/hurd/signal.h (_hurd_self_sigstate): Add hidden
12897         prototype and definition.
12898         * sysdeps/mach/hurd/i386/____longjmp_chk.S (____longjmp_chk): Use
12899         hidden target for _hurd_self_sigstate.
12901 2018-06-15  Joseph Myers  <joseph@codesourcery.com>
12903         [BZ #23007]
12904         * stdlib/tst-strtod-nan-sign-main.c: New file.
12905         * stdlib/tst-strtod-nan-sign.c: Likewise.
12906         * wcsmbs/tst-wcstod-nan-sign.c: Likewise.
12907         * stdlib/Makefile (tests): Add tst-strtod-nan-sign.
12908         ($(objpfx)tst-strtod-nan-sign): Depend on $(libm).
12909         * wcsmbs/Makefile (tests) Add tst-wcstod-nan-sign.
12910         ($(objpfx)tst-wcstod-nan-sign): Depend on $(libm).
12912 2018-06-15  Herman ten Brugge  <hermantenbrugge@home.nl>
12914         [BZ #23007]
12915         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Return NaN of
12916         appropriate sign.
12918 2018-06-14  Florian Weimer  <fweimer@redhat.com>
12920         [BZ #23290]
12921         * localedata/charmaps/IBM273: Map codepoint 0xbc to U+00AF, so
12922         that the result stays within the ISO-8859-1 range.
12923         * iconvdata/ibm273.c (HAS_HOLES): Define as 0 because all 256
12924         characters are defined in IBM273.
12926 2018-06-14  Samuel Thibault  <samuel.thibault@ens-lyon.org>
12928         * sysdeps/mach/include/mach/mach_traps.h (__mach_thread_self,
12929         __mach_task_self): Remove attribute_hidden.
12931 2018-06-14  Joseph Myers  <joseph@codesourcery.com>
12933         * string/tester.c (test_strncat) [__GNUC_PREREQ (7, 0)]: Also
12934         ignore -Wrestrict for one test.
12936 2018-06-14  Steve Ellcey  <sellcey@caviumnetworks.com>
12937             Szabolcs Nagy  <szabolcs.nagy@arm.com>
12939         * sysdeps/unix/sysv/linux/aarch64/gettimeofday.c: New file.
12941 2018-06-14  Florian Weimer  <fweimer@redhat.com>
12943         * scripts/update-abilist.sh: Accept empty list of files to patch.
12945 2018-06-13  Samuel Thibault  <samuel.thibault@ens-lyon.org>
12947         * sysdeps/mach/hurd/i386/Makefile (test-xfail-check-abi-libhurduser,
12948         test-xfail-check-abi-libmachuser): Add.
12949         * sysdeps/mach/hurd/localplt.data (ld.so): Add __open64, rename
12950         __libc_read and __libc_write to __read and __write.
12951         * sysdeps/hurd/include/hurd/port.h: New file.
12952         * mach/mach/mach_traps.h (__mach_reply_port, __mach_thread_self,
12953         __mach_task_self, __mach_host_self, __swtch, __swtch_pri,
12954         __thread_switch, __evc_wait): Move declarations to...
12955         * sysdeps/mach/include/mach/mach_traps.h: ... new file, and add
12956         attribute_hidden.
12957         * sysdeps/mach/hurd/i386/____longjmp_chk.S (____longjmp_chk): Do not
12958         use PLT to call _hurd_self_sigstate.
12960 2018-06-13  Joseph Myers  <joseph@codesourcery.com>
12962         [BZ #23279]
12963         * stdlib/strtod_l.c (round_and_return): Handle an exponent of
12964         MAX_EXP as overflowing.
12965         * stdlib/gen-tst-strtod-round.c (string_to_fp): Clear MPFR
12966         overflow flag.
12967         (round_str): Output also whether result overflows in each rounding
12968         mode.
12969         * stdlib/tst-strtod-round-data: Add more tests.
12970         * stdlib/tst-strtod-round-data.h: Regenerated.
12971         * stdlib/tst-strtod-round-skeleton.c (_XNTRY): Update comment.
12972         (TEST): Handle extra arguments for overflow flags.
12973         (struct test_overflow): New type.
12974         [!FE_OVERFLOW] (FE_OVERFLOW): Define to 0.
12975         (GEN_ONE_TEST): Clear all exceptions.  Test overflow flag.
12976         (test_in_one_mode): Take argument with overflow information.
12977         (do_test): Update calls to test_in_one_mode.
12979 2018-06-12  Carlos O'Donell  <carlos@redhat.com>
12981         * elf/dl-load (_dl_dst_substitute): Correct comment.
12982         (_dl_dst_count): Likewise.
12984         * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Call
12985         lll_futex_timed_wait.
12987 2018-06-12  Joseph Myers  <joseph@codesourcery.com>
12989         [BZ #23277]
12990         * math/bits/mathcalls.h [__USE_ISOC99] (nan): Do not use __const__
12991         attribute.
12992         * math/test-nan-const.c: New file.
12993         * math/Makefile (tests): Add test-nan-const.
12994         (CFLAGS-test-nan-const.c): New variable.
12996 2018-06-12  H.J. Lu  <hongjiu.lu@intel.com>
12998         * benchtests/scripts/compare_strings.py (process_results): Add
12999         funcs argument.  Compare only functions which are selected.
13000         (main): Check if base function is among selected functions.
13001         Pass selected functions to process_results.
13002         (__main__): Add -f/--functions argument.
13004 2018-06-12  Minfeng Kang  <minfeng.kang@hxt-semitech.com>
13005             Hongbo Zhang  <hongbo.zhang@linaro.org>
13007         * sysdeps/aarch64/multiarch/memcpy.c (libc_ifunc): reuse
13008         __memcpy_falkor for phecda core.
13009         * sysdeps/aarch64/multiarch/memmove.c (libc_ifunc): reuse
13010         __memmove_falkor for phecda core.
13011         * sysdeps/aarch64/multiarch/memset.c (libc_ifunc): reuse
13012         __memset_falkor for phecda core.
13013         * sysdeps/unix/sysv/linux/aarch64/cpu-features.c: add MIDR entry
13014         for phecda core.
13015         * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_PHECDA): add
13016         macro to identify phecda core.
13018 2018-06-12  Carlos O'Donell  <carlos@redhat.com>
13019             Andreas Schwab  <schwab@suse.de>
13020             Dmitry V. Levin  <ldv@altlinux.org>
13021             Florian Weimer  <fweimer@redhat.com>
13023         [BZ #23102]
13024         [BZ #21942]
13025         [BZ #18018]
13026         [BZ #23259]
13027         CVE-2011-0536
13028         * elf/dl-dst.h: Remove DL_DST_COUNT.
13029         * elf/dl-deps.c (expand_dst): Call _dl_dst_count.
13030         * elf/dl-load.c (is_trusted_path_normalize): Don't handle colons.
13031         (is_dst): Comment.  Support ELF gABI.
13032         (_dl_dst_count): Comment.  Simplify and count DSTs.
13033         (_dl_dst_substitute): Comment.  Support __libc_enable_secure handling.
13034         (expand_dybamic_string_token): Comment. Call _dl_dst_count. Rename
13035         locals.
13037 2018-06-12  Zack Weinberg  <zackw@panix.com>
13039         * elf/dl-load.c, elf/dl-misc.c, elf/dl-profile.c, elf/rtld.c
13040         * sysdeps/unix/sysv/linux/dl-sysdep.c
13041         Include not-cancel.h.  Use __close_nocancel instead of __close,
13042         __open64_nocancel instead of __open, __read_nocancel instead of
13043         __libc_read, and __write_nocancel instead of __libc_write.
13045         * csu/check_fds.c (check_one_fd)
13046         * sysdeps/posix/fdopendir.c (__fdopendir)
13047         * sysdeps/posix/opendir.c (__alloc_dir): Use __fcntl_nocancel
13048         instead of __fcntl and/or __libc_fcntl.
13050         * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np)
13051         * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np)
13052         * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system):
13053         Use __open64_nocancel instead of __open_nocancel.
13055         * sysdeps/unix/sysv/linux/not-cancel.h: Move all of the
13056         hidden_proto declarations to the end and issue them if either
13057         IS_IN(libc) or IS_IN(rtld).
13058         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
13059         Add close_nocancel, fcntl_nocancel, nanosleep_nocancel,
13060         open_nocancel, open64_nocancel, openat_nocancel, pause_nocancel,
13061         read_nocancel, waitpid_nocancel, write_nocancel.
13063         * io/Versions [GLIBC_PRIVATE]: Add __libc_fcntl,
13064         __fcntl_nocancel, __open64_nocancel, __write_nocancel.
13065         * posix/Versions: Add __nanosleep_nocancel, __pause_nocancel.
13067         * nptl/pt-fcntl.c: New file.
13068         * nptl/Makefile (pthread-compat-wrappers): Remove fcntl.
13069         (libpthread-routines): Add pt-fcntl.
13070         * include/fcntl.h (__fcntl_nocancel_adjusted): New function.
13071         (__libc_fcntl): Remove attribute_hidden.
13072         * sysdeps/unix/sysv/linux/fcntl.c (__libc_fcntl): Call
13073         __fcntl_nocancel_adjusted, not fcntl_common.
13074         (__fcntl_nocancel): Move to new file fcntl_nocancel.c.
13075         (fcntl_common): Rename to __fcntl_nocancel_adjusted; also move
13076         to fcntl_nocancel.c.
13077         * sysdeps/unix/sysv/linux/fcntl_nocancel.c: New file.
13078         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fcntl.c: Remove file.
13079         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
13080         Define FCNTL_ADJUST_CMD here, as a self-contained macro.
13082         * sysdeps/unix/sysv/linux/close.c: Move __close_nocancel to...
13083         * sysdeps/unix/sysv/linux/close_nocancel.c: ...this new file.
13084         * sysdeps/unix/sysv/linux/nanosleep.c: Move __nanosleep_nocancel to...
13085         * sysdeps/unix/sysv/linux/nanosleep_nocancel.c: ...this new file.
13086         * sysdeps/unix/sysv/linux/open.c: Move __open_nocancel to...
13087         * sysdeps/unix/sysv/linux/open_nocancel.c: ...this new file.
13088         * sysdeps/unix/sysv/linux/open64.c: Move __open64_nocancel to...
13089         * sysdeps/unix/sysv/linux/open64_nocancel.c: ...this new file.
13090         * sysdeps/unix/sysv/linux/openat.c: Move __openat_nocancel to...
13091         * sysdeps/unix/sysv/linux/openat_nocancel.c: ...this new file.
13092         * sysdeps/unix/sysv/linux/openat64.c: Move __openat64_nocancel to...
13093         * sysdeps/unix/sysv/linux/openat64_nocancel.c: ...this new file.
13094         * sysdeps/unix/sysv/linux/pause.c: Move __pause_nocancel to...
13095         * sysdeps/unix/sysv/linux/pause_nocancel.c: ...this new file.
13096         * sysdeps/unix/sysv/linux/read.c: Move __read_nocancel to...
13097         * sysdeps/unix/sysv/linux/read_nocancel.c: ...this new file.
13098         * sysdeps/unix/sysv/linux/waitpid.c: Move __waitpid_nocancel to...
13099         * sysdeps/unix/sysv/linux/waitpid_nocancel.c: ...this new file.
13100         * sysdeps/unix/sysv/linux/write.c: Move __write_nocancel to...
13101         * sysdeps/unix/sysv/linux/write_nocancel.c: ...this new file.
13103         * sysdeps/unix/sysv/linux/nios2/Makefile: Don't override
13104         libpthread-routines.
13105         * sysdeps/unix/sysv/linux/nios2/pt-vfork.S: New file which
13106         defines nothing.
13108         * sysdeps/mach/hurd/dl-sysdep.c: Define __read instead of
13109         __libc_read, and __write instead of __libc_write.  Define
13110         __open64 in addition to __open.
13112 2018-06-12  H.J. Lu  <hongjiu.lu@intel.com>
13114         [BZ #23250]
13115         [BZ #10686]
13116         * sysdeps/i386/nptl/tls.h (tcbhead_t): Change __private_tm[4]
13117         to _private_tm[3] and add __glibc_reserved2.
13118         Add _Static_assert of offset of __private_ss == 0x30.
13119         * sysdeps/x86_64/nptl/tls.h: Add _Static_assert of offset of
13120         __private_ss == 0x40 for ILP32 and == 0x70 for LP64.
13122 2018-06-12  Florian Weimer  <fweimer@redhat.com>
13124         x86: Make strncmp usable from rtld.
13125         * sysdeps/i386/i686/multiarch/strncmp-c.c: Only rename strncmp to
13126         __strncmp_ia32 if in libc (and not in rtld).
13127         * sysdeps/x86_64/multiarch/strncmp-sse2.S: Rename strcmp to
13128         strncmp if not in libc (and not to __strncmp_sse2).
13130 2018-06-12  Rafal Luzynski  <digitalfreak@lingonborough.com>
13132         [BZ #23140]
13133         * localedata/locales/gd_GB (mon): Rename to...
13134         (alt_mon): This.
13135         (mon): Import from CLDR (genitive case).
13136         * localedata/locales/hsb_DE (mon): Rename to...
13137         (alt_mon): This.
13138         (mon): Import from CLDR (genitive case).
13139         * localedata/locales/wa_BE (mon): Rename to...
13140         (alt_mon): This.
13141         (mon): Add, fill with the proper genitive forms, but CLDR data
13142         is incomplete; completed according to the comments in this file.
13143         (d_t_fmt): Do not use "di" before the month name, no longer needed.
13145         * localedata/locales/wa_BE (country_name): Reword
13146         "Beljike" -> "Beldjike".
13148 2018-06-11  Joseph Myers  <joseph@codesourcery.com>
13150         [BZ #23272]
13151         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Start by handling all
13152         cases of non-finite arguments.
13153         * math/libm-test-fma.inc (fma_test_data): Add more tests.
13155 2018-06-10  John David Anglin  <danglin@gcc.gnu.org>
13157         [BZ #23174]
13158         * sysdeps/unix/sysv/linux/hppa/Makefile: xfail check-execstack.
13160 2018-06-08  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
13162         [BZ #23264]
13163         * include/unistd.h (__execvpex): New prototype.
13164         * posix/Makefile (tests): Add tst-spawn4.
13165         (tests-internal): Add tst-spawn4-compat.
13166         * posix/execvpe.c (__execvpe_common, __execvpex): New functions.
13167         * posix/tst-spawn4-compat.c: New file.
13168         * posix/tst-spawn4.c: Likewise.
13169         * sysdeps/unix/sysv/linux/spawni.c (__spawni): Do not interpret invalid
13170         binaries as shell scripts.
13171         * sysdeps/posix/spawni.c (__spawni): Likewise.
13173 2018-06-08  H.J. Lu  <hongjiu.lu@intel.com>
13175         [BZ #23145]
13176         * elf/Makefile (tests-special): Add $(objpfx)check-initfini.out.
13177         ($(all-built-dso:=.dynsym): New target.
13178         (common-generated): Add $(all-built-dso:$(common-objpfx)%=%.dynsym).
13179         ($(objpfx)check-initfini.out): New target.
13180         (generated): Add check-initfini.out.
13181         * scripts/check-initfini.awk: New file.
13182         * sysdeps/aarch64/crti.S (_init): Mark as hidden.
13183         (_fini): Likewise.
13184         * sysdeps/alpha/crti.S (_init): Mark as hidden.
13185         (_fini): Likewise.
13186         * sysdeps/arm/crti.S (_init): Mark as hidden.
13187         (_fini): Likewise.
13188         * sysdeps/hppa/crti.S (_init): Mark as hidden.
13189         (_fini): Likewise.
13190         * sysdeps/i386/crti.S (_init): Mark as hidden.
13191         (_fini): Likewise.
13192         * sysdeps/ia64/crti.S (_init): Mark as hidden.
13193         (_fini): Likewise.
13194         * sysdeps/m68k/crti.S (_init): Mark as hidden.
13195         (_fini): Likewise.
13196         * sysdeps/microblaze/crti.S (_init): Mark as hidden.
13197         (_fini): Likewise.
13198         * sysdeps/mips/mips32/crti.S (_init): Mark as hidden.
13199         (_fini): Likewise.
13200         * sysdeps/mips/mips64/n32/crti.S (_init): Mark as hidden.
13201         (_fini): Likewise.
13202         * sysdeps/mips/mips64/n64/crti.S (_init): Mark as hidden.
13203         (_fini): Likewise.
13204         * sysdeps/nios2/crti.S (_init): Mark as hidden.
13205         (_fini): Likewise.
13206         * sysdeps/powerpc/powerpc32/crti.S (_init): Mark as hidden.
13207         (_fini): Likewise.
13208         * sysdeps/powerpc/powerpc64/crti.S (_init): Mark as hidden.
13209         (_fini): Likewise.
13210         * sysdeps/s390/s390-32/crti.S (_init): Mark as hidden.
13211         (_fini): Likewise.
13212         * sysdeps/s390/s390-64/crti.S (_init): Mark as hidden.
13213         (_fini): Likewise.
13214         * sysdeps/sh/crti.S (_init): Mark as hidden.
13215         (_fini): Likewise.
13216         * sysdeps/sparc/crti.S (_init): Mark as hidden.
13217         (_fini): Likewise.
13218         * sysdeps/x86_64/crti.S (_init): Mark as hidden.
13219         (_fini): Likewise.
13221 2018-06-06  Tulio Magno Quites Machado Filho  <tuliom@linux.ibm.com>
13223         * sysdeps/powerpc/powerpc64/le/fpu/e_sqrtf128.c
13224         [__HAVE_FLOAT128_UNLIKE_LDBL] (TFtype, TF): Restrict TFtype
13225         and TF redirection to KFtype and KF only when the default
13226         long double type is not the IEEE 128-bit floating point type.
13228 2018-06-05  Joseph Myers  <joseph@codesourcery.com>
13230         * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_DIT): New
13231         macro.
13232         (HWCAP_USCAT): Likewise.
13233         (HWCAP_ILRCPC): Likewise.
13234         (HWCAP_FLAGM): Likewise.
13235         * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
13236         Increase to 28.
13237         (_dl_aarch64_cap_flags): Add new flag names.
13239         * sysdeps/unix/sysv/linux/aarch64/bits/mman.h [__USE_MISC]
13240         (MAP_FIXED_NOREPLACE): New macro.
13241         * sysdeps/unix/sysv/linux/alpha/bits/mman.h [__USE_MISC]
13242         (MAP_FIXED_NOREPLACE): Likewise.
13243         * sysdeps/unix/sysv/linux/arm/bits/mman.h [__USE_MISC]
13244         (MAP_FIXED_NOREPLACE): Likewise.
13245         * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
13246         (MAP_FIXED_NOREPLACE): Likewise.
13247         * sysdeps/unix/sysv/linux/ia64/bits/mman.h [__USE_MISC]
13248         (MAP_FIXED_NOREPLACE): Likewise.
13249         * sysdeps/unix/sysv/linux/m68k/bits/mman.h [__USE_MISC]
13250         (MAP_FIXED_NOREPLACE): Likewise.
13251         * sysdeps/unix/sysv/linux/microblaze/bits/mman.h [__USE_MISC]
13252         (MAP_FIXED_NOREPLACE): Likewise.
13253         * sysdeps/unix/sysv/linux/mips/bits/mman.h [__USE_MISC]
13254         (MAP_FIXED_NOREPLACE): Likewise.
13255         * sysdeps/unix/sysv/linux/nios2/bits/mman.h [__USE_MISC]
13256         (MAP_FIXED_NOREPLACE): Likewise.
13257         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h [__USE_MISC]
13258         (MAP_FIXED_NOREPLACE): Likewise.
13259         * sysdeps/unix/sysv/linux/riscv/bits/mman.h [__USE_MISC]
13260         (MAP_FIXED_NOREPLACE): Likewise.
13261         * sysdeps/unix/sysv/linux/s390/bits/mman.h [__USE_MISC]
13262         (MAP_FIXED_NOREPLACE): Likewise.
13263         * sysdeps/unix/sysv/linux/sh/bits/mman.h [__USE_MISC]
13264         (MAP_FIXED_NOREPLACE): Likewise.
13265         * sysdeps/unix/sysv/linux/sparc/bits/mman.h [__USE_MISC]
13266         (MAP_FIXED_NOREPLACE): Likewise.
13267         * sysdeps/unix/sysv/linux/x86/bits/mman.h [__USE_MISC]
13268         (MAP_FIXED_NOREPLACE): Likewise.
13270         * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
13271         version to 4.17.
13273 2018-06-04  Joseph Myers  <joseph@codesourcery.com>
13275         * scripts/build-many-glibcs.py (Context.checkout): Default Linux
13276         version to 4.17
13278 2018-06-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
13280         * bits/shm.h (struct shmid_ds): Make shm_segsz field size_t instead of
13281         int.
13282         * sysdeps/gnu/bits/shm.h (struct shmid_ds): Likewise.
13284 2018-06-01  Leonardo Sandoval  <leonardo.sandoval.gonzalez@intel.com>
13286         * benchtests/scripts/compare_string.py: (process_results) Catch
13287         exception in non-existent base_func and catch exception in
13288         non-existent attribute.
13289         (parse_file) Catch exception if input file does not exist.
13291 2018-06-01  Leonardo Sandoval  <leonardo.sandoval.gonzalez@intel.com>
13293         * benchtests/scripts/compare_string.py: Add --no-diff and --no-header
13294         options to avoid diff calculation and omit header, respectively.
13295         (main): process --no-diff and --no-header
13297 2018-06-01  Leonardo Sandoval  <leonardo.sandoval.gonzalez@intel.com>
13298             H.J. Lu  <hongjiu.lu@intel.com>
13300         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
13301         strcmp-avx2, strncmp-avx2, wcscmp-avx2, wcscmp-sse2, wcsncmp-avx2 and
13302         wcsncmp-sse2.
13303         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
13304         (__libc_ifunc_impl_list): Add tests for __strcmp_avx2,
13305         __strncmp_avx2, __wcscmp_avx2, __wcsncmp_avx2, __wcscmp_sse2
13306         and __wcsncmp_sse2.
13307         * sysdeps/x86_64/multiarch/strcmp.c (OPTIMIZE (avx2)):
13308         (IFUNC_SELECTOR): Return OPTIMIZE (avx2) on AVX 2 machines if
13309         AVX unaligned load is fast and vzeroupper is preferred.
13310         * sysdeps/x86_64/multiarch/strncmp.c: Likewise.
13311         * sysdeps/x86_64/multiarch/strcmp-avx2.S: New file.
13312         * sysdeps/x86_64/multiarch/strncmp-avx2.S: Likewise.
13313         * sysdeps/x86_64/multiarch/wcscmp-avx2.S: Likewise.
13314         * sysdeps/x86_64/multiarch/wcscmp-sse2.S: Likewise.
13315         * sysdeps/x86_64/multiarch/wcscmp.c: Likewise.
13316         * sysdeps/x86_64/multiarch/wcsncmp-avx2.S: Likewise.
13317         * sysdeps/x86_64/multiarch/wcsncmp-sse2.c: Likewise.
13318         * sysdeps/x86_64/multiarch/wcsncmp.c: Likewise.
13319         * sysdeps/x86_64/wcscmp.S (__wcscmp): Add alias only if __wcscmp
13320         is undefined.
13322 2018-06-01  Florian Weimer  <fweimer@redhat.com>
13324         * sysdeps/i386/fpu/libm-test-ulps: Update with results from
13325         configuring with --disable-multi-arch, building with
13326         “-march=x86-64 -mtune=generic -mfpmath=sse” and running on a
13327         Haswell-era CPU.
13329 2018-06-01  Florian Weimer  <fweimer@redhat.com>
13331         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Update with
13332         results from building with “-march=x86-64 -mtune=generic
13333         -mfpmath=sse” and running on a Haswell-era CPU.
13335 2018-06-01  Joseph Myers  <joseph@codesourcery.com>
13337         [BZ #18473]
13338         * soft-fp/sqrttf2.c: Remove file.
13339         * soft-fp/sqrtdf2.c: Move to ....
13340         * sysdeps/powerpc/nofpu/sqrtdf2.c: ... here.  Include
13341         <shlib-compat.h>.
13342         (__sqrtdf2): Make conditional on
13343         [SHLIB_COMPAT (libc, GLIBC_2_3_2, GLIBC_2_28)].  Define as compat
13344         symbol.
13345         * soft-fp/sqrtsf2.c: Move to ....
13346         * sysdeps/powerpc/nofpu/sqrtsf2.c: ... here.  Include
13347         <shlib-compat.h>.
13348         (__sqrtsf2): Make conditional on
13349         [SHLIB_COMPAT (libc, GLIBC_2_3_2, GLIBC_2_28)].  Define as compat
13350         symbol.
13351         * soft-fp/Makefile (gcc-single-routines): Remove sqrtsf2.
13352         (gcc-double-routines): Remove sqrtdf2.
13353         (gcc-quad-routines): Remove sqrttf2.
13354         * sysdeps/nios2/Makefile [$(subdir) = soft-fp] (sysdep_routines):
13355         Do not filter out sqrtsf2 and sqrtdf2.
13356         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = soft-fp]
13357         (sysdep_routines): Add sqrtsf2 and sqrtdf2.
13359 2018-06-01  Florian Weimer  <fweimer@redhat.com>
13361         * sysdeps/generic/libcidn.abilist: Remove file.
13363 2018-06-01  Florian Weimer  <fweimer@redhat.com>
13365         [BZ #23236]
13366         * libio/strfile.h (struct _IO_str_fields): Rename members to
13367         discourage their use and add comment.
13368         (_IO_STR_DYNAMIC): Remove unused macro.
13369         * libio/strops.c (_IO_str_init_static_internal): Do not use
13370         callback pointers.  Call malloc and free.
13371         (_IO_str_overflow): Do not use callback pointers.  Call malloc
13372         and free.
13373         (enlarge_userbuf): Likewise.
13374         (_IO_str_finish): Call free.
13375         * libio/wstrops.c (_IO_wstr_init_static): Initialize
13376         _allocate_buffer_unused.
13377         (_IO_wstr_overflow): Do not use callback pointers.  Call malloc
13378         and free.
13379         (enlarge_userbuf): Likewise.
13380         (_IO_wstr_finish): Call free.
13381         * debug/vasprintf_chk.c (__vasprintf_chk): Initialize
13382         _allocate_buffer_unused, _free_buffer_unused.
13383         * libio/memstream.c (__open_memstream): Likewise.
13384         * libio/vasprintf.c (_IO_vasprintf): Likewise.
13385         * libio/wmemstream.c (open_wmemstream): Likewise.
13387 2018-05-30  Paul Pluzhnikov  <ppluzhnikov@google.com>
13389         * sysdeps/x86_64/fpu/libm-test-ulps (log_vlen8_avx2): Update for
13390         AMD Ryzen 7 1800X.
13392 2018-05-30  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
13394         * sysdeps/powerpc/powerpc64/le/fpu/multiarch/Makefile: New file to
13395         add w_sqrtf128-power9 and w_sqrtf128-ppc64le to libm-sysdep_routines.
13396         * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128-power9.c:
13397         New file.
13398         * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128-ppc64le.c:
13399         Likewise.
13400         * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128.c: Likewise.
13402 2018-05-29  Florian Weimer  <fweimer@redhat.com>
13404         * support/Makefile (libsupport-routines): Add
13405         xpthread_barrierattr_destroy, xpthread_barrierattr_init,
13406         xpthread_barrierattr_setpshared.
13407         * support/xpthread_barrierattr_destroy.c: New file.
13408         * support/xpthread_barrierattr_init.c: Likewise.
13409         * support/xpthread_barrierattr_setpshared.c: Likewise.
13411 2018-05-29  H.J. Lu  <hongjiu.lu@intel.com>
13413         [BZ #23206]
13414         * elf/dl-reloc-static-pie.c (_dl_relocate_static_pie): Initialize
13415         _r_debug and update DT_DEBUG for debugger.
13417 2018-05-29  Florian Weimer  <fweimer@redhat.com>
13419         * stdlib/Makefile (tst-strtod1i.out): Depend on generated locales.
13420         (tst-strtod5i.out): Likewise.
13422 2018-05-25  Joseph Myers  <joseph@codesourcery.com>
13424         * sysdeps/sparc/sparc64/Implies: Remove sparc/sparc64/soft-fp.
13425         * sysdeps/sparc/sparc64/Makefile [$(subdir) = soft-fp]
13426         (sparc64-quad-routines): New variable.  Moved from ....
13427         [$(subdir) = soft-fp] (sysdep_routines): Add
13428         $(sparc64-quad-routines).  Moved from ....
13429         [$(subdir) = math] (CPPFLAGS): Add -I../soft-fp/.  Moved from ....
13430         * sysdeps/sparc/sparc64/soft-fp/Makefile: ... here.  Remove file.
13431         * sysdeps/sparc/sparc64/Versions (libc): Add GLIBC_2.2 symbols
13432         moved from ....
13433         * sysdeps/sparc/sparc64/soft-fp/Versions: ... here.  Remove file.
13434         * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: Remove file.
13435         * sysdeps/sparc/sparc64/soft-fp/qp_add.c: Move to ....
13436         * sysdeps/sparc/sparc64/qp_add.c: ... here.
13437         * sysdeps/sparc/sparc64/soft-fp/qp_cmp.c: Move to ....
13438         * sysdeps/sparc/sparc64/qp_cmp.c: ... here.
13439         * sysdeps/sparc/sparc64/soft-fp/qp_cmpe.c: Move to ....
13440         * sysdeps/sparc/sparc64/qp_cmpe.c: ... here.
13441         * sysdeps/sparc/sparc64/soft-fp/qp_div.c: Move to ....
13442         * sysdeps/sparc/sparc64/qp_div.c: ... here.
13443         * sysdeps/sparc/sparc64/soft-fp/qp_dtoq.c: Move to ....
13444         * sysdeps/sparc/sparc64/qp_dtoq.c: ... here.
13445         * sysdeps/sparc/sparc64/soft-fp/qp_feq.c: Move to ....
13446         * sysdeps/sparc/sparc64/qp_feq.c: ... here.
13447         * sysdeps/sparc/sparc64/soft-fp/qp_fge.c: Move to ....
13448         * sysdeps/sparc/sparc64/qp_fge.c: ... here.
13449         * sysdeps/sparc/sparc64/soft-fp/qp_fgt.c: Move to ....
13450         * sysdeps/sparc/sparc64/qp_fgt.c: ... here.
13451         * sysdeps/sparc/sparc64/soft-fp/qp_fle.c: Move to ....
13452         * sysdeps/sparc/sparc64/qp_fle.c: ... here.
13453         * sysdeps/sparc/sparc64/soft-fp/qp_flt.c: Move to ....
13454         * sysdeps/sparc/sparc64/qp_flt.c: ... here.
13455         * sysdeps/sparc/sparc64/soft-fp/qp_fne.c: Move to ....
13456         * sysdeps/sparc/sparc64/qp_fne.c: ... here.
13457         * sysdeps/sparc/sparc64/soft-fp/qp_itoq.c: Move to ....
13458         * sysdeps/sparc/sparc64/qp_itoq.c: ... here.
13459         * sysdeps/sparc/sparc64/soft-fp/qp_mul.c: Move to ....
13460         * sysdeps/sparc/sparc64/qp_mul.c: ... here.
13461         * sysdeps/sparc/sparc64/soft-fp/qp_neg.S: Move to ....
13462         * sysdeps/sparc/sparc64/qp_neg.S: ... here.
13463         * sysdeps/sparc/sparc64/soft-fp/qp_qtod.c: Move to ....
13464         * sysdeps/sparc/sparc64/qp_qtod.c: ... here.
13465         * sysdeps/sparc/sparc64/soft-fp/qp_qtoi.c: Move to ....
13466         * sysdeps/sparc/sparc64/qp_qtoi.c: ... here.
13467         * sysdeps/sparc/sparc64/soft-fp/qp_qtos.c: Move to ....
13468         * sysdeps/sparc/sparc64/qp_qtos.c: ... here.
13469         * sysdeps/sparc/sparc64/soft-fp/qp_qtoui.c: Move to ....
13470         * sysdeps/sparc/sparc64/qp_qtoui.c: ... here.
13471         * sysdeps/sparc/sparc64/soft-fp/qp_qtoux.c: Move to ....
13472         * sysdeps/sparc/sparc64/qp_qtoux.c: ... here.
13473         * sysdeps/sparc/sparc64/soft-fp/qp_qtox.c: Move to ....
13474         * sysdeps/sparc/sparc64/qp_qtox.c: ... here.
13475         * sysdeps/sparc/sparc64/soft-fp/qp_sqrt.c: Move to ....
13476         * sysdeps/sparc/sparc64/qp_sqrt.c: ... here.
13477         * sysdeps/sparc/sparc64/soft-fp/qp_stoq.c: Move to ....
13478         * sysdeps/sparc/sparc64/qp_stoq.c: ... here.
13479         * sysdeps/sparc/sparc64/soft-fp/qp_sub.c: Move to ....
13480         * sysdeps/sparc/sparc64/qp_sub.c: ... here.
13481         * sysdeps/sparc/sparc64/soft-fp/qp_uitoq.c: Move to ....
13482         * sysdeps/sparc/sparc64/qp_uitoq.c: ... here.
13483         * sysdeps/sparc/sparc64/soft-fp/qp_util.c: Move to ....
13484         * sysdeps/sparc/sparc64/qp_util.c: ... here.
13485         * sysdeps/sparc/sparc64/soft-fp/qp_uxtoq.c: Move to ....
13486         * sysdeps/sparc/sparc64/qp_uxtoq.c: ... here.
13487         * sysdeps/sparc/sparc64/soft-fp/qp_xtoq.c: Move to ....
13488         * sysdeps/sparc/sparc64/qp_xtoq.c: ... here.
13489         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h: Move to ....
13490         * sysdeps/sparc/sparc64/sfp-machine.h: ... here.
13492         * sysdeps/sparc/sparc32/Implies: Remove sparc/sparc32/soft-fp.
13493         * sysdeps/sparc/sparc32/Makefile [$(subdir) = soft-fp]
13494         (sparc32-quad-routines): New variable.  Moved from ....
13495         [$(subdir) = soft-fp] (sysdep_routines): Add
13496         $(sparc32-quad-routines).  Moved from ....
13497         * sysdeps/sparc/sparc32/soft-fp/Makefile: ... here.  Remove file.
13498         * sysdeps/sparc/sparc32/Versions (libc): Add GLIBC_2.4 symbols
13499         moved from ....
13500         * sysdeps/sparc/sparc32/soft-fp/Versions: ... here.  Remove file.
13501         * sysdeps/sparc/sparc32/soft-fp/q_add.c: Move to ....
13502         * sysdeps/sparc/sparc32/q_add.c: ... here.
13503         * sysdeps/sparc/sparc32/soft-fp/q_cmp.c: Move to ....
13504         * sysdeps/sparc/sparc32/q_cmp.c: ... here.
13505         * sysdeps/sparc/sparc32/soft-fp/q_cmpe.c: Move to ....
13506         * sysdeps/sparc/sparc32/q_cmpe.c: ... here.
13507         * sysdeps/sparc/sparc32/soft-fp/q_div.c: Move to ....
13508         * sysdeps/sparc/sparc32/q_div.c: ... here.
13509         * sysdeps/sparc/sparc32/soft-fp/q_dtoq.c: Move to ....
13510         * sysdeps/sparc/sparc32/q_dtoq.c: ... here.
13511         * sysdeps/sparc/sparc32/soft-fp/q_feq.c: Move to ....
13512         * sysdeps/sparc/sparc32/q_feq.c: ... here.
13513         * sysdeps/sparc/sparc32/soft-fp/q_fge.c: Move to ....
13514         * sysdeps/sparc/sparc32/q_fge.c: ... here.
13515         * sysdeps/sparc/sparc32/soft-fp/q_fgt.c: Move to ....
13516         * sysdeps/sparc/sparc32/q_fgt.c: ... here.
13517         * sysdeps/sparc/sparc32/soft-fp/q_fle.c: Move to ....
13518         * sysdeps/sparc/sparc32/q_fle.c: ... here.
13519         * sysdeps/sparc/sparc32/soft-fp/q_flt.c: Move to ....
13520         * sysdeps/sparc/sparc32/q_flt.c: ... here.
13521         * sysdeps/sparc/sparc32/soft-fp/q_fne.c: Move to ....
13522         * sysdeps/sparc/sparc32/q_fne.c: ... here.
13523         * sysdeps/sparc/sparc32/soft-fp/q_itoq.c: Move to ....
13524         * sysdeps/sparc/sparc32/q_itoq.c: ... here.
13525         * sysdeps/sparc/sparc32/soft-fp/q_lltoq.c: Move to ....
13526         * sysdeps/sparc/sparc32/q_lltoq.c: ... here.
13527         * sysdeps/sparc/sparc32/soft-fp/q_mul.c: Move to ....
13528         * sysdeps/sparc/sparc32/q_mul.c: ... here.
13529         * sysdeps/sparc/sparc32/soft-fp/q_neg.c: Move to ....
13530         * sysdeps/sparc/sparc32/q_neg.c: ... here.
13531         * sysdeps/sparc/sparc32/soft-fp/q_qtod.c: Move to ....
13532         * sysdeps/sparc/sparc32/q_qtod.c: ... here.
13533         * sysdeps/sparc/sparc32/soft-fp/q_qtoi.c: Move to ....
13534         * sysdeps/sparc/sparc32/q_qtoi.c: ... here.
13535         * sysdeps/sparc/sparc32/soft-fp/q_qtoll.c: Move to ....
13536         * sysdeps/sparc/sparc32/q_qtoll.c: ... here.
13537         * sysdeps/sparc/sparc32/soft-fp/q_qtos.c: Move to ....
13538         * sysdeps/sparc/sparc32/q_qtos.c: ... here.
13539         * sysdeps/sparc/sparc32/soft-fp/q_qtou.c: Move to ....
13540         * sysdeps/sparc/sparc32/q_qtou.c: ... here.
13541         * sysdeps/sparc/sparc32/soft-fp/q_qtoull.c: Move to ....
13542         * sysdeps/sparc/sparc32/q_qtoull.c: ... here.
13543         * sysdeps/sparc/sparc32/soft-fp/q_sqrt.c: Move to ....
13544         * sysdeps/sparc/sparc32/q_sqrt.c: ... here.
13545         * sysdeps/sparc/sparc32/soft-fp/q_stoq.c: Move to ....
13546         * sysdeps/sparc/sparc32/q_stoq.c: ... here.
13547         * sysdeps/sparc/sparc32/soft-fp/q_sub.c: Move to ....
13548         * sysdeps/sparc/sparc32/q_sub.c: ... here.
13549         * sysdeps/sparc/sparc32/soft-fp/q_ulltoq.c: Move to ....
13550         * sysdeps/sparc/sparc32/q_ulltoq.c: ... here.
13551         * sysdeps/sparc/sparc32/soft-fp/q_util.c: Move to ....
13552         * sysdeps/sparc/sparc32/q_util.c: ... here.
13553         * sysdeps/sparc/sparc32/soft-fp/q_utoq.c: Move to ....
13554         * sysdeps/sparc/sparc32/q_utoq.c: ... here.
13555         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h: Move to ....
13556         * sysdeps/sparc/sparc32/sfp-machine.h: ... here.
13558 2018-05-24  Tulio Magno Quites Machado Filho  <tuliom@linux.ibm.com>
13559             Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
13561         * sysdeps/powerpc/Implies: Removed.  Previous contents copied to...
13562         * sysdeps/powerpc/powerpc32/Implies-after: ... here.
13563         * sysdeps/powerpc/powerpc64/be/Implies-after: ... here.
13564         * sysdeps/powerpc/powerpc64/le/Implies-before: ... and here.
13566 2018-05-24  Joseph Myers  <joseph@codesourcery.com>
13568         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/Implies: Remove
13569         powerpc/soft-fp.
13570         * sysdeps/unix/sysv/linux/powerpc/powerpc32/e500/nofpu/Implies:
13571         Likewise.
13572         * sysdeps/powerpc/soft-fp/sfp-machine.h: Move to ....
13573         * sysdeps/powerpc/nofpu/sfp-machine.h: ... here.
13575 2018-05-24  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
13577         [BZ #23171]
13578         * math/math.h [C++] (iseqsig): Fix parameter type for the long
13579         double version.
13581 2018-05-23  Joseph Myers  <joseph@codesourcery.com>
13583         * sysdeps/sh/Implies: Remove sh/soft-fp.
13584         * sysdeps/sh/soft-fp/sfp-machine.h: Move to ....
13585         * sysdeps/sh/sfp-machine.h: ... here.
13587 2018-05-23  H.J. Lu  <hongjiu.lu@intel.com>
13589         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
13590         (__mempcpy_erms): Skip zero length.
13591         (__memmove_erms): Likewise.
13592         * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
13593         (__memset_erms): Likewise.
13595 2018-05-23  Joseph Myers  <joseph@codesourcery.com>
13597         * sysdeps/alpha/Implies: Remove alpha/soft-fp.
13598         * sysdeps/alpha/Makefile [$(subdir) = soft-fp] (sysdep_routines):
13599         Add functions moved from ....
13600         [$(subdir) = math] (CPPFLAGS): Add -I../soft-fp.  Moved from ....
13601         * sysdeps/alpha/soft-fp/Makefile: ... here.  Remove file.
13602         * sysdeps/alpha/Versions (libc): Add GLIBC_2.3.4 symbols moved
13603         from ....
13604         * sysdeps/alpha/soft-fp/Versions: ... here.  Remove file.
13605         * sysdeps/alpha/soft-fp/e_sqrtl.c: Move to ....
13606         * sysdeps/alpha/e_sqrtl.c: ... here.
13607         * sysdeps/alpha/soft-fp/local-soft-fp.h: Move to ....
13608         * sysdeps/alpha/local-soft-fp.h: ... here.
13609         * sysdeps/alpha/soft-fp/ots_add.c: Move to ....
13610         * sysdeps/alpha/ots_add.c: ... here.
13611         * sysdeps/alpha/soft-fp/ots_cmp.c: Move to ....
13612         * sysdeps/alpha/ots_cmp.c: ... here.
13613         * sysdeps/alpha/soft-fp/ots_cmpe.c: Move to ....
13614         * sysdeps/alpha/ots_cmpe.c: ... here.
13615         * sysdeps/alpha/soft-fp/ots_cvtqux.c: Move to ....
13616         * sysdeps/alpha/ots_cvtqux.c: ... here.
13617         * sysdeps/alpha/soft-fp/ots_cvtqx.c: Move to ....
13618         * sysdeps/alpha/ots_cvtqx.c: ... here.
13619         * sysdeps/alpha/soft-fp/ots_cvttx.c: Move to ....
13620         * sysdeps/alpha/ots_cvttx.c: ... here.
13621         * sysdeps/alpha/soft-fp/ots_cvtxq.c: Move to ....
13622         * sysdeps/alpha/ots_cvtxq.c: ... here.
13623         * sysdeps/alpha/soft-fp/ots_cvtxt.c: Move to ....
13624         * sysdeps/alpha/ots_cvtxt.c: ... here.
13625         * sysdeps/alpha/soft-fp/ots_div.c: Move to ....
13626         * sysdeps/alpha/ots_div.c: ... here.
13627         * sysdeps/alpha/soft-fp/ots_mul.c: Move to ....
13628         * sysdeps/alpha/ots_mul.c: ... here.
13629         * sysdeps/alpha/soft-fp/ots_nintxq.c: Move to ....
13630         * sysdeps/alpha/ots_nintxq.c: ... here.
13631         * sysdeps/alpha/soft-fp/ots_sub.c: Move to ....
13632         * sysdeps/alpha/ots_sub.c: ... here.
13633         * sysdeps/alpha/soft-fp/sfp-machine.h: Move to ....
13634         * sysdeps/alpha/sfp-machine.h: ... here.
13636 2018-05-23  Florian Weimer  <fweimer@redhat.com>
13638         [BZ #19728]
13639         [BZ #19729]
13640         [BZ #22247]
13641         CVE-2016-6261
13642         CVE-2016-6263
13643         CVE-2017-14062
13644         Switch to extern IDNA implementation (libidn2).
13645         * libidn: Remove subdirectory.
13646         * LICENSES: Do not mention licensing conditions for the removed
13647         libidn code.
13648         * config.h.in (HAVE_LIBIDN): Remove.
13649         * include/dlfcn.h (__libc_dlopen): Update comment.
13650         * include/idna.h: Remove file.
13651         * inet/Makefile (routines): Add idna.
13652         (tests-static, tests-internal): Add tst-idna_name_classify.
13653         (LOCALES): Generate locales for tests.
13654         (tst-idna_name_classify.out): Depend on generated locales.
13655         * inet/idna_name_classify.c: New file.
13656         * inet/tst-idna_name_classify.c: Likewise.
13657         * inet/net-internal.h (__idna_to_dns_encoding)
13658         (__idna_from_dns_encoding): Declare.
13659         * inet/net-internal.h (enum idna_name_classification): Define.
13660         (__idna_name_classify): Declare.
13661         * inet/Versions (GLIBC_PRIVATE): Add __idna_to_dns_encoding,
13662         __idna_from_dns_encoding.
13663         * inet/getnameinfo.c (DEPRECATED_NI_IDN): Define.
13664         (gni_host_inet_name): Call __idna_from_dns_encoding.  Use punycode
13665         name as a fallback in case of encoding errors.
13666         (getnameinfo): Use DEPRECATED_NI_IDN.
13667         * inet/idna.c: New file.
13668         * nscd/gai.c: Do not include <libidn/idn-stub.c>.
13669         * resolv/Makefile (tests): Add tst-resolv-ai_idn,
13670         tst-resolv-ai_idn-latin1, tst-resolv-ai_idn-nolibidn2.
13671         (modules-names): Add tst-no-libidn2.
13672         (extra-test-objs): Add tst-no-libidn2.os.
13673         (LDFLAGS-tst-no-libidn2.so): Set soname.
13674         (LOCALES): Set, and generate locales.
13675         (tst-resolv-ai_idn): Link with -ldl -lresolv -lpthread.
13676         (tst-resolv-ai_idn-latin1): Likewise.
13677         (tst-resolv-ai_idn-nolibidn2): Likewise.
13678         (tst-resolv-ai_idn.out): Depend on locales.
13679         (tst-resolv-ai_idn-latin1.out): Depend on locales.
13680         (tst-resolv-ai_idn-nolibidn2.out): Depend on locales and
13681         tst-no-libidn2.so.
13682         * resolv/netdb.h (AI_IDN_ALLOW_UNASSIGNED)
13683         (AI_IDN_USE_STD3_ASCII_RULES, NI_IDN_ALLOW_UNASSIGNED)
13684         (NI_IDN_USE_STD3_ASCII_RULES): Deprecate.
13685         * resolv/tst-resolv-ai_idn.c: New file.
13686         * resolv/tst-resolv-ai_idn-latin1.c: Likewise.
13687         * resolv/tst-resolv-ai_idn-nolibidn2.c: Likewise.
13688         * resolv/tst-no-libidn2.c: Likewise.
13689         * support/support_format_addrinfo.c (format_ai_flags): Do not
13690         handle AI_IDN_ALLOW_UNASSIGNED, AI_IDN_USE_STD3_ASCII_RULES.
13691         * sysdeps/posix/getaddrinfo.c (DEPRECATED_AI_IDN): Define.
13692         (gaih_inet): Call __idna_to_dns_encoding and
13693         __idna_from_dns_encoding, and use the original (punycode) name if
13694         __idna_from_dns_encoding fails due to an encoding error.
13695         (getaddrinfo): Use DEPRECATED_AI_IDN.
13696         * sysdeps/unix/inet/Subdirs (libidn): Remove.
13697         * sysdeps/unix/inet/configure: Remove file.
13698         * sysdeps/unix/inet/configure.ac: Likewise.
13700 2018-05-23  Florian Weimer  <fweimer@redhat.com>
13702         Implement allocate_once.
13703         * include/allocate_once.h: New file.
13704         * misc/allocate_once.c: Likewise.
13705         * misc/tst-allocate_once.c: Likewise.
13706         * misc/Makefile (routines): Add allocate_once.
13707         (tests-internal): Add tst-allocate_once.
13708         (generated): Add tst-allocate_once.mtrace,
13709         tst-allocate_once-mem.out.
13710         (tests-special): Add tst-allocate_once-mem.out.
13711         (tst-allocate_once-ENV): Set MALLOC_TRACE.
13712         (tst-allocate_once-mem.out): Call mtrace.
13713         * misc/Versions (GLIBC_PRIVATE): Add __libc_allocate_once_slow.
13715 2018-05-23  H.J. Lu  <hongjiu.lu@intel.com>
13717         [BZ #23196]
13718         * string/test-memcpy.c (do_test1): New function.
13719         (test_main): Call it.
13721 2018-05-23  Andreas Schwab  <schwab@suse.de>
13723         [BZ #23196]
13724         CVE-2018-11237
13725         * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S
13726         (L(preloop_large)): Save initial destination pointer in %r11 and
13727         use it instead of %rax after the loop.
13728         * string/test-mempcpy.c (MIN_PAGE_SIZE): Define.
13730 2018-05-22  Joseph Myers  <joseph@codesourcery.com>
13732         * sysdeps/aarch64/Implies: Remove aarch64/soft-fp.
13733         * sysdeps/aarch64/Makefile [$(subdir) = math] (CPPFLAGS): Add
13734         -I../soft-fp.  Moved from ....
13735         * sysdeps/aarch64/soft-fp/Makefile: ... here.  Remove file.
13736         * sysdeps/aarch64/soft-fp/e_sqrtl.c: Move to ....
13737         * sysdeps/aarch64/e_sqrtl.c: ... here.
13738         * sysdeps/aarch64/soft-fp/sfp-machine.h: Move to ....
13739         * sysdeps/aarch64/sfp-machine.h: ... here.
13741         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Ignore
13742         -Wmaybe-uninitialized around access to fq[0].
13743         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f):
13744         Likewise.
13746         [BZ #18471]
13747         * sysdeps/unix/make-syscalls.sh (emit_weak_aliases): Use weak
13748         aliases for non-libc case of versioned symbols.
13749         * sysdeps/unix/sysv/linux/lseek64.c: Include <shlib-compat.h>.
13750         (llseek): Define as compat symbol if
13751         [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_28)], not as weak alias
13752         with link warning.
13753         * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (llseek):
13754         Make into a compat symbol, disabled for minimum symbol version
13755         GLIBC_2.28 and later.
13756         * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Remove file.
13758 2018-05-22  Florian Weimer  <fweimer@redhat.com>
13760         * sysdeps/i386/Makefile [$(subdir) == math] (sysdep-CFLAGS): Do
13761         not add -mpreferred-stack-boundary=4.
13762         [$(subdir) == csu] (sysdep-CFLAGS): Likewise.
13763         (stack-align-test-flags): Likewise.
13764         [$(subdir) == stdlib] (CFLAGS-exit.c, CFLAGS-cxa_finalize.c):
13765         Likewise.
13766         [$(subdir) == elf] (CFLAGS-dl-init.c, CFLAGS-dl-fini.c)
13767         (CFLAGS-dl-open.c, CFLAGS-dl-close.c, CFLAGS-dl-error.c): Likewise.
13768         [$(subdir) == dlfcn] (CFLAGS-dlopen.c, CFLAGS-dlopenold.c)
13769         (CFLAGS-dlclose.c, CFLAGS-dlerror.c): Likewise.
13770         * sysdeps/i386/nptl/Makefile [$(subdir) == nptl]
13771         (CFLAGS-pthread_create.c, CFLAGS-tst-align.c)
13772         (CFLAGS-tst-align2.c): Likewise.
13774 2018-05-21  H.J. Lu  <hongjiu.lu@intel.com>
13776         * sysdeps/x86/cpu-features.h (bit_arch_Prefer_FSRM): New.
13777         (index_arch_Prefer_FSRM): Likewise.
13778         * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
13779         Also check Prefer_FSRM.
13780         * sysdeps/x86_64/multiarch/ifunc-memmove.h (IFUNC_SELECTOR):
13781         Also return OPTIMIZE (erms) for Prefer_FSRM.
13783 2018-05-21  H.J. Lu  <hongjiu.lu@intel.com>
13785         * sysdeps/x86/cpu-features.h (bit_cpu_FSRM): New.
13786         (index_cpu_FSRM): Likewise.
13787         (reg_FSRM): Likewise.
13789 2018-05-18  Joseph Myers  <joseph@codesourcery.com>
13791         * math/gen-tgmath-tests.py: Import sys.
13792         (Tests.__init__): Initialize macros_seen.
13793         (Tests.add_tests): Add macro to macros_seen.  Only generate tests
13794         if requested to do so for this macro.
13795         (Tests.add_all_tests): Take argument for macro for which to
13796         generate tests.
13797         (Tests.check_macro_list): New function.
13798         (main): Handle check-list argument and argument specifying macro
13799         for which to generate tests.
13800         * math/Makefile [PYTHON] (tgmath3-macros): New variable.
13801         [PYTHON] (tgmath3-macro-tests): Likewise.
13802         [PYTHON] (tests): Add $(tgmath3-macro-tests) not test-tgmath3.
13803         [PYTHON] (generated): Add $(addsuffix .c,$(tgmath3-macro-tests))
13804         not test-tgmath3.c.
13805         [PYTHON] (CFLAGS-test-tgmath3.c): Remove.
13806         [PYTHON] ($(tgmath3-macro-tests:%=$(objpfx)%.o): Add -fno-builtin
13807         to CFLAGS.
13808         [PYTHON] ($(objpfx)test-tgmath3.c): Replace rule by....
13809         [PYTHON] ($(foreach
13810         m,$(tgmath3-macros),$(objpfx)test-tgmath3-$(m).c): ... this.  New
13811         rule.
13812         [PYTHON] (tests-special): Add
13813         $(objpfx)test-tgmath3-macro-list.out.
13814         [PYTHON] ($(objpfx)test-tgmath3-macro-list.out): New rule.
13816         * sysdeps/unix/sysv/linux/syscalls.list (nfsservctl): Make into a
13817         compat symbol, disabled for minimum symbol version GLIBC_2.28 and
13818         later.
13820         [BZ #22639]
13821         * time/tzset.c (SECSPERDAY): Cast to time_t.
13822         * time/tst-y2039.c: New file.
13823         * time/Makefile (tests): Add tst-y2039.
13825 2018-05-17  Leonardo Sandoval  <leonardo.sandoval.gonzalez@intel.com>
13827         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
13828         (PREFETCH_ONE_SET): Remove duplicate line.
13830 2018-05-17  Florian Weimer  <fweimer@redhat.com>
13832         * sysdeps/generic/math-type-macros-double.h: Include
13833         <math-nan-payload-double.h> after <libm-alias-double.h>.
13834         * sysdeps/generic/math-type-macros-float.h: Include
13835         <math-nan-payload-float.h> after <libm-alias-float.h>.
13836         * sysdeps/generic/math-type-macros-float128.h: Include
13837         <math-nan-payload-float128.h> after <libm-alias-float128.h>.
13838         * sysdeps/generic/math-type-macros-ldouble.h: Include
13839         <math-nan-payload-ldouble.h> after <libm-alias-ldouble.h>.
13841 2018-05-17  Andreas Schwab  <schwab@suse.de>
13843         * resolv/res_send.c (__res_context_send): Don't set errno when
13844         returing error after malloc failure.
13846 2018-05-17  H.J. Lu  <hongjiu.lu@intel.com>
13848         * nptl/allocatestack.c (allocate_stack): Remove the
13849         !__ASSUME_PRIVATE_FUTEX paths.
13850         * nptl/descr.h (header): Remove the !__ASSUME_PRIVATE_FUTEX path.
13851         * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
13852         Likewise.
13853         * sysdeps/i386/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Removed.
13854         * sysdeps/powerpc/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
13855         * sysdeps/sh/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
13856         * sysdeps/x86_64/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
13857         * sysdeps/i386/nptl/tls.h: (tcbhead_t): Remve the
13858         !__ASSUME_PRIVATE_FUTEX path.
13859         * sysdeps/s390/nptl/tls.h (tcbhead_t): Likewise.
13860         * sysdeps/sparc/nptl/tls.h (tcbhead_t): Likewise.
13861         * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Likewise.
13862         * sysdeps/unix/sysv/linux/i386/lowlevellock.S: Remove the
13863         !__ASSUME_PRIVATE_FUTEX macros.
13864         * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Likewise.
13865         * sysdeps/unix/sysv/linux/x86_64/cancellation.S: Likewise.
13866         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
13867         * sysdeps/unix/sysv/linux/kernel-features.h
13868         (__ASSUME_PRIVATE_FUTEX): Removed.
13870 2018-05-17  Joseph Myers  <joseph@codesourcery.com>
13872         * math/Makefile (libm-narrow-fns): Add div.
13873         (libm-test-funcs-narrow): Likewise.
13874         * math/Versions (GLIBC_2.28): Add narrowing divide functions.
13875         * math/bits/mathcalls-narrow.h (div): Use __MATHCALL_NARROW.
13876         * math/gen-auto-libm-tests.c (test_functions): Add div.
13877         * math/math-narrow.h (CHECK_NARROW_DIV): New macro.
13878         (NARROW_DIV_ROUND_TO_ODD): Likewise.
13879         (NARROW_DIV_TRIVIAL): Likewise.
13880         * sysdeps/ieee754/float128/float128_private.h (__fdivl): New
13881         macro.
13882         (__ddivl): Likewise.
13883         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fdiv and
13884         ddiv.
13885         (CFLAGS-nldbl-ddiv.c): New variable.
13886         (CFLAGS-nldbl-fdiv.c): Likewise.
13887         * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
13888         __nldbl_ddivl.
13889         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_ddivl): New
13890         prototype.
13891         * manual/arith.texi (Misc FP Arithmetic): Document fdiv, fdivl,
13892         ddivl, fMdivfN, fMdivfNx, fMxdivfN and fMxdivfNx.
13893         * math/auto-libm-test-in: Add tests of div.
13894         * math/auto-libm-test-out-narrow-div: New generated file.
13895         * math/libm-test-narrow-div.inc: New file.
13896         * sysdeps/i386/fpu/s_f32xdivf64.c: Likewise.
13897         * sysdeps/ieee754/dbl-64/s_f32xdivf64.c: Likewise.
13898         * sysdeps/ieee754/dbl-64/s_fdiv.c: Likewise.
13899         * sysdeps/ieee754/float128/s_f32divf128.c: Likewise.
13900         * sysdeps/ieee754/float128/s_f64divf128.c: Likewise.
13901         * sysdeps/ieee754/float128/s_f64xdivf128.c: Likewise.
13902         * sysdeps/ieee754/ldbl-128/s_ddivl.c: Likewise.
13903         * sysdeps/ieee754/ldbl-128/s_f64xdivf128.c: Likewise.
13904         * sysdeps/ieee754/ldbl-128/s_fdivl.c: Likewise.
13905         * sysdeps/ieee754/ldbl-128ibm/s_ddivl.c: Likewise.
13906         * sysdeps/ieee754/ldbl-128ibm/s_fdivl.c: Likewise.
13907         * sysdeps/ieee754/ldbl-96/s_ddivl.c: Likewise.
13908         * sysdeps/ieee754/ldbl-96/s_fdivl.c: Likewise.
13909         * sysdeps/ieee754/ldbl-opt/nldbl-ddiv.c: Likewise.
13910         * sysdeps/ieee754/ldbl-opt/nldbl-fdiv.c: Likewise.
13911         * sysdeps/ieee754/soft-fp/s_ddivl.c: Likewise.
13912         * sysdeps/ieee754/soft-fp/s_fdiv.c: Likewise.
13913         * sysdeps/ieee754/soft-fp/s_fdivl.c: Likewise.
13914         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
13915         * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
13916         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
13917         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
13918         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
13919         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
13920         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
13921         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
13922         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
13923         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
13924         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
13925         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
13926         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
13927         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
13928         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
13929         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
13930         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
13931         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
13932         * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
13933         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
13934         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
13935         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
13936         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
13937         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
13938         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
13939         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
13941 2018-05-16  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
13943         [BZ #23178]
13944         * nscd/nscd-client.h (sendfileall): Remove prototype.
13945         * nscd/connections.c [HAVE_SENDFILE] (sendfileall): Remove function.
13946         (handle_request): Use writeall instead of sendfileall.
13947         * nscd/aicache.c (addhstaiX): Likewise.
13948         * nscd/grpcache.c (cache_addgr): Likewise.
13949         * nscd/hstcache.c (cache_addhst): Likewise.
13950         * nscd/initgrcache.c (addinitgroupsX): Likewise.
13951         * nscd/netgroupcache.c (addgetnetgrentX, addinnetgrX): Likewise.
13952         * nscd/pwdcache.c (cache_addpw): Likewise.
13953         * nscd/servicescache.c (cache_addserv): Likewise.
13954         * sysdeps/unix/sysv/linux/Makefile [$(subdir) == nscd]
13955         (sysdep-CFLAGS): Remove -DHAVE_SENDFILE.
13956         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_SENDFILE):
13957         Remove define.
13959 2018-05-16  H.J. Lu  <hongjiu.lu@intel.com>
13961         * sysdeps/x86_64/multiarch/strncat-c.c (STRNCAT_PRIMARY): Removed.
13962         Include <string/strncat.c>.
13963         * sysdeps/x86_64/multiarch/strncat.c (__strncat): New strong
13964         alias.
13965         (__GI___strncat): New hidden alias.
13967 2018-05-16  Joseph Myers  <joseph@codesourcery.com>
13969         * sysdeps/mips/mips32/libm-test-ulps: Update.
13970         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
13972 2018-05-16  Florian Weimer  <fweimer@redhat.com>
13974         * support/Makefile (libsupport-routines): Add support_quote_blob,
13975         support_test_compare_blob.
13976         (tests): Add tst-support_quote_blob, tst-test_compare_blob.
13977         * support/check.h (TEST_COMPARE_BLOB): Define.
13978         (support_test_compare_blob): Declare.
13979         * support/support.h (support_quote_blob): Declare.
13980         * support/support_quote_blob.c: New file.
13981         * support/support_test_compare_blob.c: Likewise.
13982         * support/tst-support_quote_blob.c: Likewise.
13983         * support/tst-test_compare_blob.c: Likewise.
13985 2018-05-16  Florian Weimer  <fweimer@redhat.com>
13987         * stdlib/strtod_nan.c: Include <math-type-macros-double.h> instead
13988         of <strtod_nan_double.h>.
13989         * stdlib/strtod_nan_main.c (STRTOD_NAN): Use SET_NAN_PAYLOAD
13990         instead of SET_MANTISSA.
13991         * stdlib/strtof_nan.c: Include <math-type-macros-float.h> instead
13992         of include <strtod_nan_float.h>.
13993         * stdlib/strtold_nan.c: Include <math-type-macros-ldouble.h>
13994         instead of <strtod_nan_ldouble.h>.
13995         * stdlib/strtod_nan_double.h: Move to ...
13996         * sysdeps/generic/math-nan-payload-double.h: ... here.
13997         (FLOAT): Remove definition.
13998         (SET_MANTISSA): Rename to ...
13999         (SET_NAN_PAYLOAD): ... this.
14000         * stdlib/strtod_nan_float.h: Move to ...
14001         * sysdeps/generic/math-nan-payload-float.h: ... here.
14002         (FLOAT): Remove definition.
14003         (SET_MANTISSA): Rename to ...
14004         (SET_NAN_PAYLOAD): ... this.
14005         * sysdeps/generic/math-type-macros-double.h: Include
14006         <math-nan-payload-double.h>.  Include <math/math-svid-compat.h>
14007         instead of <math-svid-compat.h>.
14008         * sysdeps/generic/math-type-macros-float.h: Include
14009         <math-nan-payload-float.h>.  Include <math/math-svid-compat.h>
14010         instead of <math-svid-compat.h>.
14011         * sysdeps/generic/math-type-macros-float128.h: Include
14012         <math-nan-payload-float128.h>.
14013         * sysdeps/generic/math-type-macros-ldouble.h: Include
14014         <math-nan-payload-ldouble.h>.  Include <math/math-svid-compat.h>
14015         instead of <math-svid-compat.h>.
14016         * sysdeps/generic/math-type-macros.h: Document SET_NAN_PAYLOAD and
14017         check for definition.
14018         * sysdeps/ieee754/float128/strtod_nan_float128.h: Move to ...
14019         * sysdeps/ieee754/float128/math-nan-payload-float128.h: ... here.
14020         Include <ieee754_float128.h>.
14021         (FLOAT): Remove definition.
14022         (SET_MANTISSA): Rename to ...
14023         (SET_NAN_PAYLOAD): ... this.
14024         * sysdeps/ieee754/float128/strtof128_nan.c: Include
14025         <math-type-macros-float128.h> instead of <strtod_nan_float128.h>.
14026         Do not include <float128_private.h>.
14027         * sysdeps/ieee754/float128/wcstof128_nan.c: Likewise.
14028         * sysdeps/ieee754/ldbl-128/strtod_nan_ldouble.h: Move to ...
14029         * sysdeps/ieee754/ldbl-128/math-nan-payload-ldouble.h: ... here.
14030         (FLOAT): Remove definition.
14031         (SET_MANTISSA): Rename to ...
14032         (SET_NAN_PAYLOAD): ... this.
14033         * sysdeps/ieee754/ldbl-128ibm/strtod_nan_ldouble.h: Move to ...
14034         * sysdeps/ieee754/ldbl-128ibm/math-nan-payload-ldouble.h: ... here.
14035         (FLOAT): Remove definition.
14036         (SET_MANTISSA): Rename to ...
14037         (SET_NAN_PAYLOAD): ... this.
14038         * sysdeps/ieee754/ldbl-96/strtod_nan_ldouble.h: Move to ...
14039         * sysdeps/ieee754/ldbl-96/math-nan-payload-ldouble.h: ... here.
14040         (FLOAT): Remove definition.
14041         (SET_MANTISSA): Rename to ...
14042         (SET_NAN_PAYLOAD): ... this.
14043         * wcsmbs/wcstod_nan.c: Include <math-type-macros-double.h> instead
14044         of "../stdlib/strtod_nan_double.h".
14045         * wcsmbs/wcstof_nan.c: Include <math-type-macros-float.h> instead
14046         of "../stdlib/strtod_nan_float.h".
14047         * wcsmbs/wcstold_nan.c: Include <math-type-macros-ldouble.h>
14048         instead of "../stdlib/strtod_nan_ldouble.h".
14049         * manual/arith.texi (Parsing of Floats): Adjust comment.
14051 2018-05-16  Joseph Myers  <joseph@codesourcery.com>
14053         * math/Makefile (libm-narrow-fns): Add mul.
14054         (libm-test-funcs-narrow): Likewise.
14055         * math/Versions (GLIBC_2.28): Add narrowing multiply functions.
14056         * math/bits/mathcalls-narrow.h (mul): Use __MATHCALL_NARROW.
14057         * math/gen-auto-libm-tests.c (test_functions): Add mul.
14058         * math/math-narrow.h (CHECK_NARROW_MUL): New macro.
14059         (NARROW_MUL_ROUND_TO_ODD): Likewise.
14060         (NARROW_MUL_TRIVIAL): Likewise.
14061         * soft-fp/op-common.h (FP_TRUNC_COOKED): Likewise.
14062         * sysdeps/ieee754/float128/float128_private.h (__fmull): New
14063         macro.
14064         (__dmull): Likewise.
14065         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fmul and
14066         dmul.
14067         (CFLAGS-nldbl-dmul.c): New variable.
14068         (CFLAGS-nldbl-fmul.c): Likewise.
14069         * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
14070         __nldbl_dmull.
14071         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_dmull): New
14072         prototype.
14073         * manual/arith.texi (Misc FP Arithmetic): Document fmul, fmull,
14074         dmull, fMmulfN, fMmulfNx, fMxmulfN and fMxmulfNx.
14075         * math/auto-libm-test-in: Add tests of mul.
14076         * math/auto-libm-test-out-narrow-mul: New generated file.
14077         * math/libm-test-narrow-mul.inc: New file.
14078         * sysdeps/i386/fpu/s_f32xmulf64.c: Likewise.
14079         * sysdeps/ieee754/dbl-64/s_f32xmulf64.c: Likewise.
14080         * sysdeps/ieee754/dbl-64/s_fmul.c: Likewise.
14081         * sysdeps/ieee754/float128/s_f32mulf128.c: Likewise.
14082         * sysdeps/ieee754/float128/s_f64mulf128.c: Likewise.
14083         * sysdeps/ieee754/float128/s_f64xmulf128.c: Likewise.
14084         * sysdeps/ieee754/ldbl-128/s_dmull.c: Likewise.
14085         * sysdeps/ieee754/ldbl-128/s_f64xmulf128.c: Likewise.
14086         * sysdeps/ieee754/ldbl-128/s_fmull.c: Likewise.
14087         * sysdeps/ieee754/ldbl-128ibm/s_dmull.c: Likewise.
14088         * sysdeps/ieee754/ldbl-128ibm/s_fmull.c: Likewise.
14089         * sysdeps/ieee754/ldbl-96/s_dmull.c: Likewise.
14090         * sysdeps/ieee754/ldbl-96/s_fmull.c: Likewise.
14091         * sysdeps/ieee754/ldbl-opt/nldbl-dmul.c: Likewise.
14092         * sysdeps/ieee754/ldbl-opt/nldbl-fmul.c: Likewise.
14093         * sysdeps/ieee754/soft-fp/s_dmull.c: Likewise.
14094         * sysdeps/ieee754/soft-fp/s_fmul.c: Likewise.
14095         * sysdeps/ieee754/soft-fp/s_fmull.c: Likewise.
14096         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
14097         * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
14098         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
14099         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
14100         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
14101         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
14102         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
14103         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
14104         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
14105         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
14106         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
14107         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
14108         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
14109         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
14110         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
14111         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
14112         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
14113         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
14114         * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
14115         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
14116         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
14117         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
14118         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
14119         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
14120         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
14121         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
14123 2018-05-14  H.J. Lu  <hongjiu.lu@intel.com>
14125         * sysdeps/i386/crti.S (_init): Replace PREINIT_FUNCTION@PLT
14126         with *%eax in call.
14128 2018-05-14  H.J. Lu  <hongjiu.lu@intel.com>
14130         * sysdeps/i386/ldsodefs.h: Removed.
14131         * sysdeps/x86_64/ldsodefs.h: Moved to ...
14132         * sysdeps/x86/ldsodefs.h: This.
14133         (La_i86_regs): New.
14134         (La_i86_retval): Likewise.
14135         (ARCH_PLTENTER_MEMBERS): Add i86_gnu_pltenter.
14136         (ARCH_PLTEXIT_MEMBERS): i86_gnu_pltexit.
14138 2018-05-14  H.J. Lu  <hongjiu.lu@intel.com>
14140         * sysdeps/x86_64/multiarch/strlen-avx2.S (STRLEN): Remove the
14141         unnecessary testl.
14143 2018-05-13  Alan Modra  <amodra@gmail.com>
14145         * sysdeps/hppa/dl-machine.h (elf_machine_rela): Add
14146         R_PARISC_TLS_DTPOFF32 reloc addend.
14148 2018-05-11  Tulio Magno Quites Machado Filho  <tuliom@linux.ibm.com>
14150         * bits/floatn-common.h: Define __HAVE_FLOAT128_UNLIKE_LDBL.
14151         * math/math.h: Restrict the prototype definition for the functions
14152         issignaling(_Float128) and iszero(_Float128); and template
14153         __iseqsig_type<_Float128>, from __HAVE_DISTINCT_FLOAT128 to
14154         __HAVE_FLOAT128_UNLIKE_LDBL.
14155         * sysdeps/powerpc/bits/floatn.h [__HAVE_FLOAT128
14156         && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
14157         && __LDBL_MANT_DIG__ == 113]: Use long double suffix for
14158         __f128() constants; define the type _Float128 as long double;
14159         and reuse long double in __CFLOAT128.
14161 2018-05-11  Joseph Myers  <joseph@codesourcery.com>
14163         * sysdeps/generic/math_private.h: Do not include
14164         <math-barriers.h>.
14165         * stdlib/strtod_l.c: Include <math-barriers.h> instead of
14166         <math_private.h>.
14167         * math/fromfp.h: Include <math-barriers.h>.
14168         * math/math-narrow.h: Likewise.
14169         * math/s_nextafter.c: Likewise.
14170         * math/s_nexttowardf.c: Likewise.
14171         * sysdeps/aarch64/fpu/s_llrint.c: Likewise.
14172         * sysdeps/aarch64/fpu/s_llrintf.c: Likewise.
14173         * sysdeps/aarch64/fpu/s_lrint.c: Likewise.
14174         * sysdeps/aarch64/fpu/s_lrintf.c: Likewise.
14175         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
14176         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
14177         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
14178         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
14179         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
14180         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
14181         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
14182         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
14183         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
14184         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
14185         * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
14186         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
14187         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
14188         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
14189         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
14190         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
14191         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
14192         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
14193         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
14194         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
14195         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
14196         * sysdeps/ieee754/k_standardl.c: Likewise.
14197         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
14198         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
14199         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
14200         * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
14201         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
14202         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
14203         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
14204         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
14205         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
14206         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
14207         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
14208         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
14209         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
14210         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
14211         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
14212         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
14213         * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
14214         * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
14215         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
14216         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
14217         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Likewise.
14218         * sysdeps/m68k/m680x0/fpu/s_nextafterl.c: Likewise.
14220 2018-05-11  Florian Weimer  <fweimer@redhat.com>
14222         Use 64-bit epoch values in the time zone file parser.
14223         * include/time.h (internal_time_t): Define.
14224         (__tzfile_compute): Use it.
14225         * time/tzfile.c (struct leap): Use internal_time_t for epoch
14226         member.
14227         (transitions): Switch to internal_time_t.
14228         (__tzfile_read): Likewise.  Remove code dealing with 4-byte time_t
14229         types.
14230         (__tzfile_compute): Use internal_time_t for timer argument.  Check
14231         for truncation before calling __offtime.
14233 2018-05-11  Florian Weimer  <fweimer@redhat.com>
14235         [BZ #23166]
14236         * include/rpc/clnt.h (rpc_createerr): Declare hidden alias.
14237         * include/rpc/svc.h (svc_pollfd, svc_max_pollfd, svc_fdset):
14238         Likewise.
14239         * sunrpc/rpc_common.c (svc_fdset, rpc_createerr, svc_pollfd)
14240         (svc_max_pollfd): Add nocommon attribute and hidden alias.  Do not
14241         export without --enable-obsolete-rpc.
14242         * sunrpc/svcauth_des.c (svcauthdes_stats): Turn into compatibility
14243         symbol.  This should not have been exported, ever.
14245 2018-05-11  Rafal Luzynski  <digitalfreak@lingonborough.com>
14247         [BZ #23152]
14248         * localedata/locales/gd_GB (abmon): Fix typo in May:
14249         "Mhàrt" -> "Cèit".  Adjust the comment according to the change.
14251 2018-05-11  Siddhesh Poyarekar  <siddhesh@sourceware.org>
14253         * sysdeps/aarch64/multiarch/memcpy_falkor.S (__memcpy_falkor):
14254         Use multiple registers to copy data in loop tail.
14256         * sysdeps/aarch64/multiarch/memmove_falkor.S
14257         (__memmove_falkor): Use multiple registers to move data in
14258         loop tail.
14260 2018-05-10  Joseph Myers  <joseph@codesourcery.com>
14262         * math/math-underflow.h: New file.
14263         * sysdeps/generic/math_private.h: Do not include <float.h>.
14264         (fabs_tg): Remove macro.  Moved to math-underflow.h.
14265         (min_of_type_f): Likewise.
14266         (min_of_type_): Likewise.
14267         (min_of_type_l): Likewise.
14268         (min_of_type_f128): Likewise.
14269         (min_of_type): Likewise.
14270         (math_check_force_underflow): Likewise.
14271         (math_check_force_underflow_nonneg): Likewise.
14272         (math_check_force_underflow_complex): Likewise.
14273         * math/e_exp2_template.c: Include <math-underflow.h>.
14274         * math/k_casinh_template.c: Likewise.
14275         * math/s_catan_template.c: Likewise.
14276         * math/s_catanh_template.c: Likewise.
14277         * math/s_ccosh_template.c: Likewise.
14278         * math/s_cexp_template.c: Likewise.
14279         * math/s_clog10_template.c: Likewise.
14280         * math/s_clog_template.c: Likewise.
14281         * math/s_csin_template.c: Likewise.
14282         * math/s_csinh_template.c: Likewise.
14283         * math/s_csqrt_template.c: Likewise.
14284         * math/s_ctan_template.c: Likewise.
14285         * math/s_ctanh_template.c: Likewise.
14286         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
14287         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
14288         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
14289         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
14290         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
14291         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
14292         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
14293         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
14294         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
14295         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
14296         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
14297         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
14298         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
14299         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
14300         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
14301         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
14302         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
14303         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
14304         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
14305         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
14306         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
14307         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
14308         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
14309         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
14310         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
14311         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
14312         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
14313         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
14314         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
14315         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
14316         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
14317         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
14318         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
14319         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
14320         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
14321         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
14322         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
14323         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
14324         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
14325         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
14326         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
14327         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
14328         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
14329         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
14330         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
14331         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
14332         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
14333         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
14334         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
14335         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
14336         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
14337         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
14338         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
14339         * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
14340         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
14341         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
14342         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
14343         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
14344         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
14345         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
14346         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
14347         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
14348         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
14349         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
14350         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
14351         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
14352         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
14353         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
14354         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
14355         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
14356         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
14357         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
14358         * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
14359         * sysdeps/ieee754/ldbl-96/k_tanl.c: Likewise.
14360         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
14361         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
14362         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
14363         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
14364         * sysdeps/x86/fpu/powl_helper.c: Likewise.
14365         * sysdeps/ieee754/dbl-64/s_nextup.c: Include <float.h>.
14366         * sysdeps/ieee754/flt-32/s_nextupf.c: Likewise.
14367         * sysdeps/ieee754/ldbl-128/s_nextupl.c: Likewise.
14368         * sysdeps/ieee754/ldbl-128ibm/s_nextupl.c: Likewise.
14369         * sysdeps/ieee754/ldbl-96/s_nextupl.c: Likewise.
14371 2018-05-09  Joseph Myers  <joseph@codesourcery.com>
14373         * sysdeps/generic/math-barriers.h: New file.
14374         * sysdeps/generic/math_private.h [!math_opt_barrier]
14375         (math_opt_barrier): Move to math-barriers.h.
14376         [!math_opt_barrier] (math_force_eval): Likewise.
14377         * sysdeps/aarch64/fpu/math-barriers.h: New file.
14378         * sysdeps/aarch64/fpu/math_private.h (math_opt_barrier): Move to
14379         math-barriers.h.
14380         (math_force_eval): Likewise.
14381         * sysdeps/alpha/fpu/math-barriers.h: New file.
14382         * sysdeps/alpha/fpu/math_private.h (math_opt_barrier): Move to
14383         math-barriers.h.
14384         (math_force_eval): Likewise.
14385         * sysdeps/x86/fpu/math-barriers.h: New file.
14386         * sysdeps/i386/fpu/fenv_private.h (math_opt_barrier): Move to
14387         math-barriers.h.
14388         (math_force_eval): Likewise.
14389         * sysdeps/m68k/m680x0/fpu/math_private.h: Move to....
14390         * sysdeps/m68k/m680x0/fpu/math-barriers.h: ... here.  Adjust
14391         multiple-include guard for rename.
14392         * sysdeps/powerpc/fpu/math-barriers.h: New file.
14393         * sysdeps/powerpc/fpu/math_private.h (math_opt_barrier): Move to
14394         math-barriers.h.
14395         (math_force_eval): Likewise.
14397 2018-05-09  Paul Pluzhnikov  <ppluzhnikov@google.com>
14399         [BZ #22786]
14400         CVE-2018-11236
14401         * stdlib/canonicalize.c (__realpath): Fix overflow in path length
14402         computation.
14403         * stdlib/Makefile (test-bz22786): New test.
14404         * stdlib/test-bz22786.c: New test.
14406 2018-05-09  Joseph Myers  <joseph@codesourcery.com>
14408         * include/math-narrow-eval.h: New file.  Contents moved from ....
14409         * sysdeps/generic/math_private.h: ... here.
14410         (math_narrow_eval): Remove macro.  Moved to math-narrow-eval.h.
14411         [FLT_EVAL_METHOD != 0] (excess_precision): Likewise.
14412         * math/s_fdim_template.c: Include <math-narrow-eval.h>.
14413         * stdlib/strtod_l.c: Likewise.
14414         * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
14415         * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
14416         * sysdeps/i386/fpu/s_fdim.c: Likewise.
14417         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
14418         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
14419         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
14420         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
14421         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
14422         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
14423         * sysdeps/ieee754/dbl-64/gamma_productf.c: Likewise.
14424         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
14425         * sysdeps/ieee754/dbl-64/lgamma_neg.c: Likewise.
14426         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
14427         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
14428         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
14429         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
14430         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
14431         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
14432         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
14433         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
14434         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
14435         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
14436         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
14437         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
14438         * sysdeps/ieee754/flt-32/lgamma_negf.c: Likewise.
14439         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
14440         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
14441         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
14442         * sysdeps/ieee754/ldbl-96/gamma_product.c: Likewise.
14444 2018-05-08  Andreas Schwab  <schwab@suse.de>
14446         * sysdeps/nptl/internaltypes.h: Fix comment.
14448 2018-05-07  H.J. Lu  <hongjiu.lu@intel.com>
14450         * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
14451         (MEMSET_SYMBOL (__memset, erms)): Mark the debugger symbol as
14452         hidden.
14454 2018-05-07  Siddhesh Poyarekar  <siddhesh@sourceware.org>
14456         * benchtests/bench-memcpy-walk.c (test_main): Move declaration
14457         of I into loop header.
14458         * benchtests/bench-memmove-walk.c
14459         (test_main): Likewise.
14461 2018-05-07  Alexandre Oliva  <oliva@gnu.org>
14463         Revert:
14464         2018-04-30  Raymond Nicholson <rain1@airmail.cc>
14465         * manual/startup.texi (Aborting a Program): Remove inappropriate joke.
14467 2018-05-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
14469         [BZ #20419]
14470         * elf/dl-load.c (open_verify): Fix stack overflow.
14471         * elf/Makefile (tst-big-note): New test.
14472         * elf/tst-big-note-lib.S: New.
14473         * elf/tst-big-note.c: New.
14475 2018-05-04  Joseph Myers  <joseph@codesourcery.com>
14477         * scripts/abilist.awk: Ignore absolute symbols.
14478         * sysdeps/mach/hurd/i386/ld.abilist: Remove absolute symbols.
14479         * sysdeps/mach/hurd/i386/libBrokenLocale.abilist: Likewise.
14480         * sysdeps/mach/hurd/i386/libanl.abilist: Likewise.
14481         * sysdeps/mach/hurd/i386/libc.abilist: Likewise.
14482         * sysdeps/mach/hurd/i386/libcrypt.abilist: Likewise.
14483         * sysdeps/mach/hurd/i386/libdl.abilist: Likewise.
14484         * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
14485         * sysdeps/mach/hurd/i386/libnsl.abilist: Likewise.
14486         * sysdeps/mach/hurd/i386/libpthread.abilist: Likewise.
14487         * sysdeps/mach/hurd/i386/libresolv.abilist: Likewise.
14488         * sysdeps/mach/hurd/i386/librt.abilist: Likewise.
14489         * sysdeps/mach/hurd/i386/libutil.abilist: Likewise.
14490         * sysdeps/unix/sysv/linux/aarch64/ld.abilist: Likewise.
14491         * sysdeps/unix/sysv/linux/aarch64/libBrokenLocale.abilist: Likewise.
14492         * sysdeps/unix/sysv/linux/aarch64/libanl.abilist: Likewise.
14493         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Likewise.
14494         * sysdeps/unix/sysv/linux/aarch64/libcrypt.abilist: Likewise.
14495         * sysdeps/unix/sysv/linux/aarch64/libdl.abilist: Likewise.
14496         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
14497         * sysdeps/unix/sysv/linux/aarch64/libnsl.abilist: Likewise.
14498         * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist: Likewise.
14499         * sysdeps/unix/sysv/linux/aarch64/libresolv.abilist: Likewise.
14500         * sysdeps/unix/sysv/linux/aarch64/librt.abilist: Likewise.
14501         * sysdeps/unix/sysv/linux/aarch64/libthread_db.abilist: Likewise.
14502         * sysdeps/unix/sysv/linux/aarch64/libutil.abilist: Likewise.
14503         * sysdeps/unix/sysv/linux/alpha/ld.abilist: Likewise.
14504         * sysdeps/unix/sysv/linux/alpha/libBrokenLocale.abilist: Likewise.
14505         * sysdeps/unix/sysv/linux/alpha/libanl.abilist: Likewise.
14506         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
14507         * sysdeps/unix/sysv/linux/alpha/libcrypt.abilist: Likewise.
14508         * sysdeps/unix/sysv/linux/alpha/libdl.abilist: Likewise.
14509         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
14510         * sysdeps/unix/sysv/linux/alpha/libnsl.abilist: Likewise.
14511         * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: Likewise.
14512         * sysdeps/unix/sysv/linux/alpha/libresolv.abilist: Likewise.
14513         * sysdeps/unix/sysv/linux/alpha/librt.abilist: Likewise.
14514         * sysdeps/unix/sysv/linux/alpha/libthread_db.abilist: Likewise.
14515         * sysdeps/unix/sysv/linux/alpha/libutil.abilist: Likewise.
14516         * sysdeps/unix/sysv/linux/arm/ld.abilist: Likewise.
14517         * sysdeps/unix/sysv/linux/arm/libBrokenLocale.abilist: Likewise.
14518         * sysdeps/unix/sysv/linux/arm/libanl.abilist: Likewise.
14519         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
14520         * sysdeps/unix/sysv/linux/arm/libcrypt.abilist: Likewise.
14521         * sysdeps/unix/sysv/linux/arm/libdl.abilist: Likewise.
14522         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
14523         * sysdeps/unix/sysv/linux/arm/libnsl.abilist: Likewise.
14524         * sysdeps/unix/sysv/linux/arm/libpthread.abilist: Likewise.
14525         * sysdeps/unix/sysv/linux/arm/libresolv.abilist: Likewise.
14526         * sysdeps/unix/sysv/linux/arm/librt.abilist: Likewise.
14527         * sysdeps/unix/sysv/linux/arm/libthread_db.abilist: Likewise.
14528         * sysdeps/unix/sysv/linux/arm/libutil.abilist: Likewise.
14529         * sysdeps/unix/sysv/linux/hppa/ld.abilist: Likewise.
14530         * sysdeps/unix/sysv/linux/hppa/libBrokenLocale.abilist: Likewise.
14531         * sysdeps/unix/sysv/linux/hppa/libanl.abilist: Likewise.
14532         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
14533         * sysdeps/unix/sysv/linux/hppa/libcrypt.abilist: Likewise.
14534         * sysdeps/unix/sysv/linux/hppa/libdl.abilist: Likewise.
14535         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
14536         * sysdeps/unix/sysv/linux/hppa/libnsl.abilist: Likewise.
14537         * sysdeps/unix/sysv/linux/hppa/libpthread.abilist: Likewise.
14538         * sysdeps/unix/sysv/linux/hppa/libresolv.abilist: Likewise.
14539         * sysdeps/unix/sysv/linux/hppa/librt.abilist: Likewise.
14540         * sysdeps/unix/sysv/linux/hppa/libthread_db.abilist: Likewise.
14541         * sysdeps/unix/sysv/linux/hppa/libutil.abilist: Likewise.
14542         * sysdeps/unix/sysv/linux/i386/ld.abilist: Likewise.
14543         * sysdeps/unix/sysv/linux/i386/libBrokenLocale.abilist: Likewise.
14544         * sysdeps/unix/sysv/linux/i386/libanl.abilist: Likewise.
14545         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
14546         * sysdeps/unix/sysv/linux/i386/libcrypt.abilist: Likewise.
14547         * sysdeps/unix/sysv/linux/i386/libdl.abilist: Likewise.
14548         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
14549         * sysdeps/unix/sysv/linux/i386/libnsl.abilist: Likewise.
14550         * sysdeps/unix/sysv/linux/i386/libpthread.abilist: Likewise.
14551         * sysdeps/unix/sysv/linux/i386/libresolv.abilist: Likewise.
14552         * sysdeps/unix/sysv/linux/i386/librt.abilist: Likewise.
14553         * sysdeps/unix/sysv/linux/i386/libthread_db.abilist: Likewise.
14554         * sysdeps/unix/sysv/linux/i386/libutil.abilist: Likewise.
14555         * sysdeps/unix/sysv/linux/ia64/ld.abilist: Likewise.
14556         * sysdeps/unix/sysv/linux/ia64/libBrokenLocale.abilist: Likewise.
14557         * sysdeps/unix/sysv/linux/ia64/libanl.abilist: Likewise.
14558         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
14559         * sysdeps/unix/sysv/linux/ia64/libcrypt.abilist: Likewise.
14560         * sysdeps/unix/sysv/linux/ia64/libdl.abilist: Likewise.
14561         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
14562         * sysdeps/unix/sysv/linux/ia64/libnsl.abilist: Likewise.
14563         * sysdeps/unix/sysv/linux/ia64/libpthread.abilist: Likewise.
14564         * sysdeps/unix/sysv/linux/ia64/libresolv.abilist: Likewise.
14565         * sysdeps/unix/sysv/linux/ia64/librt.abilist: Likewise.
14566         * sysdeps/unix/sysv/linux/ia64/libthread_db.abilist: Likewise.
14567         * sysdeps/unix/sysv/linux/ia64/libutil.abilist: Likewise.
14568         * sysdeps/unix/sysv/linux/m68k/coldfire/ld.abilist: Likewise.
14569         * sysdeps/unix/sysv/linux/m68k/coldfire/libBrokenLocale.abilist:
14570         Likewise.
14571         * sysdeps/unix/sysv/linux/m68k/coldfire/libanl.abilist: Likewise.
14572         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
14573         * sysdeps/unix/sysv/linux/m68k/coldfire/libcrypt.abilist: Likewise.
14574         * sysdeps/unix/sysv/linux/m68k/coldfire/libdl.abilist: Likewise.
14575         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
14576         * sysdeps/unix/sysv/linux/m68k/coldfire/libnsl.abilist: Likewise.
14577         * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist: Likewise.
14578         * sysdeps/unix/sysv/linux/m68k/coldfire/libresolv.abilist: Likewise.
14579         * sysdeps/unix/sysv/linux/m68k/coldfire/librt.abilist: Likewise.
14580         * sysdeps/unix/sysv/linux/m68k/coldfire/libthread_db.abilist: Likewise.
14581         * sysdeps/unix/sysv/linux/m68k/coldfire/libutil.abilist: Likewise.
14582         * sysdeps/unix/sysv/linux/m68k/m680x0/ld.abilist: Likewise.
14583         * sysdeps/unix/sysv/linux/m68k/m680x0/libBrokenLocale.abilist:
14584         Likewise.
14585         * sysdeps/unix/sysv/linux/m68k/m680x0/libanl.abilist: Likewise.
14586         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
14587         * sysdeps/unix/sysv/linux/m68k/m680x0/libcrypt.abilist: Likewise.
14588         * sysdeps/unix/sysv/linux/m68k/m680x0/libdl.abilist: Likewise.
14589         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
14590         * sysdeps/unix/sysv/linux/m68k/m680x0/libnsl.abilist: Likewise.
14591         * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist: Likewise.
14592         * sysdeps/unix/sysv/linux/m68k/m680x0/libresolv.abilist: Likewise.
14593         * sysdeps/unix/sysv/linux/m68k/m680x0/librt.abilist: Likewise.
14594         * sysdeps/unix/sysv/linux/m68k/m680x0/libthread_db.abilist: Likewise.
14595         * sysdeps/unix/sysv/linux/m68k/m680x0/libutil.abilist: Likewise.
14596         * sysdeps/unix/sysv/linux/microblaze/ld.abilist: Likewise.
14597         * sysdeps/unix/sysv/linux/microblaze/libBrokenLocale.abilist: Likewise.
14598         * sysdeps/unix/sysv/linux/microblaze/libanl.abilist: Likewise.
14599         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
14600         * sysdeps/unix/sysv/linux/microblaze/libcrypt.abilist: Likewise.
14601         * sysdeps/unix/sysv/linux/microblaze/libdl.abilist: Likewise.
14602         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
14603         * sysdeps/unix/sysv/linux/microblaze/libnsl.abilist: Likewise.
14604         * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist: Likewise.
14605         * sysdeps/unix/sysv/linux/microblaze/libresolv.abilist: Likewise.
14606         * sysdeps/unix/sysv/linux/microblaze/librt.abilist: Likewise.
14607         * sysdeps/unix/sysv/linux/microblaze/libthread_db.abilist: Likewise.
14608         * sysdeps/unix/sysv/linux/microblaze/libutil.abilist: Likewise.
14609         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
14610         * sysdeps/unix/sysv/linux/mips/mips32/ld.abilist: Likewise.
14611         * sysdeps/unix/sysv/linux/mips/mips32/libBrokenLocale.abilist:
14612         Likewise.
14613         * sysdeps/unix/sysv/linux/mips/mips32/libanl.abilist: Likewise.
14614         * sysdeps/unix/sysv/linux/mips/mips32/libcidn.abilist: Likewise.
14615         * sysdeps/unix/sysv/linux/mips/mips32/libcrypt.abilist: Likewise.
14616         * sysdeps/unix/sysv/linux/mips/mips32/libdl.abilist: Likewise.
14617         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
14618         * sysdeps/unix/sysv/linux/mips/mips32/libnsl.abilist: Likewise.
14619         * sysdeps/unix/sysv/linux/mips/mips32/libnss_compat.abilist: Likewise.
14620         * sysdeps/unix/sysv/linux/mips/mips32/libnss_db.abilist: Likewise.
14621         * sysdeps/unix/sysv/linux/mips/mips32/libnss_dns.abilist: Likewise.
14622         * sysdeps/unix/sysv/linux/mips/mips32/libnss_files.abilist: Likewise.
14623         * sysdeps/unix/sysv/linux/mips/mips32/libnss_hesiod.abilist: Likewise.
14624         * sysdeps/unix/sysv/linux/mips/mips32/libnss_nis.abilist: Likewise.
14625         * sysdeps/unix/sysv/linux/mips/mips32/libnss_nisplus.abilist: Likewise.
14626         * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist: Likewise.
14627         * sysdeps/unix/sysv/linux/mips/mips32/libresolv.abilist: Likewise.
14628         * sysdeps/unix/sysv/linux/mips/mips32/librt.abilist: Likewise.
14629         * sysdeps/unix/sysv/linux/mips/mips32/libthread_db.abilist: Likewise.
14630         * sysdeps/unix/sysv/linux/mips/mips32/libutil.abilist: Likewise.
14631         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
14632         * sysdeps/unix/sysv/linux/mips/mips64/libBrokenLocale.abilist:
14633         Likewise.
14634         * sysdeps/unix/sysv/linux/mips/mips64/libanl.abilist: Likewise.
14635         * sysdeps/unix/sysv/linux/mips/mips64/libcrypt.abilist: Likewise.
14636         * sysdeps/unix/sysv/linux/mips/mips64/libdl.abilist: Likewise.
14637         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
14638         * sysdeps/unix/sysv/linux/mips/mips64/libnsl.abilist: Likewise.
14639         * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist: Likewise.
14640         * sysdeps/unix/sysv/linux/mips/mips64/librt.abilist: Likewise.
14641         * sysdeps/unix/sysv/linux/mips/mips64/libthread_db.abilist: Likewise.
14642         * sysdeps/unix/sysv/linux/mips/mips64/libutil.abilist: Likewise.
14643         * sysdeps/unix/sysv/linux/mips/mips64/n32/ld.abilist: Likewise.
14644         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
14645         * sysdeps/unix/sysv/linux/mips/mips64/n32/libresolv.abilist: Likewise.
14646         * sysdeps/unix/sysv/linux/mips/mips64/n64/ld.abilist: Likewise.
14647         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
14648         * sysdeps/unix/sysv/linux/mips/mips64/n64/libresolv.abilist: Likewise.
14649         * sysdeps/unix/sysv/linux/nios2/ld.abilist: Likewise.
14650         * sysdeps/unix/sysv/linux/nios2/libBrokenLocale.abilist: Likewise.
14651         * sysdeps/unix/sysv/linux/nios2/libanl.abilist: Likewise.
14652         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
14653         * sysdeps/unix/sysv/linux/nios2/libcrypt.abilist: Likewise.
14654         * sysdeps/unix/sysv/linux/nios2/libdl.abilist: Likewise.
14655         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
14656         * sysdeps/unix/sysv/linux/nios2/libnsl.abilist: Likewise.
14657         * sysdeps/unix/sysv/linux/nios2/libpthread.abilist: Likewise.
14658         * sysdeps/unix/sysv/linux/nios2/libresolv.abilist: Likewise.
14659         * sysdeps/unix/sysv/linux/nios2/librt.abilist: Likewise.
14660         * sysdeps/unix/sysv/linux/nios2/libthread_db.abilist: Likewise.
14661         * sysdeps/unix/sysv/linux/nios2/libutil.abilist: Likewise.
14662         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist: Likewise.
14663         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
14664         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ld.abilist: Likewise.
14665         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libBrokenLocale.abilist:
14666         Likewise.
14667         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libanl.abilist: Likewise.
14668         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libcrypt.abilist: Likewise.
14669         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libdl.abilist: Likewise.
14670         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libnsl.abilist: Likewise.
14671         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist:
14672         Likewise.
14673         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libresolv.abilist:
14674         Likewise.
14675         * sysdeps/unix/sysv/linux/powerpc/powerpc32/librt.abilist: Likewise.
14676         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libthread_db.abilist:
14677         Likewise.
14678         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libutil.abilist: Likewise.
14679         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
14680         Likewise.
14681         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
14682         Likewise.
14683         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld-le.abilist: Likewise.
14684         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld.abilist: Likewise.
14685         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale-le.abilist:
14686         Likewise.
14687         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale.abilist:
14688         Likewise.
14689         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl-le.abilist:
14690         Likewise.
14691         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl.abilist: Likewise.
14692         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
14693         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
14694         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt-le.abilist:
14695         Likewise.
14696         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt.abilist: Likewise.
14697         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl-le.abilist: Likewise.
14698         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl.abilist: Likewise.
14699         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
14700         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
14701         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl-le.abilist:
14702         Likewise.
14703         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl.abilist: Likewise.
14704         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread-le.abilist:
14705         Likewise.
14706         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread.abilist:
14707         Likewise.
14708         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv-le.abilist:
14709         Likewise.
14710         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv.abilist:
14711         Likewise.
14712         * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt-le.abilist: Likewise.
14713         * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt.abilist: Likewise.
14714         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db-le.abilist:
14715         Likewise.
14716         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db.abilist:
14717         Likewise.
14718         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil-le.abilist:
14719         Likewise.
14720         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil.abilist: Likewise.
14721         * sysdeps/unix/sysv/linux/riscv/rv64/ld.abilist: Likewise.
14722         * sysdeps/unix/sysv/linux/riscv/rv64/libBrokenLocale.abilist:
14723         Likewise.
14724         * sysdeps/unix/sysv/linux/riscv/rv64/libanl.abilist: Likewise.
14725         * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
14726         * sysdeps/unix/sysv/linux/riscv/rv64/libcrypt.abilist: Likewise.
14727         * sysdeps/unix/sysv/linux/riscv/rv64/libdl.abilist: Likewise.
14728         * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
14729         * sysdeps/unix/sysv/linux/riscv/rv64/libnsl.abilist: Likewise.
14730         * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist: Likewise.
14731         * sysdeps/unix/sysv/linux/riscv/rv64/libresolv.abilist: Likewise.
14732         * sysdeps/unix/sysv/linux/riscv/rv64/librt.abilist: Likewise.
14733         * sysdeps/unix/sysv/linux/riscv/rv64/libthread_db.abilist: Likewise.
14734         * sysdeps/unix/sysv/linux/riscv/rv64/libutil.abilist: Likewise.
14735         * sysdeps/unix/sysv/linux/s390/libanl.abilist: Likewise.
14736         * sysdeps/unix/sysv/linux/s390/s390-32/ld.abilist: Likewise.
14737         * sysdeps/unix/sysv/linux/s390/s390-32/libBrokenLocale.abilist:
14738         Likewise.
14739         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
14740         * sysdeps/unix/sysv/linux/s390/s390-32/libcrypt.abilist: Likewise.
14741         * sysdeps/unix/sysv/linux/s390/s390-32/libdl.abilist: Likewise.
14742         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
14743         * sysdeps/unix/sysv/linux/s390/s390-32/libnsl.abilist: Likewise.
14744         * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist: Likewise.
14745         * sysdeps/unix/sysv/linux/s390/s390-32/libresolv.abilist: Likewise.
14746         * sysdeps/unix/sysv/linux/s390/s390-32/librt.abilist: Likewise.
14747         * sysdeps/unix/sysv/linux/s390/s390-32/libthread_db.abilist: Likewise.
14748         * sysdeps/unix/sysv/linux/s390/s390-32/libutil.abilist: Likewise.
14749         * sysdeps/unix/sysv/linux/s390/s390-64/ld.abilist: Likewise.
14750         * sysdeps/unix/sysv/linux/s390/s390-64/libBrokenLocale.abilist:
14751         Likewise.
14752         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
14753         * sysdeps/unix/sysv/linux/s390/s390-64/libcrypt.abilist: Likewise.
14754         * sysdeps/unix/sysv/linux/s390/s390-64/libdl.abilist: Likewise.
14755         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
14756         * sysdeps/unix/sysv/linux/s390/s390-64/libnsl.abilist: Likewise.
14757         * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist: Likewise.
14758         * sysdeps/unix/sysv/linux/s390/s390-64/libresolv.abilist: Likewise.
14759         * sysdeps/unix/sysv/linux/s390/s390-64/librt.abilist: Likewise.
14760         * sysdeps/unix/sysv/linux/s390/s390-64/libthread_db.abilist: Likewise.
14761         * sysdeps/unix/sysv/linux/s390/s390-64/libutil.abilist: Likewise.
14762         * sysdeps/unix/sysv/linux/sh/ld.abilist: Likewise.
14763         * sysdeps/unix/sysv/linux/sh/libBrokenLocale.abilist: Likewise.
14764         * sysdeps/unix/sysv/linux/sh/libanl.abilist: Likewise.
14765         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
14766         * sysdeps/unix/sysv/linux/sh/libcrypt.abilist: Likewise.
14767         * sysdeps/unix/sysv/linux/sh/libdl.abilist: Likewise.
14768         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
14769         * sysdeps/unix/sysv/linux/sh/libnsl.abilist: Likewise.
14770         * sysdeps/unix/sysv/linux/sh/libpthread.abilist: Likewise.
14771         * sysdeps/unix/sysv/linux/sh/libresolv.abilist: Likewise.
14772         * sysdeps/unix/sysv/linux/sh/librt.abilist: Likewise.
14773         * sysdeps/unix/sysv/linux/sh/libthread_db.abilist: Likewise.
14774         * sysdeps/unix/sysv/linux/sh/libutil.abilist: Likewise.
14775         * sysdeps/unix/sysv/linux/sparc/sparc32/ld.abilist: Likewise.
14776         * sysdeps/unix/sysv/linux/sparc/sparc32/libBrokenLocale.abilist:
14777         Likewise.
14778         * sysdeps/unix/sysv/linux/sparc/sparc32/libanl.abilist: Likewise.
14779         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
14780         * sysdeps/unix/sysv/linux/sparc/sparc32/libcrypt.abilist: Likewise.
14781         * sysdeps/unix/sysv/linux/sparc/sparc32/libdl.abilist: Likewise.
14782         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
14783         * sysdeps/unix/sysv/linux/sparc/sparc32/libnsl.abilist: Likewise.
14784         * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist: Likewise.
14785         * sysdeps/unix/sysv/linux/sparc/sparc32/libresolv.abilist: Likewise.
14786         * sysdeps/unix/sysv/linux/sparc/sparc32/librt.abilist: Likewise.
14787         * sysdeps/unix/sysv/linux/sparc/sparc32/libthread_db.abilist: Likewise.
14788         * sysdeps/unix/sysv/linux/sparc/sparc32/libutil.abilist: Likewise.
14789         * sysdeps/unix/sysv/linux/sparc/sparc64/ld.abilist: Likewise.
14790         * sysdeps/unix/sysv/linux/sparc/sparc64/libBrokenLocale.abilist:
14791         Likewise.
14792         * sysdeps/unix/sysv/linux/sparc/sparc64/libanl.abilist: Likewise.
14793         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
14794         * sysdeps/unix/sysv/linux/sparc/sparc64/libcrypt.abilist: Likewise.
14795         * sysdeps/unix/sysv/linux/sparc/sparc64/libdl.abilist: Likewise.
14796         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
14797         * sysdeps/unix/sysv/linux/sparc/sparc64/libnsl.abilist: Likewise.
14798         * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist: Likewise.
14799         * sysdeps/unix/sysv/linux/sparc/sparc64/libresolv.abilist: Likewise.
14800         * sysdeps/unix/sysv/linux/sparc/sparc64/librt.abilist: Likewise.
14801         * sysdeps/unix/sysv/linux/sparc/sparc64/libthread_db.abilist: Likewise.
14802         * sysdeps/unix/sysv/linux/sparc/sparc64/libutil.abilist: Likewise.
14803         * sysdeps/unix/sysv/linux/x86_64/64/ld.abilist: Likewise.
14804         * sysdeps/unix/sysv/linux/x86_64/64/libBrokenLocale.abilist: Likewise.
14805         * sysdeps/unix/sysv/linux/x86_64/64/libanl.abilist: Likewise.
14806         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
14807         * sysdeps/unix/sysv/linux/x86_64/64/libcrypt.abilist: Likewise.
14808         * sysdeps/unix/sysv/linux/x86_64/64/libdl.abilist: Likewise.
14809         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
14810         * sysdeps/unix/sysv/linux/x86_64/64/libnsl.abilist: Likewise.
14811         * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: Likewise.
14812         * sysdeps/unix/sysv/linux/x86_64/64/libresolv.abilist: Likewise.
14813         * sysdeps/unix/sysv/linux/x86_64/64/librt.abilist: Likewise.
14814         * sysdeps/unix/sysv/linux/x86_64/64/libthread_db.abilist: Likewise.
14815         * sysdeps/unix/sysv/linux/x86_64/64/libutil.abilist: Likewise.
14816         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: Likewise.
14817         * sysdeps/unix/sysv/linux/x86_64/x32/ld.abilist: Likewise.
14818         * sysdeps/unix/sysv/linux/x86_64/x32/libBrokenLocale.abilist: Likewise.
14819         * sysdeps/unix/sysv/linux/x86_64/x32/libanl.abilist: Likewise.
14820         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
14821         * sysdeps/unix/sysv/linux/x86_64/x32/libcrypt.abilist: Likewise.
14822         * sysdeps/unix/sysv/linux/x86_64/x32/libdl.abilist: Likewise.
14823         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
14824         * sysdeps/unix/sysv/linux/x86_64/x32/libnsl.abilist: Likewise.
14825         * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: Likewise.
14826         * sysdeps/unix/sysv/linux/x86_64/x32/libresolv.abilist: Likewise.
14827         * sysdeps/unix/sysv/linux/x86_64/x32/librt.abilist: Likewise.
14828         * sysdeps/unix/sysv/linux/x86_64/x32/libthread_db.abilist: Likewise.
14829         * sysdeps/unix/sysv/linux/x86_64/x32/libutil.abilist: Likewise.
14831 2018-05-04  Stefan Liebler  <stli@linux.vnet.ibm.com>
14833         [BZ #23137]
14834         * sysdeps/nptl/lowlevellock.h (lll_wait_tid):
14835         Use atomic_load_acquire to load __tid.
14837 2018-05-02  H.J. Lu  <hongjiu.lu@intel.com>
14839         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S (__swapcontext):
14840         Restore the pointer into %rdx, after syscall and use %rdx,
14841         instead of %rsi, to restore context.
14843 2018-05-02  H.J. Lu  <hongjiu.lu@intel.com>
14845         * sysdeps/unix/sysv/linux/x86_64/setcontext.S (__setcontext):
14846         Pop the pointer into %rdx after syscall and use %rdx, instead
14847         of %rsi, to restore context.
14849 2018-05-02  H.J. Lu  <hongjiu.lu@intel.com>
14851         * nptl/pthread_create.c (START_THREAD_DEFN): Clear previous
14852         handlers after setjmp.
14853         * setjmp/longjmp.c (__libc_longjmp): Don't define alias if
14854         defined.
14855         * sysdeps/unix/sysv/linux/x86/setjmpP.h: Include
14856         <libc-pointer-arith.h>.
14857         (_JUMP_BUF_SIGSET_BITS_PER_WORD): New.
14858         (_JUMP_BUF_SIGSET_NSIG): Changed to 96.
14859         (_JUMP_BUF_SIGSET_NWORDS): Changed to use ALIGN_UP and
14860         _JUMP_BUF_SIGSET_BITS_PER_WORD.
14861         * sysdeps/x86/Makefile (sysdep_routines): Add __longjmp_cancel.
14862         * sysdeps/x86/__longjmp_cancel.S: New file.
14863         * sysdeps/x86/longjmp.c: Likewise.
14864         * sysdeps/x86/nptl/pt-longjmp.c: Likewise.
14866 2018-05-02  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
14868         * NEWS: Add ustat.h deprecation entry.
14869         * bits/ustat.h: Remove file.
14870         * misc/sys/ustat.h: Likewise.
14871         * misc/ustat.h: Likewise.
14872         * sysdeps/unix/sysv/linux/generic/ustat.c: Likewise.
14873         * misc/Makefile (headers): Remove ustat.h and sys/ustat.h.
14874         * misc/ustat.c (__ustat): Rename to __old_ustat and export only in
14875         compatibility mode.
14876         * sysdeps/unix/sysv/linux/ustat.c (__ustat): Likewise.
14877         * sysdeps/unix/sysv/linux/mips/ustat.c: Define DEV_TO_KDEV and use
14878         generic Linux implementation.
14880 2018-04-30  Tulio Magno Quites Machado Filho  <tuliom@linux.ibm.com>
14882         * math/w_exp_compat.c: Replace hidden_def with libm_hidden_def..
14883         * math/w_expl_compat.c: Likewise.
14884         * math/w_exp_template.c: Likewise.  Remove hidden_def_x.
14886 2018-04-30  Raymond Nicholson  <rain1@airmail.cc>
14888         * manual/startup.texi (Aborting a Program): Remove inappropriate joke.
14890 2018-04-27  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
14892         * sysdeps/unix/sysv/linux/arm/readahead.c: Remove file.
14893         * sysdeps/unix/sysv/linux/mips/mips32/readahead.c: Likewise.
14894         * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (readahead):
14895         Remove.
14896         * sysdeps/unix/sysv/linux/mips/mips64/n64/syscalls.list: Likewise.
14897         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
14898         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
14899         * sysdeps/unix/sysv/linux/readahead.c (__readahead): Assume
14900         __NR_readahead existence, and use INLINE_SYSCALL_CALL, __ALIGNMENT_ARG,
14901         and SYSCALL_LL64.
14903 2018-04-27  Tulio Magno Quites Machado Filho  <tuliom@linux.ibm.com>
14905         * math/e_exp2_template.c: Replace M_SUF (M_LN2) with M_MLIT (M_LN2).
14907         * math/w_acos_template.c: Replace M_SUF (fabs) with M_FABS.
14908         * math/w_asin_template.c: Likewise.
14909         * math/w_atanh_template.c: Likewise.
14911 2018-04-27  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
14913         * sysdeps/powerpc/preconfigure [machine == powerpc64] (machine): Define
14914         to powerpc/powerpc64/be for big-endian.
14915         [machine == powerpc64le]: Define to powerpc/powerpc64/le for
14916         little-endian.
14918         * sysdeps/powerpc/powerpc64/power4/Implies: Move to powerpc64/be.
14919         * sysdeps/powerpc/powerpc64/power4/fpu/Implies: Likewise.
14920         * sysdeps/powerpc/powerpc64/power4/fpu/multiarch/Implies: Likewise.
14921         * sysdeps/powerpc/powerpc64/power4/multiarch/Implies: Likewise.
14922         * sysdeps/powerpc/powerpc64/power5+/Implies: Likewise.
14923         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Likewise.
14924         * sysdeps/powerpc/powerpc64/power5+/fpu/multiarch/Implies: Likewise.
14925         * sysdeps/powerpc/powerpc64/power5+/multiarch/Implies: Likewise.
14926         * sysdeps/powerpc/powerpc64/power5/Implies: Likewise.
14927         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Likewise.
14928         * sysdeps/powerpc/powerpc64/power5/fpu/multiarch/Implies: Likewise.
14929         * sysdeps/powerpc/powerpc64/power5/multiarch/Implies: Likewise.
14930         * sysdeps/powerpc/powerpc64/power6/Implies: Likewise.
14931         * sysdeps/powerpc/powerpc64/power6/fpu/Implies: Likewise.
14932         * sysdeps/powerpc/powerpc64/power6/fpu/multiarch/Implies: Likewise.
14933         * sysdeps/powerpc/powerpc64/power6/multiarch/Implies: Likewise.
14934         * sysdeps/powerpc/powerpc64/power6x/Implies: Likewise.
14935         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Likewise.
14936         * sysdeps/powerpc/powerpc64/power6x/fpu/multiarch/Implies: Likewise.
14937         * sysdeps/powerpc/powerpc64/power6x/multiarch/Implies: Likewise.
14938         * sysdeps/powerpc/powerpc64/power7/Implies: Likewise.
14939         * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Likewise.
14940         * sysdeps/powerpc/powerpc64/power7/fpu/multiarch/Implies: Likewise.
14941         * sysdeps/powerpc/powerpc64/power7/multiarch/Implies: Likewise.
14942         * sysdeps/powerpc/powerpc64/power8/Implies: Likewise.
14943         * sysdeps/powerpc/powerpc64/power8/fpu/Implies: Likewise.
14944         * sysdeps/powerpc/powerpc64/power8/fpu/multiarch/Implies: Likewise.
14945         * sysdeps/powerpc/powerpc64/power8/multiarch/Implies: Likewise.
14946         * sysdeps/powerpc/powerpc64/power9/Implies: Likewise.
14947         * sysdeps/powerpc/powerpc64/power9/fpu/Implies: Likewise.
14948         * sysdeps/powerpc/powerpc64/power9/fpu/multiarch/Implies: Likewise.
14949         * sysdeps/powerpc/powerpc64/power9/multiarch/Implies: Likewise.
14951         * sysdeps/powerpc/powerpc64/be/power4/Implies: Move from powerpc64 and
14952         adjusted to imply powerpc64 and older processors on powerpc64/be.
14953         * sysdeps/powerpc/powerpc64/be/power4/fpu/Implies: Likewise.
14954         * sysdeps/powerpc/powerpc64/be/power4/fpu/multiarch/Implies: Likewise.
14955         * sysdeps/powerpc/powerpc64/be/power4/multiarch/Implies: Likewise.
14956         * sysdeps/powerpc/powerpc64/be/power5+/Implies: Likewise.
14957         * sysdeps/powerpc/powerpc64/be/power5+/fpu/Implies: Likewise.
14958         * sysdeps/powerpc/powerpc64/be/power5+/fpu/multiarch/Implies: Likewise.
14959         * sysdeps/powerpc/powerpc64/be/power5+/multiarch/Implies: Likewise.
14960         * sysdeps/powerpc/powerpc64/be/power5/Implies: Likewise.
14961         * sysdeps/powerpc/powerpc64/be/power5/fpu/Implies: Likewise.
14962         * sysdeps/powerpc/powerpc64/be/power5/fpu/multiarch/Implies: Likewise.
14963         * sysdeps/powerpc/powerpc64/be/power5/multiarch/Implies: Likewise.
14964         * sysdeps/powerpc/powerpc64/be/power6/Implies: Likewise.
14965         * sysdeps/powerpc/powerpc64/be/power6/fpu/Implies: Likewise.
14966         * sysdeps/powerpc/powerpc64/be/power6/fpu/multiarch/Implies: Likewise.
14967         * sysdeps/powerpc/powerpc64/be/power6/multiarch/Implies: Likewise.
14968         * sysdeps/powerpc/powerpc64/be/power6x/Implies: Likewise.
14969         * sysdeps/powerpc/powerpc64/be/power6x/fpu/Implies: Likewise.
14970         * sysdeps/powerpc/powerpc64/be/power6x/fpu/multiarch/Implies: Likewise.
14971         * sysdeps/powerpc/powerpc64/be/power6x/multiarch/Implies: Likewise.
14972         * sysdeps/powerpc/powerpc64/be/power7/Implies: Likewise.
14973         * sysdeps/powerpc/powerpc64/be/power7/fpu/Implies: Likewise.
14974         * sysdeps/powerpc/powerpc64/be/power7/fpu/multiarch/Implies: Likewise.
14975         * sysdeps/powerpc/powerpc64/be/power7/multiarch/Implies: Likewise.
14976         * sysdeps/powerpc/powerpc64/be/power8/Implies: Likewise.
14977         * sysdeps/powerpc/powerpc64/be/power8/fpu/Implies: Likewise.
14978         * sysdeps/powerpc/powerpc64/be/power8/fpu/multiarch/Implies: Likewise.
14979         * sysdeps/powerpc/powerpc64/be/power8/multiarch/Implies: Likewise.
14980         * sysdeps/powerpc/powerpc64/be/power9/Implies: Likewise.
14981         * sysdeps/powerpc/powerpc64/be/power9/fpu/Implies: Likewise.
14982         * sysdeps/powerpc/powerpc64/be/power9/fpu/multiarch/Implies: Likewise.
14983         * sysdeps/powerpc/powerpc64/be/power9/multiarch/Implies: Likewise.
14985         * sysdeps/powerpc/powerpc64/970/Implies: Move to powerpc64/be.
14986         * sysdeps/powerpc/powerpc64/be/970/Implies: Move from powerpc64/be.
14987         * sysdeps/powerpc/powerpc64/be/a2/Implies: New file.
14988         * sysdeps/powerpc/powerpc64/be/cell/Implies: Likewise.
14990         * sysdeps/powerpc/powerpc64/be/Implies: New file.
14991         * sysdeps/powerpc/powerpc64/be/fpu/Implies: Likewise.
14992         * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Implies: Likewise.
14993         * sysdeps/powerpc/powerpc64/be/multiarch/Implies: Likewise.
14995         * sysdeps/powerpc/powerpc64le/Implies: Move to powerpc64/le.
14996         * sysdeps/powerpc/powerpc64le/Implies-before: Likewise.
14997         * sysdeps/powerpc/powerpc64le/Makefile: Likewise.
14998         * sysdeps/powerpc/powerpc64le/configure: Likewise.
14999         * sysdeps/powerpc/powerpc64le/configure.ac: Likewise.
15000         * sysdeps/powerpc/powerpc64le/fpu/Implies: Likewise.
15001         * sysdeps/powerpc/powerpc64le/fpu/e_sqrtf128.c: Likewise.
15002         * sysdeps/powerpc/powerpc64le/fpu/multiarch/Implies: Likewise.
15003         * sysdeps/powerpc/powerpc64le/fpu/sfp-machine.h: Likewise.
15004         * sysdeps/powerpc/powerpc64le/multiarch/Implies: Likewise.
15005         * sysdeps/powerpc/powerpc64le/power9/fpu/e_sqrtf128.c: Likewise.
15007         * sysdeps/powerpc/powerpc64/le/Implies: Move from powerpc64le.
15008         * sysdeps/powerpc/powerpc64/le/Implies-before: Likewise.
15009         * sysdeps/powerpc/powerpc64/le/Makefile: Likewise.
15010         * sysdeps/powerpc/powerpc64/le/configure: Likewise.
15011         * sysdeps/powerpc/powerpc64/le/configure.ac: Likewise.
15012         * sysdeps/powerpc/powerpc64/le/fpu/Implies: Likewise.
15013         * sysdeps/powerpc/powerpc64/le/fpu/e_sqrtf128.c: Likewise.
15014         * sysdeps/powerpc/powerpc64/le/fpu/multiarch/Implies: Likewise.
15015         * sysdeps/powerpc/powerpc64/le/fpu/sfp-machine.h: Likewise.
15016         * sysdeps/powerpc/powerpc64/le/multiarch/Implies: Likewise.
15017         * sysdeps/powerpc/powerpc64/le/power9/fpu/e_sqrtf128.c: Likewise.
15019         * sysdeps/powerpc/powerpc64le/power7/Implies: Move to powerpc64/le.
15020         * sysdeps/powerpc/powerpc64le/power7/fpu/Implies: Likewise.
15021         * sysdeps/powerpc/powerpc64le/power7/fpu/multiarch/Implies: Likewise.
15022         * sysdeps/powerpc/powerpc64le/power7/multiarch/Implies: Likewise.
15023         * sysdeps/powerpc/powerpc64le/power8/Implies: Likewise.
15024         * sysdeps/powerpc/powerpc64le/power8/fpu/Implies: Likewise.
15025         * sysdeps/powerpc/powerpc64le/power8/fpu/multiarch/Implies: Likewise.
15026         * sysdeps/powerpc/powerpc64le/power8/multiarch/Implies: Likewise.
15027         * sysdeps/powerpc/powerpc64le/power9/Implies: Likewise.
15028         * sysdeps/powerpc/powerpc64le/power9/fpu/Implies: Likewise.
15029         * sysdeps/powerpc/powerpc64le/power9/fpu/multiarch/Implies: Likewise.
15030         * sysdeps/powerpc/powerpc64le/power9/multiarch/Implies: Likewise.
15032         * sysdeps/powerpc/powerpc64/le/power7/Implies: Move from powerpc64le
15033         and adjusted to imply olders processors.
15034         * sysdeps/powerpc/powerpc64/le/power7/fpu/Implies: Likewise.
15035         * sysdeps/powerpc/powerpc64/le/power7/fpu/multiarch/Implies: Likewise.
15036         * sysdeps/powerpc/powerpc64/le/power7/multiarch/Implies: Likewise.
15037         * sysdeps/powerpc/powerpc64/le/power8/Implies: Likewise.
15038         * sysdeps/powerpc/powerpc64/le/power8/fpu/Implies: Likewise.
15039         * sysdeps/powerpc/powerpc64/le/power8/fpu/multiarch/Implies: Likewise.
15040         * sysdeps/powerpc/powerpc64/le/power8/multiarch/Implies: Likewise.
15041         * sysdeps/powerpc/powerpc64/le/power9/Implies: Likewise.
15042         * sysdeps/powerpc/powerpc64/le/power9/fpu/Implies: Likewise.
15043         * sysdeps/powerpc/powerpc64/le/power9/fpu/multiarch/Implies: Likewise.
15044         * sysdeps/powerpc/powerpc64/le/power9/multiarch/Implies: Likewise.
15046         * sysdeps/unix/sysv/linux/powerpc/powerpc64le/Implies: Move to
15047         powerpc64/le.
15048         * sysdeps/unix/sysv/linux/powerpc/powerpc64le/float128-abi.h: Likewise.
15049         * sysdeps/unix/sysv/linux/powerpc/powerpc64le/fpu/Implies: Likewise.
15051         * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/Implies: Move from
15052         powerpc64le.
15053         * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/float128-abi.h: Likewise.
15054         * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/fpu/Implies: Likewise.
15056         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: Move to
15057         powerpc64/be.
15058         * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
15059         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: Likewise.
15060         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/fpu/Implies: Likewise.
15062         * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/970/Implies: Move from
15063         powerpc64 and adjusted.
15064         * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/a2/Implies: Likewise.
15065         * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/cell/Implies: Likewise.
15066         * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/cell/fpu/Implies:
15067         Likewise.
15069 2018-04-27  Joseph Myers  <joseph@codesourcery.com>
15071         * sysdeps/tile: Remove.
15072         * sysdeps/unix/sysv/linux/tile: Likewise.
15073         * README (tilegx-*-linux-gnu): Remove from list of supported
15074         configurations.
15075         * manual/contrib.texi (Contributors): Mention Chris Metcalf's
15076         contribution of support for generic Linux kernel syscall
15077         interface.
15078         * scripts/build-many-glibcs.py (Context.add_all_configs): Remove
15079         tilegx configurations.
15080         (Config.install_linux_headers): Do not handle tile.
15081         * sysdeps/unix/sysv/linux/aarch64/ldsodefs.h: Do not mention Tile
15082         in comment.
15083         * sysdeps/unix/sysv/linux/nios2/Makefile: Likewise.
15084         * sysdeps/unix/sysv/linux/posix_fadvise.c: Likewise.
15085         [__ASSUME_FADVISE64_64_NO_ALIGN] (__ALIGNMENT_ARG): Remove
15086         conditional undefine and redefine.
15087         * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not mention Tile
15088         in comment.
15089         [__ASSUME_FADVISE64_64_NO_ALIGN] (__ALIGNMENT_ARG): Remove
15090         conditional undefine and redefine.
15092 2018-04-26  Aurelien Jarno  <aurelien@aurel32.net>
15094         * signal/tst-sigaction.c: New file to test BZ #23069.
15095         * signal/Makefile (tests): Fix indentation. Add tst-sigaction.
15097 2018-04-26  Tulio Magno Quites Machado Filho  <tuliom@linux.ibm.com>
15099         [BZ #22766]
15100         * include/dlfcn.h [__libc_dl_open]: Replace RTLD_LAZY with RTLD_NOW.
15101         * sysdeps/gnu/unwind-resume.c (__lib_gcc_s_init): Replace
15102         __libc_dlopen_mode() using RTLD_NOW with __libc_dlopen.
15103         * sysdeps/nptl/unwind-forcedunwind.c: Likewise.
15105 2018-04-25  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
15107         * sysdeps/unix/sysv/linux/getdirentries.c (getdirentries): Build iff
15108         _DIRENT_MATCHES_DIRENT64 is not defined.
15109         * sysdeps/unix/sysv/linux/getdirentries64.c (getdirentries64): Open
15110         implementation and alias to getdirentries if _DIRENT_MATCHES_DIRENT64
15111         is defined.
15112         * sysdeps/unix/sysv/linux/wordsize-64/getdirentries.c: Remove file.
15113         * sysdeps/unix/sysv/linux/wordsize-64/getdirentries64.c: Remove file.
15115 2018-04-25  Joseph Myers  <joseph@codesourcery.com>
15117         * scripts/build-many-glibcs.py (Context.checkout): Default GCC
15118         version to GCC 8 branch.
15120 2018-04-24  Joseph Myers  <joseph@codesourcery.com>
15122         * sysdeps/mach/hurd/dl-sysdep.c: Include <not-errno.h>.
15123         (check_no_hidden): Use type of original function when declaring
15124         alias.
15126         * sysdeps/unix/sysv/linux/sys/ptrace.h
15127         (PTRACE_SECCOMP_GET_METADATA): New enum value and macro.
15128         * sysdeps/unix/sysv/linux/bits/ptrace-shared.h
15129         (struct __ptrace_seccomp_metadata): New type.
15130         * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h
15131         (PTRACE_SECCOMP_GET_METADATA): Likewise.
15132         * sysdeps/unix/sysv/linux/arm/sys/ptrace.h
15133         (PTRACE_SECCOMP_GET_METADATA): Likewise.
15134         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h
15135         (PTRACE_SECCOMP_GET_METADATA): Likewise.
15136         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h
15137         (PTRACE_SECCOMP_GET_METADATA): Likewise.
15138         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h
15139         (PTRACE_SECCOMP_GET_METADATA): Likewise.
15140         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h
15141         (PTRACE_SECCOMP_GET_METADATA): Likewise.
15142         * sysdeps/unix/sysv/linux/tile/sys/ptrace.h
15143         (PTRACE_SECCOMP_GET_METADATA): Likewise.
15144         * sysdeps/unix/sysv/linux/x86/sys/ptrace.h
15145         (PTRACE_SECCOMP_GET_METADATA): Likewise.
15147 2018-04-23  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
15149         * dirent/alphasort.c (alphasort): Build iff _DIRENT_MATCHES_DIRENT64 is
15150         defined.
15151         * dirent/versionsort.c (versionsort): Likewise.
15152         * dirent/alphasort64.c (alphasort64): Build regardless and alias to
15153         alphasort if _DIRENT_MATCHES_DIRENT64 is defined.
15154         * dirent/versionsort64.c (versionsort64): Likewise.
15155         * sysdeps/unix/sysv/linux/i386/alphasort64.c: Remove file.
15156         * sysdeps/unix/sysv/linux/arm/alphasort64.c: Likewise.
15157         * sysdeps/unix/sysv/linux/arm/versionsort64.c: Likewise.
15158         * sysdeps/unix/sysv/linux/m68k/alphasort64.c: Likewise.
15159         * sysdeps/unix/sysv/linux/m68k/versionsort64.c: Likewise.
15160         * sysdeps/unix/sysv/linux/s390/s390-32/alphasort64.c: Likewise.
15161         * sysdeps/unix/sysv/linux/s390/s390-32/versionsort64.c: Likewise.
15162         * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
15163         * sysdeps/unix/sysv/linux/alphasort64.c: New file.
15164         * sysdeps/unix/sysv/linux/versionsort64.c: Likewise.
15165         * sysdeps/unix/sysv/linux/powerpc/powerpc32/alphasort64.c: Likewise.
15166         * sysdeps/unix/sysv/linux/powerpc/powerpc32/versionsort64.c: Likewise.
15167         * sysdeps/unix/sysv/linux/sparc/sparc32/alphasort64.c: Likewise.
15168         * sysdeps/unix/sysv/linux/sparc/sparc32/versionsort64.c: Likewise.
15170 2018-04-23  Joseph Myers  <joseph@codesourcery.com>
15172         * elf/elf.h (NT_PPC_PKEY): New macro.
15174 2018-04-23  Dragan Stanojevic - Nevidljivi  <invisible@hidden-city.net>
15176         [BZ #23094]
15177         * localedata/locales/hr_HR: fix thousands_sep and
15178         mon_thousands_sep
15180 2018-04-20  Joseph Myers  <joseph@codesourcery.com>
15182         * sysdeps/unix/sysv/linux/alpha/bits/termios.h [__USE_MISC]
15183         (XTABS): Define to TAB3.
15185 2018-04-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
15187         * sysdeps/hppa/fpu/libm-test-ulps: Update.
15189         * dirent/scandir-tail-common.c: New file.
15190         * dirent/scandir-tail.c: Use scandir-tail-common.c.
15191         (__scandir_tail): Build iff _DIRENT_MATCHES_DIRENT64 is not defined.
15192         * dirent/scandir.c: Use scandir-tail-common.c.
15193         * dirent/scandirat.c: Likewise.
15194         * dirent/scandir64-tail.c: Use scandir-tail-common.c.
15195         * dirent/scandir64.c (scandir64): Always build and alias to scandir
15196         if _DIRENT_MATCHES_DIRENT64 is defined.
15197         * dirent/scandirat64.c (scandirat64): Likewise.
15198         * include/dirent.h (__scandir_tail): Only define iff
15199         _DIRENT_MATCHES_DIRENT64 is not defined.
15200         (__scandir64_tail): Define regardless.
15201         (__scandirat, scandirat64): Remove libc_hidden_proto.
15202         * sysdeps/unix/sysv/linux/arm/scandir64.c: Remove file.
15203         * sysdeps/unix/sysv/linux/m68k/scandir64.c: Likewise.
15204         * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Likewise.
15205         * sysdeps/unix/sysv/linux/s390/s390-32/scandir64.c: Likewise.
15206         * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
15207         * sysdeps/unix/sysv/linux/sparc/sparc32/scandir64.c: Likewise.
15208         * sysdeps/unix/sysv/linux/scandir64.c: New file.
15210 2018-04-20  Joseph Myers  <joseph@codesourcery.com>
15212         * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_ASIMDFHM):
15213         New macro.
15214         * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
15215         Increase to 24.
15216         (_dl_aarch64_cap_flags): Add asimdfhm.
15218 2018-04-19  Chung-Lin Tang  <cltang@codesourcery.com>
15220         * sysdeps/nios2/libm-test-ulps: Update.
15222 2018-04-19  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
15224         * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c (__getdents64):
15225         Only alias to __getdents for _DIRENT_MATCHES_DIRENT64.
15227         * sysdeps/unix/sysv/linux/alpha/getdents.c: Add comments with alpha
15228         requirements.
15229         (_DIRENT_MATCHES_DIRENT64): Undef
15230         * sysdeps/unix/sysv/linux/alpha/getdents64.c: Likewise.
15231         * sysdeps/unix/sysv/linux/arm/getdents64.c: Remove file.
15232         * sysdeps/unix/sysv/linux/generic/getdents.c: Likewise.
15233         * sysdeps/unix/sysv/linux/generic/getdents64.c: Likewise.
15234         * sysdeps/unix/sysv/linux/generic/wordsize-32/getdents.c: Likewise.
15235         * sysdeps/unix/sysv/linux/getdents.c: Simplify implementation by
15236         use getdents64 syscalls as base.
15237         * sysdeps/unix/sysv/linux/getdents64.c: Likewise and add compatibility
15238         symbol if required.
15239         * sysdeps/unix/sysv/linux/hppa/getdents64.c: Likewise.
15240         * sysdeps/unix/sysv/linux/i386/getdents64.c: Likewise.
15241         * sysdeps/unix/sysv/linux/m68k/getdents64.c: Likewise.
15242         * sysdeps/unix/sysv/linux/powerpc/getdents64.c: Likewise.
15243         * sysdeps/unix/sysv/linux/s390/s390-32/getdents64.c: Likewise.
15244         * sysdeps/unix/sysv/linux/sparc/sparc32/getdents64.c: Likewise.
15245         * sysdeps/unix/sysv/linux/wordsize-64/getdents.c: Likewise.
15246         * sysdeps/unix/sysv/linux/wordsize-64/getdents64.c: Likewise.
15247         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
15248         (__get_clockfreq_via_proc_openprom): Use __getdents64.
15249         * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c: New file.
15251 2018-04-19  Stefan Liebler  <stli@linux.vnet.ibm.com>
15253         * scripts/test_printers_common.py (init_test): Disable lock elision.
15255 2018-04-19  Stefan Liebler  <stli@linux.vnet.ibm.com>
15257         * math/test-tgmath.c (count_double, count_float,
15258         count_ldouble, count_cdouble, count_cfloat,
15259         count_cldouble): Use volatile int.
15261 2018-04-19  Samuel Thibault  <samuel.thibault@ens-lyon.org>
15263         * sysdeps/mach/hurd/i386/Makefile [$(subdir) = conform]
15264         (conformtest-xfail-conds): Add i386-gnu.
15265         * conform/data/fcntl.h-data (flock.l_type, flock.l_whence): XFAIL on
15266         i386-gnu.
15267         * conform/data/sys/ipc.h-data (ipc_perm.uid, ipc_perm.gid,
15268         ipc_perm.cuid, ipc_perm.cgid): Likewise.
15269         * conform/data/sys/msg.h-data (msqid_ds.msg_lspid,
15270         msqid_ds.msg_lrpid): Likewise.
15271         * conform/data/sys/shm.h-data (shmid_ds.shm_lpid, shmid_ds.shm_cpid):
15272         Likewise.
15273         * conform/data/sys/stat.h-data (stat.st_dev): Likewise.
15274         * conform/data/sys/statvfs.h-data (statvfs.f_fsid): Likewise.
15275         * sysdeps/mach/hurd/bits/statvfs.h (struct statvfs): Make f_bsize,
15276         f_namemax, f_frsize, and f_flag fields unsigned long int instead of
15277         unsigned int.
15278         (struct statvfs64): Likewise.
15279         * sysdeps/mach/hurd/bits/statfs.h (struct statfs, struct statfs64):
15280         Likewise.
15281         * bits/in.h [!__USE_MISC]: Do not define struct ip_opts.
15282         * conform/data/netinet/in.h-data: Allow sin_ and sin6_ prefix.
15283         * sysdeps/gnu/bits/msq.h (struct msqid_ds): Use __wait_queue struct
15284         instead of wait_queue.
15285         * sysdeps/gnu/bits/shm.h (struct shmid_ds): Use __vm_area_struct
15286         instead of vm_area_struct.
15287         * bits/sched.h: Include <bits/types/struct_sched_param.h> and move
15288         struct sched_param definition to it.
15289         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
15290         * bits/types/struct_sched_param.h: New file.
15291         * sysdeps/htl/bits/types/struct___pthread_attr.h: Include
15292         <bits/types/struct_sched_param.h> instead of <sched.h>.
15293         * posix/Makefile (headers): Add bits/types/struct_sched_param.h.
15294         * sysdeps/pthread/bits/types/sigevent_t.h: New file, based on the
15295         generic version but include <bits/pthreadtypes.h> to make struct
15296         sigevent's sigev_notify_attributes field a pthread_attr_t*.
15297         * bits/types/siginfo_t.h: Remove siginfo struct name, unused and
15298         non-compliant.
15299         * bits/termios.h [__USE_XOPEN || __USE_XOPEN2K8] (IXANY): Define.
15300         [__USE_XOPEN && !__USE_XOPEN2K] (IUCLC, OLCUC): Define.
15301         [__USE_XOPEN] (OFDEL): New macro.
15302         [__USE_XOPEN && !__USE_XOPEN2K] (XCASE): New macro.
15303         * bits/resource.h (RLIM_SAVED_MAX, RLIM_SAVED_CUR): New macros.
15304         * sysdeps/hurd/include/hurd.h [!_ISOMAC]: Do not declare libc hidden
15305         prototypes.
15306         * sysdeps/hurd/include/hurd/fd.h [!_ISOMAC]: Likewise.
15307         * sysdeps/hurd/include/hurd/signal.h [!_ISOMAC]: Likewise.
15308         * sysdeps/arm/sys/ucontext.h: Remove fpregset struct name, unused and
15309         non-compliant.
15310         * sysdeps/i386/sys/ucontext.h: Likewise.
15311         * sysdeps/m68k/sys/ucontext.h: Likewise.
15312         * sysdeps/mips/sys/ucontext.h: Likewise.
15313         * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h: Likewise.
15314         * sysdeps/mach/hurd/i386/Makefile
15315         (test-xfail-POSIX/fcntl.h/conform): Add.
15316         (test-xfail-POSIX/signal.h/conform): Add.
15317         (test-xfail-POSIX/semaphore.h/conform): Add.
15318         (test-xfail-POSIX/regex.h/conform): Add.
15319         (test-xfail-POSIX/aio.h/conform): Add.
15320         (test-xfail-POSIX/mqueue.h/conform): Add.
15321         (test-xfail-POSIX/sys/types.h/conform): Add.
15322         (test-xfail-UNIX98/fcntl.h/conform): Add.
15323         (test-xfail-UNIX98/netdb.h/conform): Add.
15324         (test-xfail-UNIX98/signal.h/conform): Add.
15325         (test-xfail-UNIX98/semaphore.h/conform): Add.
15326         (test-xfail-UNIX98/regex.h/conform): Add.
15327         (test-xfail-UNIX98/aio.h/conform): Add.
15328         (test-xfail-UNIX98/ftw.h/conform): Add.
15329         (test-xfail-UNIX98/mqueue.h/conform): Add.
15330         (test-xfail-UNIX98/netinet/in.h/conform): Add.
15331         (test-xfail-UNIX98/sys/wait.h/conform): Add.
15332         (test-xfail-UNIX98/sys/sem.h/conform): Add.
15333         (test-xfail-UNIX98/sys/uio.h/conform): Add.
15334         (test-xfail-UNIX98/sys/socket.h/conform): Add.
15335         (test-xfail-UNIX98/sys/types.h/conform): Add.
15336         (test-xfail-UNIX98/stdlib.h/conform): Add.
15337         (test-xfail-UNIX98/arpa/inet.h/conform): Add.
15338         (test-xfail-POSIX2008/fcntl.h/conform): Add.
15339         (test-xfail-POSIX2008/netdb.h/conform): Add.
15340         (test-xfail-POSIX2008/signal.h/conform): Add.
15341         (test-xfail-POSIX2008/semaphore.h/conform): Add.
15342         (test-xfail-POSIX2008/regex.h/conform): Add.
15343         (test-xfail-POSIX2008/aio.h/conform): Add.
15344         (test-xfail-POSIX2008/mqueue.h/conform): Add.
15345         (test-xfail-POSIX2008/netinet/in.h/conform): Add.
15346         (test-xfail-POSIX2008/sys/wait.h/conform): Add.
15347         (test-xfail-POSIX2008/sys/socket.h/conform): Add.
15348         (test-xfail-POSIX2008/sys/types.h/conform): Add.
15349         (test-xfail-POSIX2008/arpa/inet.h/conform): Add.
15350         (test-xfail-XOPEN2K/fcntl.h/conform): Add.
15351         (test-xfail-XOPEN2K/netdb.h/conform): Add.
15352         (test-xfail-XOPEN2K/signal.h/conform): Add.
15353         (test-xfail-XOPEN2K/semaphore.h/conform): Add.
15354         (test-xfail-XOPEN2K/regex.h/conform): Add.
15355         (test-xfail-XOPEN2K/aio.h/conform): Add.
15356         (test-xfail-XOPEN2K/ftw.h/conform): Add.
15357         (test-xfail-XOPEN2K/mqueue.h/conform): Add.
15358         (test-xfail-XOPEN2K/netinet/in.h/conform): Add.
15359         (test-xfail-XOPEN2K/sys/wait.h/conform): Add.
15360         (test-xfail-XOPEN2K/sys/sem.h/conform): Add.
15361         (test-xfail-XOPEN2K/sys/uio.h/conform): Add.
15362         (test-xfail-XOPEN2K/sys/socket.h/conform): Add.
15363         (test-xfail-XOPEN2K/sys/types.h/conform): Add.
15364         (test-xfail-XOPEN2K/stdlib.h/conform): Add.
15365         (test-xfail-XOPEN2K/arpa/inet.h/conform): Add.
15366         (test-xfail-XOPEN2K8/fcntl.h/conform): Add.
15367         (test-xfail-XOPEN2K8/netdb.h/conform): Add.
15368         (test-xfail-XOPEN2K8/signal.h/conform): Add.
15369         (test-xfail-XOPEN2K8/semaphore.h/conform): Add.
15370         (test-xfail-XOPEN2K8/regex.h/conform): Add.
15371         (test-xfail-XOPEN2K8/aio.h/conform): Add.
15372         (test-xfail-XOPEN2K8/ftw.h/conform): Add.
15373         (test-xfail-XOPEN2K8/mqueue.h/conform): Add.
15374         (test-xfail-XOPEN2K8/netinet/in.h/conform): Add.
15375         (test-xfail-XOPEN2K8/sys/wait.h/conform): Add.
15376         (test-xfail-XOPEN2K8/sys/sem.h/conform): Add.
15377         (test-xfail-XOPEN2K8/sys/uio.h/conform): Add.
15378         (test-xfail-XOPEN2K8/sys/socket.h/conform): Add.
15379         (test-xfail-XOPEN2K8/sys/types.h/conform): Add.
15380         (test-xfail-XOPEN2K8/stdlib.h/conform): Add.
15381         (test-xfail-XOPEN2K8/arpa/inet.h/conform): Add.
15382         * conform/data/signal.h-data (SA_SIGINFO, SA_NOCLDWAIT): XFAIL on
15383         i386-gnu.
15384         * conform/data/sys/wait.h-data (WIFCONTINUED, WEXITED, WSTOPPED,
15385         WCONTINUED, WNOWAIT): XFAIL on i386-gnu.
15387 2018-04-18  Joseph Myers  <joseph@codesourcery.com>
15389         * scripts/build-many-glibcs.py (Context.add_all_configs): Use
15390         --enable-obsolete for powerpc-linux-gnuspe.
15392 2018-04-18  Samuel Thibault  <samuel.thibault@ens-lyon.org>
15394         * conform/data/sys/un.h-data: Allow sun_ prefix.
15395         * sysdeps/mach/include/lock-intern.h: Do not declare libc hidden
15396         prototypes.
15397         * sysdeps/mach/include/mach.h: Likewise.
15398         * sysdeps/mach/include/mach/mig_support.h: Likewise.
15399         * sysdeps/mach/include/mach_error.h: Likewise.
15401 2018-04-16  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
15403         * sysdeps/arm/armv6t2/memchr.S (memchr): Remove ARM code path.
15404         * sysdeps/arm/armv6t2/strlen.S (memchr): Likewise.
15405         * sysdeps/arm/armv7/multiarch/memchr_neon.S (memchr): Likewise.
15406         * sysdeps/arm/armv7/strcmp.S (strcmp): Likewise.
15408 2018-04-16  Andreas Schwab  <schwab@suse.de>
15410         [BZ #19527]
15411         * iconvdata/gconv-modules (ARMSCII8//, ShiftJISX0213//): New aliases.
15413 2018-04-15  Patrick McGehearty  <patrick.mcgehearty@oracle.com>
15415         * sysdeps/ieee754/dbl-64/e_exp.c: faster __ieee754_exp()
15416         * sysdeps/ieee754/dbl-64/eexp.tbl: New file for e_exp.c
15418 2018-04-12  DJ Delorie  <dj@redhat.com>
15420         * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
15421         version to 4.16.
15423 2018-04-12  Stefan Liebler  <stli@linux.vnet.ibm.com>
15425         * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h
15426         (struct kernel_sigaction): Use the same definition on 31bit as is used
15427         on 64bit.
15429 2018-04-09  Florian Weimer  <fweimer@redhat.com>
15431         [BZ #23037]
15432         * resolv/res_send.c (send_dg): Use designated initializers instead
15433         of assignment to zero-initialize other fields of struct mmsghdr.
15435 2018-04-06  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
15437         * sysdeps/posix/readdir.c (__READDIR, __GETDENTS, DIRENTY_TYPE,
15438         __READDIR_ALIAS): Undefine after usage.
15439         * sysdeps/posix/readdir_r.c (__READDIR_R, __GETDENTS, DIRENT_TYPE,
15440         __READDIR_R_ALIAS): Likewise.
15441         * sysdeps/unix/sysv/linux/arm/readdir64.c: Remove file.
15442         * sysdeps/unix/sysv/linux/arm/readdir64_r.c: Likewise.
15443         * sysdeps/unix/sysv/linux/m68k/readdir64.c: Likewise.
15444         * sysdeps/unix/sysv/linux/m68k/readdir64_r.c: Likewise.
15445         * sysdeps/unix/sysv/linux/powerpc/readdir64.c: Likewise.
15446         * sysdeps/unix/sysv/linux/powerpc/readdir64_r.c: Likewise.
15447         * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
15448         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
15449         * sysdeps/unix/sysv/linux/s390/s390-32/readdir64.c: Likewise.
15450         * sysdeps/unix/sysv/linux/s390/s390-32/readdir64_r.c: Likewise.
15451         * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64.c: Likewise.
15452         * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64_r.c: Likewise.
15453         * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
15454         * sysdeps/unix/sysv/linux/wordsize-64/readdir64.c: Likewise.
15455         * sysdeps/unix/sysv/linux/wordsize-64/readdir64_r.c: Likewise.
15456         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Likewise.
15457         * sysdeps/unix/sysv/linux/readdir.c: New file.
15458         * sysdeps/unix/sysv/linux/readdir_r.c: Likewise.
15459         * sysdeps/unix/sysv/linux/readdir64.c: Add compat symbol if required.
15460         * sysdeps/unix/sysv/linux/readdir64_r.c: Likewise.
15462         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Update.
15464 2018-04-06  Andreas Schwab  <schwab@linux-m68k.org>
15466         * manual/charset.texi (Converting a Character): Fix typo.
15468 2018-04-05  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
15470         * sysdeps/sparc/fpu/libm-test-ulps: Update.
15472         * sysdeps/arm/libm-test-ulps: Update.
15474         * sysdeps/unix/sysv/linux/aarch64/sigaction.c: Use default Linux version
15475         as base implementation.
15476         * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
15477         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
15478         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
15479         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
15480         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
15481         * sysdeps/unix/sysv/linux/alpha/kernel_sigaction.h: Add include guards,
15482         remove unrequired definitions and update comments.
15483         * sysdeps/unix/sysv/linux/kernel_sigaction.h: Likewise.
15484         * sysdeps/unix/sysv/linux/mips/kernel_sigaction.h: Likewise.
15485         * sysdeps/unix/sysv/linux/ia64/kernel_sigaction.h: New file.
15486         * sysdeps/unix/sysv/linux/m68k/kernel_sigaction.h: Likewise.
15487         * sysdeps/unix/sysv/linux/nios2/kernel_sigaction.h: Likewise.
15488         * sysdeps/unix/sysv/linux/powerpc/kernel_sigaction: Likewise.
15489         * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Likewise.
15490         * sysdeps/unix/sysv/linux/sh/kernel_sigaction.h: Likewise.
15491         * sysdeps/unix/sysv/linux/sparc/kernel_sigaction.h: Likewise.
15492         * sysdeps/unix/sysv/linux/tile/kernel_sigaction.h: Likewise.
15493         * sysdeps/unix/sysv/linux/ia64/sigaction.c: Remove file.
15494         * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
15495         * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c: Likewise.
15496         * sysdeps/unix/sysv/linux/sigaction.c: Add STUB, SET_SA_RESTORER,
15497         and RESET_SA_RESTORER hooks.
15499 2018-04-05  Stefan Liebler  <stli@linux.vnet.ibm.com>
15501         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
15503 2018-04-05  Florian Weimer  <fweimer@redhat.com>
15505         * manual/examples/mbstouwcs.c (mbstouwcs): Fix loop termination,
15506         integer overflow, memory leak on error, and indeterminate errno
15507         value.  Add a null wide character to terminate the result string.
15508         * manual/charset.texi (Converting a Character): Mention embedded
15509         null bytes in the mbrtowc input string.  Explain what happens in
15510         the -2 result case.  Do not claim that mbrtowc is simple or
15511         obvious to use.  Adjust the description of the code example.  Use
15512         @code, not @var, for concrete variables.
15514 2018-04-05  Florian Weimer  <fweimer@redhat.com>
15516         * manual/examples/mbstouwcs.c: New file.
15517         * manual/charset.texi (Converting a Character): Include it.
15519 2018-04-05  Samuel Thibault  <samuel.thibault@ens-lyon.org>
15521         * include/dirent.h (dirfd): Add hidden proto.
15522         * dirent/dirfd.c (dirfd): Add hidden def.
15523         * sysdeps/mach/hurd/dirfd.c (dirfd): Add hidden def.
15524         * sysdeps/posix/dirfd.c (dirfd): Add hidden def.
15526 2018-04-04  Tulio Magno Quites Machado Filho  <tuliom@linux.ibm.com>
15528         * sysdeps/powerpc/fpu/libm-test-ulps: Increase double-precision
15529         sin, cos and sincos to 1 ULP.
15531 2018-04-04  Maciej W. Rozycki  <macro@mips.com>
15533         [BZ #19818]
15534         * sysdeps/generic/ldsodefs.h (SYMBOL_ADDRESS): Handle SHN_ABS
15535         symbols.
15536         * elf/dl-addr.c (determine_info): Ignore SHN_ABS symbols.
15537         * elf/tst-absolute-sym.c: New file.
15538         * elf/tst-absolute-sym-lib.c: New file.
15539         * elf/tst-absolute-sym-lib.lds: New file.
15540         * elf/Makefile (tests): Add `tst-absolute-sym'.
15541         (modules-names): Add `tst-absolute-sym-lib'.
15542         (LDLIBS-tst-absolute-sym-lib.so): New variable.
15543         ($(objpfx)tst-absolute-sym-lib.so): New dependency.
15544         ($(objpfx)tst-absolute-sym): New dependency.
15546         [BZ #19818]
15547         * sysdeps/generic/ldsodefs.h (LOOKUP_VALUE_ADDRESS): Add `set'
15548         parameter.
15549         (SYMBOL_ADDRESS): New macro.
15550         [!ELF_FUNCTION_PTR_IS_SPECIAL] (DL_SYMBOL_ADDRESS): Use
15551         SYMBOL_ADDRESS for symbol address calculation.
15552         * elf/dl-runtime.c (_dl_fixup): Likewise.
15553         (_dl_profile_fixup): Likewise.
15554         * elf/dl-symaddr.c (_dl_symbol_address): Likewise.
15555         * elf/rtld.c (dl_main): Likewise.
15556         * sysdeps/aarch64/dl-machine.h (elf_machine_rela): Likewise.
15557         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Likewise.
15558         * sysdeps/arm/dl-machine.h (elf_machine_rel): Likewise.
15559         (elf_machine_rela): Likewise.
15560         * sysdeps/hppa/dl-machine.h (elf_machine_rela): Likewise.
15561         * sysdeps/hppa/dl-symaddr.c (_dl_symbol_address): Likewise.
15562         * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
15563         (elf_machine_rela): Likewise.
15564         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
15565         * sysdeps/m68k/dl-machine.h (elf_machine_rela): Likewise.
15566         * sysdeps/microblaze/dl-machine.h (elf_machine_rela): Likewise.
15567         * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
15568         Likewise.
15569         (elf_machine_reloc): Likewise.
15570         (elf_machine_got_rel): Likewise.
15571         * sysdeps/mips/dl-trampoline.c (__dl_runtime_resolve): Likewise.
15572         * sysdeps/nios2/dl-machine.h (elf_machine_rela): Likewise.
15573         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
15574         Likewise.
15575         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
15576         Likewise.
15577         * sysdeps/riscv/dl-machine.h (elf_machine_rela): Likewise.
15578         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
15579         Likewise.
15580         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela):
15581         Likewise.
15582         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
15583         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela):
15584         Likewise.
15585         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
15586         Likewise.
15587         * sysdeps/tile/dl-machine.h (elf_machine_rela): Likewise.
15588         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
15590 2018-04-04  Zack Weinberg  <zackw@panix.com>
15592         * sysdeps/generic/internal-signals.h: Include signal.h,
15593         sigsetops.h, and stdbool.h.
15594         (__libc_signal_block_all): Actually block all signals.
15595         (__libc_signal_block_app): Likewise.
15596         (__libc_signal_restore_set): Actually restore the signal mask.
15598 2018-04-04  Florian Weimer  <fweimer@redhat.com>
15600         inet: Actually build and run tst-deadline.
15601         * inet/Makefile (tests-internal): Add tst-deadline and do not
15602         overwrite the variable.
15603         (tests-static-internal): Remove variable.
15605 2018-04-03  H.J. Lu  <hongjiu.lu@intel.com>
15607         [BZ #22947]
15608         * bits/uio-ext.h (RWF_APPEND): New.
15609         * sysdeps/unix/sysv/linux/bits/uio-ext.h (RWF_APPEND): Likewise.
15610         * manual/llio.texi: Document RWF_APPEND.
15611         * misc/tst-preadvwritev2-common.c (RWF_APPEND): New.
15612         (RWF_SUPPORTED): Add RWF_APPEND.
15614 2018-04-03  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
15616         [BZ #22391]
15617         * nptl/sigaction.c (__sigaction): Use __is_internal_signal to
15618         check for internal nptl signals.
15619         * nptl/sigaction.c (__sigaction): Likewise.
15620         * signal/sigaddset.c (sigaddset): Likewise.
15621         * signal/sigdelset.c (sigdelset): Likewise.
15622         * sysdeps/posix/signal.c (__bsd_signal): Likewise.
15623         * sysdeps/posix/sigset.c (sigset): Call and check sigaddset return
15624         value.
15625         * signal/sigfillset.c (sigfillset): User __clear_internal_signals
15626         to filter out internal nptl signals.
15627         * signal/tst-sigset.c (do_test): Check ech signal indidually and
15628         also check realtime signals using standard macros.
15629         * sysdeps/generic/internal-signals.h (__clear_internal_signals,
15630         __is_internal_signal, __libc_signal_block_all,
15631         __libc_signal_block_app, __libc_signal_restore_set): New functions.
15632         * sysdeps/nptl/sigfillset.c: Remove file.
15633         * sysdeps/unix/sysv/linux/internal-signals.h (__is_internal_signal):
15634         Change return to bool.
15635         (__clear_internal_signals): Remove SIGTIMER clean since it is
15636         equal to SIGCANEL on Linux.
15637         * sysdeps/unix/sysv/linux/sigtimedwait.c (__sigtimedwait): Assume
15638         signal set was constructed using standard functions.
15640 2018-04-03  Samuel Thibault  <samuel.thibault@ens-lyon.org>
15642         * sysdeps/mach/hurd/if_index.c (__if_nametoindex): Return ENODEV if
15643         ifname is too long.
15644         * hurd/hurdsig.c (interrupted_reply_port_location): Use
15645         DIAG_IGNORE_NEEDS_COMMENT to silence warning with GCC 6 and before.
15646         * sysdeps/mach/hurd/i386/exc2signal.c (_hurd_exception2signal): Add
15647         hidden def.
15648         * mach/spin-lock.c (__mutex_unlock): Add hidden def.
15649         * signal/sigaddset.c: Include <sigsetopts.h>.
15650         * signal/sigdelset.c: Likewise.
15652 2018-04-03  Wilco Dijkstra  <wdijkstr@arm.com>
15654         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Cleanup ifdefs.
15655         (__cos): Likewise.
15656         * sysdeps/ieee754/dbl-64/s_sin.c (__sincos): Refactor using the same
15657         logic as sin and cos.
15659 2018-04-03  Wilco Dijkstra  <wdijkstr@arm.com>
15661         * sysdeps/ieee754/dbl-64/s_sin.c (do_sin): Use TAYLOR_SIN for small
15662         inputs.  Return correct sign.
15663         (do_sincos): Remove small input check before do_sin, let do_sin set
15664         the sign.
15665         (__sin): Likewise.
15666         (__cos): Likewise.
15668 2018-04-03  Wilco Dijkstra  <wdijkstr@arm.com>
15670         * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SLOW): Remove.
15671         (do_cos_slow): Likewise.
15672         (do_sin_slow): Likewise.
15673         (reduce_and_compute): Likewise.
15674         (slow): Likewise.
15675         (slow1): Likewise.
15676         (slow2): Likewise.
15677         (sloww): Likewise.
15678         (sloww1): Likewise.
15679         (sloww2): Likewise.
15680         (bslow): Likewise.
15681         (bslow1): Likewise.
15682         (bslow2): Likewise.
15683         (cslow2): Likewise.
15685 2018-04-03  Wilco Dijkstra  <wdijkstr@arm.com>
15687         * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SIN): Remove cor parameter.
15688         (do_cos): Remove corp parameter and calculations.
15689         (do_sin): Likewise.
15690         (do_sincos): Remove cor variable.
15691         (__sin): Use do_sincos for huge inputs.
15692         (__cos): Likewise.
15693         * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
15694         (reduce_and_compute_sincos): Remove unused function.
15696 2018-04-03  Wilco Dijkstra  <wdijkstr@arm.com>
15698         * sysdeps/ieee754/dbl-64/s_sin.c (reduce_sincos_1): Rename to
15699         reduce_sincos, improve accuracy to 136 bits.
15700         (do_sincos_1): Rename to do_sincos, remove fallbacks to slow functions.
15701         (__sin): Use improved reduction and simplified do_sincos calculation.
15702         (__cos): Likewise.
15703         * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
15705 2018-04-03  Wilco Dijkstra  <wdijkstr@arm.com>
15707         * sysdeps/ieee754/dbl-64/s_sin.c (reduce_sincos_2): Remove function.
15708         (do_sincos_2): Likewise.
15709         (__sin): Remove middle range reduction case.
15710         (__cos): Likewise.
15711         * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Remove middle range
15712         reduction case.
15714 2018-04-03  Wilco Dijkstra  <wdijkstr@arm.com>
15716         * sysdeps/aarch64/libm-test-ulps: Update ULP for sin, cos, sincos.
15717         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Remove slow paths for small
15718         inputs.
15719         (__cos): Likewise.
15720         * sysdeps/x86_64/fpu/libm-test-ulps: Update ULP for sin, cos, sincos.
15722 2018-04-03  Joseph Myers  <joseph@codesourcery.com>
15724         * scripts/build-many-glibcs.py (Context.checkout): Default Linux
15725         version to 4.16
15727 2018-04-03  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
15729         * sysdeps/posix/opendir.c (o_directory_works, tryopen_o_directory):
15730         Remove definitions.
15731         (opendir_oflags): Use O_DIRECTORY regardless.
15732         (__opendir, __opendirat): Remove need_isdir_precheck usage.
15733         * sysdeps/unix/sysv/linux/opendir.c: Remove file.
15735 2018-04-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
15737         * sysdeps/mach/hurd/bits/local_lim.h (_POSIX_THREAD_KEYS_MAX,
15738         _POSIX_THREAD_DESTRUCTOR_ITERATIONS, _POSIX_THREAD_THREADS_MAX): Define
15739         macros.
15740         * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_THREADS,
15741         _POSIX_THREAD_ATTR_STACKSIZE, _POSIX_THREAD_ATTR_STACKADDR,
15742         _POSIX_SEMAPHORES, _POSIX_READER_WRITER_LOCKS, _POSIX_TIMEOUTS,
15743         _POSIX_SPIN_LOCKS, _POSIX_BARRIERS): Define macros to 200809L.
15744         * sysdeps/mach/hurd/net/if_ppp.h: Remove file.
15745         * sysdeps/mach/hurd/Makefile (sysdep_headers): Remove net/if_ppp.h.
15747         * htl/Makefile: Bump licence to LGPL 2.1+.
15748         * htl/alloca_cutoff.c: Likewise.
15749         * htl/cthreads-compat.c: Likewise.
15750         * htl/lockfile.c: Likewise.
15751         * htl/pt-alloc.c: Likewise.
15752         * htl/pt-cancel.c: Likewise.
15753         * htl/pt-cleanup.c: Likewise.
15754         * htl/pt-create.c: Likewise.
15755         * htl/pt-dealloc.c: Likewise.
15756         * htl/pt-detach.c: Likewise.
15757         * htl/pt-exit.c: Likewise.
15758         * htl/pt-getattr.c: Likewise.
15759         * htl/pt-initialize.c: Likewise.
15760         * htl/pt-internal.h: Likewise.
15761         * htl/pt-join.c: Likewise.
15762         * htl/pt-self.c: Likewise.
15763         * htl/pt-setcancelstate.c: Likewise.
15764         * htl/pt-setcanceltype.c: Likewise.
15765         * htl/pt-sigmask.c: Likewise.
15766         * htl/pt-spin-inlines.c: Likewise.
15767         * htl/pt-testcancel.c: Likewise.
15768         * htl/pt-yield.c: Likewise.
15769         * htl/tests/test-1.c: Likewise.
15770         * htl/tests/test-10.c: Likewise.
15771         * htl/tests/test-11.c: Likewise.
15772         * htl/tests/test-12.c: Likewise.
15773         * htl/tests/test-13.c: Likewise.
15774         * htl/tests/test-14.c: Likewise.
15775         * htl/tests/test-15.c: Likewise.
15776         * htl/tests/test-16.c: Likewise.
15777         * htl/tests/test-17.c: Likewise.
15778         * htl/tests/test-2.c: Likewise.
15779         * htl/tests/test-3.c: Likewise.
15780         * htl/tests/test-4.c: Likewise.
15781         * htl/tests/test-5.c: Likewise.
15782         * htl/tests/test-6.c: Likewise.
15783         * htl/tests/test-7.c: Likewise.
15784         * htl/tests/test-8.c: Likewise.
15785         * htl/tests/test-9.c: Likewise.
15786         * htl/tests/test-__pthread_destroy_specific-skip.c: Likewise.
15787         * sysdeps/htl/bits/cancelation.h: Likewise.
15788         * sysdeps/htl/bits/pthread-np.h: Likewise.
15789         * sysdeps/htl/bits/pthread.h: Likewise.
15790         * sysdeps/htl/bits/pthreadtypes.h: Likewise.
15791         * sysdeps/htl/bits/semaphore.h: Likewise.
15792         * sysdeps/htl/bits/types/__pthread_key.h: Likewise.
15793         * sysdeps/htl/bits/types/struct___pthread_attr.h: Likewise.
15794         * sysdeps/htl/bits/types/struct___pthread_barrier.h: Likewise.
15795         * sysdeps/htl/bits/types/struct___pthread_barrierattr.h: Likewise.
15796         * sysdeps/htl/bits/types/struct___pthread_cond.h: Likewise.
15797         * sysdeps/htl/bits/types/struct___pthread_condattr.h: Likewise.
15798         * sysdeps/htl/bits/types/struct___pthread_mutex.h: Likewise.
15799         * sysdeps/htl/bits/types/struct___pthread_mutexattr.h: Likewise.
15800         * sysdeps/htl/bits/types/struct___pthread_once.h: Likewise.
15801         * sysdeps/htl/bits/types/struct___pthread_rwlock.h: Likewise.
15802         * sysdeps/htl/bits/types/struct___pthread_rwlockattr.h: Likewise.
15803         * sysdeps/htl/old_pt-atfork.c: Likewise.
15804         * sysdeps/htl/pt-atfork.c: Likewise.
15805         * sysdeps/htl/pt-attr-destroy.c: Likewise.
15806         * sysdeps/htl/pt-attr-getdetachstate.c: Likewise.
15807         * sysdeps/htl/pt-attr-getguardsize.c: Likewise.
15808         * sysdeps/htl/pt-attr-getinheritsched.c: Likewise.
15809         * sysdeps/htl/pt-attr-getschedparam.c: Likewise.
15810         * sysdeps/htl/pt-attr-getschedpolicy.c: Likewise.
15811         * sysdeps/htl/pt-attr-getscope.c: Likewise.
15812         * sysdeps/htl/pt-attr-getstack.c: Likewise.
15813         * sysdeps/htl/pt-attr-getstackaddr.c: Likewise.
15814         * sysdeps/htl/pt-attr-getstacksize.c: Likewise.
15815         * sysdeps/htl/pt-attr-init.c: Likewise.
15816         * sysdeps/htl/pt-attr-setdetachstate.c: Likewise.
15817         * sysdeps/htl/pt-attr-setguardsize.c: Likewise.
15818         * sysdeps/htl/pt-attr-setinheritsched.c: Likewise.
15819         * sysdeps/htl/pt-attr-setschedparam.c: Likewise.
15820         * sysdeps/htl/pt-attr-setschedpolicy.c: Likewise.
15821         * sysdeps/htl/pt-attr-setscope.c: Likewise.
15822         * sysdeps/htl/pt-attr-setstack.c: Likewise.
15823         * sysdeps/htl/pt-attr-setstackaddr.c: Likewise.
15824         * sysdeps/htl/pt-attr-setstacksize.c: Likewise.
15825         * sysdeps/htl/pt-attr.c: Likewise.
15826         * sysdeps/htl/pt-barrier-destroy.c: Likewise.
15827         * sysdeps/htl/pt-barrier-init.c: Likewise.
15828         * sysdeps/htl/pt-barrier-wait.c: Likewise.
15829         * sysdeps/htl/pt-barrier.c: Likewise.
15830         * sysdeps/htl/pt-barrierattr-destroy.c: Likewise.
15831         * sysdeps/htl/pt-barrierattr-getpshared.c: Likewise.
15832         * sysdeps/htl/pt-barrierattr-init.c: Likewise.
15833         * sysdeps/htl/pt-barrierattr-setpshared.c: Likewise.
15834         * sysdeps/htl/pt-cond-brdcast.c: Likewise.
15835         * sysdeps/htl/pt-cond-destroy.c: Likewise.
15836         * sysdeps/htl/pt-cond-init.c: Likewise.
15837         * sysdeps/htl/pt-cond-signal.c: Likewise.
15838         * sysdeps/htl/pt-cond-timedwait.c: Likewise.
15839         * sysdeps/htl/pt-cond-wait.c: Likewise.
15840         * sysdeps/htl/pt-cond.c: Likewise.
15841         * sysdeps/htl/pt-condattr-destroy.c: Likewise.
15842         * sysdeps/htl/pt-condattr-getclock.c: Likewise.
15843         * sysdeps/htl/pt-condattr-getpshared.c: Likewise.
15844         * sysdeps/htl/pt-condattr-init.c: Likewise.
15845         * sysdeps/htl/pt-condattr-setclock.c: Likewise.
15846         * sysdeps/htl/pt-condattr-setpshared.c: Likewise.
15847         * sysdeps/htl/pt-destroy-specific.c: Likewise.
15848         * sysdeps/htl/pt-equal.c: Likewise.
15849         * sysdeps/htl/pt-getconcurrency.c: Likewise.
15850         * sysdeps/htl/pt-getcpuclockid.c: Likewise.
15851         * sysdeps/htl/pt-getschedparam.c: Likewise.
15852         * sysdeps/htl/pt-getspecific.c: Likewise.
15853         * sysdeps/htl/pt-init-specific.c: Likewise.
15854         * sysdeps/htl/pt-key-create.c: Likewise.
15855         * sysdeps/htl/pt-key-delete.c: Likewise.
15856         * sysdeps/htl/pt-key.h: Likewise.
15857         * sysdeps/htl/pt-mutex-destroy.c: Likewise.
15858         * sysdeps/htl/pt-mutex-getprioceiling.c: Likewise.
15859         * sysdeps/htl/pt-mutex-init.c: Likewise.
15860         * sysdeps/htl/pt-mutex-lock.c: Likewise.
15861         * sysdeps/htl/pt-mutex-setprioceiling.c: Likewise.
15862         * sysdeps/htl/pt-mutex-timedlock.c: Likewise.
15863         * sysdeps/htl/pt-mutex-trylock.c: Likewise.
15864         * sysdeps/htl/pt-mutex-unlock.c: Likewise.
15865         * sysdeps/htl/pt-mutexattr-destroy.c: Likewise.
15866         * sysdeps/htl/pt-mutexattr-getprioceiling.c: Likewise.
15867         * sysdeps/htl/pt-mutexattr-getprotocol.c: Likewise.
15868         * sysdeps/htl/pt-mutexattr-getpshared.c: Likewise.
15869         * sysdeps/htl/pt-mutexattr-gettype.c: Likewise.
15870         * sysdeps/htl/pt-mutexattr-init.c: Likewise.
15871         * sysdeps/htl/pt-mutexattr-setprioceiling.c: Likewise.
15872         * sysdeps/htl/pt-mutexattr-setprotocol.c: Likewise.
15873         * sysdeps/htl/pt-mutexattr-setpshared.c: Likewise.
15874         * sysdeps/htl/pt-mutexattr-settype.c: Likewise.
15875         * sysdeps/htl/pt-mutexattr.c: Likewise.
15876         * sysdeps/htl/pt-once.c: Likewise.
15877         * sysdeps/htl/pt-rwlock-attr.c: Likewise.
15878         * sysdeps/htl/pt-rwlock-destroy.c: Likewise.
15879         * sysdeps/htl/pt-rwlock-init.c: Likewise.
15880         * sysdeps/htl/pt-rwlock-rdlock.c: Likewise.
15881         * sysdeps/htl/pt-rwlock-timedrdlock.c: Likewise.
15882         * sysdeps/htl/pt-rwlock-timedwrlock.c: Likewise.
15883         * sysdeps/htl/pt-rwlock-tryrdlock.c: Likewise.
15884         * sysdeps/htl/pt-rwlock-trywrlock.c: Likewise.
15885         * sysdeps/htl/pt-rwlock-unlock.c: Likewise.
15886         * sysdeps/htl/pt-rwlock-wrlock.c: Likewise.
15887         * sysdeps/htl/pt-rwlockattr-destroy.c: Likewise.
15888         * sysdeps/htl/pt-rwlockattr-getpshared.c: Likewise.
15889         * sysdeps/htl/pt-rwlockattr-init.c: Likewise.
15890         * sysdeps/htl/pt-rwlockattr-setpshared.c: Likewise.
15891         * sysdeps/htl/pt-setconcurrency.c: Likewise.
15892         * sysdeps/htl/pt-setschedparam.c: Likewise.
15893         * sysdeps/htl/pt-setschedprio.c: Likewise.
15894         * sysdeps/htl/pt-setspecific.c: Likewise.
15895         * sysdeps/htl/pt-spin.c: Likewise.
15896         * sysdeps/htl/pt-startup.c: Likewise.
15897         * sysdeps/htl/pthread.h: Likewise.
15898         * sysdeps/htl/sem-close.c: Likewise.
15899         * sysdeps/htl/sem-destroy.c: Likewise.
15900         * sysdeps/htl/sem-getvalue.c: Likewise.
15901         * sysdeps/htl/sem-init.c: Likewise.
15902         * sysdeps/htl/sem-open.c: Likewise.
15903         * sysdeps/htl/sem-post.c: Likewise.
15904         * sysdeps/htl/sem-timedwait.c: Likewise.
15905         * sysdeps/htl/sem-trywait.c: Likewise.
15906         * sysdeps/htl/sem-unlink.c: Likewise.
15907         * sysdeps/htl/sem-wait.c: Likewise.
15908         * sysdeps/hurd/htl/pt-kill.c: Likewise.
15909         * sysdeps/i386/htl/pt-machdep.h: Likewise.
15910         * sysdeps/mach/htl/pt-block.c: Likewise.
15911         * sysdeps/mach/htl/pt-spin.c: Likewise.
15912         * sysdeps/mach/htl/pt-stack-alloc.c: Likewise.
15913         * sysdeps/mach/htl/pt-thread-alloc.c: Likewise.
15914         * sysdeps/mach/htl/pt-thread-start.c: Likewise.
15915         * sysdeps/mach/htl/pt-thread-terminate.c: Likewise.
15916         * sysdeps/mach/htl/pt-timedblock.c: Likewise.
15917         * sysdeps/mach/htl/pt-wakeup.c: Likewise.
15918         * sysdeps/mach/hurd/htl/bits/pthread-np.h: Likewise.
15919         * sysdeps/mach/hurd/htl/bits/types/struct___pthread_mutex.h: Likewise.
15920         * sysdeps/mach/hurd/htl/pt-attr-setstackaddr.c: Likewise.
15921         * sysdeps/mach/hurd/htl/pt-attr-setstacksize.c: Likewise.
15922         * sysdeps/mach/hurd/htl/pt-docancel.c: Likewise.
15923         * sysdeps/mach/hurd/htl/pt-hurd-cond-timedwait.c: Likewise.
15924         * sysdeps/mach/hurd/htl/pt-hurd-cond-wait.c: Likewise.
15925         * sysdeps/mach/hurd/htl/pt-mutex-consistent.c: Likewise.
15926         * sysdeps/mach/hurd/htl/pt-mutex-destroy.c: Likewise.
15927         * sysdeps/mach/hurd/htl/pt-mutex-getprioceiling.c: Likewise.
15928         * sysdeps/mach/hurd/htl/pt-mutex-init.c: Likewise.
15929         * sysdeps/mach/hurd/htl/pt-mutex-lock.c: Likewise.
15930         * sysdeps/mach/hurd/htl/pt-mutex-setprioceiling.c: Likewise.
15931         * sysdeps/mach/hurd/htl/pt-mutex-timedlock.c: Likewise.
15932         * sysdeps/mach/hurd/htl/pt-mutex-transfer-np.c: Likewise.
15933         * sysdeps/mach/hurd/htl/pt-mutex-trylock.c: Likewise.
15934         * sysdeps/mach/hurd/htl/pt-mutex-unlock.c: Likewise.
15935         * sysdeps/mach/hurd/htl/pt-mutex.h: Likewise.
15936         * sysdeps/mach/hurd/htl/pt-mutexattr-destroy.c: Likewise.
15937         * sysdeps/mach/hurd/htl/pt-mutexattr-getprioceiling.c: Likewise.
15938         * sysdeps/mach/hurd/htl/pt-mutexattr-getprotocol.c: Likewise.
15939         * sysdeps/mach/hurd/htl/pt-mutexattr-getpshared.c: Likewise.
15940         * sysdeps/mach/hurd/htl/pt-mutexattr-getrobust.c: Likewise.
15941         * sysdeps/mach/hurd/htl/pt-mutexattr-gettype.c: Likewise.
15942         * sysdeps/mach/hurd/htl/pt-mutexattr-init.c: Likewise.
15943         * sysdeps/mach/hurd/htl/pt-mutexattr-setprioceiling.c: Likewise.
15944         * sysdeps/mach/hurd/htl/pt-mutexattr-setprotocol.c: Likewise.
15945         * sysdeps/mach/hurd/htl/pt-mutexattr-setpshared.c: Likewise.
15946         * sysdeps/mach/hurd/htl/pt-mutexattr-setrobust.c: Likewise.
15947         * sysdeps/mach/hurd/htl/pt-mutexattr-settype.c: Likewise.
15948         * sysdeps/mach/hurd/htl/pt-sigstate-destroy.c: Likewise.
15949         * sysdeps/mach/hurd/htl/pt-sigstate-init.c: Likewise.
15950         * sysdeps/mach/hurd/htl/pt-sigstate.c: Likewise.
15951         * sysdeps/mach/hurd/htl/pt-sysdep.c: Likewise.
15952         * sysdeps/mach/hurd/htl/pt-sysdep.h: Likewise.
15953         * sysdeps/mach/hurd/i386/htl/pt-machdep.c: Likewise.
15954         * sysdeps/mach/hurd/i386/htl/pt-setup.c: Likewise.
15956         * NEWS: Announce that glibc now builds unpatched on GNU/Hurd.
15957         * README: Remove the mention of out-of-tree patches needed for
15958         GNU/Hurd.
15960         * sysdeps/mach/hurd/bits/stat.h [!__USE_MISC && __USE_ATFILE]
15961         (UTIME_NOW, UTIME_OMIT): Define macros.
15963         * htl/cthreads-compat.c (__cthread_detach): Call __pthread_detach
15964         instead of pthread_detach.
15965         (__cthread_fork): Call __pthread_create instead of pthread_create.
15966         (__cthread_keycreate): Call __pthread_key_create instead of
15967         pthread_key_create.
15968         (__cthread_getspecific): Call __pthread_getspecific instead of
15969         pthread_getspecific.
15970         (__cthread_setspecific): Call __pthread_setspecific instead of
15971         pthread_setspecific.
15972         * htl/pt-alloc.c (__pthread_alloc): Call __pthread_mutex_lock and
15973         __pthread_mutex_unlock instead of pthread_mutex_lock and
15974         pthread_mutex_unlock.
15975         * htl/pt-cleanup.c (__pthread_get_cleanup_stack): Rename to
15976         ___pthread_get_cleanup_stack.
15977         (__pthread_get_cleanup_stack): New strong alias.
15978         * htl/pt-create.c: Include <pthreadP.h>.
15979         (entry_point): Call __pthread_exit instead of pthread_exit.
15980         (pthread_create): Rename to __pthread_create.
15981         (pthread_create): New strong alias.
15982         * htl/pt-detach.c (pthread_detach): Rename to __pthread_detach.
15983         (pthread_detach): New strong alias.
15984         (__pthread_detach): Call __pthread_cond_broadcast instead of
15985         pthread_cond_broadcast.
15986         * htl/pt-exit.c: Include <pthreadP.h>.
15987         (__pthread_exit): Call __pthread_setcancelstate and
15988         ___pthread_get_cleanup_stack instead of pthread_setcancelstate and
15989         __pthread_get_cleanup_stack.
15990         * htl/pt-testcancel.c: Include <pthreadP.h>.
15991         (pthread_testcancel): Call __pthread_exit instead of pthread_exit.
15992         * sysdeps/htl/pt-attr-getstack.c: Include <pthreadP.h>
15993         (__pthread_attr_getstack): Call __pthread_attr_getstackaddr and
15994         __pthread_attr_getstacksize instead of pthread_attr_getstackaddr and
15995         pthread_attr_getstacksize.
15996         * sysdeps/htl/pt-attr-getstackaddr.c (pthread_attr_getstackaddr):
15997         Rename to __pthread_attr_getstackaddr.
15998         (pthread_attr_getstackaddr): New strong alias.
15999         * sysdeps/htl/pt-attr-getstacksize.c (pthread_attr_getstacksize):
16000         Rename to __pthread_attr_getstacksize.
16001         (pthread_attr_getstacksize): New strong alias.
16002         * sysdeps/htl/pt-attr-setstack.c: Include <pthreadP.h>.
16003         (pthread_attr_setstack): Rename to __pthread_attr_setstack.
16004         (pthread_attr_setstack): New strong alias.
16005         (__pthread_attr_setstack): Call __pthread_attr_getstacksize,
16006         __pthread_attr_setstacksize and __pthread_attr_setstackaddr instead of
16007         pthread_attr_getstacksize, pthread_attr_setstacksize and
16008         pthread_attr_setstackaddr.
16009         * sysdeps/htl/pt-attr-setstackaddr.c (pthread_attr_setstackaddr):
16010         Rename to __pthread_attr_setstackaddr.
16011         (pthread_attr_setstackaddr): New strong alias.
16012         * sysdeps/htl/pt-attr-setstacksize.c (pthread_attr_setstacksize):
16013         Rename to __pthread_attr_setstacksize.
16014         (pthread_attr_setstacksize): New strong alias.
16015         * sysdeps/htl/pt-cond-timedwait.c: Include <pthreadP.h>.
16016         (__pthread_cond_timedwait_internal): Use __pthread_exit instead of
16017         pthread_exit.
16018         * sysdeps/htl/pt-key-create.c: Include <pthreadP.h>.
16019         (__pthread_key_create): New hidden def.
16020         * sysdeps/htl/pt-key.h: Include <pthreadP.h>.
16021         * sysdeps/htl/pthreadP.h (_pthread_mutex_init,
16022         __pthread_cond_broadcast, __pthread_create, __pthread_detach,
16023         __pthread_exit, __pthread_key_create, __pthread_getspecific,
16024         __pthread_setspecific, __pthread_setcancelstate,
16025         __pthread_attr_getstackaddr, __pthread_attr_setstackaddr,
16026         __pthread_attr_getstacksize, __pthread_attr_setstacksize,
16027         __pthread_attr_setstack, ___pthread_get_cleanup_stack): New
16028         declarations.
16029         (__pthread_key_create, _pthread_mutex_init): New hidden declarations.
16030         * sysdeps/mach/hurd/htl/pt-attr-setstackaddr.c
16031         (pthread_attr_setstackaddr): Rename to __pthread_attr_setstackaddr.
16032         (pthread_attr_setstackaddr): New strong alias.
16033         * sysdeps/mach/hurd/htl/pt-attr-setstacksize.c
16034         (pthread_attr_setstacksize): Rename to __pthread_attr_setstacksize.
16035         (pthread_attr_setstacksize): New strong alias.
16036         * sysdeps/mach/hurd/htl/pt-docancel.c: Include <pthreadP.h>.
16037         (call_exit): Call __pthread_exit instead of pthread_exit.
16038         * sysdeps/mach/hurd/htl/pt-mutex-init.c: Include <pthreadP.h>.
16039         (_pthread_mutex_init): New hidden definition.
16040         * sysdeps/mach/hurd/htl/pt-sysdep.c: Include <pthreadP.h>.
16041         (_init_routine): Call __pthread_attr_init and __pthread_attr_setstack
16042         instead of pthread_attr_init and pthread_attr_setstack.
16044         * hurd/hurdauth.c (_S_msg_add_auth): Call __vm_allocate and
16045         __vm_deallocate instead of vm_allocate and vm_deallocate.
16046         * hurd/hurdmsg.c (_S_msg_set_env_variable): Call __setenv instead of
16047         setenv.
16048         * hurd/hurdprio.c (_hurd_priority_which_map): Call __geteuid instead
16049         of geteuid.
16050         * hurd/path-lookup.c (file_name_path_scan): Call __strdup instead of
16051         strdup.
16052         * hurd/siginfo.c: Include <libioP.h>.
16053         (_hurd_siginfo_handler): Call _IO_puts instead of puts.
16054         * hurd/xattr.c (_hurd_xattr_get, _hurd_xattr_set): Call __munmap instead of
16055         munmap.
16056         * mach/devstream.c: Include <libioP.h>.
16057         (dealloc_ref): Call __mach_port_deallocate instead of
16058         mach_port_deallocate.
16059         (mach_open_devstream): Call _IO_fopencookie instead of fopencookie.
16060         Call __mach_port_deallocate instead of mach_port_deallocate.
16061         * stdlib/canonicalize.c (__realpath): Call __pathconf instead of
16062         pathconf.
16063         * sysdeps/mach/hurd/ifreq.c (__ifreq): Call __munmap instead of
16064         munmap.
16065         * sysdeps/mach/hurd/ifreq.h (__if_freereq): Likewise.
16066         * sysdeps/mach/hurd/ptrace.c (ptrace): Call __kill instead of kill.
16067         * sysdeps/mach/hurd/sendfile64.c (sendfile64): Call __munmap instead
16068         of munmap.
16069         * sysdeps/mach/hurd/socketpair.c (__socketpair): Call __close instead
16070         of close.
16071         * sysdeps/posix/clock_getres.c (realtime_getres): Call __sysconf
16072         instead of sysconf.
16073         * sysdeps/pthread/timer_gettime.c (timer_gettime): Call
16074         __clock_gettime instead of clock_gettime.
16075         * sysdeps/pthread/timer_routines.c (thread_func): Likewise.
16076         * sysdeps/pthread/timer_settime.c (timer_settime): Likewise.
16077         * sysdeps/unix/bsd/gtty.c (gtty): Call __ioctl instead of ioctl.
16078         * sysdeps/unix/bsd/stty.c (stty): Likewise.
16079         * sysdeps/unix/bsd/tcflow.c (tcflow): Call __tcgetattr instead of
16080         tcgetattr.
16081         * sysdeps/unix/clock_nanosleep.c (__clock_nanosleep): Call
16082         __clock_gettime and __nanosleep instead of clock_gettime and
16083         nanosleep.
16084         * hurd/catch-signal.c (hurd_catch_signal): Rename to
16085         __hurd_catch_signal.
16086         (hurd_catch_signal): New strong alias.
16087         (hurd_safe_memset, hurd_safe_copyout, hurd_safe_copyin): Call
16088         __hurd_catch_signal instead of hurd_catch_signal.
16089         * hurd/exc2signal.c (_hurd_exception2signal): Add hidden def.
16090         * hurd/hurdexec.c (_hurd_init): Add hidden def.
16091         * hurd/hurdinit.c (_hurd_init): Add hidden def.
16092         * hurd/hurdsig.c: Include <mach/mig_support.h>.
16093         (_hurd_thread_sigstate): Add hidden def.
16094         (_hurd_internal_post_signal): Use __mutex_unlock instead of
16095         mutex_unlock.
16096         * hurd/intern-fd.c (_hurd_intern_fd): Add hidden def.
16097         * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Add hidden def.
16098         * hurd/path-lookup.c (hurd_file_name_path_lookup): Rename to
16099         __hurd_file_name_path_lookup.
16100         (hurd_file_name_path_lookup): New strong alias.
16101         (file_name_path_lookup): Call __hurd_file_name_path_lookup instead of
16102         hurd_file_name_path_lookup.
16103         * mach/errstring.c (mach_error_type): Add hidden def.
16104         * mach/msg-destroy.c (__mach_msg_destroy): Add hidden def.
16105         * mach/mutex-init.c (__mutex_init): Add hidden def.
16106         * mach/spin-lock.c (__spin_lock_locked, __spin_lock, __spin_unlock,
16107         __spin_try_lock, __mutex_lock, __mutex_trylock): Add hidden defs.
16108         * mach/spin-solid.c (__spin_lock_solid): Add hidden def.
16109         * sysdeps/mach/hurd/getcwd.c
16110         (_hurd_canonicalize_directory_name_internal): Rename to
16111         __hurd_canonicalize_directory_name_internal.
16112         (_hurd_canonicalize_directory_name_internal): New strong alias.
16113         (__canonicalize_directory_name_internal, __getcwd): Call
16114         __hurd_canonicalize_directory_name_internal instead of
16115         _hurd_canonicalize_directory_name_internal.
16116         * sysdeps/mach/hurd/mig-reply.c: Include <mach/mig_support.h>.
16117         (__mig_get_reply_port, __mig_dealloc_reply_port, __mig_init): Add
16118         hidden defs.
16119         * sysdeps/hurd/include/hurd.h: New file.
16120         * sysdeps/hurd/include/hurd/fd.h: New file.
16121         * sysdeps/hurd/include/hurd/signal.h: New file.
16122         * sysdeps/mach/include/lock-intern.h: New file.
16123         * sysdeps/mach/include/mach.h: New file.
16124         * sysdeps/mach/include/mach/mig_support.h: New file.
16125         * sysdeps/mach/include/mach_error.h: New file.
16126         * sysdeps/hurd/include/hurd/signal.h (_hurd_raise_signal): Add hidden
16127         prototype.
16128         * hurd/hurd-raise.c (_hurd_raise_signal): Add hidden def.
16129         * hurd/Makefile ($(inlines:%=$(objpfx)%.c): Define
16130         _HEADER_H_HIDDEN_DEF macro.
16131         * sysdeps/hurd/include/hurd/fd.h (_hurd_fd_error,
16132         _hurd_fd_error_signal): Add hidden prototype.
16133         [_HURD_FD_H_HIDDEN_DEF] (_hurd_fd_error, _hurd_fd_error_signal): Add
16134         hidden def.
16135         * libio/iolibio.h (_IO_puts): New hidden prototype.
16136         * libio/ioputs.c (_IO_puts): New hidden def.
16137         * sysdeps/mach/hurd/localplt.data: New file.
16139 2018-04-02  Agustina Arzille  <avarzille@riseup.net>
16140             Amos Jeffries  <squid3@treenet.co.nz>
16141             David Michael  <fedora.dm0@gmail.com>
16142             Marco Gerards  <marco@gnu.org>
16143             Marcus Brinkmann  <marcus@gnu.org>
16144             Neal H. Walfield  <neal@gnu.org>
16145             Pino Toscano  <toscano.pino@tiscali.it>
16146             Richard Braun  <rbraun@sceen.net>
16147             Roland McGrath  <roland@gnu.org>
16148             Samuel Thibault  <samuel.thibault@ens-lyon.org>
16149             Thomas DiModica  <ricinwich@yahoo.com>
16150             Thomas Schwinge  <tschwinge@gnu.org>
16152         * htl: New directory.
16153         * sysdeps/htl: New directory.
16154         * sysdeps/hurd/htl: New directory.
16155         * sysdeps/i386/htl: New directory.
16156         * sysdeps/mach/htl: New directory.
16157         * sysdeps/mach/hurd/htl: New directory.
16158         * sysdeps/mach/hurd/i386/htl: New directory.
16159         * nscd/Depend, resolv/Depend, rt/Depend: Add htl dependency.
16160         * sysdeps/mach/hurd/i386/Implies: Add mach/hurd/i386/htl imply.
16161         * sysdeps/mach/hurd/i386/libpthread.abilist: New file.
16163 2018-04-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
16165         * sysdeps/pthread/timer_routines.c (__timer_thread_start): Block all
16166         signals in thread created for runing timers.
16168 2018-04-01  Florian Weimer  <fweimer@redhat.com>
16170         * support/support_format_addrinfo.c (support_format_addrinfo):
16171         Include unknown error number in formatted result.
16173 2018-03-29  Florian Weimer  <fweimer@redhat.com>
16175         * sysdeps/unix/sysv/linux/i386/tst-bz21269.c (do_test): Also
16176         capture SIGBUS.
16178 2018-03-27  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
16180         * sysdeps/unix/sysv/linux/arch-fork.h [__ASSUME_CLONE_BACKWARDS]
16181         (arch_fork): Issue INLINE_CLONE_SYSCALL if defined.
16182         * sysdeps/unix/sysv/linux/sparc/kernel-features.h
16183         (__ASSUME_CLONE_BACKWARDS): Define.
16185 2018-03-27  Jesse Hathaway  <jesse@mbuki-mvuki.org>
16187         [BZ #23024]
16188         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Return
16189         early when linux sentinel value is set.
16191 2018-03-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
16193         * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_MEMLOCK): Define.
16195 2018-03-27  Andreas Schwab  <schwab@suse.de>
16197         [BZ #23005]
16198         * resolv/res_send.c (__res_context_send): Return ENOMEM if
16199         allocation of private copy of nsaddr_list fails.
16201 2018-03-26  Joseph Myers  <joseph@codesourcery.com>
16203         [BZ #16552]
16204         * sysdeps/unix/sysv/linux/generic/umount.c: Move to ....
16205         * sysdeps/unix/sysv/linux/umount.c: ... here.
16206         * sysdeps/unix/sysv/linux/arm/umount.c: Remove file.
16207         * sysdeps/unix/sysv/linux/hppa/umount.c: Likewise.
16208         * sysdeps/unix/sysv/linux/ia64/umount.c: Likewise.
16209         * sysdeps/unix/sysv/linux/mips/mips64/umount.c: Likewise.
16210         * sysdeps/unix/sysv/linux/powerpc/powerpc64/umount.c: Likewise.
16211         * sysdeps/unix/sysv/linux/umount.S: Likewise.
16212         * sysdeps/unix/sysv/linux/x86_64/umount.c: Likewise.
16214 2018-03-26  Andreas Schwab  <schwab@suse.de>
16216         * elf/elf.h (R_RISCV_BRANCH, R_RISCV_JAL, R_RISCV_CALL)
16217         (R_RISCV_CALL_PLT, R_RISCV_GOT_HI20, R_RISCV_TLS_GOT_HI20)
16218         (R_RISCV_TLS_GD_HI20, R_RISCV_PCREL_HI20, R_RISCV_PCREL_LO12_I)
16219         (R_RISCV_PCREL_LO12_S, R_RISCV_HI20, R_RISCV_LO12_I)
16220         (R_RISCV_LO12_S, R_RISCV_TPREL_HI20, R_RISCV_TPREL_LO12_I)
16221         (R_RISCV_TPREL_LO12_S, R_RISCV_TPREL_ADD, R_RISCV_ADD8)
16222         (R_RISCV_ADD16, R_RISCV_ADD32, R_RISCV_ADD64, R_RISCV_SUB8)
16223         (R_RISCV_SUB16, R_RISCV_SUB32, R_RISCV_SUB64)
16224         (R_RISCV_GNU_VTINHERIT, R_RISCV_GNU_VTENTRY, R_RISCV_ALIGN)
16225         (R_RISCV_RVC_BRANCH, R_RISCV_RVC_JUMP, R_RISCV_RVC_LUI)
16226         (R_RISCV_GPREL_I, R_RISCV_GPREL_S, R_RISCV_TPREL_I)
16227         (R_RISCV_TPREL_S, R_RISCV_RELAX, R_RISCV_SUB6, R_RISCV_SET6)
16228         (R_RISCV_SET8, R_RISCV_SET16, R_RISCV_SET32, R_RISCV_32_PCREL)
16229         (R_RISCV_NUM): Define.
16231 2018-03-25  Samuel Thibault  <samuel.thibault@ens-lyon.org>
16233         * include/errno.h [IS_IN(rtld) && !RTLD_PRIVATE_ERRNO]: Do not use the
16234         TLS declaration of errno.
16235         * sysdeps/generic/libc-start.h [!SHARED] (ARCH_SETUP_TLS): Define to
16236         __libc_setup_tls.
16237         * sysdeps/unix/sysv/linux/powerpc/libc-start.h [!SHARED]
16238         (ARCH_SETUP_TLS): Likewise.
16239         * sysdeps/mach/hurd/libc-start.h: New file copied from
16240         sysdeps/generic/libc-start.h, but define ARCH_SETUP_TLS to empty.
16241         * csu/libc-start.c [!SHARED] (LIBC_START_MAIN): Call ARCH_SETUP_TLS
16242         instead of __libc_setup_tls.
16243         * sysdeps/mach/hurd/i386/init-first.c [!SHARED] (init1): Call
16244         __libc_setup_tls before initializing libpthread and running _hurd_init
16245         which starts the signal thread.
16246         * sysdeps/generic/ldsodefs.h [SHARED] (__pthread_initialize_minimal):
16247         Declare function.
16248         * sysdeps/mach/hurd/bits/errno.h: Regenerate.
16250 2018-03-24  H.J. Lu  <hongjiu.lu@intel.com>
16252         [BZ #22998]
16253         * elf/Makefile (tests): Add $(tests-execstack-$(have-z-execstack))
16254         after it is defined.
16256 2018-03-23  Andrew Senkevich  <andrew.senkevich@intel.com>
16257             Max Horn  <max@quendi.de>
16259         [BZ #22644]
16260         CVE-2017-18269
16261         * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Fixed
16262         branch conditions.
16263         * string/test-memmove.c (do_test2): New testcase.
16265 2018-03-22  Joseph Myers  <joseph@codesourcery.com>
16267         * sysdeps/generic/frame.h: Remove file.
16268         * sysdeps/arm/frame.h: Likewise.
16269         * sysdeps/hppa/frame.h: Likewise.
16270         * sysdeps/generic/sigcontextinfo.h (SIGCONTEXT_EXTRA_ARGS): Remove
16271         macro.
16272         (GET_FRAME): Likewise.
16273         (GET_STACK): Likewise.
16274         (CALL_SIGHANDLER): Likewise.
16275         * sysdeps/mach/hurd/i386/sigcontextinfo.h (SIGCONTEXT_EXTRA_ARGS):
16276         Likewise.
16277         (GET_FRAME): Likewise.
16278         (GET_STACK): Likewise.
16279         (CALL_SIGHANDLER): Likewise.
16280         * sysdeps/unix/sysv/linux/alpha/sigcontextinfo.h
16281         (SIGCONTEXT_EXTRA_ARGS): Likewise.
16282         (GET_FRAME): Likewise.
16283         (GET_STACK): Likewise.
16284         (CALL_SIGHANDLER): Likewise.
16285         * sysdeps/unix/sysv/linux/arm/sigcontextinfo.h
16286         (SIGCONTEXT_EXTRA_ARGS): Likewise.
16287         (GET_FRAME): Likewise.
16288         (GET_STACK): Likewise.
16289         (ADVANCE_STACK_FRAME): Likewise.
16290         (CALL_SIGHANDLER): Likewise.
16291         * sysdeps/unix/sysv/linux/i386/sigcontextinfo.h
16292         (SIGCONTEXT_EXTRA_ARGS): Likewise.
16293         (GET_FRAME): Likewise.
16294         (GET_STACK): Likewise.
16295         (CALL_SIGHANDLER): Likewise.
16296         * sysdeps/unix/sysv/linux/ia64/sigcontextinfo.h
16297         (SIGCONTEXT_EXTRA_ARGS): Likewise.
16298         (GET_FRAME): Likewise.
16299         (GET_STACK): Likewise.
16300         (CALL_SIGHANDLER): Likewise.
16301         * sysdeps/unix/sysv/linux/m68k/sigcontextinfo.h
16302         (SIGCONTEXT_EXTRA_ARGS): Likewise.
16303         (GET_FRAME): Likewise.
16304         (GET_STACK): Likewise.
16305         (CALL_SIGHANDLER): Likewise.
16306         * sysdeps/unix/sysv/linux/microblaze/sigcontextinfo.h
16307         (SIGCONTEXT_EXTRA_ARGS): Likewise.
16308         (GET_FRAME): Likewise.
16309         (GET_STACK): Likewise.
16310         (CALL_SIGHANDLER): Likewise.
16311         * sysdeps/unix/sysv/linux/mips/sigcontextinfo.h
16312         (SIGCONTEXT_EXTRA_ARGS): Likewise.
16313         (GET_FRAME): Likewise.
16314         (GET_STACK): Likewise.
16315         (CALL_SIGHANDLER): Likewise.
16316         * sysdeps/unix/sysv/linux/powerpc/sigcontextinfo.h
16317         (SIGCONTEXT_EXTRA_ARGS): Likewise.
16318         (GET_FRAME): Likewise.
16319         (GET_STACK): Likewise.
16320         (CALL_SIGHANDLER): Likewise.
16321         * sysdeps/unix/sysv/linux/riscv/sigcontextinfo.h
16322         (SIGCONTEXT_EXTRA_ARGS): Likewise.
16323         (GET_FRAME): Likewise.
16324         (GET_STACK): Likewise.
16325         (CALL_SIGHANDLER): Likewise.
16326         * sysdeps/unix/sysv/linux/s390/sigcontextinfo.h
16327         (SIGCONTEXT_EXTRA_ARGS): Likewise.
16328         (GET_FRAME): Likewise.
16329         (GET_STACK): Likewise.
16330         (CALL_SIGHANDLER): Likewise.
16331         * sysdeps/unix/sysv/linux/sh/sigcontextinfo.h
16332         (SIGCONTEXT_EXTRA_ARGS): Likewise.
16333         (GET_FRAME): Likewise.
16334         (GET_STACK): Likewise.
16335         (CALL_SIGHANDLER): Likewise.
16336         * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h
16337         (SIGCONTEXT_EXTRA_ARGS): Likewise.
16338         (FIRST_FRAME_POINTER): Likewise.
16339         (ADVANCE_STACK_FRAME): Likewise.
16340         (GET_STACK): Likewise.
16341         (GET_FRAME): Likewise.
16342         (CALL_SIGHANDLER): Likewise.
16343         * sysdeps/unix/sysv/linux/sparc/sparc64/sigcontextinfo.h
16344         (SIGCONTEXT_EXTRA_ARGS): Likewise.
16345         (ADVANCE_STACK_FRAME): Likewise.
16346         (GET_STACK): Likewise.
16347         (GET_FRAME): Likewise.
16348         (CALL_SIGHANDLER): Likewise.
16349         * sysdeps/unix/sysv/linux/tile/sigcontextinfo.h
16350         (SIGCONTEXT_EXTRA_ARGS): Likewise.
16351         (GET_FRAME): Likewise.
16352         (GET_STACK): Likewise.
16353         (CALL_SIGHANDLER): Likewise.
16354         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h
16355         (SIGCONTEXT_EXTRA_ARGS): Likewise.
16356         (GET_FRAME): Likewise.
16357         (GET_STACK): Likewise.
16358         (CALL_SIGHANDLER): Likewise.
16360 2018-03-21  Joseph Myers  <joseph@codesourcery.com>
16362         * sysdeps/x86_64/backtrace.c: Move to ....
16363         * debug/backtrace.c: ... here.
16364         * sysdeps/aarch64/backtrace.c: Remove file.
16365         * sysdeps/alpha/backtrace.c: Likewise.
16366         * sysdeps/hppa/backtrace.c: Likewise.
16367         * sysdeps/ia64/backtrace.c: Likewise.
16368         * sysdeps/mips/backtrace.c: Likewise.
16369         * sysdeps/nios2/backtrace.c: Likewise.
16370         * sysdeps/riscv/backtrace.c: Likewise.
16371         * sysdeps/sh/backtrace.c: Likewise.
16372         * sysdeps/tile/backtrace.c: Likewise.
16374 2018-03-20  Joseph Myers  <joseph@codesourcery.com>
16376         [BZ #22987]
16377         * sysdeps/powerpc/bits/mathinline.h (fdim): Remove inline
16378         function.
16379         (fdimf): Likewise.
16380         * sysdeps/sparc/fpu/bits/mathinline.h: Remove file.
16382         [BZ #17343]
16383         * stdlib/random_r.c (__random_r): Use unsigned arithmetic for
16384         possibly overflowing computations.
16386 2018-03-20  Samuel Thibault  <samuel.thibault@ens-lyon.org>
16388         * manual/errno.texi (EOWNERDEAD, ENOTRECOVERABLE): Remove errno
16389         values from Linux-specific section now that it is in the GNU section.
16390         * sysdeps/gnu/errlist.c: Regenerate.
16392 2018-03-20  Joseph Myers  <joseph@codesourcery.com>
16394         * math/Makefile (libm-narrow-fns): Add sub.
16395         (libm-test-funcs-narrow): Likewise.
16396         * math/Versions (GLIBC_2.28): Add narrowing subtract functions.
16397         * math/bits/mathcalls-narrow.h (sub): Use __MATHCALL_NARROW.
16398         * math/gen-auto-libm-tests.c (test_functions): Add sub.
16399         * math/math-narrow.h (CHECK_NARROW_SUB): New macro.
16400         (NARROW_SUB_ROUND_TO_ODD): Likewise.
16401         (NARROW_SUB_TRIVIAL): Likewise.
16402         * sysdeps/ieee754/float128/float128_private.h (__fsubl): New
16403         macro.
16404         (__dsubl): Likewise.
16405         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fsub and
16406         dsub.
16407         (CFLAGS-nldbl-dsub.c): New variable.
16408         (CFLAGS-nldbl-fsub.c): Likewise.
16409         * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
16410         __nldbl_dsubl.
16411         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_dsubl): New
16412         prototype.
16413         * manual/arith.texi (Misc FP Arithmetic): Document fsub, fsubl,
16414         dsubl, fMsubfN, fMsubfNx, fMxsubfN and fMxsubfNx.
16415         * math/auto-libm-test-in: Add tests of sub.
16416         * math/auto-libm-test-out-narrow-sub: New generated file.
16417         * math/libm-test-narrow-sub.inc: New file.
16418         * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
16419         * sysdeps/ieee754/dbl-64/s_f32xsubf64.c: Likewise.
16420         * sysdeps/ieee754/dbl-64/s_fsub.c: Likewise.
16421         * sysdeps/ieee754/float128/s_f32subf128.c: Likewise.
16422         * sysdeps/ieee754/float128/s_f64subf128.c: Likewise.
16423         * sysdeps/ieee754/float128/s_f64xsubf128.c: Likewise.
16424         * sysdeps/ieee754/ldbl-128/s_dsubl.c: Likewise.
16425         * sysdeps/ieee754/ldbl-128/s_f64xsubf128.c: Likewise.
16426         * sysdeps/ieee754/ldbl-128/s_fsubl.c: Likewise.
16427         * sysdeps/ieee754/ldbl-128ibm/s_dsubl.c: Likewise.
16428         * sysdeps/ieee754/ldbl-128ibm/s_fsubl.c: Likewise.
16429         * sysdeps/ieee754/ldbl-96/s_dsubl.c: Likewise.
16430         * sysdeps/ieee754/ldbl-96/s_fsubl.c: Likewise.
16431         * sysdeps/ieee754/ldbl-opt/nldbl-dsub.c: Likewise.
16432         * sysdeps/ieee754/ldbl-opt/nldbl-fsub.c: Likewise.
16433         * sysdeps/ieee754/soft-fp/s_dsubl.c: Likewise.
16434         * sysdeps/ieee754/soft-fp/s_fsub.c: Likewise.
16435         * sysdeps/ieee754/soft-fp/s_fsubl.c: Likewise.
16436         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
16437         * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
16438         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
16439         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
16440         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
16441         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
16442         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
16443         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
16444         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
16445         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
16446         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
16447         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
16448         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
16449         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
16450         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
16451         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
16452         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
16453         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
16454         * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
16455         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
16456         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
16457         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
16458         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
16459         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
16460         * sysdeps/unix/sysv/linux/tile/tilegx32/libm.abilist: Likewise.
16461         * sysdeps/unix/sysv/linux/tile/tilegx64/libm.abilist: Likewise.
16462         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
16463         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
16465 2018-03-19  Joseph Myers  <joseph@codesourcery.com>
16467         [BZ #20079]
16468         * elf/elf.h (SHT_X86_64_UNWIND): New macro.
16470 2018-03-19  Wilco Dijkstra  <wdijkstr@arm.com>
16472         * benchtests/bench-timing.h (attribute_hidden): Undefine.
16474 2018-03-18  Richard Braun  <rbraun@sceen.net>
16476         * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Use a temporary
16477         thread reference.
16479 2018-03-18  Agustina Arzille  <avarzille@riseup.net>
16481         * sysdeps/mach/libc-lock.h (__libc_cleanup_frame): Define structure.
16482         (__libc_cleanup_fct): Define function.
16483         (__libc_cleanup_region_start, __libc_cleanup_region_end,
16484         __libc_cleanup_end): Rewrite implementation using
16485         __attribute__ ((__cleanup__)).
16486         (__libc_cleanup_push, __libc_cleanup_pop): New macros.
16487         * hurd/Makefile (routines): Add hurdlock.
16488         * hurd/Versions (GLIBC_PRIVATE): Added new entry to export the above
16489         interface.
16490         (HURD_CTHREADS_0.3): Remove __libc_getspecific.
16491         * hurd/hurdpid.c: Include <lowlevellock.h>
16492         (_S_msg_proc_newids): Use lll_wait to synchronize.
16493         * hurd/hurdsig.c: (reauth_proc): Use __mutex_lock and __mutex_unlock.
16494         * hurd/setauth.c: Include <hurdlock.h>, use integer for synchronization.
16495         * mach/Makefile (lock-headers): Remove machine-lock.h.
16496         * mach/lock-intern.h: Include <lowlevellock.h> instead of
16497         <machine-lock.h>.
16498         (__spin_lock_t): New type.
16499         (__SPIN_LOCK_INITIALIZER): New macro.
16500         (__spin_lock, __spin_unlock, __spin_try_lock, __spin_lock_locked,
16501         __mutex_init, __mutex_lock_solid, __mutex_unlock_solid, __mutex_lock,
16502         __mutex_unlock, __mutex_trylock): Use lll to implement locks.
16503         * mach/mutex-init.c: Include <lowlevellock.h> instead of <cthreads.h>.
16504         (__mutex_init): Initialize with lll.
16505         * manual/errno.texi (EOWNERDEAD, ENOTRECOVERABLE): New errno values.
16506         * sysdeps/mach/Makefile: Add libmachuser as dependencies for libs
16507         needing lll.
16508         * sysdeps/mach/hurd/bits/errno.h: Regenerate.
16509         * sysdeps/mach/hurd/cthreads.c (__libc_getspecific): Remove function.
16510         * sysdeps/mach/hurd/bits/libc-lock.h: Remove file.
16511         * sysdeps/mach/hurd/setpgid.c: Include <lowlevellock.h>.
16512         (__setpgid): Use lll for synchronization.
16513         * sysdeps/mach/hurd/setsid.c: Likewise with __setsid.
16514         * sysdeps/mach/bits/libc-lock.h: Include <tls.h> and <lowlevellock.h>
16515         instead of <cthreads.h>.
16516         (_IO_lock_inexpensive): New macro
16517         (__libc_lock_recursive_t, __rtld_lock_recursive_t): New structures.
16518         (__libc_lock_self0): New declaration.
16519         (__libc_lock_owner_self): New macro.
16520         (__libc_key_t): Remove type.
16521         (_LIBC_LOCK_INITIALIZER): New macro.
16522         (__libc_lock_define_initialized, __libc_lock_init, __libc_lock_fini,
16523         __libc_lock_fini_recursive, __rtld_lock_fini_recursive,
16524         __libc_lock_lock, __libc_lock_trylock, __libc_lock_unlock,
16525         __libc_lock_define_initialized_recursive,
16526         __rtld_lock_define_initialized_recursive,
16527         __libc_lock_init_recursive, __libc_lock_trylock_recursive,
16528         __libc_lock_lock_recursive, __libc_lock_unlock_recursive,
16529         __rtld_lock_initialize, __rtld_lock_trylock_recursive,
16530         __rtld_lock_lock_recursive, __rtld_lock_unlock_recursive
16531         __libc_once_define, __libc_mutex_unlock): Reimplement with lll.
16532         (__libc_lock_define_recursive, __rtld_lock_define_recursive,
16533         _LIBC_LOCK_RECURSIVE_INITIALIZER, _RTLD_LOCK_RECURSIVE_INITIALIZER):
16534         New macros.
16535         Include <libc-lockP.h> to reimplement libc_key* with pthread_key*.
16536         * hurd/hurdlock.c: New file.
16537         * hurd/hurdlock.h: New file.
16538         * mach/lowlevellock.h: New file
16540 2018-03-18  Samuel Thibault  <samuel.thibault@ens-lyon.org>
16542         * sysdeps/mach/hurd/cthreads.c: Include <cthreads.h>.
16543         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Return ELOOP
16544         when opening a symlink with O_NOFOLLOW.
16545         * hurd/hurdlookup.c (__hurd_file_name_lookup): Do not append '/' to
16546         path when flags contains O_NOFOLLOW.
16547         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Return ENOTDIR
16548         if flags contains O_DIRECTORY and the result is a directory.
16549         * sysdeps/mach/hurd/i386/init-first.c (init): Also find ELF headers by
16550         oneself when the pointer given in D is nul (as set by ext2fs).
16551         * sysdeps/mach/hurd/mlockall.c: New file.
16552         * sysdeps/mach/hurd/munlockall.c: New file.
16554 2018-03-17  Samuel Thibault  <samuel.thibault@ens-lyon.org>
16556         * hurd/hurdsig.c: Include <pthread.h>.
16557         (_hurdsig_init): Call pthread_getattr_np and pthread_attr_getstack to
16558         get the signal thread stack layout.
16559         * hurd/Makefile (headers): Remove threadvar.h.
16560         (inline-headers): Remove threadvar.h.
16561         * hurd/Versions (GLIBC_2.0: Remove __hurd_sigthread_stack_base,
16562         __hurd_sigthread_stack_end, __hurd_sigthread_variables,
16563         __hurd_threadvar_max, __hurd_errno_location.
16564         (HURD_CTHREADS_0.3): Add pthread_getattr_np, pthread_attr_getstack.
16565         * hurd/hurd/signal.h: Do not include <hurd/threadvar.h>.
16566         (_hurd_self_sigstate): Use THREAD_SELF to get _hurd_sigstate.
16567         (_HURD_SIGNAL_H_EXTERN_INLINE): Use THREAD_SELF to get _hurd_sigstate,
16568         unless TLS is not initialized yet, in which case we do not need a
16569         critical section yet anyway.
16570         * hurd/hurd/threadvar.h: Include <tls.h>, do not include
16571         <machine-sp.h>.
16572         (__hurd_sigthread_variables, __hurd_threadvar_max): Remove variables
16573         declarations.
16574         (__hurd_threadvar_index): Remove enum.
16575         (_HURD_THREADVAR_H_EXTERN_INLINE): Remove macro.
16576         (__hurd_threadvar_location_from_sp,__hurd_threadvar_location): Remove
16577         inlines.
16578         (__hurd_reply_port0): New variable declaration.
16579         (__hurd_local_reply_port): New macro.
16580         * hurd/hurdsig.c (__hurd_sigthread_variables): Remove variable.
16581         (interrupted_reply_port_location): Add thread_t parameter.  Use it
16582         with THREAD_TCB to access thread-local variables.
16583         (_hurdsig_abort_rpcs): Pass ss->thread to
16584         interrupted_reply_port_location.
16585         (_hurd_internal_post_signal): Likewise.
16586         (_hurdsig_init): Use presence of cthread_fork instead of
16587         __hurd_threadvar_stack_mask to start signal thread by hand.
16588         Remove signal thread threadvar initialization.
16589         * hurd/hurdstartup.c: Do not include <hurd/threadvar.h>
16590         * hurd/sigunwind.c: Include <hurd/threadvar.h>
16591         (_hurdsig_longjmp_from_handler): Use __hurd_local_reply_port instead
16592         of threadvar.
16593         * sysdeps/mach/hurd/Versions (libc.GLIBC_PRIVATE): Add
16594         __libc_lock_self0.
16595         (ld.GLIBC_2.0): Remove __hurd_sigthread_stack_base,
16596         __hurd_sigthread_stack_end, __hurd_sigthread_variables.
16597         (ld.GLIBC_PRIVATE): Add __libc_lock_self0.
16598         * sysdeps/mach/hurd/cthreads.c: Add __libc_lock_self0.
16599         * sysdeps/mach/hurd/dl-sysdep.c (errno, __hurd_sigthread_stack_base,
16600         __hurd_sigthread_stack_end, __hurd_sigthread_variables, threadvars,
16601         __hurd_threadvar_stack_offset, __hurd_threadvar_stack_mask): Do not
16602         define variables.
16603         * sysdeps/mach/hurd/errno-loc.c: Do not include <errno.h> and
16604         <hurd/threadvar.h>.
16605         [IS_IN(rtld)] (rtld_errno): New variable.
16606         [IS_IN(rtld)] (__errno_location): New weak function.
16607         [!IS_IN(rtld)]: Include "../../../csu/errno-loc.c".
16608         * sysdeps/mach/hurd/errno.c: Remove file.
16609         * sysdeps/mach/hurd/fork.c: Include <hurd/threadvar.h>
16610         (__fork): Remove THREADVAR_SPACE macro and its use.
16611         * sysdeps/mach/hurd/i386/init-first.c (__hurd_threadvar_max): Remove
16612         variable.
16613         (init): Do not initialize threadvar.
16614         * sysdeps/mach/hurd/i386/libc.abilist (__hurd_threadvar_max): Remove
16615         symbol.
16616         * sysdeps/mach/hurd/i386/sigreturn.c (__sigreturn): Use
16617         __hurd_local_reply_port instead of threadvar.
16618         * sysdeps/mach/hurd/i386/tls.h (tcbhead_t): Add reply_port and
16619         _hurd_sigstate fields.
16620         (HURD_DESC_TLS, __LIBC_NO_TLS, THREAD_TCB): New macro.
16621         * sysdeps/mach/hurd/i386/trampoline.c: Remove outdated comment.
16622         * sysdeps/mach/hurd/libc-lock.h: Do not include <hurd/threadvar.h>.
16623         (__libc_lock_owner_self): Use &__libc_lock_self0 and THREAD_SELF
16624         instead of threadvar.
16625         * sysdeps/mach/hurd/libc-tsd.h: Remove file.
16626         * sysdeps/mach/hurd/mig-reply.c (GETPORT, reply_port): Remove macros.
16627         (use_threadvar, global_reply_port): Remove variables.
16628         (__hurd_reply_port0): New variable.
16629         (__mig_get_reply_port): Use __hurd_local_reply_port and
16630         __hurd_reply_port0 instead of threadvar.
16631         (__mig_dealloc_reply_port): Likewise.
16632         (__mig_init): Do not initialize threadvar.
16633         * sysdeps/mach/hurd/profil.c: Fix comment.
16634         * hurd/Versions (HURD_CTHREADS_0.3): Rename weak refs cthread_fork,
16635         cthread_detach, pthread_getattr_np, pthread_attr_getstack,
16636         cthread_keycreate, cthread_getspecific, cthread_setspecific to
16637         __cthread_fork, __cthread_detach, __pthread_getattr_np,
16638         __pthread_attr_getstack, __cthread_keycreate, __cthread_getspecific,
16639         __cthread_setspecific.
16640         * hurd/hurdsig.c (_hurdsig_init): Use __cthread_fork,
16641         __cthread_detach, __pthread_getattr_np, __pthread_attr_getstack,
16642         __cthread_t instead of cthread_fork, cthread_detach,
16643         pthread_getattr_np, pthread_attr_getstack.
16644         * sysdeps/mach/hurd/cthreads.c (cthread_keycreate): Rename to
16645         __cthread_keycreate.
16646         (cthread_getspecific): Rename to __cthread_getspecific.
16647         (cthread_setspecific): Rename to __cthread_setspecific.
16648         (__libc_getspecific): Use __cthread_getspecific instead of
16649         cthread_getspecific.
16650         * sysdeps/mach/hurd/libc-lock.h (__libc_key_create): Use
16651         __cthread_keycreate instead of cthread_keycreate.
16652         (__libc_setspecific): Use __cthread_setspecific instead of
16653         cthread_setspecific.
16654         * sysdeps/mach/libc-lock.h (__libc_key_create, __libc_setspecific):
16655         Likewise.
16656         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Always include
16657         <dl-sysdep.h>.  Test for value of RTLD_PRIVATE_ERRNO instead of
16658         testing whether it is defined.
16660 2018-03-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
16662         * sysdeps/generic/thread_state.h (MACHINE_NEW_THREAD_STATE_FLAVOR):
16663         Define macro.
16664         * sysdeps/mach/thread_state.h (MACHINE_THREAD_STATE_FIX_NEW): New macro.
16665         * sysdeps/mach/i386/thread_state.h
16666         (MACHINE_NEW_THREAD_STATE_FLAVOR): New macro, defined to
16667         i386_THREAD_STATE.
16668         (MACHINE_THREAD_STATE_FLAVOR): Define to i386_REGS_SEGS_STATE instead of
16669         i386_THREAD_STATE.
16670         (MACHINE_THREAD_STATE_FIX_NEW): New macro, reads segments.
16672         * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler): Use
16673         i386_REGS_SEGS_STATE instead of i386_THREAD_STATE.
16675         * sysdeps/mach/hurd/i386/tls.h (TCB_ALIGNMENT, HURD_SEL_LDT): New
16676         macros.
16677         (_hurd_tls_fork): Add original thread parameter, Duplicate existing LDT
16678         descriptor instead of creating a new one.
16679         (_hurd_tls_new): New function, creates a new descriptor and updates tcb.
16681         * mach/setup-thread.c: Include <ldsodefs.h>.
16682         (__mach_setup_thread): Call _dl_allocate_tls, pass
16683         MACHINE_NEW_THREAD_STATE_FLAVOR to __thread_set_state instead of
16684         MACHINE_THREAD_STATE_FLAVOR, before getting
16685         MACHINE_THREAD_STATE_FLAVOR, calling _hurd_tls_new, and setting
16686         MACHINE_THREAD_STATE_FLAVOR with the result.
16687         * hurd/hurdfault.c (_hurdsig_fault_init): Call
16688         MACHINE_THREAD_STATE_FIX_NEW.
16689         * sysdeps/mach/hurd/fork.c (__fork): Call _hurd_tls_fork for sigthread
16690         too.  Add original thread parameter.
16692 2018-03-16  Joseph Myers  <joseph@codesourcery.com>
16694         * sysdeps/x86/fpu/bits/mathinline.h [__USE_MISC] (__finite):
16695         Remove inline function.
16697         * sysdeps/i386/fpu/libm-test-ulps: Update.
16698         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
16700 2018-03-16  Wilco Dijkstra  <wdijkstr@arm.com>
16702         * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Revert previous
16703         commit.
16705 2018-03-15  Joseph Myers  <joseph@codesourcery.com>
16707         * sysdeps/x86/fpu/bits/mathinline.h [__FAST_MATH__]
16708         (__sincos_code): Remove define and undefine.
16709         [__FAST_MATH__] (__sincos): Remove inline function.
16710         [__FAST_MATH__] (__sincosf): Remove inline function.
16711         [__FAST_MATH__] (__sincosl): Remove inline function.
16712         (__atan2l): Remove inline functions.
16713         [!__GNUC_PREREQ (3, 4)] (__atan2_code): Remove macro.
16714         [!__GNUC_PREREQ (3, 4) && __FAST_MATH__] (atan2): Remove inline
16715         function.
16716         (floor): Remove inline function.
16717         (ceil): Likewise.
16718         [__FAST_MATH__] (__ldexp_code): Remove macro.
16719         [__FAST_MATH__] (ldexp): Remove inline function.
16720         [__FAST_MATH__ && __USE_ISOC99] (ldexpf): Likewise.
16721         [__FAST_MATH__ && __USE_ISOC99] (ldexpl): Likewise.
16722         [__FAST_MATH__ && __USE_ISOC99] (rint): Likewise.
16723         [__USE_ISOC99] (__lrint_code): Remove macro.
16724         [__USE_ISOC99] (__llrint_code): Likewise.
16725         [__USE_ISOC99] (lrintf): Remove inline function.
16726         [__USE_ISOC99] (lrint): Likewise.
16727         [__USE_ISOC99] (lrintl): Likewise.
16728         [__USE_ISOC99] (llrint): Likewise.
16729         [__USE_ISOC99] (llrintf): Likewise.
16730         [__USE_ISOC99] (llrintl): Likewise.
16732 2018-03-15  Wilco Dijkstra  <wdijkstr@arm.com>
16734         * sysdeps/aarch64/fpu/math_private.h (__ieee754_sqrt): Remove.
16735         (__ieee754_sqrtf): Remove.
16736         * sysdeps/alpha/fpu/math_private.h (__ieee754_sqrt): Remove.
16737         (__ieee754_sqrtf): Remove.
16738         * sysdeps/generic/math-type-macros.h (M_SQRT): Use sqrt.
16739         * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Remove.
16740         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Remove.
16741         (__ieee754_sqrtf): Remove.
16742         * sysdeps/s390/fpu/bits/mathinline.h: Remove file.
16743         * sysdeps/sparc/fpu/bits/mathinline.h (sqrt) Remove.
16744         (sqrtf): Remove.
16745         (sqrtl): Remove.
16746         (__ieee754_sqrt): Remove.
16747         (__ieee754_sqrtf): Remove.
16748         (__ieee754_sqrtl): Remove.
16749         * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Remove.
16750         * sysdeps/x86/fpu/math_private.h (__ieee754_sqrt): Remove.
16751         * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Remove.
16752         (__ieee754_sqrtf): Remove.
16753         (__ieee754_sqrtl): Remove.
16755 2018-03-15  Wilco Dijkstra  <wdijkstr@arm.com>
16757         * sysdeps/ieee754/dbl-64/e_acosh.c (__ieee754_acosh): Use sqrt.
16758         * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Likewise.
16759         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
16760         * sysdeps/ieee754/dbl-64/e_j0.c (__ieee754_j0): Likewise.
16761         * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_j1): Likewise.
16762         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
16763         * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
16764         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c (__ieee754_acosh):
16765         Likewise.
16766         * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Likewise.
16767         * sysdeps/ieee754/flt-32/e_acoshf.c (__ieee754_acoshf): Likewise.
16768         * sysdeps/ieee754/flt-32/e_asinf.c (__ieee754_asinf): Likewise.
16769         * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
16770         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Likewise.
16771         * sysdeps/ieee754/flt-32/e_j0f.c (__ieee754_j0f): Likewise.
16772         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_j1f): Likewise.
16773         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Likewise.
16774         * sysdeps/ieee754/flt-32/s_asinhf.c (__asinhf): Likewise.
16775         * sysdeps/ieee754/ldbl-128/e_acoshl.c (__ieee754_acoshl): Use sqrtl.
16776         * sysdeps/ieee754/ldbl-128/e_acosl.c (__ieee754_acosl): Likewise.
16777         * sysdeps/ieee754/ldbl-128/e_asinl.c (__ieee754_asinl): Likewise.
16778         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive): Likewise.
16779         * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl): Likewise.
16780         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Likewise.
16781         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
16782         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
16783         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
16784         * sysdeps/ieee754/ldbl-128/s_asinhl.c (__ieee754_asinhl): Likewise.
16785         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Likewise.
16786         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Likewise.
16787         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
16788         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive): Likewise.
16789         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Likewise.
16790         * sysdeps/ieee754/ldbl-128ibm/e_j0l.c (__ieee754_j0l): Likewise.
16791         * sysdeps/ieee754/ldbl-128ibm/e_j1l.c (__ieee754_j1l): Likewise
16792         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
16793         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
16794         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__ieee754_asinhl): Likewise.
16795         * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Use sqrtl.
16796         * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
16797         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive): Likewise.
16798         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
16799         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Likewise.
16800         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
16801         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
16802         * sysdeps/ieee754/ldbl-96/s_asinhl.c (__ieee754_asinhl): Likewise.
16803         * sysdeps/m68k/m680x0/fpu/e_pow.c (__ieee754_pow): Likewise.
16804         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Likewise.
16805         * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Likewise.
16807 2018-03-15  Wilco Dijkstra  <wdijkstr@arm.com>
16809         * include/math.h (sqrt): Declare with asm redirect.
16810         (sqrtf): Likewise.
16811         (sqrtl): Likewise.
16812         (sqrtf128): Likewise.
16813         * Makeconfig: Add -fno-math-errno for libc/libm, but build testsuite,
16814         nonlib and libnldbl with -fmath-errno.
16815         * math/w_sqrt_compat.c: Define NO_MATH_REDIRECT.
16816         * math/w_sqrt_template.c: Likewise.
16817         * math/w_sqrtf_compat.c: Likewise.
16818         * math/w_sqrtl_compat.c: Likewise.
16819         * sysdeps/i386/fpu/w_sqrt.c: Likewise.
16820         * sysdeps/i386/fpu/w_sqrt_compat.c: Likewise.
16821         * sysdeps/generic/math-type-macros-float128.h: Remove math.h and
16822         complex.h.
16824 2018-03-15  Wilco Dijkstra  <wdijkstr@arm.com>
16826         * benchtests/Makefile: Define _ISOMAC.
16827         * benchtests/bench-strcoll.c: Add missing sys/stat.h include.
16828         * benchtests/bench-string.h: Define inhibit_loop_to_libcall macro.
16829         * benchtests/bench-strstr.c: Define empty libc_hidden_builtin_def.
16830         * benchtests/bench-strtok.c (oldstrtok): Use rawmemchr.
16831         * benchtests/bench-timing.h: Define attribute_hidden.
16833 2018-03-15  Siddhesh Poyarekar  <siddhesh@sourceware.org>
16835         * sysdeps/aarch64/strncmp.S (strncmp): Use lsr instead of
16836         mov + lsr.
16838 2018-03-15  Rafal Luzynski  <digitalfreak@lingonborough.com>
16840         [BZ #22963]
16841         * localedata/locales/cs_CZ (mon): Rename to...
16842         (alt_mon): This.
16843         (mon): Import from CLDR (genitive case).
16845 2018-03-15  Rafal Luzynski  <digitalfreak@lingonborough.com>
16847         [BZ #22937]
16848         * localedata/locales/el_CY (abmon): Rename to...
16849         (ab_alt_mon): This.
16850         (abmon): Import from CLDR (abbreviated genitive case).
16851         * localedata/locales/el_GR (abmon): Rename to...
16852         (ab_alt_mon): This.
16853         (abmon): Import from CLDR (abbreviated genitive case).
16855 2018-03-15  Rafal Luzynski  <digitalfreak@lingonborough.com>
16857         [BZ #22932]
16858         * localedata/locales/lt_LT (abmon): Synchronize with CLDR.
16860 2018-03-15  Robert Buj  <robert.buj@gmail.com>
16862         [BZ #22848]
16863         * localedata/locales/ca_ES (abmon): Rename to...
16864         (ab_alt_mon): This, then synchronize with CLDR (nominative case).
16865         (mon): Rename to...
16866         (alt_mon): This.
16867         (abmon): Import from CLDR (genitive case, month names preceded by
16868         "de" or "d’").
16869         (mon): Likewise.
16870         (abday): Synchronize with CLDR.
16871         (d_t_fmt): Likewise.
16872         (d_fmt): Likewise.
16873         (am_pm): Likewise.
16875         (LC_TIME): Improve indentation.
16876         (LC_TELEPHONE): Likewise.
16877         (LC_NAME): Likewise.
16878         (LC_ADDRESS): Likewise.
16880 2018-03-14  Joseph Myers  <joseph@codesourcery.com>
16882         * sysdeps/x86/fpu/bits/mathinline.h [!__GNUC_PREREQ (3, 4)]
16883         (lrintf): Remove definitions used only with old GCC.
16884         [!__GNUC_PREREQ (3, 4)] (lrint): Likewise.
16885         [!__GNUC_PREREQ (3, 4)] (llrintf): Likewise.
16886         [!__GNUC_PREREQ (3, 4)] (llrint): Likewise.
16887         [!__GNUC_PREREQ (3, 4)] (fmaxf): Likewise.
16888         [!__GNUC_PREREQ (3, 4)] (fmax): Likewise.
16889         [!__GNUC_PREREQ (3, 4)] (fminf): Likewise.
16890         [!__GNUC_PREREQ (3, 4)] (fmin): Likewise.
16891         [!__GNUC_PREREQ (3, 4)] (rint): Likewise.
16892         [!__GNUC_PREREQ (3, 4)] (rintf): Likewise.
16893         [!__GNUC_PREREQ (3, 4)] (nearbyint): Likewise.
16894         [!__GNUC_PREREQ (3, 4)] (nearbyintf): Likewise.
16895         [!__GNUC_PREREQ (3, 4)] (ceil): Likewise.
16896         [!__GNUC_PREREQ (3, 4)] (ceilf): Likewise.
16897         [!__GNUC_PREREQ (3, 4)] (floor): Likewise.
16898         [!__GNUC_PREREQ (3, 4)] (floorf): Likewise.
16899         [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (tan): Likewise.
16900         [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (fmod): Likewise.
16901         [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (sin): Likewise.
16902         [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (cos): Likewise.
16903         [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log10): Likewise.
16904         [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (asin): Likewise.
16905         [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (acos): Likewise.
16906         [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (atan): Likewise.
16907         [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log1p): Likewise.
16908         [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (logb): Likewise.
16909         [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log2): Likewise.
16910         [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (drem): Likewise.
16911         [__FAST_MATH__] (__M_SQRT2): Remove macro.
16913 2018-03-14  Siddhesh Poyarekar  <siddhesh@sourceware.org>
16915         * sysdeps/aarch64/strncmp.S (strncmp): Use a separate shift
16916         instruction to unbreak builds with binutils 2.26 and older.
16918 2018-03-13  Siddhesh Poyarekar  <siddhesh@sourceware.org>
16920         * sysdeps/aarch64/strncmp.S (count): New macro.
16921         (strncmp): Store misaligned length in SRC1 in COUNT.
16922         (mutual_align): Adjust.
16923         (misaligned8): Load dword at a time when it is safe.
16925 2018-03-12  Zack Weinberg  <zackw@panix.com>
16927         [BZ #1190]
16928         [BZ #19476]
16929         * libio/fileops.c (_IO_new_file_underflow): Return EOF immediately
16930         if the _IO_EOF_SEEN bit is already set; update commentary.
16931         * libio/oldfileops.c (_IO_old_file_underflow): Likewise.
16932         * libio/wfileops.c (_IO_wfile_underflow): Likewise.
16934         * support/support_openpty.c, support/tty.h: New files.
16935         * support/Makefile (libsupport-routines): Add support_openpty.
16937         * libio/tst-fgetc-after-eof.c, wcsmbs/test-fgetwc-after-eof.c:
16938         New test cases.
16939         * libio/Makefile (tests): Add tst-fgetc-after-eof.
16940         * wcsmbs/Makefile (tests): Add tst-fgetwc-after-eof.
16942 2018-03-12  Dmitry V. Levin  <ldv@altlinux.org>
16944         * po/pt_BR.po: Update translations.
16946 2018-03-12  David Michael  <fedora.dm0@gmail.com>
16948         * sysdeps/mach/hurd/reboot.c: Include <hurd/paths.h>
16949         (reboot): Lookup _SERVERS_STARTUP instead of calling proc_getmsgport to
16950         get a port to the startup server.
16952 2018-03-11  Zack Weinberg  <zackw@panix.com>
16954         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include math.h
16955         before nldbl-compat.h.
16957 2018-03-10  Zack Weinberg  <zackw@panix.com>
16959         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Don't include
16960         math.h or math_private.h.
16962         * sysdeps/alpha/fpu/s_isnan.c
16963         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c
16964         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c
16965         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c
16966         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c
16967         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c
16968         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c
16969         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c
16970         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c
16971         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c
16972         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot.c
16973         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf.c:
16974         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf.c
16975         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot.c
16976         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c:
16977         Include math_private.h.
16979         * sysdeps/ieee754/ldbl-64-128/s_finitel.c
16980         * sysdeps/ieee754/ldbl-64-128/s_fpclassifyl.c
16981         * sysdeps/ieee754/ldbl-64-128/s_isinfl.c
16982         * sysdeps/ieee754/ldbl-64-128/s_isnanl.c
16983         * sysdeps/ieee754/ldbl-64-128/s_signbitl.c
16984         * sysdeps/powerpc/power7/fpu/s_logb.c:
16985         Include math.h and math_private.h.
16987         * sysdeps/unix/sysv/linux/alpha/clone.S (__clone): Wrap manual
16988         uses of $at in .set noat / .set at.
16990 2018-03-10  H.J. Lu  <hongjiu.lu@intel.com>
16992         * include/setjmp.h (__libc_longjmp): Remove libc_hidden_proto.
16993         * setjmp/longjmp.c (__libc_longjmp): Remove libc_hidden_def.
16994         * sysdeps/s390/longjmp.c (__libc_longjmp): Likewise.
16995         * sysdeps/unix/sysv/linux/sparc/sparc64/longjmp.S (__libc_longjmp):
16996         Likewise.
16998 2018-03-09  Florian Weimer  <fweimer@redhat.com>
17000         * malloc/malloc.c (prev_size, set_prev_size, prev_chunk): Fix typo
17001         in comment.
17003 2018-03-09  Aurelien Jarno  <aurelien@aurel32.net>
17005         [BZ #22919]
17006         * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S (__startcontext):
17007         Add nop before __startcontext, add explaining comments.
17009 2018-03-07  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17011         [BZ #22926]
17012         * sysdeps/powerpc/powerpc32/sysdep.h (ABORT_TRANSACTION_IMPL): Define
17013         empty for __SPE__.
17014         * sysdeps/powerpc/sysdep.h (ABORT_TRANSACTION): Likewise.
17015         * sysdeps/unix/sysv/linux/powerpc/elision-lock.c (__lll_lock_elision):
17016         Do not build hardware transactional code for __SPE__.
17017         * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c
17018         (__lll_trylock_elision): Likewise.
17019         * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c
17020         (__lll_unlock_elision): Likewise.
17022         * sysdeps/nptl/fork.c (ARCH_FORK): Replace by arch_fork.
17023         * sysdeps/unix/sysv/linux/alpha/arch-fork.h: Remove file.
17024         * sysdeps/unix/sysv/linux/riscv/arch-fork.h: Likewise.
17025         * sysdeps/unix/sysv/linux/aarch64/arch-fork.h: Likewise.
17026         * sysdeps/unix/sysv/linux/arm/arch-fork.h: Likewise.
17027         * sysdeps/unix/sysv/linux/hppa/arch-fork.h: Likewise.
17028         * sysdeps/unix/sysv/linux/i386/arch-fork.h: Likewise.
17029         * sysdeps/unix/sysv/linux/ia64/arch-fork.h: Likewise.
17030         * sysdeps/unix/sysv/linux/m68k/arch-fork.h: Likewise.
17031         * sysdeps/unix/sysv/linux/microblaze/arch-fork.h: Likewise.
17032         * sysdeps/unix/sysv/linux/mips/arch-fork.h: Likewise.
17033         * sysdeps/unix/sysv/linux/nios2/arch-fork.h: Likewise.
17034         * sysdeps/unix/sysv/linux/powerpc/arch-fork.h: Likewise.
17035         * sysdeps/unix/sysv/linux/s390/arch-fork.h: Likewise.
17036         * sysdeps/unix/sysv/linux/sh/arch-fork.h: Likewise.
17037         * sysdeps/unix/sysv/linux/sparc/arch-fork.h: Likewise.
17038         * sysdeps/unix/sysv/linux/tile/arch-fork.h: Likewise.
17039         * sysdeps/unix/sysv/linux/x86_64/arch-fork.h: Likewise.
17040         * sysdeps/unix/sysv/linux/arch-fork.h (arch_fork): New function.
17041         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h: New file.
17042         * sysdeps/unix/sysv/linux/riscv/kernel-features.h: Likewise.
17043         * sysdeps/unix/sysv/linux/arm/kernel-features.h
17044         (__ASSUME_CLONE_BACKWARDS): Define.
17045         * sysdeps/unix/sysv/linux/createthread.c (ARCH_CLONE): Define to
17046         __clone2 if __NR_clone2 is defined.
17047         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
17048         (__ASSUME_CLONE_BACKWARDS): Likewise.
17049         * sysdeps/unix/sysv/linux/i386/kernel-features.h
17050         (__ASSUME_CLONE_BACKWARDS): Likewise.
17051         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
17052         (__ASSUME_CLONE2): Likewise.
17053         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
17054         (__ASSUME_CLONE_BACKWARDS3): Likewise.
17055         * sysdeps/unix/sysv/linux/kernel-features.h: Document possible clone
17056         variants and the define architecture can use.
17057         (__ASSUME_CLONE_DEFAULT): Define as default.
17058         * sysdeps/unix/sysv/linux/mips/kernel-features.h
17059         (__ASSUME_CLONE_BACKWARDS): Likewise.
17060         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
17061         (__ASSUME_CLONE_BACKWARDS): Likewise.
17062         * sysdeps/unix/sysv/linux/s390/kernel-features.h
17063         (__ASSUME_CLONE_BACKWARDS2): Likewise.
17065 2018-03-06  Siddhesh Poyarekar  <siddhesh@sourceware.org>
17067         * sysdeps/aarch64/memcmp.S (more16): Fix loop16 branch target.
17069         * sysdeps/aarch64/memcmp.S: Widen comparison to 16 bytes at a
17070         time.
17072         * benchtests/bench-strncmp.c (test_main): Remove 0 length tests.
17073         (do_test_limit): Likewise.
17075         * benchtests/bench-strncmp.c (do_test_limit): Reallocate buffers
17076         for every implementation.
17077         (do_test): Likewise.
17079         * benchtests/bench-strncmp.c: Convert output to json.
17081 2018-03-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
17083         * io/futimens.c: Add missing start-of-file descriptive comment.
17084         * io/utime.c: Likewise.
17085         * misc/futimesat.c: Likewise.
17086         * misc/utimes.c: Likewise.
17087         * sysdeps/mach/hurd/futimesat.c: Likewise.
17088         * sysdeps/mach/hurd/utimes.c: Likewise.
17089         * sysdeps/posix/utime.c: Likewise.
17090         * sysdeps/posix/utimes.c: Likewise.
17091         * sysdeps/unix/sysv/linux/futimesat.c: Likewise.
17092         * sysdeps/unix/sysv/linux/generic/futimesat.c: Likewise.
17093         * sysdeps/unix/sysv/linux/generic/utimes.c: Likewise.
17094         * sysdeps/unix/sysv/linux/utimes.c: Likewise.
17096 2018-03-05  Samuel Thibault  <samuel.thibault@ens-lyon.org>
17098         * sysdeps/mach/hurd/utime-helper.c (hurd_futimens): Rename function to
17099         hurd_futimes.
17100         * sysdeps/mach/hurd/utimes.c (__utimes): Update call accordingly.
17101         * sysdeps/mach/hurd/lutimes.c (__lutimes): Likewise.
17102         * sysdeps/mach/hurd/futimens.c: Include "utime-helper.c".
17103         (__futimens): Move implementation to...
17104         * sysdeps/mach/hurd/utime-helper.c (utime_ts_from_tspec,
17105         utime_tvalue_from_tspec): ... new helper functions.
17106         (hurd_futimens): New function.
17107         * sysdeps/mach/hurd/futimesat.c: New file.
17108         * sysdeps/mach/hurd/utimensat.c: New file.
17110 2018-03-05  Flávio Cruz  <flaviocruz@gmail.com>
17112         * sysdeps/mach/hurd/bits/stat.h [__USE_ATFILE] (UTIME_NOW,
17113         UTIME_OMIT): New macros.
17114         * sysdeps/mach/hurd/futimens.c (__futimens): Try to use __file_utimens
17115         before reverting to converting time spec to time value and calling
17116         __file_utimes.
17117         * sysdeps/mach/hurd/utime-helper.c: New file.
17118         * sysdeps/mach/hurd/futimes.c: Include "utime-helper.c".
17119         (__futimes): Try to use utime_ts_from_tval and __file_utimens before
17120         reverting to utime_tvalue_from_tval and __file_utimes.
17121         * sysdeps/mach/hurd/lutimes.c: Include "utime-helper.c".
17122         (__lutimes): Just call hurd_futimens after lookup.
17123         * sysdeps/mach/hurd/utimes.c: Likewise.
17125 2018-03-05  Samuel Thibault  <samuel.thibault@ens-lyon.org>
17127         * bits/sigaction.h: Add include guard.
17128         * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h: Likewise.
17129         * sysdeps/unix/sysv/linux/bits/sigaction.h: Likewise.
17130         * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h: Likewise.
17131         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h: Likewise.
17132         * sysdeps/unix/sysv/linux/mips/bits/sigaction.h: Likewise.
17133         * sysdeps/unix/sysv/linux/s390/bits/sigaction.h: Likewise.
17134         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h: Likewise.
17135         * sysdeps/unix/sysv/linux/tile/bits/sigaction.h: Likewise.
17136         * hurd/hurd/signal.h: Include <bits/sigaction.h>.
17138 2018-03-05  Joseph Myers  <joseph@codesourcery.com>
17140         * iconv/loop.c (UNICODE_TAG_HANDLER): Disable
17141         -Wmaybe-uninitialized for -Os.
17142         * sysdeps/s390/multiarch/8bit-generic.c (BODY): Add comment about
17143         this disabling.
17145 2018-03-03  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17147         * bits/dirent.h (__INO_T_MATCHES_INO64_T): Define regardless whether
17148         __INO_T_MATCHES_INO64_T is defined.
17149         * sysdeps/unix/sysv/linux/bits/dirent.h: Likewise.
17150         * dirent/alphasort.c: Check _DIRENT_MATCHES_DIRENT64 value instead
17151         of definition.
17152         * dirent/alphasort64.c: Likewise.
17153         * dirent/scandir.c: Likewise.
17154         * dirent/scandir64-tail.c: Likewise.
17155         * dirent/scandir64.c: Likewise.
17156         * dirent/scandirat.c: Likewise.
17157         * dirent/scandirat64.c: Likewise.
17158         * dirent/versionsort.c: Likewise.
17159         * dirent/versionsort64.c: Likewise.
17160         * include/dirent.h: Likewise.
17162         * nptl/tst-cancel4-common.h (set_socket_buffer): New function.
17163         * nptl/tst-cancel4-common.c (do_test): Call set_socket_buffer
17164         for socketpair endpoint.
17165         * nptl/tst-cancel4.c (tf_send): Call set_socket_buffer and use
17166         WRITE_BUFFER_SIZE as buffer size for sending socket.
17167         (tf_sendto): Use SOCK_STREAM instead of SOCK_DGRAM and fix an
17168         issue on system where send is implemented with sendto syscall.
17169         * sysdeps/unix/sysv/linux/mips/mips64/Makefile [$(subdir) = socket]
17170         (CFLAGS-recv.c, CFLAGS-send.c): Remove rules.
17171         [$(subdir) = nptl] (CFLAGS-recv.c, CFLAGS-send.c): Likewise.
17172         * sysdeps/unix/sysv/linux/riscv/rv64/Makefile: Remove file.
17174         [BZ #21269]
17175         * sysdeps/unix/sysv/linux/i386/Makefile (tests): Add tst-bz21269.
17176         * sysdeps/unix/sysv/linux/i386/sigaction.c (SET_SA_RESTORER): Clear
17177         sa_restorer for vDSO case.
17178         * sysdeps/unix/sysv/linux/i386/tst-bz21269.c: New file.
17180 2018-03-03  Samuel Thibault  <samuel.thibault@ens-lyon.org>
17182         * scripts/check-installed-headers.sh: Ignore Hurd and Mach headers.
17183         * hurd/hurd/id.h: Include <hurd/hurd_types.h>
17184         * hurd/hurd/ioctl.h: Include <mach/port.h>
17185         * hurd/hurd/lookup.h: Include <hurd/hurd_types.h>
17186         * mach/Makefile ($(objpfx)mach-shortcuts.h): Make it include
17187         <mach/mach_types.h> and <mach/message.h>.
17188         (headers): Move mach/param.h to bits/mach/param.h.
17189         * sysdeps/mach/i386/mach/param.h: Move file to ...
17190         * sysdeps/mach/i386/bits/mach/param.h: ... here.  Update path in #error.
17191         * sysdeps/mach/hurd/bits/param.h: Include <bits/mach/param.h> instead
17192         of <mach/param.h>.
17193         * hurd/hurd/port.h: Do not include <hurd/signal.h>.
17194         * hurd/hurd/userlink.h [!defined __USE_EXTERN_INLINES ||
17195         !defined _LIBC || !IS_IN (libc)]: Do not include <hurd/signal.h>.
17196         * hurd/hurd/fd.h (_hurd_fd_error): Fix struct initializer to be
17197         trivial, for C++ conformity.
17198         * sysdeps/mach/hurd/dl-sysdep.c: Include <mach/machine/vm_param.h>.
17199         * mach/Machrules ($(patsubst %,$(objpfx)%.h,$(user-interfaces)):
17200         Process mig output through $(migheadersed).
17201         * hurd/Makefile (migheadersed): Define variable.
17202         * mach/mach/mig_support.h [defined __USE_GNU]: Do not #error out.
17203         * scripts/check-installed-headers.sh: Do not ignore Hurd and Mach
17204         headers.
17205         * hurd/hurd.h: Include <bits/types/sigset_t.h>
17206         * hurd/hurd/fd.h: Include <sys/select.h> and <bits/types/sigset_t.h>
17207         (_hurd_fd_read, _hurd_fd_write): Use __loff_t instead of loff_t.
17208         * hurd/hurd/signal.h: Include <bits/types/stack_t.h> and
17209         <bits/types/sigset_t.h>.
17210         [!defined __USE_GNU]: Do not #error out.
17211         (struct hurd_sigstate): Use _NSIG instead of NSIG.
17212         * hurd/hurd/sigpreempt.h (__need_size_t): Define.
17213         Include <stddef.h> and <bits/types/sigset_t.h>
17214         (struct hurd_signal_preemptor, hurd_catch_signal): Use __sighandler_t
17215         instead of sighandler_t.
17216         * stdlib/errno.h (error_t): Move definition to...
17217         * bits/types/error_t.h: ... new header.
17218         * stdlib/Makefile (headers): Add bits/types/error_t.h.
17219         * sysdeps/mach/hurd/bits/errno.h (error_t): Move definition to...
17220         * sysdeps/mach/hurd/bits/types/error_t.h: ... new header.
17221         * sysdeps/mach/hurd/errnos.awk (error_t): Likewise.
17222         * hurd/hurd.h: Include <bits/types/error_t.h>
17223         * hurd/hurd/fd.h: Include <bits/types/error_t.h>
17224         * hurd/hurd/id.h: Include <errno.h> and <bits/types/error_t.h>
17225         * hurd/hurd/lookup.h: Include <errno.h> and <bits/types/error_t.h>
17226         * hurd/hurd/resource.h: Include <bits/types/error_t.h>
17227         * hurd/hurd/signal.h: Include <bits/types/error_t.h>
17228         * hurd/hurd/sigpreempt.h: Include <bits/types/error_t.h>
17229         * sysdeps/mach/hurd/futimens.c: New file.
17231 2018-03-03  Andreas Schwab  <schwab@linux-m68k.org>
17233         [BZ #22918]
17234         * nss/nsswitch.h (DEFINE_DATABASE): Don't define __nss_*_database.
17235         * nss/nsswitch.c (DEFINE_DATABASE): Define __nss_*_database here.
17236         * nscd/gai.c (__nss_hosts_database): Readd definition.
17237         * posix/tst-rfc3484.c (__nss_hosts_database): Likewise.
17238         * posix/tst-rfc3484-3.c (__nss_hosts_database): Likewise.
17239         * posix/tst-rfc3484-2.c (__nss_hosts_database): Likewise.
17241 2018-03-02  Joseph Myers  <joseph@codesourcery.com>
17243         * sysdeps/powerpc/ifunc-sel.h (ifunc_sel): Make always_inline.
17244         (ifunc_one): Likewise.
17246 2018-03-01  DJ Delorie  <dj@delorie.com>
17248         [BZ #22342]
17249         * nscd/netgroupcache.c (addinnetgrX): Include trailing NUL in
17250         key value.
17252 2018-03-01  Maciej W. Rozycki  <macro@mips.com>
17254         * nptl_db/td_ta_thr_iter.c (iterate_thread_list): Remove
17255         `match_pid' parameter.
17256         (td_ta_thr_iter): Update accordingly.
17258 2018-03-01  Florian Weimer  <fweimer@redhat.com>
17260         * nptl/Makefile (install-lib-ldscripts): Remove.
17261         (install): Remove rule.
17262         ($(inst_libdir)/libpthread.so): Likewise.
17264 2018-03-01  Mike FABIAN  <mfabian@redhat.com>
17266         [BZ #22896]
17267         * localedata/locales/an_ES: update month and day names,
17268         improve d_fmt, improve postal_fmt, add country_post,
17269         add country_isbn
17271 2018-03-01  Mike FABIAN  <mfabian@redhat.com>
17273         * localedata/locales/bg_BG (LC_COLLATE): The comment mentioned
17274         Ukrainian instead of Bulgarian.
17276 2018-03-01  Florian Weimer  <fweimer@redhat.com>
17278         * nptl/Makefile (libpthread.so): Drop libpthread_nonshared.a
17279         reference.
17281 2018-03-01  Florian Weimer  <fweimer@redhat.com>
17283         Move pthread_atfork to libc.  Remove libpthread_nonshared.a.
17284         * nptl/Makefile (routines): Add pthread_atfork.
17285         (static-only-routines): Set to pthread_atfork.
17286         (libpthread-routines): Remove pthread_atfork.
17287         (libpthread-static-only-routines): Remove.
17288         (install): Update comment.
17289         (libpthread.so): Do not install libpthread_nonshared.a.
17290         (tests): Do not link with libpthread_nonshared.a.
17291         (generated): Remove libpthread_nonshared.a.
17292         * nptl/pthread_atfork.c (pthread_atfork): Turn into weak alias.
17293         * sysdeps/nptl/Makeconfig (shared-thread-library): Do not link
17294         with libpthread_nonshared.a.
17296 2018-02-28  Joseph Myers  <joseph@codesourcery.com>
17298         [BZ #22902]
17299         * sysdeps/i386/fpu/fenv_private.h [!__x86_64__]
17300         (libc_feholdexcept_setroundf128): New macro.
17301         [!__x86_64__] (libc_feupdateenv_testf128): Likewise.
17303         [BZ #15105]
17304         * sysdeps/wordsize-32/strtoumax.c (strtoumax): Use
17305         libc_hidden_def.
17306         * sysdeps/wordsize-64/strtoumax.c (strtoumax): Likewise.
17307         * include/inttypes.h: New file.
17309 2018-02-27  Joseph Myers  <joseph@codesourcery.com>
17311         * locale/weightwc.h (findidx): Ignore -Wmaybe-uninitialized for
17312         -Os in two more places.
17314 2018-02-27  Mike FABIAN  <mfabian@redhat.com>
17316         See this bug https://sourceware.org/bugzilla/show_bug.cgi?id=22898
17317         * localedata/cmn_TW.UTF-8.in: Remove the lines which cannot
17318         be sorted correctly at the moment because of a bug.
17320 2018-02-27  Mike FABIAN  <mfabian@redhat.com>
17322         [BZ #22550] - es_ES locale (and other es_* locales): collation should
17323         treat ñ as a primary different character, sync the collation
17324         for Spanish with CLDR.
17325         [BZ #21547] - Tibetan script collation broken (Dzongkha and Tibetan).
17326         * localedata/Makefile: Add new test files.
17327         * localedata/lv_LV.UTF-8.in: Adapt test file to new collation order.
17328         * localedata/sv_SE.ISO-8859-1.in: Adapt test file to new
17329         collation order.
17330         * localedata/uk_UA.UTF-8.in: Adapt test file to new collation order.
17331         * localedata/am_ET.UTF-8.in: New test file.
17332         * localedata/az_AZ.UTF-8.in: Likewise.
17333         * localedata/be_BY.UTF-8.in: Likewise.
17334         * localedata/ber_DZ.UTF-8.in: Likewise.
17335         * localedata/ber_MA.UTF-8.in: Likewise.
17336         * localedata/bg_BG.UTF-8.in: Likewise.
17337         * localedata/br_FR.UTF-8.in: Likewise.
17338         * localedata/cmn_TW.UTF-8.in: Likewise.
17339         * localedata/crh_UA.UTF-8.in: Likewise.
17340         * localedata/csb_PL.UTF-8.in: Likewise.
17341         * localedata/cv_RU.UTF-8.in: Likewise.
17342         * localedata/cy_GB.UTF-8.in: Likewise.
17343         * localedata/dz_BT.UTF-8.in: Likewise.
17344         * localedata/eo.UTF-8.in: Likewise.
17345         * localedata/es_ES.UTF-8.in: Likewise.
17346         * localedata/fa_IR.UTF-8.in: Likewise.
17347         * localedata/fi_FI.UTF-8.in: Likewise.
17348         * localedata/fil_PH.UTF-8.in: Likewise.
17349         * localedata/fur_IT.UTF-8.in: Likewise.
17350         * localedata/gez_ER.UTF-8@abegede.in: Likewise.
17351         * localedata/ha_NG.UTF-8.in: Likewise.
17352         * localedata/ig_NG.UTF-8.in: Likewise.
17353         * localedata/ik_CA.UTF-8.in: Likewise.
17354         * localedata/kk_KZ.UTF-8.in: Likewise.
17355         * localedata/ku_TR.UTF-8.in: Likewise.
17356         * localedata/ky_KG.UTF-8.in: Likewise.
17357         * localedata/ln_CD.UTF-8.in: Likewise.
17358         * localedata/mi_NZ.UTF-8.in: Likewise.
17359         * localedata/ml_IN.UTF-8.in: Likewise.
17360         * localedata/mn_MN.UTF-8.in: Likewise.
17361         * localedata/mr_IN.UTF-8.in: Likewise.
17362         * localedata/mt_MT.UTF-8.in: Likewise.
17363         * localedata/nb_NO.UTF-8.in: Likewise.
17364         * localedata/om_KE.UTF-8.in: Likewise.
17365         * localedata/os_RU.UTF-8.in: Likewise.
17366         * localedata/ps_AF.UTF-8.in: Likewise.
17367         * localedata/ro_RO.UTF-8.in: Likewise.
17368         * localedata/ru_RU.UTF-8.in: Likewise.
17369         * localedata/sc_IT.UTF-8.in: Likewise.
17370         * localedata/se_NO.UTF-8.in: Likewise.
17371         * localedata/sq_AL.UTF-8.in: Likewise.
17372         * localedata/sv_SE.UTF-8.in: Likewise.
17373         * localedata/szl_PL.UTF-8.in: Likewise.
17374         * localedata/tg_TJ.UTF-8.in: Likewise.
17375         * localedata/tk_TM.UTF-8.in: Likewise.
17376         * localedata/tt_RU.UTF-8.in: Likewise.
17377         * localedata/tt_RU.UTF-8@iqtelif.in: Likewise.
17378         * localedata/ug_CN.UTF-8.in: Likewise.
17379         * localedata/uz_UZ.UTF-8.in: Likewise.
17380         * localedata/vi_VN.UTF-8.in: Likewise.
17381         * localedata/yi_US.UTF-8.in: Likewise.
17382         * localedata/yo_NG.UTF-8.in: Likewise.
17383         * localedata/zh_CN.UTF-8.in: Likewise.
17384         * localedata/locales/am_ET: Adapt collation rules to new iso14651_t1_common
17385         file and fix bugs in the collation.
17386         * localedata/locales/az_AZ: Likewise.
17387         * localedata/locales/be_BY: Likewise.
17388         * localedata/locales/ber_DZ: Likewise.
17389         * localedata/locales/ber_MA: Likewise.
17390         * localedata/locales/bg_BG: Likewise.
17391         * localedata/locales/br_FR: Likewise.
17392         * localedata/locales/br_FR@euro: Likewise.
17393         * localedata/locales/ca_ES: Likewise.
17394         * localedata/locales/cns11643_stroke: Likewise.
17395         * localedata/locales/crh_UA: Likewise.
17396         * localedata/locales/cs_CZ: Likewise.
17397         * localedata/locales/csb_PL: Likewise.
17398         * localedata/locales/cv_RU: Likewise.
17399         * localedata/locales/cy_GB: Likewise.
17400         * localedata/locales/da_DK: Likewise.
17401         * localedata/locales/dz_BT: Likewise.
17402         * localedata/locales/en_CA: Likewise.
17403         * localedata/locales/eo: Likewise.
17404         * localedata/locales/es_CU: Likewise.
17405         * localedata/locales/es_EC: Likewise.
17406         * localedata/locales/es_ES: Likewise.
17407         * localedata/locales/es_US: Likewise.
17408         * localedata/locales/et_EE: Likewise.
17409         * localedata/locales/fa_IR: Likewise.
17410         * localedata/locales/fi_FI: Likewise.
17411         * localedata/locales/fil_PH: Likewise.
17412         * localedata/locales/fur_IT: Likewise.
17413         * localedata/locales/gez_ER@abegede: Likewise.
17414         * localedata/locales/ha_NG: Likewise.
17415         * localedata/locales/hr_HR: Likewise.
17416         * localedata/locales/hsb_DE: Likewise.
17417         * localedata/locales/hu_HU: Likewise.
17418         * localedata/locales/ig_NG: Likewise.
17419         * localedata/locales/ik_CA: Likewise.
17420         * localedata/locales/is_IS: Likewise.
17421         * localedata/locales/iso14651_t1_pinyin: Likewise.
17422         * localedata/locales/kk_KZ: Likewise.
17423         * localedata/locales/ku_TR: Likewise.
17424         * localedata/locales/ky_KG: Likewise.
17425         * localedata/locales/ln_CD: Likewise.
17426         * localedata/locales/lt_LT: Likewise.
17427         * localedata/locales/lv_LV: Likewise.
17428         * localedata/locales/mi_NZ: Likewise.
17429         * localedata/locales/ml_IN: Likewise.
17430         * localedata/locales/mn_MN: Likewise.
17431         * localedata/locales/mr_IN: Likewise.
17432         * localedata/locales/mt_MT: Likewise.
17433         * localedata/locales/nb_NO: Likewise.
17434         * localedata/locales/om_KE: Likewise.
17435         * localedata/locales/os_RU: Likewise.
17436         * localedata/locales/pl_PL: Likewise.
17437         * localedata/locales/ps_AF: Likewise.
17438         * localedata/locales/ro_RO: Likewise.
17439         * localedata/locales/ru_RU: Likewise.
17440         * localedata/locales/ru_UA: Likewise.
17441         * localedata/locales/sc_IT: Likewise.
17442         * localedata/locales/se_NO: Likewise.
17443         * localedata/locales/si_LK: Likewise.
17444         * localedata/locales/sq_AL: Likewise.
17445         * localedata/locales/sv_FI: Likewise.
17446         * localedata/locales/sv_FI@euro: Likewise.
17447         * localedata/locales/sv_SE: Likewise.
17448         * localedata/locales/szl_PL: Likewise.
17449         * localedata/locales/tg_TJ: Likewise.
17450         * localedata/locales/ti_ER: Likewise.
17451         * localedata/locales/tk_TM: Likewise.
17452         * localedata/locales/tl_PH: Likewise.
17453         * localedata/locales/tr_TR: Likewise.
17454         * localedata/locales/tt_RU: Likewise.
17455         * localedata/locales/tt_RU@iqtelif: Likewise.
17456         * localedata/locales/ug_CN: Likewise.
17457         * localedata/locales/uk_UA: Likewise.
17458         * localedata/locales/uz_UZ: Likewise.
17459         * localedata/locales/uz_UZ@cyrillic: Likewise.
17460         * localedata/locales/vi_VN: Likewise.
17461         * localedata/locales/yi_US: Likewise.
17462         * localedata/locales/yo_NG: Likewise.
17464 2018-02-27  Mike FABIAN  <mfabian@redhat.com>
17466         * gen-locales.mk: Make test files which contain @ modifiers in their
17467         name work.
17468         * localedata/gen-locale.sh: Likewise.
17470 2018-02-27  Mike FABIAN  <mfabian@redhat.com>
17472         * posix/tst-fnmatch.input: Fix results for range expressions
17473         for non C locales.
17474         * posix/tst-regexloc.c: Do not use a range expression for
17475         de_DE.ISO-8859-1 locale.
17477 2018-02-27  Mike FABIAN  <mfabian@redhat.com>
17479         * posix/bug-regex5.c: Fix test case because with the new
17480         iso14651_t1_common file, the da_DK locale now has 6 collating elements
17481         in the ISO-8859-1 range instead of 4 with the old iso14651_t1_common
17482         file.
17484 2018-02-27  Mike FABIAN  <mfabian@redhat.com>
17486         * localedata/da_DK.ISO-8859-1.in: In the new iso14651_t1_common file
17487         downloaded from ISO, the collation order of @-. and space has changed.
17488         Therefore, this test file needed to be adapted.
17489         * localedata/fr_CA.UTF-8.in: Likewise.
17490         * localedata/fr_FR.UTF-8.in: Likewise.
17491         * localedata/uk_UA.UTF-8.in: Likewise.
17493 2018-02-27  Mike FABIAN  <mfabian@redhat.com>
17495         * localedata/cs_CZ.UTF-8.in: adapt this test file to the collation
17496         order of ȥ in the new iso14651_t1_common file.
17497         * localedata/pl_PL.UTF-8.in: Likewise.
17499 2018-02-27  Mike FABIAN  <mfabian@redhat.com>
17501         * localedata/locales/iso14651_t1_common: Add sections for various
17502         scripts to the iso14651_t1_common file.
17504 2018-02-27  Mike FABIAN  <mfabian@redhat.com>
17506         * localedata/locales/iso14651_t1_common: Use the code point of a
17507         character in the fourth collation level instead of IGNORE for all
17508         entries which have IGNORE on all 4 levels.
17510 2018-02-27  Mike FABIAN  <mfabian@redhat.com>
17512         * localedata/locales/iso14651_t1_common: Add some convenient collation
17513         symbols like <AFTER-A>, <BEFORE-A> to make tailoring easier using
17514         rules similar to those in CLDR.
17516 2018-02-27  Mike FABIAN  <mfabian@redhat.com>
17518         * localedata/locales/iso14651_t1_common: The new version of this
17519         file downloaded from ISO contained several syntax errors which
17520         are fixed by this patch.
17522 2018-02-27  Mike FABIAN  <mfabian@redhat.com>
17524         * localedata/locales/iso14651_t1_common: replace all <U.....>
17525         with <U000.....> because glibc understands only 4 digit or 8 digit
17527 2018-02-27  Mike FABIAN  <mfabian@redhat.com>
17529         * localedata/locales/iso14651_t1_common: Necessary changes
17530         to make the file downloaded from ISO usable by glibc.
17532 2018-02-27  Mike FABIAN  <mfabian@redhat.com>
17534         [BZ #14095]
17535         * localedata/locales/iso14651_t1_common: Update file to
17536         latest version from ISO (ISO14651_2016_TABLE1_en.txt).
17538 2018-02-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
17540         * sysdeps/pthread/timer_routines.c: Include <timer_routines.h> instead
17541         of <nptl/pthreadP.h>
17542         (thread_attr_compare): Move function to...
17543         [!defined DELAYTIMER_MAX] (DELAYTIMER_MAX): Define to INT_MAX.
17544         * sysdeps/nptl/timer_routines.h: ... new header.
17545         * sysdeps/mach/hurd/gai_misc.h: New file.
17547 2018-02-26  Joseph Myers  <joseph@codesourcery.com>
17549         * string/strcoll_l.c: Include <libc-diag.h>.
17550         (STRCOLL): Ignore -Wmaybe-uninitialized for -Os around
17551         declarations of seq1 and seq2.
17553         [BZ #15105]
17554         * stdlib/atoi.c (atoi): Use libc_hidden_def.
17555         * include/stdlib.h [!_ISOMAC] (atoi): Use libc_hidden_proto.
17557 2018-02-26  Dmitry V. Levin  <ldv@altlinux.org>
17559         [BZ #22433]
17560         [BZ #22807]
17561         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (__ptrace_request): Add
17562         PTRACE_GETREGS, PTRACE_SETREGS, PTRACE_GETFPREGS, PTRACE_SETFPREGS,
17563         PTRACE_GETVRREGS, PTRACE_SETVRREGS, PTRACE_GETEVRREGS,
17564         PTRACE_SETEVRREGS, PTRACE_GETREGS64, PTRACE_SETREGS64,
17565         PTRACE_GET_DEBUGREG, PTRACE_SET_DEBUGREG, PTRACE_GETVSRREGS,
17566         PTRACE_SETVSRREGS, and PTRACE_SINGLEBLOCK.
17568 2018-02-26  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
17570         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Undefine Linux
17571         macros used in __ptrace_request.
17573 2018-02-23  H.J. Lu  <hongjiu.lu@intel.com>
17575         [BZ #22792]
17576         * Makerules ($(common-objpfx)%.h): Pass -DGEN_AS_CONST_HEADERS
17577         to $(CC).
17578         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Include
17579         <tcb-offsets.h> only if GEN_AS_CONST_HEADERS isn't defined.
17580         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Don't include
17581         <tcb-offsets.h>.
17583 2018-02-23  Joseph Myers  <joseph@codesourcery.com>
17585         [BZ #15105]
17586         * ctype/ctype.c (tolower): Use libc_hidden_def.
17587         (toupper): Likewise.
17588         * include/ctype.h [!_ISOMAC] (tolower): Use libc_hidden_proto.
17589         [!_ISOMAC] (toupper): Likewise.
17591 2018-02-23  Mike FABIAN  <mfabian@redhat.com>
17593         * localedata/Makefile: Remove --quiet argument when
17594         installing locales
17596 2018-02-23  Mike FABIAN  <mfabian@redhat.com>
17598         [BZ #17438]
17599         * localedata/locales/pt_BR (LC_TIME): use / instead of -
17600         in d_fmt.
17601         * localedata/locales/pt_PT (LC_TIME): likewise
17603 2018-02-23  Mike FABIAN  <mfabian@redhat.com>
17605         [BZ #22646]
17606         * localedata/locales/es_CL (LC_TIME): copy "es_BO".
17607         * localedata/locales/es_CU (LC_TIME): copy "es_BO".
17608         * localedata/locales/es_EC (LC_TIME): copy "es_BO".
17610 2018-02-22  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17612         * sysdeps/sparc/fpu/libm-test-ulps: Update.
17614         * nptl/Makefile (routines): Remove unregister-atfork.
17615         * nptl/register-atfork.c (fork_handler_pool): Remove variable.
17616         (fork_handler_alloc): Remove function.
17617         (fork_handlers, fork_handler_init): New variables.
17618         (__fork_lock): Rename to atfork_lock.
17619         (__register_atfork, __unregister_atfork, libc_freeres_fn): Rewrite
17620         to use a dynamic array to add/remove atfork handlers.
17621         * sysdeps/nptl/fork.c (__libc_fork): Likewise.
17622         * sysdeps/nptl/fork.h (__fork_lock, __fork_handlers, __linkin_atfork):
17623         Remove declaration.
17624         (fork_handler): Remove next, refcntr, and need_signal member.
17625         (__run_fork_handler_type): New enum.
17626         (__run_fork_handlers): New prototype.
17627         * nptl/register-atfork.c: Remove file.
17628         * sysdeps/nptl/libc-lockP.h (__libc_atfork): Remove declaration.
17630         * sysdeps/nptl/nptl-signals.h: Move to ...
17631         * sysdeps/generic/internal-signals.h: ... here.  Adjust internal
17632         comments.
17633         * sysdeps/unix/sysv/linux/internal-signals.h: Add include guards.
17634         (__nptl_is_internal_signal): Rename to __is_internal_signal and remove
17635         unnecessary check for SIGTIMER.
17636         (__nptl_clear_internal_signals): Rename to __clear_internal_signals and
17637         remove unnecessary removal of SIGTIMER.
17638         * sysdeps/unix/sysv/linux/raise.c: Adjust nptl-signal.h to
17639         include-signals.h rename.
17640         * nptl/pthreadP.h: Likewise.
17641         * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Call
17642         __is_internal_signal instead of __nptl_is_internal_signal.
17644 2018-02-22  Andrew Waterman  <andrew@sifive.com>
17646         [BZ # 22884]
17647         * sysdeps/riscv/rvd/s_fmax.c (__fmax): Handle sNaNs correctly.
17648         * sysdeps/riscv/rvd/s_fmin.c (__fmin): Likewise.
17649         * sysdeps/riscv/rvf/s_fmaxf.c (__fmaxf): Likewise.
17650         * sysdeps/riscv/rvf/s_fminf.c (__fminf): Likewise.
17652 2018-02-22  DJ Delorie  <dj@delorie.com>
17654         * sysdeps/riscv/tls-macros.h: Do not initialize $gp.
17656 2018-02-22  Siddhesh Poyarekar  <siddhesh@sourceware.org>
17658         * sysdeps/aarch64/strcmp.S (do_misaligned): Jump back to
17659         do_misaligned, not misaligned8.
17661 2018-02-22  Steve Ellcey  <sellcey@cavium.com>
17663         * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
17664         Add memcpy_thunderx2.
17665         * sysdeps/aarch64/multiarch/ifunc-impl-list.c (MAX_IFUNC):
17666         Increment to 4.
17667         (__libc_ifunc_impl_list): Add __memcpy_thunderx2.
17668         * sysdeps/aarch64/multiarch/memcpy.c (libc_ifunc): Add IS_THUNDERX2
17669         and IS_THUNDERX2PA checks.
17670         * sysdeps/aarch64/multiarch/memcpy_thunderx.S (USE_THUNDERX2):
17671         Use macro to set name appropriately.
17672         (memcpy): Use USE_THUNDERX2 macro to modify prefetches.
17673         * sysdeps/aarch64/multiarch/memcpy_thunderx2.S: New file.
17674         * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_THUNDERX2PA):
17675         New macro.
17676         (IS_THUNDERX2): New macro.
17678 2018-02-22  Stefan Liebler  <stli@linux.vnet.ibm.com>
17680         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
17682 2018-02-21  Zack Weinberg  <zackw@panix.com>
17684         * libio/libio.h (_IO_pos_BAD, _IO_pos_0, _IO_pos_adjust):
17685         Define here, unconditionally.
17686         * libio/iolibio.h (_IO_pos_BAD): Don't define here.
17687         * libio/libioP.h: Remove #if 0 blocks.
17688         (_IO_pos_BAD, _IO_pos_0, _IO_pos_adjust): Don't define here.
17689         (_IO_va_start, COERCE_FILE, MAYBE_SET_EINVAL): Don't define.
17690         (CHECK_FILE): Don't use MAYBE_SET_EINVAL or COERCE_FILE.  Fix style.
17692         * libio/clearerr.c, libio/fputc.c, libio/getchar.c:
17693         Assume weak_alias is always defined.
17695         * libio/fileops.c, libio/genops.c, libio/oldfileops.c
17696         * libio/oldpclose.c, libio/pclose.c, libio/wfileops.c:
17697         Remove #if 0 and #ifdef TODO blocks.
17698         Assume text_set_element is always defined.
17700         * libio/iofdopen.c, libio/iogetdelim.c, libio/oldiofdopen.c
17701         Use __set_errno (EINVAL) instead of MAYBE_SET_EINVAL.
17702         * libio/tst-mmap-eofsync.c: Make #if 1 block unconditional.
17704         * libio/libio.h (_IOS_ATEND, _IOS_APPEND, _IOS_TRUNC)
17705         (_IOS_NOCREATE, _IOS_NOREPLACE, _IOS_BIN, _OLD_STDIO_MAGIC)
17706         (_IO_SKIPWS, _IO_LEFT, _IO_RIGHT, _IO_INTERNAL, _IO_DEC)
17707         (_IO_OCT, _IO_HEX, _IO_SHOWBASE, _IO_SHOWPOINT, _IO_UPPERCASE)
17708         (_IO_SHOWPOS, _IO_SCIENTIFIC, _IO_FIXED, _IO_UNITBUF, _IO_STDIO)
17709         (_IO_DONT_CLOSE, _IO_BOOLALPHA, _IO_BAD_SEEN): Remove, unused.
17710         Reformat bit flags for _flags field to make occupancy clearer.
17711         Update commentary.
17712         * libio/bits/types/struct_FILE.h (_IO_EOF_SEEN, _IO_ERR_SEEN):
17713         Keep definitions consistent with those in libio/libio.h.
17715         * libio/libio.h (_IO_file_flags): Remove macro.
17716         All uses changed to _flags.
17718         * libio/libio.h (_IO_UNIFIED_JUMPTABLES, _STDIO_USES_IOSTREAM)
17719         (__HAVE_COLUMN, _IO_BE): Don't define.
17720         (_IO_peekc_unlocked, _IO_getwc_unlocked, _IO_putwc_unlocked)
17721         (_IO_fwide_maybe_incompatible): Use __glibc_unlikely.
17722         * libio/libioP.h (EOF): Don't define.
17723         * libio/iofdopen.c, libio/iofopen.c, libio/iopopen.c
17724         * libio/iovdprintf.c, libio/oldiofdopen.c, libio/oldiofopen.c
17725         * libio/oldiopopen.c, debug/vdprintf_chk.c: Remove #if block
17726         testing _IO_UNIFIED_JUMPTABLES.
17728         * libio/libio.h (_IO_FILE): Delete; all uses changed to FILE.
17729         (_IO_fpos_t): Delete; all uses changed to __fpos_t.
17730         (_IO_fpos64_t): Delete; all uses changed to __fpos64_t.
17731         (_IO_size_t): Delete; all uses changed to size_t.
17732         (_IO_ssize_t): Delete; all uses changed to ssize_t or __ssize_t.
17733         (_IO_off_t): Delete; all uses changed to off_t.
17734         (_IO_off64_t): Delete; all uses changed to off64_t.
17735         (_IO_pid_t): Delete; all uses changed to pid_t.
17736         (_IO_uid_t): Delete; all uses changed to uid_t.
17737         (_IO_wint_t): Delete; all uses changed to wint_t.
17738         (_IO_va_list): Delete; all uses changed to va_list or __gnuc_va_list.
17739         (_IO_BUFSIZ): Delete; all uses changed to BUFSIZ.
17740         (_IO_cookie_io_functions_t): Delete; all uses changed to
17741         cookie_io_functions_t.
17742         (__io_read_fn): Delete; all uses changed to cookie_read_function_t.
17743         (__io_write_fn): Delete; all uses changed to cookie_write_function_t.
17744         (__io_seek_fn): Delete; all uses changed to cookie_seek_function_t.
17745         (__io_close_fn): Delete: all uses changed to cookie_close_function_t.
17747         * libio/iofopncook.c: Remove unnecessary forward declarations.
17748         * libio/iolibio.h: Correct outdated commentary.
17749         * malloc/malloc.c (__malloc_stats): Remove unnecessary casts.
17750         * stdio-common/fxprintf.c (__fxprintf_nocancel):
17751         Remove unnecessary casts.
17752         * stdio-common/getline.c: Use _IO_getdelim directly.
17753         Don't redefine ssize_t.
17754         * stdio-common/printf_fp.c, stdio_common/printf_fphex.c
17755         * stdio-common/printf_size.c: Don't redefine size_t or FILE.
17756         Remove outdated comments.
17757         * stdio-common/vfscanf.c: Don't redefine va_list.
17759         * libio/iolibio.h, libio/libioP.h: Remove extern "C".
17760         * libio/libio.h: Remove __BEGIN_DECLS and __END_DECLS.
17761         Remove preprocessor conditionals on _LIBC and __USE_GNU,
17762         which are always true, and __cplusplus, which is always false.
17764 2018-02-21  Joseph Myers  <joseph@codesourcery.com>
17766         [BZ #15105]
17767         [BZ #19463]
17768         * libio/fputc_u.c (fputc_unlocked): Use libc_hidden_def.
17769         * libio/putc_u.c (putc_unlocked): Rename to __putc_unlocked and
17770         define as weak alias of __putc_unlocked.  Use libc_hidden_weak.
17771         * include/stdio.h [!_ISOMAC] (fputc_unlocked): Use
17772         libc_hidden_proto.
17773         [!_ISOMAC] (putc_unlocked): Likewise.
17774         [!_ISOMAC] (__putc_unlocked): Declare as hidden function, and
17775         define inline if [__USE_EXTERN_INLINES].
17776         * misc/syslog.c (__vsyslog_chk): Call __putc_unlocked instead of
17777         putc_unlocked.
17779         [BZ #15105]
17780         [BZ #19463]
17781         * libio/getc_u.c (getc_unlocked): Use libc_hidden_weak.
17782         * include/stdio.h [!_ISOMAC] (__getc_unlocked): Use
17783         attribute_hidden, and define inline if [__USE_EXTERN_INLINES].
17784         [!_ISOMAC] (getc_unlocked): Use libc_hidden_proto.
17785         * misc/getttyent.c (__getttyent): Call __getc_unlocked instead of
17786         getc_unlocked.
17787         * time/tzfile.c (__tzfile_read): Likewise.
17789 2018-02-21  Mike FABIAN  <mfabian@redhat.com>
17791         [BZ #22517]
17792         * localedata/locales/et_EE (LC_COLLATE): add missing “reorder-end”
17794 2018-02-21  Rical Jasan  <ricaljasan@pacific.net>
17796         * io/fcntl.h: Fix a typo in a comment.
17798 2018-02-21  Rical Jasan  <ricaljasan@pacific.net>
17800         [BZ #22862]
17801         * include/features.h: Add _ISOC11_SOURCE to test for whether to
17802         define _DEFAULT_SOURCE.
17803         * manual/creature.texi (_DEFAULT_SOURCE): Improve documentation.
17805 2018-02-21  Florian Weimer  <fweimer@redhat.com>
17807         [BZ #20890]
17808         * elf/cache.c (save_cache): Call fsync on temporary file before
17809         renaming it.
17810         (save_aux_cache): Call fdatasync on temporary file before renaming
17811         it.
17813 2018-02-21  Florian Weimer  <fweimer@redhat.com>
17815         [BZ #22787]
17816         * include/caller.h: Remove file.
17817         * elf/dl-caller.c: Likewise.
17818         * elf/Makefile (dl-routines): Remove dl-caller.
17819         (shared-only-routines): Do not add dl-caller.
17820         * elf/dl-load.c (_dl_map_object_from_fd): Do not call
17821         __check_caller.
17822         * elf/dl-open.c (struct dl_open_args): Remove caller_dl_open
17823         member.
17824         (dl_open_worker): Do not call __check_caller.
17825         (_dl_open): Do not set caller_dl_open member.
17826         * elf/rtld.c (_rtld_global_ro): Do not initialize
17827         _dl_check_caller member.
17828         * sysdeps/generic/ldsodefs.h (rtld_global): Remove
17829         _dl_check_caller member.
17830         (_dl_check_caller): Remove declaration.
17831         * sysdeps/unix/sysv/linux/dl-execstack.c
17832         (_dl_make_stack_executable): Do not call __check_caller.
17834 2018-02-21  Samuel Thibault  <samuel.thibault@ens-lyon.org>
17836         * sysdeps/mach/hurd/dl-sysdep.c (_dl_random): New variable.
17837         * sysdeps/mach/hurd/sysdep-cancel.h: New file.
17839 2018-02-20  Rical Jasan  <ricaljasan@pacific.net>
17841         * manual/creature.texi (_ISOC99_SOURCE): Update the dated
17842         description.
17844 2018-02-20  Rical Jasan  <ricaljasan@pacific.net>
17846         [BZ #16335]
17847         * manual/creature.texi (_POSIX_C_SOURCE): Document special values
17848         of 199606L, 200112L, and 200809L.
17849         (_XOPEN_SOURCE): Document special values of 600 and 700.
17850         (_ISOC11_SOURCE): Document macro.
17851         (_ATFILE_SOURCE): Likewise.
17852         (_FORTIFY_SOURCE): Likewise.
17854 2018-02-19  Joseph Myers  <joseph@codesourcery.com>
17856         [BZ #15105]
17857         [BZ #19463]
17858         * libio/ferror_u.c (ferror_unlocked): Rename to __ferror_unlocked
17859         and define as weak alias of __ferror_unlocked.  Use
17860         libc_hidden_weak.
17861         * include/stdio.h [!_ISOMAC] (ferror_unlocked): Use
17862         libc_hidden_proto.
17863         [!_ISOMAC] (__ferror_unlocked) New declaration, and inline
17864         function if [__USE_EXTERN_INLINES].
17865         * time/getdate.c (__getdate_r): Call __ferror_unlocked instead of
17866         ferror_unlocked.
17868 2018-02-19  Rical Jasan  <ricaljasan@pacific.net>
17870         [BZ #6889]
17871         * manual/filesys.texi (get_current_dir_name): Clarify behaviour.
17873 2018-02-18  Aurelien Jarno  <aurelien@aurel32.net>
17875         [BZ #22818]
17876         * posix/tst-glob_lstat_compat.c [__alpha__] (glob): Access
17877         the GLIBC_2.1 version.
17879 2018-02-18  Aurelien Jarno  <aurelien@aurel32.net>
17881         [BZ #21508]
17882         * catgets/xopen-msg.awk: Ignore POT-Creation-Date line.
17883         * intl/Makefile ($(objpfx)tst-gettext-de.po): Generate
17884         intl/tst-gettext-de.po from po/de.po by removing the
17885         POT-Creation-Date line.
17886         ($(objpfx)msgs.h): Depend on $(objpfx)tst-gettext-de.po instead of
17887         ../po/de.po.
17888         * intl/tst-gettext.sh: Use ${objpfx}tst-gettext-de.po instead of
17889         ../po/de.po.
17891 2018-02-17  Samuel Thibault  <samuel.thibault@ens-lyon.org>
17893         * mach/Makefile (headers): Add mach/param.h.
17894         * sysdeps/mach/hurd/bits/param.h: Include <mach/param.h>.
17895         * sysdeps/mach/i386/mach/param.h: New file, defines EXEC_PAGESIZE
17896         * sysdeps/mach/hurd/ptsname.c: Include <sys/stat.h>.
17897         (__ptsname_r): Move implementation to...
17898         (__ptsname_internal): ... new function.  Add filling the STP
17899         structure.
17901 2018-02-17  John David Anglin  <danglin@gcc.gnu.org>
17903         * sysdeps/hppa/fpu/libm-test-ulps (pow): Increase double and
17904         idouble to 1 ULP.
17906 2018-02-16  Rical Jasan  <ricaljasan@pacific.net>
17908         * manual/platform.texi (__riscv_flush_icache): Fix @deftypefun
17909         syntax.
17911 2018-02-16  Stefan Liebler  <stli@linux.vnet.ibm.com>
17913         * nptl/Makefile (tst-mutex8-ENV): Delete.
17914         * nptl/tst-mutex8.c (check_type):
17915         Add runtime check if mutex will be elided.
17917 2018-02-15  Joseph Myers  <joseph@codesourcery.com>
17919         [BZ #20980]
17920         [BZ #21234]
17921         * manual/install.texi (Configuring and compiling): Describe
17922         passing CC and CFLAGS on configure command line, not as
17923         environment variables.  Use @code markup on those variables.
17924         Specify what options go in CC and what go in CFLAGS.  Note the
17925         requirement to compile with optimization.
17926         * INSTALL: Regenerated.
17928         [BZ #18124]
17929         * sysdeps/hppa/bsd-setjmp.S: Include <sysdep.h>.
17930         (setjmp): Use HIDDEN_JUMPTARGET with __sigsetjmp.
17931         * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Call
17932         __sigprocmask instead of sigprocmask.
17933         * sysdeps/unix/sysv/linux/hppa/setcontext.S (__setcontext):
17934         Likewise.
17935         * sysdeps/unix/sysv/linux/hppa/localplt.data: Remove entries for
17936         __sigsetjmp and sigprocmask.
17938         [BZ #15105]
17939         * include/argz.h (argz_next): Use libc_hidden_proto.
17940         (__argz_next): Likewise.
17941         * string-argz-next.c (__argz_next): Use libc_hidden_def.
17942         (argz_next): Use libc_hidden_weak.
17944         [BZ #15105]
17945         * include/sys/socket.h [!_ISOMAC] (__cmsg_nxthdr): Use
17946         libc_hidden_proto.
17947         * sysdeps/unix/sysv/linux/cmsg_nxthdr.c (__cmsg_nxthdr): Use
17948         libc_hidden_def.
17950         [BZ #15105]
17951         * include/stdio.h [!_ISOMAC && IS_IN (libc)] (fputs): Use
17952         libc_hidden_proto.
17953         * libio/iofputs.c (fputs): Use libc_hidden_weak.
17955         [BZ #15105]
17956         [BZ #19463]
17957         * libio/feof_u.c (feof_unlocked): Rename to __feof_unlocked and
17958         define as weak alias of __feof_unlocked.  Use libc_hidden_weak.
17959         * include/stdio.h (feof_unlocked): Use libc_hidden_proto.
17960         (__feof_unlocked): New declaration, and inline function if
17961         [__USE_EXTERN_INLINES].
17962         * iconv/gconv_conf.c (read_conf_file): Call __feof_unlocked
17963         instead of feof_unlocked.
17964         * intl/localealias.c [_LIBC] (FEOF): Likewise.
17965         * nss/nsswitch.c (nss_parse_file): Likewise.
17966         * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area):
17967         Likewise.
17968         * time/getdate.c (__getdate_r): Likewise.
17969         * sysdeps/posix/getaddrinfo.c [IS_IN (libc)] (feof_unlocked):
17970         Define as macro to call __feof_unlocked.
17972 2018-02-15  Wilco Dijkstra  <wdijkstr@arm.com>
17974         * sysdeps/aarch64/fpu/fpu_control.h: Use <> in include.
17976 2018-02-15  Wilco Dijkstra  <wdijkstr@arm.com>
17978         * math/Makefile: Remove mpexp.c and mplog.c
17979         * sysdeps/i386/fpu/mpexp.c: Delete file.
17980         * sysdeps/i386/fpu/mplog.c: Likewise.
17981         * sysdeps/ia64/fpu/mpexp.c: Likewise.
17982         * sysdeps/ia64/fpu/mplog.c: Likewise.
17983         * sysdeps/ieee754/dbl-64/e_exp.c: Remove mention of mpexp and mplog.
17984         * sysdeps/ieee754/dbl-64/mpa.h (__pow_mp): Remove unused function.
17985         * sysdeps/ieee754/dbl-64/mpexp.c: Delete file.
17986         * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
17987         * sysdeps/m68k/m680x0/fpu/mpexp.c: Likewise.
17988         * sysdeps/m68k/m680x0/fpu/mplog.c: Likewise.
17989         * sysdeps/x86_64/fpu/multiarch/Makefile: Remove mpexp* and mplog*.
17990         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: Remove unused defines.
17991         * sysdeps/x86_64/fpu/multiarch/e_log-fma.c: Likewise.
17992         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
17993         * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: Delete file.
17994         * sysdeps/x86_64/fpu/multiarch/mpexp-fma.c: Likewise.
17995         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
17996         * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: Likewise.
17997         * sysdeps/x86_64/fpu/multiarch/mplog-fma.c: Likewise.
17998         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
18000 2018-02-15  Stefan Liebler  <stli@linux.vnet.ibm.com>
18002         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
18004 2018-02-14  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
18006         * sysdeps/sh/libm-test-ulps: Update.
18008 2018-02-12  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
18010         * sysdeps/powerpc/fpu/libm-test-ulps (pow): Increase double and
18011         idouble to 1 ULP.
18013 2018-02-12  Zack Weinberg  <zackw@panix.com>
18015         [BZ #19239]
18016         * posix/sys/types.h: Don't include sys/sysmacros.h.
18017         * misc/sys/sysmacros.h: Remove the conditional deprecation
18018         warnings for the macros defined by this header.
18020 2018-02-12  Szabolcs Nagy  <szabolcs.nagy@arm.com>
18022         * manual/probes.texi: Remove slowexp probes.
18023         * math/Makefile: Remove slowexp.
18024         * sysdeps/generic/math_private.h (__slowexp): Remove.
18025         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Remove __slowexp and
18026         document error bounds.
18027         * sysdeps/i386/fpu/slowexp.c: Remove.
18028         * sysdeps/ia64/fpu/slowexp.c: Remove.
18029         * sysdeps/ieee754/dbl-64/slowexp.c: Remove.
18030         * sysdeps/ieee754/dbl-64/uexp.h (err_0): Remove.
18031         * sysdeps/m68k/m680x0/fpu/slowexp.c: Remove.
18032         * sysdeps/powerpc/power4/fpu/Makefile (CPPFLAGS-slowexp.c): Remove.
18033         * sysdeps/x86_64/fpu/multiarch/Makefile: Remove slowexp-fma.
18034         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Remove.
18035         * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Remove.
18036         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Remove.
18037         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Remove.
18038         * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Remove.
18039         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Remove.
18041 2018-02-12  Wilco Dijkstra  <wdijkstr@arm.com>
18043         [BZ #13932]
18044         * sysdeps/ieee754/dbl-64/uexp.h (err_1): Remove.
18045         * benchtests/pow-inputs: Update comment for slow path cases.
18046         * manual/probes.texi (slowpow_p10): Delete removed probe.
18047         (slowpow_p10): Likewise.
18048         * math/Makefile: Remove halfulp.c and slowpow.c.
18049         * sysdeps/aarch64/libm-test-ulps: Set ULP of pow to 1.
18050         * sysdeps/generic/math_private.h (__exp1): Remove error argument.
18051         (__halfulp): Remove.
18052         (__slowpow): Remove.
18053         * sysdeps/i386/fpu/halfulp.c: Delete file.
18054         * sysdeps/i386/fpu/slowpow.c: Likewise.
18055         * sysdeps/ia64/fpu/halfulp.c: Likewise.
18056         * sysdeps/ia64/fpu/slowpow.c: Likewise.
18057         * sysdeps/ieee754/dbl-64/e_exp.c (__exp1): Remove error argument,
18058         improve comments and add error analysis.
18059         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Add error analysis.
18060         (power1): Remove function:
18061         (log1): Remove error argument, add error analysis.
18062         (my_log2): Remove function.
18063         * sysdeps/ieee754/dbl-64/halfulp.c: Delete file.
18064         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
18065         * sysdeps/m68k/m680x0/fpu/halfulp.c: Likewise.
18066         * sysdeps/m68k/m680x0/fpu/slowpow.c: Likewise.
18067         * sysdeps/powerpc/power4/fpu/Makefile: Remove CPPFLAGS-slowpow.c.
18068         * sysdeps/x86_64/fpu/libm-test-ulps: Set ULP of pow to 1.
18069         * sysdeps/x86_64/fpu/multiarch/Makefile: Remove slowpow-fma.c,
18070         slowpow-fma4.c, halfulp-fma.c, halfulp-fma4.c.
18071         * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c (__slowpow): Remove define.
18072         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c (__slowpow): Likewise.
18073         * sysdeps/x86_64/fpu/multiarch/halfulp-fma.c: Delete file.
18074         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
18075         * sysdeps/x86_64/fpu/multiarch/slowpow-fma.c: Likewise.
18076         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
18078 2018-02-11  Samuel Thibault  <samuel.thibault@ens-lyon.org>
18080         * nscd/connections.c (RWLOCK_INITIALIZER): Define to
18081         PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP or
18083 2018-02-10  Dmitry V. Levin  <ldv@altlinux.org>
18085         [BZ #22433]
18086         * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (__ptrace_request):
18087         Remove arm-specific PTRACE_GET_THREAD_AREA, PTRACE_GETHBPREGS,
18088         and PTRACE_SETHBPREGS.
18090 2018-02-10  Zack Weinberg  <zackw@panix.com>
18092         [BZ #22830]
18093         * malloc/malloc.c (__malloc_stats): Restore stderr->_flags2
18094         correctly.
18095         * malloc/tst-malloc-stats-cancellation.c: New test case.
18096         * malloc/Makefile: Add new test case.
18098 2018-02-10  Wilco Dijkstra  <wdijkstr@arm.com>
18100         * sysdeps/aarch64/fpu/fpu_control.h: Add features.h to fix build error.
18102 2018-02-10  Joseph Myers  <joseph@codesourcery.com>
18104         * math/Makefile (libm-narrow-fns): Add add.
18105         (libm-test-funcs-narrow): Likewise.
18106         * math/Versions (GLIBC_2.28): Add narrowing add functions.
18107         * math/bits/mathcalls-narrow.h (add): Use __MATHCALL_NARROW .
18108         * math/gen-auto-libm-tests.c (test_functions): Add add.
18109         * math/math-narrow.h (CHECK_NARROW_ADD): New macro.
18110         (NARROW_ADD_ROUND_TO_ODD): Likewise.
18111         (NARROW_ADD_TRIVIAL): Likewise.
18112         * sysdeps/ieee754/float128/float128_private.h (__faddl): New
18113         macro.
18114         (__daddl): Likewise.
18115         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fadd and
18116         dadd.
18117         (CFLAGS-nldbl-dadd.c): New variable.
18118         (CFLAGS-nldbl-fadd.c): Likewise.
18119         * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
18120         __nldbl_daddl.
18121         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_daddl): New
18122         prototype.
18123         * manual/arith.texi (Misc FP Arithmetic): Document fadd, faddl,
18124         daddl, fMaddfN, fMaddfNx, fMxaddfN and fMxaddfNx.
18125         * math/auto-libm-test-in: Add tests of add.
18126         * math/auto-libm-test-out-narrow-add: New generated file.
18127         * math/libm-test-narrow-add.inc: New file.
18128         * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
18129         * sysdeps/ieee754/dbl-64/s_f32xaddf64.c: Likewise.
18130         * sysdeps/ieee754/dbl-64/s_fadd.c: Likewise.
18131         * sysdeps/ieee754/float128/s_f32addf128.c: Likewise.
18132         * sysdeps/ieee754/float128/s_f64addf128.c: Likewise.
18133         * sysdeps/ieee754/float128/s_f64xaddf128.c: Likewise.
18134         * sysdeps/ieee754/ldbl-128/s_daddl.c: Likewise.
18135         * sysdeps/ieee754/ldbl-128/s_f64xaddf128.c: Likewise.
18136         * sysdeps/ieee754/ldbl-128/s_faddl.c: Likewise.
18137         * sysdeps/ieee754/ldbl-128ibm/s_daddl.c: Likewise.
18138         * sysdeps/ieee754/ldbl-128ibm/s_faddl.c: Likewise.
18139         * sysdeps/ieee754/ldbl-96/s_daddl.c: Likewise.
18140         * sysdeps/ieee754/ldbl-96/s_faddl.c: Likewise.
18141         * sysdeps/ieee754/ldbl-opt/nldbl-dadd.c: Likewise.
18142         * sysdeps/ieee754/ldbl-opt/nldbl-fadd.c: Likewise.
18143         * sysdeps/ieee754/soft-fp/s_daddl.c: Likewise.
18144         * sysdeps/ieee754/soft-fp/s_fadd.c: Likewise.
18145         * sysdeps/ieee754/soft-fp/s_faddl.c: Likewise.
18146         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
18147         * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
18148         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
18149         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
18150         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
18151         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
18152         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
18153         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
18154         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
18155         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
18156         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
18157         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
18158         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
18159         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
18160         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
18161         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
18162         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
18163         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
18164         * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
18165         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
18166         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
18167         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
18168         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
18169         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
18170         * sysdeps/unix/sysv/linux/tile/tilegx32/libm.abilist: Likewise.
18171         * sysdeps/unix/sysv/linux/tile/tilegx64/libm.abilist: Likewise.
18172         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
18173         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
18175         * sysdeps/powerpc/powerpc64le/Makefile [$(subdir) = math]
18176         (f128-pairs): New variable.
18177         [$(subdir) = math] ($(foreach suf,$(all-object-suffixes),$(foreach
18178         pair,$(f128-pairs),$(objpfx)test-$(pair)%$(suf)))): Add -mfloat128
18179         to CFLAGS.
18180         [$(subdir) = math] ($(foreach pair,$(f128-pairs),test-$(pair)%)):
18181         Also make tests add $(f128-loader-link) to gnulib-tests.
18183 2018-02-09  DJ Delorie  <dj@redhat.com>
18185         [BZ #22827]
18186         * sysdeps/unix/sysv/linux/riscv/readelflib.c (process_elf_file): Use
18187         64-bit ELF type for 64-bit ELF objects.
18189 2018-02-09  Joseph Myers  <joseph@codesourcery.com>
18191         * math/libm-test-driver.c (snan_tests_arg): New variable.
18192         * math/libm-test-support.h (snan_tests_arg): New declaration.
18193         * math/libm-test-support.c (enable_test): Check snan_tests_arg.
18195         * math/Makefile (test-type-pairs): New variable.
18196         (test-type-pairs-f64xf128-yes): Likewise.
18197         (tests): Add test-narrow-macros.
18198         (libm-test-funcs-narrow): New variable.
18199         (libm-test-c-narrow): Likewise.
18200         (generated): Add $(libm-test-c-narrow).
18201         (libm-tests-base-narrow): New variable.
18202         (libm-tests-narrow): Likewise.
18203         (libm-tests): Add $(libm-tests-narrow).
18204         (libm-tests-for-type): Handle $(libm-tests-narrow).
18205         (libm-test-c-narrow-obj): New variable.
18206         ($(libm-test-c-narrow-obj)): New rule.
18207         ($(foreach t,$(libm-tests-narrow),$(objpfx)$(t).c)): Likewise.
18208         ($(foreach f,$(libm-test-funcs-narrow),$(objpfx)$(o)-$(f).o)): Use
18209         $(o-iterator) to set dependencies and CFLAGS.
18210         * math/gen-auto-libm-tests.c: Document use for narrowing
18211         functions.
18212         (output_for_one_input_case): Take argument NARROW.
18213         (generate_output): Likewise.  Update call to
18214         output_for_one_input_case.
18215         (main): Take --narrow option.  Update call to generate_output.
18216         * math/gen-libm-test.pl (_apply_lit): Take macro name as argument.
18217         (apply_lit): Update call to _apply_lit.
18218         (apply_arglit): New function.
18219         (parse_args): Handle "a" arguments.
18220         (parse_auto_input): Handle format names using ":".
18221         * math/README.libm-test: Document "a" parameter type.
18222         * math/libm-test-support.h (ARG_TYPE_MIN): New macro.
18223         (ARG_TYPE_TRUE_MIN): Likewise.
18224         (ARG_TYPE_MAX): Likwise.
18225         (ARG_MIN_EXP): Likewise.
18226         (ARG_MAX_EXP): Likewise.
18227         (ARG_MANT_DIG): Likewise.
18228         (TEST_COND_arg_ibm128): Likewise.
18229         (TEST_COND_ibm128_libgcc): Define conditional on [ARG_FLOAT].
18230         (TEST_COND_arg_fmt): New macro.
18231         (init_max_error): Update prototype.
18232         * math/libm-test-support.c (test_ibm128): New variable.
18233         (init_max_error): Take argument testing_ibm128 and set test_ibm128
18234         instead of using [TEST_COND_ibm128] conditional.
18235         (test_exceptions): Use test_ibm128 instead of TEST_COND_ibm128.
18236         * math/libm-test-driver.c (STR_ARG_FLOAT): New macro.
18237         [TEST_NARROW] (TEST_MSG): New definition.
18238         (arg_plus_zero): New macro.
18239         (arg_minus_zero): Likewise.
18240         (arg_plus_infty): Likewise.
18241         (arg_minus_infty): Likewise.
18242         (arg_qnan_value_pl): Likewise.
18243         (arg_qnan_value): Likewise.
18244         (arg_snan_value_pl): Likewise.
18245         (arg_snan_value): Likewise.
18246         (arg_max_value): Likewise.
18247         (arg_min_value): Likewise.
18248         (arg_min_subnorm_value): Likewise.
18249         [ARG_FLOAT] (struct test_aa_f_data): New struct type.
18250         (RUN_TEST_LOOP_aa_f): New macro.
18251         (TEST_SUFF): New macro.
18252         (TEST_SUFF_STR): Likewise.
18253         [!TEST_MATHVEC] (VEC_SUFF): Don't define.
18254         (TEST_COND_any_ibm128): New macro.
18255         (START): Use TEST_SUFF and TEST_SUFF_STR in initializer for
18256         this_func.  Update call to init_max_error.
18257         * math/test-double.h (FUNC_NARROW_PREFIX): New macro.
18258         * math/test-float.h (FUNC_NARROW_PREFIX): Likewise.
18259         * math/test-float128.h (FUNC_NARROW_PREFIX): Likewise.
18260         * math/test-float32.h (FUNC_NARROW_PREFIX): Likewise.
18261         * math/test-float32x.h (FUNC_NARROW_PREFIX): Likewise.
18262         * math/test-float64.h (FUNC_NARROW_PREFIX): Likewise.
18263         * math/test-float64x.h (FUNC_NARROW_PREFIX): Likewise.
18264         * math/test-math-scalar.h (TEST_NARROW): Likewise.
18265         * math/test-math-vector.h (TEST_NARROW): Likewise.
18266         * math/test-arg-double.h: New file.
18267         * math/test-arg-float128.h: Likewise.
18268         * math/test-arg-float32x.h: Likewise.
18269         * math/test-arg-float64.h: Likewise.
18270         * math/test-arg-float64x.h: Likewise.
18271         * math/test-arg-ldouble.h: Likewise.
18272         * math/test-math-narrow.h: Likewise.
18273         * math/test-narrow-macros.c: Likewise.
18274         * sysdeps/ieee754/ldbl-opt/test-narrow-macros-ldbl-64.c: Likewise.
18275         * sysdeps/ieee754/ldbl-opt/Makefile (tests): Add
18276         test-narrow-macros-ldbl-64.
18277         (CFLAGS-test-narrow-macros-ldbl-64.c): New variable.
18279         * math/bits/mathcalls-narrow.h: New file.
18280         * include/bits/mathcalls-narrow.h: Likewise.
18281         * math/math-narrow.h: Likewise.
18282         * math/math.h (__MATHCALL_NARROW_ARGS_1): New macro.
18283         (__MATHCALL_NARROW_ARGS_2): Likewise.
18284         (__MATHCALL_NARROW_ARGS_3): Likewise.
18285         (__MATHCALL_NARROW_NORMAL): Likewise.
18286         (__MATHCALL_NARROW_REDIR): Likewise.
18287         (__MATHCALL_NARROW): Likewise.
18288         [__GLIBC_USE (IEC_60559_BFP_EXT)]: Repeatedly include
18289         <bits/mathcalls-narrow.h> with _Mret_, _Marg_ and __MATHCALL_NAME
18290         defined.
18291         [__GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
18292         * math/Makefile (headers): Add bits/mathcalls-narrow.h.
18293         (libm-narrow-fns): New variable.
18294         (libm-narrow-types-basic): Likewise.
18295         (libm-narrow-types-ldouble-yes): Likewise.
18296         (libm-narrow-types-float128-yes): Likewise.
18297         (libm-narrow-types-float128-alias-yes): Likewise.
18298         (libm-narrow-types): Likewise.
18299         (libm-routines): Add narrowing functions.
18300         * sysdeps/i386/fpu/fenv_private.h [__x86_64__]
18301         (libc_feholdexcept_setroundf128): New macro.
18302         [__x86_64__] (libc_feupdateenv_testf128): Likewise.
18303         * sysdeps/ieee754/float128/float128_private.h: Include
18304         <math/math-narrow.h>.
18305         [libc_feholdexcept_setroundf128] (libc_feholdexcept_setroundl):
18306         Undefine and redefine.
18307         [libc_feupdateenv_testf128] (libc_feupdateenv_testl): Likewise.
18308         (libm_alias_float_ldouble): Undefine and redefine.
18309         (libm_alias_double_ldouble): Likewise.
18311         * math/Makefile [$(PERL) != no] (libm-test-incs): Remove variable.
18313 2018-02-09  Wilco Dijkstra  <wdijkstr@arm.com>
18315         * sysdeps/aarch64/fpu/fpu_control.h: Use builtins for accessing
18316         FPCR/FPSR.
18318 2018-02-09  Rical Jasan  <ricaljasan@pacific.net>
18320         * manual/creature.texi: Convert references to gcc.info to gcc.
18321         * manual/stdio.texi: Likewise.
18322         * manual/string.texi: Likewise.
18324 2018-02-07  Joseph Myers  <joseph@codesourcery.com>
18326         [BZ #17979]
18327         * posix/bits/types.h (__int_least8_t): New typedef.
18328         (__uint_least8_t): Likewise.
18329         (__int_least16_t): Likewise.
18330         (__uint_least16_t): Likewise.
18331         (__int_least32_t): Likewise.
18332         (__uint_least32_t): Likewise.
18333         (__int_least64_t): Likewise.
18334         (__uint_least64_t): Likewise.
18335         * sysdeps/generic/stdint.h (int_least8_t): Define using
18336         __int_least8_t.
18337         (int_least16_t): Define using __int_least16_t.
18338         (int_least32_t): Define using __int_least32_t.
18339         (int_least64_t): Define using __int_least64_t.
18340         (uint_least8_t): Define using __uint_least8_t.
18341         (uint_least16_t): Define using __uint_least16_t.
18342         (uint_least32_t): Define using __uint_least32_t.
18343         (uint_least64_t): Define using __uint_least64_t.
18344         * wcsmbs/uchar.h: Include <bits/types.h>.
18345         (char16_t): Define using __uint_least16_t conditional only on
18346         [!__USE_ISOCXX11].
18347         (char32_t): Define using __uint_least32_t conditional only on
18348         [!__USE_ISOCXX11].
18349         * wcsmbs/test-char-types.c: New file.
18350         * wcsmbs/Makefile (tests): Add test-char-types.
18352         * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
18353         version to 4.0.1.
18355 2018-02-07  Zack Weinberg  <zackw@panix.com>
18357         * bits/_G_config.h: Move back to sysdeps/generic/_G_config.h.
18358         Delete all contents except for definitions of _G_HAVE_MMAP and
18359         _G_HAVE_MREMAP.  Add commentary explaining those two symbols.
18360         * sysdeps/unix/sysv/linux/bits/_G_config.h: Move back to
18361         sysdeps/unix/sysv/linux/_G_config.h.  Make same content
18362         change as above.
18364         * libio/libio.h: Don't include bits/_G_config.h here.
18365         Include stddef.h with __need_wchar_t defined.  Include
18366         bits/types/__mbstate_t.h, bits/types/wint_t.h, and gconv.h.
18367         Define _IO_iconv_t here, directly.
18368         Don't define _IO_HAVE_ST_BLKSIZE.
18369         * libio/libioP.h: Include _G_config.h here.  Move include of
18370         shlib-compat.h up with rest of includes.  Simplify conditionals
18371         controlling definition of _IO_JUMPS_OFFSET.
18373         * csu/init.c: Remove always-true #if around entire file.
18374         Don't include stdio.h.  Set _IO_stdin_used to hardwired
18375         constant 0x20001, and update commentary.
18376         * include/stdio.h, sysdeps/ieee754/ldbl-opt/nldbl-compat.h:
18377         Replace all uses of _G_va_list with __gnuc_va_list.
18378         * libio/filedoalloc.c: Use #if defined _STATBUF_ST_BLKSIZE
18379         instead of #if _IO_HAVE_ST_BLKSIZE.
18380         * libio/fileops.c: Test _G_HAVE_MREMAP with #if, not #ifdef.
18381         * libio/iofdopen.c, libio/iofopen.c: Test _G_HAVE_MMAP with #if,
18382         not #ifdef.
18384         * libio/bits/libio.h: Move back to libio/libio.h and adjust
18385         multiple-include guard to match.
18386         Merge contents of libio/bits/libio-ldbl.h and include/libio.h
18387         into this file.
18388         Remove preprocessor conditionals that are always true and/or
18389         redundant to other preprocessor conditionals in the same nest.
18390         Include shlib-compat.h unconditionally.
18391         Error out if _LIBC is not defined, or if _ISOMAC is defined,
18392         or if _IO_MTSAFE_IO is defined but _IO_lock_t_defined is not
18393         defined after including stdio.h.
18394         Use __BEGIN_DECLS/__END_DECLS.
18396         * libio/bits/libio-ldbl.h, include/bits/libio.h: Delete file.
18397         * include/stdio.h, libio/iolibio.h, libio/libioP.h: Include
18398         libio.h as <libio/libio.h> rather than as <bits/libio.h>.
18400 2018-02-07  Zack Weinberg  <zackw@panix.com>
18402         * libio/bits/types/__fpos_t.h, libio/bits/types/__fpos64_t.h:
18403         New single-type headers split from _G_config.h.
18404         * libio/bits/types/cookie_io_functions_t.h
18405         * libio/bits/types/struct_FILE.h
18406         New single-type headers split from libio.h.
18408         * libio/Makefile: Install the above new headers.  Don't install
18409         libio.h, _G_config.h, bits/libio.h, bits/_G_config.h, or
18410         bits/libio-ldbl.h.
18411         * libio/_G_config.h, libio/libio.h: Delete file.
18413         * libio/bits/libio.h: Remove improper-inclusion guard.
18414         Include stdio.h and don't repeat anything that it does.
18415         Define _IO_fpos_t as __fpos_t, _IO_fpos64_t as __fpos64_t,
18416         _IO_BUFSIZ as BUFSIZ, _IO_va_list as __gnuc_va_list,
18417         __io_read_fn as cookie_read_function_t,
18418         __io_write_fn as cookie_write_function_t,
18419         __io_seek_fn as cookie_seek_function_t,
18420         __io_close_fn as cookie_close_function_t,
18421         and _IO_cookie_io_functions_t as cookie_io_functions_t.
18422         Define _STDIO_USES_IOSTREAM, __HAVE_COLUMN, and _IO_file_flags
18423         here, in the "compatibility defines" section.  Remove an #if 0
18424         block.  Use the "body" macros from bits/types/struct_FILE.h to
18425         define _IO_getc_unlocked, _IO_putc_unlocked, _IO_feof_unlocked,
18426         and _IO_ferror_unlocked.
18427         Move prototypes of __uflow and __overflow...
18429         * libio/stdio.h: ...here.  Don't include bits/libio.h.
18430         Don't define _STDIO_USES_IOSTREAM.  Get __gnuc_va_list
18431         directly from stdarg.h.  Include bits/types/__fpos_t.h,
18432         bits/types/__fpos64_t.h, bits/types/struct_FILE.h,
18433         and, when __USE_GNU, bits/types/cookie_io_functions_t.h.
18434         Use __gnuc_va_list, not _G_va_list; __fpos_t, not _G_fpos_t;
18435         __fpos64_t, not _G_fpos64_t; FILE, not struct _IO_FILE;
18436         cookie_io_functions_t, not _IO_cookie_io_functions_t;
18437         __ssize_t, not _IO_ssize_t.  Unconditionally define
18438         BUFSIZ as 8192 and EOF as (-1).
18440         * libio/bits/stdio.h: Add multiple-include guard.  Use the "body"
18441         macros from bits/types/struct_FILE.h instead of _IO_* macros
18442         from libio.h; use __gnuc_va_list instead of va_list and __ssize_t
18443         instead of _IO_ssize_t.
18444         * libio/bits/stdio2.h: Similarly.
18446         * libio/iolibio.h: Add multiple-include guard.
18447         Include bits/libio.h after stdio.h.
18448         * libio/libioP.h: Add multiple-include guard.
18449         Include stdio.h and bits/libio.h before iolibio.h.
18451         * include/bits/types/__fpos_t.h, include/bits/types/__fpos64_t.h
18452         * include/bits/types/cookie_io_functions_t.h
18453         * include/bits/types/struct_FILE.h: New wrappers.
18455         * bits/_G_config.h, sysdeps/unix/sysv/linux/_G_config.h:
18456         Get definitions of _G_fpos_t and _G_fpos64_t from
18457         bits/types/__fpos_t.h and bits/types/__fpos64_t.h
18458         respectively.  Remove improper-inclusion guards.
18460         * conform/data/stdio.h-data: Update expectations of va_list.
18461         * scripts/check-installed-headers.sh: Remove special case for
18462         libio.h and _G_config.h.
18464 2018-02-07  Joseph Myers  <joseph@codesourcery.com>
18466         [BZ #15105]
18467         [BZ #19463]
18468         * include/sys/sysmacros.h [!_ISOMAC]
18469         (__SYSMACROS_NEED_IMPLEMENTATION): Define macro.
18470         [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC]
18471         (_SYS_SYSMACROS_H_WRAPPER): Likewise.
18472         [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_major): Use
18473         libc_hidden_proto.
18474         [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_minor): Likewise.
18475         [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_makedev):
18476         Likewise.
18477         [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__SYSMACROS_DECL_TEMPL):
18478         Undefine and redefine to add use __gnu_dev_ prefix.
18479         [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__SYSMACROS_IMPL_TEMPL):
18480         Likewise.
18481         [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_major): Declare
18482         and define as hidden inline function.
18483         [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_minor):
18484         Likewise.
18485         [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_makedev):
18486         Likewise.
18487         * misc/makedev.c (OUT_OF_LINE_IMPL_TEMPL): Use __gnu_dev_ prefix.
18488         (gnu_dev_major): Use weak_alias and libc_hidden_weak.
18489         (gnu_dev_minor): Likewise.
18490         (gnu_dev_makedev): Likewise.
18491         * csu/check_fds.c (check_one_fd): Use __gnu_dev_makedev instead of
18492         makedev.
18493         * posix/wordexp.c (exec_comm_child): Likewise.
18494         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Use __gnu_dev_minor
18495         instead of minor and __gnu_dev_major instead of major.
18496         * sysdeps/unix/sysv/linux/device-nrs.h (DEV_TTY_P): Use
18497         __gnu_dev_major instead of major.
18498         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): Use
18499         __gnu_dev_major instead of gnu_dev_major and __gnu_dev_minor
18500         instead of gnu_dev_minor.
18501         * sysdeps/unix/sysv/linux/ptsname.c (MASTER_P): Likewise.
18502         (SLAVE_P): Likewise.
18503         (__ptsname_internal): Use __gnu_dev_minor instead of minor.
18504         * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Use __gnu_dev_major
18505         instead of major.
18507         [BZ #21313]
18508         * locale/weight.h (findidx): Disable -Wmaybe-uninitialized for -Os
18509         in another place.
18510         * locale/weightwc.h (findidx): Likewise.
18512 2018-02-07  Wilco Dijkstra  <wdijkstr@arm.com>
18514         * manual/probes.texi (slowlog): Delete documentation of removed probe.
18515         (slowlog_inexact): Likewise
18516         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Remove slow paths.
18517         * sysdeps/ieee754/dbl-64/ulog.h: Remove unused declarations.
18519 2018-02-07  Igor Gnatenko  <ignatenko@redhat.com>
18521         [BZ #22797]
18522         * sysdeps/unix/sysv/linux/bits/mman-shared.h (pkey_get): Add
18523         missing second underscore to parameter name.
18525 2018-02-06  Joseph Myers  <joseph@codesourcery.com>
18527         [BZ #14508]
18528         [BZ #15512]
18529         [BZ #17082]
18530         [BZ #20530]
18531         * bits/byteswap.h: Update file comment.  Do not include
18532         <bits/byteswap-16.h>.
18533         (__bswap_constant_16): Cast result to __uint16_t.  Use signed 0xff
18534         constant.
18535         (__bswap_16): Define as inline function.
18536         (__bswap_constant_32): Reformat definition.
18537         (__bswap_32): Always define as inline function, not macro, using
18538         __uint32_t.  Use __builtin_bswap32 if [__GNUC_PREREQ (4, 3)],
18539         otherwise __bswap_constant_32.
18540         (__bswap_constant_64): Reformat definition.  Do not use
18541         __extension__ here.
18542         (__bswap_64): Always define as inline function, not macro.  Use
18543         __extension__ on function definition.  Use __builtin_bswap64 if
18544         [__GNUC_PREREQ (4, 3)], otherwise __bswap_constant_64.
18545         * string/test-endian-file-scope.c: New file.
18546         * string/test-endian-sign-conversion.c: Likewise.
18547         * string/Makefile (headers): Remove bits/byteswap-16.h.
18548         (tests): Add test-endian-file-scope and
18549         test-endian-sign-conversion.
18550         (CFLAGS-test-endian-sign-conversion.c): New variable.
18551         * bits/byteswap-16.h: Remove file.
18552         * sysdeps/ia64/bits/byteswap-16.h: Likewise.
18553         * sysdeps/ia64/bits/byteswap.h: Likewise.
18554         * sysdeps/m68k/bits/byteswap.h: Likewise.
18555         * sysdeps/s390/bits/byteswap-16.h: Likewise.
18556         * sysdeps/s390/bits/byteswap.h: Likewise.
18557         * sysdeps/tile/bits/byteswap.h: Likewise.
18558         * sysdeps/x86/bits/byteswap-16.h: Likewise.
18559         * sysdeps/x86/bits/byteswap.h: Likewise.
18561         [BZ #17721]
18562         * misc/sys/cdefs.h [!__GNUC__ && (__cplusplus || (__STDC_VERSION__
18563         && __STDC_VERSION__ >= 199901L))] (__inline): Define to inline.
18564         [!__GNUC_PREREQ (2,92) && __STDC_VERSION__ && __STDC_VERSION__ >=
18565         199901L] (__restrict): Define to restrict.
18567         [BZ #19667]
18568         * string/testcopy.c: Include <support/support.h>.  Do not include
18569         <malloc.h>.  Use <support/test-driver.c>.
18570         (main): Rename to do_test.  Make static.  Use xmalloc instead of
18571         malloc.
18573         [BZ #13575]
18574         * posix/bits/posix1_lim.h: Include <bits/wordsize.h>.
18575         [!SSIZE_MAX && !(__WORDSIZE == 64 || __WORDSIZE32_SIZE_ULONG)]
18576         (SSIZE_MAX): Define to INT_MAX.
18577         * posix/test-ssize-max.c: New file.
18578         * posix/Makefile (tests): Add test-ssize-max.
18580         [BZ #19668]
18581         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c: Include
18582         <support/support.h>.  Do not include <malloc.h>.
18583         (query_auxv): Use xmalloc instead of malloc.
18585         [BZ #14553]
18586         * posix/sys/types.h (loff_t): Only define for [__USE_MISC].
18587         * sysdeps/unix/sysv/linux/sys/quota.h (dqoff): Use __loff_t
18588         instead of loff_t.
18590 2018-02-06  Florian Weimer  <fweimer@redhat.com>
18592         [BZ #18023]
18593         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
18594         Use scratch_buffer instead of extend_alloca.
18596 2018-02-06  Zack Weinberg  <zackw@panix.com>
18598         * libio/stdio.h: Don't define getc or putc as macros.
18599         * libio/bits/stdio.h (getchar, putchar): Use getc and putc,
18600         not _IO_getc and _IO_putc.
18602         * stdio-common/tstgetln.c: Don't redefine FILE, va_list, or BUFSIZ.
18603         * stdio-common/tstgetln.c: Don't redefine ssize_t.
18605 2018-02-06  Joseph Myers  <joseph@codesourcery.com>
18607         * sysdeps/gnu/netinet/tcp.h (TCP_FASTOPEN_KEY): New macro.
18608         (TCP_FASTOPEN_NO_COOKIE): Likewise.
18610         * sysdeps/unix/sysv/linux/bits/in.h (IPV6_FREEBIND): New macro.
18612         [BZ #14890]
18613         * elf/elf.h (NT_PRFPREG): New macro.
18614         (NT_S390_VXRS_LOW): Likewise.
18615         (NT_S390_VXRS_HIGH): Likewise.
18616         (NT_S390_GS_CB): Likewise.
18617         (NT_S390_GS_BC): Likewise.
18618         (NT_S390_RI_CB): Likewise.
18620         * sysdeps/unix/sysv/linux/aarch64/bits/mman.h [__USE_MISC]
18621         (MAP_SYNC): New macro.
18622         * sysdeps/unix/sysv/linux/arm/bits/mman.h [__USE_MISC] (MAP_SYNC):
18623         Likewise.
18624         * sysdeps/unix/sysv/linux/ia64/bits/mman.h [__USE_MISC]
18625         (MAP_SYNC): Likewise.
18626         * sysdeps/unix/sysv/linux/m68k/bits/mman.h [__USE_MISC]
18627         (MAP_SYNC): Likewise.
18628         * sysdeps/unix/sysv/linux/microblaze/bits/mman.h [__USE_MISC]
18629         (MAP_SYNC): Likewise.
18630         * sysdeps/unix/sysv/linux/nios2/bits/mman.h [__USE_MISC]
18631         (MAP_SYNC): Likewise.
18632         * sysdeps/unix/sysv/linux/riscv/bits/mman.h [__USE_MISC]
18633         (MAP_SYNC): Likewise.
18634         * sysdeps/unix/sysv/linux/s390/bits/mman.h [__USE_MISC]
18635         (MAP_SYNC): Likewise.
18636         * sysdeps/unix/sysv/linux/sh/bits/mman.h [__USE_MISC] (MAP_SYNC):
18637         Likewise.
18638         * sysdeps/unix/sysv/linux/x86/bits/mman.h [__USE_MISC] (MAP_SYNC):
18639         Likewise.
18641         * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_MISC]
18642         (MAP_SHARED_VALIDATE): New macro.
18643         * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
18644         (MAP_SHARED_VALIDATE): Likewise.
18646 2018-02-05  H.J. Lu  <hongjiu.lu@intel.com>
18648         * elf/dl-addr.c (determine_info): Use ADDRIDX with DT_GNU_HASH.
18649         * elf/dl-lookup.c (_dl_setup_hash): Likewise.
18650         * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
18652 2018-02-05  H.J. Lu  <hongjiu.lu@intel.com>
18654         * elf/elf.h (DT_SYMTAB_SHNDX): New.  Set to 34.
18655         (DT_NUM): Updated to 35.
18657 2018-02-05  H.J. Lu  <hongjiu.lu@intel.com>
18659         * sysdeps/i386/dl-machine.h (elf_machine_rel): Replace
18660         __builtin_expect with __glibc_likely and __glibc_unlikely.
18661         (elf_machine_rela): Likewise.
18662         (elf_machine_lazy_rel): Likewise.
18664 2018-02-05  H.J. Lu  <hongjiu.lu@intel.com>
18666         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Replace
18667         __builtin_expect with __glibc_likely and __glibc_unlikely.
18668         (elf_machine_lazy_rel): Likewise.
18670 2018-02-05  H.J. Lu  <hongjiu.lu@intel.com>
18672         [BZ #22638]
18673         * sysdeps/sparc/sparc32/start.S (_start): Check PIC instead of
18674         SHARED.
18675         * sysdeps/sparc/sparc64/start.S (_start): Likewise.
18677 2018-02-05  Andreas Schwab  <schwab@suse.de>
18679         [BZ #22761]
18680         * assert/assert-perr.c (__assert_perror_fail): Append %n to format
18681         string.
18683 2018-02-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
18685         * stdlib/test-atexit-race-common.c [!defined PTHREAD_STACK_MIN]: Do
18686         not check against PTHREAD_STACK_MIN.
18688 2018-02-02  Sean McKean  <smckean83@gmail.com>
18690         [BZ #22735]
18691         * time/time.h (clock): Reference CLOCKS_PER_SEC in comment.
18693 2018-02-02  Florian Weimer  <fweimer@redhat.com>
18695         [BZ #22753]
18696         * sysdeps/posix/preadv2.c (preadv2): Handle offset == -1.
18697         * sysdeps/posix/preadv64v2.c (preadv64v2): Likewise.
18698         * sysdeps/posix/pwritev2.c (pwritev2): Likewise.
18699         * sysdeps/posix/pwritev64v2.c (pwritev64v2): Likweise.
18700         * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Likewise.
18701         * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
18702         * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
18703         * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likweise.
18704         * manual/llio.texi (Scatter-Gather): Mention offset -1.
18705         * misc/tst-preadvwritev-common.c (do_test_without_offset): New.
18706         * misc/tst-preadvwritev2.c (do_test): Call it.
18707         * misc/tst-preadvwritev64v2.c (do_test): Likewise.
18709 2018-02-02  Siddhesh Poyarekar  <siddhesh@sourceware.org>
18711         * sysdeps/aarch64/memcmp.S: Use L() macro for labels.
18713         * benchtests/bench-memcmp.c: Print json instead of plain text.
18715         * benchtests/bench-memcmp.c (do_test): Call realloc_buf for
18716         every test run.
18718 2018-02-01  Joseph Myers  <joseph@codesourcery.com>
18720         * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
18721         version to 4.15.
18722         (s390_sthyi): New syscall.
18724         * sysdeps/generic/ldbl-classify-compat.h: New file.
18725         * sysdeps/arm/ldbl-classify-compat.h: Likewise.
18726         * sysdeps/m68k/coldfire/ldbl-classify-compat.h: Likewise.
18727         * sysdeps/microblaze/ldbl-classify-compat.h: Likewise.
18728         * sysdeps/mips/ldbl-classify-compat.h: Likewise.
18729         * sysdeps/nios2/ldbl-classify-compat.h: Likewise.
18730         * sysdeps/sh/ldbl-classify-compat.h: Likewise.
18731         * sysdeps/ieee754/dbl-64/s_finite.c: Include
18732         <ldbl-classify-compat.h>.
18733         [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
18734         * sysdeps/ieee754/dbl-64/s_isinf.c: Include
18735         <ldbl-classify-compat.h>.
18736         [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
18737         * sysdeps/ieee754/dbl-64/s_isnan.c: Include
18738         <ldbl-classify-compat.h>.
18739         [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
18740         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Include
18741         <ldbl-classify-compat.h>.
18742         [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
18743         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Include
18744         <ldbl-classify-compat.h>.
18745         [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
18746         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Include
18747         <ldbl-classify-compat.h>.
18748         [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
18749         * sysdeps/arm/math_private.h (LDBL_CLASSIFY_COMPAT): Remove macro.
18750         * sysdeps/mips/math_private.h (LDBL_CLASSIFY_COMPAT): Likewise.
18751         * sysdeps/m68k/coldfire/math_private.h: Remove file.
18752         * sysdeps/microblaze/math_private.h: Likewise.
18753         * sysdeps/nios2/math_private.h: Likewise.
18754         * sysdeps/sh/math_private.h: Likewise.
18756         * sysdeps/m68k/coldfire/fpu/math_private.h: Move to ....
18757         * sysdeps/m68k/coldfire/math_private.h: ... here.
18758         * sysdeps/m68k/coldfire/nofpu/math_private.h: Remove file.
18759         * sysdeps/tile/math_private.h: Likewise.
18760         * sysdeps/microblaze/math_private.h (libc_feholdexcept_setround):
18761         Remove macro.
18762         * sysdeps/nios2/math_private.h (libc_feholdexcept_setround):
18763         Likewise.
18765         * sysdeps/m68k/coldfire/nofpu/math_private.h (libc_fesetround):
18766         Remove macro.
18767         (libc_fetestexcept): Likewise.
18768         (libc_feupdateenv_test): Likewise.
18769         * sysdeps/microblaze/math_private.h (libc_fesetround): Likewise.
18770         (libc_fetestexcept): Likewise.
18771         (libc_feupdateenv_test): Likewise.
18772         * sysdeps/nios2/math_private.h (libc_fesetround): Likewise.
18773         (libc_fetestexcept): Likewise.
18774         (libc_feupdateenv_test): Likewise.
18775         * sysdeps/tile/math_private.h (libc_fesetround): Likewise.
18776         (libc_fetestexcept): Likewise.
18777         (libc_feupdateenv_test): Likewise.
18779         * sysdeps/generic/math_private.h
18780         [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (feholdexcept):
18781         New inline function.
18782         [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__feholdexcept):
18783         Likewise.
18785         * include/fenv.h [!_ISOMAC && !FE_TONEAREST]: Give #error.
18786         [!_ISOMAC] (FE_HAVE_ROUNDING_MODES): New macro.
18787         * sysdeps/generic/math_private.h
18788         [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (fegetenv): New
18789         inline function.
18790         [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__fegetenv):
18791         Likewise.
18792         [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (fesetenv):
18793         Likewise.
18794         [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__fesetenv):
18795         Likewise.
18796         [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (feupdateenv):
18797         Likewise.
18798         [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__feupdateenv):
18799         Likewise.
18800         [!FE_HAVE_ROUNDING_MODES] (fegetround): Likewise.
18801         [!FE_HAVE_ROUNDING_MODES] (__fegetround): Likewise.
18802         [!FE_HAVE_ROUNDING_MODES] (fesetround): Likewise.
18803         [!FE_HAVE_ROUNDING_MODES] (__fesetround): Likewise.
18804         * sysdeps/tile/math_private.h (fegetenv): Remove inline function.
18805         (__fegetenv): Likewise.
18806         (fesetenv): Likewise.
18807         (__fesetenv): Likewise.
18808         (feupdateenv): Likewise.
18809         (__feupdateenv): Likewise.
18810         (fegetround): Likewise.
18811         (__fegetround): Likewise.
18812         (fesetround): Likewise.
18813         (__fesetround): Likewise.
18815         * sysdeps/generic/math_private.h [FE_ALL_EXCEPT == 0]
18816         (feraiseexcept): New macro.
18817         [FE_ALL_EXCEPT == 0] (__feraiseexcept): Likewise.
18818         * sysdeps/m68k/coldfire/nofpu/math_private.h (feraiseexcept):
18819         Remove macro.
18820         (__feraiseexcept): Likewise.
18821         (feclearexcept): Likewise.
18822         * sysdeps/microblaze/math_private.h (feraiseexcept): Likewise.
18823         (__feraiseexcept): Likewise.
18824         (feclearexcept): Likewise.
18825         * sysdeps/nios2/math_private.h (feraiseexcept): Likewise.
18826         (__feraiseexcept): Likewise.
18827         (feclearexcept): Likewise.
18828         * sysdeps/tile/math_private.h (feraiseexcept): Likewise.
18829         (__feraiseexcept): Likewise.
18830         (feclearexcept): Likewise.
18831         (fetestexcept): Likewise.
18833         * sysdeps/m68k/coldfire/math-tests.h: New file.
18835         * sysdeps/m68k/fpu/bits/fenv.h: Move to ....
18836         * sysdeps/m68k/bits/fenv.h: ... here.
18837         [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_INEXACT): Do
18838         not define.
18839         [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_DIVBYZERO):
18840         Likewise.
18841         [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_UNDERFLOW):
18842         Likewise.
18843         [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_OVERFLOW):
18844         Likewise.
18845         [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_INVALID):
18846         Likewise.
18847         [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_ALL_EXCEPT):
18848         Define to 0.
18849         [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__]
18850         (__FE_UNDEFINED): New enum constant.
18851         [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_TOWARDZERO):
18852         Do not define.
18853         [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_DOWNWARD):
18854         Likewise.
18855         [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_UPWARD):
18856         Likewise.
18857         [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (fenv_t): Define
18858         to match generic bits/fenv.h.
18859         [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_NOMASK_ENV):
18860         Do not define.
18862         * soft-fp/double.h (union _FP_UNION_D): Do not use attribute
18863         packed on bits.
18864         * soft-fp/extended.h (union _FP_UNION_E): Likewise.
18865         * soft-fp/half.h (union _FP_UNION_H): Likewise.
18866         * soft-fp/quad.h (union _FP_UNION_Q): Likewise.
18867         * soft-fp/single.h (union _FP_UNION_S): Likewise.
18869 2018-02-01  Carlos O'Donell  <carlos@redhat.com>
18870             Ramin Seyed-Moussavi  <lordrasmus@gmail.com>
18871             Joseph Myers  <joseph@codesourcery.com>
18873         [BZ #21314]
18874         * sysdeps/ieee754/dbl-64/s_log1p.c: Include <libc-diag.h>.
18875         (__log1p): Disable -Wmaybe-uninitialized for -Os around
18876         computation using c.
18877         * sysdeps/ieee754/flt-32/s_log1pf.c: Include <libc-diag.h>.
18878         (__log1pf): Disable -Wmaybe-uninitialized for -Os around
18879         computation using c.
18881 2018-02-01  Dmitry V. Levin  <ldv@altlinux.org>
18883         * version.h (RELEASE): Set to "development".
18884         (VERSION): Set to "2.27.9000".
18885         * NEWS (2.28): New section.
18887         * version.h (RELEASE): Set to "stable".
18888         (VERSION): Set to "2.27".
18889         * include/features.h (__GLIBC_MINOR__): Set to 2.27.
18891         * NEWS: Add the list of bugs fixed in 2.27.
18893 2018-02-01  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
18895         * stdlib/test-atexit-race-common.c (do_test): Check stack size
18896         against PTHREAD_STACK_MIN.
18898 2018-02-01  Dmitry V. Levin  <ldv@altlinux.org>
18900         * manual/contrib.texi (Palmer Dabbelt, Arjun Shankar, Florian Weimer):
18901         New entries.
18902         (Rafal Luzynski, Andreas Schwab): Update.
18904 2018-02-01  Rafal Luzynski  <digitalfreak@lingonborough.com>
18906         [BZ #10871]
18907         * NEWS: List the languages which actually use the alternative
18908         months feature in this release.  Also explain that "alt_mon" and
18909         "ab_alt_mon" are optional.
18911 2018-01-31  Il'ya Malakhov  <ilmalakhov@yandex.ru>
18913         [BZ #22765]
18914         * crypt/badsalttest.c (do_test): Set cd.initialized to 0.
18916 2018-01-31  Dmitry V. Levin  <ldv@altlinux.org>
18918         * manual/install.texi (Tools for Compilation): Update the newest
18919         versions of gcc, binutils, texinfo, gawk, bison, and sed.
18920         * INSTALL: Regenerated.
18922 2018-01-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
18924         * sysdeps/pthread/allocalim.h (__libc_use_alloca): Use __glibc_likely
18925         instead of __builtin_expect.
18927 2018-01-30  Florian Weimer  <fweimer@redhat.com>
18929         * nss/bug17079.c (do_test): Use nss_files only for reading passwd
18930         data.
18931         * nss/tst-nss-getpwent.c (do_test): Likewise.
18933 2018-01-30  Rafal Luzynski  <digitalfreak@lingonborough.com>
18935         [BZ #10871]
18936         * localedata/locales/hr_HR (mon): Rename to...
18937         (alt_mon): This.
18938         (mon): Import from CLDR (genitive case).
18939         (d_t_fmt): Update the comment.
18941 2018-01-29  Andreas Schwab  <schwab@linux-m68k.org>
18943         * sysdeps/posix/fpathconf.c (__fpathconf): Verify the values of
18944         _POSIX_CHOWN_RESTRICTED, _POSIX_NO_TRUNC, _POSIX_VDISABLE.
18945         * sysdeps/posix/pathconf.c (__pathconf): Likewise.
18947 2018-01-29  Samuel Thibault  <samuel.thibault@ens-lyon.org>
18949         * mach/Versions: Fix version when __mach_host_self_ was added.
18950         * hurd/Versions: Fix version when _hurd_exec_paths was added.
18951         * sysdeps/mach/hurd/i386/ld.abilist: New file.
18952         * sysdeps/mach/hurd/i386/libBrokenLocale.abilist: New file.
18953         * sysdeps/mach/hurd/i386/libanl.abilist: New file.
18954         * sysdeps/mach/hurd/i386/libc.abilist: New file.
18955         * sysdeps/mach/hurd/i386/libcrypt.abilist: New file.
18956         * sysdeps/mach/hurd/i386/libdl.abilist: New file.
18957         * sysdeps/mach/hurd/i386/libm.abilist: New file.
18958         * sysdeps/mach/hurd/i386/libnsl.abilist: New file.
18959         * sysdeps/mach/hurd/i386/libresolv.abilist: New file.
18960         * sysdeps/mach/hurd/i386/librt.abilist: New file.
18961         * sysdeps/mach/hurd/i386/libutil.abilist: New file.
18962         * sysdeps/pthread/allocalim.h (__libc_use_alloca): Commute operands of
18963         || to respect codestyle.
18964         * libio/tst-memstream3.c (_FWRITE): Rename to FWRITE_FUNC.
18965         (do_test_bz20181): Rename accordingly.
18966         * malloc/malloc.c: Include <assert.h>.
18967         (assert): Do not define.
18968         [!defined NDEBUG] (__assert_fail): Define to __malloc_assert.
18969         * bits/fcntl.h: Fix comment for FREAD and FWRITE.
18970         * sysdeps/mach/hurd/bits/fcntl.h: Likewise.
18971         * sysdeps/mach/hurd/hp-timing.h: New file.
18972         * sysdeps/mach/hurd/i386/tlsdesc.sym: New file.
18974 2018-01-29  Darius Rad  <darius@bluespec.com>
18976         * sysdeps/unix/sysv/linux/riscv/ipc_priv.h: New file.
18978 2018-01-29  Palmer Dabbelt  <palmer@sifive.com>
18980         * sysdeps/init_array/crti.S (.section .init_array): Add
18981         PREINIT_FUNCTION when defined.
18982         * manual/math.texi: RISC-V supports _Float128 and _Float64x.
18983         * config.h.in: Regenerate.
18984         * manual/platform.texi: Add RISC-V documenation for
18985         __riscv_flush_icache.
18986         * sysdeps/riscv/__longjmp.S: New file.
18987         * sysdeps/riscv/backtrace.c: Likewise.
18988         * sysdeps/riscv/bits/endian.h: Likewise.
18989         * sysdeps/riscv/bits/setjmp.h: Likewise.
18990         * sysdeps/riscv/bits/wordsize.h: Likewise.
18991         * sysdeps/riscv/bsd-_setjmp.c: Likewise.
18992         * sysdeps/riscv/bsd-setjmp.c: Likewise.
18993         * sysdeps/riscv/dl-trampoline.S: Likewise.
18994         * sysdeps/riscv/gccframe.h: Likewise.
18995         * sysdeps/riscv/jmpbuf-offsets.h: Likewise.
18996         * sysdeps/riscv/jmpbuf-unwind.h: Likewise.
18997         * sysdeps/riscv/machine-gmon.h: Likewise.
18998         * sysdeps/riscv/memusage.h: Likewise.
18999         * sysdeps/riscv/setjmp.S: Likewise.
19000         * sysdeps/riscv/sys/asm.h: Likewise.
19001         * sysdeps/riscv/tls-macros.h: Likewise.
19002         * sysdeps/riscv/dl-tls.h: New file.
19003         * sysdeps/riscv/libc-tls.c: Likewise.
19004         * sysdeps/riscv/nptl/tcb-offsets.sym: Likewise.
19005         * sysdeps/riscv/nptl/tls.h: Likewise.
19006         * sysdeps/riscv/stackinfo.h: Likewise.
19007         * sysdeps/riscv/bits/fenv.h: New file.
19008         * sysdeps/riscv/e_sqrtl.c: Likewise.
19009         * sysdeps/riscv/fpu_control.h: Likewise.
19010         * sysdeps/riscv/math-tests.h: Likewise.
19011         * sysdeps/riscv/nofpu/Implies: Likewise.
19012         * sysdeps/riscv/sfp-machine.h: Likewise.
19013         * sysdeps/riscv/tininess.h: Likewise.
19014         * sysdeps/riscv/rv64/rvd/s_ceil.c: New file.
19015         * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
19016         * sysdeps/riscv/rv64/rvd/s_llrint.c: Likewise.
19017         * sysdeps/riscv/rv64/rvd/s_llround.c: Likewise.
19018         * sysdeps/riscv/rv64/rvd/s_lrint.c: Likewise.
19019         * sysdeps/riscv/rv64/rvd/s_lround.c: Likewise.
19020         * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
19021         * sysdeps/riscv/rv64/rvd/s_rint.c: Likewise.
19022         * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
19023         * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
19024         * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
19025         * sysdeps/riscv/rv64/rvf/s_llrintf.c: Likewise.
19026         * sysdeps/riscv/rv64/rvf/s_llroundf.c: Likewise.
19027         * sysdeps/riscv/rv64/rvf/s_lrintf.c: Likewise.
19028         * sysdeps/riscv/rv64/rvf/s_lroundf.c: Likewise.
19029         * sysdeps/riscv/rvd/e_sqrt.c: Likewise.
19030         * sysdeps/riscv/rvd/s_copysign.c: Likewise.
19031         * sysdeps/riscv/rvd/s_finite.c: Likewise.
19032         * sysdeps/riscv/rvd/s_fma.c: Likewise.
19033         * sysdeps/riscv/rvd/s_fmax.c: Likewise.
19034         * sysdeps/riscv/rvd/s_fmin.c: Likewise.
19035         * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
19036         * sysdeps/riscv/rvd/s_isinf.c: Likewise.
19037         * sysdeps/riscv/rvd/s_isnan.c: Likewise.
19038         * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
19039         * sysdeps/riscv/rvf/e_sqrtf.c: Likewise.
19040         * sysdeps/riscv/rvf/fclrexcpt.c: Likewise.
19041         * sysdeps/riscv/rvf/fegetenv.c: Likewise.
19042         * sysdeps/riscv/rvf/fegetmode.c: Likewise.
19043         * sysdeps/riscv/rvf/fegetround.c: Likewise.
19044         * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
19045         * sysdeps/riscv/rvf/fesetenv.c: Likewise.
19046         * sysdeps/riscv/rvf/fesetexcept.c: Likewise.
19047         * sysdeps/riscv/rvf/fesetmode.c: Likewise.
19048         * sysdeps/riscv/rvf/fesetround.c: Likewise.
19049         * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
19050         * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
19051         * sysdeps/riscv/rvf/fraiseexcpt.c: Likewise.
19052         * sysdeps/riscv/rvf/fsetexcptflg.c: Likewise.
19053         * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
19054         * sysdeps/riscv/rvf/get-rounding-mode.h: Likewise.
19055         * sysdeps/riscv/rvf/math_private.h: Likewise.
19056         * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
19057         * sysdeps/riscv/rvf/s_copysignf.c: Likewise.
19058         * sysdeps/riscv/rvf/s_finitef.c: Likewise.
19059         * sysdeps/riscv/rvf/s_floorf.c: Likewise.
19060         * sysdeps/riscv/rvf/s_fmaf.c: Likewise.
19061         * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
19062         * sysdeps/riscv/rvf/s_fminf.c: Likewise.
19063         * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
19064         * sysdeps/riscv/rvf/s_isinff.c: Likewise.
19065         * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
19066         * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
19067         * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
19068         * sysdeps/riscv/rvf/s_rintf.c: Likewise.
19069         * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
19070         * sysdeps/riscv/rvf/s_roundf.c: Likewise.
19071         * sysdeps/riscv/rvf/s_truncf.c: Likewise.
19072         * sysdeps/riscv/nptl/bits/pthreadtypes-arch.h: New file.
19073         * sysdeps/riscv/nptl/bits/semaphore.h: Likewise.
19074         * sysdeps/riscv/nptl/libc-lowlevellock.c: Likewise.
19075         * sysdeps/unix/sysv/linux/riscv/atomic-machine.h: Likewise.
19076         * sysdeps/riscv/nptl/nptl-sysdep.S: New file.
19077         * sysdeps/unix/sysv/linux/riscv/arch-fork.h: Likewise.
19078         * sysdeps/unix/sysv/linux/riscv/clone.S: Likewise.
19079         * sysdeps/unix/sysv/linux/riscv/profil-counter.h: Likewise.
19080         * sysdeps/unix/sysv/linux/riscv/pt-vfork.S: Likewise.
19081         * sysdeps/unix/sysv/linux/riscv/syscall.c: Likewise.
19082         * sysdeps/unix/sysv/linux/riscv/sysdep.S: Likewise.
19083         * sysdeps/unix/sysv/linux/riscv/sysdep.h: Likewise.
19084         * sysdeps/unix/sysv/linux/riscv/vfork.S: Likewise.
19085         * sysdeps/riscv/nptl/pthread-offsets.h: New file.
19086         * sysdeps/riscv/nptl/pthreaddef.h: Likewise.
19087         * sysdeps/unix/sysv/linux/riscv/bits/fcntl.h: Likewise.
19088         * sysdeps/unix/sysv/linux/riscv/bits/mman.h: Likewise.
19089         * sysdeps/unix/sysv/linux/riscv/bits/sigcontext.h: Likewise.
19090         * sysdeps/unix/sysv/linux/riscv/dl-cache.h: Likewise.
19091         * sysdeps/unix/sysv/linux/riscv/flush-icache.c: Likewise.
19092         * sysdeps/unix/sysv/linux/riscv/getcontext.S: Likewise.
19093         * sysdeps/unix/sysv/linux/riscv/init-first.c: Likewise.
19094         * sysdeps/unix/sysv/linux/riscv/libc-vdso.h: Likewise.
19095         * sysdeps/unix/sysv/linux/riscv/makecontext.c: Likewise.
19096         * sysdeps/unix/sysv/linux/riscv/readelflib.c: Likewise.
19097         * sysdeps/unix/sysv/linux/riscv/register-dump.h: Likewise.
19098         * sysdeps/unix/sysv/linux/riscv/setcontext.S: Likewise.
19099         * sysdeps/unix/sysv/linux/riscv/sigcontextinfo.h: Likewise.
19100         * sysdeps/unix/sysv/linux/riscv/swapcontext.S: Likewise.
19101         * sysdeps/unix/sysv/linux/riscv/sys/cachectl.h: Likewise.
19102         * sysdeps/unix/sysv/linux/riscv/sys/procfs.h: Likewise.
19103         * sysdeps/unix/sysv/linux/riscv/sys/ucontext.h: Likewise.
19104         * sysdeps/unix/sysv/linux/riscv/sys/user.h: Likewise.
19105         * sysdeps/unix/sysv/linux/riscv/ucontext-macros.h: Likewise.
19106         * sysdeps/unix/sysv/linux/riscv/ucontext_i.sym: Likewise.
19107         * sysdeps/unix/sysv/linux/riscv/dl-static.c: New file.
19108         * sysdeps/unix/sysv/linux/riscv/ldconfig.h: Likewise.
19109         * sysdeps/unix/sysv/linux/riscv/ldsodefs.h: Likewise.
19110         * sysdeps/riscv/nofpu/libm-test-ulps: New file.
19111         * sysdeps/riscv/nofpu/libm-test-ulps-name: Likewise.
19112         * sysdeps/riscv/rv64/rvd/libm-test-ulps: Likewise.
19113         * sysdeps/riscv/rv64/rvd/libm-test-ulps-name: Likewise.
19114         * sysdeps/unix/sysv/linux/riscv/localplt.data: Likewise.
19115         * sysdeps/unix/sysv/linux/riscv/rv64/c++-types.data: Likewise.
19116         * sysdeps/unix/sysv/linux/riscv/rv64/ld.abilist: Likewise.
19117         * sysdeps/unix/sysv/linux/riscv/rv64/libanl.abilist: Likewise.
19118         * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
19119         * sysdeps/unix/sysv/linux/riscv/rv64/libdl.abilist: Likewise.
19120         * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
19121         * sysdeps/unix/sysv/linux/riscv/rv64/libnsl.abilist: Likewise.
19122         * sysdeps/unix/sysv/linux/riscv/rv64/librt.abilist: Likewise.
19123         * sysdeps/unix/sysv/linux/riscv/rv64/libutil.abilist: Likewise.
19124         * sysdeps/riscv/Implies: New file.
19125         * sysdeps/riscv/Makefile: Likewise.
19126         * sysdeps/riscv/configure: Likewise.
19127         * sysdeps/riscv/configure.ac: Likewise.
19128         * sysdeps/riscv/nptl/Makefile: Likewise.
19129         * sysdeps/riscv/preconfigure: Likewise.
19130         * sysdeps/riscv/rv64/Implies-after: Likewise.
19131         * sysdeps/riscv/rv64/rvd/Implies: Likewise.
19132         * sysdeps/riscv/rv64/rvf/Implies: Likewise.
19133         * sysdeps/unix/sysv/linux/riscv/Implies: Likewise.
19134         * sysdeps/unix/sysv/linux/riscv/Makefile: Likewise.
19135         * sysdeps/unix/sysv/linux/riscv/Versions: Likewise.
19136         * sysdeps/unix/sysv/linux/riscv/configure: Likewise.
19137         * sysdeps/unix/sysv/linux/riscv/configure.ac: Likewise.
19138         * sysdeps/unix/sysv/linux/riscv/ldd-rewrite.sed: Likewise.
19139         * sysdeps/unix/sysv/linux/riscv/rv64/Implies: Likewise.
19140         * sysdeps/unix/sysv/linux/riscv/rv64/Makefile: Likewise.
19141         * sysdeps/unix/sysv/linux/riscv/shlib-versions: Likewise.
19142         * scripts/build-many-glibcs.py (Context): Add RISC-V targets.
19143         (Config): Likewise.
19145 2018-01-29  Florian Weimer  <fweimer@redhat.com>
19147         [BZ #22701]
19148         * include/rpcsvc/nislib.h (__nis_default_ttl): Add
19149         libnsl_hidden_proto.
19150         * include/rpcsvc/yp.h (yp_xdrall): Declare with
19151         libnsl_hidden_proto.
19152         * include/rpcsvc/ypclnt.h (yp_maplist): Likewise.
19153         * nis/Makefile (libnsl-routines): Add nss-default only for
19154         build-obsolete-nsl.
19155         * nis/nis_defaults.c (__nis_default_ttl): Add
19156         libnsl_hidden_nolink_def.
19157         * nis/rpcsvc/ypclnt.h (yp_maplist): Remove #ifdef'ed-out
19158         declaration.
19159         * nis/yp_xdr.c (xdr_ypall): Add libnsl_hidden_nolink_def.
19160         * nis/ypclnt.c (yp_maplist): Likewise.
19162 2018-01-29  Romain Naour  <romain.naour@gmail.com>  (tiny change)
19164         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
19165         (__ASSUME_COPY_FILE_RANGE) [__LINUX_KERNEL_VERSION < 0x040A00]: Undef.
19167 2018-01-29  Joseph Myers  <joseph@codesourcery.com>
19169         * scripts/build-many-glibcs.py (Context.git_checkout): Use git
19170         clean -dxfq for git updates when replacing sources.
19172         * scripts/build-many-glibcs.py (Config.build_gcc): Use
19173         --disable-libcilkrts unconditionally, not just for the final GCC
19174         build for Hurd.
19176         * scripts/build-many-glibcs.py (Context.checkout): Default Linux
19177         version to 4.15.
19179 2018-01-29  Rafal Luzynski  <digitalfreak@lingonborough.com>
19181         [BZ #10871]
19182         * localedata/locales/lt_LT (alt_mon): Import from CLDR (nominative
19183         case).
19185 2018-01-29  Rafal Luzynski  <digitalfreak@lingonborough.com>
19187         [BZ #10871]
19188         * localedata/locales/be_BY (mon): Rename to...
19189         (alt_mon): This, then synchronize with CLDR (nominative case).
19190         (abmon): Rename to...
19191         (ab_alt_mon): This, then synchronize with CLDR (nominative case).
19192         (mon): Import from CLDR (genitive case).
19193         (abmon): Likewise.
19194         * localedata/locales/be_BY@latin (mon): Rename to...
19195         (alt_mon): This.
19196         (mon): Add, proper genitive forms provided by Viktar Siarheichyk.
19198         * localedata/locales/be_BY@latin (lang_name): Reworded to
19199         "biełaruskaja mova".
19201 2018-01-29  Rafal Luzynski  <digitalfreak@lingonborough.com>
19203         [BZ #10871]
19204         * localedata/locales/el_CY (mon): Renamed to...
19205         (alt_mon): This.
19206         (mon): Import from CLDR (genitive case).
19207         * localedata/locales/el_GR: Likewise.
19209 2018-01-29  Rafal Luzynski  <digitalfreak@lingonborough.com>
19211         [BZ #10871]
19212         * localedata/locales/ru_RU (mon): Rename to...
19213         (alt_mon): This.
19214         (abmon): Rename to...
19215         (ab_alt_mon): This.
19216         (mon): Import from CLDR (genitive case).
19217         (abmon): Copy from the old content except the 5th month which is
19218         now in the genitive case, even when abbreviated.
19219         * localedata/locales/ru_UA: Likewise.
19220         * time/tst-strptime.c (day_tests): Add an actual example of
19221         a difference between %b and %Ob in Russian.
19223 2018-01-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
19225         * sysdeps/mach/hurd/xmknodat.c: Include <sys/sysmacros.h>.
19226         * sysdeps/mach/hurd/profil.c: Reuse `a' variable instead of introducing
19227         a `c' variable.
19228         * resolv/res-close.c: Include <stdlib.h>.
19229         * sysdeps/generic/not-cancel.h: Include <fcntl.h>, <unistd.h>,
19230         <sys/wait.h>, <time.h>, <sys/uio.h>.
19231         (NOT_CANCEL_H): Add inclusion guard.
19232         * sysdeps/generic/sigset-cvt-mask.h: Include <sigsetops.h>.
19233         * sysdeps/generic/sigsetops.h (__sigemptyset, __sigfillset,
19234         __sigandset, __sigorset, __sigaddset, __sigdelset): Make them really
19235         return 0.
19236         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Cast
19237         vm_address_t * to ElfW(Addr) * for dl_main parameter.
19238         * sysdeps/pthread/posix-timer.h (timer_ptr2id): Cast to timer_t
19239         instead of void *.
19240         * sysdeps/pthread/timer_create.c (timer_create): Do not use
19241         timer_ptr2id to cast struct timer_node * to void *.
19242         * scripts/build-many-glibcs.py [os == gnu] (build_gcc): Pass
19243         --disable-libcilkrts to gcc configure.
19244         (checkout_vcs): Add mig and gnumach repository URLs, run autoreconf,
19245         and make them the default for now.
19246         * sysdeps/mach/hurd/Makefile [$(subdir)==nis]: Add
19247         -DUSE_BINDINGDIR=1 to CFLAGS-ypclnt.c.
19248         * mach/Machrules (MIGFLAGS): Do not set -DMACH_IPC_COMPAT=0.
19249         * mach/mach/mach_traps.h: Drop comment about MACH_IPC_COMPAT.
19250         * sysdeps/mach/hurd/fork.c (__fork): Drop special casing
19251         MACH_IPC_COMPAT.
19252         * sysdeps/mach/hurd/dl-sysdep.c (_exit): Call LOSE and abort() if
19253         __task_terminate would ever return successfully.
19254         * sysdeps/mach/hurd/profil.c (special_profil_failure): Move variable
19255         to global scope.
19256         * sysdeps/mach/pagecopy.h (PAGE_THRESHOLD): Rename to
19257         PAGE_COPY_THRESHOLD and set to benchmarked 16384.
19258         * sysdeps/mach/hurd/getresgid.c (__getresgid): Set result from
19259         critical section to make code simpler and avoid warning.
19260         * sysdeps/mach/hurd/getresuid.c (__getresuid): Set result from
19261         critical section to make code simpler and avoid warning.
19262         * sysdeps/mach/hurd/spawni.c (__spawni): Make relpath and abspath
19263         const char * instead of char *.
19264         * hurd/hurd/lookup.h (__hurd_file_name_lookup, hurd_file_name_lookup,
19265         __hurd_file_name_split, hurd_file_name_split,
19266         __hurd_directory_name_split, hurd_directory_name_split,
19267         __hurd_file_name_lookup_retry, hurd_file_name_lookup_retry,
19268         hurd_file_name_path_lookup): Make lookup function parameter take a
19269         const char *name instead of char *name.
19270         * hurd/hurdlookup.c (__hurd_file_name_lookup, __hurd_file_name_split,
19271         __hurd_directory_name_split): Likewise.
19272         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Likewise.
19273         * hurd/path-lookup.c (hurd_file_name_path_lookup): Likewise.
19274         * sysdeps/mach/hurd/check_native.c: New file.
19275         * sysdeps/mach/hurd/check_pf.c: New file.
19276         * nscd/gai.c (__getifaddrs): Define macro to getifaddrs.
19277         (__freeifaddrs): Define macro to freeifaddrs.
19278         * sysdeps/mach/hurd/libhurduser.abilist: New file.
19279         * sysdeps/mach/libmachuser.abilist: New file.
19280         * libio/tst-memstream3.c (FWRITE): Rename to _FWRITE.
19281         (do_test_bz20181): Rename accordingly.
19282         * libio/tst-wmemstream3.c (FWRITE): Rename accordingly.
19283         * io/tst-copy_file_range.c [!defined CLONE_NEWNS]: Do not include
19284         <sys/mount.h>.
19285         * hurd/hurd.h (__hurd_fail): Always declare function, and provide inline
19286         version only if __USE_EXTERN_INLINES is defined.
19287         * hurd/hurd/fd.h (_hurd_fd_error_signal, _hurd_fd_error, __hurd_dfail,
19288         __hurd_sockfail): Likewise.
19289         (_hurd_fd_get): Always declare functions, and provide inline versions
19290         only if __USE_EXTERN_INLINES and _LIBC are defined and IS_IN(libc).
19291         * hurd/hurd/port.h (_hurd_port_init, _hurd_port_locked_get,
19292         _hurd_port_get, _hurd_port_free, _hurd_port_locked_set,
19293         _hurd_port_set): Always declare functions, and provide inline versions
19294         only if __USE_EXTERN_INLINES and _LIBC are defined and
19295         IS_IN(libc).
19296         * hurd/hurd/signal.h (_hurd_self_sigstate, _hurd_critical_section_lock,
19297         _hurd_critical_section_unlock): Likewise.
19298         * hurd/hurd/threadvar.h (__hurd_threadvar_location_from_sp,
19299         * __hurd_threadvar_location): Likewise.
19300         * hurd/hurd/userlink.h (_hurd_userlink_link, _hurd_userlink_unlink,
19301         _hurd_userlink_clear): Likewise.
19302         * mach/lock-intern.h (__spin_lock_init, __spin_lock, __mutex_lock,
19303         __mutex_unlock, __mutex_trylock): Always declare functions, and provide
19304         inline versions only if __USE_EXTERN_INLINES and _LIBC are defined.
19305         * mach/mach/mig_support.h (__mig_strncpy): Likewise.
19306         * sysdeps/generic/machine-lock.h (__spin_unlock, __spin_try_lock,
19307         __spin_lock_locked): Likewise.
19308         * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock,
19309         __spin_lock_locked): Likewise.
19310         * mach/spin-lock.c (__USE_EXTERN_INLINES): Define to 1.
19311         * hurd/Versions (libc: GLIBC_2.27): Add _hurd_fd_error_signal,
19312         _hurd_fd_error, __hurd_dfail, __hurd_sockfail, _hurd_port_locked_set,
19313         __hurd_threadvar_location_from_sp, __hurd_threadvar_location,
19314         _hurd_userlink_link, _hurd_userlink_unlink, _hurd_userlink_clear.
19315         * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_CHOWN_RESTRICTED,
19316         _POSIX_NO_TRUNC): Define to 0.
19317         * sysdeps/pthread/allocalim.h [!defined PTHREAD_STACK_MIN]: Do not
19318         check size against PTHREAD_STACK_MIN.
19319         * hurd/hurd/signal.h [__USE_EXTERN_INLINES][_LIBC][IS_IN(libc) ||
19320         IS_IN(libpthread)]: Include <sigsetops.h>.
19321         * mach/Makefile (user-interfaces): Add mach/gnumach.
19322         * sysdeps/mach/configure.ac (mach_interface_list): Add gnumach.
19323         * sysdeps/mach/configure (mach_interface_list): Regenerate.
19324         * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_VDISABLE): Set to '\0'
19325         instead of invalid -1.
19326         * sysdeps/mach/hurd/net/ethernet.h: Include <stdint.h>.
19327         * sysdeps/mach/hurd/net/if_arp.h: Include <stdint.h>.
19328         * sysdeps/mach/hurd/net/if_ppp.h: Do not include non-existing
19329         <net/ppp_defs.h>.
19331 2018-01-27  Thomas Schwinge  <tschwinge@gnu.org>
19333         * hurd/fcntl-internal.h: New file.
19335 2018-01-27  James Clarke  <jrtc27@jrtc27.com>
19337         * sysdeps/hppa/fpu/libm-test-ulps: Update.
19339         * sysdeps/alpha/fpu/libm-test-ulps: Update.
19341 2018-01-26  Andreas Schwab  <schwab@linux-m68k.org>
19343         [BZ #22701]
19344         * nis/Makefile (libnsl-inhibit-o) [$(build-obsolete-nsl) != yes]:
19345         Build only shared objects.
19347 2018-01-26  Carlos O'Donell  <carlos@redhat.com>
19349         * README: Update for hppa.
19351 2018-01-26  Patrick McGehearty  <patrick.mcgehearty@oracle.com>
19353         * sysdeps/sparc/fpu/libm-test-ulps: Update
19354         cpow, ctan, ctanh, j0, j1, y0, yn ulps.
19356 2018-01-26  Carlos O'Donell  <carlos@redhat.com>
19358         Revert:
19360         2017-12-19  H.J. Lu  <hongjiu.lu@intel.com>
19362         [BZ #22563]
19363         * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
19364         * sysdeps/i386/nptl/tls.h (tcbhead_t): Add feature_1.
19365         * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
19366         * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Rename __glibc_unused1
19367         to feature_1.
19369         2017-12-19  H.J. Lu  <hongjiu.lu@intel.com>
19371         [BZ #22563]
19372         * bits/types/__cancel_jmp_buf_tag.h: New file.
19373         * sysdeps/unix/sysv/linux/x86/bits/types/__cancel_jmp_buf_tag.h
19374         * sysdeps/unix/sysv/linux/x86/pthreaddef.h: Likewise.
19375         * sysdeps/unix/sysv/linux/x86/nptl/pthreadP.h: Likewise.
19376         * nptl/Makefile (headers): Add
19377         bits/types/__cancel_jmp_buf_tag.h.
19378         * nptl/descr.h [NEED_SAVED_MASK_IN_CANCEL_JMP_BUF]
19379         (pthread_unwind_buf): Add saved_mask to cancel_jmp_buf.
19380         * sysdeps/nptl/pthread.h: Include
19381         <bits/types/__cancel_jmp_buf_tag.h>.
19382         (__pthread_unwind_buf_t): Use struct __cancel_jmp_buf_tag with
19383         __cancel_jmp_buf.
19384         * sysdeps/unix/sysv/linux/hppa/pthread.h: Likewise.
19386 2018-01-25  Rafal Luzynski  <digitalfreak@lingonborough.com>
19388         [BZ #10871]
19389         * localedata/locales/uk_UA (mon): Renamed to...
19390         (alt_mon): This.
19391         (alt_digits): "0" removed and then renamed to...
19392         (mon): This.
19393         (date_fmt): Definition changed not to use the alternative
19394         digits hack.
19396 2018-01-25  Palmer Dabbelt  <palmer@sifive.com>
19398         * elf/cache.c (print_entry): Add FLAG_RISCV_FLOAT_ABI_SOFT and
19399         FLAG_RISCV_FLOAT_ABI_DOUBLE.
19400         * elf/elf.h (EF_RISCV_RVC): New define.
19401         (EF_RISCV_FLOAT_ABI): Likewise.
19402         (EF_RISCV_FLOAT_ABI_SOFT): Likewise.
19403         (EF_RISCV_FLOAT_ABI_SINGLE): Likewise.
19404         (EF_RISCV_FLOAT_ABI_DOUBLE): Likewise.
19405         (EF_RISCV_FLOAT_ABI_QUAD): Likewise.
19406         * sysdeps/generic/ldconfig.h (FLAG_RISCV_FLOAT_ABI_SOFT): New
19407         define.
19408         (FLAG_RISCV_FLOAT_ABI_DOUBLE): Likewise.
19410 2018-01-25  Andreas Schwab  <schwab@suse.de>
19412         * aclocal.m4 (LIBC_SLIBDIR_RTLDDIR): Consistently put arguments in
19413         single quotes.
19414         * sysdeps/gnu/configure: Regenerate.
19415         * sysdeps/unix/sysv/linux/aarch64/configure: Regenerate.
19416         * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
19417         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Regenerate.
19418         * sysdeps/unix/sysv/linux/s390/s390-64/configure: Regenerate.
19419         * sysdeps/unix/sysv/linux/sparc/sparc64/configure: Regenerate.
19420         * sysdeps/unix/sysv/linux/tile/configure: Regenerate.
19421         * sysdeps/unix/sysv/linux/x86_64/64/configure: Regenerate.
19422         * sysdeps/unix/sysv/linux/x86_64/x32/configure: Regenerate.
19424 2018-01-25  Samuel Thibault  <samuel.thibault@ens-lyon.org>
19426         * scripts/build-many-glibcs.py (checkout_vcs): Add hurd repository
19427         URL, and run autoconf, make it the default for now.
19429 2018-01-24  Joseph Myers  <joseph@codesourcery.com>
19431         * scripts/build-many-glibcs.py (Context.add_all_configs): Add
19432         soft-float ColdFire configuration.
19434         * sysdeps/unix/sysv/linux/m68k/localplt.data: Move to ....
19435         * sysdeps/unix/sysv/linux/m68k/m680x0/localplt.data: ... here.
19436         * sysdeps/unix/sysv/linux/m68k/coldfire/localplt.data: New file.
19438         * sysdeps/m68k/coldfire/nofpu/math_private.h: New file.  Based on
19439         MicroBlaze file.
19441         * sysdeps/unix/sysv/linux/m68k/coldfire/jmp_buf-macros.h: Move to
19442         ....
19443         * sysdeps/unix/sysv/linux/m68k/coldfire/fpu/jmp_buf-macros.h:
19444         ... here.
19445         * sysdeps/unix/sysv/linux/m68k/coldfire/nofpu/jmp_buf-macros.h:
19446         New file.
19448         * sysdeps/unix/sysv/linux/m68k/jmp_buf-macros.h: Move to ....
19449         * sysdeps/unix/sysv/linux/m68k/m680x0/jmp_buf-macros.h: ... here.
19450         * sysdeps/unix/sysv/linux/m68k/coldfire/jmp_buf-macros.h: New
19451         file.
19453 2018-01-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
19455         [BZ #22742]
19456         * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (__glibc_reserved1):
19457         Rename to __reserved and add comment.
19458         * sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym (__glibc_reserved1):
19459         Rename to __reserved.
19461 2018-01-24  Joseph Myers  <joseph@codesourcery.com>
19463         * scripts/build-many-glibcs.py (Context.add_all_configs): Add
19464         i686-gnu configurations.
19465         (Context.run_builds): Include mig, gnumach and hurd in components
19466         considered.
19467         (Context.checkout): Add mig, gnumach and hurd to components.
19468         (Context.checkout_tar): Add URL mappings for mig, gnumach and
19469         hurd.
19470         (Context.bot_cycle): Check for changes to mig, gnumach and hurd.
19471         (Config.build): Install gnumach headers, build mig and install
19472         hurd headers for 'gnu' OS.
19473         (Config.install_gnumach_headers): New function.
19474         (Config.install_hurd_headers): Likewise.
19475         (Glibc.build_glibc): Do not use /usr for 'gnu' OS.  Specifiy MIG
19476         when building for 'gnu' OS.
19478 2018-01-23  Tobias Klauser  <tklauser@distanz.ch>
19480         * manual/tunables.texi (Hardware Capability Tunables): Fix
19481         spelling.
19483 2018-01-22  Rical Jasan  <ricaljasan@pacific.net>
19485         * manual/locale.texi (ALTMON_1, ALTMON_2, ALTMON_3, ALTMON_4)
19486         (ALTMON_5, ALTMON_6, ALTMON_7, ALTMON_8, ALTMON_9, ALTMON_10)
19487         (ALTMON_11, ALTMON_12): Improve documentation.
19488         * manual/time.texi (strftime): Likewise.
19490 2018-01-22  Rafal Luzynski  <digitalfreak@lingonborough.com>
19492         [BZ #10871]
19493         * localedata/locales/pl_PL: Alternative month names added,
19494         primary month names are genitive now.
19495         * time/tst-strptime.c (day_tests): Actually use a genitive case
19496         of a month name in Polish language.
19498 2018-01-22  Rafal Luzynski  <digitalfreak@lingonborough.com>
19500         [BZ #10871]
19501         * manual/locale.texi: Document ALTMON_1..12 constants for
19502         nl_langinfo.  Specify when to use ALTMON instead of MON.
19503         * manual/time.texi (strftime, strptime): Document GNU extension
19504         permitting O modifier with %B and %b.  Specify when to use
19505         %OB instead of %B.
19507 2018-01-22  Rafal Luzynski  <digitalfreak@lingonborough.com>
19509         [BZ #10871]
19510         * locale/C-time.c (_nl_C_LC_TIME): Add abbreviated alternative month
19511         names, define them as the same as abbreviated month names explicitly.
19512         * locale/categories.def (LC_TIME): Add ab_alt_mon and wide-ab_alt_mon.
19513         * locale/langinfo.h: (_NL_ABALTMON_1, _NL_ABALTMON_2, _NL_ABALTMON_3,
19514         _NL_ABALTMON_4, _NL_ABALTMON_5, _NL_ABALTMON_6, _NL_ABALTMON_7,
19515         _NL_ABALTMON_8, _NL_ABALTMON_9, _NL_ABALTMON_10, _NL_ABALTMON_11,
19516         _NL_ABALTMON_12, _NL_WABALTMON_1, _NL_WABALTMON_2, _NL_WABALTMON_3,
19517         _NL_WABALTMON_4, _NL_WABALTMON_5, _NL_WABALTMON_6, _NL_WABALTMON_7,
19518         _NL_WABALTMON_8, _NL_WABALTMON_9, _NL_WABALTMON_10, _NL_WABALTMON_11,
19519         _NL_WABALTMON_12): New enum constants.
19520         * locale/programs/ld-time.c (struct locale_time_t): Add ab_alt_mon,
19521         wab_alt_mon, and ab_alt_mon_defined members.
19522         (time_output): Output ab_alt_mon and wab_alt_mon members.
19523         (time_read): Read them, initialize them as copies of abmon and wabmon
19524         respectively if they are missing, initialize ab_alt_mon_defined.
19525         * locale/programs/locfile-kw.gperf (ab_alt_mon): Define.
19526         * locale/programs/locfile-kw.h: Regenerate.
19527         * locale/programs/locfile-token.h (tok_ab_alt_mon): New enum constant.
19528         * time/Makefile [$(run-built-tests) = yes] (LOCALES): Add es_ES.UTF-8
19529         and ru_RU.UTF-8.
19530         * time/strftime_l.c (a_altmonth, aam_len): New macros.
19531         [!COMPILE_WIDE] (ABALTMON_1): New macro.
19532         (__strftime_internal): Handle %Ob and %Oh formats.
19533         * time/strptime_l.c [_LIBC] (ab_alt_month_name): New macro.
19534         (__strptime_internal): Handle %Ob and %Oh formats.
19535         * time/tst-strptime.c (day_tests): Add more tests to parse different
19536         forms of month names including the new %Ob format specifier.
19538 2018-01-22  Rafal Luzynski  <digitalfreak@lingonborough.com>
19540         [BZ #10871]
19541         * locale/C-time.c (_nl_C_LC_TIME): Add alternative month names,
19542         define them as the same as primary full month names explicitly.
19543         * locale/categories.def (LC_TIME): Add alt_mon and wide-alt_mon.
19544         * locale/langinfo.h (__ALTMON_1, __ALTMON_2, __ALTMON_3, __ALTMON_4,
19545         __ALTMON_5, __ALTMON_6, __ALTMON_7, __ALTMON_8, __ALTMON_9, __ALTMON_10,
19546         __ALTMON_11, __ALTMON_12, _NL_WALTMON_1, _NL_WALTMON_2, _NL_WALTMON_3,
19547         _NL_WALTMON_4, _NL_WALTMON_5, _NL_WALTMON_6, _NL_WALTMON_7,
19548         _NL_WALTMON_8, _NL_WALTMON_9, _NL_WALTMON_10, _NL_WALTMON_11,
19549         _NL_WALTMON_12): New enum constants.
19550         [__USE_GNU] (ALTMON_1, ALTMON_2, ALTMON_3, ALTMON_4, ALTMON_5, ALTMON_6,
19551         ALTMON_7, ALTMON_8, ALTMON_9, ALTMON_10, ALTMON_11, ALTMON_12): New
19552         macros.
19553         * locale/programs/ld-time.c (struct locale_time_t): Add alt_mon,
19554         walt_mon, and alt_mon_defined members.
19555         (time_output): Output alt_mon and walt_mon members.
19556         (time_read): Read them, initialize them as copies of mon and wmon
19557         respectively if they are missing, initialize alt_mon_defined.
19558         * locale/programs/locfile-kw.gperf (alt_mon): Define.
19559         * locale/programs/locfile-kw.h: Regenerate.
19560         * locale/programs/locfile-token.h (tok_alt_mon): New enum constant.
19561         * localedata/tst-langinfo.c (map): Add tests for the new constants
19562         ALTMON_1 .. ALTMON_12.
19563         * time/Makefile [$(run-built-tests) = yes] (LOCALES): Add fr_FR.UTF-8
19564         and pl_PL.UTF-8.
19565         * time/strftime_l.c (f_altmonth): New macro.
19566         (__strftime_internal): Handle %OB format.
19567         * time/strptime_l.c [_LIBC] (alt_month_name): New macro.
19568         (__strptime_internal): Handle %OB format.
19569         * time/tst-strptime.c (day_tests): Add tests to parse different forms
19570         of month names including the new %OB format specifier.
19572 2018-01-19  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
19574         [BZ #22685]
19575         * sysdeps/powerpc/powerpc32/sysdep.h (ABORT_TRANSACTION_IMPL): Renamed
19576         from ABORT_TRANSACTION.
19577         (ABORT_TRANSACTION): Redirect to ABORT_TRANSACTION_IMPL.
19578         * sysdeps/powerpc/powerpc64/sysdep.h (ABORT_TRANSACTION,
19579         ABORT_TRANSACTION_IMPL): Likewise.
19580         * sysdeps/unix/sysv/linux/powerpc/not-errno.h: New file.  Reuse
19581         Linux code, but remove the code that aborts transactions.
19583 2018-01-19  Samuel Thibault  <samuel.thibault@ens-lyon.org>
19585         * sysdeps/generic/netinet/if_ether.h: Include <stdint.h>.
19587 2018-01-19  Rafal Luzynski  <digitalfreak@lingonborough.com>
19589         * localedata/locales/gu_IN (LC_IDENTIFICATION): Fix an obvious typo
19590         in date: "2004-14-09" should be "2004-09-14".
19591         * localedata/locales/lo_LA: Fix an obvious typo in date in the header:
19592         "2003-15-09" should be "2003-09-15".
19594 2018-01-18  Arjun Shankar  <arjun@redhat.com>
19596         [BZ #22343]
19597         [BZ #22774]
19598         CVE-2018-6485
19599         CVE-2018-6551
19600         * malloc/malloc.c (checked_request2size): call REQUEST_OUT_OF_RANGE
19601         after padding.
19602         (_int_memalign): check for integer overflow before calling
19603         _int_malloc.
19604         * malloc/tst-malloc-too-large.c: New test.
19605         * malloc/Makefile: Add tst-malloc-too-large.
19607 2018-01-18  Rafal Luzynski  <digitalfreak@lingonborough.com>
19609         * localedata/locales/bho_NP (LC_IDENTIFICATION): Fix an obvious typo
19610         in date: "2017-24-07" should be "2017-07-24".
19611         * localedata/locales/mai_IN: Likewise.
19612         * localedata/locales/mai_NP: Likewise.
19614 2018-01-17  Dmitry V. Levin  <ldv@altlinux.org>
19616         * po/ru.po: Update translations.
19618 2018-01-17  Joseph Myers  <joseph@codesourcery.com>
19620         [BZ #22719]
19621         * sysdeps/hppa/backtrace.c: New file.
19623 2018-01-17  H.J. Lu  <hongjiu.lu@intel.com>
19625         [BZ #22715]
19626         * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_profile): Properly
19627         align La_x86_64_retval to VEC_SIZE.
19629 2018-01-16  Joseph Myers  <joseph@codesourcery.com>
19631         * sysdeps/x86_64/backtrace.c: Include <gnu/lib-names.h>.
19632         (init): Use LIBGCC_S_SO not hardcoded "libgcc_s.so.1".
19634 2018-01-16  Florian Weimer  <fweimer@redhat.com>
19636         * nptl/Makefile [$(have-cxx-thread_local)] (tests-unsupported):
19637         Move tst-thread-exit-clobber ...
19638         [$(CXX)] (tests-unsupported): ... to here.
19640 2018-01-16  Szabolcs Nagy  <szabolcs.nagy@arm.com>
19642         * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SHA3): Define.
19643         (HWCAP_SM3, HWCAP_SM4, HWCAP_ASIMDDP, HWCAP_SHA512, HWCAP_SVE): Define.
19644         * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c
19645         (_dl_aarch64_cap_flags): Update.
19646         (_DL_HWCAP_COUNT): Update.
19648 2018-01-16  Szabolcs Nagy  <szabolcs.nagy@arm.com>
19650         * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h
19651         (_DL_HWCAP_LAST): Remove.
19652         (_DL_HWCAP_COUNT): Move to ...
19653         * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c
19654         (_DL_HWCAP_COUNT): ... here.
19656 2018-01-16  Florian Weimer  <fweimer@redhat.com>
19658         * nptl/Makefile (CFLAGS-tst-minstack-throw.o): Compile in C++11
19659         mode with GNU extensions.
19661 2018-01-15  Alan Hayward  <alan.hayward@arm.com>
19663         * elf/elf.h (NT_ARM_SVE): Define.
19665 2018-01-15  Florian Weimer  <fweimer@redhat.com>
19667         [BZ #22636]
19668         * nptl/tst-minstack-throw.cc: New file.
19669         * nptl/Makefile (tests): Add tst-minstack-throw.
19670         (LDLIBS-tst-minstack-throw): Link with libstdc++.
19671         [!CXX] (tests-unsupported): Add tst-minstack-throw.
19673 2018-01-15  Joseph Myers  <joseph@codesourcery.com>
19675         * scripts/build-many-glibcs.py (Context.checkout): Default
19676         binutils version to 2.30 branch, MPFR version to 4.0.0 and MPC
19677         version to 1.1.0.
19679 2018-01-13  Carlos O'Donell  <carlos@redhat.com>
19681         [BZ #22707]
19682         * elf/elf.h (DF_1_STUB): Define.
19683         (DF_1_PIE): Define.
19685 2018-01-12  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
19687         [BZ #22697]
19688         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
19689         Do not add 0.5 to integer or out-of-range arguments.
19691 2018-01-12  Dmitry V. Levin  <ldv@altlinux.org>
19693         * po/bg.po: Update translations.
19694         * po/cs.po: Likewise.
19695         * po/de.po: Likewise.
19696         * po/ko.po: Likewise.
19697         * po/pl.po: Likewise.
19698         * po/sv.po: Likewise.
19699         * po/uk.po: Likewise.
19700         * po/vi.po: Likewise.
19702 2018-01-12  Szabolcs Nagy  <szabolcs.nagy@arm.com>
19704         * aarch64/start.S (_start): Use __wrap_main.
19705         (__wrap_main): New local symbol.
19707 2018-01-12  Dmitry V. Levin  <ldv@altlinux.org>
19709         [BZ #22679]
19710         CVE-2018-1000001
19711         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Fall back to
19712         generic_getcwd if the path returned by getcwd syscall is not absolute.
19713         * io/tst-getcwd-abspath.c: New test.
19714         * io/Makefile (tests): Add tst-getcwd-abspath.
19716 2018-01-12  Istvan Kurucsai  <pistukem@gmail.com>
19718         * malloc/malloc.c (malloc_consolidate): Add size check.
19720 2018-01-12  Florian Weimer  <fweimer@redhat.com>
19722         * support/write_message.c (write_message): Preserve errno.
19723         * support/check.c (print_failure): Likewise.
19724         * support/support_test_verify_impl.c (support_test_verify_impl):
19725         Likewise.
19726         * support/support_test_compare_failure.c
19727         (support_test_compare_failure): Likewise.
19729 2018-01-12  Florian Weimer  <fweimer@redhat.com>
19731         [BZ #22701]
19732         * nis/Makefile (install-lib-ldscripts, $(inst_libdir)/libnsl.so):
19733         Prevent installation of libnsl.so.
19734         (libnsl-inhibit-o): Do not build (or install) static libraries.
19736 2018-01-12  Egmont Koblinger  <egmont@gmail.com>
19738         [BZ #22657]
19739         * localedata/locales/hu_HU (d_t_fmt): Avoid a leading space
19740         before the day number which may produce a double space.
19741         (date_fmt): Likewise.
19743 2018-01-12  Joseph Myers  <joseph@codesourcery.com>
19745         * sysdeps/s390/fpu/feholdexcpt.c (__feholdexcept): Call __fegetenv
19746         instead of fegetenv.
19748 2018-01-11  Joseph Myers  <joseph@codesourcery.com>
19750         [BZ #22702]
19751         * sysdeps/generic/math_private.h (libc_feresetround_noex): Update
19752         comment to say exceptions are discarded.
19753         (libc_feholdsetround_noex_ctx): Use __feholdexcept instead of
19754         __fegetenv.
19755         (SET_RESTORE_ROUND_NOEX): Update comment to say non-stop mode must
19756         be enabled.
19758 2018-01-11  Florian Weimer  <fweimer@redhat.com>
19760         * sysdeps/gnu/unwind-resume.c (__libgcc_s_init): Update comment
19761         and error message.
19763 2018-01-11  Florian Weimer  <fweimer@redhat.com>
19765         [BZ #22636]
19766         * nptl/Makefile (tests): Add tst-minstack-cancel, tst-minstack-exit.
19767         * nptl/tst-minstack-cancel.c, nptl/tst-minstack-exit.c: New files.
19769 2018-01-10  Joseph Myers  <joseph@codesourcery.com>
19771         [BZ #22693]
19772         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Handle
19773         negative arguments in test for NaN or infinity argument.
19775 2018-01-10  Dmitry V. Levin  <ldv@altlinux.org>
19777         * po/libc.pot: Regenerate.
19779 2018-01-10  Florian Weimer  <fweimer@redhat.com>
19781         [BZ #22636]
19782         * sysdeps/nptl/unwind-forcedunwind.c (pthread_cancel_init): Open
19783         libgcc.so with RTLD_NOW, to avoid lazy binding during unwind.
19785 2018-01-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
19787         * hurd/hurd/fd.h: Include <fcntl.h>
19788         (__hurd_at_flags): New function.
19789         * hurd/lookup-at.c (__file_name_lookup_at): Replace flag computation
19790         with call to __hurd_at_flags.
19791         * include/unistd.h (__faccessat, __faccessat_noerrno): Add declaration.
19792         * sysdeps/mach/hurd/access.c (access_common): Move implementation to
19793         __faccessat
19794         (hurd_fail_seterrno, hurd_fail_noerrno): Move to sysdeps/mach/hurd/faccessat.c.
19795         (__access_noerrno): Use __faccessat_common instead of access_common.
19796         (__access): Likewise.
19797         * sysdeps/mach/hurd/euidaccess.c (__euidaccess): Replace implementation
19798         with a call to __faccessat.
19799         * sysdeps/mach/hurd/faccessat.c (faccessat): Rename into...
19800         (__faccessat_common): ... this. Move implementation of __access into it when
19801         AT_FLAGS does not contain AT_EACCESS. Make it call __hurd_at_flags, add
19802         reauthenticate_cwdir_at helper to implement AT mechanism.
19803         (__faccessat_noerrno): New function, just calls __faccessat_common.
19804         (__faccessat): New function, just calls __faccessat_common.
19805         (faccessat): Define weak alias.
19807 2018-01-10  Joseph Myers  <joseph@codesourcery.com>
19809         [BZ #22691]
19810         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
19811         (CFLAGS-s_fmaxmagl.c): New variable.
19812         [$(subdir) = math] (CFLAGS-s_fminmagl.c: Likewise.
19814         [BZ #22690]
19815         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c (__lrintl): Use unsigned
19816         long int for arguments of possibly overflowing addition or
19817         subtraction.
19818         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c (__lroundl): Likewise.
19820 2018-01-09  Joseph Myers  <joseph@codesourcery.com>
19822         [BZ #22688]
19823         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
19824         (CFLAGS-e_remainderl.c): New variable.
19826         [BZ #22687]
19827         * sysdeps/powerpc/nofpu/Makefile (CFLAGS-s_cacosl.c): New
19828         variable.
19829         (CFLAGS-s_cacoshl.c): Likewise.
19830         (CFLAGS-s_casinhl.c): Likewise.
19831         (CFLAGS-s_catanl.c): Likewise.
19832         (CFLAGS-s_catanhl.c): Likewise.
19833         (CFLAGS-s_cexpl.c): Likewise.
19834         (CFLAGS-s_ccoshl.c): Add -fsignaling-nans.
19835         (CFLAGS-s_csinhl.c): Likewise.
19836         (CFLAGS-s_clogl.c): Likewise.
19837         (CFLAGS-s_clog10l.c): Likewise.
19838         (CFLAGS-s_csinl.c): Likewise.
19839         (CFLAGS-s_csqrtl.c): Likewise.
19841 2017-01-09  Emilio Pozuelo Monfort  <pochu27@gmail.com>
19842 2017-01-09  Svante Signell  <svante.signell@gmail.com>
19844         * hurd/hurdexec.c (_hurd_exec): Deprecate function.
19845         (_hurd_exec_paths): New function.
19846         * hurd/hurd.h (_hurd_exec): Deprecate function.
19847         (_hurd_exec_paths): Declare function.
19848         * hurd/Versions: Export _hurd_exec_paths.
19849         * sysdeps/mach/hurd/execve.c: Include <stdlib.h> and <stdio.h>
19850         (__execve): Use __getcwd to build absolute path, and use
19851         _hurd_exec_paths instead of _hurd_exec.
19852         * sysdeps/mach/hurd/spawni.c: Likewise.
19853         * sysdeps/mach/hurd/fexecve.c: Use _hurd_exec_paths instead of
19854         _hurd_exec.
19856 2018-01-08  Dmitry V. Levin  <ldv@altlinux.org>
19858         * sysdeps/unix/sysv/linux/tst-ttyname.c (do_in_chroot_1): Skip the
19859         test instead of failing in case of ENOENT returned by posix_openpt.
19861 2018-01-08  Florian Weimer  <fweimer@redhat.com>
19863         resolv: Support binary labels in test framework.
19864         * support/resolv_test.c (struct to_be_freed): Remove.
19865         (struct compressed_name): New.
19866         (allocate_compressed_name, ascii_tolower)
19867         (compare_compressed_name): New functions.
19868         (struct resolv_response_builder): Update type of
19869         compression_offsets for use with tsearch.  Rempve to_be_freed.
19870         (response_push_pointer_to_free): Remove function.
19871         (resolv_response_add_name): Rewrite using struct compressed_name
19872         and tsearch instead of hsearch_r.
19873         (response_builder_allocate): Remove initialization of
19874         compression_offsets.
19875         (response_builder_free): Update for removal of to_be_freed.  Use
19876         tdestroy instead of hdestroy_r.
19877         * resolv/Makefile (tests): Add tst-resolv-binary.
19878         (tst-resolv-binary): Link with -lresolv -lpthread.
19880 2018-01-08  Florian Weimer  <fweimer@redhat.com>
19882         * support/check.h (TEST_COMPARE): Allow sign mismatch at compile
19883         time.  Pass positive flag instead of negative flag to
19884         support_test_compare_failure.
19885         (support_test_compare_failure): Change negative parameter to
19886         positive.
19887         * support/support_test_compare_failure.c (report)
19888         (support_test_compare_failure): Likewise.
19889         * support/tst-test_compare.c (return_ssize_t, return_int): New.
19890         (do_test): Check int/size_t, ssize_t/size_t comparisons.
19892 2018-01-08  Szabolcs Nagy  <szabolcs.nagy@arm.com>
19894         [BZ #22637]
19895         * nptl/descr.h (stackblock, stackblock_size): Update comments.
19896         * nptl/allocatestack.c (allocate_stack): Add guardsize to stacksize.
19897         * nptl/nptl-init.c (__pthread_get_minstack): Remove guardsize from
19898         stacksize.
19899         * nptl/pthread_getattr_np.c (pthread_getattr_np): Likewise.
19901 2018-01-08  H.J. Lu  <hongjiu.lu@intel.com>
19903         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
19904         Add s_sincosf-sse2 and s_sincosf-fma.
19905         (CFLAGS-s_sincosf-fma.c): New.
19906         * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: New file.
19907         * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.S: Likewise.
19908         * sysdeps/x86_64/fpu/multiarch/s_sincosf.c: Likewise.
19909         * sysdeps/x86_64/fpu/s_sincosf.S: Don't add alias if
19910         __sincosf is defined.
19912 2018-01-08  Florian Weimer  <fweimer@redhat.com>
19914         * nptl/tst-thread-exit-clobber.cc: New file.
19915         * nptl/Makefile (CFLAGS-tst-thread-exit-clobber.o): Compile in
19916         C++11 mode.
19917         (LDLIBS-tst-thread-exit-clobber): Link with libstdc++.
19918         (tests): Add tst-thread-exit-clobber.
19919         [!CXX] (tests-unsupported): Add tst-thread-exit-clobber.
19921 2018-01-08  Florian Weimer  <fweimer@redhat.com>
19923         * support/check.h (support_static_assert): Define.
19924         (TEST_COMPARE): Use it.
19926 2018-01-07  Aurelien Jarno  <aurelien@aurel32.net>
19928         * sysdeps/unix/sysv/linux/getrlimit64 (getrlimit64)
19929         [!__RLIM_T_MATCHES_RLIM64_T]
19930         [!SHLIB_COMPAT (libc, GLIBC_2_1, GLIBC_2_2)]: Define as weak alias of
19931         __getrlimit64. Add libc_hidden_weak.
19933 2018-01-06  Palmer Dabbelt  <palmer@sifive.com>
19935         * elf/elf.h (R_RISCV_NONE): New define.
19936         (R_RISCV_32): Likewise.
19937         (R_RISCV_64): Likewise.
19938         (R_RISCV_RELATIVE): Likewise.
19939         (R_RISCV_COPY): Likewise.
19940         (R_RISCV_JUMP_SLOT): Likewise.
19941         (R_RISCV_TLS_DTPMOD32): Likewise.
19942         (R_RISCV_TLS_DTPMOD64): Likewise.
19943         (R_RISCV_TLS_DTPREL32): Likewise.
19944         (R_RISCV_TLS_DTPREL64): Likewise.
19945         (R_RISCV_TLS_TPREL32): Likewise.
19946         (R_RISCV_TLS_TPREL64): Likewise.
19947         * Makerules (make-link-multidir): Make directories before linking into
19948         them.
19949         * sysdeps/unix/sysv/linux/dl-vdso.h (VDSO_NAME_LINUX_4_15): New
19950         define.
19951         (VDSO_HASH_LINUX_4_15): Likewise.
19952         * scripts/build-many-glibcs.py (class Glibc): Strip shared objects
19953         in subdirectories of lib.
19954         * nptl/Makefile (/librt.so): Always depend on
19955         "$(shared-thread-library)".
19957 2018-01-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
19959         * sysdeps/mach/hurd/i386/jmp_buf-macros.h: New file.
19960         * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic) [NO_RTLD_HIDDEN]: Call
19961         JUMPTARGET (___tls_get_addr) instead of HIDDEN_JUMPTARGET
19962         (___tls_get_addr).
19963         * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Likewise.
19964         * sysdeps/i386/fpu/libm-test-ulps: Regenerated for GCC 7 with
19965         "-O2 -march=i686".
19966         * posix/tst-glob_symlinks.c [!PATH_MAX]: Define PATH_MAX macro.
19967         * sysdeps/gnu/glob64.c (__glob): Define macro instead of glob macro.
19968         (__glob64): Define GLIBC_2_27 versioned symbol instead of glob64.
19969         * sysdeps/gnu/glob-lstat-compat.c: New file.
19970         * sysdeps/gnu/glob64-lstat-compat.c: New file.
19971         * sysdeps/posix/pwritev_common.c: Add PROT_READ to __mmap prot.
19973 2018-01-05  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
19975         * sysdeps/powerpc/powerpc64/dl-machine.c (_dl_reloc_overflow):
19976         Reserve 16 chars to reloc_addr before calling _itoa_word.
19978 2018-01-05  Aurelien Jarno  <aurelien@aurel32.net>
19980         [BZ #22678]
19981         * sysdeps/unix/sysv/linux/prlimit.c (prlimit): Translate
19982         old_rlimit from RLIM64_INFINITY to RLIM_INFINITY.
19984         * sysdeps/unix/sysv/linux/tst-rlimit-infinity.c: New file.
19985         * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-rlimit-infinity.
19987         * resource/tst-getrlimit.c: Add copyright header.
19989 2018-01-05  Aurelien Jarno  <aurelien@aurel32.net>
19990             Adhemerval Zanella  <adhemerval.zanella@linaro.org>
19992         * sysdeps/unix/sysv/linux/getrlimit64.c [USE_VERSIONED_RLIMIT]: Do not
19993         define getrlimit and getrlimit64 as weak aliases of __getrlimit64.
19994         Define __GI_getrlimit64 as weak alias of __getrlimit64.
19995         [__RLIM_T_MATCHES_RLIM64_T]: Do not redefine SHLIB_COMPAT, use #elif
19996         instead.
19997         * sysdeps/unix/sysv/linux/setrlimit64.c [USE_VERSIONED_RLIMIT]: Do not
19998         define setrlimit and setrlimit64 as weak aliases of __setrlimit64.
19999         * sysdeps/unix/sysv/linux/alpha/bits/resource.h (RLIM_INFINITY,
20000         RLIM64_INFINITY): Fix values to match the kernel ones.
20001         * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: Define
20002         USE_VERSIONED_RLIMIT.  Rename __getrlimit64 into __old_getrlimit64 and
20003         provide it as getrlimit@@GLIBC_2_0 and getrlimit64@@GLIBC_2_1.  Add a
20004         __getrlimit64 function and provide it as getrlimit@@GLIBC_2_27 and
20005         getrlimit64@@GLIBC_2_27.
20006         * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Ditto with setrlimit
20007         and setrlimit64.
20008         * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.27): Add
20009         getrlimit, setrlimit, getrlimit64 and setrlimit64.
20010         * sysdeps/unix/sysv/linux/alpha/Versions (libc): Add getrlimit,
20011         setrlimit, getrlimit64 and setrlimit64.
20013 2018-01-05  Aurelien Jarno  <aurelien@aurel32.net>
20015         [BZ #22648]
20016         * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: New file.
20017         * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Ditto.
20019 2018-01-04  Joseph Myers  <joseph@codesourcery.com>
20021         * malloc/tst-malloc-tcache-leak.c (TIMEOUT): Define to 50.
20022         * posix/tst-glob-tilde.c (TIMEOUT): Define to 200.
20023         * resolv/tst-resolv-res_ninit.c (TIMEOUT): Define to 50.
20025 2018-01-03  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
20027         [BZ #15479]
20028         [BZ #22666]
20029         * sysdeps/alpha/fpu/s_trunc.c: Remove file.
20030         * sysdeps/alpha/fpu/s_truncf.c: Likewise.
20032         [BZ #15479]
20033         [BZ #22665]
20034         * sysdeps/alpha/fpu/s_ceil.c: Remove file.
20035         * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
20036         * sysdeps/alpha/fpu/s_floor.c: Likewise.
20037         * sysdeps/alpha/fpu/s_floorf.c: Likewise.
20039 2018-01-04  Florian Weimer  <fweimer@redhat.com>
20041         [BZ #22667]
20042         * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext):
20043         Align the stack before calling exit.
20044         * stdlib/tst-makecontext-align.c: New file.
20045         * stdlib/Makefile (tests): Add tst-makecontext-align.
20047 2018-01-04  Florian Weimer  <fweimer@redhat.com>
20049         Add support for calling dlvsym from libc.so.
20050         * include/dlfcn.h (__libc_dlvsym): Declare.
20051         * elf/Makefile (tests-static-internal): Add
20052         tst-libc_dlvsym-static.
20053         (tests-internal): Add tst-libc_dlvsym.
20054         (modules-names): Add tst-libc_dlvsym-dso.
20055         (tst-libc_dlvsym, tst-libc_dlvsym-static): Link with libdl.
20056         (tst-libc_dlvsym-dso.so): Link with libdl, libsupport.
20057         (tst-libc_dlvsym.out, tst-libc_dlvsym-static.out): The shared
20058         object tst-libc_dlvsym-dso.so needs to be built before running
20059         these tests.
20060         (tst-libc_dlvsym-static-ENV): Set LD_LIBRARY_PATH.
20061         * elf/Versions: Export __libc_dlvsym.
20062         * elf/dl-libc.c (struct do_dlvsym_args): New.
20063         (do_dlvsym, __libc_dlvsym): New functions.
20064         (struct dl_open_hook, _dl_open_hook): Add dlvsym member.
20065         (_dl_open_hook2): New variable.
20066         (__libc_register_dl_open_hook): Set it.
20067         * elf/tst-libc_dlvsym-dso.c: New file.
20068         * elf/tst-libc_dlvsym-static.c: Likewise.
20069         * elf/tst-libc_dlvsym.c: Likewise.
20070         * elf/tst-libc_dlvsym.h: Likewise.
20072 2018-01-03  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20074         * support/support_enter_mount_namespace.c [!CLONE_NEWNS]: Do not
20075         include <sys/mount.h>.
20077 2018-01-02  Wilco Dijkstra  <wdijkstr@arm.com>
20079         * math/math.h (math_errhandling): Set to 0 with __FAST_MATH__.
20080         Add __NO_MATH_ERRNO__ check.
20082 2018-01-02  Joseph Myers  <joseph@codesourcery.com>
20084         * sysdeps/mips/mips32/libm-test-ulps: Update.
20085         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
20087 2018-01-02  Florian Weimer  <fweimer@redhat.com>
20089         * misc/tst-pselect.c: Add copyright header.
20091 2018-01-02  Aurelien Jarno  <aurelien@aurel32.net>
20093         * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: Fix a typo in the
20094         comment.
20095         * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Fix a typo in the
20096         comment.
20097         (settrlimit): Rename into setrlimit.
20098         (__sttrlimit): Rename into __setrlimit.
20100         * sysdeps/unix/sysv/linux/alpha/getrlimit64.c (__old_getrlimit64):
20101         Drop __RLIM_T_MATCHES_RLIM64_T conditional as __old_getrlimit64 is
20102         never defined in that case.
20104 2018-01-02  Joseph Myers  <joseph@codesourcery.com>
20106         * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
20108         * sysdeps/arm/libm-test-ulps: Update.
20110         * math/Makefile (run-regen-ulps): Add $(objpfx) to test name here.
20111         (regen-ulps): Use $(libm-tests) not $^ in shell loop.
20113 2018-01-02  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
20115         * NEWS: Add cosf and sincosf to list of optimized functions.
20117 2018-01-02  Aurelien Jarno  <aurelien@aurel32.net>
20119         [BZ #22660]
20120         * sysdeps/alpha/fpu/s_fmax.S: Remove file.
20121         * sysdeps/alpha/fpu/s_fmaxf.S: Likewise.
20122         * sysdeps/alpha/fpu/s_fmin.S: Likewise.
20123         * sysdeps/alpha/fpu/s_fminf.S: Likewise.
20125 2018-01-01  Dmitry V. Levin  <ldv@altlinux.org>
20127         [BZ #22433]
20128         * sysdeps/unix/sysv/linux/arm/sys/ptrace.h: New file.
20130         * elf/dl-load.c (decompose_rpath): Check for rpath emptiness before
20131         making a copy of it.
20133 2018-01-01  Joseph Myers  <joseph@codesourcery.com>
20135         * manual/texinfo.tex: Update to version 2017-12-26.21 with
20136         trailing whitespace removed.
20137         * scripts/config.guess: Update to version 2018-01-01.
20138         * scripts/config.sub: Update to version 2018-01-01.
20139         * scripts/move-if-change: Update from gnulib.
20141         * NEWS: Update copyright dates.
20142         * catgets/gencat.c (print_version): Likewise.
20143         * csu/version.c (banner): Likewise.
20144         * debug/catchsegv.sh: Likewise.
20145         * debug/pcprofiledump.c (print_version): Likewise.
20146         * debug/xtrace.sh (do_version): Likewise.
20147         * elf/ldconfig.c (print_version): Likewise.
20148         * elf/ldd.bash.in: Likewise.
20149         * elf/pldd.c (print_version): Likewise.
20150         * elf/sotruss.sh: Likewise.
20151         * elf/sprof.c (print_version): Likewise.
20152         * iconv/iconv_prog.c (print_version): Likewise.
20153         * iconv/iconvconfig.c (print_version): Likewise.
20154         * locale/programs/locale.c (print_version): Likewise.
20155         * locale/programs/localedef.c (print_version): Likewise.
20156         * login/programs/pt_chown.c (print_version): Likewise.
20157         * malloc/memusage.sh (do_version): Likewise.
20158         * malloc/memusagestat.c (print_version): Likewise.
20159         * malloc/mtrace.pl: Likewise.
20160         * manual/libc.texinfo: Likewise.
20161         * nptl/version.c (banner): Likewise.
20162         * nscd/nscd.c (print_version): Likewise.
20163         * nss/getent.c (print_version): Likewise.
20164         * nss/makedb.c (print_version): Likewise.
20165         * posix/getconf.c (main): Likewise.
20166         * scripts/test-installation.pl: Likewise.
20167         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
20169         * All files with FSF copyright notices: Update copyright dates
20170         using scripts/update-copyrights.
20171         * locale/programs/charmap-kw.h: Regenerated.
20172         * locale/programs/locfile-kw.h: Likewise.
20174 2017-12-31  Zack Weinberg  <zackw@panix.com>
20176         * libio/bits/libio-ldbl.h: Correct check for improper
20177         inclusion.  Add own multiple include guard.
20179 2017-12-30  Aurelien Jarno  <aurelien@aurel32.net>
20180             Dmitry V. Levin  <ldv@altlinux.org>
20182         [BZ #22625]
20183         CVE-2017-16997
20184         * elf/dl-load.c (fillin_rpath): Check for empty tokens before dynamic
20185         string token expansion. Check for NULL pointer or empty string possibly
20186         returned by expand_dynamic_string_token.
20187         (decompose_rpath): Check for empty path after dynamic string
20188         token expansion.
20190 2017-12-29  Dmitry V. Levin  <ldv@altlinux.org>
20192         [BZ #22433]
20193         * sysdeps/unix/sysv/linux/x86/sys/ptrace.h: New file.
20195         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_request): Add comments
20196         about PTRACE_PEEKSIGINFO, PTRACE_GETSIGMASK, PTRACE_SETSIGMASK, and
20197         PTRACE_SECCOMP_GET_FILTER.  Update comments about PTRACE_SINGLESTEP
20198         and PTRACE_SYSCALL.
20199         * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Likewise.
20200         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
20201         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
20202         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
20203         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
20204         * sysdeps/unix/sysv/linux/tile/sys/ptrace.h: Likewise.
20206         * sysdeps/unix/sysv/linux/sys/ptrace.h: Include <bits/ptrace-shared.h>.
20207         (__ptrace_setoptions, __ptrace_eventcodes, __ptrace_peeksiginfo_args,
20208         __ptrace_peeksiginfo_flags, ptrace): Move to ...
20209         * sysdeps/unix/sysv/linux/bits/ptrace-shared.h: ... new file.
20210         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
20211         bits/ptrace-shared.h.
20212         * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Include
20213         <bits/ptrace-shared.h>.
20214         (__ptrace_setoptions, __ptrace_eventcodes, __ptrace_peeksiginfo_args,
20215         __ptrace_peeksiginfo_flags, ptrace): Remove.
20216         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
20217         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
20218         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
20219         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
20220         * sysdeps/unix/sysv/linux/tile/sys/ptrace.h: Likewise.
20222 2017-12-29  Aurelien Jarno  <aurelien@aurel32.net>
20224         [BZ #17804]
20225         * dirent/scandir-tail.c (SCANDIR_TAIL): Move __set_errno (0) at the
20226         end of the loop. Improve comments.
20228 2017-12-29  Zack Weinberg  <zackw@panix.com>
20230         [BZ #22615]
20231         * manual/errno.texi (Checking for Errors): Explicitly say that errno
20232         might be set on success.
20234 2017-12-29  Aurelien Jarno  <aurelien@aurel32.net>
20236         [BZ #22611]
20237         * malloc/tst-realloc.c (do_test): Remove the test checking that errno
20238         is unchanged on success.
20240 2017-12-27  Dmitry V. Levin  <ldv@altlinux.org>
20242         * elf/dl-dst.h (DL_DST_COUNT): Remove is_path argument, all callers
20243         updated.
20244         * elf/dl-load.c (is_dst, _dl_dst_count, _dl_dst_substitute,
20245         expand_dynamic_string_token): Likewise.
20246         * sysdeps/generic/ldsodefs.h (_dl_dst_count, _dl_dst_substitute): Remove
20247         is_path argument.
20249         * elf/dl-load.c (is_dst): Remove checks that is_path is set and name
20250         contains ':'.
20252         * elf/dl-load.c (_dl_dst_substitute): Remove checks that is_path
20253         is set and name contains ':', and all code depending on these checks.
20255 2017-12-24  Zack Weinberg  <zackw@panix.com>
20257         * libio/libio.h, libio/_G_config.h: New stub headers which issue a
20258         deprecation warning and then include <bits/libio.h>, <bits/_G_config.h>
20259         respectively.
20260         * libio/libio.h: Rename the original version of this file to
20261         libio/bits/libio.h.  Error out if not included by stdio.h or the
20262         stub libio.h.
20263         * include/libio.h: Move to include/bits.  Forward to libio/bits/libio.h.
20264         * sysdeps/generic/_G_config.h: Move to top-level bits/.  Error out
20265         if not included by bits/libio.h or the stub _G_config.h.
20266         * sysdeps/unix/sysv/linux/_G_config.h: Move to
20267         sysdeps/unix/sysv/linux/bits.  Error out if not included by
20268         bits/libio.h or the stub _G_config.h.
20269         * libio/stdio.h: Include bits/libio.h, not libio.h.
20270         * libio/Makefile: Install bits/libio.h and bits/_G_config.h as
20271         well as libio.h and _G_config.h.
20273         * csu/init.c, libio/fmemopen.c, libio/iolibio.h, libio/oldfmemopen.c
20274         * libio/strfile.h, stdio-common/vfscanf.c
20275         * sysdeps/pthread/flockfile.c, sysdeps/pthread/funlockfile.c
20276         Include stdio.h, not _G_config.h nor libio.h.
20277         * libio/iofgetpos.c: Also rename fgetpos64 out of the way.
20278         * libio/iofsetpos.c: Also rename fsetpos64 out of the way.
20280         * scripts/check-installed-headers.sh: Skip libio.h and _G_config.h.
20282 2017-12-23  Dmitry V. Levin  <ldv@altlinux.org>
20284         [BZ #22347]
20285         * stdlib/getrandom.c (getrandom): Fix comment.
20286         * sysdeps/unix/sysv/linux/getrandom.c (getrandom): Likewise.
20288 2017-12-23  Aurelien Jarno  <aurelien@aurel32.net>
20290         [BZ #21161]
20291         * manual/arith.texi (strtoul): Fix a typo.
20293         [BZ #22596]
20294         * manual/arith.texi (finite): Fix the description of the return
20295         value.
20297 2017-12-22  Eric Blake  <ebb9@byu.net>
20299         Avoid gcc warnings on cygwin
20300         * posix/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
20301         * posix/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
20302         Avoid unused variable.
20304 2017-12-22  Florian Weimer  <fweimer@redhat.com>
20306         * io/Makefile (routines): Add copy_file_range.
20307         (tests): Add tst-copy_file_range.
20308         (tests-static, tests-internal): Add tst-copy_file_range-compat.
20309         * io/Versions (GLIBC_2.27): Export copy_file_range.
20310         * io/copy_file_range-compat.c: New file.
20311         * io/copy_file_range.c: Likewise.
20312         * io/tst-copy_file_range-compat.c: Likewise.
20313         * io/tst-copy_file_range.c: Likewise.
20314         * manual/llio.texi (Copying File Data): New section.
20315         * posix/unistd.h [__USE_GNU] (copy_file_range): Declare.
20316         * support/Makefile (libsupport-routines): Add support-xfstat,
20317         xftruncate, xlseek.
20318         * support/support-xfstat.c: New file.
20319         * support/xftruncate.c: Likewise.
20320         * support/xlseek.c: Likewise.
20321         * support/xunistd.h (xfstat, xftruncate, xlseek): Declare.
20322         * sysdeps/unix/sysv/linux/**.abilist: Update.
20323         * sysdeps/unix/sysv/linux/copy_file_range.c: New file.
20325 2017-12-21  Szabolcs Nagy  <szabolcs.nagy@arm.com>
20327         * scripts/build-many-glibcs.py (Context.add_all_configs): Add
20328         disable-multi-arch variant to aarch64-linux-gnu.
20330 2017-12-20  Joseph Myers  <joseph@codesourcery.com>
20332         * manual/texinfo.tex: Update to version 2017-12-18.20 with
20333         trailing whitespace removed.
20334         * scripts/config.guess: Update to version 2017-12-17.
20335         * scripts/config.sub: Update to version 2017-11-23.
20336         * scripts/install-sh: Update to version 2017-09-23.17.
20337         * scripts/move-if-change: Update to version 2017-09-13 06:45.
20339 2017-12-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
20341         * sysdeps/tile/__longjmp.S (__longjmp): Use lowercase instructions.
20342         * sysdeps/tile/__tls_get_addr.S (__tls_get_addr): Likewise.
20343         * sysdeps/tile/_mcount.S (__mcount): Likewise.
20344         * sysdeps/tile/crti.S (_init, _fini): Likewise.
20345         * sysdeps/tile/crtn.S: Likewise.
20346         * sysdeps/tile/dl-start.S (_start): Likewise.
20347         * sysdeps/tile/dl-trampoline.S: Likewise.
20348         * sysdeps/tile/setjmp.S (__sigsetjmp): Likewise.
20349         * sysdeps/tile/start.S (_start): Likewise.
20350         * sysdeps/unix/sysv/linux/tile/clone.S (_clone): Likewise.
20351         * sysdeps/unix/sysv/linux/tile/getcontext.S (__getcontext): Likewise.
20352         * sysdeps/unix/sysv/linux/tile/ioctl.S (__ioctl): Likewise.
20353         * sysdeps/unix/sysv/linux/tile/setcontext.S (__setcontext): Likewise.
20354         * sysdeps/unix/sysv/linux/tile/swapcontext.S (__swapcontext): Likewise.
20355         * sysdeps/unix/sysv/linux/tile/syscall.S (syscall): Likewise.
20356         * sysdeps/unix/sysv/linux/tile/vfork.S (__vfork): Likewise.
20358         * stdlib/bug-getcontext.c (do_test): Remove tilepro mention in
20359         comment.
20360         * sysdeps/tile/preconfigure: Remove tilegx folder.
20361         * sysdeps/tile/tilegx/Implies: Move definitions to ...
20362         * sysdeps/tile/Implies: ... here.
20363         * sysdeps/tile/tilegx/Makefile: Move rules to ...
20364         * sysdeps/tile/Makefile: ... here.
20365         * sysdeps/tile/tilegx/atomic-machine.h: Move definitions to ...
20366         * sysdeps/tile/atomic-machine.h: ... here.  Add include guards.
20367         * sysdeps/tile/tilegx/bits/wordsize.h: Move to ...
20368         * sysdeps/tile/bits/wordsize.h: ... here.
20369         * sysdeps/tile/tilegx/*: Move to ...
20370         * sysdeps/tile/*: ... here.
20371         * sysdeps/tile/tilegx/tilegx32/Implies: Move to ...
20372         * sysdeps/tile/tilegx32/Implies: ... here.
20373         * sysdeps/tile/tilegx/tilegx64/Implies: Move to ...
20374         * sysdeps/tile/tilegx64/Implies: ... here.
20375         * sysdeps/unix/sysv/linux/tile/tilegx/Makefile: Move definitions
20376         to ...
20377         * sysdeps/unix/sysv/linux/tile/Makefile: ... here.
20378         * sysdeps/unix/sysv/linux/tile/tilegx/*: Move to ...
20379         * sysdeps/unix/sysv/linux/tile/*: ... here.
20380         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/*: Move to ...
20381         * sysdeps/unix/sysv/linux/tile/tilegx32/*: ... here.
20382         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/*: Move to ...
20383         * sysdeps/unix/sysv/linux/tile/tilegx64/*: ... here.
20385         * README: Remove tilepro-*-linux-gnu from supported architecture.
20386         * scripts/build-many-glibcs.py: Likewise.
20387         * sysdeps/tile/__tls_get_addr.S (__tls_get_addr): Likewise.
20388         * sysdeps/tile/crti.S (PREINIT_FUNCTION): Likewise.
20389         * sysdeps/tile/dl-machine.h (ELF_MACHINE_NAME,
20390         elf_machine_matches_host, elf_machine_dynamic,
20391         elf_machine_load_address, elf_machine_runtime_setup, reloc_howto
20392         howto, elf_machine_rela): Likewise.
20393         * sysdeps/tile/dl-start.S (_start): Likewise.
20394         * sysdeps/tile/memcmp.c (DBLALIGN, REVBYTES): Likewise.
20395         * sysdeps/tile/memcopy.h (MEMCPY_OK_FOR_FWD_MEMMOVE,
20396         MEMCPY_OK_FOR_FWD_MEMMOVE, op_t): Likewise.
20397         * sysdeps/tile/nptl/pthread_spin_lock.c (TNS, CMPTNS): Likewise.
20398         * sysdeps/tile/nptl/pthread_spin_trylock.c (TNS): Likewise.
20399         * sysdeps/tile/nptl/pthread_spin_unlock.c (pthread_spin_unlock):
20400         Likewise.
20401         * sysdeps/tile/nptl/tls.h (DB_THREAD_SELF): Likewise.
20402         * sysdeps/tile/preconfigure: Likewise.
20403         * sysdeps/tile/stackguard-macros.h (STACK_CHK_GUARD,
20404         POINTER_CHK_GUARD): Likewise.
20405         * sysdeps/tile/stackinfo.h (__stackinfo_sub): Likewise.
20406         * sysdeps/tile/start.S (_start): Likewise.
20407         * sysdeps/tile/tls-macros.h (TLS_GD_OFFSET, TLS_IE_OFFSET, _TLS_LE):
20408         Likewise.
20409         * sysdeps/tile/sysdep.h (REGSIZE): Likewise.
20410         (LD, LD4U, ST, ST4, BNEZ, BEQZ, BEQZT, BGTZ, CMPEQI, CMPEQ, CMOVEQZ,
20411         CMOVNEZ): Remove.
20412         * sysdeps/unix/sysv/linux/tile/bits/environments.h
20413         (__ILP32_OFF32_CFLAGS, __ILP32_OFFBIG_CFLAGS, __ILP32_OFF32_LDFLAGS,
20414         __ILP32_OFFBIG_LDFLAGS, __LP64_OFF64_CFLAGS, __LP64_OFF64_LDFLAGS):
20415         Likewise.
20416         * sysdeps/tile/wordcopy.c (DBLALIGN): Likewise.
20417         * sysdeps/tile/tilepro/Implies: Remove file.
20418         * sysdeps/tile/tilepro/atomic-machine.h: Likewise.
20419         * sysdeps/tile/tilepro/bits/wordsize.h: Likewise.
20420         * sysdeps/tile/tilepro/memchr.c: Likewise.
20421         * sysdeps/tile/tilepro/memcpy.S: Likewise.
20422         * sysdeps/tile/tilepro/memset.c: Likewise.
20423         * sysdeps/tile/tilepro/memusage.h: Likewise.
20424         * sysdeps/tile/tilepro/rawmemchr.c: Likewise.
20425         * sysdeps/tile/tilepro/strchr.c: Likewise.
20426         * sysdeps/tile/tilepro/strchrnul.c: Likewise.
20427         * sysdeps/tile/tilepro/strlen.c: Likewise.
20428         * sysdeps/tile/tilepro/strrchr.c: Likewise.
20429         * sysdeps/unix/sysv/linux/tile/tilepro/Implies: Likewise.
20430         * sysdeps/unix/sysv/linux/tile/tilepro/c++-types.data: Likewise.
20431         * sysdeps/unix/sysv/linux/tile/tilepro/jmp_buf-macros.h: Likewise.
20432         * sysdeps/unix/sysv/linux/tile/tilepro/ld.abilist: Likewise.
20433         * sysdeps/unix/sysv/linux/tile/tilepro/ldconfig.h: Likewise.
20434         * sysdeps/unix/sysv/linux/tile/tilepro/libBrokenLocale.abilist:
20435         Likewise.
20436         * sysdeps/unix/sysv/linux/tile/tilepro/libanl.abilist: Likewise.
20437         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
20438         * sysdeps/unix/sysv/linux/tile/tilepro/libcrypt.abilist: Likewise.
20439         * sysdeps/unix/sysv/linux/tile/tilepro/libdl.abilist: Likewise.
20440         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
20441         * sysdeps/unix/sysv/linux/tile/tilepro/libnsl.abilist: Likewise.
20442         * sysdeps/unix/sysv/linux/tile/tilepro/libpthread.abilist: Likewise.
20443         * sysdeps/unix/sysv/linux/tile/tilepro/libresolv.abilist: Likewise.
20444         * sysdeps/unix/sysv/linux/tile/tilepro/librt.abilist: Likewise.
20445         * sysdeps/unix/sysv/linux/tile/tilepro/libthread_db.abilist: Likewise.
20446         * sysdeps/unix/sysv/linux/tile/tilepro/libutil.abilist: Likewise.
20447         * sysdeps/unix/sysv/linux/tile/tilepro/register-dump.h: Likewise.
20448         * sysdeps/unix/sysv/linux/tile/sysconf.c (linux_sysconf): Remove
20449         tilepro mention in comment.
20451         * nptl/Makefile (libpthread-routines): Add pthread_join_common.
20452         * nptl/pthreadP.h (__pthread_timedjoin_ex): New prototype.
20453         * nptl/pthread_join_common.c: New file: common function used on
20454         pthread_join, pthread_timedjoin_np, pthread_tryjoin_np.
20455         * nptl/pthread_join.c (pthread_join): Use __pthread_timedjoin_ex.
20456         * nptl/pthread_tryjoin.c (pthread_tryjoin): Likewise.
20457         * nptl/pthread_timedjoin.c (pthread_timedjoin_np): Likewise.
20458         (cleanup): Move definition to pthread_join_common.c.
20459         * sysdeps/unix/sysv/linux/i386/lowlevellock.h (__lll_timedwait_tid):
20460         Remove superflous checks.
20461         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (__lll_timedwait_tid):
20462         Likewise.
20464 2017-12-20  Szabolcs Nagy  <szabolcs.nagy@arm.com>
20466         * sysdeps/aarch64/libm-test-ulps: Update.
20468 2017-12-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
20470         * sysdeps/aarch64/memset.S (MEMSET): Define.
20472 2017-12-20  Florian Weimer  <fweimer@redhat.com>
20474         [BZ #22635]
20475         nptl: Provide full implementation of pthread_self in libc.so.
20476         * nptl/Makefile (routines): Add pthread_self.
20477         (libpthread-routines): Replace pthread_self with
20478         compat-pthread_self.
20479         * nptl/forward.c (pthread_self): Remove.
20480         * nptl/nptl-init.c (pthread_functions): Do not initialize
20481         ptr_pthread_self.
20482         * nptl/pthread_self.c (pthread_self): Remove weak alias.
20483         * nptl/compat-pthread_self.c: New file.
20484         * sysdeps/nptl/pthread-functions.h (struct pthread_functions):
20485         Remove ptr_pthread_self.
20487 2017-12-19  Arnold D. Robbins  <arnold@skeeve.com>
20489         * posix/regcomp.c: Fix spelling in comments.
20490         * posix/regex.h: Likewise.
20491         * posix/regex_internal.c: Likewise.
20492         * posix/regexec.c: Likewise.
20494 2017-12-19  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
20496         [BZ #22377]
20497         * math/Makefile [C++] (tests): Add test for iseqsig.
20498         * math/math.h [C++] (iseqsig): New implementation, which does
20499         not rely on __MATH_TG/__builtin_types_compatible_p.
20500         * math/test-math-iseqsig.cc: New file.
20501         * sysdeps/powerpc/powerpc64le/Makefile
20502         (CFLAGS-test-math-iseqsig.cc): New variable.
20504 2017-12-19  Dmitry V. Levin  <ldv@altlinux.org>
20506         * elf/dl-load.c (is_trusted_path): Remove.
20507         (fillin_rpath): Remove check_trusted argument and its use,
20508         all callers changed.
20510 2017-12-19  H.J. Lu  <hongjiu.lu@intel.com>
20512         [BZ #22630]
20513         * Makeconfig (link-pie-before-libc): Replace -pie with
20514         $(if $($(@F)-no-pie),$(no-pie-ldflag),-pie).
20515         * elf/Makefile (LDFLAGS-tst-dlopen-aout): Removed.
20516         (tst-dlopen-aout-no-pie): New.
20517         (LDFLAGS-tst-prelink): Removed.
20518         (tst-prelink-no-pie): New.
20519         (LDFLAGS-tst-main1): Removed.
20520         (tst-main1-no-pie): New.
20521         * gmon/Makefile (LDFLAGS-tst-gmon): Removed.
20522         (tst-gmon-no-pie): New.
20524 2017-12-19  H.J. Lu  <hongjiu.lu@intel.com>
20526         * manual/install.texi: Document that --enable-static-pie
20527         implies PIE.
20528         * INSTALL: Regenerated.
20530 2017-12-19  Bernd Edlinger  <bernd.edlinger@hotmail.de>
20532         [BZ #21309]
20533         * sysdeps/ieee754/dbl-64/e_pow.c (checkint): Make m and n
20534         unsigned.
20536 2017-12-19  Joseph Myers  <joseph@codesourcery.com>
20538         Revert:
20540         2017-12-19  Joseph Myers  <joseph@codesourcery.com>
20542         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
20544         2017-12-19  Patrick McGehearty  <patrick.mcgehearty@oracle.com>
20546         * sysdeps/ieee754/dbl-64/e_exp.c: Include <math-svid-compat.h> and
20547         <errno.h>.  Include "eexp.tbl".
20548         (half): New constant.
20549         (one): Likewise.
20550         (__ieee754_exp): Rewrite.
20551         (__slowexp): Remove prototype.
20552         * sysdeps/ieee754/dbl-64/eexp.tbl: New file.
20553         * sysdeps/ieee754/dbl-64/slowexp.c: Remove file.
20554         * sysdeps/i386/fpu/slowexp.c: Likewise.
20555         * sysdeps/ia64/fpu/slowexp.c: Likewise.
20556         * sysdeps/m68k/m680x0/fpu/slowexp.c: Likewise.
20557         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Likewise.
20558         * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
20559         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
20560         * sysdeps/generic/math_private.h (__slowexp): Remove prototype.
20561         * sysdeps/ieee754/dbl-64/e_pow.c: Remove mention of slowexp.c in
20562         comment.
20563         * sysdeps/powerpc/power4/fpu/Makefile [$(subdir) = math]
20564         (CPPFLAGS-slowexp.c): Remove variable.
20565         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
20566         Remove slowexp-fma, slowexp-fma4 and slowexp-avx.
20567         (CFLAGS-slowexp-fma.c): Remove variable.
20568         (CFLAGS-slowexp-fma4.c): Likewise.
20569         (CFLAGS-slowexp-avx.c): Likewise.
20570         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Do not
20571         define as macro.
20572         * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Likewise.
20573         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Likewise.
20574         * math/Makefile (type-double-routines): Remove slowexp.
20575         * manual/probes.texi (slowexp_p6): Remove.
20576         (slowexp_p32): Likewise.
20578 2017-12-19  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
20580         * lib/glob.c (glob): Use a 'char *', not a 'void *', in pointer
20581         arithmetic.
20583         * lib/glob.c (glob): Do not pass NULL to mempcpy.
20585 2017-12-19  Joseph Myers  <joseph@codesourcery.com>
20587         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
20589 2017-12-19  Patrick McGehearty  <patrick.mcgehearty@oracle.com>
20591         * sysdeps/ieee754/dbl-64/e_exp.c: Include <math-svid-compat.h> and
20592         <errno.h>.  Include "eexp.tbl".
20593         (half): New constant.
20594         (one): Likewise.
20595         (__ieee754_exp): Rewrite.
20596         (__slowexp): Remove prototype.
20597         * sysdeps/ieee754/dbl-64/eexp.tbl: New file.
20598         * sysdeps/ieee754/dbl-64/slowexp.c: Remove file.
20599         * sysdeps/i386/fpu/slowexp.c: Likewise.
20600         * sysdeps/ia64/fpu/slowexp.c: Likewise.
20601         * sysdeps/m68k/m680x0/fpu/slowexp.c: Likewise.
20602         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Likewise.
20603         * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
20604         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
20605         * sysdeps/generic/math_private.h (__slowexp): Remove prototype.
20606         * sysdeps/ieee754/dbl-64/e_pow.c: Remove mention of slowexp.c in
20607         comment.
20608         * sysdeps/powerpc/power4/fpu/Makefile [$(subdir) = math]
20609         (CPPFLAGS-slowexp.c): Remove variable.
20610         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
20611         Remove slowexp-fma, slowexp-fma4 and slowexp-avx.
20612         (CFLAGS-slowexp-fma.c): Remove variable.
20613         (CFLAGS-slowexp-fma4.c): Likewise.
20614         (CFLAGS-slowexp-avx.c): Likewise.
20615         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Do not
20616         define as macro.
20617         * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Likewise.
20618         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Likewise.
20619         * math/Makefile (type-double-routines): Remove slowexp.
20620         * manual/probes.texi (slowexp_p6): Remove.
20621         (slowexp_p32): Likewise.
20623 2017-12-19  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
20624             James Clarke  <jrtc27@jrtc27.com>
20626         [BZ #22603]
20627         * sysdeps/ia64/memchr.S (__memchr): Avoid overflow in pointer
20628         addition.
20630 2017-12-19  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
20632         [BZ #22605]
20633         * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Fix exit return
20634         code.
20636 2017-12-19  H.J. Lu  <hongjiu.lu@intel.com>
20638         [BZ #22563]
20639         * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
20640         * sysdeps/i386/nptl/tls.h (tcbhead_t): Add feature_1.
20641         * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
20642         * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Rename __glibc_unused1
20643         to feature_1.
20645 2017-12-19  H.J. Lu  <hongjiu.lu@intel.com>
20647         [BZ #22563]
20648         * bits/types/__cancel_jmp_buf_tag.h: New file.
20649         * sysdeps/unix/sysv/linux/x86/bits/types/__cancel_jmp_buf_tag.h
20650         * sysdeps/unix/sysv/linux/x86/pthreaddef.h: Likewise.
20651         * sysdeps/unix/sysv/linux/x86/nptl/pthreadP.h: Likewise.
20652         * nptl/Makefile (headers): Add
20653         bits/types/__cancel_jmp_buf_tag.h.
20654         * nptl/descr.h [NEED_SAVED_MASK_IN_CANCEL_JMP_BUF]
20655         (pthread_unwind_buf): Add saved_mask to cancel_jmp_buf.
20656         * sysdeps/nptl/pthread.h: Include
20657         <bits/types/__cancel_jmp_buf_tag.h>.
20658         (__pthread_unwind_buf_t): Use struct __cancel_jmp_buf_tag with
20659         __cancel_jmp_buf.
20660         * sysdeps/unix/sysv/linux/hppa/pthread.h: Likewise.
20662 2017-12-18  H.J. Lu  <hongjiu.lu@intel.com>
20664         * scripts/build-many-glibcs.py (Context.add_all_configs): Add
20665         --enable-static-pie variants to x86_64, x32 and i686.
20667 2017-12-19  Joseph Myers  <joseph@codesourcery.com>
20669         [BZ #22631]
20670         * sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__m81_defun): Add
20671         argument for attrubutes.  All callers changed.
20672         (__inline_mathop1): Likewise.  All callers changed.
20673         (__inline_mathop): Likewise.  All callers changed.
20674         [__USE_MISC] (scalbn): Use __inline_forward instead of
20675         __inline_forward_c.
20676         [__USE_ISOC99] (scalbln): Likewise.
20677         [__USE_ISOC99] (nearbyint): Likewise.
20678         [__USE_ISOC99] (lrint): Likewise.
20679         [__USE_MISC] (scalbnf): Likewise.
20680         [__USE_ISOC99] (scalblnf): Likewise.
20681         [__USE_ISOC99] (nearbyintf): Likewise.
20682         [__USE_ISOC99] (lrintf): Likewise.
20683         [__USE_MISC] (scalbnl): Likewise.
20684         [__USE_ISOC99] (scalblnl): Likewise.
20685         [__USE_ISOC99] (nearbyintl): Likewise.
20686         [__USE_ISOC99] (lrintl): Likewise.
20687         * sysdeps/m68k/m680x0/fpu/mathimpl.h: All callers of
20688         __inline_mathop and __m81_defun changed.
20690         * scripts/build-many-glibcs.py (Context.add_all_configs): Specify
20691         CPU or FPU for ARM hard-float configurations.
20693 2017-12-18  Joseph Myers  <joseph@codesourcery.com>
20695         * nptl/tst-attr3.c: Include <libc-diag.h>.
20696         (do_test) [__GNUC_PREREQ (7, 0)]: Ignore -Wrestrict for two tests.
20698         * posix/tst-glob_symlinks.c (do_test): Increase size of buf.
20700         * string/tester.c (test_strncat): Also disable -Warray-bounds
20701         warnings for two tests.
20703 2017-12-18  H.J. Lu  <hongjiu.lu@intel.com>
20705         [BZ #22614]
20706         * Makeconfig (no-pie-ldflag): Set to -no-pie only if
20707         $(cc-pie-default) == yes.
20708         * config.make.in (cc-pie-default): New.
20709         * configure.ac (libc_cv_pie_default): Renamed to ...
20710         (libc_cv_cc_pie_default): This.
20711         (libc_cv_pie_default): Set to $libc_cv_cc_pie_default.
20712         * configure: Regenerated.
20714 2017-12-18  Florian Weimer  <fweimer@redhat.com>
20716         [BZ #20204]
20717         ld.so: Harden dl-libc/libdl hooks.
20718         * sysdeps/generic/ldsodefs.h (_dl_init_all_dirs): Update comment.
20719         (rtld_active): New function.
20720         * dlfcn/dladdr.c (__dladdr): Call it.
20721         * dlfcn/dladdr1.c (__dladdr1): Likewise.
20722         * dlfcn/dlclose.c (__dlcose): Likewise.
20723         * dlfcn/dlerror.c (__dlerror): Likewise.
20724         * dlfcn/dlinfo.c (__dlinfo): Likewise.
20725         * dlfcn/dlmopen.c (__dlmopen): Likewise.
20726         * dlfcn/dlopen.c (__dlopen): Likewise.
20727         * dlfcn/dlopenold.c (__dlopen_nocheck): Likewise.
20728         * dlfcn/dlsym.c (__dlsym): Likewise.
20729         * dlfcn/dlvsym.c (__dlvsym): Likewise.
20730         * libio/vtables.c (_IO_vtable_check): Likewise.
20731         * elf/dl-libc.c (__libc_dlopen_mode, __libc_dlsym)
20732         (__libc_dlclose): Likewise.
20733         * elf/rtld.c (dl_main): Update comment on the _dl_init_all_dirs
20734         assignment.
20736 2017-12-18  Joseph Myers  <joseph@codesourcery.com>
20738         [BZ #22446]
20739         * nscd/connections.c (handle_request) [SO_PEERCRED]: Use separate
20740         buffers for readlink input and output.
20742 2017-12-18  Sergei Trofimovich  <slyfox@gentoo.org>
20744         [BZ #22624]
20745         * sysdeps/mips/setjmp_aux.c (__sigsetjmp_aux): Use
20746         inhibit_stack_protector.
20748         [BZ #22624]
20749         * sysdeps/mips/mips64/setjmp_aux.c (__sigsetjmp_aux): Use
20750         inhibit_stack_protector.
20752 2017-12-18  Dmitry V. Levin  <ldv@altlinux.org>
20754         [BZ #22627]
20755         * elf/dl-load.c (_dl_init_paths): Remove _dl_dst_substitute preparatory
20756         code and invocation.
20758 2017-12-18  Szabolcs Nagy  <szabolcs.nagy@arm.com>
20760         * sysdeps/aarch64/start.S (_start): Handle PIC && !SHARED case.
20762 2017-12-16  Aurelien Jarno  <aurelien@aurel32.net>
20764         [BZ #22505]
20765         * elf/ldconfig.c (main): Call setlocale to force LC_COLLATE to C.
20767 2017-12-16  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
20769         * sysdeps/s390/fpu/libm-test-ulps: Update.
20771 2017-12-16  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
20773         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
20775 2017-12-16  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
20777         * sysdeps/ieee754/flt-32/s_cosf.c: Move reduced() and
20778         constants to s_sincosf.h file.
20779         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
20780         * sysdeps/ieee754/flt-32/s_sincosf.c: New
20781         implementation.
20782         * sysdeps/ieee754/flt-32/s_sincosf.h:
20783         New file.
20785 2017-12-12  Carlos O'Donell  <carlos@redhat.com>
20787         [BZ #14681]
20788         * elf/tst-leaks1.c (do_test): Call one dlopen with $ORIGIN expansion
20789         before mtrace.
20791 2017-12-15  H.J. Lu  <hongjiu.lu@intel.com>
20793         [BZ #19574]
20794         * INSTALL: Regenerated.
20795         * Makeconfig (real-static-start-installed-name): New.
20796         (pic-default): Updated for --enable-static-pie.
20797         (pie-default): New for --enable-static-pie.
20798         (default-pie-ldflag): Likewise.
20799         (+link-static-before-libc): Replace $(DEFAULT-LDFLAGS-$(@F))
20800         with $(if $($(@F)-no-pie),$(no-pie-ldflag),$(default-pie-ldflag)).
20801         Replace $(static-start-installed-name) with
20802         $(real-static-start-installed-name).
20803         (+prectorT): Updated for --enable-static-pie.
20804         (+postctorT): Likewise.
20805         (CFLAGS-.o): Add $(pie-default).
20806         (CFLAGS-.op): Likewise.
20807         * NEWS: Mention --enable-static-pie.
20808         * config.h.in (ENABLE_STATIC_PIE): New.
20809         * configure.ac (--enable-static-pie): New configure option.
20810         (have-no-dynamic-linker): New LIBC_CONFIG_VAR.
20811         (have-static-pie): Likewise.
20812         Enable static PIE if linker supports --no-dynamic-linker.
20813         (ENABLE_STATIC_PIE): New AC_DEFINE.
20814         (enable-static-pie): New LIBC_CONFIG_VAR.
20815         * configure: Regenerated.
20816         * csu/Makefile (omit-deps): Add r$(start-installed-name) and
20817         gr$(start-installed-name) for --enable-static-pie.
20818         (extra-objs): Likewise.
20819         (install-lib): Likewise.
20820         (extra-objs): Add static-reloc.o and static-reloc.os
20821         ($(objpfx)$(start-installed-name)): Also depend on
20822         $(objpfx)static-reloc.o.
20823         ($(objpfx)r$(start-installed-name)): New.
20824         ($(objpfx)g$(start-installed-name)): Also depend on
20825         $(objpfx)static-reloc.os.
20826         ($(objpfx)gr$(start-installed-name)): New.
20827         * csu/libc-start.c (LIBC_START_MAIN): Call _dl_relocate_static_pie
20828         in libc.a.
20829         * csu/libc-tls.c (__libc_setup_tls): Add main_map->l_addr to
20830         initimage.
20831         * csu/static-reloc.c: New file.
20832         * elf/Makefile (routines): Add dl-reloc-static-pie.
20833         (elide-routines.os): Likewise.
20834         (DEFAULT-LDFLAGS-tst-tls1-static-non-pie): Removed.
20835         (tst-tls1-static-non-pie-no-pie): New.
20836         * elf/dl-reloc-static-pie.c: New file.
20837         * elf/dl-support.c (_dl_get_dl_main_map): New function.
20838         * elf/dynamic-link.h (ELF_DURING_STARTUP): Also check
20839         STATIC_PIE_BOOTSTRAP.
20840         * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
20841         * gmon/Makefile (tests): Add tst-gmon-static-pie.
20842         (tests-static): Likewise.
20843         (DEFAULT-LDFLAGS-tst-gmon-static): Removed.
20844         (tst-gmon-static-no-pie): New.
20845         (CFLAGS-tst-gmon-static-pie.c): Likewise.
20846         (CRT-tst-gmon-static-pie): Likewise.
20847         (tst-gmon-static-pie-ENV): Likewise.
20848         (tests-special): Likewise.
20849         ($(objpfx)tst-gmon-static-pie.out): Likewise.
20850         (clean-tst-gmon-static-pie-data): Likewise.
20851         ($(objpfx)tst-gmon-static-pie-gprof.out): Likewise.
20852         * gmon/tst-gmon-static-pie.c: New file.
20853         * manual/install.texi: Document --enable-static-pie.
20854         * sysdeps/generic/ldsodefs.h (_dl_relocate_static_pie): New.
20855         (_dl_get_dl_main_map): Likewise.
20856         * sysdeps/i386/configure.ac: Check if linker supports static PIE.
20857         * sysdeps/x86_64/configure.ac: Likewise.
20858         * sysdeps/i386/configure: Regenerated.
20859         * sysdeps/x86_64/configure: Likewise.
20860         * sysdeps/mips/Makefile (ASFLAGS-.o): Add $(pie-default).
20861         (ASFLAGS-.op): Likewise.
20863 2017-12-15  Joseph Myers  <joseph@codesourcery.com>
20865         * io/Makefile (tst-open-tmpfile-ARGS): New variable.
20866         * posix/tst-mmap-offset.c (fname): Use /tmp.
20867         * stdlib/tst-setcontext3.sh (tempfile): Use ${objpfx}.
20869 2017-12-15  Steve Ellcey  <sellcey@cavium.com>
20871         * nscd/dbg_log.c (dbg_log): Increase msg buffer size.
20873 2017-12-15  Thomas Schwinge  <thomas@codesourcery.com>
20875         * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno): Don't set
20876         errno.
20878 2017-12-15  Joseph Myers  <joseph@codesourcery.com>
20880         * scripts/build-many-glibcs.py (Context.add_all_configs): Use
20881         --with-float=hard for arm-linux-gnueabihf configurations.
20883         [BZ #14121]
20884         * po/Makefile (generated): Add $(ALL_LINGUAS:%=%.mo).
20885         (%.mo): Change to $(objpfx)%.mo.  Use $(make-target-directory).
20886         ($(mo-installed)): Use $(objpfx)%.mo.
20887         (realclean): Remove rule.
20889         * po/Makefile (linguas): Remove rule and dependencies.
20890         (linguas.mo): Likewise.
20891         (.PHONY): Do not depend on linguas and linguas.mo.
20892         (podir): Remove variable.
20893         (pofiles): Likewise.
20894         [$(pofiles)] (%.po): Remove rule.
20896         * sysdeps/sparc/sparc32/Makefile
20897         ($(divrem:%=$(sysdep_dir)/sparc/sparc32/%.S)): Do not include
20898         start-of-line whitespace in argument of echo.
20899         * sysdeps/sparc/sparc32/divrem.m4: Avoid generating lines starting
20900         with whitespace.  Generate __wrap_.udiv alias.
20901         * sysdeps/sparc/sparc32/rem.S: Regenerated.
20902         * sysdeps/sparc/sparc32/sdiv.S: Likewise.
20903         * sysdeps/sparc/sparc32/udiv.S: Likewise.
20904         * sysdeps/sparc/sparc32/urem.S: Likewise.
20906 2017-12-15  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
20908         * sysdeps/powerpc/powerpc64/power8/strcpy.S: Use vectors
20909         for aligned inputs.
20911 2017-12-14  Siddhesh Poyarekar  <siddhesh@sourceware.org>
20913         * benchtests/bench-strcmp.c: Print output in JSON format.
20915         * elf/dl-tunables.list: Remove redundant SXID_ERASE.
20917 2017-12-14  Florian Weimer  <fweimer@redhat.com>
20919         [BZ #22607]
20920         CVE-2017-1000409
20921         * elf/dl-load.c (_dl_init_paths): Compute number of components in
20922         the expanded path string.
20924 2017-12-14  Florian Weimer  <fweimer@redhat.com>
20926         [BZ #22606]
20927         CVE-2017-1000408
20928         * elf/dl-load.c (system_dirs): Update comment.
20929         (nsystem_dirs_len): Use array_length.
20930         (_dl_init_paths): Use nsystem_dirs_len to compute the array size.
20932 2017-12-14  Florian Weimer  <fweimer@redhat.com>
20934         Simplify compiling most of support/ outside of glibc.
20935         * support/check_addrinfo.c: Include <string.h>.
20936         * support/check_dns_packet.c: Likewise.
20937         * support/check_hostent.c: Likewise.
20938         * support/support_can_chroot.c: Include <support/xunistd.h>.
20939         * support/support_format_addrinfo.c: Include <stdlib.h>
20940         * support/support_format_dns_packet.c: Include <stdbool.h>.
20941         * support/support_format_hostent.c: Include <stdlib.h>.
20942         * support/support_format_netent.c: Likewise.
20943         * support/support_write_string.c: Include <support/xunistd.h>.
20944         * support/xdlfcn.c: Include <stddef.h>.
20946 2017-12-14  H.J. Lu  <hongjiu.lu@intel.com>
20948         * sysdeps/x86_64/fpu/s_cosf.S: Removed.
20950 2017-12-14  Patrick McGehearty  <patrick.mcgehearty@oracle.com>
20951             Adhemerval Zanella  <adhemerval.zanella@linaro.org>
20953         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
20954         (sysdeps_routines): Add memset-niagara7.
20955         * sysdeps/sparc/sparc64/multiarch/Makefile (sysdes_rotuines):
20956         Likewise.
20957         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara7.S: New
20958         file.
20959         * sysdeps/sparc/sparc64/multiarch/memset-niagara7.S: Likewise.
20960         * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c
20961         (__libc_ifunc_impl_list): Add __bzero_niagara7 and __memset_niagara7.
20962         * sysdeps/sparc/sparc64/multiarch/ifunc-memset.h (IFUNC_SELECTOR):
20963         Add niagara7 option.
20964         * NEWS: Mention sparc m7 optimized memcpy, mempcpy, memmove, and
20965         memset.
20967         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
20968         (sysdeps_routines): Add memcpy-memmove-niagara7 and memmove-ultra1.
20969         * sysdeps/sparc/sparc64/multiarch/Makefile (sysdeps_routines):
20970         Likewise.
20971         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-memmove-niagara7.S:
20972         New file.
20973         * sysdeps/sparc/sparc32/sparcv9/multiarch/memmove-ultra1.S: Likewise.
20974         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memmove.c: Likewise.
20975         * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c
20976         (__libc_ifunc_impl_list): Add __memcpy_niagara7, __mempcpy_niagara7,
20977         and __memmove_niagara7.
20978         * sysdeps/sparc/sparc64/multiarch/ifunc-memcpy.h (IFUNC_SELECTOR):
20979         Add niagara7 option.
20980         * sysdeps/sparc/sparc64/multiarch/memmove.c: New file.
20981         * sysdeps/sparc/sparc64/multiarch/ifunc-memmove.h: Likewise.
20982         * sysdeps/sparc/sparc64/multiarch/memcpy-memmove-niagara7.S: Likewise.
20983         * sysdeps/sparc/sparc64/multiarch/memmove-ultra1.S: Likewise.
20984         * sysdeps/sparc/sparc64/multiarch/rtld-memmove.c: Likewise.
20986 2017-12-14  Jose E. Marchesi  <jose.marchesi@oracle.com>
20988         * sysdeps/sparc/sparc32/sparcv9/memmove.S: New file.
20989         * sysdeps/sparc/sparc32/sparcv9/rtld-memmove.c: Likewise.
20990         * sysdeps/sparc/sparc64/memmove.S: Likewise.
20991         * sysdeps/sparc/sparc64/rtld-memmove.c: Likewise.
20993         * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_ADP): Defined.
20994         * sysdeps/sparc/dl-procinfo.c: Added "adp" to the
20995         _dl_sparc_cap_flags array.
20996         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increment.
20998 2017-12-13  Siddhesh Poyarekar  <siddhesh@sourceware.org>
21000         * sysdeps/aarch64/strcmp.S (misaligned8): Compare dword at a
21001         time whenever possible.
21003 2017-12-12  Carlos O'Donell  <carlos@redhat.com>
21005         * elf/Makefile [$(nss-crypt)$(static-nss-crypt) == yesno]
21006         (CFLAGS-tst-linkall-static.c): Undefine USE_CRYPT first.
21008 2017-12-12  Joseph Myers  <joseph@codesourcery.com>
21010         * soft-fp/fmadf4.c: Move to ....
21011         * sysdeps/ieee754/soft-fp/s_fma.c: ... here.
21012         * soft-fp/fmasf4.c: Move to ....
21013         * sysdeps/ieee754/soft-fp/s_fmaf.c: ... here.
21014         * soft-fp/fmatf4.c: Move to ....
21015         * sysdeps/ieee754/soft-fp/s_fmal.c: ... here.
21016         * sysdeps/ieee754/soft-fp/Makefile: New file.
21017         * sysdeps/arm/preconfigure.ac: Define with_fp_cond.
21018         * sysdeps/arm/preconfigure: Regenerated.
21019         * sysdeps/arm/nofpu/Implies: New file.
21020         * sysdeps/arm/s_fma.c: Remove file.
21021         * sysdeps/arm/s_fmaf.c: Likewise.
21022         * sysdeps/m68k/coldfire/nofpu/Implies: New file.
21023         * sysdeps/m68k/coldfire/nofpu/s_fma.c: Remove file.
21024         * sysdeps/m68k/coldfire/nofpu/s_fmaf.c: Likewise.
21025         * sysdeps/microblaze/Implies: Add ieee754/soft-fp.
21026         * sysdeps/microblaze/s_fma.c: Remove file.
21027         * sysdeps/microblaze/s_fmaf.c: Likewise.
21028         * sysdeps/mips/mips32/nofpu/Implies: New file.
21029         * sysdeps/mips/mips64/n32/fpu/s_fma.c: Likewise.
21030         * sysdeps/mips/mips64/n32/nofpu/Implies: Likewise.
21031         * sysdeps/mips/mips64/n64/fpu/s_fma.c: Likewise.
21032         * sysdeps/mips/mips64/n64/nofpu/Implies: Likewise.
21033         * sysdeps/mips/ieee754/s_fma.c: Remove file.
21034         * sysdeps/mips/ieee754/s_fmaf.c: Likewise.
21035         * sysdeps/mips/ieee754/s_fmal.c: Update include for move of fmal
21036         implementation.
21037         * sysdeps/nios2/Implies: Add ieee754/soft-fp.
21038         * sysdeps/nios2/s_fma.c: Remove file.
21039         * sysdeps/nios2/s_fmaf.c: Likewise.
21040         * sysdeps/sh/nofpu/Implies: New file.
21041         * sysdeps/sh/s_fma.c: Remove file.
21042         * sysdeps/sh/s_fmaf.c: Likewise.
21043         * sysdeps/tile/Implies: Add ieee754/soft-fp.
21044         * sysdeps/tile/s_fma.c: Remove file.
21045         * sysdeps/tile/s_fmaf.c: Likewise.
21047 2017-12-12  H.J. Lu  <hongjiu.lu@intel.com>
21049         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
21050         Add s_cosf-sse2 and s_cosf-fma.
21051         (CFLAGS-s_cosf-fma.c): New.
21052         * sysdeps/x86_64/fpu/multiarch/s_cosf-fma.c: New file.
21053         * sysdeps/x86_64/fpu/multiarch/s_cosf-sse2.c: Likewise.
21054         * sysdeps/x86_64/fpu/multiarch/s_cosf.c: Likewise.
21056 2017-12-12  Steve Ellcey  <sellcey@cavium.com>
21058         * nscd/nscd.h (init_traced_file): Change strncpy to memcpy.
21060 2017-12-12  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
21062         * libio/Makefile (tests): Add tst-bz22415.
21063         (tst-bz22415-ENV): New rule.
21064         (generated): Add tst-bz22415.mtrace and tst-bz22415.check.
21065         (tests-special): Add tst-bz22415-mem.out.
21066         ($(objpfx)tst-bz22415-mem.out): New rule.
21067         * libio/fileops.c (_IO_new_file_seekoff): Call _IO_free_backup_area
21068         in case of a successful seek operation.
21069         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
21070         (_IO_wfile_overflow): Call _IO_free_wbackup_area in case a write
21071         buffer is required.
21072         * libio/tst-bz22415.c: New test.
21074         * sysdeps/ia64/fpu/libm-test-ulps: Update.
21076 2017-12-12  James Clarke  <jrtc27@jrtc27.com>
21078         * sysdeps/unix/sysv/linux/ia64/ipc_priv.h: New file defining
21079         __IPC_64 to 0 to avoid IPC_64 being set.
21081 2017-12-12  Szabolcs Nagy  <szabolcs.nagy@arm.com>
21083         [BZ #22593]
21084         * math/bits/mathcalls.h (nextafter): Remove const.
21085         (nexttoward): Likewise.
21087 2017-12-12  Joseph Myers  <joseph@codesourcery.com>
21089         * configure.ac (--with-fp): Remove configure option.
21090         (with_fp_cond): New variable.
21091         (libc_cv_with_fp): New configure test.  Use this variable instead
21092         of with_fp.
21093         * configure: Regenerated.
21094         * config.make.in (with-fp): Use @libc_cv_with_fp@.
21095         * manual/install.texi (Configuring and compiling): Remove
21096         --without-fp.
21097         * INSTALL: Regenerated.
21098         * sysdeps/m68k/preconfigure (with_fp_cond): Define for ColdFire.
21099         * sysdeps/mips/preconfigure (with_fp_cond): Define.
21100         * sysdeps/powerpc/preconfigure (with_fp_cond): Define for 32-bit.
21101         * sysdeps/sh/preconfigure (with_fp_cond): Define.
21102         * scripts/build-many-glibcs.py (Context.add_all_configs): Do not
21103         use --without-fp to configure glibc.
21105 2017-12-12  Rical Jasan  <ricaljasan@pacific.net>
21107         * manual/locale.texi (nl_langinfo): Fix a typo.
21109 2017-12-12  Aurelien Jarno  <aurelien@aurel32.net>
21111         [BZ #22588]
21112         * manual/conf.texi (SC_SSIZE_MAX): Rename into _SC_SSIZE_MAX.
21114 2017-12-11  H.J. Lu  <hongjiu.lu@intel.com>
21116         * argp/Makefile (CFLAGS-argp-help.c): Replace = with +=.
21117         (CFLAGS-argp-parse.c): Likewise.
21118         (CFLAGS-argp-fmtstream.c): Likewise.
21119         * crypt/Makefile (CPPFLAGS-sha256-crypt.c): Likewise.
21120         (CPPFLAGS-sha512-crypt.c): Likewise.
21121         (CPPFLAGS-md5-crypt.c): Likewise.
21122         * debug/Makefile (CFLAGS-stack_chk_fail.c): Likewise.
21123         (CFLAGS-stack_chk_fail_local.c): Likewise.
21124         (CFLAGS-backtrace.c): Likewise.
21125         (CFLAGS-sprintf_chk.c): Likewise.
21126         (CFLAGS-snprintf_chk.c): Likewise.
21127         (CFLAGS-vsprintf_chk.c): Likewise.
21128         (CFLAGS-vsnprintf_chk.c): Likewise.
21129         (CFLAGS-asprintf_chk.c): Likewise.
21130         (CFLAGS-vasprintf_chk.c): Likewise.
21131         (CFLAGS-obprintf_chk.c): Likewise.
21132         (CFLAGS-dprintf_chk.c): Likewise.
21133         (CFLAGS-vdprintf_chk.c): Likewise.
21134         (CFLAGS-printf_chk.c): Likewise.
21135         (CFLAGS-fprintf_chk.c): Likewise.
21136         (CFLAGS-vprintf_chk.c): Likewise.
21137         (CFLAGS-vfprintf_chk.c): Likewise.
21138         (CFLAGS-gets_chk.c): Likewise.
21139         (CFLAGS-fgets_chk.c): Likewise.
21140         (CFLAGS-fgets_u_chk.c): Likewise.
21141         (CFLAGS-fread_chk.c): Likewise.
21142         (CFLAGS-fread_u_chk.c): Likewise.
21143         (CFLAGS-swprintf_chk.c): Likewise.
21144         (CFLAGS-vswprintf_chk.c): Likewise.
21145         (CFLAGS-wprintf_chk.c): Likewise.
21146         (CFLAGS-fwprintf_chk.c): Likewise.
21147         (CFLAGS-vwprintf_chk.c): Likewise.
21148         (CFLAGS-vfwprintf_chk.c): Likewise.
21149         (CFLAGS-fgetws_chk.c): Likewise.
21150         (CFLAGS-fgetws_u_chk.c): Likewise.
21151         (CFLAGS-read_chk.c): Likewise.
21152         (CFLAGS-pread_chk.c): Likewise.
21153         (CFLAGS-pread64_chk.c): Likewise.
21154         (CFLAGS-recv_chk.c): Likewise.
21155         (CFLAGS-recvfrom_chk.c): Likewise.
21156         (CFLAGS-tst-longjmp_chk.c): Likewise.
21157         (CPPFLAGS-tst-longjmp_chk.c): Likewise.
21158         (CFLAGS-tst-longjmp_chk2.c): Likewise.
21159         (CPPFLAGS-tst-longjmp_chk2.c): Likewise.
21160         (CFLAGS-tst-longjmp_chk3.c): Likewise.
21161         (CPPFLAGS-tst-longjmp_chk3.c): Likewise.
21162         (CFLAGS-tst-chk1.c): Likewise.
21163         (CFLAGS-tst-chk2.c): Likewise.
21164         (CFLAGS-tst-chk3.c): Likewise.
21165         (CFLAGS-tst-chk4.cc): Likewise.
21166         (CFLAGS-tst-chk5.cc): Likewise.
21167         (CFLAGS-tst-chk6.cc): Likewise.
21168         (CFLAGS-tst-lfschk1.c): Likewise.
21169         (CFLAGS-tst-lfschk2.c): Likewise.
21170         (CFLAGS-tst-lfschk3.c): Likewise.
21171         (CFLAGS-tst-lfschk4.cc): Likewise.
21172         (CFLAGS-tst-lfschk5.cc): Likewise.
21173         (CFLAGS-tst-lfschk6.cc): Likewise.
21174         (CFLAGS-tst-ssp-1.c): Likewise.
21175         * dirent/Makefile (CFLAGS-scandir.c): Likewise.
21176         (CFLAGS-scandir64.c): Likewise.
21177         (CFLAGS-scandir-tail.c): Likewise.
21178         (CFLAGS-scandir64-tail.c): Likewise.
21179         * elf/Makefile (CPPFLAGS-dl-tunables.c): Likewise.
21180         (CFLAGS-dl-tunables.c): Likewise.
21181         (CFLAGS-dl-runtime.c): Likewise.
21182         (CFLAGS-dl-lookup.c): Likewise.
21183         (CFLAGS-dl-iterate-phdr.c): Likewise.
21184         (CFLAGS-vismain.c): Likewise.
21185         (CFLAGS-tst-linkall-static.c): Likewise.
21186         (CFLAGS-tst-linkall-static.c): Likewise.
21187         (CPPFLAGS-dl-load.c): Likewise.
21188         (CFLAGS-ldconfig.c): Likewise.
21189         (CFLAGS-dl-cache.c): Likewise.
21190         (CFLAGS-cache.c): Likewise.
21191         (CFLAGS-rtld.c): Likewise.
21192         (CFLAGS-multiload.c): Likewise.
21193         (CFLAGS-filtmod1.c): Likewise.
21194         (CFLAGS-tst-align.c): Likewise.
21195         (CFLAGS-tst-align2.c): Likewise.
21196         (CFLAGS-tst-alignmod.c): Likewise.
21197         (CFLAGS-tst-alignmod2.c): Likewise.
21198         (CPPFLAGS-tst-execstack.c): Likewise.
21199         (CFLAGS-tst-ptrguard1-static.c): Likewise.
21200         (CFLAGS-tst-latepthreadmod.c): Likewise.
21201         * grp/Makefile (CFLAGS-getgrgid_r.c): Likewise.
21202         (CFLAGS-getgrnam_r.c): Likewise.
21203         (CFLAGS-getgrent_r.c): Likewise.
21204         (CFLAGS-getgrent.c): Likewise.
21205         (CFLAGS-fgetgrent.c): Likewise.
21206         (CFLAGS-fgetgrent_r.c): Likewise.
21207         (CFLAGS-putgrent.c): Likewise.
21208         (CFLAGS-initgroups.c): Likewise.
21209         (CFLAGS-getgrgid.c): Likewise.
21210         * gshadow/Makefile (CFLAGS-getsgent_r.c): Likewise.
21211         (CFLAGS-getsgent.c): Likewise.
21212         (CFLAGS-fgetsgent.c): Likewise.
21213         (CFLAGS-fgetsgent_r.c): Likewise.
21214         (CFLAGS-putsgent.c): Likewise.
21215         (CFLAGS-getsgnam.c): Likewise.
21216         (CFLAGS-getsgnam_r.c): Likewise.
21217         * iconv/Makefile (CFLAGS-iconv_prog.c): Likewise.
21218         (CFLAGS-iconv_charmap.c): Likewise.
21219         (CFLAGS-dummy-repertoire.c): Likewise.
21220         (CFLAGS-charmap.c): Likewise.
21221         (CFLAGS-linereader.c): Likewise.
21222         (CFLAGS-simple-hash.c): Likewise.
21223         (CFLAGS-gconv_conf.c): Likewise.
21224         (CFLAGS-iconvconfig.c): Likewise.
21225         * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
21226         (CFLAGS-gethstbyad.c): Likewise.
21227         (CFLAGS-gethstbynm_r.c): Likewise.
21228         (CFLAGS-gethstbynm.c): Likewise.
21229         (CFLAGS-gethstbynm2_r.c): Likewise.
21230         (CFLAGS-gethstbynm2.c): Likewise.
21231         (CFLAGS-gethstent_r.c): Likewise.
21232         (CFLAGS-gethstent.c): Likewise.
21233         (CFLAGS-rcmd.c): Likewise.
21234         (CFLAGS-getnetbynm_r.c): Likewise.
21235         (CFLAGS-getnetbynm.c): Likewise.
21236         (CFLAGS-getnetbyad_r.c): Likewise.
21237         (CFLAGS-getnetbyad.c): Likewise.
21238         (CFLAGS-getnetent_r.c): Likewise.
21239         (CFLAGS-getnetent.c): Likewise.
21240         (CFLAGS-getaliasent_r.c): Likewise.
21241         (CFLAGS-getaliasent.c): Likewise.
21242         (CFLAGS-getrpcent_r.c): Likewise.
21243         (CFLAGS-getrpcent.c): Likewise.
21244         (CFLAGS-getservent_r.c): Likewise.
21245         (CFLAGS-getservent.c): Likewise.
21246         (CFLAGS-getprtent_r.c): Likewise.
21247         (CFLAGS-getprtent.c): Likewise.
21248         (CFLAGS-either_ntoh.c): Likewise.
21249         (CFLAGS-either_hton.c): Likewise.
21250         (CFLAGS-getnetgrent.c): Likewise.
21251         (CFLAGS-getnetgrent_r.c): Likewise.
21252         (CFLAGS-tst-checks-posix.c): Likewise.
21253         (CFLAGS-tst-sockaddr.c): Likewise.
21254         * intl/Makefile (CFLAGS-tst-gettext.c): Likewise.
21255         (CFLAGS-tst-translit.c): Likewise.
21256         (CFLAGS-tst-gettext2.c): Likewise.
21257         (CFLAGS-tst-codeset.c): Likewise.
21258         (CFLAGS-tst-gettext3.c): Likewise.
21259         (CFLAGS-tst-gettext4.c): Likewise.
21260         (CFLAGS-tst-gettext5.c): Likewise.
21261         (CFLAGS-tst-gettext6.c): Likewise.
21262         * io/Makefile (CFLAGS-open.c): Likewise.
21263         (CFLAGS-open64.c): Likewise.
21264         (CFLAGS-creat.c): Likewise.
21265         (CFLAGS-creat64.c): Likewise.
21266         (CFLAGS-fcntl.c): Likewise.
21267         (CFLAGS-poll.c): Likewise.
21268         (CFLAGS-ppoll.c): Likewise.
21269         (CFLAGS-lockf.c): Likewise.
21270         (CFLAGS-statfs.c): Likewise.
21271         (CFLAGS-fstatfs.c): Likewise.
21272         (CFLAGS-statvfs.c): Likewise.
21273         (CFLAGS-fstatvfs.c): Likewise.
21274         (CFLAGS-fts.c): Likewise.
21275         (CFLAGS-fts64.c): Likewise.
21276         (CFLAGS-ftw.c): Likewise.
21277         (CFLAGS-ftw64.c): Likewise.
21278         (CFLAGS-lockf.c): Likewise.
21279         (CFLAGS-posix_fallocate.c): Likewise.
21280         (CFLAGS-posix_fallocate64.c): Likewise.
21281         (CFLAGS-fallocate.c): Likewise.
21282         (CFLAGS-fallocate64.c): Likewise.
21283         (CFLAGS-read.c): Likewise.
21284         (CFLAGS-write.c): Likewise.
21285         (CFLAGS-test-stat.c): Likewise.
21286         (CFLAGS-test-lfs.c): Likewise.
21287         * libio/Makefile (CFLAGS-fileops.c): Likewise.
21288         (CFLAGS-fputc.c): Likewise.
21289         (CFLAGS-fputwc.c): Likewise.
21290         (CFLAGS-freopen64.c): Likewise.
21291         (CFLAGS-freopen.c): Likewise.
21292         (CFLAGS-fseek.c): Likewise.
21293         (CFLAGS-fseeko64.c): Likewise.
21294         (CFLAGS-fseeko.c): Likewise.
21295         (CFLAGS-ftello64.c): Likewise.
21296         (CFLAGS-ftello.c): Likewise.
21297         (CFLAGS-fwide.c): Likewise.
21298         (CFLAGS-genops.c): Likewise.
21299         (CFLAGS-getc.c): Likewise.
21300         (CFLAGS-getchar.c): Likewise.
21301         (CFLAGS-getwc.c): Likewise.
21302         (CFLAGS-getwchar.c): Likewise.
21303         (CFLAGS-iofclose.c): Likewise.
21304         (CFLAGS-iofflush.c): Likewise.
21305         (CFLAGS-iofgetpos64.c): Likewise.
21306         (CFLAGS-iofgetpos.c): Likewise.
21307         (CFLAGS-iofgets.c): Likewise.
21308         (CFLAGS-iofgetws.c): Likewise.
21309         (CFLAGS-iofputs.c): Likewise.
21310         (CFLAGS-iofputws.c): Likewise.
21311         (CFLAGS-iofread.c): Likewise.
21312         (CFLAGS-iofsetpos64.c): Likewise.
21313         (CFLAGS-iofsetpos.c): Likewise.
21314         (CFLAGS-ioftell.c): Likewise.
21315         (CFLAGS-iofwrite.c): Likewise.
21316         (CFLAGS-iogetdelim.c): Likewise.
21317         (CFLAGS-iogetline.c): Likewise.
21318         (CFLAGS-iogets.c): Likewise.
21319         (CFLAGS-iogetwline.c): Likewise.
21320         (CFLAGS-ioputs.c): Likewise.
21321         (CFLAGS-ioseekoff.c): Likewise.
21322         (CFLAGS-ioseekpos.c): Likewise.
21323         (CFLAGS-iosetbuffer.c): Likewise.
21324         (CFLAGS-iosetvbuf.c): Likewise.
21325         (CFLAGS-ioungetc.c): Likewise.
21326         (CFLAGS-ioungetwc.c): Likewise.
21327         (CFLAGS-oldfileops.c): Likewise.
21328         (CFLAGS-oldiofclose.c): Likewise.
21329         (CFLAGS-oldiofgetpos64.c): Likewise.
21330         (CFLAGS-oldiofgetpos.c): Likewise.
21331         (CFLAGS-oldiofsetpos64.c): Likewise.
21332         (CFLAGS-oldiofsetpos.c): Likewise.
21333         (CFLAGS-peekc.c): Likewise.
21334         (CFLAGS-putc.c): Likewise.
21335         (CFLAGS-putchar.c): Likewise.
21336         (CFLAGS-putwc.c): Likewise.
21337         (CFLAGS-putwchar.c): Likewise.
21338         (CFLAGS-rewind.c): Likewise.
21339         (CFLAGS-wfileops.c): Likewise.
21340         (CFLAGS-wgenops.c): Likewise.
21341         (CFLAGS-oldiofopen.c): Likewise.
21342         (CFLAGS-iofopen.c): Likewise.
21343         (CFLAGS-iofopen64.c): Likewise.
21344         (CFLAGS-oldtmpfile.c): Likewise.
21345         (CFLAGS-tst_putwc.c): Likewise.
21346         * locale/Makefile (CFLAGS-md5.c): Likewise.
21347         (CFLAGS-charmap.c): Likewise.
21348         (CFLAGS-locfile.c): Likewise.
21349         (CFLAGS-charmap-dir.c): Likewise.
21350         * login/Makefile (CFLAGS-grantpt.c): Likewise.
21351         (CFLAGS-getpt.c): Likewise.
21352         (CFLAGS-pt_chown.c): Likewise.
21353         * malloc/Makefile (CFLAGS-mcheck-init.c): Likewise.
21354         (CFLAGS-obstack.c): Likewise.
21355         * math/Makefile (CFLAGS-test-tgmath3.c): Likewise.
21356         (CFLAGS-test-double-vlen4-wrappers.c): Likewise.
21357         (CFLAGS-test-double-vlen8-wrappers.c): Likewise.
21358         (CFLAGS-test-float-vlen8-wrappers.c): Likewise.
21359         (CFLAGS-test-float-vlen16-wrappers.c): Likewise.
21360         (CFLAGS-test-tgmath.c): Likewise.
21361         (CFLAGS-test-tgmath2.c): Likewise.
21362         (CFLAGS-test-tgmath-ret.c): Likewise.
21363         (CFLAGS-test-powl.c): Likewise.
21364         (CFLAGS-test-snan.c): Likewise.
21365         (CFLAGS-test-signgam-finite.c): Likewise.
21366         (CFLAGS-test-signgam-finite-c99.c): Likewise.
21367         (CFLAGS-test-signgam-finite-c11.c): Likewise.
21368         (CFLAGS-test-signgam-uchar.c): Likewise.
21369         (CFLAGS-test-signgam-uchar-init.c): Likewise.
21370         (CFLAGS-test-signgam-uchar-static.c): Likewise.
21371         (CFLAGS-test-signgam-uchar-init-static.c): Likewise.
21372         (CFLAGS-test-signgam-uint.c): Likewise.
21373         (CFLAGS-test-signgam-uint-init.c): Likewise.
21374         (CFLAGS-test-signgam-uint-static.c): Likewise.
21375         (CFLAGS-test-signgam-uint-init-static.c): Likewise.
21376         (CFLAGS-test-signgam-ullong.c): Likewise.
21377         (CFLAGS-test-signgam-ullong-init.c): Likewise.
21378         (CFLAGS-test-signgam-ullong-static.c): Likewise.
21379         (CFLAGS-test-signgam-ullong-init-static.c): Likewise.
21380         (CFLAGS-test-math-cxx11.cc): Likewise.
21381         (CFLAGS-test-math-isinff.cc): Likewise.
21382         (CFLAGS-test-math-iszero.cc): Likewise.
21383         (CFLAGS-test-math-issignaling.cc): Likewise.
21384         (CFLAGS-test-math-iscanonical.cc): Likewise.
21385         (CFLAGS-test-iszero-excess-precision.c): Likewise.
21386         (CFLAGS-test-iseqsig-excess-precision.c): Likewise.
21387         (CFLAGS-test-flt-eval-method.c): Likewise.
21388         (CFLAGS-test-fe-snans-always-signal.c): Likewise.
21389         (CFLAGS-test-finite-macros.c): Likewise.
21390         * misc/Makefile (CFLAGS-select.c): Likewise.
21391         (CFLAGS-tsearch.c): Likewise.
21392         (CFLAGS-lsearch.c): Likewise.
21393         (CFLAGS-pselect.c): Likewise.
21394         (CFLAGS-readv.c): Likewise.
21395         (CFLAGS-writev.c): Likewise.
21396         (CFLAGS-preadv.c): Likewise.
21397         (CFLAGS-preadv64.c): Likewise.
21398         (CFLAGS-pwritev.c): Likewise.
21399         (CFLAGS-pwritev64.c): Likewise.
21400         (CFLAGS-preadv2.c): Likewise.
21401         (CFLAGS-preadv64v2.c): Likewise.
21402         (CFLAGS-pwritev2.c): Likewise.
21403         (CFLAGS-pwritev64v2.c): Likewise.
21404         (CFLAGS-usleep.c): Likewise.
21405         (CFLAGS-syslog.c): Likewise.
21406         (CFLAGS-error.c): Likewise.
21407         (CFLAGS-getpass.c): Likewise.
21408         (CFLAGS-mkstemp.c): Likewise.
21409         (CFLAGS-mkstemp64.c): Likewise.
21410         (CFLAGS-getsysstats.c): Likewise.
21411         (CFLAGS-getusershell.c): Likewise.
21412         (CFLAGS-err.c): Likewise.
21413         (CFLAGS-tst-tsearch.c): Likewise.
21414         (CFLAGS-msync.c): Likewise.
21415         (CFLAGS-fdatasync.c): Likewise.
21416         (CFLAGS-fsync.c): Likewise.
21417         * nptl/Makefile (CFLAGS-nptl-init.c): Likewise.
21418         (CFLAGS-unwind.c): Likewise.
21419         (CFLAGS-unwind-forcedunwind.c): Likewise.
21420         (CFLAGS-pthread_cancel.c): Likewise.
21421         (CFLAGS-pthread_setcancelstate.c): Likewise.
21422         (CFLAGS-pthread_setcanceltype.c): Likewise.
21423         (CFLAGS-cancellation.c): Likewise.
21424         (CFLAGS-libc-cancellation.c): Likewise.
21425         (CFLAGS-pthread_exit.c): Likewise.
21426         (CFLAGS-forward.c): Likewise.
21427         (CFLAGS-pthread_testcancel.c): Likewise.
21428         (CFLAGS-pthread_join.c): Likewise.
21429         (CFLAGS-pthread_timedjoin.c): Likewise.
21430         (CFLAGS-pthread_once.c): Likewise.
21431         (CFLAGS-pthread_cond_wait.c): Likewise.
21432         (CFLAGS-sem_wait.c): Likewise.
21433         (CFLAGS-sem_timedwait.c): Likewise.
21434         (CFLAGS-fcntl.c): Likewise.
21435         (CFLAGS-lockf.c): Likewise.
21436         (CFLAGS-pread.c): Likewise.
21437         (CFLAGS-pread64.c): Likewise.
21438         (CFLAGS-pwrite.c): Likewise.
21439         (CFLAGS-pwrite64.c): Likewise.
21440         (CFLAGS-wait.c): Likewise.
21441         (CFLAGS-waitpid.c): Likewise.
21442         (CFLAGS-sigwait.c): Likewise.
21443         (CFLAGS-msgrcv.c): Likewise.
21444         (CFLAGS-msgsnd.c): Likewise.
21445         (CFLAGS-tcdrain.c): Likewise.
21446         (CFLAGS-open.c): Likewise.
21447         (CFLAGS-open64.c): Likewise.
21448         (CFLAGS-pause.c): Likewise.
21449         (CFLAGS-recv.c): Likewise.
21450         (CFLAGS-send.c): Likewise.
21451         (CFLAGS-accept.c): Likewise.
21452         (CFLAGS-sendto.c): Likewise.
21453         (CFLAGS-connect.c): Likewise.
21454         (CFLAGS-recvfrom.c): Likewise.
21455         (CFLAGS-recvmsg.c): Likewise.
21456         (CFLAGS-sendmsg.c): Likewise.
21457         (CFLAGS-close.c): Likewise.
21458         (CFLAGS-read.c): Likewise.
21459         (CFLAGS-write.c): Likewise.
21460         (CFLAGS-nanosleep.c): Likewise.
21461         (CFLAGS-sigsuspend.c): Likewise.
21462         (CFLAGS-msync.c): Likewise.
21463         (CFLAGS-fdatasync.c): Likewise.
21464         (CFLAGS-fsync.c): Likewise.
21465         (CFLAGS-pt-system.c): Likewise.
21466         (CFLAGS-tst-cleanup2.c): Likewise.
21467         (CFLAGS-tst-cleanupx2.c): Likewise.
21468         (CFLAGS-flockfile.c): Likewise.
21469         (CFLAGS-ftrylockfile.c): Likewise.
21470         (CFLAGS-funlockfile.c): Likewise.
21471         (CFLAGS-tst-initializers1.c): Likewise.
21472         (CFLAGS-tst-initializers1-c89.c): Likewise.
21473         (CFLAGS-tst-initializers1-c99.c): Likewise.
21474         (CFLAGS-tst-initializers1-c11.c): Likewise.
21475         (CFLAGS-tst-initializers1-gnu89.c): Likewise.
21476         (CFLAGS-tst-initializers1-gnu99.c): Likewise.
21477         (CFLAGS-tst-initializers1-gnu11.c): Likewise.
21478         * nscd/Makefile (CFLAGS-nscd_getpw_r.c): Likewise.
21479         (CFLAGS-nscd_getgr_r.c): Likewise.
21480         (CFLAGS-nscd_gethst_r.c): Likewise.
21481         (CFLAGS-nscd_getai.c): Likewise.
21482         (CFLAGS-nscd_initgroups.c): Likewise.
21483         * posix/Makefile (CFLAGS-getaddrinfo.c): Likewise.
21484         (CFLAGS-pause.c): Likewise.
21485         (CFLAGS-pread.c): Likewise.
21486         (CFLAGS-pread64.c): Likewise.
21487         (CFLAGS-pwrite.c): Likewise.
21488         (CFLAGS-pwrite64.c): Likewise.
21489         (CFLAGS-sleep.c): Likewise.
21490         (CFLAGS-wait.c): Likewise.
21491         (CFLAGS-waitid.c): Likewise.
21492         (CFLAGS-waitpid.c): Likewise.
21493         (CFLAGS-getopt.c): Likewise.
21494         (CFLAGS-wordexp.c): Likewise.
21495         (CFLAGS-sysconf.c): Likewise.
21496         (CFLAGS-pathconf.c): Likewise.
21497         (CFLAGS-fpathconf.c): Likewise.
21498         (CFLAGS-spawn.c): Likewise.
21499         (CFLAGS-spawnp.c): Likewise.
21500         (CFLAGS-spawni.c): Likewise.
21501         (CFLAGS-glob.c): Likewise.
21502         (CFLAGS-glob64.c): Likewise.
21503         (CFLAGS-getconf.c): Likewise.
21504         (CFLAGS-nanosleep.c): Likewise.
21505         * pwd/Makefile (CFLAGS-getpwent_r.c): Likewise.
21506         (CFLAGS-getpwent.c): Likewise.
21507         (CFLAGS-getpw.c): Likewise.
21508         (CFLAGS-fgetpwent_r.c): Likewise.
21509         * resolv/Makefile (CFLAGS-res_hconf.c): Likewise.
21510         * rt/Makefile (CFLAGS-aio_suspend.c): Likewise.
21511         (CFLAGS-mq_timedreceive.c): Likewise.
21512         (CFLAGS-mq_timedsend.c): Likewise.
21513         (CFLAGS-clock_nanosleep.c): Likewise.
21514         (CFLAGS-librt-cancellation.c): Likewise.
21515         * shadow/Makefile (CFLAGS-getspent_r.c): Likewise.
21516         (CFLAGS-getspent.c): Likewise.
21517         (CFLAGS-fgetspent.c): Likewise.
21518         (CFLAGS-fgetspent_r.c): Likewise.
21519         (CFLAGS-putspent.c): Likewise.
21520         (CFLAGS-getspnam.c): Likewise.
21521         (CFLAGS-getspnam_r.c): Likewise.
21522         * signal/Makefile (CFLAGS-sigpause.c): Likewise.
21523         (CFLAGS-sigsuspend.c): Likewise.
21524         (CFLAGS-sigtimedwait.c): Likewise.
21525         (CFLAGS-sigwait.c): Likewise.
21526         (CFLAGS-sigwaitinfo.c): Likewise.
21527         (CFLAGS-sigreturn.c): Likewise.
21528         * stdio-common/Makefile (CFLAGS-vfprintf.c): Likewise.
21529         (CFLAGS-vfwprintf.c): Likewise.
21530         (CFLAGS-tmpfile.c): Likewise.
21531         (CFLAGS-tmpfile64.c): Likewise.
21532         (CFLAGS-tempname.c): Likewise.
21533         (CFLAGS-psignal.c): Likewise.
21534         (CFLAGS-vprintf.c): Likewise.
21535         (CFLAGS-cuserid.c): Likewise.
21536         (CFLAGS-errlist.c): Likewise.
21537         (CFLAGS-siglist.c): Likewise.
21538         (CFLAGS-scanf15.c): Likewise.
21539         (CFLAGS-scanf17.c): Likewise.
21540         * stdlib/Makefile (CFLAGS-bsearch.c): Likewise.
21541         (CFLAGS-msort.c): Likewise.
21542         (CFLAGS-qsort.c): Likewise.
21543         (CFLAGS-system.c): Likewise.
21544         (CFLAGS-fmtmsg.c): Likewise.
21545         (CFLAGS-strfmon.c): Likewise.
21546         (CFLAGS-strfmon_l.c): Likewise.
21547         (CFLAGS-strfromd.c): Likewise.
21548         (CFLAGS-strfromf.c): Likewise.
21549         (CFLAGS-strfroml.c): Likewise.
21550         (CFLAGS-tst-bsearch.c): Likewise.
21551         (CFLAGS-tst-qsort.c): Likewise.
21552         (CFLAGS-tst-makecontext2.c): Likewise.
21553         * sunrpc/Makefile (CFLAGS-xbootparam_prot.c): Likewise.
21554         (CFLAGS-xnlm_prot.c): Likewise.
21555         (CFLAGS-xrstat.c): Likewise.
21556         (CFLAGS-xyppasswd.c): Likewise.
21557         (CFLAGS-xklm_prot.c): Likewise.
21558         (CFLAGS-xrex.c): Likewise.
21559         (CFLAGS-xsm_inter.c): Likewise.
21560         (CFLAGS-xmount.c): Likewise.
21561         (CFLAGS-xrusers.c): Likewise.
21562         (CFLAGS-xspray.c): Likewise.
21563         (CFLAGS-xnfs_prot.c): Likewise.
21564         (CFLAGS-xrquota.c): Likewise.
21565         (CFLAGS-xkey_prot.c): Likewise.
21566         (CFLAGS-auth_unix.c): Likewise.
21567         (CFLAGS-key_call.c): Likewise.
21568         (CFLAGS-pmap_rmt.c): Likewise.
21569         (CFLAGS-clnt_perr.c): Likewise.
21570         (CFLAGS-openchild.c): Likewise.
21571         * sysvipc/Makefile (CFLAGS-msgrcv.c): Likewise.
21572         (CFLAGS-msgsnd.c): Likewise.
21573         * termios/Makefile (CFLAGS-tcdrain.c): Likewise.
21574         * time/Makefile (CFLAGS-tzfile.c): Likewise.
21575         (CFLAGS-tzset.c): Likewise.
21576         (CFLAGS-getdate.c): Likewise.
21577         (CFLAGS-test_time.c): Likewise.
21578         (CPPFLAGS-tst-tzname.c): Likewise.
21579         * timezone/Makefile (CFLAGS-zdump.c): Likewise.
21580         (CFLAGS-zic.c): Likewise.
21581         * wcsmbs/Makefile (CFLAGS-wcwidth.c): Likewise.
21582         (CFLAGS-wcswidth.c): Likewise.
21583         (CFLAGS-wcstol.c): Likewise.
21584         (CFLAGS-wcstoul.c): Likewise.
21585         (CFLAGS-wcstoll.c): Likewise.
21586         (CFLAGS-wcstoull.c): Likewise.
21587         (CFLAGS-wcstod.c): Likewise.
21588         (CFLAGS-wcstold.c): Likewise.
21589         (CFLAGS-wcstof128.c): Likewise.
21590         (CFLAGS-wcstof.c): Likewise.
21591         (CFLAGS-wcstol_l.c): Likewise.
21592         (CFLAGS-wcstoul_l.c): Likewise.
21593         (CFLAGS-wcstoll_l.c): Likewise.
21594         (CFLAGS-wcstoull_l.c): Likewise.
21595         (CFLAGS-wcstod_l.c): Likewise.
21596         (CFLAGS-wcstold_l.c): Likewise.
21597         (CFLAGS-wcstof128_l.c): Likewise.
21598         (CFLAGS-wcstof_l.c): Likewise.
21599         (CPPFLAGS-tst-wchar-h.c): Likewise.
21600         (CPPFLAGS-wcstold_l.c): Likewise.
21602 2017-12-11  Paul A. Clarke  <pc@us.ibm.com>
21604         * sysdeps/ieee754/flt-32/s_cosf.c: New implementation.
21606 2017-12-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
21607             Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
21609         * manual/tunables.texi (Hardware Capability Tunables): Document
21610         glibc.tune.cached_memopt.
21611         * sysdeps/powerpc/cpu-features.c: New file.
21612         * sysdeps/powerpc/cpu-features.h: New file.
21613         * sysdeps/powerpc/dl-procinfo.c [!IS_IN(ldconfig)]: Add
21614         _dl_powerpc_cpu_features.
21615         * sysdeps/powerpc/dl-tunables.list: New file.
21616         * sysdeps/powerpc/ldsodefs.h: Include cpu-features.h.
21617         * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h
21618         (INIT_ARCH): Initialize use_aligned_memopt.
21619         * sysdeps/powerpc/powerpc64/dl-machine.h [defined(SHARED &&
21620         IS_IN(rtld))]: Restrict dl_platform_init availability and
21621         initialize CPU features used by tunables.
21622         * sysdeps/powerpc/powerpc64/multiarch/Makefile (sysdep_routines):
21623         Add memcpy-power8-cached.
21624         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Add
21625         __memcpy_power8_cached.
21626         * sysdeps/powerpc/powerpc64/multiarch/memcpy.c: Likewise.
21627         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power8-cached.S:
21628         New file.
21630 2017-12-11  H.J. Lu  <hongjiu.lu@intel.com>
21632         * string/Makefile (CFLAGS-inl-tester.c): Replace = with +=.
21633         (CFLAGS-noinl-tester.c): Likewise.
21634         (CFLAGS-tst-strlen.c): Likewise.
21635         (CFLAGS-stratcliff.c): Likewise.
21636         (CFLAGS-test-ffs.c): Likewise.
21637         (CFLAGS-tst-inlcall.c): Likewise.
21638         (CFLAGS-tst-xbzero-opt.c): Likewise.
21639         (CFLAGS-memcpy.c): Likewise.
21640         (CFLAGS-wordcopy.c): Likewise.
21642 2017-12-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
21644         * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
21645         Store r15 on stack and add cfi rule.
21646         * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
21647         Likewise.
21649 2017-12-10  Aurelien Jarno  <aurelien@aurel32.net>
21651         [BZ #22577]
21652         * elf/rtld.c (init_tls): Add missing new line to the _dl_fatal_printf
21653         call.
21655 2017-12-07  H.J. Lu  <hongjiu.lu@intel.com>
21657         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
21658         Add s_sinf-sse2 and s_sinf-fma.
21659         (CFLAGS-s_sinf-fma.c): New.
21660         * sysdeps/x86_64/fpu/multiarch/s_sinf-fma.c: New file.
21661         * sysdeps/x86_64/fpu/multiarch/s_sinf-sse2.c: Likewise.
21662         * sysdeps/x86_64/fpu/multiarch/s_sinf.c: Likewise.
21664 2017-12-07  H.J. Lu  <hongjiu.lu@intel.com>
21666         * sysdeps/x86_64/fpu/s_sinf.S: Removed.
21668 2017-12-07  Joseph Myers  <joseph@codesourcery.com>
21670         [BZ #22568]
21671         * math/s_ctan_template.c (M_DECL_FUNC (__ctan)): Set imaginary
21672         part of result to imaginary part of argument if it is zero and the
21673         real part of the argument is not finite.
21674         * math/s_ctanh_template.c (M_DECL_FUNC (__ctanh)): Set real part
21675         of result to real part of argument if it is zero and the imaginary
21676         part of the argument is not finite.
21678 2017-12-07  Mike FABIAN  <mfabian@redhat.com>
21680         [BZ #22524]
21681         * localedata/Makefile: Add lt_LT.UTF-8 to test-input
21682         and to the list of locales to be built for testing.
21683         * localedata/lt_LT.UTF-8.in: New file for testing the collation.
21684         * localedata/locales/lt_LT (LC_COLLATE): Use “copy "iso14651_t1"”
21685         and build the collation rules upon that.
21687 2017-12-07  Joseph Myers  <joseph@codesourcery.com>
21689         * bits/floatn-common.h (__HAVE_FLOAT32): Define to 1.
21690         * manual/math.texi (Mathematics): Document support for _Float32.
21691         * math/Makefile (test-types): Add float32.
21692         * math/Versions (GLIBC_2.27): Add _Float32 functions.
21693         * stdlib/Versions (GLIBC_2.27): Likewise.
21694         * wcsmbs/Versions (GLIBC_2.27): Likewise.
21695         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
21696         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
21697         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
21698         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
21699         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
21700         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
21701         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
21702         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
21703         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
21704         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
21705         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
21706         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
21707         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
21708         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
21709         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
21710         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
21711         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
21712         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
21713         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
21714         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
21715         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
21716         Likewise.
21717         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
21718         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
21719         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
21720         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
21721         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
21722         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
21723         Likewise.
21724         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
21725         Likewise.
21726         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
21727         Likewise.
21728         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
21729         Likewise.
21731         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
21732         Likewise.
21733         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
21734         Likewise.
21735         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
21736         Likewise.
21737         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
21738         Likewise.
21739         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
21740         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
21741         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
21742         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
21743         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
21744         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
21745         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
21746         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
21747         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
21748         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
21749         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
21750         Likewise.
21751         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
21752         Likewise.
21753         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
21754         Likewise.
21755         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
21756         Likewise.
21757         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
21758         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
21759         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
21760         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
21761         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
21762         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
21763         * sysdeps/i386/fpu/libm-test-ulps: Likewise.
21764         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
21766 2017-12-06  Joseph Myers  <joseph@codesourcery.com>
21768         * stdlib/strtof.c: Include <bits/floatn.h>
21769         [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strtof32): Define
21770         and later undefine as macro.  Define as weak alias if
21771         [!USE_WIDE_CHAR].
21772         [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (wcstof32): Define
21773         and later undefine as macro.  Define as weak alias if
21774         [USE_WIDE_CHAR].
21775         * stdlib/strtof_l.c: Include <bits/floatn.h>
21776         [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strtof32_l): Define
21777         and later undefine as macro.  Define as weak alias if
21778         [!USE_WIDE_CHAR].
21779         [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (wcstof32_l): Define
21780         and later undefine as macro.  Define as weak alias if
21781         [USE_WIDE_CHAR].
21783         * stdlib/strfromf.c: Include <bits/floatn.h>.
21784         [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strfromf32): Define
21785         and later undefine as macro and define as weak alias.
21787         * math/test-float32.h: New file.
21789         * sysdeps/generic/libm-alias-float.h: Include <bits/floatn.h>.
21790         [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32]
21791         (libm_alias_float_other_r): Create f32 alias.
21792         (libm_alias_float_r): Use semicolon before call to
21793         libm_alias_float_other_r.
21795         * sysdeps/ia64/fpu/e_exp2f.S (__exp2f): Use exp2 not __exp2 as
21796         second argument to libm_alias_float_other.
21797         * sysdeps/ia64/fpu/e_log2f.S (__log2f): Use log2 not __log2 as
21798         second argument to libm_alias_float_other.
21799         * sysdeps/ia64/fpu/e_powf.S (__powf): Use pow not __pow as second
21800         argument to libm_alias_float_other.
21802         [BZ #22561]
21803         * math/s_cacosh_template.c (M_DECL_FUNC (__cacosh)): Use pi/2 for
21804         real part of result for argument 0 + i * NaN.
21805         * math/libm-test-cacosh.inc (cacosh_test_data): Update expected
21806         results for tests of 0 + i * NaN.
21808 2017-12-06  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
21810         * sysdeps/alpha/fpu/libm-test-ulps: Update.
21812 2017-12-06  David S. Miller  <davem@davemloft.net>
21814         * sysdeps/sparc/fpu/libm-test-ulps: Update
21815         exp_{downward,towardzero,upward} ulps.
21817 2017-12-06  Joseph Myers  <joseph@codesourcery.com>
21819         * sysdeps/ieee754/ldbl-96/e_j1l.c (qone): Don't make local
21820         variables static.
21822         * sysdeps/ieee754/ldbl-128/e_j0l.c (Y0_2N): Make const.
21823         (Y0_2D): Likewise.
21824         * sysdeps/ieee754/ldbl-128/e_j1l.c (Y0_2N): Likewise.
21825         (Y0_2D): Likewise.
21826         * sysdeps/ieee754/ldbl-128ibm/e_j0l.c (Y0_2N): Likewise.
21827         (Y0_2D): Likewise.
21828         * sysdeps/ieee754/ldbl-128ibm/e_j1l.c (Y0_2N): Likewise.
21829         (Y0_2D): Likewise.
21831 2017-12-06  Mike FABIAN  <mfabian@redhat.com>
21833         [BZ #22515]
21834         * localedata/Makefile: Add hsb_DE.UTF-8 to test-input
21835         and to the list of locales to be built for testing.
21836         * localedata/hsb_DE.UTF-8.in: New file for testing the collation.
21837         * localedata/locales/hsb_DE (LC_COLLATE): Use “copy "iso14651_t1"”
21838         and build the collation rules upon that.
21840 2017-12-06  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
21842         * NEWS: Add sinf to list of optimized functions.
21844 2017-12-06  Joseph Myers  <joseph@codesourcery.com>
21846         * bits/floatn-common.h (__HAVE_FLOAT64): Define to 1.
21847         (__HAVE_FLOAT32X): Likewise.
21848         * manual/math.texi (Mathematics): Document support for _Float64
21849         and _Float32x.
21850         * math/Makefile (test-types): Add float64 and float32x.
21851         * math/Versions (GLIBC_2.27): Add _Float64 and _Float32x
21852         functions.
21853         * stdlib/Versions (GLIBC_2.27): Likewise.
21854         * wcsmbs/Versions (GLIBC_2.27): Likewise.
21855         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
21856         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
21857         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
21858         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
21859         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
21860         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
21861         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
21862         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
21863         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
21864         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
21865         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
21866         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
21867         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
21868         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
21869         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
21870         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
21871         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
21872         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
21873         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
21874         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
21875         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
21876         Likewise.
21877         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
21878         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
21879         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
21880         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
21881         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
21882         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
21883         Likewise.
21884         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
21885         Likewise.
21886         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
21887         Likewise.
21888         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
21889         Likewise.
21890         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
21891         Likewise.
21892         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
21893         Likewise.
21894         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
21895         Likewise.
21896         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
21897         Likewise.
21898         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
21899         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
21900         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
21901         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
21902         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
21903         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
21904         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
21905         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
21906         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
21907         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
21908         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
21909         Likewise.
21910         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
21911         Likewise.
21912         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
21913         Likewise.
21914         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
21915         Likewise.
21916         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
21917         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
21918         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
21919         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
21920         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
21921         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
21922         * sysdeps/i386/fpu/libm-test-ulps: Likewise.
21923         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
21925 2017-12-05  Joseph Myers  <joseph@codesourcery.com>
21927         * bits/floatn-common.h: Include <bits/long-double.h>.
21928         [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
21929         && __NO_LONG_DOUBLE_MATH] (__f64): Use suffix 'l'.
21930         [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
21931         && __NO_LONG_DOUBLE_MATH] (__CFLOAT64): Use _Complex long double.
21932         [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
21933         && __NO_LONG_DOUBLE_MATH] (_Float64): Use long double.
21934         [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
21935         (__builtin_huge_valf64): Use __builtin_huge_vall.
21936         [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
21937         (__builtin_inff64): Use __builtin_infl.
21938         [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
21939         (__builtin_nanf64): Use __builtin_nanl.
21940         [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
21941         (__builtin_nansf64): Use __builtin_nansl.
21943 2017-12-05  Rogerio A. Cardoso  <rcardoso@linux.vnet.ibm.com>
21944             Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
21945             Carlos O'Donnell  <carlos@redhat.com>
21947         * elf/dl-tunables.list: Add elision parameters.
21948         * manual/tunables.texi: Add entries about elision tunable.
21949         * sysdeps/unix/sysv/linux/powerpc/elision-conf.c:
21950         Add callback functions to dynamically enable/disable elision.
21951         Add multiple callbacks functions to set elision parameters.
21952         Deleted __libc_enable_secure check.
21953         * sysdeps/unix/sysv/linux/s390/elision-conf.c: Likewise.
21954         * sysdeps/unix/sysv/linux/x86/elision-conf.c: Likewise.
21955         * configure: Regenerated.
21956         * configure.ac: Option enable_lock_elision was deleted.
21957         * config.h.in: ENABLE_LOCK_ELISION flag was deleted.
21958         * config.make.in: Remove references to enable_lock_elision.
21959         * manual/install.texi: Elision configure option was removed.
21960         * INSTALL: Regenerated to remove enable_lock_elision.
21961         * nptl/Makefile:
21962         Disable elision so it can verify error case for destroying a mutex.
21963         * sysdeps/powerpc/nptl/elide.h:
21964         Cleanup ENABLE_LOCK_ELISION check.
21965         Deleted macros for the case when ENABLE_LOCK_ELISION was not defined.
21966         * sysdeps/s390/configure: Regenerated.
21967         * sysdeps/s390/configure.ac: Remove references to enable_lock_elision..
21968         * nptl/tst-mutex8.c:
21969         Deleted all #ifndef ENABLE_LOCK_ELISION from the test.
21970         * sysdeps/powerpc/powerpc32/sysdep.h:
21971         Deleted all ENABLE_LOCK_ELISION checks.
21972         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
21973         * sysdeps/powerpc/sysdep.h: Likewise.
21974         * sysdeps/s390/nptl/bits/pthreadtypes-arch.h: Likewise.
21975         * sysdeps/unix/sysv/linux/powerpc/force-elision.h: Likewise.
21976         * sysdeps/unix/sysv/linux/s390/elision-conf.h: Likewise.
21977         * sysdeps/unix/sysv/linux/s390/force-elision.h: Likewise.
21978         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
21979         * sysdeps/unix/sysv/linux/s390/Makefile: Remove references to
21980         enable-lock-elision.
21982 2017-12-05  Joseph Myers  <joseph@codesourcery.com>
21984         * stdlib/strtod.c: Include <bits/floatn.h>.
21985         (BUILD_DOUBLE): New macro.
21986         [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
21987         (strtof64): Define and later undefine as macro.  Define as weak
21988         alias if [!USE_WIDE_CHAR].
21989         [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
21990         (wcstof64): Define and later undefine as macro.  Define as weak
21991         alias if [USE_WIDE_CHAR].
21992         [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
21993         (strtof32x): Define and later undefine as macro.  Define as weak
21994         alias if [!USE_WIDE_CHAR].
21995         [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
21996         (wcstof32x): Define and later undefine as macro.  Define as weak
21997         alias if [USE_WIDE_CHAR].
21998         * stdlib/strtod_l.c: Include <bits/floatn.h>.
21999         (BUILD_DOUBLE): New macro.
22000         [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
22001         (strtof64_l): Define and later undefine as macro.  Define as weak
22002         alias if [!USE_WIDE_CHAR].
22003         [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
22004         (wcstof64_l): Define and later undefine as macro.  Define as weak
22005         alias if [USE_WIDE_CHAR].
22006         [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
22007         (strtof32x_l): Define and later undefine as macro.  Define as weak
22008         alias if [!USE_WIDE_CHAR].
22009         [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
22010         (wcstof32x_l): Define and later undefine as macro.  Define as weak
22011         alias if [USE_WIDE_CHAR].
22013 2017-12-05  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
22015         * sysdeps/ieee754/flt-32/s_sinf.c (ones): Define as double.
22016         (reduced): Use ones as double instead of integer.
22018 2017-12-05  Szabolcs Nagy  <szabolcs.nagy@arm.com>
22020         * sysdeps/ieee754/flt-32/s_sinf.c (sinf): Use isless.
22022 2017-12-05  Joseph Myers  <joseph@codesourcery.com>
22024         * stdlib/strfromd.c: Include <bits/floatn.h>.
22025         [__HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64] (strfromf64): Define
22026         and later undefine as macro and define as weak alias.
22027         [__HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X] (strfromf32x):
22028         Likewise.
22030         * math/test-float32x.h: New file.
22031         * math/test-float64.h: Likewise.
22033         * sysdeps/generic/libm-alias-double.h: Include <bits/floatn.h>.
22034         (libm_alias_double_other_r_f64): New macro.
22035         (libm_alias_double_other_r_f32x): Likewise.
22036         (libm_alias_double_other_r): Use libm_alias_double_other_r_f64 and
22037         libm_alias_double_other_r_f32x.
22038         (libm_alias_double_r): Use semicolon before call to
22039         libm_alias_double_other_r.
22040         * sysdeps/ieee754/ldbl-opt/libm-alias-double.h: Include
22041         <bits/floatn.h>.
22042         (libm_alias_double_other_r_f64): New macro.
22043         (libm_alias_double_other_r_f32x): Likewise.
22044         (libm_alias_double_other_r): Use libm_alias_double_other_r_f64 and
22045         libm_alias_double_other_r_f32x.
22047 2017-12-05  H.J. Lu  <hongjiu.lu@intel.com>
22049         * sysdeps/ieee754/flt-32/s_sinf.c (reduced): Replace long with
22050         int.
22051         (SINF_FUNC): Likewise.  Replace floor with simple casts.
22053 2017-12-05  Mike FABIAN  <mfabian@redhat.com>
22055         [BZ #22517]
22056         * localedata/Makefile: Add et_EE.UTF-8 to test-input
22057         and to the list of locales to be built for testing.
22058         * localedata/et_EE.UTF-8.in: New file for testing the collation.
22059         * localedata/locales/et_EE (LC_COLLATE): Use “copy "iso14651_t1"”
22060         and build the collation rules upon that.
22062 2017-12-05  Chris Metcalf  <cmetcalf@mellanox.com>
22064         * sysdeps/tile/tilegx/string-endian.h (VECOP): Provide working
22065         replacements for __insn_xxx builtins for v1cmpeq, v1cmpltu,
22066         v1cmpne, v1add, v1shru, v1shl (register and immediate versions).
22067         * sysdeps/tile/tilegx/memchr.c (__memchr): Use VECOP function
22068         instead of __insn__xxx.
22069         * sysdeps/tile/tilegx/rawmemchr.c (__rawmemchr): Likewise.
22070         * sysdeps/tile/tilegx/strstr.c (strcasechr): Likewise.
22071         * sysdeps/tile/tilegx/strrchr.c (strrchr): Likewise.
22072         * sysdeps/tile/tilegx/strlen.c (strlen): Likewise.
22073         * sysdeps/tile/tilegx/strchrnul.c (__strchrnul): Likewise.
22074         * sysdeps/tile/tilegx/strchr.c (strchr): Likewise.
22076 2017-12-05  Florian Weimer  <fweimer@redhat.com>
22078         Linux: Implement interfaces for memory protection keys
22079         * support/Makefile (libsupport-routines): Add xraise, xsigaction,
22080         xsignal, xsysconf.
22081         * support/xsignal.h (xraise, xsignal, xsigaction): Declare.
22082         * support/xunistd.h (xsysconf): Declare.
22083         * support/xraise.c: New file.
22084         * support/xsigaction.c: Likewise.
22085         * support/xsignal.c: Likewise.
22086         * support/xsysconf.c: Likewise.
22087         * sysdeps/unix/sysv/linux/Makefile [misc] (routines): Add
22088         pkey_set, pkey_get, pkey_mprotect.
22089         [misc] (tests): Add tst-pkey.
22090         (tst-pkey): Link with -lpthread.
22091         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Add pkey_alloc,
22092         pkey_free, pkey_set, pkey_get, pkey_mprotect.
22093         * sysdeps/unix/sysv/linux/bits/mman-linux.h (PKEY_DISABLE_ACCESS)
22094         (PKEY_DISABLE_WRITE): Define.
22095         (pkey_alloc, pkey_free, pkey_set, pkey_get, pkey_mprotect):
22096         Declare.
22097         * sysdeps/unix/sysv/linux/bits/siginfo-consts.h (SEGV_BNDERR)
22098         (SEGV_PKUERR): Add.
22099         * sysdeps/unix/sysv/linux/pkey_get.c: New file.
22100         * sysdeps/unix/sysv/linux/pkey_set.c: Likewise.
22101         * sysdeps/unix/sysv/linux/pkey_mprotect.c: Likewise.
22102         * sysdeps/unix/sysv/linux/syscalls.list (pkey_alloc, pkey_free):
22103         Add.
22104         * sysdeps/unix/sysv/linux/tst-pkey.c: New file.
22105         * sysdeps/unix/sysv/linux/x86/arch-pkey.h: Likewise.
22106         * sysdeps/unix/sysv/linux/x86/pkey_get.c: Likewise.
22107         * sysdeps/unix/sysv/linux/x86/pkey_set.c: Likewise.
22108         * sysdeps/unix/sysv/linux/**.abilist: Update.
22110 2017-12-05  Florian Weimer  <fweimer@redhat.com>
22112         * support/tst-test_compare.c (subprocess): Use long long instead
22113         of long argument for consistent type width across 32-bit and
22114         64-bit architectures.
22115         (do_test): Adjust expected output.
22117 2017-12-05  Joseph Myers  <joseph@codesourcery.com>
22119         * sysdeps/powerpc/fpu/s_cosf.c: Include <libm-alias-float.h>.
22120         (cosf): Define using libm_alias_float.
22121         * sysdeps/powerpc/fpu/s_fabs.S: Include <libm-alias-float.h>.
22122         (fabsf): Define using libm_alias_float.
22123         * sysdeps/powerpc/fpu/s_fmaf.S: Include <libm-alias-float.h>.
22124         (fmaf): Define using libm_alias_float.
22125         * sysdeps/powerpc/fpu/s_rintf.c: Include <libm-alias-float.h>.
22126         (rintf): Define using libm_alias_float.
22127         * sysdeps/powerpc/fpu/s_sinf.c: Include <libm-alias-float.h>.
22128         (sinf): Define using libm_alias_float.
22129         * sysdeps/powerpc/power5+/fpu/s_modff.c: Include
22130         <libm-alias-float.h>.
22131         (modff): Define using libm_alias_float.
22132         * sysdeps/powerpc/power7/fpu/s_logbf.c: Include
22133         <libm-alias-float.h>.
22134         (logbf): Define using libm_alias_float.
22135         * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S: Include
22136         <libm-alias-float.h>.
22137         (ceilf): Define using libm_alias_float.
22138         * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Include
22139         <libm-alias-float.h>.
22140         (copysignf): Define using libm_alias_float.
22141         * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Include
22142         <libm-alias-float.h>.
22143         (floorf): Define using libm_alias_float.
22144         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Include
22145         <libm-alias-float.h>.
22146         (llrintf): Define using libm_alias_float.
22147         * sysdeps/powerpc/powerpc32/fpu/s_llroundf.c: Include
22148         <libm-alias-float.h>.
22149         (llroundf): Define using libm_alias_float.
22150         * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Include
22151         <libm-alias-float.h>.
22152         (lrintf): Define using libm_alias_float.
22153         * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Include
22154         <libm-alias-float.h>.
22155         (lroundf): Define using libm_alias_float.
22156         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: Include
22157         <libm-alias-float.h>.
22158         (nearbyintf): Define using libm_alias_float.
22159         * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Include
22160         <libm-alias-float.h>.
22161         (rintf): Define using libm_alias_float.
22162         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Include
22163         <libm-alias-float.h>.
22164         (roundf): Define using libm_alias_float.
22165         * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Include
22166         <libm-alias-float.h>.
22167         (truncf): Define using libm_alias_float.
22168         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c:
22169         Include <libm-alias-float.h>.
22170         (ceilf): Define using libm_alias_float.
22171         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c:
22172         Include <libm-alias-float.h>.
22173         (copysignf): Define using libm_alias_float.
22174         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c:
22175         Include <libm-alias-float.h>.
22176         (floorf): Define using libm_alias_float.
22177         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf.c:
22178         Include <libm-alias-float.h>.
22179         (llrintf): Define using libm_alias_float.
22180         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llroundf.c:
22181         Include <libm-alias-float.h>.
22182         (llroundf): Define using libm_alias_float.
22183         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf.c:
22184         Include <libm-alias-float.h>.
22185         (logbf): Define using libm_alias_float.
22186         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrintf.c:
22187         Include <libm-alias-float.h>.
22188         (lrintf): Define using libm_alias_float.
22189         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lroundf.c:
22190         Include <libm-alias-float.h>.
22191         (lroundf): Define using libm_alias_float.
22192         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff.c:
22193         Include <libm-alias-float.h>.
22194         (modff): Define using libm_alias_float.
22195         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c:
22196         Include <libm-alias-float.h>.
22197         (roundf): Define using libm_alias_float.
22198         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c:
22199         Include <libm-alias-float.h>.
22200         (truncf): Define using libm_alias_float.
22201         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Include
22202         <libm-alias-float.h>.
22203         (llrintf): Define using libm_alias_float.
22204         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Include
22205         <libm-alias-float.h>.
22206         (llroundf): Define using libm_alias_float.
22207         * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: Include
22208         <libm-alias-float.h>.
22209         (ceilf): Define using libm_alias_float.
22210         * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: Include
22211         <libm-alias-float.h>.
22212         (floorf): Define using libm_alias_float.
22213         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Include
22214         <libm-alias-float.h>.
22215         (llroundf): Define using libm_alias_float.
22216         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Include
22217         <libm-alias-float.h>.
22218         (lroundf): Define using libm_alias_float.
22219         * sysdeps/powerpc/powerpc32/power5+/fpu/s_roundf.S: Include
22220         <libm-alias-float.h>.
22221         (roundf): Define using libm_alias_float.
22222         * sysdeps/powerpc/powerpc32/power5+/fpu/s_truncf.S: Include
22223         <libm-alias-float.h>.
22224         (truncf): Define using libm_alias_float.
22225         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Include
22226         <libm-alias-float.h>.
22227         (copysignf): Define using libm_alias_float.
22228         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Include
22229         <libm-alias-float.h>.
22230         (llrintf): Define using libm_alias_float.
22231         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Include
22232         <libm-alias-float.h>.
22233         (llroundf): Define using libm_alias_float.
22234         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: Include
22235         <libm-alias-float.h>.
22236         (lrintf): Define using libm_alias_float.
22237         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Include
22238         <libm-alias-float.h>.
22239         (lroundf): Define using libm_alias_float.
22240         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Include
22241         <libm-alias-float.h>.
22242         (ceilf): Define using libm_alias_float.
22243         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: Include
22244         <libm-alias-float.h>.
22245         (copysignf): Define using libm_alias_float.
22246         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf.c: Include
22247         <libm-alias-float.h>.
22248         (cosf): Define using libm_alias_float.
22249         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Include
22250         <libm-alias-float.h>.
22251         (floorf): Define using libm_alias_float.
22252         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrintf.c: Include
22253         <libm-alias-float.h>.
22254         (llrintf): Define using libm_alias_float.
22255         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf.c: Include
22256         <libm-alias-float.h>.
22257         (llroundf): Define using libm_alias_float.
22258         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf.c: Include
22259         <libm-alias-float.h>.
22260         (logbf): Define using libm_alias_float.
22261         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff.c: Include
22262         <libm-alias-float.h>.
22263         (modff): Define using libm_alias_float.
22264         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Include
22265         <libm-alias-float.h>.
22266         (roundf): Define using libm_alias_float.
22267         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf.c: Include
22268         <libm-alias-float.h>.
22269         (sinf): Define using libm_alias_float.
22270         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Include
22271         <libm-alias-float.h>.
22272         (truncf): Define using libm_alias_float.
22273         * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Include
22274         <libm-alias-float.h>.
22275         (ceilf): Define using libm_alias_float.
22276         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Include
22277         <libm-alias-float.h>.
22278         (copysignf): Define using libm_alias_float.
22279         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Include
22280         <libm-alias-float.h>.
22281         (floorf): Define using libm_alias_float.
22282         * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Include
22283         <libm-alias-float.h>.
22284         (llrintf): Define using libm_alias_float.
22285         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S: Include
22286         <libm-alias-float.h>.
22287         (llroundf): Define using libm_alias_float.
22288         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: Include
22289         <libm-alias-float.h>.
22290         (nearbyintf): Define using libm_alias_float.
22291         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Include
22292         <libm-alias-float.h>.
22293         (rintf): Define using libm_alias_float.
22294         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Include
22295         <libm-alias-float.h>.
22296         (roundf): Define using libm_alias_float.
22297         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Include
22298         <libm-alias-float.h>.
22299         (truncf): Define using libm_alias_float.
22300         * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: Include
22301         <libm-alias-float.h>.
22302         (ceilf): Define using libm_alias_float.
22303         * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: Include
22304         <libm-alias-float.h>.
22305         (floorf): Define using libm_alias_float.
22306         * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Include
22307         <libm-alias-float.h>.
22308         (llroundf): Define using libm_alias_float.
22309         * sysdeps/powerpc/powerpc64/power5+/fpu/s_roundf.S: Include
22310         <libm-alias-float.h>.
22311         (roundf): Define using libm_alias_float.
22312         * sysdeps/powerpc/powerpc64/power5+/fpu/s_truncf.S: Include
22313         <libm-alias-float.h>.
22314         (truncf): Define using libm_alias_float.
22315         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Include
22316         <libm-alias-float.h>.
22317         (copysignf): Define using libm_alias_float.
22318         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Include
22319         <libm-alias-float.h>.
22320         (llrintf): Define using libm_alias_float.
22321         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Include
22322         <libm-alias-float.h>.
22323         (llroundf): Define using libm_alias_float.
22324         * sysdeps/powerpc/powerpc64/power8/fpu/s_cosf.S: Include
22325         <libm-alias-float.h>.
22326         (cosf): Define using libm_alias_float.
22327         * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: Include
22328         <libm-alias-float.h>.
22329         (llrintf): Define using libm_alias_float.
22330         * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Include
22331         <libm-alias-float.h>.
22332         (llroundf): Define using libm_alias_float.
22333         * sysdeps/powerpc/powerpc64/power8/fpu/s_sinf.S: Include
22334         <libm-alias-float.h>.
22335         (sinf): Define using libm_alias_float.
22337 2017-12-04  Florian Weimer  <fweimer@redhat.com>
22339         * support/check.h (TEST_COMPARE): Define.
22340         (support_test_compare_failure): Declare.
22341         * support/Makefile (libsupport-routines): Add
22342         support_test_compare_failure.
22343         (tests): Add tst-test_compare.
22344         * support /support_test_compare_failure.c: New file.
22345         * support/tst-test_compare.c: Likewise.
22347 2017-12-04  Mike FABIAN  <mfabian@redhat.com>
22349         [BZ #22527]
22350         *  localedata/locales/tr_TR (LC_COLLATE): Base collation rules
22351         on iso14651_t1. A test file localedata/tr_TR.UTF-8.in is already
22352         available, this rewrite of the collation rules does reproduce
22353         the test file in the same order.
22355 2017-12-04  Mike FABIAN  <mfabian@redhat.com>
22357         [BZ #10580]
22358         * localedata/locales/hr_HR (LC_TIME): Use two letters for the
22359         digraphs in the month and day names. Using single code points for
22360         digraphs is deprecated.  While there are dedicated Unicode
22361         codepoints, for the digraphs, these are included for backwards
22362         compatibility and modern texts use a sequence of Basic Latin
22363         characters. See: https://www.unicode.org/faq/ligature_digraph.html
22364         This makes the month and day names agree exactly with CLDR now,
22365         CLDR does not use the single code points for the digraphs either.
22367 2017-12-04  Chris Metcalf  <cmetcalf@mellanox.com>
22369         * sysdeps/tile/libm-test-ulps: Update ca{cos,sin,tan}{,h} ulps.
22371 2017-12-04  Joseph Myers  <joseph@codesourcery.com>
22373         * sysdeps/ieee754/flt-32/s_sinf.c (SINF_FUNC): Use __floor instead
22374         of floor.
22376 2017-12-04  Siddhesh Poyarekar  <siddhesh@sourceware.org>
22378         * sysdeps/aarch64/multiarch/memcpy_generic.S (__GI_memcpy):
22379         Define only for libc.so.
22381 2017-12-04  Stefan Liebler  <stli@linux.vnet.ibm.com>
22383         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
22384         (INTERNAL_VSYSCALL_CALL, CLOBBER_0, CLOBBER_1, CLOBBER_2,
22385         CLOBBER_3, CLOBBER_4, CLOBBER_5, CLOBBER_6,
22386         INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Remove.
22387         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
22389 2017-12-04  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
22391         [BZ #5997]
22392         * sysdeps/ieee754/flt-32/s_sinf.c: New implementation.
22394 2017-12-02  John David Anglin  <danglin@gcc.gnu.org>
22396         [BZ libc/19170]
22397         * sysdeps/hppa/crti.S: Declare PREINIT_FUNCTION weak_extern when
22398         PREINIT_FUNCTION_WEAK is nonzero.
22399         (gmon_initializer): New function.  Put procedure label for it in
22400         .init_array section.
22401         (_init): Don't call PREINIT_FUNCTION.
22402         * sysdeps/hppa/crtn.S (__gmon_start__): Remove.
22403         * sysdeps/hppa/dl-lookupcfg.h (DL_FIXUP_MAKE_VALUE): Create null fixup
22404         value when map argument is null.
22406         * sysdeps/hppa/dl-fptr.c (elf_machine_resolve): Remove unnecessary
22407         depi instruction from PIC pc-relative sequence.
22408         * sysdeps/hppa/dl-fptr.h (ELF_MACHINE_LOAD_ADDRESS): Likewise.
22409         * sysdeps/hppa/dl-machine.h (elf_machine_dynamic): Likewise.
22410         (elf_machine_load_address): Likewise.
22411         (elf_machine_runtime_setup): Likewise.
22413 2017-12-02  Joseph Myers  <joseph@codesourcery.com>
22415         * sysdeps/powerpc/power7/fpu/s_logb.c: Include
22416         <libm-alias-double.h>.
22417         (logb): Define using libm_alias_double.
22418         * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Include
22419         <libm-alias-double.h>.
22420         (copysign): Define using libm_alias_double.
22421         * sysdeps/powerpc/powerpc32/fpu/s_llrint.c: Include
22422         <libm-alias-double.h>.
22423         (llrint): Define using libm_alias_double.
22424         * sysdeps/powerpc/powerpc32/fpu/s_llround.c: Include
22425         <libm-alias-double.h>.
22426         (llround): Define using libm_alias_double.
22427         * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Include
22428         <libm-alias-double.h>.
22429         (lrint): Define using libm_alias_double.
22430         * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Include
22431         <libm-alias-double.h>.
22432         (lround): Define using libm_alias_double.
22433         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
22434         Include <libm-alias-double.h>.
22435         (copysign): Define using libm_alias_double.
22436         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint.c:
22437         Include <libm-alias-double.h>.
22438         (llrint): Define using libm_alias_double.
22439         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround.c:
22440         Include <libm-alias-double.h>.
22441         (llround): Define using libm_alias_double.
22442         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c: Include
22443         <libm-alias-double.h>.
22444         (logb): Define using libm_alias_double.
22445         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint.c:
22446         Include <libm-alias-double.h>.
22447         (lrint): Define using libm_alias_double.
22448         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround.c:
22449         Include <libm-alias-double.h>.
22450         (lround): Define using libm_alias_double.
22451         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Include
22452         <libm-alias-double.h>.
22453         (llrint): Define using libm_alias_double.
22454         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Include
22455         <libm-alias-double.h>.
22456         (llround): Define using libm_alias_double.
22457         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Include
22458         <libm-alias-double.h>.
22459         (llround): Define using libm_alias_double.
22460         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Include
22461         <libm-alias-double.h>.
22462         (lround): Define using libm_alias_double.
22463         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Include
22464         <libm-alias-double.h>.
22465         (copysign): Define using libm_alias_double.
22466         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Include
22467         <libm-alias-double.h>.
22468         (llrint): Define using libm_alias_double.
22469         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Include
22470         <libm-alias-double.h>.
22471         (llround): Define using libm_alias_double.
22472         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: Include
22473         <libm-alias-double.h>.
22474         (lrint): Define using libm_alias_double.
22475         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Include
22476         <libm-alias-double.h>.
22477         (lround): Define using libm_alias_double.
22478         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Include
22479         <libm-alias-double.h>.
22480         (copysign): Define using libm_alias_double.
22481         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c: Include
22482         <libm-alias-double.h>.
22483         (llrint): Define using libm_alias_double.
22484         (lrint): Likewise.
22485         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c: Include
22486         <libm-alias-double.h>.
22487         (llround): Define using libm_alias_double.
22488         (lround): Likewise.
22489         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c: Include
22490         <libm-alias-double.h>.
22491         (logb): Define using libm_alias_double.
22492         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Include
22493         <libm-alias-double.h>.
22494         (copysign): Define using libm_alias_double.
22495         * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Include
22496         <libm-alias-double.h>.
22497         (llrint): Define using libm_alias_double.
22498         (lrint): Likewise.
22499         * sysdeps/powerpc/powerpc64/fpu/s_llround.S: Include
22500         <libm-alias-double.h>.
22501         (llround): Define using libm_alias_double.
22502         (lround): Likewise.
22503         * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Include
22504         <libm-alias-double.h>.
22505         (llround): Define using libm_alias_double.
22506         (lround): Likewise.
22507         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Include
22508         <libm-alias-double.h>.
22509         (copysign): Define using libm_alias_double.
22510         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Include
22511         <libm-alias-double.h>.
22512         (llrint): Define using libm_alias_double.
22513         (lrint): Likewise.
22514         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Include
22515         <libm-alias-double.h>.
22516         (llround): Define using libm_alias_double.
22517         (lround): Likewise.
22518         * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: Include
22519         <libm-alias-double.h>.
22520         (llrint): Define using libm_alias_double.
22521         (lrint): Likewise.
22522         * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Include
22523         <libm-alias-double.h>.
22524         (llround): Define using libm_alias_double.
22525         (lround): Likewise.
22527 2017-12-01  Joseph Myers  <joseph@codesourcery.com>
22529         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c
22530         [LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)] (lroundl): Do not define
22531         compat symbol based on llround.
22533         * sysdeps/powerpc/power7/fpu/s_logb.c
22534         [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Define as compat
22535         symbol based on __logb, not on logb.
22536         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c
22537         [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Likewise.
22538         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c
22539         [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Likewise.
22541         * sysdeps/powerpc/fpu/s_rint.c: Include <libm-alias-double.h>.
22542         (rint): Define using libm_alias_double.
22543         * sysdeps/powerpc/power5+/fpu/s_modf.c: Include
22544         <libm-alias-double.h>.
22545         (modf): Define using libm_alias_double.
22546         * sysdeps/powerpc/powerpc32/fpu/s_ceil.S: Include
22547         <libm-alias-double.h>.
22548         (ceil): Define using libm_alias_double.
22549         * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Include
22550         <libm-alias-double.h>.
22551         (floor): Define using libm_alias_double.
22552         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: Include
22553         <libm-alias-double.h>.
22554         (nearbyint): Define using libm_alias_double.
22555         * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Include
22556         <libm-alias-double.h>.
22557         (rint): Define using libm_alias_double.
22558         * sysdeps/powerpc/powerpc32/fpu/s_round.S: Include
22559         <libm-alias-double.h>.
22560         (round): Define using libm_alias_double.
22561         * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Include
22562         <libm-alias-double.h>.
22563         (trunc): Define using libm_alias_double.
22564         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: Include
22565         <libm-alias-double.h>.
22566         (ceil): Define using libm_alias_double.
22567         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c:
22568         Include <libm-alias-double.h>.
22569         (floor): Define using libm_alias_double.
22570         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf.c: Include
22571         <libm-alias-double.h>.
22572         (modf): Define using libm_alias_double.
22573         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c:
22574         Include <libm-alias-double.h>.
22575         (round): Define using libm_alias_double.
22576         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c:
22577         Include <libm-alias-double.h>.
22578         (trunc): Define using libm_alias_double.
22579         * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: Include
22580         <libm-alias-double.h>.
22581         (ceil): Define using libm_alias_double.
22582         * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: Include
22583         <libm-alias-double.h>.
22584         (floor): Define using libm_alias_double.
22585         * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S: Include
22586         <libm-alias-double.h>.
22587         (round): Define using libm_alias_double.
22588         * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S: Include
22589         <libm-alias-double.h>.
22590         (trunc): Define using libm_alias_double.
22591         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: Include
22592         <libm-alias-double.h>.
22593         (ceil): Define using libm_alias_double.
22594         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: Include
22595         <libm-alias-double.h>.
22596         (floor): Define using libm_alias_double.
22597         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf.c: Include
22598         <libm-alias-double.h>.
22599         (modf): Define using libm_alias_double.
22600         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: Include
22601         <libm-alias-double.h>.
22602         (round): Define using libm_alias_double.
22603         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: Include
22604         <libm-alias-double.h>.
22605         (trunc): Define using libm_alias_double.
22606         * sysdeps/powerpc/powerpc64/fpu/s_ceil.S: Include
22607         <libm-alias-double.h>.
22608         (ceil): Define using libm_alias_double.
22609         * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Include
22610         <libm-alias-double.h>.
22611         (floor): Define using libm_alias_double.
22612         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: Include
22613         <libm-alias-double.h>.
22614         (nearbyint): Define using libm_alias_double.
22615         * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Include
22616         <libm-alias-double.h>.
22617         (rint): Define using libm_alias_double.
22618         * sysdeps/powerpc/powerpc64/fpu/s_round.S: Include
22619         <libm-alias-double.h>.
22620         (round): Define using libm_alias_double.
22621         * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Include
22622         <libm-alias-double.h>.
22623         (trunc): Define using libm_alias_double.
22624         * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: Include
22625         <libm-alias-double.h>.
22626         (ceil): Define using libm_alias_double.
22627         * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: Include
22628         <libm-alias-double.h>.
22629         (floor): Define using libm_alias_double.
22630         * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S: Include
22631         <libm-alias-double.h>.
22632         (round): Define using libm_alias_double.
22633         * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S: Include
22634         <libm-alias-double.h>.
22635         (trunc): Define using libm_alias_double.
22637         * sysdeps/powerpc/fpu/s_fabs.S: Include <libm-alias-double.h>.
22638         (fabs): Define using libm_alias_double.
22639         * sysdeps/powerpc/fpu/s_fma.S: Include <libm-alias-double.h>.
22640         (fma): Define using libm_alias_double.
22641         * sysdeps/powerpc/powerpc32/fpu/s_fabs.S: Remove file.
22642         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: Likewise.
22643         * sysdeps/powerpc/powerpc64/fpu/s_fabs.S: Likewise.
22644         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: Likewise.
22646 2017-12-01  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
22648         * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Remove file.
22650         * sysdeps/sparc/sparc-ifunc.h (SPARC_ASM_IFUNC_DFLT,
22651         SPARC_ASM_IFUNC1, SPARC_ASM_IFUNC2, SET, SPARC_ASM_VIS2_IFUNC,
22652         SPARC_ASM_VIS3_IFUNC, SPARC_ASM_VIS3_VIS2_IFUNC): Remove macros.
22654         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c: Fix build
22655         due redirect macro.
22657 2017-12-01  Andreas Schwab  <schwab@linux-m68k.org>
22659         * intl/Makefile ($(objpfx)plural.c): Add $(make-target-directory).
22661 2017-12-01  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
22663         * sysdeps/sparc/sparc64/cpu_relax.c: New file.
22664         * sysdeps/sparc/sparc32/sparcv9/cpu_relax.c: Likewise.
22665         * sysdeps/sparc/sparc64/cpu_relax.S: Remove file.
22666         * sysdeps/sparc/sparc32/sparcv9/cpu_relax.S: Likewise.
22668         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
22669         (libm-sysdep_routines): Add s_nearbyintf-generic and
22670         s_nearbyint-generic.
22671         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-generic.S:
22672         New file.
22673         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.c: Likewise.
22674         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-generic.S:
22675         Likewise.
22676         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.c:
22677         Likewise.
22678         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S: Remove
22679         file.
22680         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S:
22681         Likewise.
22683         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
22684         (libm-sysdep_routines): Add s_rintf-generic and s_rint-generic.
22685         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-generic.S: New
22686         file.
22687         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.c: Likewise.
22688         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-generic.S:
22689         Likewise.
22690         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.c: Likewise.
22691         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Remove file.
22692         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
22694         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
22695         (libm-sysdep_routines): Add s_llrintf-generic and s_llrint-generic.
22696         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-generic.S: New
22697         file.
22698         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.c: Likewise.
22699         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-generic.S:
22700         Likewise.
22701         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.c: Likewise.
22702         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Remove file.
22703         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: Likewise.
22705         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
22706         (libm-sysdep_routines): Add s_fabsf-generic and s_fabs-generic.
22707         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-generic.S: New
22708         file.
22709         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.c: Likewise.
22710         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-generic.S:
22711         Likewise.
22712         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.c: Likewise.
22713         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Remove file.
22714         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
22716         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
22717         (sysdep_calls): New rule.
22718         (sysdep_routines): Use sysdep_calls as base.
22719         (libm-sysdep_routines): Add generic rule for symbols shared with
22720         libc.  Add s_copysign-generic and s_copysign-generic objects.
22721         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-generic.S:
22722         New file.
22723         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c: Likewise.
22724         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-generic.S:
22725         Likewise.
22726         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.c: Likewise.
22727         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: Remove file.
22728         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: Likewise.
22730 2017-12-01  Mike FABIAN  <mfabian@redhat.com>
22732         [BZ #22519]
22733         * localedata/Makefile: Add is_IS.UTF-8 to test-input and to
22734         the list of locales to be built for testing.
22735         * localedata/is_IS.UTF-8.in: New file.
22736         * localedata/locales/is_IS (LC_COLLATE): Base collation rules
22737         on iso14651_t1.
22739 2017-12-01  Joseph Myers  <joseph@codesourcery.com>
22741         * sysdeps/powerpc/powerpc32/e500/nofpu/s_fabsf.S: Include
22742         <libm-alias-float.h>.
22743         (fabsf): Define using libm_alias_float.
22745 2017-11-30  H.J. Lu  <hongjiu.lu@intel.com>
22747         * sysdeps/mips/dl-machine.h (elf_machine_reloc): Expand MIN.
22749 2017-11-30  Joseph Myers  <joseph@codesourcery.com>
22751         * sysdeps/m68k/coldfire/fpu/s_fabsf.c: Include
22752         <libm-alias-float.h>.
22753         (fabsf): Define using libm_alias_float.
22754         * sysdeps/m68k/coldfire/fpu/s_lrintf.c: Include
22755         <libm-alias-float.h>.
22756         (lrintf): Define using libm_alias_float.
22757         * sysdeps/m68k/coldfire/fpu/s_rintf.c: Include
22758         <libm-alias-float.h>.
22759         (rintf): Define using libm_alias_float.
22761         * sysdeps/m68k/coldfire/fpu/s_fabs.c: Include
22762         <libm-alias-double.h>.
22763         (fabs): Define using libm_alias_double.
22764         * sysdeps/m68k/coldfire/fpu/s_lrint.c: Include
22765         <libm-alias-double.h>.
22766         (lrint): Define using libm_alias_double.
22767         * sysdeps/m68k/coldfire/fpu/s_rint.c: Include
22768         <libm-alias-double.h>.
22769         (rint): Define using libm_alias_double.
22771         * sysdeps/m68k/m680x0/fpu/s_atan_template.c: New file.
22772         * sysdeps/m68k/m680x0/fpu/s_ceil_template.c: Likewise.
22773         * sysdeps/m68k/m680x0/fpu/s_cos_template.c: Likewise.
22774         * sysdeps/m68k/m680x0/fpu/s_expm1_template.c: Likewise.
22775         * sysdeps/m68k/m680x0/fpu/s_fabs_template.c: Likewise.
22776         * sysdeps/m68k/m680x0/fpu/s_floor_template.c: Likewise.
22777         * sysdeps/m68k/m680x0/fpu/s_frexp_template.c: Likewise.
22778         * sysdeps/m68k/m680x0/fpu/s_lrint_template.c: Likewise.
22779         * sysdeps/m68k/m680x0/fpu/s_modf_template.c: Likewise.
22780         * sysdeps/m68k/m680x0/fpu/s_nearbyint_template.c: Likewise.
22781         * sysdeps/m68k/m680x0/fpu/s_remquo_template.c: Likewise.
22782         * sysdeps/m68k/m680x0/fpu/s_rint_template.c: Likewise.
22783         * sysdeps/m68k/m680x0/fpu/s_sin_template.c: Likewise.
22784         * sysdeps/m68k/m680x0/fpu/s_sincos_template.c: Likewise.
22785         * sysdeps/m68k/m680x0/fpu/s_tan_template.c: Likewise.
22786         * sysdeps/m68k/m680x0/fpu/s_tanh_template.c: Likewise.
22787         * sysdeps/m68k/m680x0/fpu/s_trunc_template.c: Likewise.
22788         * sysdeps/m68k/m680x0/fpu/s_atan.c: Reimplement to use
22789         s_atan_template.c.
22790         * sysdeps/m68k/m680x0/fpu/s_atanf.c: Likewise.
22791         * sysdeps/m68k/m680x0/fpu/s_atanl.c: Likewise.
22792         * sysdeps/m68k/m680x0/fpu/s_ceil.c: Reimplement to use
22793         s_ceil_template.c.
22794         * sysdeps/m68k/m680x0/fpu/s_ceilf.c: Likewise.
22795         * sysdeps/m68k/m680x0/fpu/s_ceill.c: Likewise.
22796         * sysdeps/m68k/m680x0/fpu/s_cos.c: Reimplement to use
22797         s_cos_template.c.
22798         * sysdeps/m68k/m680x0/fpu/s_cosf.c: Likewise.
22799         * sysdeps/m68k/m680x0/fpu/s_cosl.c: Likewise.
22800         * sysdeps/m68k/m680x0/fpu/s_expm1.c: Reimplement to use
22801         s_expm1_template.c.
22802         * sysdeps/m68k/m680x0/fpu/s_expm1f.c: Likewise.
22803         * sysdeps/m68k/m680x0/fpu/s_expm1l.c: Likewise.
22804         * sysdeps/m68k/m680x0/fpu/s_fabs.c: Reimplement to use
22805         s_fabs_template.c.
22806         * sysdeps/m68k/m680x0/fpu/s_fabsf.c: Likewise.
22807         * sysdeps/m68k/m680x0/fpu/s_fabsl.c: Likewise.
22808         * sysdeps/m68k/m680x0/fpu/s_floor.c: Reimplement to use
22809         s_floor_template.c.
22810         * sysdeps/m68k/m680x0/fpu/s_floorf.c: Likewise.
22811         * sysdeps/m68k/m680x0/fpu/s_floorl.c: Likewise.
22812         * sysdeps/m68k/m680x0/fpu/s_frexp.c: Reimplement to use
22813         s_frexp_template.c.
22814         * sysdeps/m68k/m680x0/fpu/s_frexpf.c: Likewise.
22815         * sysdeps/m68k/m680x0/fpu/s_lrint.c: Reimplement to use
22816         s_lrint_template.c.
22817         * sysdeps/m68k/m680x0/fpu/s_lrintf.c: Likewise.
22818         * sysdeps/m68k/m680x0/fpu/s_lrintl.c: Likewise.
22819         * sysdeps/m68k/m680x0/fpu/s_modf.c: Reimplement to use
22820         s_modf_template.c.
22821         * sysdeps/m68k/m680x0/fpu/s_modff.c: Likewise.
22822         * sysdeps/m68k/m680x0/fpu/s_modfl.c: Likewise.
22823         * sysdeps/m68k/m680x0/fpu/s_nearbyint.c: Reimplement to use
22824         s_nearbyint_template.c.
22825         * sysdeps/m68k/m680x0/fpu/s_nearbyintf.c: Likewise.
22826         * sysdeps/m68k/m680x0/fpu/s_nearbyintl.c: Likewise.
22827         * sysdeps/m68k/m680x0/fpu/s_remquo.c: Reimplement to use
22828         s_remquo_template.c.
22829         * sysdeps/m68k/m680x0/fpu/s_remquof.c: Likewise.
22830         * sysdeps/m68k/m680x0/fpu/s_remquol.c: Likewise.
22831         * sysdeps/m68k/m680x0/fpu/s_rint.c: Reimplement to use
22832         s_rint_template.c.
22833         * sysdeps/m68k/m680x0/fpu/s_rintf.c: Likewise.
22834         * sysdeps/m68k/m680x0/fpu/s_rintl.c: Likewise.
22835         * sysdeps/m68k/m680x0/fpu/s_sin.c: Reimplement to use
22836         s_sin_template.c.
22837         * sysdeps/m68k/m680x0/fpu/s_sinf.c: Likewise.
22838         * sysdeps/m68k/m680x0/fpu/s_sinl.c: Likewise.
22839         * sysdeps/m68k/m680x0/fpu/s_sincos.c: Reimplement to use
22840         s_sincos_template.c.
22841         * sysdeps/m68k/m680x0/fpu/s_sincosf.c: Likewise.
22842         * sysdeps/m68k/m680x0/fpu/s_sincosl.c: Likewise.
22843         * sysdeps/m68k/m680x0/fpu/s_tan.c: Reimplement to use
22844         s_tan_template.c.
22845         * sysdeps/m68k/m680x0/fpu/s_tanf.c: Likewise.
22846         * sysdeps/m68k/m680x0/fpu/s_tanl.c: Likewise.
22847         * sysdeps/m68k/m680x0/fpu/s_tanh.c: Reimplement to use
22848         s_tanh_template.c.
22849         * sysdeps/m68k/m680x0/fpu/s_tanhf.c: Likewise.
22850         * sysdeps/m68k/m680x0/fpu/s_tanhl.c: Likewise.
22851         * sysdeps/m68k/m680x0/fpu/s_trunc.c: Reimplement to use
22852         s_trunc_template.c.
22853         * sysdeps/m68k/m680x0/fpu/s_truncf.c: Likewise.
22854         * sysdeps/m68k/m680x0/fpu/s_truncl.c: Likewise.
22855         * sysdeps/m68k/m680x0/fpu/s_significand.c: Reimplement based on
22856         s_atan.c instead of including s_atan.c.
22857         * sysdeps/m68k/m680x0/fpu/s_significandf.c: Reimplement based on
22858         s_atanf.c instead of including s_atanf.c.
22859         * sysdeps/m68k/m680x0/fpu/s_significandl.c: Reimplement based on
22860         s_atanl.c instead of including s_atanl.c.
22861         * sysdeps/m68k/m680x0/fpu/s_log1p.c: Include s_significand.c
22862         instead of s_atan.c.
22863         * sysdeps/m68k/m680x0/fpu/s_log1pf.c: Include s_significandf.c
22864         instead of s_atanf.c.
22865         * sysdeps/m68k/m680x0/fpu/s_log1pl.c: Include s_significandl.c
22866         instead of s_atanl.c.
22868         * scripts/update-copyrights: Do not handle intl/plural.c
22869         specially.
22871 2017-11-30  Juro Bystricky  <juro.bystricky@linux.intel.com>
22873         [BZ #22432]
22874         * configure.ac (BISON): Require to be present.
22875         * configure: Regenerated.
22876         * intl/Makefile (generated): Add plural.c.
22877         [$(BISON) != no]: Make code unconditional.
22878         (plural.c): Change rule to $(objpfx)plural.c.
22879         ($(objpfx)plural.o): Depend on $(objpfx)plural.c.
22880         * intl/plural.c: Remove.
22881         * manual/install.texi (Tools for Compilation): Document bison as
22882         required.
22883         * INSTALL: Regenerated.
22885 2017-11-30  Joseph Myers  <joseph@codesourcery.com>
22887         * sysdeps/m68k/m680x0/fpu/s_llrint.c: Include
22888         <libm-alias-double.h>.
22889         (llrint): Define using libm_alias_double.
22890         * sysdeps/m68k/m680x0/fpu/s_llrintf.c: Include
22891         <libm-alias-float.h>.
22892         (llrintf): Define using libm_alias_float.
22893         * sysdeps/m68k/m680x0/fpu/s_llrintl.c: Include
22894         <libm-alias-ldouble.h>.
22895         (llrintl): Define using libm_alias_ldouble.
22897         * sysdeps/m68k/m680x0/fpu/s_ccosh_template.c (ccosh): Use
22898         declare_mgen_alias instead of weak_alias.
22899         * sysdeps/m68k/m680x0/fpu/s_cexp_template.c (cexp): Likewise.
22900         * sysdeps/m68k/m680x0/fpu/s_csin_template.c (csin): Likewise.
22901         * sysdeps/m68k/m680x0/fpu/s_csinh_template.c (csinh): Likewise.
22903 2017-11-30  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
22905         * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
22906         Add add_n-generic.
22907         * sysdeps/sparc/sparc64/multiarch/add_n-generic.S: New file.
22908         * sysdeps/sparc/sparc64/multiarch/add_n.c: Likewise.
22909         * sysdeps/sparc/sparc64/multiarch/add_n.S: Remove file.
22911         * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
22912         Add submul_1-generic.
22913         * sysdeps/sparc/sparc64/multiarch/submul_1-generic.S: New file.
22914         * sysdeps/sparc/sparc64/multiarch/submul_1.c: Likewise.
22915         * sysdeps/sparc/sparc64/multiarch/submul_1.S: Remove file.
22917         * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
22918         Add addmul_1-generic.
22919         * sysdeps/sparc/sparc64/multiarch/addmul_1-generic.S: New file.
22920         * sysdeps/sparc/sparc64/multiarch/addmul_1.c: Likewise.
22921         * sysdeps/sparc/sparc64/multiarch/addmul_1.S: Remove file.
22923         * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
22924         Add sub_n-generic.
22925         * sysdeps/sparc/sparc64/multiarch/sub_n-generic.S: New file.
22926         * sysdeps/sparc/sparc64/multiarch/sub_n.c: Likewise.
22927         * sysdeps/sparc/sparc64/multiarch/sub_n.S: Remove file.
22929         * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
22930         Add mul_1-generic.
22931         * sysdeps/sparc/sparc64/multiarch/mul_1-generic.S: New file.
22932         * sysdeps/sparc/sparc64/multiarch/mul_1.c: Likewise.
22933         * sysdeps/sparc/sparc64/multiarch/mul_1.S: Remove file.
22935 2017-11-30  Mike FABIAN  <mfabian@redhat.com>
22937         According to CLDR, collation rules for Serbian and Bosnian
22938         should be the same as for Croatian.
22940         [BZ #22534]
22941         * localedata/Makefile: Add sr_RS.UTF-8 and bs_BA.UTF-8 to test-input
22942         and to the list of locales to be built for testing.
22943         * localedata/bs_BA.UTF-8.in: New file (same as hr_HR.UTF-8.in).
22944         * localedata/sr_RS.UTF-8.in: New file (same as hr_HR.UTF-8.in).
22945         * localedata/locales/bs_BA (LC_COLLATE): Use “copy "hr_HR"”.
22946         * localedata/locales/sr_RS (LC_COLLATE): Use “copy "hr_HR"”.
22948 2017-11-30  Mike FABIAN  <mfabian@redhat.com>
22950         * localedata/locales/hr_HR (LC_COLLATE): Fix collation
22951         to make test case pass.
22952         * localedata/hr_HR.UTF-8.in: Add more test strings.
22954 2017-11-30  Mike FABIAN  <mfabian@redhat.com>
22956         * stdlib/tst-strfmon_l.c: Fix testcase. Needed because of [BZ #10580]
22958 2017-11-30  Dragan Stanojević - Nevidljivi  <invisible@hidden-city.net>
22960         * localedata/Makefile: Add hr_HR.UTF-8 to test-input and to
22961         the list of locales to built for testing.
22962         * localedata/hr_HR.UTF-8.in: New file.
22964 2017-11-30  Dragan Stanojević - Nevidljivi  <invisible@hidden-city.net>
22966         [BZ #10580]
22967         * localedata/locales/hr_HR (LC_COLLATE): Base collation rules on
22968         iso14651_t1.
22969         * localedata/locales/hr_HR (LC_TIME): Sync month and day names with
22970         CLDR (except use ligatures for the digraphs, CLDR does not use
22971         the ligatures), add first_workday, some fixes in the date and time
22972         formats.
22973         * localedata/locales/hr_HR (LC_CTYPE): Add transliteration rules
22974         for Đ and đ.
22975         * localedata/locales/hr_HR (LC_MONETARY): Change currency_symbol to
22976         lower case. p_cs_precedes and n_cs_precedes should be 0 instead of 1.
22977         Add int_p_cs_precedes and int_n_cs_precedes.
22978         * localedata/locales/hr_HR (LC_NUMERIC): Change thousands_sep to
22979         "<U202F>" (NARROW NO-BREAK SPACE) and grouping to 3;3 (Agrees with
22980         LC_MONETARY now).
22981         * localedata/locales/hr_HR (LC_TELEPHONE): Add tel_dom_fmt.
22982         * localedata/locales/hr_HR (LC_NAME): Add name_mr, name_mrs, and
22983         name_miss.
22984         * localedata/locales/hr_HR (LC_ADDRESS): Add country_post, country_isbn,
22985         and lang_lib. Change postal_fmt.
22987 2017-11-30  H.J. Lu  <hongjiu.lu@intel.com>
22989         * debug/longjmp_chk.c: Include <setjmpP.h> instead of
22990         <setjmp.h>.
22991         * setjmp/longjmp.c: Include <setjmpP.h> instead of <setjmp.h>.
22992         (__libc_siglongjmp): Cast &env[0].__saved_mask to "sigset_t *".
22993         * setjmp/sigjmp.c: Include <setjmpP.h> instead of <setjmp.h>.
22994         (__sigjmp_save): Cast &env[0].__saved_mask to "sigset_t *".
22995         * sysdeps/generic/setjmpP.h: New file.
22996         * sysdeps/unix/sysv/linux/x86/jmp_buf-ssp.sym: Likewise.
22997         * sysdeps/unix/sysv/linux/x86/setjmpP.h: Likewise.
22998         * sysdeps/unix/sysv/linux/x86/tst-saved_mask-1.c: Likewise.
22999         * sysdeps/unix/sysv/linux/x86/Makefile (gen-as-const-headers):
23000         Add jmp_buf-ssp.sym.
23001         (tests): Add tst-saved_mask-1.
23003 2017-11-30  Arjun Shankar  <arjun@redhat.com>
23005         [BZ #22375]
23006         CVE-2017-17426
23007         * malloc/malloc.c (__libc_malloc): Use checked_request2size
23008         instead of request2size.
23010 2017-11-30  Joseph Myers  <joseph@codesourcery.com>
23012         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S
23013         (__lllrint): Remove alias.
23014         (lllrint): Likewise.
23015         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S
23016         (__lllrintf): Likewise.
23017         (lllrintf): Likewise.
23019         * sysdeps/sparc/sparc32/fpu/s_copysignf.S: Include
23020         <libm-alias-float.h>.
23021         (copysignf): Define using libm_alias_float.
23022         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Include
23023         <libm-alias-float.h>.
23024         (fabsf): Define using libm_alias_float.
23025         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
23026         Include <libm-alias-float.h>.
23027         (copysignf): Define using libm_alias_float.
23028         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Include
23029         <libm-alias-float.h>.
23030         (fabsf): Define using libm_alias_float.
23031         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.c: Include
23032         <libm-alias-float.h>.
23033         (fdimf): Define using libm_alias_float.
23034         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: Include
23035         <libm-alias-float.h>.
23036         (fmaf): Define using libm_alias_float.
23037         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: Include
23038         <libm-alias-float.h>.
23039         (llrintf): Define using libm_alias_float.
23040         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S:
23041         Include <libm-alias-float.h>.
23042         (nearbyintf): Define using libm_alias_float.
23043         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Include
23044         <libm-alias-float.h>.
23045         (rintf): Define using libm_alias_float.
23046         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: Include
23047         <libm-alias-float.h>.
23048         (llrintf): Define using libm_alias_float.
23049         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: Include
23050         <libm-alias-float.h>.
23051         (lrintf): Define using libm_alias_float.
23052         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyintf.S: Include
23053         <libm-alias-float.h>.
23054         (nearbyintf): Define using libm_alias_float.
23055         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Include
23056         <libm-alias-float.h>.
23057         (rintf): Define using libm_alias_float.
23058         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Include
23059         <libm-alias-float.h>.
23060         (ceilf): Define using libm_alias_float.
23061         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Include
23062         <libm-alias-float.h>.
23063         (floorf): Define using libm_alias_float.
23064         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: Include
23065         <libm-alias-float.h>.
23066         (fmaf): Define using libm_alias_float.
23067         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.c: Include
23068         <libm-alias-float.h>.
23069         (lrintf): Define using libm_alias_float.
23070         (llrintf): Likewise.
23071         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.c: Include
23072         <libm-alias-float.h>.
23073         (nearbyintf): Define using libm_alias_float.
23074         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Include
23075         <libm-alias-float.h>.
23076         (rintf): Define using libm_alias_float.
23077         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Include
23078         <libm-alias-float.h>.
23079         (truncf): Define using libm_alias_float.
23080         * sysdeps/sparc/sparc64/fpu/s_copysignf.S: Include
23081         <libm-alias-float.h>.
23082         (copysignf): Define using libm_alias_float.
23083         * sysdeps/sparc/sparc64/fpu/s_fabsf.c: Include
23084         <libm-alias-float.h>.
23085         (fabsf): Define using libm_alias_float.
23086         * sysdeps/sparc/sparc64/fpu/s_lrintf.S: Include
23087         <libm-alias-float.h>.
23088         (lrintf): Define using libm_alias_float.
23089         (llrintf): Likewise.
23090         * sysdeps/sparc/sparc64/fpu/s_nearbyintf.S: Include
23091         <libm-alias-float.h>.
23092         (nearbyintf): Define using libm_alias_float.
23093         * sysdeps/sparc/sparc64/fpu/s_rintf.S: Include
23094         <libm-alias-float.h>.
23095         (rintf): Define using libm_alias_float.
23097 2017-11-29  Joseph Myers  <joseph@codesourcery.com>
23099         * sysdeps/sparc/sparc32/fpu/s_copysign.S: Include
23100         <libm-alias-double.h>.
23101         (copysign): Define using libm_alias_double.
23102         * sysdeps/sparc/sparc32/fpu/s_fabs.S: Include
23103         <libm-alias-double.h>.
23104         (fabs): Define using libm_alias_double.
23105         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
23106         Include <libm-alias-double.h>.
23107         (copysign): Define using libm_alias_double.
23108         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Include
23109         <libm-alias-double.h>.
23110         (fabs): Define using libm_alias_double.
23111         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c: Include
23112         <libm-alias-double.h>.
23113         (fdim): Define using libm_alias_double.
23114         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: Include
23115         <libm-alias-double.h>.
23116         (fma): Define using libm_alias_double.
23117         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Include
23118         <libm-alias-double.h>.
23119         (llrint): Define using libm_alias_double.
23120         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S:
23121         Include <libm-alias-double.h>.
23122         (nearbyint): Define using libm_alias_double.
23123         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Include
23124         <libm-alias-double.h>.
23125         (rint): Define using libm_alias_double.
23126         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Include
23127         <libm-alias-double.h>.
23128         (fabs): Define using libm_alias_double.
23129         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Include
23130         <libm-alias-double.h>.
23131         (llrint): Define using libm_alias_double.
23132         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyint.S: Include
23133         <libm-alias-double.h>.
23134         (nearbyint): Define using libm_alias_double.
23135         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Include
23136         <libm-alias-double.h>.
23137         (rint): Define using libm_alias_double.
23138         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Include
23139         <libm-alias-double.h>.
23140         (ceil): Define using libm_alias_double.
23141         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Include
23142         <libm-alias-double.h>.
23143         (floor): Define using libm_alias_double.
23144         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: Include
23145         <libm-alias-double.h>.
23146         (fma): Define using libm_alias_double.
23147         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.c: Include
23148         <libm-alias-double.h>.
23149         (lrint): Define using libm_alias_double.
23150         (llrint): Likewise.
23151         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.c: Include
23152         <libm-alias-double.h>.
23153         (nearbyint): Define using libm_alias_double.
23154         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Include
23155         <libm-alias-double.h>.
23156         (rint): Define using libm_alias_double.
23157         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Include
23158         <libm-alias-double.h>.
23159         (trunc): Define using libm_alias_double.
23160         * sysdeps/sparc/sparc64/fpu/s_copysign.S: Include
23161         <libm-alias-double.h>.
23162         (copysign): Define using libm_alias_double.
23163         * sysdeps/sparc/sparc64/fpu/s_fabs.c: Include
23164         <libm-alias-double.h>.
23165         (fabs): Define using libm_alias_double.
23166         * sysdeps/sparc/sparc64/fpu/s_lrint.S: Include
23167         <libm-alias-double.h>.
23168         (lrint): Define using libm_alias_double.
23169         (llrint): Likewise.
23170         * sysdeps/sparc/sparc64/fpu/s_nearbyint.S: Include
23171         <libm-alias-double.h>.
23172         (nearbyint): Define using libm_alias_double.
23173         * sysdeps/sparc/sparc64/fpu/s_rint.S: Include
23174         <libm-alias-double.h>.
23175         (rint): Define using libm_alias_double.
23177         [BZ #22229]
23178         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Include
23179         <math_ldbl_opt.h>.
23180         (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
23182         * scripts/build-many-glibcs.py (Context.add_all_configs): Add
23183         SPARC --disable-multi-arch glibc variants.
23185         * sysdeps/x86_64/fpu/multiarch/e_exp2f.c: Include
23186         <libm-alias-float.h>.
23187         (exp2f): Define using libm_alias_float, or libm_alias_float_other
23188         if [SHARED].
23189         * sysdeps/x86_64/fpu/multiarch/e_expf.c: Include
23190         <libm-alias-float.h>.
23191         (exp2f): Define using libm_alias_float, or libm_alias_float_other
23192         if [SHARED].
23193         * sysdeps/x86_64/fpu/multiarch/e_log2f.c: Include
23194         <libm-alias-float.h>.
23195         (exp2f): Define using libm_alias_float, or libm_alias_float_other
23196         if [SHARED].
23197         * sysdeps/x86_64/fpu/multiarch/e_logf.c: Include
23198         <libm-alias-float.h>.
23199         (exp2f): Define using libm_alias_float, or libm_alias_float_other
23200         if [SHARED].
23201         * sysdeps/x86_64/fpu/multiarch/e_powf.c: Include
23202         <libm-alias-float.h>.
23203         (exp2f): Define using libm_alias_float, or libm_alias_float_other
23204         if [SHARED].
23205         * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Include
23206         <libm-alias-float.h>.
23207         (ceilf): Define using libm_alias_float.
23208         * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Include
23209         <libm-alias-float.h>.
23210         (floorf): Define using libm_alias_float.
23211         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Include
23212         <libm-alias-float.h>.
23213         (fmaf): Define using libm_alias_float.
23214         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Include
23215         <libm-alias-float.h>.
23216         (nearbyintf): Define using libm_alias_float.
23217         * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Include
23218         <libm-alias-float.h>.
23219         (rintf): Define using libm_alias_float.
23220         * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Include
23221         <libm-alias-float.h>.
23222         (truncf): Define using libm_alias_float.
23223         * sysdeps/x86_64/fpu/s_copysignf.S: Include <libm-alias-float.h>.
23224         (copysignf): Define using libm_alias_float.
23225         * sysdeps/x86_64/fpu/s_cosf.S: Include <libm-alias-float.h>.
23226         (cosf): Define using libm_alias_float.
23227         * sysdeps/x86_64/fpu/s_fabsf.c: Include <libm-alias-float.h>.
23228         (fabsf): Define using libm_alias_float.
23229         * sysdeps/x86_64/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
23230         (fmaxf): Define using libm_alias_float.
23231         * sysdeps/x86_64/fpu/s_fminf.S: Include <libm-alias-float.h>.
23232         (fminf): Define using libm_alias_float.
23233         * sysdeps/x86_64/fpu/s_llrintf.S: Include <libm-alias-float.h>.
23234         (llrintf): Define using libm_alias_float.
23235         [!__ILP32__] (lrintf): Likewise.
23236         * sysdeps/x86_64/fpu/s_sincosf.S: Include <libm-alias-float.h>.
23237         (sincosf): Define using libm_alias_float.
23238         * sysdeps/x86_64/fpu/s_sinf.S: Include <libm-alias-float.h>.
23239         (sinf): Define using libm_alias_float.
23240         * sysdeps/x86_64/x32/fpu/s_lrintf.S: Include <libm-alias-float.h>.
23241         (lrintf): Define using libm_alias_float.
23243         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Include
23244         <libm-alias-double.h>.
23245         (atan): Define using libm_alias_double.
23246         * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Include
23247         <libm-alias-double.h>.
23248         (ceil): Define using libm_alias_double.
23249         * sysdeps/x86_64/fpu/multiarch/s_floor.c: Include
23250         <libm-alias-double.h>.
23251         (floor): Define using libm_alias_double.
23252         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Include
23253         <libm-alias-double.h>.
23254         (fma): Define using libm_alias_double.
23255         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Include
23256         <libm-alias-double.h>.
23257         (nearbyint): Define using libm_alias_double.
23258         * sysdeps/x86_64/fpu/multiarch/s_rint.c: Include
23259         <libm-alias-double.h>.
23260         (rint): Define using libm_alias_double.
23261         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Include
23262         <libm-alias-double.h>.
23263         (sin): Define using libm_alias_double.
23264         (cos): Likewise.
23265         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Include
23266         <libm-alias-double.h>.
23267         (tan): Define using libm_alias_double.
23268         * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Include
23269         <libm-alias-double.h>.
23270         (trunc): Define using libm_alias_double.
23271         * sysdeps/x86_64/fpu/s_copysign.S: Include <libm-alias-double.h>.
23272         (copysign): Define using libm_alias_double.
23273         * sysdeps/x86_64/fpu/s_fabs.c: Include <libm-alias-double.h>.
23274         (fabs): Define using libm_alias_double.
23275         * sysdeps/x86_64/fpu/s_fmax.S: Include <libm-alias-double.h>.
23276         (fmax): Define using libm_alias_double.
23277         * sysdeps/x86_64/fpu/s_fmin.S: Include <libm-alias-double.h>.
23278         (fmin): Define using libm_alias_double.
23279         * sysdeps/x86_64/fpu/s_llrint.S: Include <libm-alias-double.h>.
23280         (llrint): Define using libm_alias_double.
23281         [!__ILP32__] (lrint): Likewise.
23282         * sysdeps/x86_64/x32/fpu/s_lrint.S: Include <libm-alias-double.h>.
23283         (lrint): Define using libm_alias_double.
23285 2017-11-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
23287         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
23288         (libm-sysdep_routines): Add s_rintf-generic and s_rint-generic
23289         objects.
23290         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-generic.S: New file.
23291         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Likewise.
23292         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-generic.S: Likewise.
23293         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Likewise.
23294         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Remove file.
23295         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
23297         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
23298         (libm-sysdep_routines): Add s_lrint-generic and s_lrintf-generic
23299         objects.
23300         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-generic.S: New file.
23301         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.c: Likewise.
23302         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-generic.S: Likewise.
23303         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.c: Likewise.
23304         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Remove file.
23305         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
23307         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
23308         (libm-sysdep_routines): Add s_nearbyint-generic and
23309         s_nearbyintf-generic objects.
23310         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint-generic.S: New file.
23311         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.c: Likewise.
23312         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf-generic.S: Likewise.
23313         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.c: Likewise.
23314         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.S: Remove file.
23315         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.S: Likewise.
23317         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
23318         Add s_finitef-generic and s_finite-generic objects.
23319         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-generic.S: New file.
23320         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.c: Likewise.
23321         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-generic.S: Likewise.
23322         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.c: Likewise.
23323         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Remove file.
23324         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Remove file.
23326         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
23327         Add s_isinff-generic and s_isinf-generic objects.
23328         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-generic.S: New file.
23329         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.c: Likewise.
23330         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-generic.S: Likewise.
23331         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.c: Likewise.
23332         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Remove file.
23333         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
23335         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
23336         Add s_isnanf-generic and s_isnan-generic objects.
23337         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-generic.S: New file.
23338         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-generic.S: Likewise.
23339         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.c: Likewise.
23340         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.c: Likewise.
23341         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Remove file.
23342         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
23344         * sysdeps/sparc/sparc-ifunc.h (sparc_libm_ifunc_redirected): New
23345         macro.
23346         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdep_calls): New
23347         rule.
23348         (sysdep_routines): Use sysdep_calls as base.
23349         (libm-sysdep_routines): Add generic rule for symbols shared with
23350         libc.  Add s_signbit-generic and s_signbitf-generic objects.
23351         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.c: New file.
23352         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.c: Likewise.
23353         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-generic.S: Likewise.
23354         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-generic.S: Likewise.
23355         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Remove file.
23356         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
23358 2017-11-29  Joseph Myers  <joseph@codesourcery.com>
23360         * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-float.h>.
23361         * sysdeps/ia64/fpu/e_acosf.S (acosf): Use libm_alias_float_other.
23362         * sysdeps/ia64/fpu/e_acoshf.S (acoshf): Likewise.
23363         * sysdeps/ia64/fpu/e_asinf.S (asinf): Likewise.
23364         * sysdeps/ia64/fpu/e_atan2f.S (atan2f): Likewise.
23365         * sysdeps/ia64/fpu/e_atanhf.S (atanhf): Likewise.
23366         * sysdeps/ia64/fpu/e_coshf.S (coshf): Likewise.
23367         * sysdeps/ia64/fpu/e_exp10f.S (exp10f): Likewise.
23368         * sysdeps/ia64/fpu/e_exp2f.S (exp2f): Likewise.
23369         * sysdeps/ia64/fpu/e_expf.S (expf): Likewise.
23370         * sysdeps/ia64/fpu/e_fmodf.S (fmodf): Likewise.
23371         * sysdeps/ia64/fpu/e_hypotf.S (hypotf): Likewise.
23372         * sysdeps/ia64/fpu/e_lgammaf_r.c (lgammaf_r): Define using
23373         libm_alias_float_r.
23374         * sysdeps/ia64/fpu/e_log2f.S (log2f): Use libm_alias_float_other.
23375         * sysdeps/ia64/fpu/e_logf.S (log10f): Likewise.
23376         (logf): Likewise.
23377         * sysdeps/ia64/fpu/e_powf.S (powf): Likewise.
23378         * sysdeps/ia64/fpu/e_remainderf.S (remainderf): Likewise.
23379         * sysdeps/ia64/fpu/e_sinhf.S (sinhf): Likewise.
23380         * sysdeps/ia64/fpu/e_sqrtf.S (sqrtf): Likewise.
23381         * sysdeps/ia64/fpu/libm_sincosf.S (sincosf): Likewise.
23382         * sysdeps/ia64/fpu/s_asinhf.S (asinhf): Likewise.
23383         * sysdeps/ia64/fpu/s_atanf.S (atanf): Likewise.
23384         * sysdeps/ia64/fpu/s_cbrtf.S (cbrtf): Likewise.
23385         * sysdeps/ia64/fpu/s_ceilf.S (ceilf): Likewise.
23386         * sysdeps/ia64/fpu/s_copysign.S (copysignf): Define using
23387         libm_alias_float.
23388         * sysdeps/ia64/fpu/s_cosf.S (sinf): Use libm_alias_float_other.
23389         (cosf): Likewise.
23390         * sysdeps/ia64/fpu/s_erfcf.S (erfcf): Likewise.
23391         * sysdeps/ia64/fpu/s_erff.S (erff): Likewise.
23392         * sysdeps/ia64/fpu/s_expm1f.S (expm1f): Likewise.
23393         * sysdeps/ia64/fpu/s_fabsf.S (fabsf): Likewise.
23394         * sysdeps/ia64/fpu/s_fdimf.S (fdimf): Likewise.
23395         * sysdeps/ia64/fpu/s_floorf.S (floorf): Likewise.
23396         * sysdeps/ia64/fpu/s_fmaf.S (fmaf): Likewise.
23397         * sysdeps/ia64/fpu/s_fmaxf.S (fmaxf): Likewise.
23398         * sysdeps/ia64/fpu/s_frexpf.c (frexpf): Likewise.
23399         * sysdeps/ia64/fpu/s_ldexpf.c (ldexpf): Likewise.
23400         * sysdeps/ia64/fpu/s_log1pf.S (log1pf): Likewise.
23401         * sysdeps/ia64/fpu/s_logbf.S (logbf): Likewise.
23402         * sysdeps/ia64/fpu/s_modff.S (modff): Likewise.
23403         * sysdeps/ia64/fpu/s_nearbyintf.S (nearbyintf): Likewise.
23404         * sysdeps/ia64/fpu/s_nextafterf.S (nextafterf): Likewise.
23405         * sysdeps/ia64/fpu/s_rintf.S (rintf): Likewise.
23406         * sysdeps/ia64/fpu/s_roundf.S (roundf): Likewise.
23407         * sysdeps/ia64/fpu/s_scalblnf.c (scalblnf): Likewise.
23408         * sysdeps/ia64/fpu/s_scalbnf.c (scalbnf): Define using
23409         libm_alias_float.
23410         * sysdeps/ia64/fpu/s_tanf.S (tanf): Use libm_alias_float_other.
23411         * sysdeps/ia64/fpu/s_tanhf.S (tanhf): Likewise.
23412         * sysdeps/ia64/fpu/s_truncf.S (truncf): Likewise.
23413         * sysdeps/ia64/fpu/w_lgammaf_main.c
23414         [BUILD_LGAMMA && !USE_AS_COMPAT] (lgammaf): Likewise.
23415         * sysdeps/ia64/fpu/w_tgammaf_compat.S (tgammaf): Likewise.
23417 2017-11-28  Mike FABIAN  <mfabian@redhat.com>
23418             Alexandre Oliva  <aoliva@redhat.com>
23420         [BZ #17750]
23421         * Makefile: add fr_CA.UTF-8 to test-input and LOCALES.
23422         * localedata/fr_CA.UTF-8.in: New file with test data for backward
23423         accents sorting.
23424         * localedata/fr_FR.UTF-8.in: Fix test data for forward accents
23425         sorting.
23426         * localedata/locales/cs_CZ (LC_COLLATE): Remove “define DIACRIT_FORWARD”
23427         * localedata/locales/de_DE (LC_COLLATE): Likewise.
23428         * localedata/locales/hu_HU (LC_COLLATE): Likewise.
23429         * localedata/locales/lb_LU (LC_COLLATE): Likewise.
23430         * localedata/locales/yuw_PG (LC_COLLATE): Likewise.
23431         * localedata/locales/fr_CA (LC_COLLATE): Add “define DIACRIT_BACKWARD”
23432         * localedata/locales/iso14651_t1_common: Use “ifdef DIACRIT_FORWARD”
23433         instead of “ifdef DIACRIT_BACKWARD”.
23435 2017-11-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
23437         * config.h.in (HAVE_AS_VIS3_SUPPORT): Remove check for VIS3 support.
23438         * sysdeps/sparc/configure.ac (HAVE_AS_VIS3_SUPPORT): Likewise.
23439         * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c: Likewise.
23440         * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.c: Likewise.
23441         * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: Likewise.
23442         * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: Likewise.
23443         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Likewise.
23444         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Likewise.
23445         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Likewise.
23446         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Likewise.
23447         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: Likewise.
23448         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: Likewise.
23449         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Likewise.
23450         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Likewise.
23451         * sysdeps/sparc/sparc-ifunc.h [!HAVE_AS_VIS3_SUPPORT]
23452         (SPARC_ASM_VIS3_IFUNC, SPARC_ASM_VIS3_VIS2_IFUNC): Remove macros.
23453         * sysdeps/sparc/sparc32/sparcv9/Makefile [$(have-as-vis3) != yes]
23454         (ASFLAGS.o, ASFLAGS-.os, ASFLAGS-.op, ASFLAGS-.oS): Remove rules.
23455         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
23456         ($(have-as-vis3) == yes): Remove conditional.
23457         * sysdeps/sparc/sparc64/Makefile (($(have-as-vis3) == yes)):
23458         Likewise.
23459         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-generic.c: New
23460         file.
23461         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-generic.c: New
23462         file.
23463         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-generic.c: New
23464         file.
23465         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-generic.c: New
23466         file.
23467         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-generic.c: New file.
23468         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-generic.c: New file.
23469         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-generic.c: New file.
23470         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-generic.c: New file.
23471         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-generic.c: New file.
23472         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-generic.c: New file.
23473         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-generic.c: New file.
23474         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-generic.c: New file.
23476 2017-11-29  Joseph Myers  <joseph@codesourcery.com>
23478         * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-double.h>.
23479         * sysdeps/ia64/fpu/e_acos.S (acos): Use libm_alias_double_other.
23480         * sysdeps/ia64/fpu/e_acosh.S (acosh): Likewise.
23481         * sysdeps/ia64/fpu/e_asin.S (asin): Likewise.
23482         * sysdeps/ia64/fpu/e_atan2.S (atan2): Likewise.
23483         * sysdeps/ia64/fpu/e_atanh.S (atanh): Likewise.
23484         * sysdeps/ia64/fpu/e_cosh.S (cosh): Likewise.
23485         * sysdeps/ia64/fpu/e_exp.S (exp): Likewise.
23486         * sysdeps/ia64/fpu/e_exp10.S (exp10): Likewise.
23487         * sysdeps/ia64/fpu/e_exp2.S (exp2): Likewise.
23488         * sysdeps/ia64/fpu/e_fmod.S (fmod): Likewise.
23489         * sysdeps/ia64/fpu/e_hypot.S (hypot): Likewise.
23490         * sysdeps/ia64/fpu/e_lgamma_r.c (lgamma_r): Define using
23491         libm_alias_double_r.
23492         * sysdeps/ia64/fpu/e_log.S (log10): Use libm_alias_double_other.
23493         (log): Likewise.
23494         * sysdeps/ia64/fpu/e_log2.S (log2): Likewise.
23495         * sysdeps/ia64/fpu/e_pow.S (pow): Likewise.
23496         * sysdeps/ia64/fpu/e_remainder.S (remainder): Likewise.
23497         * sysdeps/ia64/fpu/e_sinh.S (sinh): Likewise.
23498         * sysdeps/ia64/fpu/e_sqrt.S (sqrt): Likewise.
23499         * sysdeps/ia64/fpu/libm_sincos.S (sincos): Likewise.
23500         * sysdeps/ia64/fpu/s_asinh.S (asinh): Likewise.
23501         * sysdeps/ia64/fpu/s_atan.S (atan): Likewise.
23502         * sysdeps/ia64/fpu/s_cbrt.S (cbrt): Likewise.
23503         * sysdeps/ia64/fpu/s_ceil.S (ceil): Likewise.
23504         * sysdeps/ia64/fpu/s_copysign.S (copysign): Define using
23505         libm_alias_double.
23506         * sysdeps/ia64/fpu/s_cos.S (sin): Use libm_alias_double_other.
23507         (cos): Likewise.
23508         * sysdeps/ia64/fpu/s_erf.S (erf): Likewise.
23509         * sysdeps/ia64/fpu/s_erfc.S (erfc): Likewise.
23510         * sysdeps/ia64/fpu/s_expm1.S (expm1): Likewise.
23511         * sysdeps/ia64/fpu/s_fabs.S (fabs): Likewise.
23512         * sysdeps/ia64/fpu/s_fdim.S (fdim): Likewise.
23513         * sysdeps/ia64/fpu/s_floor.S (floor): Likewise.
23514         * sysdeps/ia64/fpu/s_fma.S (fma): Likewise.
23515         * sysdeps/ia64/fpu/s_fmax.S (fmax): Likewise.
23516         * sysdeps/ia64/fpu/s_frexp.c (frexp): Likewise.
23517         * sysdeps/ia64/fpu/s_ldexp.c (ldexp): Likewise.
23518         * sysdeps/ia64/fpu/s_log1p.S (log1p): Likewise.
23519         * sysdeps/ia64/fpu/s_logb.S (logb): Likewise.
23520         * sysdeps/ia64/fpu/s_modf.S (modf): Likewise.
23521         * sysdeps/ia64/fpu/s_nearbyint.S (nearbyint): Likewise.
23522         * sysdeps/ia64/fpu/s_nextafter.S (nextafter): Likewise.
23523         * sysdeps/ia64/fpu/s_rint.S (rint): Likewise.
23524         * sysdeps/ia64/fpu/s_round.S (round): Likewise.
23525         * sysdeps/ia64/fpu/s_scalbn.c (scalbn): Define using
23526         libm_alias_double.
23527         * sysdeps/ia64/fpu/s_tan.S (tan): Use libm_alias_double_other.
23528         * sysdeps/ia64/fpu/s_tanh.S (tanh): Likewise.
23529         * sysdeps/ia64/fpu/s_trunc.S (trunc): Likewise.
23530         * sysdeps/ia64/fpu/w_lgamma_main.c
23531         [BUILD_LGAMMA && !USE_AS_COMPAT] (lgamma): Likewise.
23532         * sysdeps/ia64/fpu/w_tgamma_compat.S (tgamma): Likewise.
23534 2017-11-28  John David Anglin  <danglin@gcc.gnu.org>
23536         * sysdeps/hppa/start.S (_start): Check PIC instead of SHARED.  Load
23537         address of $global$ into %dp register earlier.  Use pc-relative
23538         instruction sequence for PIC case.
23540 2017-11-28  Joseph Myers  <joseph@codesourcery.com>
23542         * sysdeps/i386/fpu/s_asinhf.S: Include <libm-alias-float.h>.
23543         (asinhf): Define using libm_alias_float.
23544         * sysdeps/i386/fpu/s_atanf.S: Include <libm-alias-float.h>.
23545         (atanf): Define using libm_alias_float.
23546         * sysdeps/i386/fpu/s_cbrtf.S: Include <libm-alias-float.h>.
23547         (cbrtf): Define using libm_alias_float.
23548         * sysdeps/i386/fpu/s_ceilf.S: Include <libm-alias-float.h>.
23549         (ceilf): Define using libm_alias_float.
23550         * sysdeps/i386/fpu/s_copysignf.S: Include <libm-alias-float.h>.
23551         (copysignf): Define using libm_alias_float.
23552         * sysdeps/i386/fpu/s_expm1f.S: Include <libm-alias-float.h>.
23553         (expm1f): Define using libm_alias_float.
23554         * sysdeps/i386/fpu/s_fabsf.S: Include <libm-alias-float.h>.
23555         (fabsf): Define using libm_alias_float.
23556         * sysdeps/i386/fpu/s_floorf.S: Include <libm-alias-float.h>.
23557         (floorf): Define using libm_alias_float.
23558         * sysdeps/i386/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
23559         (fmaxf): Define using libm_alias_float.
23560         * sysdeps/i386/fpu/s_fminf.S: Include <libm-alias-float.h>.
23561         (fminf): Define using libm_alias_float.
23562         * sysdeps/i386/fpu/s_frexpf.S: Include <libm-alias-float.h>.
23563         (frexpf): Define using libm_alias_float.
23564         * sysdeps/i386/fpu/s_llrintf.S: Include <libm-alias-float.h>.
23565         (llrintf): Define using libm_alias_float.
23566         * sysdeps/i386/fpu/s_logbf.S: Include <libm-alias-float.h>.
23567         (logbf): Define using libm_alias_float.
23568         * sysdeps/i386/fpu/s_lrintf.S: Include <libm-alias-float.h>.
23569         (lrintf): Define using libm_alias_float.
23570         * sysdeps/i386/fpu/s_nearbyintf.S: Include <libm-alias-float.h>.
23571         (nearbyintf): Define using libm_alias_float.
23572         * sysdeps/i386/fpu/s_remquof.S: Include <libm-alias-float.h>.
23573         (remquof): Define using libm_alias_float.
23574         * sysdeps/i386/fpu/s_rintf.S: Include <libm-alias-float.h>.
23575         (rintf): Define using libm_alias_float.
23576         * sysdeps/i386/fpu/s_truncf.S: Include <libm-alias-float.h>.
23577         (truncf): Define using libm_alias_float.
23578         * sysdeps/i386/i686/fpu/multiarch/e_exp2f.c: Include
23579         <libm-alias-float.h>.
23580         (exp2f): Define using libm_alias_float, or libm_alias_float_other
23581         if [SHARED].
23582         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Include
23583         <libm-alias-float.h>.
23584         (expf): Define using libm_alias_float, or libm_alias_float_other
23585         if [SHARED].
23586         * sysdeps/i386/i686/fpu/multiarch/e_log2f.c: Include
23587         <libm-alias-float.h>.
23588         (log2f): Define using libm_alias_float, or libm_alias_float_other
23589         if [SHARED].
23590         * sysdeps/i386/i686/fpu/multiarch/e_logf.c: Include
23591         <libm-alias-float.h>.
23592         (logf): Define using libm_alias_float, or libm_alias_float_other
23593         if [SHARED].
23594         * sysdeps/i386/i686/fpu/multiarch/e_powf.c: Include
23595         <libm-alias-float.h>.
23596         (powf): Define using libm_alias_float, or libm_alias_float_other
23597         if [SHARED].
23598         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Include
23599         <libm-alias-float.h>.
23600         (cosf): Define using libm_alias_float.
23601         * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: Include
23602         <libm-alias-float.h>.
23603         (sincosf): Define using libm_alias_float.
23604         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: Include
23605         <libm-alias-float.h>.
23606         (sinf): Define using libm_alias_float.
23607         * sysdeps/i386/i686/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
23608         (fmaxf): Define using libm_alias_float.
23609         * sysdeps/i386/i686/fpu/s_fminf.S: Include <libm-alias-float.h>.
23610         (fminf): Define using libm_alias_float.
23611         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
23612         <libm-alias-float.h>.
23613         (fmaf): Define using libm_alias_float.
23615         * sysdeps/i386/fpu/s_asinh.S: Include <libm-alias-double.h>.
23616         (asinh): Define using libm_alias_double.
23617         * sysdeps/i386/fpu/s_atan.S: Include <libm-alias-double.h>.
23618         (atan): Define using libm_alias_double.
23619         * sysdeps/i386/fpu/s_cbrt.S: Include <libm-alias-double.h>.
23620         (cbrt): Define using libm_alias_double.
23621         * sysdeps/i386/fpu/s_ceil.S: Include <libm-alias-double.h>.
23622         (ceil): Define using libm_alias_double.
23623         * sysdeps/i386/fpu/s_copysign.S: Include <libm-alias-double.h>.
23624         (copysign): Define using libm_alias_double.
23625         * sysdeps/i386/fpu/s_expm1.S: Include <libm-alias-double.h>.
23626         (expm1): Define using libm_alias_double.
23627         * sysdeps/i386/fpu/s_fabs.S: Include <libm-alias-double.h>.
23628         (fabs): Define using libm_alias_double.
23629         * sysdeps/i386/fpu/s_fdim.c: Include <libm-alias-double.h>.
23630         (fdim): Define using libm_alias_double.
23631         * sysdeps/i386/fpu/s_floor.S: Include <libm-alias-double.h>.
23632         (floor): Define using libm_alias_double.
23633         * sysdeps/i386/fpu/s_fmax.S: Include <libm-alias-double.h>.
23634         (fmax): Define using libm_alias_double.
23635         * sysdeps/i386/fpu/s_fmin.S: Include <libm-alias-double.h>.
23636         (fmin): Define using libm_alias_double.
23637         * sysdeps/i386/fpu/s_frexp.S: Include <libm-alias-double.h>.
23638         (frexp): Define using libm_alias_double.
23639         * sysdeps/i386/fpu/s_llrint.S: Include <libm-alias-double.h>.
23640         (llrint): Define using libm_alias_double.
23641         * sysdeps/i386/fpu/s_logb.S: Include <libm-alias-double.h>.
23642         (logb): Define using libm_alias_double.
23643         * sysdeps/i386/fpu/s_lrint.S: Include <libm-alias-double.h>.
23644         (lrint): Define using libm_alias_double.
23645         * sysdeps/i386/fpu/s_nearbyint.S: Include <libm-alias-double.h>.
23646         (nearbyint): Define using libm_alias_double.
23647         * sysdeps/i386/fpu/s_remquo.S: Include <libm-alias-double.h>.
23648         (remquo): Define using libm_alias_double.
23649         * sysdeps/i386/fpu/s_rint.S: Include <libm-alias-double.h>.
23650         (rint): Define using libm_alias_double.
23651         * sysdeps/i386/fpu/s_trunc.S: Include <libm-alias-double.h>.
23652         (trunc): Define using libm_alias_double.
23653         * sysdeps/i386/i686/fpu/s_fmax.S: Include <libm-alias-double.h>.
23654         (fmax): Define using libm_alias_double.
23655         * sysdeps/i386/i686/fpu/s_fmin.S: Include <libm-alias-double.h>.
23656         (fmin): Define using libm_alias_double.
23657         * sysdeps/i386/i686/multiarch/s_fma.c: Include <libm-alias-double.h>.
23658         (fma): Define using libm_alias_double.
23660 2017-11-28  H.J. Lu  <hongjiu.lu@intel.com>
23662         [BZ #22370]
23663         * elf/dl-hwcaps.c (ROUND): Removed.
23664         (_dl_important_hwcaps): Replace ROUND with ELF_NOTE_DESC_OFFSET
23665         and ELF_NOTE_NEXT_OFFSET.
23666         * elf/dl-load.c (ROUND): Removed.
23667         (open_verify): Replace ROUND with ELF_NOTE_NEXT_OFFSET.
23668         * elf/readelflib.c (ROUND): Removed.
23669         (process_elf_file): Replace ROUND with ELF_NOTE_NEXT_OFFSET.
23670         * include/elf.h [!_ISOMAC]: Include <libc-pointer-arith.h>.
23671         [!_ISOMAC] (ELF_NOTE_DESC_OFFSET): New.
23672         [!_ISOMAC] (ELF_NOTE_NEXT_OFFSET): Likewise.
23674 2017-11-28  Joseph Myers  <joseph@codesourcery.com>
23676         * sysdeps/s390/fpu/s_fmaf.c: Include <libm-alias-float.h>.
23677         [!__fmaf] (fmaf): Define using libm_alias_float.
23679         * sysdeps/s390/fpu/s_fma.c: Include <libm-alias-double.h>.
23680         [!__fma] (fma): Define using libm_alias_double.
23681         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: Remove.
23683 2017-11-28  Mike FABIAN  <mfabian@redhat.com>
23685         [BZ #22336]
23686         * localedata/locales/cs_CZ (LC_COLLATE): Use “copy "iso14651_t1"”
23687         and implement the collation rules for cs from CLDR on top of that.
23688         * Makefile: Add cs_CZ.UTF-8 to test-input.
23689         * cs_CZ.UTF-8.in: New file with test data to test the Czech sorting.
23691 2017-11-28  Siddhesh Poyarekar  <siddhesh@sourceware.org>
23693         * localedata/Makefile (LOCALES): Remove duplicate cs_CZ.UTF-8.
23695 2017-11-28  Victor Rodriguez  <victor.rodriguez.bahena@intel.com>
23696             Icarus Sparry  <icarus.w.sparry@intel.com>
23698         * benchtests/Makefile:Add BENCHSET to allow subsets of
23699         benchmarks to be run.
23700         * benchtests/README: Add documentation for: Running subsets of
23701         benchmarks.
23703 2017-11-28  Victor Rodriguez  <victor.rodriguez.bahena@intel.com>
23705         * benchtests/scripts/benchout.schema.json: Fix regex to accept a wider
23706         range of tests names.
23708         * benchtests/scripts/benchout.schema.json: Add throughput as accepted
23709         result from property and remove "max", min" and "mean" from
23710         required properties based on benchtests/bench-skeleton.c.
23712 2017-11-28  Florian Weimer  <fweimer@redhat.com>
23714         [BZ #20826]
23715         Turn posix/tst-getaddrinfo4, posix/tst-getaddrinfo5 into xtests
23716         due to Internet requirement.
23717         * posix/Makefile (tests): Remove tst-getaddrinfo4,
23718         tst-getaddrinfo5.
23719         (xtests): Add tst-getaddrinfo4, tst-getaddrinfo5.
23721 2017-11-28  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
23723         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
23724         [$(subdir) = string] (sysdep_routines): Add memset-ultra1.
23725         * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = string]
23726         (sysdep_routines): Add memset-ultra1.
23727         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-ultra1.S: New
23728         file.
23729         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset.c: Likewise.
23730         * sysdeps/sparc/sparc32/sparcv9/multiarch/bzero.c: Likewise.
23731         * sysdeps/sparc/sparc64/multiarch/ifunc-memset.h: Likewise.
23732         * sysdeps/sparc/sparc64/multiarch/memset-ultra1.S: Likewise.
23733         * sysdeps/sparc/sparc64/multiarch/memset.c: Likewise.
23734         * sysdeps/sparc/sparc64/multiarch/bzero.c: Likewise.
23735         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset.S: Remove file.
23736         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
23738         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-ultra1.S: New
23739         file.
23740         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy.c: Likewise.
23741         * sysdeps/sparc/sparc32/sparcv9/multiarch/mempcpy.c: Likewise.
23742         * sysdeps/sparc/sparc64/multiarch/ifunc-memcpy.h: Likewise.
23743         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra1.S: Likewise.
23744         * sysdeps/sparc/sparc64/multiarch/memcpy.c: Likewise.
23745         * sysdeps/sparc/sparc64/multiarch/mempcpy.c: Likewise.
23746         * sysdeps/sparc/sparc-ifunc.h (sparc_libc_ifunc_redirected): New
23747         macro.
23748         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
23749         [$(subdir) = string] (sysdep_routines): Add memcpy-ultra1.
23750         * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = string]
23751         (sysdep_routines): Add memcpy-ultra1.
23752         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Remove file.
23753         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy.S: Likewise.
23755 2017-11-28  Joseph Myers  <joseph@codesourcery.com>
23757         * sysdeps/alpha/fpu/cfloat-compat.h: Include <libm-alias-float.h>.
23758         (cfloat_versions): Take function argument without trailing 'f'.
23759         Call libm_alias_float_other.
23760         * sysdeps/alpha/fpu/cabsf.c: Update call to cfloat_versions.
23761         * sysdeps/alpha/fpu/cargf.c: Likewise.
23762         * sysdeps/alpha/fpu/cimagf.c: Likewise.
23763         * sysdeps/alpha/fpu/conjf.c: Likewise.
23764         * sysdeps/alpha/fpu/crealf.c: Likewise.
23765         * sysdeps/alpha/fpu/s_cacosf.c: Likewise.
23766         * sysdeps/alpha/fpu/s_cacoshf.c: Likewise.
23767         * sysdeps/alpha/fpu/s_casinf.c: Likewise.
23768         * sysdeps/alpha/fpu/s_casinhf.c: Likewise.
23769         * sysdeps/alpha/fpu/s_catanf.c: Likewise.
23770         * sysdeps/alpha/fpu/s_catanhf.c: Likewise.
23771         * sysdeps/alpha/fpu/s_ccosf.c: Likewise.
23772         * sysdeps/alpha/fpu/s_ccoshf.c: Likewise.
23773         * sysdeps/alpha/fpu/s_cexpf.c: Likewise.
23774         * sysdeps/alpha/fpu/s_clogf.c: Likewise.
23775         * sysdeps/alpha/fpu/s_cpowf.c: Likewise.
23776         * sysdeps/alpha/fpu/s_cprojf.c: Likewise.
23777         * sysdeps/alpha/fpu/s_csinf.c: Likewise.
23778         * sysdeps/alpha/fpu/s_csinhf.c: Likewise.
23779         * sysdeps/alpha/fpu/s_csqrtf.c: Likewise.
23780         * sysdeps/alpha/fpu/s_ctanf.c: Likewise.
23781         * sysdeps/alpha/fpu/s_ctanhf.c: Likewise.
23782         * sysdeps/alpha/fpu/s_clog10f.c: Include <libm-alias-float.h>.
23783         (clog10f): Use libm_alias_float_other.
23784         * sysdeps/alpha/fpu/s_ceilf.c: Include <libm-alias-float.h>.
23785         (ceilf): Define using libm_alias_float.
23786         * sysdeps/alpha/fpu/s_copysignf.c: Include <libm-alias-float.h>.
23787         (copysignf): Define using libm_alias_float.
23788         * sysdeps/alpha/fpu/s_fabsf.c: Include <libm-alias-float.h>.
23789         (fabsf): Define using libm_alias_float.
23790         * sysdeps/alpha/fpu/s_floorf.c: Include <libm-alias-float.h>.
23791         (floorf): Define using libm_alias_float.
23792         * sysdeps/alpha/fpu/s_fmax.S: Include <libm-alias-float.h>.
23793         (fmaxf): Define using libm_alias_float.
23794         * sysdeps/alpha/fpu/s_fmin.S: Include <libm-alias-float.h>.
23795         (fminf): Define using libm_alias_float.
23796         * sysdeps/alpha/fpu/s_lrintf.c: Include <libm-alias-float.h>.
23797         (lrintf): Define using libm_alias_float.
23798         (llrintf): Likewise.
23799         * sysdeps/alpha/fpu/s_lroundf.c: Include <libm-alias-float.h>.
23800         (lroundf): Define using libm_alias_float.
23801         (llroundf): Likewise.
23802         * sysdeps/alpha/fpu/s_rintf.c: Include <libm-alias-float.h>.
23803         (rintf): Define using libm_alias_float.
23804         * sysdeps/alpha/fpu/s_truncf.c: Include <libm-alias-float.h>.
23805         (truncf): Define using libm_alias_float.
23807         * sysdeps/aarch64/fpu/s_ceilf.c: Include <libm-alias-float.h>.
23808         (ceilf): Define using libm_alias_float.
23809         * sysdeps/aarch64/fpu/s_floorf.c: Include <libm-alias-float.h>.
23810         (floorf): Define using libm_alias_float.
23811         * sysdeps/aarch64/fpu/s_fmaf.c: Include <libm-alias-float.h>.
23812         (fmaf): Define using libm_alias_float.
23813         * sysdeps/aarch64/fpu/s_fmaxf.c: Include <libm-alias-float.h>.
23814         (fmaxf): Define using libm_alias_float.
23815         * sysdeps/aarch64/fpu/s_fminf.c: Include <libm-alias-float.h>.
23816         (fminf): Define using libm_alias_float.
23817         * sysdeps/aarch64/fpu/s_llrintf.c: Include <libm-alias-float.h>.
23818         (llrintf): Define using libm_alias_float.
23819         * sysdeps/aarch64/fpu/s_llroundf.c: Include <libm-alias-float.h>.
23820         (llroundf): Define using libm_alias_float.
23821         * sysdeps/aarch64/fpu/s_lrintf.c: Include <libm-alias-float.h>.
23822         (lrintf): Define using libm_alias_float.
23823         * sysdeps/aarch64/fpu/s_lroundf.c: Include <libm-alias-float.h>.
23824         (lroundf): Define using libm_alias_float.
23825         * sysdeps/aarch64/fpu/s_nearbyintf.c: Include
23826         <libm-alias-float.h>.
23827         (nearbyintf): Define using libm_alias_float.
23828         * sysdeps/aarch64/fpu/s_rintf.c: Include <libm-alias-float.h>.
23829         (rintf): Define using libm_alias_float.
23830         * sysdeps/aarch64/fpu/s_roundf.c: Include <libm-alias-float.h>.
23831         (roundf): Define using libm_alias_float.
23832         * sysdeps/aarch64/fpu/s_truncf.c: Include <libm-alias-float.h>.
23833         (truncf): Define using libm_alias_float.
23835         * sysdeps/alpha/fpu/s_ceil.c: Include <libm-alias-double.h>.
23836         (ceil): Define using libm_alias_double.
23837         * sysdeps/alpha/fpu/s_copysign.c: Include <libm-alias-double.h>.
23838         (copysign): Define using libm_alias_double.
23839         * sysdeps/alpha/fpu/s_fabs.c: Include <libm-alias-double.h>.
23840         (fabs): Define using libm_alias_double.
23841         * sysdeps/alpha/fpu/s_floor.c: Include <libm-alias-double.h>.
23842         (floor): Define using libm_alias_double.
23843         * sysdeps/alpha/fpu/s_fmax.S: Include <libm-alias-double.h>.
23844         (fmax): Define using libm_alias_double.
23845         * sysdeps/alpha/fpu/s_fmin.S: Include <libm-alias-double.h>.
23846         (fmin): Define using libm_alias_double.
23847         * sysdeps/alpha/fpu/s_lrint.c: Include <libm-alias-double.h>.
23848         (lrint): Define using libm_alias_double.
23849         (llrint): Likewise.
23850         * sysdeps/alpha/fpu/s_lround.c: Include <libm-alias-double.h>.
23851         (lround): Define using libm_alias_double.
23852         (llround): Likewise.
23853         * sysdeps/alpha/fpu/s_rint.c: Include <libm-alias-double.h>.
23854         (rint): Define using libm_alias_double.
23855         * sysdeps/alpha/fpu/s_trunc.c: Include <libm-alias-double.h>.
23856         (trunc): Define using libm_alias_double.
23858         * sysdeps/ieee754/ldbl-opt/libm-alias-double.h
23859         (libm_alias_double_r): Add semicolon after weak_alias call.
23861 2017-11-27  Joseph Myers  <joseph@codesourcery.com>
23863         * sysdeps/aarch64/fpu/s_ceil.c: Include <libm-alias-double.h>.
23864         (ceil): Define using libm_alias_double.
23865         * sysdeps/aarch64/fpu/s_floor.c: Include <libm-alias-double.h>.
23866         (floor): Define using libm_alias_double.
23867         * sysdeps/aarch64/fpu/s_fma.c: Include <libm-alias-double.h>.
23868         (fma): Define using libm_alias_double.
23869         * sysdeps/aarch64/fpu/s_fmax.c: Include <libm-alias-double.h>.
23870         (fmax): Define using libm_alias_double.
23871         * sysdeps/aarch64/fpu/s_fmin.c: Include <libm-alias-double.h>.
23872         (fmin): Define using libm_alias_double.
23873         * sysdeps/aarch64/fpu/s_llrint.c: Include <libm-alias-double.h>.
23874         (llrint): Define using libm_alias_double.
23875         * sysdeps/aarch64/fpu/s_llround.c: Include <libm-alias-double.h>.
23876         (llround): Define using libm_alias_double.
23877         * sysdeps/aarch64/fpu/s_lrint.c: Include <libm-alias-double.h>.
23878         (lrint): Define using libm_alias_double.
23879         * sysdeps/aarch64/fpu/s_lround.c: Include <libm-alias-double.h>.
23880         (lround): Define using libm_alias_double.
23881         * sysdeps/aarch64/fpu/s_nearbyint.c: Include <libm-alias-double.h>.
23882         (nearbyint): Define using libm_alias_double.
23883         * sysdeps/aarch64/fpu/s_rint.c: Include <libm-alias-double.h>.
23884         (rint): Define using libm_alias_double.
23885         * sysdeps/aarch64/fpu/s_round.c: Include <libm-alias-double.h>.
23886         (round): Define using libm_alias_double.
23887         * sysdeps/aarch64/fpu/s_trunc.c: Include <libm-alias-double.h>.
23888         (trunc): Define using libm_alias_double.
23890 2017-11-27  Florian Weimer  <fweimer@redhat.com>
23892         * sysdeps/unix/sysv/linux/mlock2.c: New file.
23893         * sysdeps/unix/sysv/linux/tst-mlock2.c: Likewise.
23894         * sysdeps/unix/sysv/linux/Makefile (routines): Add mlock2.
23895         (tests): Add tst-mlock2.
23896         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Export mlock2.
23897         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_MLOCK2)
23898         [__LINUX_KERNEL_VERSION >= 4.4]: Define.
23899         * sysdeps/unix/sysv/linux/libc**.abilist: Update.
23900         * manual/memory.texi (Page Lock Functions): Move @end deftypefun
23901         for mlock.  Document mlock2.
23903 2017-11-27  Joseph Myers  <joseph@codesourcery.com>
23905         * sysdeps/ia64/Makeconfig (float64x-alias-fcts): New variable.
23906         * sysdeps/ieee754/float128/Makeconfig (float64x-alias-fcts):
23907         Likewise.
23908         * sysdeps/ieee754/ldbl-128/Makeconfig (float64x-alias-fcts):
23909         Likewise.
23910         * sysdeps/x86/Makeconfig: New file.
23911         * bits/floatn-common.h (__HAVE_FLOAT64X): Remove macro.
23912         (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
23913         * bits/floatn.h (__HAVE_FLOAT64X): New macro.
23914         (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
23915         * sysdeps/ia64/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
23916         (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
23917         * sysdeps/ieee754/ldbl-128/bits/floatn.h (__HAVE_FLOAT64X):
23918         Likewise.
23919         (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
23920         * sysdeps/mips/ieee754/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
23921         (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
23922         * sysdeps/powerpc/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
23923         (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
23924         * sysdeps/x86/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
23925         (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
23926         * manual/math.texi (Mathematics): Document support for _Float64x.
23927         * math/Versions (GLIBC_2.27): Add _Float64x functions.
23928         * stdlib/Versions (GLIBC_2.27): Likewise.
23929         * wcsmbs/Versions (GLIBC_2.27): Likewise.
23930         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
23931         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
23932         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
23933         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
23934         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
23935         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
23936         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
23937         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
23938         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
23939         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
23940         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
23941         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
23942         Likewise.
23943         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
23944         Likewise.
23945         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
23946         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
23947         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
23948         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
23949         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
23950         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
23951         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
23952         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
23953         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
23954         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
23955         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
23956         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
23957         * sysdeps/i386/fpu/libm-test-ulps: Likewise.
23958         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
23960 2017-11-27  Andreas Schwab  <schwab@suse.de>
23962         * elf/Makefile (dl-routines): Add dl-sort-maps.
23963         * elf/dl-sort-maps.c: New file.
23964         * sysdeps/generic/ldsodefs.h (_dl_sort_fini): Don't declare.
23965         (_dl_sort_maps): Declare.
23966         * elf/dl-fini.c (_dl_sort_fini): Remove.
23967         (_dl_fini): Use _dl_sort_maps instead of _dl_sort_fini.
23968         * elf/dl-close.c (_dl_close_worker): Likewise.
23969         * elf/dl-deps.c (_dl_map_object_deps): Use _dl_sort_maps instead of
23970         open-coding it.
23971         * elf/dl-open.c (dl_open_worker): Likewise.
23973 2017-11-24  Joseph Myers  <joseph@codesourcery.com>
23975         * sysdeps/ieee754/float128/s_fromfpf128.c (fromfpf128): Define
23976         using libm_alias_float128.
23977         * sysdeps/ieee754/float128/s_fromfpxf128.c (fromfpxf128):
23978         Likewise.
23979         * sysdeps/ieee754/float128/s_setpayloadf128.c (setpayloadf128):
23980         Likewise.
23981         * sysdeps/ieee754/float128/s_setpayloadsigf128.c
23982         (setpayloadsigf128): Likewise.
23983         * sysdeps/ieee754/float128/s_ufromfpf128.c (ufromfpf128):
23984         Likewise.
23985         * sysdeps/ieee754/float128/s_ufromfpxf128.c (ufromfpxf128):
23986         Likewise.
23988         * sysdeps/powerpc/powerpc64le/Makefile ($(foreach
23989         suf,$(all-object-suffixes),$(objpfx)test-float64x%$(suf))): Add
23990         -mfloat128 to CFLAGS.
23991         ($(foreach
23992         suf,$(all-object-suffixes),$(objpfx)test-ifloat64x%$(suf))):
23993         Likewise.
23994         (CFLAGS-libm-test-support-float64x.c): New variable.
23995         ($(objpfx)test-float64x% $(objpfx)test-ifloat64x%): Add
23996         $(f128-loader-link) to gnulib-tests.
23998         * sysdeps/generic/libm-alias-float128.h: Include <bits/floatn.h>.
23999         (libm_alias_float128_other_r): If
24000         [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE], define f64x
24001         alias.
24002         (libm_alias_float128_r): Add semicolon after weak_alias call.
24003         * sysdeps/generic/libm-alias-ldouble.h
24004         (libm_alias_ldouble_other_r_f128): New macro.
24005         (libm_alias_ldouble_other_r_f64x): Likewise.
24006         (libm_alias_ldouble_other_r): Use libm_alias_ldouble_other_r_f128
24007         and libm_alias_ldouble_other_r_f64x.
24008         (libm_alias_ldouble_r): Add semicolon after weak_alias call.
24009         * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h
24010         (libm_alias_ldouble_other_r_f128): New macro.
24011         (libm_alias_ldouble_other_r_f64x): Likewise.
24012         (libm_alias_ldouble_other_r): Use libm_alias_ldouble_other_r_f128
24013         and libm_alias_ldouble_other_r_f64x.
24015         * stdlib/strfroml.c: Always include <stdlib.h>.
24016         [__HAVE_FLOAT64X_LONG_DOUBLE] (strfromf64x): Define and later
24017         undefine as macro and define as weak alias.
24018         * sysdeps/ieee754/float128/strfromf128.c: Include <bits/floatn.h>.
24019         [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE]: Include
24020         <stdlib.h>.
24021         [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strfromf64x):
24022         Define and later undefine as macro and define as weak alias.
24024         * stdlib/strtold.c [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x):
24025         Define and later undefine as macro.  Define as weak alias if
24026         [!USE_WIDE_CHAR].
24027         [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x): Define and later
24028         undefine as macro.  Define as weak alias if [USE_WIDE_CHAR].
24029         * sysdeps/ieee754/float128/strtof128.c: Include <bits/floatn.h>.
24030         [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x):
24031         Define and later undefine as macro.  Define as weak alias if
24032         [!USE_WIDE_CHAR].
24033         [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x):
24034         Define and later undefine as macro.  Define as weak alias if
24035         [USE_WIDE_CHAR].
24036         * sysdeps/ieee754/float128/strtof128_l.c
24037         [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l):
24038         Define and later undefine as macro.  Define as weak alias if
24039         [!USE_WIDE_CHAR].
24040         [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l):
24041         Define and later undefine as macro.  Define as weak alias if
24042         [USE_WIDE_CHAR].
24043         * sysdeps/ieee754/ldbl-128/strtold_l.c
24044         [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
24045         undefine as macro.  Define as weak alias if [!USE_WIDE_CHAR].
24046         [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
24047         undefine as macro.  Define as weak alias if [USE_WIDE_CHAR].
24048         * sysdeps/ieee754/ldbl-64-128/strtold_l.c
24049         [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
24050         undefine as macro.  Define as weak alias if [!USE_WIDE_CHAR].
24051         [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
24052         undefine as macro.  Define as weak alias if [USE_WIDE_CHAR].
24053         * sysdeps/ieee754/ldbl-96/strtold_l.c
24054         [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
24055         undefine as macro.  Define as weak alias if [!USE_WIDE_CHAR].
24056         [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
24057         undefine as macro.  Define as weak alias if [USE_WIDE_CHAR].
24059         * math/test-float64x.h: New file.
24060         * math/Makefile (type-float64x-yes): New variable.
24061         (test-types): Add $(type-float64x-$(float64x-alias-fcts)).
24063         * sysdeps/generic/math_private.h (min_of_type_f): Make into a
24064         function-like macro.
24065         (min_of_type_): Likewise.
24066         (min_of_type_l): Likewise.
24067         (min_of_type_f128): Likewise.
24068         (min_of_type): Pass () as last argument of __MATH_TG.
24070         * stdlib/tst-strtod-round-skeleton.c
24071         (__STDC_WANT_IEC_60559_TYPES_EXT__): Define before including
24072         headers.
24074         * math/gen-tgmath-tests.py (Type.init_types): Pass suffix argument
24075         for combinations of long double with _Float64 and _Float64x.
24077         * bits/libm-simd-decl-stubs.h (__DECL_SIMD_cosf16): New macro.
24078         (__DECL_SIMD_cosf32): Likewise.
24079         (__DECL_SIMD_cosf64): Likewise.
24080         (__DECL_SIMD_cosf32x): Likewise.
24081         (__DECL_SIMD_cosf64x): Likewise.
24082         (__DECL_SIMD_cosf128x): Likewise.
24083         (__DECL_SIMD_sinf16): Likewise.
24084         (__DECL_SIMD_sinf32): Likewise.
24085         (__DECL_SIMD_sinf64): Likewise.
24086         (__DECL_SIMD_sinf32x): Likewise.
24087         (__DECL_SIMD_sinf64x): Likewise.
24088         (__DECL_SIMD_sinf128x): Likewise.
24089         (__DECL_SIMD_sincosf16): Likewise.
24090         (__DECL_SIMD_sincosf32): Likewise.
24091         (__DECL_SIMD_sincosf64): Likewise.
24092         (__DECL_SIMD_sincosf32x): Likewise.
24093         (__DECL_SIMD_sincosf64x): Likewise.
24094         (__DECL_SIMD_sincosf128x): Likewise.
24095         (__DECL_SIMD_logf16): Likewise.
24096         (__DECL_SIMD_logf32): Likewise.
24097         (__DECL_SIMD_logf64): Likewise.
24098         (__DECL_SIMD_logf32x): Likewise.
24099         (__DECL_SIMD_logf64x): Likewise.
24100         (__DECL_SIMD_logf128x): Likewise.
24101         (__DECL_SIMD_expf16): Likewise.
24102         (__DECL_SIMD_expf32): Likewise.
24103         (__DECL_SIMD_expf64): Likewise.
24104         (__DECL_SIMD_expf32x): Likewise.
24105         (__DECL_SIMD_expf64x): Likewise.
24106         (__DECL_SIMD_expf128x): Likewise.
24107         (__DECL_SIMD_powf16): Likewise.
24108         (__DECL_SIMD_powf32): Likewise.
24109         (__DECL_SIMD_powf64): Likewise.
24110         (__DECL_SIMD_powf32x): Likewise.
24111         (__DECL_SIMD_powf64x): Likewise.
24112         (__DECL_SIMD_powf128x): Likewise.
24114         * stdlib/Versions (libc): Move entries for wcstof128 and
24115         wcstof128_l to ....
24116         * wcsmbs/Versions (libc): ... here.
24117         Include <float128-abi.h>.
24119 2017-11-24  Florian Weimer  <fweimer@redhat.com>
24121         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
24122         bits/mman-shared.h.
24123         * sysdeps/unix/sysv/linux/bits/mman-linux.h: Include
24124         <bits/mman-shared.h>.
24125         (MFD_CLOEXEC, MFD_ALLOW_SEALING, MFD_HUGETLB, memfd_create): Move
24126         to ...
24127         * sysdeps/unix/sysv/linux/bits/mman-shared.h: ... this new file.
24128         Add #ifndef guard for the MFD_* constants based on MFD_CLOEXEC.
24129         * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Include
24130         <bits/mman-shared.h>.
24132 2017-11-24  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
24134         [BZ #22457]
24135         * sysdeps/posix/preadv_common.c (PREADV): Use mmap/munmap instead of
24136         posix_memalign/free.
24137         * sysdeps/posix/pwritev_common.c (PWRITEV): Likewise.
24139 2017-11-22  Mike FABIAN  <mfabian@redhat.com>
24141         [BZ #22469]
24142         * localedata/locales/pl_PL (LC_COLLATE): Use “copy "iso14651_t1"”
24143         and implement the collation rules for pl from CLDR on top of that.
24144         * Makefile: Add pl_PL.UTF-8 to test-input and to the list
24145         of locales to be built for testing.
24146         * pl_PL.UTF-8.in: New file with test data to test the Polish sorting.
24148 2017-11-23  Joseph Myers  <joseph@codesourcery.com>
24150         * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-ldouble.h>.
24151         * sysdeps/ia64/fpu/e_acoshl.S (acoshl): Use
24152         libm_alias_ldouble_other.
24153         * sysdeps/ia64/fpu/e_acosl.S (acosl): Likewise.
24154         * sysdeps/ia64/fpu/e_asinl.S (asinl): Likewise.
24155         * sysdeps/ia64/fpu/e_atanhl.S (atanhl): Likewise.
24156         * sysdeps/ia64/fpu/e_coshl.S (coshl): Likewise.
24157         * sysdeps/ia64/fpu/e_exp10l.S (exp10l): Likewise.
24158         * sysdeps/ia64/fpu/e_exp2l.S (exp2l): Likewise.
24159         * sysdeps/ia64/fpu/e_fmodl.S (fmodl): Likewise.
24160         * sysdeps/ia64/fpu/e_hypotl.S (hypotl): Likewise.
24161         * sysdeps/ia64/fpu/e_lgammal_r.c (lgammal_r): Define using
24162         libm_alias_ldouble_r.
24163         * sysdeps/ia64/fpu/e_log2l.S (log2l): Use
24164         libm_alias_ldouble_other.
24165         * sysdeps/ia64/fpu/e_logl.S (logl): Likewise.
24166         (log10l): Likewise.
24167         * sysdeps/ia64/fpu/e_powl.S (powl): Likewise.
24168         * sysdeps/ia64/fpu/e_remainderl.S (remainderl): Likewise.
24169         * sysdeps/ia64/fpu/e_sinhl.S (sinhl): Likewise.
24170         * sysdeps/ia64/fpu/e_sqrtl.S (sqrtl): Likewise.
24171         * sysdeps/ia64/fpu/libm_sincosl.S (sincosl): Likewise.
24172         * sysdeps/ia64/fpu/s_asinhl.S (asinhl): Likewise.
24173         * sysdeps/ia64/fpu/s_atanl.S (atanl): Likewise.
24174         (atan2l): Likewise.
24175         * sysdeps/ia64/fpu/s_cbrtl.S (cbrtl): Likewise.
24176         * sysdeps/ia64/fpu/s_ceill.S (ceill): Likewise.
24177         * sysdeps/ia64/fpu/s_copysign.S (copysignl): Define using
24178         libm_alias_ldouble.
24179         * sysdeps/ia64/fpu/s_cosl.S (sinl): Use libm_alias_ldouble_other.
24180         (cosl): Likewise.
24181         * sysdeps/ia64/fpu/s_erfcl.S (erfcl): Likewise.
24182         * sysdeps/ia64/fpu/s_erfl.S (erfl): Likewise.
24183         * sysdeps/ia64/fpu/s_expm1l.S (expm1l): Likewise.
24184         (expl): Likewise.
24185         * sysdeps/ia64/fpu/s_fabsl.S (fabsl): Likewise.
24186         * sysdeps/ia64/fpu/s_fdiml.S (fdiml): Likewise.
24187         * sysdeps/ia64/fpu/s_floorl.S (floorl): Likewise.
24188         * sysdeps/ia64/fpu/s_fmal.S (fmal): Likewise.
24189         * sysdeps/ia64/fpu/s_fmaxl.S (fmaxl): Likewise.
24190         * sysdeps/ia64/fpu/s_frexpl.c (frexpl): Likewise.
24191         * sysdeps/ia64/fpu/s_ldexpl.c (ldexpl): Likewise.
24192         * sysdeps/ia64/fpu/s_log1pl.S (log1pl): Likewise.
24193         * sysdeps/ia64/fpu/s_logbl.S (logbl): Likewise.
24194         * sysdeps/ia64/fpu/s_modfl.S (modfl): Likewise.
24195         * sysdeps/ia64/fpu/s_nearbyintl.S (nearbyintl): Define using
24196         libm_alias_ldouble.
24197         * sysdeps/ia64/fpu/s_nextafterl.S (nextafterl): Use
24198         libm_alias_ldouble_other.
24199         * sysdeps/ia64/fpu/s_rintl.S (rintl): Likewise.
24200         * sysdeps/ia64/fpu/s_roundl.S (roundl): Likewise.
24201         * sysdeps/ia64/fpu/s_scalbnl.c (scalbnl): Define using
24202         libm_alias_ldouble.
24203         * sysdeps/ia64/fpu/s_tanhl.S (tanhl): Use
24204         libm_alias_ldouble_other.
24205         * sysdeps/ia64/fpu/s_tanl.S (tanl): Likewise.
24206         * sysdeps/ia64/fpu/s_truncl.S (truncl): Likewise.
24207         * sysdeps/ia64/fpu/w_lgammal_main.c
24208         [BUILD_LGAMMA && !USE_AS_COMPAT] (lgammal): Likewise.
24209         * sysdeps/ia64/fpu/w_tgammal_compat.S (tgammal): Likewise.
24211 2017-11-23  Florian Weimer  <fweimer@redhat.com>
24213         * malloc/malloc.c (tcache_thread_shutdown): Rename from
24214         tcache_thread_freeres.  Define for USE_TCACHE and !USE_TCACHE
24215         alike.  Remove freeres marker.
24216         * malloc/arena.c (arena_thread_freeres): Call
24217         tcache_thread_shutdown.
24219 2017-11-23  Florian Weimer  <fweimer@redhat.com>
24221         [BZ #22459]
24222         Export nscd hash function as __nss_hash.
24223         * include/nss.h (__nss_hash): Declare.
24224         * nis/nis_hash.c (__nis_hash): Call __nss_hash.  Turn into compat
24225         symbol.
24226         * nscd/Makefile (aux, nscd-modules): Remove nscd_hash.
24227         * nscd/cache.c (cache_search, cache_add): Call __nss_hash instead
24228         of __nscd_hash.
24229         * nscd/nscd_helper.c (__nscd_cache_search): Likewise.
24230         * nscd/nscd_hash.h, nscd/nscd_hash.c: Remove files.
24231         * nss/Makefiles (routines): Add nss_hash.
24232         * nss/Versions (GLIBC_PRIVATE): Export __nss_hash.
24233         * nss/nss_hash.c: Rename from nis/nis_hash.c.
24234         (__nss_hash): Rename from __nis_hash.  Define hidden alias.
24235         * nis/rpcsvc/nislib.h (__nis_hash): Remove declaration.
24237 2017-11-23  Florian Weimer  <fweimer@redhat.com>
24239         [BZ #22478]
24240         * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Retry on EINTR.
24241         Return error code, not -1.
24242         * signal/tst-sigwait-eintr.c: New file.
24243         * signal/Makefile (tests): Add tst-sigwait-eintr.
24245 2017-11-23  Florian Weimer  <fweimer@redhat.com>
24247         Linux: Add memfd_create system call wrapper
24248         * sysdeps/unix/sysv/linux/Makefile [misc] (tests): Add
24249         tst-memfd_create.
24250         * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_GNU]
24251         (MFD_CLOEXEC, MFD_ALLOW_SEALING): Define.
24252         [__USE_GNU] (memfd_create): Declare.
24253         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Add memfd_create.
24254         * sysdeps/unix/sysv/linux/syscalls.list (memfd_create): Add.
24255         * sysdeps/unix/sysv/linux/tst-memfd_create.c: New file.
24256         * sysdeps/unix/sysv/linux/**.abilist: Update.
24257         * manual/llio.texi (Memory-mapped I/O): Document memfd_create.
24259 2017-11-22  Joseph Myers  <joseph@codesourcery.com>
24261         * localedata/gen-locale.sh: Fix typo in variable name.
24263         * resolv/res_debug.c (p_secstodate): Condition definition on
24264         [SHLIB_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)].  Define
24265         directly as __p_secstodate, and as a compat symbol.  Do not use
24266         libresolv_hidden_def.
24267         * resolv/resolv.h (p_secstodate): Remove macro and function
24268         declaration.
24269         * resolv/ns_print.c (ns_sprintrrf): Print times with %lu, not
24270         using p_secstodate.
24271         * include/resolv.h (__p_secstodate): Do not use
24272         libresolv_hidden_proto.
24273         * resolv/Makefile (tests): Move tst-p_secstodate to ....
24274         (tests-internal): ... here.
24275         * resolv/tst-p_secstodate.c: Include <shlib-compat.h>.  Condition
24276         all contents on [TEST_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)]
24277         and declare and use __p_secstodate and use compat_symbol_reference
24278         in that case.
24279         [!TEST_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)] (do_test): Add
24280         implementation returning 77.
24282         [BZ #22463]
24283         * resolv/res_debug.c: Include <libc-diag.h>.
24284         (p_secstodate): Assert time_t at least as wide as u_long.  On
24285         overflow, use integer seconds since the epoch as output, or use
24286         "<overflow>" as output and set errno to EOVERFLOW if integer
24287         seconds since the epoch would be 14 or more characters.
24288         (p_secstodate) [__GNUC_PREREQ (7, 0)]: Disable -Wformat-overflow=
24289         for sprintf call.
24290         * resolv/tst-p_secstodate.c: New file.
24291         * resolv/Makefile (tests): Add tst-p_secstodate.
24292         ($(objpfx)tst-p_secstodate): Depend on $(objpfx)libresolv.so.
24294         * sysdeps/sparc/sparc64/soft-fp/s_frexpl.c: Remove file.
24295         * sysdeps/sparc/sparc64/soft-fp/s_scalblnl.c: Likewise.
24296         * sysdeps/sparc/sparc64/soft-fp/s_scalbnl.c: Likewise.
24298 2017-11-22  Paul Eggert  <eggert@cs.ucla.edu>
24300         * posix/regcomp.c (init_word_char): Add comments.
24302 2017-11-22  Joseph Myers  <joseph@codesourcery.com>
24304         [BZ #22447]
24305         * sysdeps/unix/getlogin_r.c (__getlogin_r): Use __strnlen not
24306         strlen to compute length of ut_user and set trailing NUL byte of
24307         result explicitly.
24309 2017-11-21  Mike FABIAN  <mfabian@redhat.com>
24311         [BZ #15537]
24312         * localedata/locales/lv_LV (LC_COLLATE): Fix collation by
24313         using “copy "iso14651_t1"” and then implementing the
24314         collation rules for lv from CLDR on top of that.
24315         * Makefile: Add lv_LV.UTF-8 to test-input and to the list
24316         of locales to be built for testing.
24317         * lv_LV.UTF-8.in: New file with test data to test the Latvian
24318         sorting.
24320 2017-11-21  Joseph Myers  <joseph@codesourcery.com>
24322         * sysdeps/unix/sysv/linux/hppa/bits/mman.h
24323         [__USE_MISC] (MADV_SPACEAVAIL): Remove macro.
24324         [__USE_MISC] (MADV_VPS_PURGE): Likewise.
24325         [__USE_MISC] (MADV_VPS_INHERIT): Likewise.
24326         [__USE_MISC] (MADV_HWPOISON): New macro.
24327         [__USE_MISC] (MADV_SOFT_OFFLINE): Likewise.
24329 2017-11-21  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
24331         * nptl/pthreadP.h (ASSERT_PTHREAD_INTERNAL_SIZE): Add workarond for
24332         -Wmissing-braces on GCC 4.9.
24334 2017-11-21  Stefan Liebler  <stli@linux.vnet.ibm.com>
24336         * sysdeps/s390/s390-64/start.S (_start): Add cfi information for r14.
24337         * sysdeps/s390/s390-32/start.S (_start): Likewise
24338         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S
24339         (thread_start): Likewise.
24340         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S
24341         (thread_start): Likewise.
24342         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S
24343         (__makecontext_ret): Likewise.
24344         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S
24345         (__makecontext_ret): Likewise.
24347 2017-11-21  Stefan Liebler  <stli@linux.vnet.ibm.com>
24349         * include/wchar.h (__wcsnlen, __wcscat, __wcsncpy, __wcpncpy,
24350         __wcschrnul): Remove attribute_hidden.
24352 2017-11-20  Paul Eggert  <eggert@cs.ucla.edu>
24354         regex: don't assume uint64_t or uint32_t
24355         This avoids -Werror=overflow errors for 32-bit systems in
24356         the 64-bit case.  Problem reported by Joseph Myers in:
24357         https://sourceware.org/ml/libc-alpha/2017-11/msg00694.html
24358         Also, when this code is used in Gnulib it ports to platforms
24359         that lack uint64_t and uint32_t.  The C standard doesn't guarantee
24360         them, and on some 32-bit compilers there is no uint64_t.
24361         Problem reported by Gianluigi Tiesi in:
24362         http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00154.html
24363         * posix/regcomp.c (init_word_char): Don't assume that the types
24364         uint64_t and uint32_t exist.  Adapted from Gnulib patch
24365         2012-05-27T06:40:00!eggert@cs.ucla.edu.  See:
24366         https://git.savannah.gnu.org/cgit/gnulib.git/commit/?id=252b52457da7887667c036d18cc5169777615bb0
24368 2017-11-20  Siddhesh Poyarekar  <siddhesh@sourceware.org>
24370         * sysdeps/aarch64/memset-reg.h: New file.
24371         * sysdeps/aarch64/memset.S: Use it.
24372         (__memset): Rename to MEMSET macro.
24373         [ZVA_MACRO]: Use zva_macro.
24374         * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
24375         Add memset_generic and memset_falkor.
24376         * sysdeps/aarch64/multiarch/ifunc-impl-list.c
24377         (__libc_ifunc_impl_list): Add memset ifuncs.
24378         * sysdeps/aarch64/multiarch/init-arch.h (INIT_ARCH): New
24379         local variable zva_size.
24380         * sysdeps/aarch64/multiarch/memset.c: New file.
24381         * sysdeps/aarch64/multiarch/memset_generic.S: New file.
24382         * sysdeps/aarch64/multiarch/memset_falkor.S: New file.
24383         * sysdeps/aarch64/multiarch/rtld-memset.S: New file.
24384         * sysdeps/unix/sysv/linux/aarch64/cpu-features.c
24385         (DCZID_DZP_MASK): New macro.
24386         (DCZID_BS_MASK): Likewise.
24387         (init_cpu_features): Read and set zva_size.
24388         * sysdeps/unix/sysv/linux/aarch64/cpu-features.h
24389         (struct cpu_features): New member zva_size.
24391         * benchtests/bench-memcpy-walk.c (START_SIZE): Set to 128.
24392         * benchtests/bench-memmove-walk.c (START_SIZE): Likewise.
24393         * benchtests/bench-memset-walk.c (START_SIZE): Likewise.
24395         * benchtests/bench-memcpy-walk.c (do_one_test): Copy only
24396         backwards.  Fix timing computation.
24397         * benchtests/bench-memmove-walk.c (do_one_test): Likewise.
24398         * benchtests/bench-memset-walk.c (do_one_test): Walk backwards
24399         on memset by N at a time.  Fix timing computation.
24401 2017-11-20  Florian Weimer  <fweimer@redhat.com>
24403         * manual/llio.texi (Memory-mapped I/O): Document MAP_HUGETLB,
24404         MADV_HUGEPAGE, MADV_NOHUGEPAGE.
24406 2017-11-19  Florian Weimer  <fweimer@redhat.com>
24408         manual: Document mprotect
24409         * manual/memory.texi (Memory Protection): New section.
24410         * manual/llio.texi (Memory-mapped I/O): Remove duplicate
24411         documentation of PROT_* flags and reference the Memory Protection
24412         section instead.
24414 2017-11-19  Florian Weimer  <fweimer@redhat.com>
24416         * manual/llio.texi (I/O Primitives): Move preadv, preadv64,
24417         pwritev, pwritev64, preadv2, preadv64v2, pwritev2, pwritev64v2 ...
24418         (Scatter-Gather): ... to here.  Remove misleading comment.
24420 2017-11-18  Christian Brauner  <christian.brauner@ubuntu.com>
24422         * support/support_become_root.c (setup_uid_gid_mapping): Fix comment
24423         style.
24425         * support/support_become_root.c (setup_uid_gid_mapping): Don't fail
24426         when /proc/<pid>/setgroups does not exist.
24428 2017-11-18  Florian Weimer  <fweimer@redhat.com>
24430         * sysdeps/unix/sysv/linux/tst-ttyname.c
24431         (become_root_in_mount_ns): Remove.
24432         (do_in_chroot_1): Call support_enter_mount_namespace.
24433         (do_in_chroot_2): Likewise.
24434         (do_test): Call support_become_root early.
24436 2017-11-18  Florian Weimer  <fweimer@redhat.com>
24438         * support/namespace.h (support_enter_mount_namespace): Declare.
24439         * support/support_enter_mount_namespace.c: New file.
24440         * support/Makefile (libsupport-routines): Add
24441         support_enter_mount_namespace.
24443 2017-11-18  Florian Weimer  <fweimer@redhat.com>
24445         * support/temp_file.c (support_create_temp_directory): Use
24446         test_dir and do not rely on the presence of the XXXXXX suffix.
24447         * support/temp_file.h (support_create_temp_directory): Update
24448         comment.
24449         * support/tst-xreadlink.c (do_test): Adjust.
24450         * support/support_chroot.c (support_chroot_create): Likewise.
24452 2017-11-17  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
24454         * sysdeps/powerpc/bits/hwcap.h (PPC_FEATURE2_HTM_NO_SUSPEND): New
24455         macro.
24456         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add
24457         htm-no-suspend.
24459 2017-11-17  Joseph Myers  <joseph@codesourcery.com>
24461         * sysdeps/x86_64/fpu/e_expl.S: Include <libm-alias-ldouble.h>.
24462         [USE_AS_EXPM1L] (expm1l): Define using libm_alias_ldouble.
24463         * sysdeps/x86_64/fpu/s_ceill.S: Include <libm-alias-ldouble.h>.
24464         (ceill): Define using libm_alias_ldouble.
24465         * sysdeps/x86_64/fpu/s_copysignl.S: Include
24466         <libm-alias-ldouble.h>.
24467         (copysignl): Define using libm_alias_ldouble.
24468         * sysdeps/x86_64/fpu/s_fabsl.S: Include <libm-alias-ldouble.h>.
24469         (fabsl): Define using libm_alias_ldouble.
24470         * sysdeps/x86_64/fpu/s_floorl.S: Include <libm-alias-ldouble.h>.
24471         (floorl): Define using libm_alias_ldouble.
24472         * sysdeps/x86_64/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
24473         (fmaxl): Define using libm_alias_ldouble.
24474         * sysdeps/x86_64/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
24475         (fminl): Define using libm_alias_ldouble.
24476         * sysdeps/x86_64/fpu/s_llrintl.S: Include <libm-alias-ldouble.h>.
24477         (llrintl): Define using libm_alias_ldouble.
24478         (lrintl): Likewise.
24479         * sysdeps/x86_64/fpu/s_nearbyintl.S: Include
24480         <libm-alias-ldouble.h>.
24481         (nearbyintl): Define using libm_alias_ldouble.
24482         * sysdeps/x86_64/fpu/s_truncl.S: Include <libm-alias-ldouble.h>.
24483         (truncl): Define using libm_alias_ldouble.
24484         * sysdeps/x86_64/x32/fpu/s_lrintl.S: Include
24485         <libm-alias-ldouble.h>.
24486         (lrintl): Define using libm_alias_ldouble.
24488         * sysdeps/i386/fpu/e_expl.S: Include <libm-alias-ldouble.h>.
24489         [USE_AS_EXPM1L] (expm1l): Define using libm_alias_ldouble.
24490         * sysdeps/i386/fpu/s_asinhl.S: Include <libm-alias-ldouble.h>.
24491         (asinhl): Define using libm_alias_ldouble.
24492         * sysdeps/i386/fpu/s_atanl.c: Include <libm-alias-ldouble.h>.
24493         (atanl): Define using libm_alias_ldouble.
24494         * sysdeps/i386/fpu/s_cbrtl.S: Include <libm-alias-ldouble.h>.
24495         (cbrtl): Define using libm_alias_ldouble.
24496         * sysdeps/i386/fpu/s_ceill.S: Include <libm-alias-ldouble.h>.
24497         (ceill): Define using libm_alias_ldouble.
24498         * sysdeps/i386/fpu/s_copysignl.S: Include <libm-alias-ldouble.h>.
24499         (copysignl): Define using libm_alias_ldouble.
24500         * sysdeps/i386/fpu/s_fabsl.S: Include <libm-alias-ldouble.h>.
24501         (fabsl): Define using libm_alias_ldouble.
24502         * sysdeps/i386/fpu/s_floorl.S: Include <libm-alias-ldouble.h>.
24503         (floorl): Define using libm_alias_ldouble.
24504         * sysdeps/i386/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
24505         (fmaxl): Define using libm_alias_ldouble.
24506         * sysdeps/i386/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
24507         (fminl): Define using libm_alias_ldouble.
24508         * sysdeps/i386/fpu/s_frexpl.S: Include <libm-alias-ldouble.h>.
24509         (frexpl): Define using libm_alias_ldouble.
24510         * sysdeps/i386/fpu/s_llrintl.S: Include <libm-alias-ldouble.h>.
24511         (llrintl): Define using libm_alias_ldouble.
24512         * sysdeps/i386/fpu/s_logbl.c: Include <libm-alias-ldouble.h>.
24513         (logbl): Define using libm_alias_ldouble.
24514         * sysdeps/i386/fpu/s_lrintl.S: Include <libm-alias-ldouble.h>.
24515         (lrintl): Define using libm_alias_ldouble.
24516         * sysdeps/i386/fpu/s_nearbyintl.S: Include <libm-alias-ldouble.h>.
24517         (nearbyintl): Define using libm_alias_ldouble.
24518         * sysdeps/i386/fpu/s_nextafterl.c: Include <libm-alias-ldouble.h>.
24519         (nextafterl): Define using libm_alias_ldouble.
24520         * sysdeps/i386/fpu/s_remquol.S: Include <libm-alias-ldouble.h>.
24521         (remquol): Define using libm_alias_ldouble.
24522         * sysdeps/i386/fpu/s_rintl.c: Include <libm-alias-ldouble.h>.
24523         (rintl): Define using libm_alias_ldouble.
24524         * sysdeps/i386/fpu/s_truncl.S: Include <libm-alias-ldouble.h>.
24525         (truncl): Define using libm_alias_ldouble.
24526         * sysdeps/i386/i686/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
24527         (fmaxl): Define using libm_alias_ldouble.
24528         * sysdeps/i386/i686/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
24529         (fminl): Define using libm_alias_ldouble.
24531         * bits/floatn-common.h [!__ASSEMBLER]: Disable everything related
24532         to C syntax instead of availability and properties of types.
24533         * bits/floatn.h [!__ASSEMBLER]: Likewise.
24534         * sysdeps/ia64/bits/floatn.h [!__ASSEMBLER]: Likewise.
24535         * sysdeps/ieee754/ldbl-128/bits/floatn.h [!__ASSEMBLER]: Likewise.
24536         * sysdeps/mips/ieee754/bits/floatn.h [!__ASSEMBLER]: Likewise.
24537         * sysdeps/powerpc/bits/floatn.h [!__ASSEMBLER]: Likewise.
24538         * sysdeps/x86/bits/floatn.h [!__ASSEMBLER]: Likewise.
24540 2017-11-17  Florian Weimer  <fweimer@redhat.com>
24542         support_become_root: Enable file creation in namespaces.
24543         * support/support_become_root.c (setup_mapping): New function.
24544         (support_become_root): Call it.
24546 2017-11-17  Joseph Myers  <joseph@codesourcery.com>
24548         * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_DCPOP): New
24549         macro.
24551 2017-11-16  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
24553         * sysdeps/aarch64/fpu/Makefile (CFLAGS-s_fmax.c, CFLAGS-s_fmaxf.c,
24554         CFLAGS-s_fmin.c, CFLAGS-s_fminf.c): New rule: add -ffinite-math-only.
24556 2017-11-16  Joseph Myers  <joseph@codesourcery.com>
24558         * sysdeps/unix/sysv/linux/net/if_arp.h (ARPHRD_RAWIP): New macro.
24560         * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
24561         version to 4.14.
24563 2017-11-16  Siddhesh Poyarekar  <siddhesh@sourceware.org>
24565         * INSTALL: Fix botched up regeneration.
24567         * NEWS: Update sourceare link to https.
24568         * configure.ac: Likewise.
24569         * crypt/md5test-giant.c: Likewise.
24570         * dlfcn/bug-atexit1.c: Likewise.
24571         * dlfcn/bug-atexit2.c: Likewise.
24572         * localedata/README: Likewise.
24573         * malloc/tst-mallocfork.c: Likewise.
24574         * manual/install.texi: Likewise.
24575         * nptl/tst-pthread-getattr.c: Likewise.
24576         * stdio-common/tst-fgets.c: Likewise.
24577         * stdio-common/tst-fwrite.c: Likewise.
24578         * sunrpc/Makefile: Likewise.
24579         * sysdeps/arm/armv7/multiarch/memcpy_impl.S: Likewise.
24580         * wcsmbs/tst-mbrtowc2.c: Likewise.
24581         * configure: Regenerate.
24582         * INSTALL: Regenerate.
24584 2017-11-15  Martin Sebor  <msebor@redhat.com>
24586         * misc/sys/cdefs.h (__attribute_nonstring__): New macro.
24587         * sysdeps/gnu/bits/utmp.h (struct utmp): Use it.
24588         * sysdeps/unix/sysv/linux/s390/bits/utmp.h (struct utmp): Same.
24590 2017-11-15  Luke Shumaker  <lukeshu@parabola.nu>
24592         [BZ #22145]
24593         * sysdeps/unix/sysv/linux/tst-ttyname.c: New file.
24594         * sysdeps/unix/sysv/linux/Makefile: Add tst-ttyname to tests.
24596         [BZ #22145]
24597         * sysdeps/unix/sysv/linux/ttyname.c (ttyname):
24598         Defer is_pty check until end of the function.
24599         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
24601         [BZ #22145]
24602         * sysdeps/unix/sysv/linux/ttyname.h (is_mytty): New function.
24603         * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Call is_mytty.
24604         (ttyname): Likewise.
24605         * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
24606         (__ttyname_r): Likewise.
24608         * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Change return type from
24609         int to bool.
24611         * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Update doc reference.
24613         * manual/terminal.texi (Is It a Terminal):
24614         Mention ENODEV for ttyname and ttyname_r.
24616 2017-11-15  Joseph Myers  <joseph@codesourcery.com>
24618         * sysdeps/unix/sysv/linux/bits/socket.h (MSG_ZEROCOPY): New enum
24619         constant and macro.
24621         * sysdeps/unix/sysv/linux/bits/mman-linux.h
24622         [__USE_MISC] (MADV_WIPEONFORK): New macro.
24623         [__USE_MISC] (MADV_KEEPONFORK): Likewise.
24624         * sysdeps/unix/sysv/linux/hppa/bits/mman.h
24625         [__USE_MISC] (MADV_WIPEONFORK): Likewise.
24626         [__USE_MISC] (MADV_KEEPONFORK): Likewise.
24628 2017-11-15  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
24630         * signal/sigrelse.c (sigrelse): Optimize implementation.
24632         * sysdeps/posix/sigpause.c (do_sigpause): Remove.
24633         (__sigpause): Rely on __sigsuspend to implement single thread
24634         optimization.  Add LIBC_CANCEL_HANDLED for cancellation marking.
24636 2017-11-15  Joseph Myers  <joseph@codesourcery.com>
24638         * scripts/build-many-glibcs.py (Context.checkout): Default Linux
24639         kernel version to 4.14.
24641 2017-11-15  Steve Ellcey  <sellcey@cavium.com>
24643         [BZ #22442]
24644         * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex):
24645         Check if ifname is too long.
24647 2017-11-15  Luke Shumaker  <lukeshu@parabola.nu>
24649         * sysdeps/unix/sysv/linux/epoll_wait.c: Include <sysdep-cancel.h>.
24651 2017-11-15  Mike FABIAN  <mfabian@redhat.com>
24653         * localedata/locales/ka_GE (LC_MESSAGES): Add “X” back to yesexpr,
24654         was accidentally lost.
24656 2017-11-15  Mike FABIAN  <mfabian@redhat.com>
24658         * localedata/locales/az_IR: Add standard copyright header.
24660 2017-11-15  Florian Weimer  <fweimer@redhat.com>
24662         [BZ #22439]
24663         * malloc/malloc.c (__malloc_info): Count all heaps in an arena,
24664         not just the top one.  Output a new "subheaps" statistic.
24666 2017-11-15  Florian Weimer  <fweimer@redhat.com>
24668         [BZ #22408]
24669         * malloc/malloc.c (__malloc_info): Obtain arena heap statistics
24670         under the per-arena lock.
24671         * malloc/Makefile (tests): Add tst-malloc_info.
24672         (tst-malloc_info): Link with libpthread.
24673         * malloc/tst-malloc_info.c: New file.
24675 2017-11-15  Joseph Myers  <joseph@codesourcery.com>
24677         [BZ #21660]
24678         * math/tgmath.h (__HAVE_BUILTIN_TGMATH): New macro.
24679         [__HAVE_BUILTIN_TGMATH] (__TG_F16_ARG): Likewise.
24680         [__HAVE_BUILTIN_TGMATH] (__TG_F32_ARG): Likewise.
24681         [__HAVE_BUILTIN_TGMATH] (__TG_F64_ARG): Likewise.
24682         [__HAVE_BUILTIN_TGMATH] (__TG_F128_ARG): Likewise.
24683         [__HAVE_BUILTIN_TGMATH] (__TG_F32X_ARG): Likewise.
24684         [__HAVE_BUILTIN_TGMATH] (__TG_F64X_ARG): Likewise.
24685         [__HAVE_BUILTIN_TGMATH] (__TG_F128X_ARG): Likewise.
24686         [__HAVE_BUILTIN_TGMATH] (__TGMATH_FUNCS): Likewise.
24687         [__HAVE_BUILTIN_TGMATH] (__TGMATH_RCFUNCS): Likewise.
24688         [__HAVE_BUILTIN_TGMATH] (__TGMATH_1): Likewise.
24689         [__HAVE_BUILTIN_TGMATH] (__TGMATH_2): Likewise.
24690         [__HAVE_BUILTIN_TGMATH] (__TGMATH_2STD): Likewise.
24691         [__HAVE_BUILTIN_TGMATH] (__TGMATH_3): Likewise.
24692         [__HAVE_BUILTIN_TGMATH] (__TGMATH_1C): Likewise.
24693         [__HAVE_BUILTIN_TGMATH] (__TGMATH_2C): Likewise.
24694         (__tgml): Make conditional on [!__HAVE_BUILTIN_TGMATH].
24695         (__floating_type): Likewise.
24696         (__real_integer_type): Likewise.
24697         (__complex_integer_type): Likewise.
24698         (__expr_is_real): Likewise.
24699         (__tgmath_real_type_sub): Likewise.
24700         (__tgmath_real_type): Likewise.
24701         (__tgmath_complex_type_sub): Likewise.
24702         (__tgmath_complex_type): Likewise.
24703         (__TGMATH_F128): Likewise.
24704         (__TGMATH_CF128): Likewise.
24705         [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_ONLY): Define using
24706         new macros.
24707         [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
24708         [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_FIRST_REAL_ONLY):
24709         Likewise.
24710         [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_FIRST_REAL_STD_ONLY):
24711         Likewise.
24712         [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_ONLY): Likewise.
24713         [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
24714         [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
24715         [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY):
24716         Likewise.
24717         [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_REAL_ONLY): Likewise.
24718         [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY):
24719         Likewise.
24720         [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_IMAG): Likewise.
24721         [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_IMAG): Likewise.
24722         [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_IMAG_RET_REAL):
24723         Likewise.
24724         [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_IMAG): Likewise.
24725         (__TGMATH_UNARY_REAL_IMAG_RET_REAL_SAME): New macro.
24726         (carg): Use __TGMATH_UNARY_REAL_IMAG_RET_REAL_SAME.
24727         (cimag): Likewise.
24728         (creal): Likewise.
24730 2017-11-14  Joseph Myers  <joseph@codesourcery.com>
24732         * string/tester.c (test_stpncpy): Disable -Wstringop-truncation
24733         for stpncpy calls for GCC 8.
24734         (test_strncat): Disable -Wstringop-truncation warning for strncat
24735         calls for GCC 8.  Disable -Wstringop-overflow= warning for one
24736         strncat call for GCC 7.
24737         (test_strncpy): Disable -Wstringop-truncation warning for strncpy
24738         calls for GCC 8.
24739         (test_memcmp): Use memcpy instead of strncpy for calls not copying
24740         trailing NUL.
24742         * string/bug-strncat1.c: Include <libc-diag.h>.
24743         (main): Disable -Wstringop-truncation for strncat call for GCC 8.
24745 2017-11-13  Claude Paroz  <claude@2xlibre.net>
24747         [BZ #22387]
24748         * localedata/locales/aa_DJ: Improved readibility by replacing
24749         <Uxxxx> sequences in the ASCII printable range by their ASCII
24750         character equivalents.
24751         * localedata/locales/aa_ER: Likewise.
24752         * localedata/locales/aa_ER@saaho: Likewise.
24753         * localedata/locales/aa_ET: Likewise.
24754         * localedata/locales/af_ZA: Likewise.
24755         * localedata/locales/agr_PE: Likewise.
24756         * localedata/locales/ak_GH: Likewise.
24757         * localedata/locales/am_ET: Likewise.
24758         * localedata/locales/anp_IN: Likewise.
24759         * localedata/locales/ar_AE: Likewise.
24760         * localedata/locales/ar_BH: Likewise.
24761         * localedata/locales/ar_DZ: Likewise.
24762         * localedata/locales/ar_EG: Likewise.
24763         * localedata/locales/ar_IN: Likewise.
24764         * localedata/locales/ar_IQ: Likewise.
24765         * localedata/locales/ar_JO: Likewise.
24766         * localedata/locales/ar_KW: Likewise.
24767         * localedata/locales/ar_LB: Likewise.
24768         * localedata/locales/ar_LY: Likewise.
24769         * localedata/locales/ar_MA: Likewise.
24770         * localedata/locales/ar_OM: Likewise.
24771         * localedata/locales/ar_QA: Likewise.
24772         * localedata/locales/ar_SA: Likewise.
24773         * localedata/locales/ar_SD: Likewise.
24774         * localedata/locales/ar_SS: Likewise.
24775         * localedata/locales/ar_SY: Likewise.
24776         * localedata/locales/ar_TN: Likewise.
24777         * localedata/locales/ar_YE: Likewise.
24778         * localedata/locales/as_IN: Likewise.
24779         * localedata/locales/ast_ES: Likewise.
24780         * localedata/locales/ayc_PE: Likewise.
24781         * localedata/locales/az_AZ: Likewise.
24782         * localedata/locales/az_IR: Likewise.
24783         * localedata/locales/be_BY: Likewise.
24784         * localedata/locales/be_BY@latin: Likewise.
24785         * localedata/locales/bem_ZM: Likewise.
24786         * localedata/locales/ber_DZ: Likewise.
24787         * localedata/locales/ber_MA: Likewise.
24788         * localedata/locales/bg_BG: Likewise.
24789         * localedata/locales/bhb_IN: Likewise.
24790         * localedata/locales/bho_IN: Likewise.
24791         * localedata/locales/bi_VU: Likewise.
24792         * localedata/locales/bn_BD: Likewise.
24793         * localedata/locales/bn_IN: Likewise.
24794         * localedata/locales/bo_CN: Likewise.
24795         * localedata/locales/bo_IN: Likewise.
24796         * localedata/locales/br_FR: Likewise.
24797         * localedata/locales/brx_IN: Likewise.
24798         * localedata/locales/bs_BA: Likewise.
24799         * localedata/locales/byn_ER: Likewise.
24800         * localedata/locales/ca_AD: Likewise.
24801         * localedata/locales/ca_ES: Likewise.
24802         * localedata/locales/ca_FR: Likewise.
24803         * localedata/locales/ca_IT: Likewise.
24804         * localedata/locales/ce_RU: Likewise.
24805         * localedata/locales/chr_US: Likewise.
24806         * localedata/locales/cmn_TW: Likewise.
24807         * localedata/locales/crh_UA: Likewise.
24808         * localedata/locales/cs_CZ: Likewise.
24809         * localedata/locales/csb_PL: Likewise.
24810         * localedata/locales/cv_RU: Likewise.
24811         * localedata/locales/cy_GB: Likewise.
24812         * localedata/locales/da_DK: Likewise.
24813         * localedata/locales/de_AT: Likewise.
24814         * localedata/locales/de_BE: Likewise.
24815         * localedata/locales/de_CH: Likewise.
24816         * localedata/locales/de_DE: Likewise.
24817         * localedata/locales/de_IT: Likewise.
24818         * localedata/locales/de_LI: Likewise.
24819         * localedata/locales/de_LU: Likewise.
24820         * localedata/locales/doi_IN: Likewise.
24821         * localedata/locales/dv_MV: Likewise.
24822         * localedata/locales/dz_BT: Likewise.
24823         * localedata/locales/el_CY: Likewise.
24824         * localedata/locales/el_GR: Likewise.
24825         * localedata/locales/en_AG: Likewise.
24826         * localedata/locales/en_AU: Likewise.
24827         * localedata/locales/en_BW: Likewise.
24828         * localedata/locales/en_CA: Likewise.
24829         * localedata/locales/en_DK: Likewise.
24830         * localedata/locales/en_GB: Likewise.
24831         * localedata/locales/en_HK: Likewise.
24832         * localedata/locales/en_IE: Likewise.
24833         * localedata/locales/en_IL: Likewise.
24834         * localedata/locales/en_IN: Likewise.
24835         * localedata/locales/en_NG: Likewise.
24836         * localedata/locales/en_NZ: Likewise.
24837         * localedata/locales/en_PH: Likewise.
24838         * localedata/locales/en_SG: Likewise.
24839         * localedata/locales/en_US: Likewise.
24840         * localedata/locales/en_ZA: Likewise.
24841         * localedata/locales/en_ZM: Likewise.
24842         * localedata/locales/en_ZW: Likewise.
24843         * localedata/locales/eo: Likewise.
24844         * localedata/locales/es_AR: Likewise.
24845         * localedata/locales/es_BO: Likewise.
24846         * localedata/locales/es_CL: Likewise.
24847         * localedata/locales/es_CO: Likewise.
24848         * localedata/locales/es_CR: Likewise.
24849         * localedata/locales/es_CU: Likewise.
24850         * localedata/locales/es_DO: Likewise.
24851         * localedata/locales/es_EC: Likewise.
24852         * localedata/locales/es_ES: Likewise.
24853         * localedata/locales/es_GT: Likewise.
24854         * localedata/locales/es_HN: Likewise.
24855         * localedata/locales/es_MX: Likewise.
24856         * localedata/locales/es_NI: Likewise.
24857         * localedata/locales/es_PA: Likewise.
24858         * localedata/locales/es_PE: Likewise.
24859         * localedata/locales/es_PR: Likewise.
24860         * localedata/locales/es_PY: Likewise.
24861         * localedata/locales/es_SV: Likewise.
24862         * localedata/locales/es_US: Likewise.
24863         * localedata/locales/es_UY: Likewise.
24864         * localedata/locales/es_VE: Likewise.
24865         * localedata/locales/et_EE: Likewise.
24866         * localedata/locales/eu_ES: Likewise.
24867         * localedata/locales/eu_ES@euro: Likewise.
24868         * localedata/locales/fa_IR: Likewise.
24869         * localedata/locales/ff_SN: Likewise.
24870         * localedata/locales/fi_FI: Likewise.
24871         * localedata/locales/fil_PH: Likewise.
24872         * localedata/locales/fo_FO: Likewise.
24873         * localedata/locales/fr_BE: Likewise.
24874         * localedata/locales/fr_CA: Likewise.
24875         * localedata/locales/fr_CH: Likewise.
24876         * localedata/locales/fr_FR: Likewise.
24877         * localedata/locales/fr_LU: Likewise.
24878         * localedata/locales/fur_IT: Likewise.
24879         * localedata/locales/fy_DE: Likewise.
24880         * localedata/locales/fy_NL: Likewise.
24881         * localedata/locales/ga_IE: Likewise.
24882         * localedata/locales/gd_GB: Likewise.
24883         * localedata/locales/gez_ER: Likewise.
24884         * localedata/locales/gez_ET: Likewise.
24885         * localedata/locales/gl_ES: Likewise.
24886         * localedata/locales/gu_IN: Likewise.
24887         * localedata/locales/gv_GB: Likewise.
24888         * localedata/locales/ha_NG: Likewise.
24889         * localedata/locales/hak_TW: Likewise.
24890         * localedata/locales/he_IL: Likewise.
24891         * localedata/locales/hi_IN: Likewise.
24892         * localedata/locales/hif_FJ: Likewise.
24893         * localedata/locales/hne_IN: Likewise.
24894         * localedata/locales/hr_HR: Likewise.
24895         * localedata/locales/hsb_DE: Likewise.
24896         * localedata/locales/ht_HT: Likewise.
24897         * localedata/locales/hu_HU: Likewise.
24898         * localedata/locales/hy_AM: Likewise.
24899         * localedata/locales/i18n: Likewise.
24900         * localedata/locales/ia_FR: Likewise.
24901         * localedata/locales/id_ID: Likewise.
24902         * localedata/locales/ig_NG: Likewise.
24903         * localedata/locales/ik_CA: Likewise.
24904         * localedata/locales/is_IS: Likewise.
24905         * localedata/locales/it_CH: Likewise.
24906         * localedata/locales/it_IT: Likewise.
24907         * localedata/locales/iu_CA: Likewise.
24908         * localedata/locales/ja_JP: Likewise.
24909         * localedata/locales/ka_GE: Likewise.
24910         * localedata/locales/kk_KZ: Likewise.
24911         * localedata/locales/kl_GL: Likewise.
24912         * localedata/locales/kn_IN: Likewise.
24913         * localedata/locales/ko_KR: Likewise.
24914         * localedata/locales/kok_IN: Likewise.
24915         * localedata/locales/ks_IN: Likewise.
24916         * localedata/locales/ks_IN@devanagari: Likewise.
24917         * localedata/locales/ku_TR: Likewise.
24918         * localedata/locales/kw_GB: Likewise.
24919         * localedata/locales/ky_KG: Likewise.
24920         * localedata/locales/lb_LU: Likewise.
24921         * localedata/locales/lg_UG: Likewise.
24922         * localedata/locales/li_BE: Likewise.
24923         * localedata/locales/li_NL: Likewise.
24924         * localedata/locales/lij_IT: Likewise.
24925         * localedata/locales/ln_CD: Likewise.
24926         * localedata/locales/lo_LA: Likewise.
24927         * localedata/locales/lt_LT: Likewise.
24928         * localedata/locales/lv_LV: Likewise.
24929         * localedata/locales/lzh_TW: Likewise.
24930         * localedata/locales/mag_IN: Likewise.
24931         * localedata/locales/mai_IN: Likewise.
24932         * localedata/locales/mg_MG: Likewise.
24933         * localedata/locales/mhr_RU: Likewise.
24934         * localedata/locales/mi_NZ: Likewise.
24935         * localedata/locales/mk_MK: Likewise.
24936         * localedata/locales/ml_IN: Likewise.
24937         * localedata/locales/mn_MN: Likewise.
24938         * localedata/locales/mni_IN: Likewise.
24939         * localedata/locales/mr_IN: Likewise.
24940         * localedata/locales/ms_MY: Likewise.
24941         * localedata/locales/mt_MT: Likewise.
24942         * localedata/locales/my_MM: Likewise.
24943         * localedata/locales/nan_TW: Likewise.
24944         * localedata/locales/nan_TW@latin: Likewise.
24945         * localedata/locales/nb_NO: Likewise.
24946         * localedata/locales/nds_DE: Likewise.
24947         * localedata/locales/nds_NL: Likewise.
24948         * localedata/locales/ne_NP: Likewise.
24949         * localedata/locales/nhn_MX: Likewise.
24950         * localedata/locales/niu_NU: Likewise.
24951         * localedata/locales/niu_NZ: Likewise.
24952         * localedata/locales/nl_AW: Likewise.
24953         * localedata/locales/nl_BE: Likewise.
24954         * localedata/locales/nl_NL: Likewise.
24955         * localedata/locales/nn_NO: Likewise.
24956         * localedata/locales/nr_ZA: Likewise.
24957         * localedata/locales/nso_ZA: Likewise.
24958         * localedata/locales/oc_FR: Likewise.
24959         * localedata/locales/om_ET: Likewise.
24960         * localedata/locales/om_KE: Likewise.
24961         * localedata/locales/or_IN: Likewise.
24962         * localedata/locales/os_RU: Likewise.
24963         * localedata/locales/pa_IN: Likewise.
24964         * localedata/locales/pa_PK: Likewise.
24965         * localedata/locales/pap_AW: Likewise.
24966         * localedata/locales/pap_CW: Likewise.
24967         * localedata/locales/pl_PL: Likewise.
24968         * localedata/locales/ps_AF: Likewise.
24969         * localedata/locales/pt_BR: Likewise.
24970         * localedata/locales/pt_PT: Likewise.
24971         * localedata/locales/quz_PE: Likewise.
24972         * localedata/locales/raj_IN: Likewise.
24973         * localedata/locales/ro_RO: Likewise.
24974         * localedata/locales/ru_RU: Likewise.
24975         * localedata/locales/ru_UA: Likewise.
24976         * localedata/locales/rw_RW: Likewise.
24977         * localedata/locales/sa_IN: Likewise.
24978         * localedata/locales/sat_IN: Likewise.
24979         * localedata/locales/sc_IT: Likewise.
24980         * localedata/locales/sd_IN: Likewise.
24981         * localedata/locales/sd_IN@devanagari: Likewise.
24982         * localedata/locales/se_NO: Likewise.
24983         * localedata/locales/sgs_LT: Likewise.
24984         * localedata/locales/shs_CA: Likewise.
24985         * localedata/locales/si_LK: Likewise.
24986         * localedata/locales/sid_ET: Likewise.
24987         * localedata/locales/sk_SK: Likewise.
24988         * localedata/locales/sl_SI: Likewise.
24989         * localedata/locales/sm_WS: Likewise.
24990         * localedata/locales/so_DJ: Likewise.
24991         * localedata/locales/so_ET: Likewise.
24992         * localedata/locales/so_KE: Likewise.
24993         * localedata/locales/so_SO: Likewise.
24994         * localedata/locales/sq_AL: Likewise.
24995         * localedata/locales/sq_MK: Likewise.
24996         * localedata/locales/sr_ME: Likewise.
24997         * localedata/locales/sr_RS: Likewise.
24998         * localedata/locales/sr_RS@latin: Likewise.
24999         * localedata/locales/ss_ZA: Likewise.
25000         * localedata/locales/st_ZA: Likewise.
25001         * localedata/locales/sv_FI: Likewise.
25002         * localedata/locales/sv_SE: Likewise.
25003         * localedata/locales/sw_KE: Likewise.
25004         * localedata/locales/sw_TZ: Likewise.
25005         * localedata/locales/szl_PL: Likewise.
25006         * localedata/locales/ta_IN: Likewise.
25007         * localedata/locales/ta_LK: Likewise.
25008         * localedata/locales/tcy_IN: Likewise.
25009         * localedata/locales/te_IN: Likewise.
25010         * localedata/locales/tg_TJ: Likewise.
25011         * localedata/locales/th_TH: Likewise.
25012         * localedata/locales/the_NP: Likewise.
25013         * localedata/locales/ti_ER: Likewise.
25014         * localedata/locales/ti_ET: Likewise.
25015         * localedata/locales/tig_ER: Likewise.
25016         * localedata/locales/tk_TM: Likewise.
25017         * localedata/locales/tl_PH: Likewise.
25018         * localedata/locales/tn_ZA: Likewise.
25019         * localedata/locales/to_TO: Likewise.
25020         * localedata/locales/tpi_PG: Likewise.
25021         * localedata/locales/tr_CY: Likewise.
25022         * localedata/locales/tr_TR: Likewise.
25023         * localedata/locales/ts_ZA: Likewise.
25024         * localedata/locales/tt_RU: Likewise.
25025         * localedata/locales/tt_RU@iqtelif: Likewise.
25026         * localedata/locales/ug_CN: Likewise.
25027         * localedata/locales/uk_UA: Likewise.
25028         * localedata/locales/unm_US: Likewise.
25029         * localedata/locales/ur_IN: Likewise.
25030         * localedata/locales/ur_PK: Likewise.
25031         * localedata/locales/uz_UZ: Likewise.
25032         * localedata/locales/uz_UZ@cyrillic: Likewise.
25033         * localedata/locales/ve_ZA: Likewise.
25034         * localedata/locales/vi_VN: Likewise.
25035         * localedata/locales/wa_BE: Likewise.
25036         * localedata/locales/wae_CH: Likewise.
25037         * localedata/locales/wal_ET: Likewise.
25038         * localedata/locales/wo_SN: Likewise.
25039         * localedata/locales/xh_ZA: Likewise.
25040         * localedata/locales/yi_US: Likewise.
25041         * localedata/locales/yo_NG: Likewise.
25042         * localedata/locales/yue_HK: Likewise.
25043         * localedata/locales/yuw_PG: Likewise.
25044         * localedata/locales/zh_CN: Likewise.
25045         * localedata/locales/zh_HK: Likewise.
25046         * localedata/locales/zh_SG: Likewise.
25047         * localedata/locales/zh_TW: Likewise.
25048         * localedata/locales/zu_ZA: Likewise.
25050 2017-11-13  Florian Weimer  <fweimer@redhat.com>
25052         * support/next_to_fault.h, support/next_to_fault.c: New files.
25053         * support/Makefile (libsupport-routines): Add next_to_fault.
25054         * resolv/tst-inet_pton.c (struct next_to_fault)
25055         (next_to_fault_allocate, next_to_fault_free): Remove.
25056         (run_one_test): Switch to <support/next_to_fault.h> interfaces.
25058 2017-11-13  H.J. Lu  <hongjiu.lu@intel.com>
25060         * elf/dl-support.c: Include <dl-procruntime.c>.
25061         * include/link.h: Include <link_map.h>.
25062         * sysdeps/generic/dl-procruntime.c: New file.
25063         * sysdeps/generic/link_map.h: Likewise.
25064         * sysdeps/generic/ldsodefs.h: Include <dl-procruntime.c> in
25065         the writable ld.so namespace.
25067 2017-11-12  Paul Eggert  <eggert@cs.ucla.edu>
25069         timezone: pacify GCC -Wstringop-truncation
25070         Problem reported by Martin Sebor in:
25071         https://sourceware.org/ml/libc-alpha/2017-11/msg00336.html
25072         * timezone/zic.c (writezone): Use memcpy, not strncpy.
25074 2017-11-12  Florian Weimer  <fweimer@redhat.com>
25076         * support/Makefile (libsupport-routines): Add xreadlink, xstrndup,
25077         tst-xreadlink.
25078         (tests): Add tst-xreadlink.
25079         * support/support.h (xstrndup): Declare.
25080         * support/xunistd.h (xunlink, xreadlink): Declare.
25081         * support/temp_file.h (support_create_temp_directory): Declare.
25082         * support/temp_file.c (support_create_temp_directory): New function.
25083         * support/support_chroot.c (support_chroot_create): Use it.
25084         * support/xreadlink.c: New file.
25085         * support/xstrndup.c: Likewise.
25086         * support/xunlink.c: Likewise.
25087         * support/tst-xreadlink.c: Likewise.
25089 2017-11-11  John David Anglin  <danglin@gcc.gnu.org>
25091         * sysdeps/hppa/fpu/libm-test-ulps: Update clog10_downward ulps.
25093 2017-11-11  Florian Weimer  <fweimer@redhat.com>
25095         [BZ #22409]
25096         [BZ #22412]
25097         * resolv/res_comp.c (printable_string, binary_hnok)
25098         (binary_leading_dash): New functions.
25099         (res_hnok): Reimplement using these functions and ns_name_pton.
25100         (res_ownok): Likewise.
25101         (res_mailok): Reimplement using printable_string, ns_name_pton and
25102         binary_hnok.
25103         (res_dnok): Reimplement using printable_string and ns_name_pton.
25104         * resolv/tst-res_hnok.c (tests): Add additional tests.
25105         (LETTERDIGITS, PRINTABLE): Define.
25106         (do_test): Adjust one_char results.
25108 2017-11-11  Florian Weimer  <fweimer@redhat.com>
25110         [BZ #22413]
25111         * resolv/ns_name.c (ns_name_pton): Treat trailing backslash as error.
25112         * resolv/tst-ns_name_pton.c (tests): Add trailing backslash tests.
25114 2017-11-11  Florian Weimer  <fweimer@redhat.com>
25116         * resolv/tst-ns_name_pton.c: New file.
25117         * resolv/Makefile (tests): Add tst-ns_name_pton.
25118         (tst-ns_name_pton): Link against libresolv.
25120 2017-11-11  Florian Weimer  <fweimer@redhat.com>
25122         * resolv/tst-res_hnok.c: New file.
25123         * resolv/Makefile (tests): Add tst-res_hnok.
25124         (tst-res_hnok): Link against libresolv.
25126 2017-11-11  Florian Weimer  <fweimer@redhat.com>
25128         * resolv/tst-resolv-network.c: Use test framework instead explicit
25129         main function.
25131 2017-11-09  H.J. Lu  <hongjiu.lu@intel.com>
25133         * include/setjmp.h [!_ISOMAC]: Include <stddef.h> and
25134         <jmp_buf-macros.h>.
25135         [!_ISOMAC] (STR_HELPER): New.
25136         [!_ISOMAC] (STR): Likewise.
25137         [!_ISOMAC] (TEST_SIZE): Likewise.
25138         [!_ISOMAC] (TEST_ALIGN): Likewise.
25139         [!_ISOMAC] (TEST_OFFSET): Likewise.
25140         [!_ISOMAC] Add _Static_assert to check sizes, alignments and
25141         field offsets of jmp_buf as well as sigjmp_buf.
25142         * sysdeps/unix/sysv/linux/aarch64/jmp_buf-macros.h: Likewise.
25143         * sysdeps/unix/sysv/linux/alpha/jmp_buf-macros.h: Likewise.
25144         * sysdeps/unix/sysv/linux/arm/jmp_buf-macros.h: Likewise.
25145         * sysdeps/unix/sysv/linux/hppa/jmp_buf-macros.h: Likewise.
25146         * sysdeps/unix/sysv/linux/i386/jmp_buf-macros.h: Likewise.
25147         * sysdeps/unix/sysv/linux/ia64/jmp_buf-macros.h: Likewise.
25148         * sysdeps/unix/sysv/linux/m68k/jmp_buf-macros.h: Likewise.
25149         * sysdeps/unix/sysv/linux/microblaze/jmp_buf-macros.h: Likewise.
25150         * sysdeps/unix/sysv/linux/mips/mips32/jmp_buf-macros.h: Likewise.
25151         * sysdeps/unix/sysv/linux/mips/mips64/n32/jmp_buf-macros.h:
25152         Likewise.
25153         * sysdeps/unix/sysv/linux/mips/mips64/n64/jmp_buf-macros.h:
25154         Likewise.
25155         * sysdeps/unix/sysv/linux/nios2/jmp_buf-macros.h: Likewise.
25156         * sysdeps/unix/sysv/linux/powerpc/powerpc32/jmp_buf-macros.h:
25157         Likewise.
25158         * sysdeps/unix/sysv/linux/powerpc/powerpc64/jmp_buf-macros.h:
25159         Likewise.
25160         * sysdeps/unix/sysv/linux/s390/s390-32/jmp_buf-macros.h: Likewise.
25161         * sysdeps/unix/sysv/linux/s390/s390-64/jmp_buf-macros.h: Likewise.
25162         * sysdeps/unix/sysv/linux/sh/jmp_buf-macros.h: Likewise.
25163         * sysdeps/unix/sysv/linux/sparc/sparc32/jmp_buf-macros.h: Likewise.
25164         * sysdeps/unix/sysv/linux/sparc/sparc64/jmp_buf-macros.h: Likewise.
25165         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/jmp_buf-macros.h:
25166         Likewise.
25167         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/jmp_buf-macros.h:
25168         Likewise.
25169         * sysdeps/unix/sysv/linux/tile/tilepro/jmp_buf-macros.h: Likewise.
25170         * sysdeps/unix/sysv/linux/x86_64/64/jmp_buf-macros.h: Likewise.
25171         * sysdeps/unix/sysv/linux/x86_64/x32/jmp_buf-macros.h: Likewise.
25173 2017-11-07  Joseph Myers  <joseph@codesourcery.com>
25175         * include/float.h
25176         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25177         && __HAVE_FLOAT32] (FLT32_MANT_DIG): New macro.
25178         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25179         && __HAVE_FLOAT32] (FLT32_DECIMAL_DIG): Likewise.
25180         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25181         && __HAVE_FLOAT32] (FLT32_DIG): Likewise.
25182         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25183         && __HAVE_FLOAT32] (FLT32_MIN_EXP): Likewise.
25184         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25185         && __HAVE_FLOAT32] (FLT32_MIN_10_EXP): Likewise.
25186         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25187         && __HAVE_FLOAT32] (FLT32_MAX_EXP): Likewise.
25188         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25189         && __HAVE_FLOAT32] (FLT32_MAX_10_EXP): Likewise.
25190         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25191         && __HAVE_FLOAT32] (FLT32_MAX): Likewise.
25192         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25193         && __HAVE_FLOAT32] (FLT32_EPSILON): Likewise.
25194         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25195         && __HAVE_FLOAT32] (FLT32_MIN): Likewise.
25196         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25197         && __HAVE_FLOAT32] (FLT32_TRUE_MIN): Likewise.
25198         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25199         && __HAVE_FLOAT64] (FLT64_MANT_DIG): Likewise.
25200         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25201         && __HAVE_FLOAT64] (FLT64_DECIMAL_DIG): Likewise.
25202         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25203         && __HAVE_FLOAT64] (FLT64_DIG): Likewise.
25204         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25205         && __HAVE_FLOAT64] (FLT64_MIN_EXP): Likewise.
25206         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25207         && __HAVE_FLOAT64] (FLT64_MIN_10_EXP): Likewise.
25208         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25209         && __HAVE_FLOAT64] (FLT64_MAX_EXP): Likewise.
25210         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25211         && __HAVE_FLOAT64] (FLT64_MAX_10_EXP): Likewise.
25212         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25213         && __HAVE_FLOAT64] (FLT64_MAX): Likewise.
25214         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25215         && __HAVE_FLOAT64] (FLT64_EPSILON): Likewise.
25216         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25217         && __HAVE_FLOAT64] (FLT64_MIN): Likewise.
25218         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25219         && __HAVE_FLOAT64] (FLT64_TRUE_MIN): Likewise.
25220         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25221         && __HAVE_FLOAT32X] (FLT32X_MANT_DIG): Likewise.
25222         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25223         && __HAVE_FLOAT32X] (FLT32X_DECIMAL_DIG): Likewise.
25224         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25225         && __HAVE_FLOAT32X] (FLT32X_DIG): Likewise.
25226         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25227         && __HAVE_FLOAT32X] (FLT32X_MIN_EXP): Likewise.
25228         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25229         && __HAVE_FLOAT32X] (FLT32X_MIN_10_EXP): Likewise.
25230         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25231         && __HAVE_FLOAT32X] (FLT32X_MAX_EXP): Likewise.
25232         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25233         && __HAVE_FLOAT32X] (FLT32X_MAX_10_EXP): Likewise.
25234         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25235         && __HAVE_FLOAT32X] (FLT32X_MAX): Likewise.
25236         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25237         && __HAVE_FLOAT32X] (FLT32X_EPSILON): Likewise.
25238         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25239         && __HAVE_FLOAT32X] (FLT32X_MIN): Likewise.
25240         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25241         && __HAVE_FLOAT32X] (FLT32X_TRUE_MIN): Likewise.
25242         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25243         && __HAVE_FLOAT64X] (FLT64X_MANT_DIG): Likewise.
25244         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25245         && __HAVE_FLOAT64X] (FLT64X_DECIMAL_DIG): Likewise.
25246         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25247         && __HAVE_FLOAT64X] (FLT64X_DIG): Likewise.
25248         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25249         && __HAVE_FLOAT64X] (FLT64X_MIN_EXP): Likewise.
25250         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25251         && __HAVE_FLOAT64X] (FLT64X_MIN_10_EXP): Likewise.
25252         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25253         && __HAVE_FLOAT64X] (FLT64X_MAX_EXP): Likewise.
25254         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25255         && __HAVE_FLOAT64X] (FLT64X_MAX_10_EXP): Likewise.
25256         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25257         && __HAVE_FLOAT64X] (FLT64X_MAX): Likewise.
25258         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25259         && __HAVE_FLOAT64X] (FLT64X_EPSILON): Likewise.
25260         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25261         && __HAVE_FLOAT64X] (FLT64X_MIN): Likewise.
25262         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25263         && __HAVE_FLOAT64X] (FLT64X_TRUE_MIN): Likewise.
25265         * stdlib/tst-strtod.h (F16): New macro.
25266         (F32): Likewise.
25267         (F64): Likewise.
25268         (F32X): Likewise.
25269         (F64X): Likewise.
25270         (F128X): Likewise.
25271         (IF_FLOAT16): Likewise.
25272         (IF_FLOAT32): Likewise.
25273         (IF_FLOAT64): Likewise.
25274         (IF_FLOAT32X): Likewise.
25275         (IF_FLOAT64X): Likewise.
25276         (IF_FLOAT128X): Likewise.
25277         (GEN_TEST_STRTOD_FOREACH): Conditionally call macros for _Float16,
25278         _Float32, _Float64, _Float32x, _Float64x and _Float128x.
25279         (STRTOD_TEST_FOREACH): Likewise.
25280         * stdlib/tst-strtod-round-skeleton.c (CHOOSE_f32): New macro.
25281         (CHOOSE_f64): Likewise.
25282         (CHOOSE_f32x): Likewise.
25283         (CHOOSE_f64x): Likewise.
25285 2017-11-07  Andreas Schwab  <schwab@suse.de>
25287         * nptl/Makefile (tests-internal): Remove tst-typesizes.
25289 2017-11-07  Mike FABIAN  <mfabian@redhat.com>
25291         [BZ #22403]
25292         * localedata/locales/mfe_MU (LC_TIME): Fix wrong d_fmt, / needs
25293         to be escaped.
25294         * localedata/locales/miq_NI (LC_TIME): Fix wrong d_fmt, / needs
25295         to be escaped.
25297 2017-11-07  Claude Paroz  <claude@2xlibre.net>
25299         [BZ #22403]
25300         * localedata/locales/an_ES (LC_TIME): Fix wrong d_fmt, / needs
25301         to be escaped.
25302         * localedata/locales/kab_DZ (LC_TIME): Fix wrong d_fmt, / needs
25303         to be escaped.
25304         * localedata/locales/om_ET (LC_TIME): Fix wrong d_fmt, / needs
25305         to be escaped.
25307 2017-11-07  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
25309         [BZ #22298]
25310         * nptl/allocatestack.c (allocate_stack): Check if
25311         __PTHREAD_MUTEX_HAVE_PREV is non-zero, instead if
25312         __PTHREAD_MUTEX_HAVE_PREV is defined.
25313         * nptl/descr.h (pthread): Likewise.
25314         * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
25315         Likewise.
25316         * nptl/pthread_create.c (START_THREAD_DEFN): Likewise.
25317         * sysdeps/nptl/fork.c (__libc_fork): Likewise.
25318         * sysdeps/nptl/pthread.h (PTHREAD_MUTEX_INITIALIZER): Likewise.
25319         * sysdeps/nptl/bits/thread-shared-types.h
25320         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION): New
25321         defines.
25322         (__pthread_internal_list): Check __PTHREAD_MUTEX_USE_UNION instead
25323         of __WORDSIZE for internal layout.
25324         (__pthread_mutex_s): Check __PTHREAD_MUTEX_NUSERS_AFTER_KIND instead
25325         of __WORDSIZE for internal __nusers layout and __PTHREAD_MUTEX_USE_UNION
25326         instead of __WORDSIZE whether to use an union for __spins and __list
25327         fields.
25328         (__PTHREAD_MUTEX_HAVE_PREV): Define also for __PTHREAD_MUTEX_USE_UNION
25329         case.
25330         * sysdeps/aarch64/nptl/bits/pthreadtypes-arch.h
25331         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION): New
25332         defines.
25333         * sysdeps/alpha/nptl/bits/pthreadtypes-arch.h
25334         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
25335         Likewise.
25336         * sysdeps/arm/nptl/bits/pthreadtypes-arch.h
25337         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
25338         Likewise.
25339         * sysdeps/hppa/nptl/bits/pthreadtypes-arch.h
25340         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
25341         Likewise.
25342         * sysdeps/ia64/nptl/bits/pthreadtypes-arch.h
25343         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
25344         Likewise.
25345         * sysdeps/m68k/nptl/bits/pthreadtypes-arch.h
25346         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
25347         Likewise.
25348         * sysdeps/microblaze/nptl/bits/pthreadtypes-arch.h
25349         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
25350         Likewise.
25351         * sysdeps/mips/nptl/bits/pthreadtypes-arch.h
25352         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
25353         Likewise.
25354         * sysdeps/nios2/nptl/bits/pthreadtypes-arch.h
25355         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
25356         Likewise.
25357         * sysdeps/powerpc/nptl/bits/pthreadtypes-arch.h
25358         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
25359         Likewise.
25360         * sysdeps/s390/nptl/bits/pthreadtypes-arch.h
25361         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
25362         Likewise.
25363         * sysdeps/sh/nptl/bits/pthreadtypes-arch.h
25364         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
25365         Likewise.
25366         * sysdeps/sparc/nptl/bits/pthreadtypes-arch.h
25367         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
25368         Likewise.
25369         * sysdeps/tile/nptl/bits/pthreadtypes-arch.h
25370         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
25371         Likewise.
25372         * sysdeps/x86/nptl/bits/pthreadtypes-arch.h
25373         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
25374         Likewise.
25376         * nptl/pthreadP.h (ASSERT_TYPE_SIZE, ASSERT_PTHREAD_INTERNAL_SIZE):
25377         New macros.
25378         * nptl/pthread_attr_init.c (__pthread_mutex_init): Add build time
25379         checks for expected input type size.
25380         * nptl/pthread_barrier_init.c (__pthread_barrier_init): Likewise.
25381         * nptl/pthread_barrierattr_init.c (pthread_barrierattr_init):
25382         Likewise.
25383         * nptl/pthread_cond_init.c (__pthread_cond_init): Likewise.
25384         * nptl/pthread_condattr_init.c (__pthread_condattr_init): Likewise.
25385         * nptl/pthread_mutex_init.c (__pthread_mutex_init): Likewise.
25386         * nptl/pthread_mutexattr_init.c (__pthread_mutexattr_init): Likewise.
25387         * nptl/pthread_rwlock_init.c (__pthread_rwlock_init): Likewise.
25388         * nptl/pthread_rwlockattr_init.c (pthread_rwlockattr_init): Likewise.
25389         * nptl/sem_init.c (__new_sem_init, __old_sem_init): Likewise
25390         * nptl/pthread_attr_destroy.c (__pthread_attr_destroy): Remove
25391         superflous runtime assert check.
25392         * nptl/pthread_attr_getaffinity.c (__pthread_attr_getaffinity_new):
25393         Likewise.
25394         * nptl/pthread_attr_getdetachstate.c (__pthread_attr_getdetachstate):
25395         Likewise.
25396         * nptl/pthread_attr_getguardsize.c (pthread_attr_getguardsize):
25397         Likewise.
25398         * nptl/pthread_attr_getinheritsched.c (__pthread_attr_getinheritsched):
25399         Likewise.
25400         * nptl/pthread_attr_getschedparam.c (__pthread_attr_getschedparam):
25401         Likewise.
25402         * nptl/pthread_attr_getschedpolicy.c (__pthread_attr_getschedpolicy):
25403         Likewise.
25404         * nptl/pthread_attr_getscope.c (__pthread_attr_getscope): Likewise.
25405         * nptl/pthread_attr_getstack.c (__pthread_attr_getstack): Likewise.
25406         * nptl/pthread_attr_getstackaddr.c (__pthread_attr_getstackaddr):
25407         Likewise.
25408         * nptl/pthread_attr_getstacksize.c (__pthread_attr_getstacksize):
25409         Likewise.
25410         * nptl/pthread_attr_setaffinity.c (__pthread_attr_setaffinity_new):
25411         Likewise.
25412         * nptl/pthread_attr_setdetachstate.c (__pthread_attr_setdetachstate):
25413         Likewise.
25414         * nptl/pthread_attr_setguardsize.c (pthread_attr_setguardsize):
25415         Likewise.
25416         * nptl/pthread_attr_setinheritsched.c
25417         (__pthread_attr_setinheritsched): Likewise.
25418         * nptl/pthread_attr_setschedparam.c (__pthread_attr_setschedparam):
25419         Likewise.
25420         * nptl/pthread_attr_setschedpolicy.c (__pthread_attr_setschedpolicy):
25421         Likewise.
25422         * nptl/pthread_attr_setscope.c (__pthread_attr_setscope): Likewise.
25423         * nptl/pthread_attr_setstack.c (__pthread_attr_setstack,
25424         __old_pthread_attr_setstack): Likewise.
25425         * nptl/pthread_attr_setstackaddr.c (__pthread_attr_setstackaddr):
25426         Likewise.
25427         * nptl/pthread_attr_setstacksize.c (__pthread_attr_setstacksize):
25428         Likewise.
25429         * nptl/pthread_getattr_default_np.c (pthread_getattr_default_np):
25430         Likewise.
25431         * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Likewise.
25432         * nptl/pthread_setattr_default_np.c (pthread_setattr_default_np):
25433         Likewise.
25434         * nptl/tst-typesizes.c: Remove file.
25436         * nptl/pthreadP.h (ASSERT_PTHREAD_STRING,
25437         ASSERT_PTHREAD_INTERNAL_OFFSET): New macro.
25438         * nptl/pthread_mutex_init.c (__pthread_mutex_init): Add build time
25439         checks for internal pthread_mutex_t offsets.
25440         * sysdeps/aarch64/nptl/pthread-offsets.h
25441         (__PTHREAD_MUTEX_NUSERS_OFFSET, __PTHREAD_MUTEX_KIND_OFFSET,
25442         __PTHREAD_MUTEX_SPINS_OFFSET, __PTHREAD_MUTEX_ELISION_OFFSET,
25443         __PTHREAD_MUTEX_LIST_OFFSET): New macro.
25444         * sysdeps/alpha/nptl/pthread-offsets.h: Likewise.
25445         * sysdeps/arm/nptl/pthread-offsets.h: Likewise.
25446         * sysdeps/hppa/nptl/pthread-offsets.h: Likewise.
25447         * sysdeps/i386/nptl/pthread-offsets.h: Likewise.
25448         * sysdeps/ia64/nptl/pthread-offsets.h: Likewise.
25449         * sysdeps/m68k/nptl/pthread-offsets.h: Likewise.
25450         * sysdeps/microblaze/nptl/pthread-offsets.h: Likewise.
25451         * sysdeps/mips/nptl/pthread-offsets.h: Likewise.
25452         * sysdeps/nios2/nptl/pthread-offsets.h: Likewise.
25453         * sysdeps/powerpc/nptl/pthread-offsets.h: Likewise.
25454         * sysdeps/s390/nptl/pthread-offsets.h: Likewise.
25455         * sysdeps/sh/nptl/pthread-offsets.h: Likewise.
25456         * sysdeps/sparc/nptl/pthread-offsets.h: Likewise.
25457         * sysdeps/tile/nptl/pthread-offsets.h: Likewise.
25458         * sysdeps/x86_64/nptl/pthread-offsets.h: Likewise.
25460 2017-11-07  Florian Weimer  <fweimer@redhat.com>
25462         * bits/mman-linux.h: Move ...
25463         * sysdeps/unix/sysv/linux/bits/mman-linux.h: ... here.  Update
25464         comment.
25465         * sysdeps/unix/sysv/linux/bits/Makefile (sysdep_headers): Remove
25466         outdated comment.
25468 2017-11-07  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
25470         * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S (STRNLEN):
25471         Redefine STRNLEN as __strnlen_power8.
25473 2017-11-06  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
25475         * signal/sighold.c (sighold): Optimize implementation.
25477         * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Asssume
25478         __NR_rt_sigqueueinfo.
25480         * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
25481         __sigtimedwait.
25482         * sysdeps/unix/sysv/linux/sigtimedwait.c: Simplify includes and
25483         assume __NR_rt_sigtimedwait.
25484         * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Call __sigtimedwait
25485         and add LIBC_CANCEL_HANDLED for cancellation marking.
25486         * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
25488         * sysdeps/arm/armv7/multiarch/Makefile [$(subdir) = string]
25489         (sysdeps_routines): Add memchr_noneon.
25490         * sysdeps/arm/armv7/multiarch/ifunc-memchr.h: New file.
25491         * sysdeps/arm/armv7/multiarch/memchr_noneon.S: Likewise.
25492         * sysdeps/arm/armv7/multiarch/rtld-memchr.S: Likewise.
25493         * sysdeps/arm/armv7/multiarch/memchr.S: Remove file.
25494         * sysdeps/arm/armv7/multiarch/memchr.c: New file.
25495         * sysdeps/arm/armv7/multiarch/memchr_impl.S: Move to ...
25496         * sysdeps/arm/armv7/multiarch/memchr_neon.S: ... here.
25498         * sysdeps/arm/arm-ifunc.h: New file.
25499         * sysdeps/arm/armv7/multiarch/ifunc-memcpy.h: Likewise.
25500         * sysdeps/arm/armv7/multiarch/memcpy.c: Likewise.
25501         * sysdeps/arm/armv7/multiarch/memcpy_arm.S: Likewise.
25502         * sysdeps/arm/armv7/multiarch/rtld-memcpy.S: Likewise.
25503         * sysdeps/arm/armv7/multiarch/memcpy_neon.S [!__ARM_NEON__]
25504         (__memcpy_neon): Avoid create hidden alias.
25505         * sysdeps/arm/armv7/multiarch/memcpy_vfp.S [!__ARM_NEON_]
25506         (__memcpy_vfp): Likewise.
25507         * sysdeps/arm/armv7/multiarch/Makefile [$(subdir) = string]
25508         (sysdep_routines): Add memcpy_arm.
25509         * sysdeps/arm/armv7/multiarch/memcpy.S: Remove file.
25511 2017-11-06  H.J. Lu  <hongjiu.lu@intel.com>
25513         [BZ #22362]
25514         * Makerules (make-link-multidir): New.
25515         * config.make.in (multidir): New.
25516         * configure.ac (libc_cv_multidir): New.  AC_SUBST.
25517         * configure: Regenerated.
25518         * csu/Makefile [$(multidir) != .](multilib-extra-objs): New.
25519         [$(multidir) != .](extra-objs): Add $(multilib-extra-objs).
25520         [$(multidir) != .]($(addprefix $(objpfx)$(multidir)/, $(install-lib))):
25521         New target.
25523 2017-11-06  Joseph Myers  <joseph@codesourcery.com>
25525         [BZ #22402]
25526         * sysdeps/powerpc/bits/floatn.h: Include <bits/long-double.h>.
25527         [__NO_LONG_DOUBLE_MATH] (__HAVE_FLOAT128): Define to 0.
25529 2017-11-04  Mike FABIAN  <mfabian@redhat.com>
25531         * localedata/locales/tpi_PG (LC_TIME): Fix wrong d_fmt, / needs
25532         to be escaped.
25534 2017-11-04  Florian Weimer  <fweimer@redhat.com>
25536         * manual/llio.texi (Open-time Flags): Document O_TMPFILE.
25538 2017-11-03  Joseph Myers  <joseph@codesourcery.com>
25540         * math/math.h [__HAVE_DISTINCT_FLOAT16
25541         || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
25542         || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
25543         || __HAVE_DISTINCT_FLOAT128X]: Use #error.
25544         [__NO_LONG_DOUBLE_MATH && __HAVE_DISTINCT_FLOAT128]: Likewise.
25545         [__HAVE_DISTINCT_FLOAT128 && !__HAVE_GENERIC_SELECTION
25546         && __HAVE_FLOATN_NOT_TYPEDEF]: Likewise.
25547         [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
25548         (__MATH_TG_F32): New macro.
25549         [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
25550         (__MATH_TG_F64X): Likewise.
25551         [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
25552         (__MATH_TG): Use __MATH_TG_F32 and __MATH_TG_F64X.
25554 2017-11-03  Dmitry V. Levin  <ldv@altlinux.org>
25556         * po/de.po: Update translations.
25557         * po/ru.po: Likewise.
25559 2017-11-03  Florian Weimer  <fweimer@redhat.com>
25561         * manual/filesys.texi (Hard Links): Document linkat.
25563 2017-11-03  Joseph Myers  <joseph@codesourcery.com>
25565         * math/tgmath.h [__HAVE_DISTINCT_FLOAT16
25566         || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
25567         || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
25568         || __HAVE_DISTINCT_FLOAT128X]: Use #error.
25569         [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
25570         && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
25571         && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_F128): Handle _Float64x
25572         the same as _Float128.
25573         [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
25574         && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
25575         && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_CF128): Likewise.
25577         * stdlib/stdlib.h
25578         [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof16):
25579         Declare.
25580         [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof32):
25581         Likewise.
25582         [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof64):
25583         Likewise.
25584         [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25585         (strtof32x): Likewise.
25586         [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25587         (strtof64x): Likewise.
25588         [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25589         (strtof128x): Likewise.
25590         [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25591         (strfromf16): Likewise.
25592         [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25593         (strfromf32): Likewise.
25594         [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25595         (strfromf64): Likewise.
25596         [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25597         (strfromf32x): Likewise.
25598         [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25599         (strfromf64x): Likewise.
25600         [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25601         (strfromf128x): Likewise.
25602         [__USE_GNU && __HAVE_FLOAT16] (strtof16_l): Likewise.
25603         [__USE_GNU && __HAVE_FLOAT32] (strtof32_l): Likewise.
25604         [__USE_GNU && __HAVE_FLOAT64] (strtof64_l): Likewise.
25605         [__USE_GNU && __HAVE_FLOAT32X] (strtof32x_l): Likewise.
25606         [__USE_GNU && __HAVE_FLOAT64X] (strtof64x_l): Likewise.
25607         [__USE_GNU && __HAVE_FLOAT128X] (strtof128x_l): Likewise.
25609 2017-11-03  Richard Henderson  <rth@twiddle.net>
25611         * sysdeps/unix/sysv/linux/aarch64/sysconf.c: New file.
25613 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
25615         * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Optimize.
25617 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
25619         * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Remove
25620         DT_TLSDESC_GOT initialization.
25621         * sysdeps/arm/dl-tlsdesc.S (_dl_tlsdesc_lazy_resolver): Remove.
25622         (_dl_tlsdesc_resolve_hold): Likewise.
25623         * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_lazy_resolver): Remove.
25624         (_dl_tlsdesc_resolve_hold): Likewise.
25625         * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_lazy_resolver_fixup): Remove.
25626         (_dl_tlsdesc_resolve_hold_fixup): Likewise.
25628 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
25630         * sysdeps/arm/dl-machine.h (elf_machine_rel): Remove volatile.
25632 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
25634         [BZ #18572]
25635         * sysdeps/arm/dl-machine.h (elf_machine_lazy_rel): Do symbol binding
25636         non-lazily for R_ARM_TLS_DESC.
25638 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
25640         [BZ #17078]
25641         * sysdeps/arm/dl-machine.h (elf_machine_rela): Remove the
25642         R_ARM_TLS_DESC case.
25643         (elf_machine_lazy_rel): Remove the prelink check.
25645 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
25647         * sysdeps/aarch64/dl-machine.h (elf_machine_runtime_setup): Remove
25648         DT_TLSDESC_GOT initialization.
25649         * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_return_lazy): Remove.
25650         (_dl_tlsdesc_resolve_rela): Likewise.
25651         (_dl_tlsdesc_resolve_hold): Likewise.
25652         (_dl_tlsdesc_undefweak): Remove ldar.
25653         (_dl_tlsdesc_dynamic): Likewise.
25654         * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_return_lazy): Remove.
25655         (_dl_tlsdesc_resolve_rela): Likewise.
25656         (_dl_tlsdesc_resolve_hold): Likewise.
25657         * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_resolve_rela_fixup): Remove.
25658         (_dl_tlsdesc_resolve_hold_fixup): Likewise.
25659         (_dl_tlsdesc_resolve_rela): Likewise.
25660         (_dl_tlsdesc_resolve_hold): Likewise.
25662 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
25664         * sysdeps/aarch64/dl-machine.h (elf_machine_lazy_rel): Do symbol
25665         binding and initialization non-lazily for R_AARCH64_TLSDESC.
25667 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
25669         * elf/tlsdeschtab.h (_dl_tls_resolve_early_return_p): Mark unused.
25670         (_dl_tlsdesc_wake_up_held_fixups): Likewise.
25672 2017-11-02  Joseph Myers  <joseph@codesourcery.com>
25674         * wcsmbs/wchar.h [__HAVE_FLOAT16 && __USE_GNU] (wcstof16):
25675         Declare.
25676         [__HAVE_FLOAT32 && __USE_GNU] (wcstof32): Likewise.
25677         [__HAVE_FLOAT64 && __USE_GNU] (wcstof64): Likewise.
25678         [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x): Likewise.
25679         [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x): Likewise.
25680         [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x): Likewise.
25681         [__HAVE_FLOAT16 && __USE_GNU] (wcstof16_l): Likewise.
25682         [__HAVE_FLOAT32 && __USE_GNU] (wcstof32_l): Likewise.
25683         [__HAVE_FLOAT64 && __USE_GNU] (wcstof64_l): Likewise.
25684         [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x_l): Likewise.
25685         [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x_l): Likewise.
25686         [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x_l): Likewise.
25688 2017-11-02  Mike FABIAN  <mfabian@redhat.com>
25690         [BZ #22382]
25691         * localedata/locales/tpi_PG (LC_TIME): Fix syntax error.
25692         * localedata/locales/tpi_PG: Add standard header.
25694 2017-11-02  Florian Weimer  <fweimer@redhat.com>
25696         test-errno-linux: quotactl can fail with EPERM in containers.
25697         * sysdeps/unix/sysv/linux/test-errno-linux.c
25698         (LIST, LIST_FORWARD): New macros.
25699         (check_error_in_list): New function.
25700         (test_wrp_rv): Accept list of permitted error codes.
25701         (test_wrp_rv2): Remove.
25702         (test_wrp): Call test_wrp_rv with list of error codes.
25703         (test_wrp2): Accept list of error codes.
25704         (do_test): Adjust.  Allow EPERM for quotactl.
25706 2017-11-02  Florian Weimer  <fweimer@redhat.com>
25708         * stdio-common/bug16.c (do_test): Use array_length.
25709         * stdio-common/errlist.c (_sys_nerr): Likewise.
25710         * stdio-common/printf_fp.c (PRINTF_FP_FETCH): Likewise.
25711         * stdio-common/printf_fphex.c (__printf_fphex): Use array_end.
25712         * stdio-common/psiginfo.c (psiginfo): Use array_length.
25713         * stdio-common/test-vfprintf.c (nlocs): Remove definition.
25714         (do_test): Use array_length.
25715         * stdio-common/tst-fphex.c (do_test): Use array_end, array_length.
25716         * stdio-common/tst-long-dbl-fphex.c (do_test): Use array_length.
25717         * stdio-common/tst-printf-round.c (do_test): Likewise.
25718         * stdio-common/tst-swprintf.c (nbuf): Remove definition.
25719         (CHECK): Use array_length.
25720         * stdio-common/tstdiomisc.c (t3, F): Likewise.
25721         * stdio-common/tstscanf.c (main): Likewise.
25722         * stdio-common/vfprintf.c (process_string_arg): Likewise.
25724 2017-11-02  Florian Weimer  <fweimer@redhat.com>
25726         Add array_length and array_end macros.
25727         * include/array_length.h: New file.
25729 2017-11-02  Florian Weimer  <fweimer@redhat.com>
25731         [BZ #22332]
25732         * posix/tst-glob-tilde.c (do_noescape): New variable.
25733         (one_test): Process it.
25734         (do_test): Set do_noescape.  Add unescaping test case.
25736 2017-11-01  Joseph Myers  <joseph@codesourcery.com>
25738         * math/complex.h
25739         [(__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC))
25740         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Include <bits/cmathcalls.h>
25741         with appropriate macros defined and undefined.
25742         [(__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC))
25743         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
25744         [(__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC))
25745         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
25746         [(__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC))
25747         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
25748         [(__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC))
25749         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
25750         [(__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC))
25751         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
25753         * math/complex.h
25754         [(__HAVE_DISTINCT_FLOAT128 || (__HAVE_FLOAT128 && !LIBC))
25755         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Move conditional code after
25756         that for long double.  Do not condition define and undefine of
25757         _Mdouble_complex_ on [__CFLOAT128].
25759 2017-11-01  H.J. Lu  <hongjiu.lu@intel.com>
25761         * sysdeps/i386/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
25762         of <sysdeps/generic/sysdep.h>.
25763         (ALIGNARG): Removed.
25764         (ASM_SIZE_DIRECTIVE): Likewise.
25765         (ENTRY): Likewise.
25766         (END): Likewise.
25767         (ENTRY_CHK): Likewise.
25768         (END_CHK): Likewise.
25769         (syscall_error): Likewise.
25770         (mcount): Likewise.
25771         (PSEUDO_END): Likewise.
25772         (L): Likewise.
25773         (atom_text_section): Likewise.
25774         * sysdeps/x86/sysdep.h: New file.
25775         * sysdeps/x86_64/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
25776         of <sysdeps/generic/sysdep.h>.
25777         (ALIGNARG): Removed.
25778         (ASM_SIZE_DIRECTIVE): Likewise.
25779         (ENTRY): Likewise.
25780         (END): Likewise.
25781         (ENTRY_CHK): Likewise.
25782         (END_CHK): Likewise.
25783         (syscall_error): Likewise.
25784         (mcount): Likewise.
25785         (PSEUDO_END): Likewise.
25786         (L): Likewise.
25787         (atom_text_section): Likewise.
25789 2017-10-31  Rafal Luzynski  <digitalfreak@lingonborough.com>
25791         * localedata/unicode-gen/gen_unicode_ctype.py (output_head):
25792         category of LC_CTYPE set to "i18n:2012".
25793         * localedata/locales/i18n_ctype: Regenerate.
25795 2017-10-31  Yury Norov  <ynorov@caviumnetworks.com>
25797         * sysdeps/unix/sysv/linux/sigprocmask.c: Remove useless #ifdefs.
25798         * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
25799         * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
25800         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
25802         * sysdeps/unix/sysv/linux/ia64/sigpending.c: Remove file.
25803         * sysdeps/unix/sysv/linux/s390/s390-64/sigpending.c: Likewise.
25804         * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Likewise.
25805         * sysdeps/unix/sysv/linux/x86_64/sigpending.c: Likewise.
25807 2017-10-31  Joseph Myers  <joseph@codesourcery.com>
25809         * math/complex.h
25810         [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF16):
25811         New macro.
25812         [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF32):
25813         Likewise.
25814         [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF64):
25815         Likewise.
25816         [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25817         (CMPLXF32X): Likewise.
25818         [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25819         (CMPLXF64X): Likewise.
25820         [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25821         (CMPLXF128X): Likewise.
25823         * math/math.h
25824         [__FLT_EVAL_METHOD__ == 0 || __FLT_EVAL_METHOD__ == 32]
25825         (__MATH_EVAL_FMT2): Define to add 0.0f.
25827 2017-10-31  Alan Modra  <amodra@gmail.com>
25829         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-power8.S: Don't
25830         include sysdep.h.
25831         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-power5+.S: Likewise.
25832         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-ppc64.S: Likewise.
25833         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-power8.S: Likewise.
25834         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-ppc64.c: Likewise.
25835         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power7.S: Likewise.
25836         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power8.S: Likewise.
25837         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-power5+.S: Likewise.
25838         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-ppc64.S: Likewise.
25839         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-power5+.S: Likewise.
25840         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-ppc64.S: Likewise.
25841         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: Likewise.
25842         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
25843         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-power5+.S: Likewise.
25844         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-ppc64.S: Likewise.
25845         * sysdeps/powerpc/powerpc64/multiarch/memchr-power7.S: Likewise.
25846         * sysdeps/powerpc/powerpc64/multiarch/memchr-power8.S: Likewise.
25847         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power4.S: Likewise.
25848         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power7.S: Likewise.
25849         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power8.S: Likewise.
25850         * sysdeps/powerpc/powerpc64/multiarch/memcpy-a2.S: Likewise.
25851         * sysdeps/powerpc/powerpc64/multiarch/memcpy-cell.S: Likewise.
25852         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power4.S: Likewise.
25853         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power6.S: Likewise.
25854         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power7.S: Likewise.
25855         * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S: Likewise.
25856         * sysdeps/powerpc/powerpc64/multiarch/memmove-power7.S: Likewise.
25857         * sysdeps/powerpc/powerpc64/multiarch/mempcpy-power7.S: Likewise.
25858         * sysdeps/powerpc/powerpc64/multiarch/memrchr-power7.S: Likewise.
25859         * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S: Likewise.
25860         * sysdeps/powerpc/powerpc64/multiarch/memset-power4.S: Likewise.
25861         * sysdeps/powerpc/powerpc64/multiarch/memset-power6.S: Likewise.
25862         * sysdeps/powerpc/powerpc64/multiarch/memset-power7.S: Likewise.
25863         * sysdeps/powerpc/powerpc64/multiarch/memset-power8.S: Likewise.
25864         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-power7.S: Likewise.
25865         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power8.S: Likewise.
25866         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power7.S: Likewise.
25867         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Likewise.
25868         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: Likewise.
25869         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power8.S: Likewise.
25870         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: Likewise.
25871         * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S: Likewise.
25872         * sysdeps/powerpc/powerpc64/multiarch/strchr-power7.S: Likewise.
25873         * sysdeps/powerpc/powerpc64/multiarch/strchr-power8.S: Likewise.
25874         * sysdeps/powerpc/powerpc64/multiarch/strchr-ppc64.S: Likewise.
25875         * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power7.S: Likewise.
25876         * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power8.S: Likewise.
25877         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power7.S: Likewise.
25878         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Likewise.
25879         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
25880         * sysdeps/powerpc/powerpc64/multiarch/strcmp-ppc64.S: Likewise.
25881         * sysdeps/powerpc/powerpc64/multiarch/strcpy-power8.S: Likewise.
25882         * sysdeps/powerpc/powerpc64/multiarch/strcspn-power8.S: Likewise.
25883         * sysdeps/powerpc/powerpc64/multiarch/strlen-power7.S: Likewise.
25884         * sysdeps/powerpc/powerpc64/multiarch/strlen-power8.S: Likewise.
25885         * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S: Likewise.
25886         * sysdeps/powerpc/powerpc64/multiarch/strncase-power8.S: Likewise.
25887         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power4.S: Likewise.
25888         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power7.S: Likewise.
25889         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
25890         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
25891         * sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.S: Likewise.
25892         * sysdeps/powerpc/powerpc64/multiarch/strncpy-power7.S: Likewise.
25893         * sysdeps/powerpc/powerpc64/multiarch/strncpy-power8.S: Likewise.
25894         * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: Likewise.
25895         * sysdeps/powerpc/powerpc64/multiarch/strnlen-power8.S: Likewise.
25896         * sysdeps/powerpc/powerpc64/multiarch/strrchr-power7.S: Likewise.
25897         * sysdeps/powerpc/powerpc64/multiarch/strrchr-power8.S: Likewise.
25898         * sysdeps/powerpc/powerpc64/multiarch/strspn-power8.S: Likewise.
25899         * sysdeps/powerpc/powerpc64/multiarch/strstr-power7.S: Likewise.
25901         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-ppc64.S: Don't
25902         include sysdep.h and math_ldbl_opt.h.
25904         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-power5+.S: Don't
25905         include sysdep.h and math_ldbl_opt.h.  Include shlib-compat.h.
25906         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-ppc64.S: Likewise.
25907         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-power6.S: Likewise.
25908         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-ppc64.S: Likewise.
25909         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-power5+.S: Likewise.
25910         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power7.S: Likewise.
25911         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power8.S: Likewise.
25912         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power5.S: Likewise.
25913         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6.S: Likewise.
25914         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6x.S: Likewise.
25915         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power7.S: Likewise.
25916         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power8.S: Likewise.
25917         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S: Likewise.
25918         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power6x.S: Likewise.
25919         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power8.S: Likewise.
25920         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-ppc64.S: Likewise.
25921         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power5+.S: Likewise.
25922         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power6x.S: Likewise.
25923         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power8.S: Likewise.
25924         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-ppc64.S: Likewise.
25925         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf-ppc64.S: Likewise.
25926         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-power5+.S: Likewise.
25927         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-ppc64.S: Likewise.
25928         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-power5+.S: Likewise.
25929         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-ppc64.S: Likewise.
25931 2017-10-31  Alan Modra  <amodra@gmail.com>
25933         * sysdeps/powerpc/powerpc64/multiarch/strncase_l-power7.c: Include
25934         string/strncase_l.c, not string/strncase.c.
25935         (USE_IN_EXTENDED_LOCALE_MODEL): Don't define.
25936         (libc_hidden_def): Redefine.
25938 2017-10-31  Alan Modra  <amodra@gmail.com>
25940         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S:
25941         (__STRCMP, STRCMP, __strcasecmp_l): Define.
25942         (__strcasecmp): Don't define.
25944 2017-10-31  Alan Modra  <amodra@gmail.com>
25946         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Wrap in
25947         IS_IN (libc).
25948         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
25949         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
25950         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
25952 2017-10-31  Alan Modra  <amodra@gmail.com>
25954         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Don't define
25955         USE_AS_STPNCPY.
25957 2017-10-31  Alan Modra  <amodra@gmail.com>
25959         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S (hidden_def):
25960         Redefine only when SHARED.
25962 2017-10-30  Joseph Myers  <joseph@codesourcery.com>
25964         * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
25965         Include <bits/math-finite.h> with appropriate macros defined and
25966         undefined.
25967         [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
25968         [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
25969         [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
25970         [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
25971         [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
25973         * math/math.h [!_Mfloat_] (_Mfloat_): Do not define.
25974         [!_Mlong_double_] (_Mlong_double_): Likewise.
25975         [!_Mfloat16_] (_Mfloat16_): Likewise.
25976         [!_Mfloat32_] (_Mfloat32_): Likewise.
25977         [!_Mfloat64_] (_Mfloat64_): Likewise.
25978         [!_Mfloat128_] (_Mfloat128_): Likewise.
25979         [!_Mfloat32x_] (_Mfloat32x_): Likewise.
25980         [!_Mfloat64x_] (_Mfloat64x_): Likewise.
25981         [!_Mfloat128x_] (_Mfloat128x_): Likewise.
25982         (_Mdouble_): Define without indirection through those macros.
25983         * math/complex.h [!_Mfloat_] (_Mfloat_): Do not define.
25984         [!_Mfloat128_] (_Mfloat128_): Likewise.
25985         [_Mlong_double_] (_Mlong_double_): Likewise.
25986         (_Mdouble_): Define without indirection through those macros.
25987         * math/Makefile [$(long-double-fcts) != yes] (math-CPPFLAGS): Do
25988         not add -D_Mlong_double_=double.
25989         * include/math.h [_ISOMAC] (_Mlong_double_): Do not undefine.
25990         * math/test-signgam-finite-c99.c (_Mlong_double_): Likewise.
25992 2017-10-30  H.J. Lu  <hongjiu.lu@intel.com>
25994         * sysdeps/x86/libc-start.c: Add /* !SHARED */.
25996 2017-10-30  H.J. Lu  <hongjiu.lu@intel.com>
25998         * sysdeps/x86/libc-start.c: Reformat.
26000 2017-10-30  H.J. Lu  <hongjiu.lu@intel.com>
26002         [BZ #22353]
26003         * sysdeps/i386/i586/strcpy.S (STRCPY): Use conditional branches.
26004         (1): Renamed to ...
26005         (L(Src0)): This.
26006         (L(Src1)): New.
26007         (L(Src2)): Likewise.
26008         (L(1)): Renamed to ...
26009         (L(Src3)): This.
26011 2017-10-30  Joseph Myers  <joseph@codesourcery.com>
26013         * math/math.h [__HAVE_FLOAT16 && __USE_GNU] (M_Ef16): New macro.
26014         [__HAVE_FLOAT16 && __USE_GNU] (M_LOG2Ef16): Likewise.
26015         [__HAVE_FLOAT16 && __USE_GNU] (M_LOG10Ef16): Likewise.
26016         [__HAVE_FLOAT16 && __USE_GNU] (M_LN2f16): Likewise.
26017         [__HAVE_FLOAT16 && __USE_GNU] (M_LN10f16): Likewise.
26018         [__HAVE_FLOAT16 && __USE_GNU] (M_PIf16): Likewise.
26019         [__HAVE_FLOAT16 && __USE_GNU] (M_PI_2f16): Likewise.
26020         [__HAVE_FLOAT16 && __USE_GNU] (M_PI_4f16): Likewise.
26021         [__HAVE_FLOAT16 && __USE_GNU] (M_1_PIf16): Likewise.
26022         [__HAVE_FLOAT16 && __USE_GNU] (M_2_PIf16): Likewise.
26023         [__HAVE_FLOAT16 && __USE_GNU] (M_2_SQRTPIf16): Likewise.
26024         [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT2f16): Likewise.
26025         [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT1_2f16): Likewise.
26026         [__HAVE_FLOAT32 && __USE_GNU] (M_Ef32): Likewise.
26027         [__HAVE_FLOAT32 && __USE_GNU] (M_LOG2Ef32): Likewise.
26028         [__HAVE_FLOAT32 && __USE_GNU] (M_LOG10Ef32): Likewise.
26029         [__HAVE_FLOAT32 && __USE_GNU] (M_LN2f32): Likewise.
26030         [__HAVE_FLOAT32 && __USE_GNU] (M_LN10f32): Likewise.
26031         [__HAVE_FLOAT32 && __USE_GNU] (M_PIf32): Likewise.
26032         [__HAVE_FLOAT32 && __USE_GNU] (M_PI_2f32): Likewise.
26033         [__HAVE_FLOAT32 && __USE_GNU] (M_PI_4f32): Likewise.
26034         [__HAVE_FLOAT32 && __USE_GNU] (M_1_PIf32): Likewise.
26035         [__HAVE_FLOAT32 && __USE_GNU] (M_2_PIf32): Likewise.
26036         [__HAVE_FLOAT32 && __USE_GNU] (M_2_SQRTPIf32): Likewise.
26037         [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT2f32): Likewise.
26038         [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT1_2f32): Likewise.
26039         [__HAVE_FLOAT64 && __USE_GNU] (M_Ef64): Likewise.
26040         [__HAVE_FLOAT64 && __USE_GNU] (M_LOG2Ef64): Likewise.
26041         [__HAVE_FLOAT64 && __USE_GNU] (M_LOG10Ef64): Likewise.
26042         [__HAVE_FLOAT64 && __USE_GNU] (M_LN2f64): Likewise.
26043         [__HAVE_FLOAT64 && __USE_GNU] (M_LN10f64): Likewise.
26044         [__HAVE_FLOAT64 && __USE_GNU] (M_PIf64): Likewise.
26045         [__HAVE_FLOAT64 && __USE_GNU] (M_PI_2f64): Likewise.
26046         [__HAVE_FLOAT64 && __USE_GNU] (M_PI_4f64): Likewise.
26047         [__HAVE_FLOAT64 && __USE_GNU] (M_1_PIf64): Likewise.
26048         [__HAVE_FLOAT64 && __USE_GNU] (M_2_PIf64): Likewise.
26049         [__HAVE_FLOAT64 && __USE_GNU] (M_2_SQRTPIf64): Likewise.
26050         [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT2f64): Likewise.
26051         [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT1_2f64): Likewise.
26052         [__HAVE_FLOAT32X && __USE_GNU] (M_Ef32x): Likewise.
26053         [__HAVE_FLOAT32X && __USE_GNU] (M_LOG2Ef32x): Likewise.
26054         [__HAVE_FLOAT32X && __USE_GNU] (M_LOG10Ef32x): Likewise.
26055         [__HAVE_FLOAT32X && __USE_GNU] (M_LN2f32x): Likewise.
26056         [__HAVE_FLOAT32X && __USE_GNU] (M_LN10f32x): Likewise.
26057         [__HAVE_FLOAT32X && __USE_GNU] (M_PIf32x): Likewise.
26058         [__HAVE_FLOAT32X && __USE_GNU] (M_PI_2f32x): Likewise.
26059         [__HAVE_FLOAT32X && __USE_GNU] (M_PI_4f32x): Likewise.
26060         [__HAVE_FLOAT32X && __USE_GNU] (M_1_PIf32x): Likewise.
26061         [__HAVE_FLOAT32X && __USE_GNU] (M_2_PIf32x): Likewise.
26062         [__HAVE_FLOAT32X && __USE_GNU] (M_2_SQRTPIf32x): Likewise.
26063         [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT2f32x): Likewise.
26064         [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT1_2f32x): Likewise.
26065         [__HAVE_FLOAT64X && __USE_GNU] (M_Ef64x): Likewise.
26066         [__HAVE_FLOAT64X && __USE_GNU] (M_LOG2Ef64x): Likewise.
26067         [__HAVE_FLOAT64X && __USE_GNU] (M_LOG10Ef64x): Likewise.
26068         [__HAVE_FLOAT64X && __USE_GNU] (M_LN2f64x): Likewise.
26069         [__HAVE_FLOAT64X && __USE_GNU] (M_LN10f64x): Likewise.
26070         [__HAVE_FLOAT64X && __USE_GNU] (M_PIf64x): Likewise.
26071         [__HAVE_FLOAT64X && __USE_GNU] (M_PI_2f64x): Likewise.
26072         [__HAVE_FLOAT64X && __USE_GNU] (M_PI_4f64x): Likewise.
26073         [__HAVE_FLOAT64X && __USE_GNU] (M_1_PIf64x): Likewise.
26074         [__HAVE_FLOAT64X && __USE_GNU] (M_2_PIf64x): Likewise.
26075         [__HAVE_FLOAT64X && __USE_GNU] (M_2_SQRTPIf64x): Likewise.
26076         [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT2f64x): Likewise.
26077         [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT1_2f64x): Likewise.
26078         [__HAVE_FLOAT128X && __USE_GNU]: Use #error.
26080 2017-10-30  Florian Weimer  <fweimer@redhat.com>
26082         * elf/ldconfig.c (search_dir): Assume that _DIRENT_HAVE_D_TYPE is
26083         always defined.
26084         * io/tst-mkdirat.c (do_test): Likewise.
26085         * io/tst-mkfifoat.c (do_test): Likewise.
26086         * io/tst-mknodat.c (do_test): Likewise.
26087         * locale/programs/charmap-dir.c (charmap_readdir): Likewise.
26088         * locale/programs/locale.c (select_dirs): Likewise.
26089         * locale/programs/locarchive.c (add_locales_to_archive): Likewise.
26090         * posix/bug-glob2.c (my_readdir): Likewise.
26091         * posix/tst-dir.c (main): Likewise.
26092         * posix/tst-glob_lstat_compat.c (my_readdir): Likewise.
26093         * posix/tst-gnuglob-skeleton.c (my_readdir): Likewise.
26095 2017-10-30  Florian Weimer  <fweimer@redhat.com>
26097         * string/strings.h (ffsl, ffsll): Declare under __USE_MISC, not
26098         just __USE_GNU.
26100 2017-10-30  Florian Weimer  <fweimer@redhat.com>
26102         * posix/tst-gnuglob-skeleton.c: Renamed from tst-gnuglob.c.
26103         Convert to support/test-driver.c.
26104         (GLOB_FUNC, GLOB_TYPE, GLOBFREE_FUNC, DIRENT_STRUCT, STAT_STRUCT):
26105         New macro parameters.
26106         (PRINTF): Remove macro.  Use test_verbose conditionals instead.
26107         * posix/tst-gnuglob.c: New file.
26108         * posix/tst-gnuglob64.c: Likewise.
26109         * posix/Makefile (tests): Add tst-gnuglob64.
26111 2017-10-30  Michal Ostrowski  <ostrowski.michal@gmail.com>
26113         [BZ #19485]
26114         * localedata/locales/csb_PL (LC_TIME): Fix “abmon” for March
26115         and use a better translation for March in “mon”.
26116         * localedata/locales/csb_PL: Use more ASCII to improve the
26117         readability of the source.
26119 2017-10-30  Mike FABIAN  <mfabian@redhat.com>
26121         [BZ #13953]
26122         * localedata/locales/km_KH: Use ASCII as much
26123         as possible for better readability of the source and
26124         remove useless comments.
26125         * localedata/locales/km_KH (LC_TIME): Remove era stuff, it
26126         was commented out and apparently wrong anyway because it was
26127         using Lao characters. If Buddhist era should be used
26128         for km_KH, a native speaker should write the correct formaat
26129         for Khmer.
26130         * localedata/locales/km_KH (LC_TIME): Add first_weekday 1
26131         (According to CLDR, the first weekday for Cambodia is Sunday).
26132         * localedata/locales/km_KH (LC_NAME): Remove name_mr and name_mrs
26133         (These were using Lao characters which must be wrong. If we get
26134         the correct data from a native speaker, we could add it back, until
26135         then it is better not to have name_mr and name_mrs at all than
26136         having it wrong).
26138 2017-10-27  Rafal Luzynski  <digitalfreak@lingonborough.com>
26140         * locale/loadlocale.c: Correct size of
26141         _nl_value_type_LC_<category> arrays.
26143 2017-10-27  Joseph Myers  <joseph@codesourcery.com>
26145         * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
26146         Include <bits/mathcalls-helper-functions.h> and <bits/mathcalls.h>
26147         with appropriate macros defined and undefined.
26148         [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
26149         [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
26150         [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
26151         [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
26152         [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
26154 2017-10-27  H.J. Lu  <hongjiu.lu@intel.com>
26156         * sysdeps/i386/fpu/libm-test-ulps: Regenerated for GCC 7 with
26157         "-O2 -march=i586".
26159 2017-10-27  Mike FABIAN  <mfabian@redhat.com>
26161         * localedata/locales/tt_RU (LC_MESSAGES): Start yesstr and nostr
26162         with lowercase letters to make it agree with CLDR.
26164 2017-10-27  Mike FABIAN  <mfabian@redhat.com>
26166         [BZ #15260]
26167         * localedata/locales/doi_IN (LC_MESSAGES): Match only for the
26168         first letters of yesstr and nostr in yesexpr and noexpr,
26169         not for the full words.
26170         * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
26171         * localedata/locales/kok_IN (LC_MESSAGES): Likewise.
26172         * localedata/locales/mr_IN (LC_MESSAGES): Likewise.
26173         * localedata/locales/sat_IN (LC_MESSAGES): Likewise.
26174         * localedata/locales/km_KH (LC_MESSAGES): Match also for the
26175         first letters of yesstr and nostr in yesexpr and noexpr,
26176         until now only English was matched in yesexpr and noexpr.
26177         * localedata/locales/tl_PH (LC_MESSAGES): Use “copy "fil_PH"”
26178         instead of “copy "en_US"”. CLDR has yesstr and nostr data for
26179         fil but not for tl. As tl and fil are very similar, using fil
26180         is probably better than using English.
26182 2017-10-27  Thierry Vignaud  <thierry.vignaud@gmail.com>
26184         [BZ #21706]
26185         * localedata/locales/br_FR (LC_MESSAGES): Use all lowercase
26186         in yesstr and nostr.
26188 2017-10-26  Joseph Myers  <joseph@codesourcery.com>
26190         * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
26191         (IEC_60559_TYPES_EXT)] (SNANF16): New macro.
26192         [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32):
26193         Likewise.
26194         [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64):
26195         Likewise.
26196         [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32X):
26197         Likewise.
26198         [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64X):
26199         Likewise.
26200         [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
26201         (SNANF128X): Likewise.
26203         * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
26204         (IEC_60559_TYPES_EXT)] (HUGE_VAL_F16): New macro.
26205         [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
26206         (HUGE_VAL_F32): Likewise.
26207         [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
26208         (HUGE_VAL_F64): Likewise.
26209         [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
26210         (HUGE_VAL_F32X): Likewise.
26211         [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
26212         (HUGE_VAL_F64X): Likewise.
26213         [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
26214         (HUGE_VAL_F128X): Likewise.
26216 2017-10-26  Thierry Vignaud  <thierry.vignaud@gmail.com>
26218         * localedata/locales/br_FR (LC_IDENTIFICATON): Add
26219         Thierry Vignaud <thierry.vignaud@gmail.com> as the contact
26220         for the br_FR locale.
26222 2017-10-26  Thierry Vignaud  <thierry.vignaud@gmail.com>
26224         [BZ #21706]
26225         * localedata/locales/br_FR (LC_MESSAGES): Fix nostr.
26227 2017-10-25  Carlos O'Donell  <carlos@redhat.com>
26229         * locale/programs/record-status.h: Define globals, and function
26230         prototypes. Move function bodies...
26231         * locale/programs/record-status.c: ... to here. New file.
26232         * iconv/Makefile (iconv_prog-modules): Add record-status.
26233         * locale/Makefile (lib-modules): Likewise.
26234         * iconv/iconv_prog.c: Remove verbose.
26235         * iconv/iconv_prog.h: Include record-status.h (defines verbose).
26236         * locale/programs/charmap.c (charmap_read): If warn_ascii is true then
26237         record a warning about ASCII compatibility.
26238         * locale/programs/ld-monetary.c (monetary_finish): If
26239         warn_int_curr_symbol is true then record a warning about the symbol
26240         not being in our ISO 4217 list.
26241         * locale/programs/locale.c: Include record-status.h. Remove verbose.
26242         * locale/programs/localedef.c: Include ctype.h. Remove delcaration of
26243         verbose, recorded_warning_count, recorded_error_count, and be_quiet.
26244         (OPT_NO_WARN): Define.
26245         (OPT_WARN): Define.
26246         (options): Add entry for --no-warnings, and --warnings.
26247         (set_warnings): New function to enable/disable warnings.
26248         (parse_opt): Call set_warnings for OPT_NO_WARN and OPT_WARN.
26249         * locale/programs/localedef.h: Remove warn_int_curr_symbol.
26250         * localedata/gen-locale.sh: Default flags to `--quiet -c'.
26251         Add `--no-warnings=ascii' to locales using SHIFT_JIS or SHIFT_JIXX0213.
26252         Pass flags to generate_locale.
26253         (generate_locale): Accept new flag argument and pass it to localedef
26254         invocation.
26255         * localedata/Makefile (INSTALL-SUPPORTED-LOCALES): Use
26256         --no-warnings=ascii for SHIFT_JIS and SHIFT_JISX0213 charmaps.
26258         * localedata/Makefile (test-input-data): Use full file name.
26259         * localedata/da_DK.in: Rename to...
26260         * localedata/da_DK.ISO-8859-1.in: ...this.
26261         * localedata/de_DE.in: Rename to...
26262         * localedata/de_DE.ISO-8859-1.in: ...this.
26263         * localedata/en_US.in: Rename to...
26264         * localedata/en_US.ISO-8859-1.in: ...this.
26265         * localedata/fr_FR.in: Rename to...
26266         * localedata/fr_FR.UTF-8.in: ... this.
26267         * localedata/hr_HR.in: Rename to...
26268         * localedata/hr_HR.ISO-8859-2.in: ...this.
26269         * localedata/hu_HU.in: Rename to...
26270         * localedata/hu_HU.UTF-8.in: ...this.
26271         * localedata/si_LK.in: Rename to...
26272         * localedata/si_LK.UTF-8.in: ...this.
26273         * localedata/sv_SE.in: Rename to...
26274         * localedata/sv_SE.ISO-8859-1.in: ...this.
26275         * localedata/tr_TR.in: Rename to...
26276         * localedata/tr_TR.UTF-8.in: ...this.
26277         * localedata/uk_UA.in: Rename to...
26278         * localedata/uk_UA.UTF-8.in: ...this.
26279         * localedata/sort-test.sh: Test file is locale name with the
26280         suffix.
26282         * localedata/unicode-gen/Makefile (check_i18n): Rename to
26283         check_i18n_ctype. Depend on i18n_ctype-report. Check i18n_ctype-report
26284         file.
26285         * localedata/locales/i18n_ctype: Regenerate.
26286         * localedata/locales/tr_TR: Likewise.
26287         * localedata/locales/translit_circle: Likewise.
26288         * localedata/locales/translit_cjk_compat: Likewise.
26289         * localedata/locales/translit_combining: Likewise.
26290         * localedata/locales/translit_compat: Likewise.
26291         * localedata/locales/translit_font: Likewise.
26292         * localedata/locales/translit_fraction: Likewise.
26294 2017-10-25  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
26296         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Replace
26297         lxvd2x/stxvd2x with lvx/stvx.
26298         * sysdeps/powerpc/powerpc64/power7/memmove.S: Likewise.
26300 2017-10-25  H.J. Lu  <hongjiu.lu@intel.com>
26302         * include/alloc_buffer.h: Replace "if if " with "if " in
26303         comments.
26304         * sysdeps/mips/memcpy.S: Likkewise.
26305         * sysdeps/mips/memset.S: Likewise.
26306         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
26307         Likewise.
26308         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S:
26309         Likewise.
26310         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S:
26311         Likewise.
26313 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
26315         [BZ #15261]
26316         * localedata/locales/cmn_TW (LC_MESSAGES): Add fullwidth yYnN to
26317         yesexpr and noexpr.
26318         * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
26319         * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
26320         * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
26321         * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
26322         * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
26323         * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
26324         * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
26326 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
26328         * localedata/locales/am_ET (LC_MESSAGES): Sync with CLDR.
26329         * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
26330         * localedata/locales/el_GR (LC_MESSAGES): Likewise.
26331         * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
26332         * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
26333         * localedata/locales/mfe_MU (LC_MESSAGES): Likewise.
26334         * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
26335         * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
26336         * localedata/locales/os_RU (LC_MESSAGES): Likewise.
26337         * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
26338         * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
26339         * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
26341 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
26343         * localedata/locales/aa_ET (LC_MESSAGES): Use ASCII as much
26344         as possible for better readability of the source.
26345         * localedata/locales/af_ZA (LC_MESSAGES): Likewise.
26346         * localedata/locales/ak_GH (LC_MESSAGES): Likewise.
26347         * localedata/locales/am_ET (LC_MESSAGES): Likewise.
26348         * localedata/locales/anp_IN (LC_MESSAGES): Likewise.
26349         * localedata/locales/ar_EG (LC_MESSAGES): Likewise.
26350         * localedata/locales/as_IN (LC_MESSAGES): Likewise.
26351         * localedata/locales/ast_ES (LC_MESSAGES): Likewise.
26352         * localedata/locales/ayc_PE (LC_MESSAGES): Likewise.
26353         * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
26354         * localedata/locales/az_IR (LC_MESSAGES): Likewise.
26355         * localedata/locales/be_BY (LC_MESSAGES): Likewise.
26356         * localedata/locales/be_BY@latin (LC_MESSAGES): Likewise.
26357         * localedata/locales/bem_ZM (LC_MESSAGES): Likewise.
26358         * localedata/locales/ber_MA (LC_MESSAGES): Likewise.
26359         * localedata/locales/bg_BG (LC_MESSAGES): Likewise.
26360         * localedata/locales/bhb_IN (LC_MESSAGES): Likewise.
26361         * localedata/locales/bi_VU (LC_MESSAGES): Likewise.
26362         * localedata/locales/bo_CN (LC_MESSAGES): Likewise.
26363         * localedata/locales/br_FR (LC_MESSAGES): Likewise.
26364         * localedata/locales/bs_BA (LC_MESSAGES): Likewise.
26365         * localedata/locales/ca_ES (LC_MESSAGES): Likewise.
26366         * localedata/locales/ce_RU (LC_MESSAGES): Likewise.
26367         * localedata/locales/crh_UA (LC_MESSAGES): Likewise.
26368         * localedata/locales/cs_CZ (LC_MESSAGES): Likewise.
26369         * localedata/locales/csb_PL (LC_MESSAGES): Likewise.
26370         * localedata/locales/cv_RU (LC_MESSAGES): Likewise.
26371         * localedata/locales/cy_GB (LC_MESSAGES): Likewise.
26372         * localedata/locales/da_DK (LC_MESSAGES): Likewise.
26373         * localedata/locales/de_DE (LC_MESSAGES): Likewise.
26374         * localedata/locales/dv_MV (LC_MESSAGES): Likewise.
26375         * localedata/locales/dz_BT (LC_MESSAGES): Likewise.
26376         * localedata/locales/el_GR (LC_MESSAGES): Likewise.
26377         * localedata/locales/en_CA (LC_MESSAGES): Likewise.
26378         * localedata/locales/en_US (LC_MESSAGES): Likewise.
26379         * localedata/locales/es_ES (LC_MESSAGES): Likewise.
26380         * localedata/locales/et_EE (LC_MESSAGES): Likewise.
26381         * localedata/locales/eu_ES (LC_MESSAGES): Likewise.
26382         * localedata/locales/fa_IR (LC_MESSAGES): Likewise.
26383         * localedata/locales/ff_SN (LC_MESSAGES): Likewise.
26384         * localedata/locales/fi_FI (LC_MESSAGES): Likewise.
26385         * localedata/locales/fil_PH (LC_MESSAGES): Likewise.
26386         * localedata/locales/fo_FO (LC_MESSAGES): Likewise.
26387         * localedata/locales/fr_BE (LC_MESSAGES): Likewise.
26388         * localedata/locales/fr_CH (LC_MESSAGES): Likewise.
26389         * localedata/locales/fr_FR (LC_MESSAGES): Likewise.
26390         * localedata/locales/fr_LU (LC_MESSAGES): Likewise.
26391         * localedata/locales/fur_IT (LC_MESSAGES): Likewise.
26392         * localedata/locales/fy_DE (LC_MESSAGES): Likewise.
26393         * localedata/locales/ga_IE (LC_MESSAGES): Likewise.
26394         * localedata/locales/gd_GB (LC_MESSAGES): Likewise.
26395         * localedata/locales/gl_ES (LC_MESSAGES): Likewise.
26396         * localedata/locales/gu_IN (LC_MESSAGES): Likewise.
26397         * localedata/locales/gv_GB (LC_MESSAGES): Likewise.
26398         * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
26399         * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
26400         * localedata/locales/he_IL (LC_MESSAGES): Likewise.
26401         * localedata/locales/hif_FJ (LC_MESSAGES): Likewise.
26402         * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
26403         * localedata/locales/hr_HR (LC_MESSAGES): Likewise.
26404         * localedata/locales/hsb_DE (LC_MESSAGES): Likewise.
26405         * localedata/locales/ht_HT (LC_MESSAGES): Likewise.
26406         * localedata/locales/hu_HU (LC_MESSAGES): Likewise.
26407         * localedata/locales/hy_AM (LC_MESSAGES): Likewise.
26408         * localedata/locales/ia_FR (LC_MESSAGES): Likewise.
26409         * localedata/locales/id_ID (LC_MESSAGES): Likewise.
26410         * localedata/locales/ig_NG (LC_MESSAGES): Likewise.
26411         * localedata/locales/ik_CA (LC_MESSAGES): Likewise.
26412         * localedata/locales/is_IS (LC_MESSAGES): Likewise.
26413         * localedata/locales/it_CH (LC_MESSAGES): Likewise.
26414         * localedata/locales/it_IT (LC_MESSAGES): Likewise.
26415         * localedata/locales/iu_CA (LC_MESSAGES): Likewise.
26416         * localedata/locales/ja_JP (LC_MESSAGES): Likewise.
26417         * localedata/locales/kk_KZ (LC_MESSAGES): Likewise.
26418         * localedata/locales/kl_GL (LC_MESSAGES): Likewise.
26419         * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
26420         * localedata/locales/ks_IN (LC_MESSAGES): Likewise.
26421         * localedata/locales/ku_TR (LC_MESSAGES): Likewise.
26422         * localedata/locales/kw_GB (LC_MESSAGES): Likewise.
26423         * localedata/locales/ky_KG (LC_MESSAGES): Likewise.
26424         * localedata/locales/lb_LU (LC_MESSAGES): Likewise.
26425         * localedata/locales/lg_UG (LC_MESSAGES): Likewise.
26426         * localedata/locales/li_NL (LC_MESSAGES): Likewise.
26427         * localedata/locales/lij_IT (LC_MESSAGES): Likewise.
26428         * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
26429         * localedata/locales/lo_LA (LC_MESSAGES): Likewise.
26430         * localedata/locales/lt_LT (LC_MESSAGES): Likewise.
26431         * localedata/locales/lv_LV (LC_MESSAGES): Likewise.
26432         * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
26433         * localedata/locales/mg_MG (LC_MESSAGES): Likewise.
26434         * localedata/locales/mhr_RU (LC_MESSAGES): Likewise.
26435         * localedata/locales/mi_NZ (LC_MESSAGES): Likewise.
26436         * localedata/locales/mk_MK (LC_MESSAGES): Likewise.
26437         * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
26438         * localedata/locales/mn_MN (LC_MESSAGES): Likewise.
26439         * localedata/locales/ms_MY (LC_MESSAGES): Likewise.
26440         * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
26441         * localedata/locales/my_MM (LC_MESSAGES): Likewise.
26442         * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
26443         * localedata/locales/nan_TW@latin (LC_MESSAGES): Likewise.
26444         * localedata/locales/nb_NO (LC_MESSAGES): Likewise.
26445         * localedata/locales/nds_DE (LC_MESSAGES): Likewise.
26446         * localedata/locales/nds_NL (LC_MESSAGES): Likewise.
26447         * localedata/locales/ne_NP (LC_MESSAGES): Likewise.
26448         * localedata/locales/nhn_MX (LC_MESSAGES): Likewise.
26449         * localedata/locales/niu_NU (LC_MESSAGES): Likewise.
26450         * localedata/locales/nl_NL (LC_MESSAGES): Likewise.
26451         * localedata/locales/nn_NO (LC_MESSAGES): Likewise.
26452         * localedata/locales/nr_ZA (LC_MESSAGES): Likewise.
26453         * localedata/locales/nso_ZA (LC_MESSAGES): Likewise.
26454         * localedata/locales/oc_FR (LC_MESSAGES): Likewise.
26455         * localedata/locales/om_ET (LC_MESSAGES): Likewise.
26456         * localedata/locales/or_IN (LC_MESSAGES): Likewise.
26457         * localedata/locales/os_RU (LC_MESSAGES): Likewise.
26458         * localedata/locales/pa_IN (LC_MESSAGES): Likewise.
26459         * localedata/locales/pa_PK (LC_MESSAGES): Likewise.
26460         * localedata/locales/pap_AW (LC_MESSAGES): Likewise.
26461         * localedata/locales/pap_CW (LC_MESSAGES): Likewise.
26462         * localedata/locales/pl_PL (LC_MESSAGES): Likewise.
26463         * localedata/locales/ps_AF (LC_MESSAGES): Likewise.
26464         * localedata/locales/pt_BR (LC_MESSAGES): Likewise.
26465         * localedata/locales/quz_PE (LC_MESSAGES): Likewise.
26466         * localedata/locales/raj_IN (LC_MESSAGES): Likewise.
26467         * localedata/locales/ro_RO (LC_MESSAGES): Likewise.
26468         * localedata/locales/ru_RU (LC_MESSAGES): Likewise.
26469         * localedata/locales/ru_UA (LC_MESSAGES): Likewise.
26470         * localedata/locales/rw_RW (LC_MESSAGES): Likewise.
26471         * localedata/locales/sa_IN (LC_MESSAGES): Likewise.
26472         * localedata/locales/sc_IT (LC_MESSAGES): Likewise.
26473         * localedata/locales/sd_IN@devanagari (LC_MESSAGES): Likewise.
26474         * localedata/locales/se_NO (LC_MESSAGES): Likewise.
26475         * localedata/locales/sgs_LT (LC_MESSAGES): Likewise.
26476         * localedata/locales/si_LK (LC_MESSAGES): Likewise.
26477         * localedata/locales/sk_SK (LC_MESSAGES): Likewise.
26478         * localedata/locales/sl_SI (LC_MESSAGES): Likewise.
26479         * localedata/locales/sm_WS (LC_MESSAGES): Likewise.
26480         * localedata/locales/so_DJ (LC_MESSAGES): Likewise.
26481         * localedata/locales/sq_AL (LC_MESSAGES): Likewise.
26482         * localedata/locales/sr_RS (LC_MESSAGES): Likewise.
26483         * localedata/locales/sr_RS@latin (LC_MESSAGES): Likewise.
26484         * localedata/locales/ss_ZA (LC_MESSAGES): Likewise.
26485         * localedata/locales/st_ZA (LC_MESSAGES): Likewise.
26486         * localedata/locales/sv_SE (LC_MESSAGES): Likewise.
26487         * localedata/locales/sw_KE (LC_MESSAGES): Likewise.
26488         * localedata/locales/szl_PL (LC_MESSAGES): Likewise.
26489         * localedata/locales/tcy_IN (LC_MESSAGES): Likewise.
26490         * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
26491         * localedata/locales/th_TH (LC_MESSAGES): Likewise.
26492         * localedata/locales/the_NP (LC_MESSAGES): Likewise.
26493         * localedata/locales/ti_ER (LC_MESSAGES): Likewise.
26494         * localedata/locales/tk_TM (LC_MESSAGES): Likewise.
26495         * localedata/locales/tn_ZA (LC_MESSAGES): Likewise.
26496         * localedata/locales/to_TO (LC_MESSAGES): Likewise.
26497         * localedata/locales/tr_TR (LC_MESSAGES): Likewise.
26498         * localedata/locales/ts_ZA (LC_MESSAGES): Likewise.
26499         * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
26500         * localedata/locales/tt_RU@iqtelif (LC_MESSAGES): Likewise.
26501         * localedata/locales/uk_UA (LC_MESSAGES): Likewise.
26502         * localedata/locales/unm_US (LC_MESSAGES): Likewise.
26503         * localedata/locales/ur_IN (LC_MESSAGES): Likewise.
26504         * localedata/locales/ur_PK (LC_MESSAGES): Likewise.
26505         * localedata/locales/uz_UZ (LC_MESSAGES): Likewise.
26506         * localedata/locales/uz_UZ@cyrillic (LC_MESSAGES): Likewise.
26507         * localedata/locales/ve_ZA (LC_MESSAGES): Likewise.
26508         * localedata/locales/vi_VN (LC_MESSAGES): Likewise.
26509         * localedata/locales/wa_BE (LC_MESSAGES): Likewise.
26510         * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
26511         * localedata/locales/xh_ZA (LC_MESSAGES): Likewise.
26512         * localedata/locales/yi_US (LC_MESSAGES): Likewise.
26513         * localedata/locales/yo_NG (LC_MESSAGES): Likewise.
26514         * localedata/locales/yue_HK (LC_MESSAGES): Likewise.
26515         * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
26516         * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
26517         * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
26518         * localedata/locales/zu_ZA (LC_MESSAGES): Likewise.
26520 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
26522         * localedata/locales/brx_IN (LC_MESSAGES): Fix yesexpr and noexpr
26523         (Use first letters of yesstr and nostr correctly instead of using
26524         full words).
26526 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
26528         * localedata/locales/ta_IN (LC_MESSAGES): Fix yesexpr and noexpr
26529         (Use first letters of yesstr and nostr correctly).
26531 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
26533         * localedata/locales/hi_IN (LC_MESSAGES): In yesexpr and noexpr,
26534         also check for the first characters of yesstr and nostr.
26535         * localedata/locales/kn_IN (LC_MESSAGES): Likewise.
26536         * localedata/locales/ks_IN@devanagari (LC_MESSAGES): Likewise.
26538 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
26540         * localedata/locales/cmn_TW (LC_MESSAGES): In yesexpr and noexpr,
26541         also check for Chinese characters.
26543 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
26545         * localedata/locales/chr_US (LC_MESSAGES): In yesexpr and noexpr,
26546         match also for the contents of yesstr and nostr. As the first letter
26547         of yesstr and nostr is equal, checking only for the first letter
26548         is not enough.
26550 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
26552         * localedata/locales/ber_DZ (LC_MESSAGES): Use copy "kab_DZ",
26553         it is the same according to  Belkacem Mohammed <belkacem77@gmail.com>.
26555 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
26557         * localedata/locales/kab_DZ (LC_IDENTIFICATION): Add e-mail
26558         of main contributor.
26560 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
26562         * localedata/locales/zh_SG (LC_MESSAGES): Use copy "zh_CN"
26563         instead of using English.
26565 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
26567         * localedata/locales/ug_CN (LC_MESSAGES): Fix noexpr and yesexpr
26568         by including the first letters of nostr and yesexpr in the regexp.
26569         Also make it more readable by using ASCII where possible.
26571 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
26573         * localedata/locales/te_IN (LC_MESSAGES): Fix noexpr by including
26574         the first letter of nostr in the regexp. It agrees with CLDR now.
26575         Also make it more readable by using ASCII where possible.
26577 2017-10-24  Mike FABIAN  <mfabian@redhat.com>
26579         * localedata/locales/km_KH (LC_MESSAGES): Fix yestr and nostr.
26580         The yesstr and nostr apparently came from CLDR. And CLDR has a bug there:
26581         these strings contain a U+17D6 (which somewhat looks like a colon)
26582         instead of a real colon to separate the full words for “yes”
26583         and “no” from the single letter responses.
26585 2017-10-24  Mike FABIAN  <mfabian@redhat.com>
26587         * localedata/locales/ka_GE (LC_MESSAGES): Fix yesexp to make
26588         it agree with CLDR (include the first letter of yesstr).
26589         Also make it more readable by using ASCII where possible.
26591 2017-10-24  Mike FABIAN  <mfabian@redhat.com>
26593         * localedata/locales/mr_IN (LC_MESSAGES): Fix yesstr and nostr
26594         and improve yesexpr and noexpr. The yesstr and nostr apparently
26595         came from CLDR. And CLDR has a bug there: these strings contain
26596         a U+0903 (which looks like a colon) instead of a real colon
26597         to separate the full words for “yes” and “no” from the single
26598         letter responses.
26600 2017-10-24  Mike FABIAN  <mfabian@redhat.com>
26602         * localedata/locales/bn_BD (LC_MESSAGES): Use only the first
26603         letters of the full yesstr and nostr in yesexpr and noexpr.
26605 2017-10-24  Mike FABIAN  <mfabian@redhat.com>
26607         * localedata/locales/an_ES (LC_MESSAGES): Add yesstr and nostr.
26608         * localedata/locales/an_ES (LC_ADDRESS): Add lang_term and lang_lib.
26609         * localedata/locales/an_ES: Make source more readable by using ASCII
26610         where possible.
26612 2017-10-24  Mike FABIAN  <mfabian@redhat.com>
26614         [BZ #20952]
26615         * localedata/locales/yuw_PG: New file.
26616         * localedata/SUPPORTED: Add yuw_PG/UTF-8.
26617         * locale/iso-639.def: Add Yau (Uruwa).
26619 2017-10-23  Wilco Dijkstra  <wdijkstr@arm.com>
26621         * malloc/malloc.c (_int_malloc): Add SINGLE_THREAD_P path.
26623 2017-10-23  Wilco Dijkstra  <wdijkstr@arm.com>
26625         * malloc/malloc.c (__libc_malloc): Add SINGLE_THREAD_P path.
26626         (__libc_realloc): Likewise.
26627         (_mid_memalign): Likewise.
26628         (__libc_calloc): Likewise.
26630 2017-10-23  Mike FABIAN  <mfabian@redhat.com>
26632         * localedata/locales/tpi_PG (LC_MESSAGES): Fix yesexpr and noexpr
26633         by adding the generic +1 and -0 as in all other locales.
26634         * localedata/locales/tpi_PG (LC_TIME): Fix some typos in the month and
26635         day names and make it more readable by using ASCII where possible.
26637 2017-10-24  Joseph Myers  <joseph@codesourcery.com>
26639         * sysdeps/x86/fpu/fix-fp-int-compare-invalid.h
26640         (FIX_COMPARE_INVALID): Define to 0 if [__GNUC_PREREQ (8, 0)].
26642 2017-10-23  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
26644         * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Use 0 instead of
26645         WNOHANG in waitpid call.
26647 2017-10-23  Siddhesh Poyarekar  <siddhesh@sourceware.org>
26649         * manual/conf.texi (_SC_LEVEL1_DCACHE_LINESIZE,
26650         _SC_LEVEL1_ICACHE_LINESIZE): Document aarch64 caveat.
26652         * manual/conf.texi (_SC_LEVEL1_ICACHE_SIZE,
26653         _SC_LEVEL1_ICACHE_ASSOC, _SC_LEVEL1_ICACHE_LINESIZE,
26654         _SC_LEVEL1_DCACHE_SIZE, _SC_LEVEL1_DCACHE_ASSOC,
26655         _SC_LEVEL1_DCACHE_LINESIZE, _SC_LEVEL2_CACHE_SIZE,
26656         _SC_LEVEL2_CACHE_ASSOC, _SC_LEVEL2_CACHE_LINESIZE,
26657         _SC_LEVEL3_CACHE_SIZE, _SC_LEVEL3_CACHE_ASSOC,
26658         _SC_LEVEL3_CACHE_LINESIZE, _SC_LEVEL4_CACHE_SIZE,
26659         _SC_LEVEL4_CACHE_ASSOC, _SC_LEVEL4_CACHE_LINESIZE): New
26660         variables.
26662 2017-10-23  Michael Collison  <michael.collison@arm.com>
26664         * sysdeps/aarch64/fpu/e_sqrt.c (ieee754_sqrt): Replace asm statements
26665         with __builtin_sqrt.
26666         * sysdeps/aarch64/fpu/e_sqrtf.c (ieee754_sqrtf): Replace asm statements
26667         with __builtin_sqrtf.
26668         * sysdeps/aarch64/fpu/s_ceil.c (__ceil): Replace asm statements
26669         with __builtin_ceil.
26670         * sysdeps/aarch64/fpu/s_ceilf.c (__ceilf): Replace asm statements
26671         with __builtin_ceilf.
26672         * sysdeps/aarch64/fpu/s_floor.c (__floor): Replace asm statements
26673         with __builtin_floor.
26674         * sysdeps/aarch64/fpu/s_floorf.c (__floorf): Replace asm statements
26675         with __builtin_floorf.
26676         * sysdeps/aarch64/fpu/s_fma.c (__fma): Replace asm statements
26677         with __builtin_fma.
26678         * sysdeps/aarch64/fpu/s_fmaf.c (__fmaf): Replace asm statements
26679         with __builtin_fmaf.
26680         * sysdeps/aarch64/fpu/s_fmax.c (__fmax): Replace asm statements
26681         with __builtin_fmax.
26682         * sysdeps/aarch64/fpu/s_fmaxf.c (__fmaxf): Replace asm statements
26683         with __builtin_fmaxf.
26684         * sysdeps/aarch64/fpu/s_fmin.c (__fmin): Replace asm statements
26685         with __builtin_fmin.
26686         * sysdeps/aarch64/fpu/s_fminf.c (__fminf): Replace asm statements
26687         with __builtin_fminf.
26688         * sysdeps/aarch64/fpu/s_frint.c: Delete file.
26689         * sysdeps/aarch64/fpu/s_frintf.c: Delete file.
26690         * sysdeps/aarch64/fpu/s_llrint.c (__llrint): Replace asm statements
26691         with builtin_rint and conversion to int.
26692         * sysdeps/aarch64/fpu/s_llrintf.c (__llrintf): Likewise.
26693         * sysdeps/aarch64/fpu/s_llround.c (__llround): Replace asm statements
26694         with builtin_llround.
26695         * sysdeps/aarch64/fpu/s_llroundf.c (__llroundf): Likewise.
26696         * sysdeps/aarch64/fpu/s_lrint.c (__lrint): Replace asm statements
26697         with builtin_rint and conversion to long int.
26698         * sysdeps/aarch64/fpu/s_lrintf.c (__lrintf): Likewise.
26699         * sysdeps/aarch64/fpu/s_lround.c (__lround): Replace asm statements
26700         with builtin_lround.
26701         * sysdeps/aarch64/fpu/s_lroundf.c (__lroundf): Replace asm statements
26702         with builtin_lroundf.
26703         * sysdeps/aarch64/fpu/s_nearbyint.c (__nearbyint): Replace asm
26704         statements with __builtin_nearbyint.
26705         * sysdeps/aarch64/fpu/s_nearbyintf.c (__nearbyintf): Replace asm
26706         statements with __builtin_nearbyintf.
26707         * sysdeps/aarch64/fpu/s_rint.c (__rint): Replace asm statements
26708         with __builtin_rint.
26709         * sysdeps/aarch64/fpu/s_rintf.c (__rintf): Replace asm statements
26710         with __builtin_rintf.
26711         * sysdeps/aarch64/fpu/s_round.c (__round): Replace asm statements
26712         with __builtin_round.
26713         * sysdeps/aarch64/fpu/s_roundf.c (__roundf): Replace asm statements
26714         with __builtin_roundf.
26715         * sysdeps/aarch64/fpu/s_trunc.c (__trunc): Replace asm statements
26716         with __builtin_trunc.
26717         * sysdeps/aarch64/fpu/s_truncf.c (__truncf): Replace asm statements
26718         with __builtin_truncf.
26719         * sysdeps/aarch64/fpu/Makefile: Build e_sqrt[f].c with -fno-math-errno,
26720         and s_l[l]round[f].c too.
26722 2017-10-23  Alan Modra  <amodra@gmail.com>
26724         * sysdeps/powerpc/powerpc64/power8/strncpy.S: Move LR cfi.
26725         Adjust stack after restoring regs.  Add missing LR cfi_restore.
26727 2017-10-23  Alan Modra  <amodra@gmail.com>
26729         * sysdeps/powerpc/powerpc64/power7/strncpy.S: Decrease FRAMESIZE.
26730         Move LR save and frame setup/teardown and LR restore to
26731         immediately around memset call.  Provide cfi.
26733 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
26735         * sysdeps/i386/fpu/e_powf.S: Removed.
26736         * sysdeps/i386/fpu/e_powf_log2_data.c: Likewise.
26737         * sysdeps/i386/fpu/w_powf.c: Likewise.
26738         * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_powf.c.
26739         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
26740         * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
26741         Add e_powf-sse2.
26742         (CFLAGS-e_powf-sse2.c): New.
26743         * sysdeps/i386/i686/fpu/multiarch/e_powf-sse2.c: New file.
26744         * sysdeps/i386/i686/fpu/multiarch/e_powf.c: Likewise.
26746 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
26748         * sysdeps/i386/fpu/e_log2f.S: Removed.
26749         * sysdeps/i386/fpu/e_log2f_data.c: Likewise.
26750         * sysdeps/i386/fpu/w_log2f.c: Likewise.
26751         * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_log2f.c.
26752         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
26753         * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
26754         Add e_log2f-sse2.
26755         (CFLAGS-e_log2f-sse2.c): New.
26756         * sysdeps/i386/i686/fpu/multiarch/e_log2f-sse2.c: New file.
26757         * sysdeps/i386/i686/fpu/multiarch/e_log2f.c: Likewise.
26759 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
26761         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
26762         Add e_powf-fma.
26763         (CFLAGS-e_powf-fma.c): New.
26764         * sysdeps/x86_64/fpu/multiarch/e_powf-fma.c: New file.
26765         * sysdeps/x86_64/fpu/multiarch/e_powf.c: Likewise.
26767 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
26769         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
26770         Add e_log2f-fma.
26771         (CFLAGS-e_log2f-fma.c): New.
26772         * sysdeps/x86_64/fpu/multiarch/e_log2f-fma.c: New file.
26773         * sysdeps/x86_64/fpu/multiarch/e_log2f.c: Likewise.
26775 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
26777         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
26778         Add e_logf-fma.
26779         (CFLAGS-e_logf-fma.c): New.
26780         * sysdeps/x86_64/fpu/multiarch/e_logf-fma.c: New file.
26781         * sysdeps/x86_64/fpu/multiarch/e_logf.c: Likewise.
26783 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
26785         * sysdeps/i386/fpu/e_logf.S: Removed.
26786         * sysdeps/i386/fpu/e_logf_data.c: Likewise.
26787         * sysdeps/i386/fpu/w_logf.c: Likewise.
26788         * sysdeps/i386/i686/fpu/e_logf.S: Likewise.
26789         * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_logf.c.
26790         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
26791         * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
26792         Add e_logf-sse2.
26793         (CFLAGS-e_logf-sse2.c): New.
26794         * sysdeps/i386/i686/fpu/multiarch/e_logf-sse2.c: New file.
26795         * sysdeps/i386/i686/fpu/multiarch/e_logf.c: Likewise.
26797 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
26799         * sysdeps/i386/fpu/e_exp2f.S: Removed.
26800         * sysdeps/i386/fpu/w_exp2f.c: Likewise.
26801         * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_exp2f.c.
26802         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
26803         * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
26804         Add e_exp2f-sse2.
26805         (CFLAGS-e_exp2f-sse2.c): New.
26806         * sysdeps/i386/i686/fpu/multiarch/e_exp2f-sse2.c: New file.
26807         * sysdeps/i386/i686/fpu/multiarch/e_exp2f.c: Likewise.
26809 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
26811         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
26812         Add e_exp2f-fma.
26813         (CFLAGS-e_exp2f-fma.c): New.
26814         * sysdeps/x86_64/fpu/multiarch/e_exp2f-fma.c: New file.
26815         * sysdeps/x86_64/fpu/multiarch/e_exp2f.c: Likewise.
26817 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
26819         * sysdeps/i386/fpu/e_exp2f_data.c: Removed.
26820         * sysdeps/i386/fpu/e_expf.S: Likewise.
26821         * sysdeps/i386/fpu/math_errf.c: Likewise.
26822         * sysdeps/i386/fpu/w_expf.c: Likewise.
26823         * sysdeps/i386/i686/fpu/multiarch/e_expf-ia32.S: Likewise.
26824         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
26825         * sysdeps/i386/i686/fpu/multiarch/w_expf.c: Likewise.
26826         * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_expf.c.
26827         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
26828         * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
26829         Remove e_expf-ia32.
26830         (CFLAGS-e_expf-sse2.c): New.
26831         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.c: New file.
26832         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Rewritten.
26834 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
26836         * sysdeps/x86_64/fpu/e_expf.S: Removed.
26837         * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: Likewise.
26838         * sysdeps/x86_64/fpu/w_expf.c: Likewise.
26839         * sysdeps/x86_64/fpu/libm-test-ulps: Updated for generic
26840         e_expf.c.
26841         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_expf-fma.c):
26842         New.
26843         * sysdeps/x86_64/fpu/multiarch/e_expf-fma.c: New file.
26844         * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
26845         Renamed to ...
26846         (__redirect_expf): This.
26847         (SYMBOL_NAME): Changed to expf.
26848         (__ieee754_expf): Renamed to ...
26849         (__expf): This.
26850         (__GI___expf): This.
26851         (__ieee754_expf): Add strong_alias.
26852         (__expf_finite): Likewise.
26853         (__expf): New.
26854         Include <sysdeps/ieee754/flt-32/e_expf.c>.
26856 2017-10-22  Paul Eggert  <eggert@cs.ucla.edu>
26858         [BZ #22332]
26859         * posix/glob.c (__glob): Fix buffer overflow during GLOB_TILDE
26860         unescaping.
26862 2017-10-21  Florian Weimer  <fweimer@redhat.com>
26864         * posix/Makefile (tests): Add tst-glob-tilde.
26865         (tests-special): Add tst-glob-tilde-mem.out
26866         (tst-glob-tilde-ENV): Set MALLOC_TRACE.
26867         (tst-glob-tilde-mem.out): Add mtrace check.
26868         * posix/tst-glob-tilde.c: New file.
26870 2017-10-20  Joseph Myers  <joseph@codesourcery.com>
26872         * bits/floatn-common.h: New file.
26873         * math/Makefile (headers): Add bits/floatn-common.h.
26874         * bits/floatn.h: Include <bits/floatn-common.h>.
26875         * sysdeps/ia64/bits/floatn.h: Likewise.
26876         * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
26877         * sysdeps/mips/ieee754/bits/floatn.h: Likewise.
26878         * sysdeps/powerpc/bits/floatn.h: Likewise.
26879         * sysdeps/x86/bits/floatn.h: Likewise.
26881 2017-10-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
26883         * configure.ac (libc_cv_gcc_incompatbile_alias): New define:
26884         indicates whether compiler emits an warning for alias for
26885         functions with incompatible types.
26887         [BZ #22273]
26888         * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Handle the case where
26889         the auxiliary process is terminated by a signal before calling _exit
26890         or execve.
26892 2017-10-20  H.J. Lu  <hongjiu.lu@intel.com>
26894         [BZ #21265]
26895         * sysdeps/x86/cpu-features-offsets.sym (XSAVE_STATE_SIZE_OFFSET):
26896         New.
26897         * sysdeps/x86/cpu-features.c: Include <libc-pointer-arith.h>.
26898         (get_common_indeces): Set xsave_state_size, xsave_state_full_size
26899         and bit_arch_XSAVEC_Usable if needed.
26900         (init_cpu_features): Remove bit_arch_Use_dl_runtime_resolve_slow
26901         and bit_arch_Use_dl_runtime_resolve_opt.
26902         * sysdeps/x86/cpu-features.h (bit_arch_Use_dl_runtime_resolve_opt):
26903         Removed.
26904         (bit_arch_Use_dl_runtime_resolve_slow): Likewise.
26905         (bit_arch_Prefer_No_AVX512): Updated.
26906         (bit_arch_MathVec_Prefer_No_AVX512): Likewise.
26907         (bit_arch_XSAVEC_Usable): New.
26908         (STATE_SAVE_OFFSET): Likewise.
26909         (STATE_SAVE_MASK): Likewise.
26910         [__ASSEMBLER__]: Include <cpu-features-offsets.h>.
26911         (cpu_features): Add xsave_state_size and xsave_state_full_size.
26912         (index_arch_Use_dl_runtime_resolve_opt): Removed.
26913         (index_arch_Use_dl_runtime_resolve_slow): Likewise.
26914         (index_arch_XSAVEC_Usable): New.
26915         * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
26916         Support XSAVEC_Usable.  Remove Use_dl_runtime_resolve_slow.
26917         * sysdeps/x86_64/Makefile (tst-x86_64-1-ENV): New if tunables
26918         is enabled.
26919         * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup):
26920         Replace _dl_runtime_resolve_sse, _dl_runtime_resolve_avx,
26921         _dl_runtime_resolve_avx_slow, _dl_runtime_resolve_avx_opt,
26922         _dl_runtime_resolve_avx512 and _dl_runtime_resolve_avx512_opt
26923         with _dl_runtime_resolve_fxsave, _dl_runtime_resolve_xsave and
26924         _dl_runtime_resolve_xsavec.
26925         * sysdeps/x86_64/dl-trampoline.S (DL_RUNTIME_UNALIGNED_VEC_SIZE):
26926         Removed.
26927         (DL_RUNTIME_RESOLVE_REALIGN_STACK): Check STATE_SAVE_ALIGNMENT
26928         instead of VEC_SIZE.
26929         (REGISTER_SAVE_BND0): Removed.
26930         (REGISTER_SAVE_BND1): Likewise.
26931         (REGISTER_SAVE_BND3): Likewise.
26932         (REGISTER_SAVE_RAX): Always defined to 0.
26933         (VMOV): Removed.
26934         (_dl_runtime_resolve_avx): Likewise.
26935         (_dl_runtime_resolve_avx_slow): Likewise.
26936         (_dl_runtime_resolve_avx_opt): Likewise.
26937         (_dl_runtime_resolve_avx512): Likewise.
26938         (_dl_runtime_resolve_avx512_opt): Likewise.
26939         (_dl_runtime_resolve_sse): Likewise.
26940         (_dl_runtime_resolve_sse_vex): Likewise.
26941         (USE_FXSAVE): New.
26942         (_dl_runtime_resolve_fxsave): Likewise.
26943         (USE_XSAVE): Likewise.
26944         (_dl_runtime_resolve_xsave): Likewise.
26945         (USE_XSAVEC): Likewise.
26946         (_dl_runtime_resolve_xsavec): Likewise.
26947         * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve_avx512):
26948         Removed.
26949         (_dl_runtime_resolve_avx512_opt): Likewise.
26950         (_dl_runtime_resolve_avx): Likewise.
26951         (_dl_runtime_resolve_avx_opt): Likewise.
26952         (_dl_runtime_resolve_sse): Likewise.
26953         (_dl_runtime_resolve_sse_vex): Likewise.
26954         (_dl_runtime_resolve_fxsave): New.
26955         (_dl_runtime_resolve_xsave): Likewise.
26956         (_dl_runtime_resolve_xsavec): Likewise.
26958 2017-10-20  Paul Eggert  <eggert@cs.ucla.edu>
26960         [BZ #22320]
26961         CVE-2017-15670
26962         * posix/glob.c (__glob): Fix one-byte overflow.
26964 2017-10-20  Wilco Dijkstra  <wdijkstr@arm.com>
26966         * malloc/malloc.c (sysdep-cancel.h): Add include.
26968 2017-10-20  Wilco Dijkstra  <wdijkstr@arm.com>
26970         * malloc/malloc.c (_int_free): Add SINGLE_THREAD_P fast paths.
26972 2017-10-20  Will Hawkins  <hawkinsw@borlaugic.com>
26974         * resolv/Makefile [$(build-shared)$(have-thread-library) == yesyes]
26975         (tests): Remove $(objpfx)ga_test depdendency.
26976         * resolv/ga_test.c: Remove file.
26978 2017-10-20  Mike FABIAN  <mfabian@redhat.com>
26980         [BZ #18812]
26981         * localedata/SUPPORTED: Add kab_DZ/UTF-8.
26982         * localedata/locales/kab_DZ: New file.
26984 2017-10-20  H.J. Lu  <hongjiu.lu@intel.com>
26986         * sysdeps/m68k/dl-machine.h (elf_machine_load_address): Use
26987         _dl_relocate_static_pie instead of _dl_start to compute load
26988         address in static PIE.
26990 2017-10-20  H.J. Lu  <hongjiu.lu@intel.com>
26992         * sysdeps/m68k/start.S (_start): Check PIC instead of SHARED.
26994 2017-10-20  Mike FABIAN  <mfabian@redhat.com>
26996         [BZ #13605]
26997         * localedata/SUPPORTED: Add shn_MM/UTF-8.
26998         * localedata/locales/shn_MM: New file.
27000 2017-10-20  Florian Weimer  <fweimer@redhat.com>
27002         [BZ #22321]
27003         sysconf: Fix missing definition of UIO_MAXIOV on Linux.
27004         * sysdeps/posix/sysconf.c: Include <sys/uio.h>.
27005         * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-sysconf-iov_max.
27006         (tst-sysconf-iov_max): Link with tst-sysconf-iov_max-uapi.o.
27007         * sysdeps/unix/sysv/linux/tst-sysconf-iov_max.c: New file.
27008         * sysdeps/unix/sysv/linux/tst-sysconf-iov_max-uapi.c: Likewise.
27010 2017-10-19  H.J. Lu  <hongjiu.lu@intel.com>
27012         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
27014 2017-10-19  Joseph Myers  <joseph@codesourcery.com>
27016         * sysdeps/mips/ieee754/bits/floatn.h: New file.
27018         [BZ #22322]
27019         * sysdeps/mips/bits/long-double.h: Move to ....
27020         * sysdeps/mips/ieee754/bits/long-double.h: ... here.
27022 2017-10-19  Wilco Dijkstra  <wdijkstr@arm.com>
27024         * malloc/malloc.c (_int_free): Fix deadlock bug in consistency check.
27026 2017-10-19  Valery Reznic  <valery_reznic@yahoo.com>
27027             H.J. Lu  <hongjiu.lu@intel.com>
27029         [BZ #22299]
27030         * sysdeps/x86/cpu-features.c (init_cpu_features): Don't set
27031         GLRO(dl_platform) to NULL.
27032         * sysdeps/x86_64/Makefile (tests): Add tst-platform-1.
27033         (modules-names): Add tst-platformmod-1 and
27034         x86_64/tst-platformmod-2.
27035         (CFLAGS-tst-platform-1.c): New.
27036         (CFLAGS-tst-platformmod-1.c): Likewise.
27037         (CFLAGS-tst-platformmod-2.c): Likewise.
27038         (LDFLAGS-tst-platformmod-2.so): Likewise.
27039         ($(objpfx)tst-platform-1): Likewise.
27040         ($(objpfx)tst-platform-1.out): Likewise.
27041         (tst-platform-1-ENV): Likewise.
27042         ($(objpfx)x86_64/tst-platformmod-2.os): Likewise.
27043         * sysdeps/x86_64/tst-platform-1.c: New file.
27044         * sysdeps/x86_64/tst-platformmod-1.c: Likewise.
27045         * sysdeps/x86_64/tst-platformmod-2.c: Likewise.
27047 2017-10-19  Mike FABIAN  <mfabian@redhat.com>
27049         [BZ #13994]
27050         * locale/iso-639.def: Add Karbi.
27051         * localedata/SUPPORTED: Add mjw_IN/UTF-8.
27052         * localedata/locales/mjw_IN: New file.
27054 2017-10-18  Joseph Myers  <joseph@codesourcery.com>
27056         * sysdeps/ieee754/ldbl-128/Makeconfig: New file.
27057         * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
27058         * sysdeps/ieee754/ldbl-128/float128-abi.h: Likewise.
27059         * sysdeps/generic/libm-alias-ldouble.h: Include <bits/floatn.h>.
27060         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
27061         (libm_alias_ldouble_other_r): Also create _Float128 alias.
27062         * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Include
27063         <bits/floatn.h>.
27064         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
27065         (libm_alias_ldouble_other_r): Also create _Float128 alias.
27066         * manual/math.texi (Mathematics): Document additional architecture
27067         support for _Float128.
27068         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
27069         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
27070         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
27071         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
27072         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
27073         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
27074         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
27075         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
27076         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
27077         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
27078         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
27079         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
27080         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
27081         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
27082         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
27084 2017-10-18  Renlin Li  <renlin.li@arm.com>
27086         * sysdeps/aarch64/dl-machine.h (elf_machine_load_address): Use
27087         _DYNAMIC symbol to calculate load address.
27089 2017-10-18  Paul A. Clarke  <pc@us.ibm.com>
27091         * sysdeps/powerpc/fpu/fenv_private.h (_FPU_MASK_TRAPS_RN):
27092         (_FPU_MASK_FRAC_INEX_RET_CC): Fix masks to more properly handle
27093         summary bits.
27094         (_FPU_MASK_RN): Expand _FPU_MASK_RN to 64bit hex.
27095         (_FPU_MASK_NOT_RN_NI): Treat bit 52 (left-to-right) as reserved.
27097 2017-10-18  Mike FABIAN  <mfabian@redhat.com>
27099         [BZ #16777]
27100         * localedata/locales/pl_PL (LC_MONETARY): Use U+202F as mon_thousands_sep
27101         and improve readability by using more ASCII.
27102         * localedata/locales/pl_PL (LC_NUMERIC): Use U+202F as thousands_sep
27103         and improve readability by using more ASCII.
27105 2017-10-18  Wilco Dijkstra  <wdijkstr@arm.com>
27107         * malloc/malloc.c (malloc_state): Use int for have_fastchunks since
27108         not all targets support atomics on bool.
27110 2017-10-17  Joseph Myers  <joseph@codesourcery.com>
27112         * include/float.h [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 &&
27113         __GLIBC_USE (IEC_60559_TYPES_EXT)] (FLT128_MAX): Define using
27114         __f128.
27115         [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
27116         (IEC_60559_TYPES_EXT)] (FLT128_EPSILON): Likewise.
27117         [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
27118         (IEC_60559_TYPES_EXT)] (FLT128_MIN): Likewise.
27119         [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
27120         (IEC_60559_TYPES_EXT)] (FLT128_TRUE_MIN): Likewise.
27122 2017-10-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
27124         * bits/uio-ext.h (RWF_HIPRI, RWF_DSYNC, RWF_SYNC, RWF_NOWAIT): New
27125         defines.
27127 2017-10-17  Wilco Dijkstra  <wdijkstr@arm.com>
27129         [BZ #22159]
27130         * malloc/arena.c (ptmalloc_init): Call malloc_init_state.
27131         * malloc/malloc.c (do_check_free_chunk): Fix build bug.
27132         (do_check_remalloced_chunk): Fix build bug.
27133         (do_check_malloc_state): Add assert that checks arena->top.
27134         (malloc_consolidate): Remove initialization.
27135         (int_mallinfo): Remove call to malloc_consolidate.
27136         (__libc_mallopt): Clarify why malloc_consolidate is needed.
27138 2017-10-17  Wilco Dijkstra  <wdijkstr@arm.com>
27140         * malloc/malloc.c (FASTCHUNKS_BIT): Remove.
27141         (have_fastchunks): Remove.
27142         (clear_fastchunks): Remove.
27143         (set_fastchunks): Remove.
27144         (malloc_state): Add have_fastchunks.
27145         (malloc_init_state): Use have_fastchunks.
27146         (do_check_malloc_state): Remove incorrect invariant checks.
27147         (_int_malloc): Use have_fastchunks.
27148         (_int_free): Likewise.
27149         (malloc_consolidate): Likewise.
27151 2017-10-17  Wilco Dijkstra  <wdijkstr@arm.com>
27153         * malloc/malloc.c (tcache_put): Inline.
27154         (tcache_get): Inline.
27156 2017-10-17  Jordi Mallach  <jordi@gnu.org>
27158         Aurelien Jarno  <aurelien@aurel32.net>
27159         [BZ #2522]
27160         * localedata/locales/ca_ES@valencia: New file.
27161         * localedata/SUPPORTED: Add ca_ES@valencia/UTF-8.
27163 2017-10-17  Romain Naour  <romain.naour@gmail.com>  (tiny change)
27165         [BZ #22296]
27166         * math/math.h: Let signbit use the builtin in C++ mode with gcc
27167         < 6.x
27169 2017-10-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
27171         * scripts/build-many-glibcs.py (Context.add_all_configs):
27172         Add arm-linux-gnueabihf multiarch extra_glibcs.
27174         * sysdeps/generic/ifunc-init.h: New file.
27175         * sysdeps/x86/init-arch.h: Use generic ifunc-init.h.
27177 2017-10-17  Mike FABIAN  <mfabian@redhat.com>
27179         [BZ #22019]
27180         * localedata/locales/el_GR: Set n_cs_precedes to 0.
27181         * localedata/locales/el_CY: copy "el_GR" because it is identical.
27182         * stdlib/tst-strfmon_l.c: adapt test case.
27184 2017-10-16  Joseph Myers  <joseph@codesourcery.com>
27186         * sysdeps/generic/float128-abi.h: New file.
27187         * sysdeps/ieee754/float128/Versions (FLOAT128_VERSION): Move
27188         non-__prefixed symbols to ....
27189         * math/Versions: ... here.  Include <float128-abi.h>.
27190         * stdlib/Versions ... and here.  Include <float128-abi.h>
27192 2017-10-16  Florian Weimer  <fweimer@redhat.com>
27194         * version.h (VERSION): Switch to ".9000" as the development
27195         version suffix.
27197 2017-10-16  Florian Weimer  <fweimer@redhat.com>
27199         [BZ #22050]
27200         * malloc/mcheck-init.c (__malloc_initialize_hook): Use
27201         compat_symbol_reference to access non-default version.
27203 2017-10-16  Florian Weimer  <fweimer@redhat.com>
27205         * malloc/Makefile (others-extras): Set to mcheck-init.o.
27207 2017-10-16  Carlos O'Donell  <carlos@redhat.com>
27209         * include/shlib-compat.h (compat_symbol_reference): Update
27210         comment.
27212 2017-10-16  Joseph Myers  <joseph@codesourcery.com>
27214         * math/Makefile (test-types): Add
27215         $(type-float128-$(float128-alias-fcts)).
27216         * math/test-float128.h (TYPE_STR): Define conditional on
27217         [FLT128_MANT_DIG == LDBL_MANT_DIG].
27218         (ULP_IDX): Likewise.
27219         (ULP_I_IDX): Likewise.
27221         * stdlib/strtold.c: Include <bits/floatn.h>
27222         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128): Define
27223         and later undefine as macro.  Define as weak alias if
27224         [!USE_WIDE_CHAR].
27225         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128): Define
27226         and later undefine as macro.  Define as weak alias if
27227         [USE_WIDE_CHAR].
27228         * sysdeps/ieee754/ldbl-128/strtold_l.c [__HAVE_FLOAT128 &&
27229         !__HAVE_DISTINCT_FLOAT128] (strtof128_l): Define and later
27230         undefine as macro.  Define as weak alias if [!USE_WIDE_CHAR].
27231         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
27232         Define and later undefine as macro.  Define as weak alias if
27233         [USE_WIDE_CHAR].
27234         * sysdeps/ieee754/ldbl-64-128/strtold_l.c: Include
27235         <bits/floatn.h>.
27236         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128_l):
27237         Define and later undefine as macro.  Define as weak alias if
27238         [!USE_WIDE_CHAR].
27239         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
27240         Define and later undefine as macro.  Define as weak alias if
27241         [USE_WIDE_CHAR].
27243 2017-10-15  Carlos O'Donell  <carlos@redhat.com>
27245         * localedata/collate-test.c (allocate_arrays): Don't use \n in
27246         record_verbose messages.
27248 2017-10-15  H.J. Lu  <hongjiu.lu@intel.com>
27250         [BZ #22052]
27251         * malloc/hooks.c (realloc_check): Use DIAG_IGNORE_NEEDS_COMMENT
27252         to silence -O3 -Wall warning with GCC 7.
27254 2017-10-14  H.J. Lu  <hongjiu.lu@intel.com>
27256         * Makeconfig (+link-static-before-libc): Use the first of
27257         $(CRT-$(@F)) and $(csu-objpfx)$(static-start-installed-name).
27258         * gmon/Makefile (tests): Add tst-gmon-static.
27259         (tests-static): Likewise.
27260         (CFLAGS-tst-gmon-static.c): New.
27261         (CRT-tst-gmon-static): Likewise.
27262         (DEFAULT-LDFLAGS-tst-gmon-static): Likewise.
27263         (tst-gmon-static-ENV): Likewise.
27264         (tests-special): Likewise.
27265         ($(objpfx)tst-gmon-static.out): Likewise.
27266         (clean-tst-gmon-static-data): Likewise.
27267         ($(objpfx)tst-gmon-static-gprof.out): Likewise.
27268         * gmon/tst-gmon-static-gprof.sh: New file.
27269         * gmon/tst-gmon-static.c: Likewise.
27271 2017-10-13  Carlos O'Donell  <carlos@redhat.com>
27273         [BZ #22295]
27274         * locale/programs/linereader.c (get_string): Don't warn on
27275         non-symbolic character.
27277         [BZ #22294]
27278         * locale/programs/ld-monetary.c (monetary_finish): Allow ""
27279         int_curr_symbol.
27281         [BZ #22292]
27282         * locale/programs/record-status.h: New file
27283         * locale/programs/locale.c: Add comment.
27284         * locale/programs/charmap-dir.c: Don't include error.h.
27285         (charmap_opendir): Use record_error.
27286         * locale/programs/charmap.c: Don't include error.h.
27287         (charmap_read): Use record_error, and record_warning.
27288         (parse_charmap): Likewise.
27289         * locale/programs/ld-address.c: Don't include error.h.
27290         (address_finish): Use record_error, and record_warning.
27291         * locale/programs/ld-collate.c: Don't include error.h.
27292         (collate_finish): Use record_error, and record_error_at_line.
27293         * locale/programs/ld-ctype.c (ctype_finish): Use record_error.
27294         (ctype_class_new): Likewise.
27295         (ctype_map_new): Likewise.
27296         (set_one_default): Likewise.
27297         (set_class_defaults): Likewise.
27298         (translit_flatten): Likewise.
27299         (allocate_arrays): Use record_error, and record_verbose.
27300         * locale/programs/ld-identification.c: Don't include error.h.
27301         (indentation_finish): Use record_error and record_warning.
27302         * locale/programs/ld-measurement.c: Don't include error.h.
27303         (measurement_finish): Use record_error.
27304         * locale/programs/ld-messages.c
27305         (message_finish): Likewise.
27306         * locale/programs/ld-monetary.c
27307         (monetary_finish): Likewise.
27308         * locale/programs/ld-name.c (name_finish): Use record_error
27309         and record_warning.
27310         * locale/programs/ld-numeric.c
27311         (numeric_finish): Use record_error.
27312         * locale/programs/ld-paper.c: Don't include error.h.
27313         (paper_finish): Use record_error.
27314         * locale/programs/ld-telephone.c: Don't include error.h.
27315         (telephone_finish): Use record_error.
27316         * locale/programs/ld-time.c (time_finish): Likewise.
27317         * locale/programs/linereader.h (lr_error): Make inline func.
27318         * locale/programs/localedef.c: Define recorded_warning_count,
27319         and recorded_error_count.
27320         (main): Use record_error. Use recorded_error_count and
27321         recorded_warning_count to issue correct error returns.
27322         (add_to_readlist): Use record_error.
27323         (find_locale): Likewise.
27324         (load_locale): Likewise.
27325         * locale/programs/localedef.h: Remove be_quiet
27326         and WITH_CUR_LOCALE.
27327         * locale/programs/locarchive.c (compare_from_file): Use
27328         record_error.
27329         * locale/programs/locfile.c (write_locale_data): Use
27330         record_error.
27331         * locale/programs/repertoire.c: Dont include error.h.
27332         (repertoire_complain): Use record_error.
27333         * localedata/tst-fmon.sh: Expect failures from localedef.
27334         * localedata/tst-locale.sh: Likewise.
27335         * localedata/gen-locale.sh: Expect failures from SHIFT_JIS.
27337         * localedata/unicode-gen/Makefile (GENERATED): Use i18n_ctype.
27338         (REPORTS): Likewise.
27339         (check): Likewise.
27340         (i18n): Rename to...
27341         (i18n_ctype): ...this.
27342         (i18n-report): Rename to...
27343         (i18n_ctype-report): ...this.
27344         * localedata/locales/i18n_ctype: Regenerate.
27345         * localedata/locales/i18n: copy i18n_ctype.
27347 2017-10-13  Joseph Myers  <joseph@codesourcery.com>
27349         * stdlib/strfroml.c: Include <bits/floatn.h>.
27350         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strfromf128):
27351         Define before include of <stdlib.h> and undefine afterwards, then
27352         define as weak alias.
27354         * sysdeps/ieee754/ldbl-64-128/s_nextafterl.c (weak_alias):
27355         Undefine and restore default definition.  Use
27356         libm_alias_ldouble_other.
27358 2017-10-13  Peter Zelezny  <peter.zelezny@dektech.com.au>
27360         [BZ #22153]
27361         * nptl/allocatestack.c (__nptl_setxid_error): Preserve error code
27362         in coredumps.
27364 2017-10-13  James Clarke  <jrtc27@jrtc27.com>
27366         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
27367         Assign sym_map to be map for local symbols, as TLS relocations
27368         use sym_map to determine whether the symbol is defined and to
27369         extract the TLS information.
27370         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
27371         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
27373 2017-10-13  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
27375         [BZ #22189]
27376         * sysdeps/powerpc/fpu/math_private.h (math_opt_barrier):
27377         (math_force_eval): Add powerpc version.
27379         [BZ #22142]
27380         * stdio-common/tst-printf.c (fp_test): Add tests for DBL_MAX and
27381         -DBL_MAX.
27382         (do_test): Likewise.
27383         * stdio-common/tst-printf.sh: Likewise.
27384         * sysdeps/powerpc/powerpc64/power7/add_n.S: Invert the initial
27385         ifdef clause in order to set the carry bit right.  Replace r0 by
27386         0 without changing the behavior.
27388 2017-10-13  Joseph Myers  <joseph@codesourcery.com>
27390         * sysdeps/sparc/sparc32/fpu/s_fabsl.c: Include
27391         <libm-alias-ldouble.h>.
27392         (fabsl): Define using libm_alias_ldouble.
27393         * sysdeps/sparc/sparc64/fpu/s_fabsl.c: Include
27394         <libm-alias-ldouble.h>.
27395         (fabsl): Define using libm_alias_ldouble.
27397         * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]:
27398         Remove conditional code.
27400         * sysdeps/ieee754/ldbl-opt/s_clog10l.c (__clog10l__internal):
27401         Rename to __clog10_internal_l.
27402         (__clog10_internal_l): Define aliases using
27403         libm_alias_ldouble_other instead of using libm_alias_ldouble_other
27404         with __clog10.
27406 2017-10-13  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
27408         * benchtests/Makefile (bench-math):  Add sinf, cosf and sincosf.
27409         * benchtests/sincosf-inputs: New file.
27410         * benchtests/cosf-inputs: New file.
27411         * benchtests/sinf-inputs: New file.
27413 2017-10-12  Szabolcs Nagy  <szabolcs.nagy@arm.com>
27415         * posix/tst-spawn.c (do_test): Wait for both children.
27417 2017-10-12  H.J. Lu  <hongjiu.lu@intel.com>
27419         [BZ #22284]
27420         * gmon/Makefile [$(have-fpie)$(build-shared) == yesyes] (tests,
27421         tests-pie): Add tst-gmon-pie.
27422         (CFLAGS-tst-gmon-pie.c): New.
27423         (CRT-tst-gmon-pie): Likewise.
27424         (tst-gmon-pie-ENV): Likewise.
27425         [$(have-fpie)$(build-shared) == yesyes] (tests-special): Likewise.
27426         ($(objpfx)tst-gmon-pie.out): Likewise.
27427         (clean-tst-gmon-pie-data): Likewise.
27428         ($(objpfx)tst-gmon-pie-gprof.out): Likewise.
27429         * gmon/gmon.c [PIC]: Include <link.h>.
27430         [PIC] (callback): New function.
27431         (write_hist): Add an argument for load address.  Subtract load
27432         address from PCs.
27433         (write_call_graph): Likewise.
27434         (write_gmon): Call __dl_iterate_phdr to get load address, pass
27435         it to write_hist and write_call_graph.
27436         * gmon/tst-gmon-pie.c: New file.
27438 2017-10-11  Joseph Myers  <joseph@codesourcery.com>
27440         * math/Makefile (test-types-basic): New variable.
27441         (test-types): Likewise.
27442         (libm-test-support): Use $(test-types) instead of $(types).
27443         (libm-tests-base-normal): Likewise.
27444         (libm-tests-base-finite): Likewise.
27445         (libm-tests-base-inline): Likewise.
27446         (generated): Likewise.
27447         ($(objpfx)libm-test-support-$(t).c): Likewise.
27448         (libm-tests-for-type iterator): Likewise.
27449         (libm-test-support iterator): Likewise.
27450         * math/libm-test-support.c (ulp_i_idx): Use ULP_I_IDX.
27451         (ulp_idx): Use ULP_IDX.
27452         * math/test-ldouble.h: Include <float.h>.
27453         (TYPE_STR): Define conditional on [LDBL_MANT_DIG == DBL_MANT_DIG].
27454         (ULP_IDX): New macro.
27455         (ULP_I_IDX): Likewise.
27456         * math/test-double.h (ULP_IDX): Likewise.
27457         (ULP_I_IDX): Likewise.
27458         * math/test-float.h (ULP_IDX): Likewise.
27459         (ULP_I_IDX): Likewise.
27460         * math/test-float128.h (ULP_IDX): Likewise.
27461         (ULP_I_IDX): Likewise.
27463 2017-10-11  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
27465         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Remove file.
27466         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
27467         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
27468         * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h: Likewise.
27469         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
27470         * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h: Likewise.
27471         * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: Likewise.
27472         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
27473         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
27474         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
27475         * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: Likewise.
27476         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
27477         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
27478         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
27479         (SINGLE_THREAD_BY_GLOBAL): Define.
27480         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
27481         Likewise.
27482         * sysdeps/unix/sysv/linux/alpha/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
27483         Likewise.
27484         * sysdeps/unix/sysv/linux/arm/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
27485         Likewise.
27486         * sysdeps/unix/sysv/linux/hppa/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
27487         Likewise.
27488         * sysdeps/unix/sysv/linux/microblaze/sysdep.h
27489         (SINGLE_THREAD_BY_GLOBAL): Likewise.
27490         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
27491         Likewise.
27493 2017-10-11  Andreas Schwab  <schwab@suse.de>
27495         * nis/Makefile (aux): Remove.
27496         * nscd/Makefile (aux): Add nscd_hash.
27497         (nscd-modules): Likewise.
27498         ($(objpfx)nscd): Don't depend on libnsl.
27499         * nscd/nscd_hash.c: New file.
27500         * nscd/nscd_hash.h: Likewise.
27501         * nscd/cache.c: Include "nscd_hash.h" instead of <rpcsvc/nis.h>.
27502         (cache_search, cache_add): Use __nscd_hash instead of __nis_hash.
27503         * nscd/nscd_helper.c: Include <sys/param.h> and "nscd_hash.h"
27504         instead of <nis/rpcsvc/nis.h>.
27505         (__nscd_cache_search): Use __nscd_hash instead of __nis_hash.
27507 2017-10-11  Florian Weimer  <fweimer@redhat.com>
27509         [BZ #22078]
27510         Avoid large NSS buffers with many addresses, aliases.
27511         * nss/nss_files/files-hosts.c (gethostbyname3_multi): Rewrite
27512         using dynarrays and struct alloc_buffer.
27513         * nss/Makefile (tests): Add tst-nss-files-hosts-multi.
27514         (tst-nss-files-hosts-multi): Link with -ldl.
27515         * nss/tst-nss-files-hosts-multi.c: New file.
27517 2017-10-11  Florian Weimer  <fweimer@redhat.com>
27519         [BZ #18023]
27520         * nss/nss_files/files-hosts.c (gethostbyname3_multi): Use struct
27521         scratch_buffer.  Eliminate gotos.
27523 2017-10-11  Joseph Myers  <joseph@codesourcery.com>
27525         * sysdeps/ieee754/ldbl-opt/s_clog10l.c: Use
27526         libm_alias_ldouble_other.
27527         * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (weak_alias): Do not
27528         undefine and redefine.
27529         [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
27530         (exp10l): Do not define here.
27531         * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]
27532         (weak_alias): Undefine and redefine.
27533         [BUILD_LGAMMA]: Use libm_alias_ldouble_other.
27534         * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
27535         [LIBM_SVID_COMPAT] (weak_alias): Undefine and redefine here.
27536         [LIBM_SVID_COMPAT]: Use libm_alias_ldouble_other.
27538         * soft-fp/fmadf4.c: Include <libm-alias-double.h>.
27539         [!__fma] (fma): Define using libm_alias_double.
27540         * soft-fp/fmasf4.c: Include <libm-alias-float.h>.
27541         [!__fmaf] (fmaf): Define using libm_alias_float.
27542         * soft-fp/fmatf4.c: Include <libm-alias-ldouble.h>.
27543         (fmal): Define using libm_alias_ldouble.
27545 2017-10-10  Joseph Myers  <joseph@codesourcery.com>
27547         * sysdeps/generic/libm-alias-double.h (libm_alias_double_other_r):
27548         New macro.
27549         (libm_alias_double_other): Likewise.
27550         (libm_alias_double_r): Use libm_alias_double_other_r.
27551         * sysdeps/generic/libm-alias-float.h (libm_alias_float_other_r):
27552         New macro.
27553         (libm_alias_float_other): Likewise.
27554         (libm_alias_float_r): Use libm_alias_float_other_r.
27555         * sysdeps/generic/libm-alias-float128.h
27556         (libm_alias_float128_other_r): New macro.
27557         (libm_alias_float128_other): Likewise.
27558         (libm_alias_float128_r): Use libm_alias_float128_other_r.
27559         * sysdeps/generic/libm-alias-ldouble.h
27560         (libm_alias_ldouble_other_r): New macro.
27561         (libm_alias_ldouble_other): Likewise.
27562         (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
27563         * sysdeps/ieee754/ldbl-opt/libm-alias-double.h
27564         (libm_alias_double_other_r): New macro.
27565         (libm_alias_double_other): Likewise.
27566         (libm_alias_double_r): Use libm_alias_double_other_r.
27567         * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h
27568         (libm_alias_ldouble_other_r): New macro.
27569         (libm_alias_ldouble_other): Likewise.
27570         (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
27571         * math/w_lgamma_main.c: Include <libm-alias-double.h>.
27572         [!USE_AS_COMPAT]: Use libm_alias_double_other.
27573         * math/w_lgammaf_main.c: Include <libm-alias-float.h>.
27574         [!USE_AS_COMPAT]: Use libm_alias_float_other.
27575         * math/w_lgammal_main.c: Include <libm-alias-ldouble.h>.
27576         [!USE_AS_COMPAT]: Use libm_alias_ldouble_other.
27577         * math/w_exp2f.c: Use libm_alias_float_other.
27578         * math/w_expf.c: Likewise.
27579         * math/w_log2f.c: Likewise.
27580         * math/w_logf.c: Likewise.
27581         * math/w_powf.c: Likewise.
27582         * sysdeps/ieee754/flt-32/e_exp2f.c: Include <libm-alias-float.h>.
27583         [!__exp2f]: Use libm_alias_float_other.
27584         * sysdeps/ieee754/flt-32/e_expf.c: Include <libm-alias-float.h>.
27585         [!__expf]: Use libm_alias_float_other.
27586         * sysdeps/ieee754/flt-32/e_log2f.c: Include <libm-alias-float.h>.
27587         [!__log2f]: Use libm_alias_float_other.
27588         * sysdeps/ieee754/flt-32/e_logf.c: Include <libm-alias-float.h>.
27589         [!__logf]: Use libm_alias_float_other.
27590         * sysdeps/ieee754/flt-32/e_powf.c: Include <libm-alias-float.h>.
27591         [!__powf]: Use libm_alias_float_other.
27593 2017-10-10  Florian Weimer  <fweimer@redhat.com>
27595         * nss/nss_files/files-hosts.c (gethostbyname3_multi): New
27596         function.
27597         (_nss_files_gethostbyname3_r): Call it.
27599 2017-10-09  Joseph Myers  <joseph@codesourcery.com>
27601         * sysdeps/generic/math-type-macros.h [!declare_mgen_alias]: Give
27602         error.  Remove default definition of declare_mgen_alias.
27603         [!declare_mgen_alias_r]: Likewise.
27604         * sysdeps/generic/math-type-macros-double.h
27605         [!declare_mgen_alias_r] (declare_mgen_alias_r): New macro.
27606         * sysdeps/generic/math-type-macros-float.h [!declare_mgen_alias_r]
27607         (declare_mgen_alias_r): Likewise.
27608         * sysdeps/generic/math-type-macros-float128.h
27609         [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
27610         * sysdeps/generic/math-type-macros-ldouble.h
27611         [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
27612         * math/w_lgamma_r_template.c (declare_mgen_alias_r_x): Remove
27613         macro.
27614         (declare_mgen_alias_r_s): Likewise.
27615         (declare_mgen_alias_r): Likewise.
27616         * math/w_lgamma_r_compat.c: Include <libm-alias-double.h>.
27617         (lgamma_r): Define using libm_alias_double_r.
27618         * math/w_lgammaf_r_compat.c: Include <libm-alias-float.h>.
27619         (lgammaf_r): Define using libm_alias_float_r.
27620         * math/w_lgammal_r_compat.c: Include <libm-alias-ldouble.h>.
27621         (lgammal_r): Define using libm_alias_ldouble_r.
27622         * sysdeps/ieee754/ldbl-opt/w_lgamma_r_compat.c: Remove file.
27623         * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
27625 2017-10-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
27627         * lib/glob.c (__glob_pattern_type): Remove now-spurious
27628         extern declaration.
27630 2017-10-09  Joseph Myers  <joseph@codesourcery.com>
27632         * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Remove file.
27634 2017-10-09  Jonathan Wakely  <jwakely@redhat.com>
27636         [BZ #21326]
27637         * include/features.h [__cplusplus >= 201703] (__USE_ISOC11): Define.
27638         [__cplusplus >= 201103] (__USE_ISOC99): Define.
27639         * math/Makefile (test-math-cxx11): New test.
27640         * math/test-math-cxx11.cc: New file.
27642 2017-10-08  Christian Brauner  <christian.brauner@ubuntu.com>
27644         * login/openpty.c (openpty): Close slave pty file descriptor on error.
27646         * login/openpty.c (openpty): If defined, use the TIOCGPTPEER ioctl()
27647         call to allocate the slave pty file descriptor.
27649 2017-10-06  Joseph Myers  <joseph@codesourcery.com>
27651         * sysdeps/ieee754/ldbl-128/s_fma.c: Include <libm-alias-double.h>.
27652         [!__fma] (fma): Define using libm_alias_double.
27653         * sysdeps/ieee754/ldbl-96/s_fma.c: Include <libm-alias-double.h>.
27654         [!__fma] (fma): Define using libm_alias_double.
27656         * sysdeps/ieee754/float128/float128_private.h: Include
27657         <libm-alias-ldouble.h> and <libm-alias-float128.h>.
27658         (libm_alias_ldouble_r): Undefine and redefine.
27659         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Include
27660         <libm-alias-ldouble.h>.
27661         (asinhl): Define using libm_alias_ldouble.
27662         * sysdeps/ieee754/ldbl-128/s_atanl.c: Include
27663         <libm-alias-ldouble.h>.
27664         (atanl): Define using libm_alias_ldouble.
27665         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Include
27666         <libm-alias-ldouble.h>.
27667         (cbrtl): Define using libm_alias_ldouble.
27668         * sysdeps/ieee754/ldbl-128/s_ceill.c: Include
27669         <libm-alias-ldouble.h>.
27670         (ceill): Define using libm_alias_ldouble.
27671         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Include
27672         <libm-alias-ldouble.h>.
27673         (copysignl): Define using libm_alias_ldouble.
27674         * sysdeps/ieee754/ldbl-128/s_cosl.c: Include
27675         <libm-alias-ldouble.h>.
27676         (cosl): Define using libm_alias_ldouble.
27677         * sysdeps/ieee754/ldbl-128/s_erfl.c: Include
27678         <libm-alias-ldouble.h>.
27679         (erfl): Define using libm_alias_ldouble.
27680         (erfcl): Likewise.
27681         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Include
27682         <libm-alias-ldouble.h>.
27683         (expm1l): Define using libm_alias_ldouble.
27684         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Include
27685         <libm-alias-ldouble.h>.
27686         (fabsl): Define using libm_alias_ldouble.
27687         * sysdeps/ieee754/ldbl-128/s_floorl.c: Include
27688         <libm-alias-ldouble.h>.
27689         (floorl): Define using libm_alias_ldouble.
27690         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include
27691         <libm-alias-ldouble.h>.
27692         (fmal): Define using libm_alias_ldouble.
27693         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Include
27694         <libm-alias-ldouble.h>.
27695         (frexpl): Define using libm_alias_ldouble.
27696         * sysdeps/ieee754/ldbl-128/s_fromfpl.c (fromfpl): Define using
27697         libm_alias_ldouble.
27698         * sysdeps/ieee754/ldbl-128/s_fromfpl_main.c: Include
27699         <libm-alias-ldouble.h>.
27700         * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (fromfpxl): Define using
27701         libm_alias_ldouble.
27702         * sysdeps/ieee754/ldbl-128/s_getpayloadl.c: Include
27703         <libm-alias-ldouble.h>.
27704         (getpayloadl): Define using libm_alias_ldouble.
27705         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Include
27706         <libm-alias-ldouble.h>.
27707         (llrintl): Define using libm_alias_ldouble.
27708         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Include
27709         <libm-alias-ldouble.h>.
27710         (llroundl): Define using libm_alias_ldouble.
27711         * sysdeps/ieee754/ldbl-128/s_logbl.c: Include
27712         <libm-alias-ldouble.h>.
27713         (logbl): Define using libm_alias_ldouble.
27714         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Include
27715         <libm-alias-ldouble.h>.
27716         (lrintl): Define using libm_alias_ldouble.
27717         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Include
27718         <libm-alias-ldouble.h>.
27719         (lroundl): Define using libm_alias_ldouble.
27720         * sysdeps/ieee754/ldbl-128/s_modfl.c: Include
27721         <libm-alias-ldouble.h>.
27722         (modfl): Define using libm_alias_ldouble.
27723         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Include
27724         <libm-alias-ldouble.h>.
27725         (nearbyintl): Define using libm_alias_ldouble.
27726         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Include
27727         <libm-alias-ldouble.h>.
27728         (nextafterl): Define using libm_alias_ldouble.
27729         * sysdeps/ieee754/ldbl-128/s_nextupl.c: Include
27730         <libm-alias-ldouble.h>.
27731         (nextupl): Define using libm_alias_ldouble.
27732         * sysdeps/ieee754/ldbl-128/s_remquol.c: Include
27733         <libm-alias-ldouble.h>.
27734         (remquol): Define using libm_alias_ldouble.
27735         * sysdeps/ieee754/ldbl-128/s_rintl.c: Include
27736         <libm-alias-ldouble.h>.
27737         (rintl): Define using libm_alias_ldouble.
27738         * sysdeps/ieee754/ldbl-128/s_roundevenl.c: Include
27739         <libm-alias-ldouble.h>.
27740         (roundevenl): Define using libm_alias_ldouble.
27741         * sysdeps/ieee754/ldbl-128/s_roundl.c: Include
27742         <libm-alias-ldouble.h>.
27743         (roundl): Define using libm_alias_ldouble.
27744         * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (setpayloadl): Define
27745         using libm_alias_ldouble.
27746         * sysdeps/ieee754/ldbl-128/s_setpayloadl_main.c: Include
27747         <libm-alias-ldouble.h>.
27748         * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (setpayloadsigl):
27749         Define using libm_alias_ldouble.
27750         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Include
27751         <libm-alias-ldouble.h>.
27752         (sincosl): Define using libm_alias_ldouble.
27753         * sysdeps/ieee754/ldbl-128/s_sinl.c: Include
27754         <libm-alias-ldouble.h>.
27755         (sinl): Define using libm_alias_ldouble.
27756         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Include
27757         <libm-alias-ldouble.h>.
27758         (tanhl): Define using libm_alias_ldouble.
27759         * sysdeps/ieee754/ldbl-128/s_tanl.c: Include
27760         <libm-alias-ldouble.h>.
27761         (tanl): Define using libm_alias_ldouble.
27762         * sysdeps/ieee754/ldbl-128/s_totalorderl.c: Include
27763         <libm-alias-ldouble.h>.
27764         (totalorderl): Define using libm_alias_ldouble.
27765         * sysdeps/ieee754/ldbl-128/s_totalordermagl.c: Include
27766         <libm-alias-ldouble.h>.
27767         (totalordermagl): Define using libm_alias_ldouble.
27768         * sysdeps/ieee754/ldbl-128/s_truncl.c: Include
27769         <libm-alias-ldouble.h>.
27770         (truncl): Define using libm_alias_ldouble.
27771         * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (ufromfpl): Define using
27772         libm_alias_ldouble.
27773         * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (ufromfpxl): Define using
27774         libm_alias_ldouble.
27775         * sysdeps/ieee754/ldbl-64-128/s_copysignl.c: Include
27776         <libm-alias-ldouble.h>.
27777         (weak_alias): Do not undefine and redefine.
27778         [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
27779         (copysignl): Define with long_double_symbol only if [IS_IN
27780         (libc)].
27781         * sysdeps/ieee754/ldbl-64-128/s_frexpl.c: Include
27782         <libm-alias-ldouble.h>.
27783         (weak_alias): Do not undefine and redefine.
27784         [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
27785         (frexpl): Define with long_double_symbol only if [IS_IN (libc)].
27786         * sysdeps/ieee754/ldbl-64-128/s_modfl.c: Include
27787         <libm-alias-ldouble.h>.
27788         (weak_alias): Do not undefine and redefine.
27789         [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
27790         (modfl): Define with long_double_symbol only if [IS_IN (libc)].
27791         * sysdeps/ieee754/ldbl-64-128/s_asinhl.c: Remove file.
27792         * sysdeps/ieee754/ldbl-64-128/s_atanl.c: Likewise.
27793         * sysdeps/ieee754/ldbl-64-128/s_cbrtl.c: Likewise.
27794         * sysdeps/ieee754/ldbl-64-128/s_ceill.c: Likewise.
27795         * sysdeps/ieee754/ldbl-64-128/s_cosl.c: Likewise.
27796         * sysdeps/ieee754/ldbl-64-128/s_erfl.c: Likewise.
27797         * sysdeps/ieee754/ldbl-64-128/s_expm1l.c: Likewise.
27798         * sysdeps/ieee754/ldbl-64-128/s_fabsl.c: Likewise.
27799         * sysdeps/ieee754/ldbl-64-128/s_floorl.c: Likewise.
27800         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: Likewise.
27801         * sysdeps/ieee754/ldbl-64-128/s_llrintl.c: Likewise.
27802         * sysdeps/ieee754/ldbl-64-128/s_llroundl.c: Likewise.
27803         * sysdeps/ieee754/ldbl-64-128/s_logbl.c: Likewise.
27804         * sysdeps/ieee754/ldbl-64-128/s_lrintl.c: Likewise.
27805         * sysdeps/ieee754/ldbl-64-128/s_lroundl.c: Likewise.
27806         * sysdeps/ieee754/ldbl-64-128/s_nearbyintl.c: Likewise.
27807         * sysdeps/ieee754/ldbl-64-128/s_remquol.c: Likewise.
27808         * sysdeps/ieee754/ldbl-64-128/s_rintl.c: Likewise.
27809         * sysdeps/ieee754/ldbl-64-128/s_roundl.c: Likewise.
27810         * sysdeps/ieee754/ldbl-64-128/s_sincosl.c: Likewise.
27811         * sysdeps/ieee754/ldbl-64-128/s_sinl.c: Likewise.
27812         * sysdeps/ieee754/ldbl-64-128/s_tanhl.c: Likewise.
27813         * sysdeps/ieee754/ldbl-64-128/s_tanl.c: Likewise.
27814         * sysdeps/ieee754/ldbl-64-128/s_truncl.c: Likewise.
27816 2017-10-06  Carlos O'Donell  <carlos@redhat.com>
27818         [BZ #22111]
27819         * malloc/malloc.c (tcache_shutting_down): Use bool type.
27820         (tcache_thread_freeres): Set tcache_shutting_down before
27821         freeing the tcache.
27822         * malloc/Makefile (tests): Add tst-malloc-tcache-leak.
27823         * malloc/tst-malloc-tcache-leak.c: New file.
27825 2017-10-06  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
27827         * sysdeps/powerpc/powerpc64/multiarch/memrchr-ppc64.c: Revert
27828         back to powerpc32 file.
27829         * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
27830         (memrchr): Add __memrchr_power8 to ifunc list.
27831         * sysdeps/powerpc/powerpc64/power8/memrchr.S: Mask
27832         extra bytes for unaligned inputs.
27834 2017-10-06  Joseph Myers  <joseph@codesourcery.com>
27836         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: Remove file.
27837         * sysdeps/ieee754/ldbl-64-128/s_log1pl.c: Likewise.
27838         * sysdeps/ieee754/ldbl-64-128/s_scalblnl.c: Likewise.
27839         * sysdeps/ieee754/ldbl-64-128/s_scalbnl.c: Likewise.
27840         * sysdeps/ieee754/ldbl-64-128/w_scalblnl.c: Likewise.
27842 2017-10-05  Joseph Myers  <joseph@codesourcery.com>
27844         * sysdeps/arm/libm-test-ulps: Update.
27846         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Include
27847         <libm-alias-ldouble.h>.
27848         (asinhl): Define using libm_alias_ldouble.
27849         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Include
27850         <libm-alias-ldouble.h>.
27851         (cbrtl): Define using libm_alias_ldouble.
27852         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Include
27853         <libm-alias-ldouble.h>.
27854         (copysignl): Define using libm_alias_ldouble.
27855         * sysdeps/ieee754/ldbl-96/s_cosl.c: Include
27856         <libm-alias-ldouble.h>.
27857         (cosl): Define using libm_alias_ldouble.
27858         * sysdeps/ieee754/ldbl-96/s_erfl.c: Include
27859         <libm-alias-ldouble.h>.
27860         (erfl): Define using libm_alias_ldouble.
27861         (erfcl): Likewise.
27862         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include
27863         <libm-alias-ldouble.h>.
27864         (fmal): Define using libm_alias_ldouble.
27865         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Include
27866         <libm-alias-ldouble.h>.
27867         (frexpl): Define using libm_alias_ldouble.
27868         * sysdeps/ieee754/ldbl-96/s_fromfpl.c (fromfpl): Define using
27869         libm_alias_ldouble.
27870         * sysdeps/ieee754/ldbl-96/s_fromfpl_main.c: Include
27871         <libm-alias-ldouble.h>.
27872         * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (fromfpxl): Define using
27873         libm_alias_ldouble.
27874         * sysdeps/ieee754/ldbl-96/s_getpayloadl.c: Include
27875         <libm-alias-ldouble.h>.
27876         (getpayloadl): Define using libm_alias_ldouble.
27877         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Include
27878         <libm-alias-ldouble.h>.
27879         (llrintl): Define using libm_alias_ldouble.
27880         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Include
27881         <libm-alias-ldouble.h>.
27882         (llroundl): Define using libm_alias_ldouble.
27883         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Include
27884         <libm-alias-ldouble.h>.
27885         (lrintl): Define using libm_alias_ldouble.
27886         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Include
27887         <libm-alias-ldouble.h>.
27888         (lroundl): Define using libm_alias_ldouble.
27889         * sysdeps/ieee754/ldbl-96/s_modfl.c: Include
27890         <libm-alias-ldouble.h>.
27891         (modfl): Define using libm_alias_ldouble.
27892         * sysdeps/ieee754/ldbl-96/s_nextupl.c: Include
27893         <libm-alias-ldouble.h>.
27894         (nextupl): Define using libm_alias_ldouble.
27895         * sysdeps/ieee754/ldbl-96/s_remquol.c: Include
27896         <libm-alias-ldouble.h>.
27897         (remquol): Define using libm_alias_ldouble.
27898         * sysdeps/ieee754/ldbl-96/s_roundevenl.c: Include
27899         <libm-alias-ldouble.h>.
27900         (roundevenl): Define using libm_alias_ldouble.
27901         * sysdeps/ieee754/ldbl-96/s_roundl.c: Include
27902         <libm-alias-ldouble.h>.
27903         (roundl): Define using libm_alias_ldouble.
27904         * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (setpayloadl): Define
27905         using libm_alias_ldouble.
27906         * sysdeps/ieee754/ldbl-96/s_setpayloadl_main.c: Include
27907         <libm-alias-ldouble.h>.
27908         * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c: Include
27909         <libm-alias-ldouble.h>.
27910         (setpayloadsigl): Define using libm_alias_ldouble.
27911         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Include
27912         <libm-alias-ldouble.h>.
27913         (sincosl): Define using libm_alias_ldouble.
27914         * sysdeps/ieee754/ldbl-96/s_sinl.c: Include
27915         <libm-alias-ldouble.h>.
27916         (sinl): Define using libm_alias_ldouble.
27917         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Include
27918         <libm-alias-ldouble.h>.
27919         (tanhl): Define using libm_alias_ldouble.
27920         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include
27921         <libm-alias-ldouble.h>.
27922         (tanl): Define using libm_alias_ldouble.
27923         * sysdeps/ieee754/ldbl-96/s_totalorderl.c: Include
27924         <libm-alias-ldouble.h>.
27925         (totalorderl): Define using libm_alias_ldouble.
27926         * sysdeps/ieee754/ldbl-96/s_totalordermagl.c: Include
27927         <libm-alias-ldouble.h>.
27928         (totalordermagl): Define using libm_alias_ldouble.
27929         * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (ufromfpl): Define using
27930         libm_alias_ldouble.
27931         * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (ufromfpxl): Define using
27932         libm_alias_ldouble.
27934 2017-10-05  Siddhesh Poyarekar  <siddhesh@sourceware.org>
27936         * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
27937         memmove_falkor.
27938         * sysdeps/aarch64/multiarch/ifunc-impl-list.c
27939         (__libc_ifunc_impl_list): Likewise.
27940         * sysdeps/aarch64/multiarch/memmove.c: Likewise.
27941         * sysdeps/aarch64/multiarch/memmove_falkor.S: New file.
27943         * benchtests/bench-memmove-walk.c: New file.
27944         * benchtests/Makefile (string-benchset): Add it.
27946         * benchtests/bench-memset-walk.c: New file.
27947         * benchtests/Makefile (string-benchset): Add it.
27949         * benchtests/bench-memcpy-walk.c: New file.
27950         * benchtests/Makefile (string-benchset): Add it.
27952 2017-10-05  Florian Weimer  <fweimer@redhat.com>
27954         nscd: Eliminate compilation time dependency in the build output.
27955         * nscd/nscd_stat.c (STATDATA_VERSION)
27956         (STATDATA_VERSION_SELINUX_FLAG, STATDATA_VERSION_FLAGS)
27957         (STATDATA_VERSION_FULL): New macro definitions.
27958         (compilation): Remove.
27959         (struct statdata): Adjust version member.
27960         (send_stats): Set version from STATDATA_VERSION_FULL.
27961         (receive_print_stats): Verify version against STATDATA_VERSION_FULL.
27963 2017-10-05  Joseph Myers  <joseph@codesourcery.com>
27965         * configure.ac (--enable-add-ons): Remove option.
27966         (machine): Do not mention add-ons in comment.
27967         (LIBC_PRECONFIGURE): Likewise.
27968         (add_ons): Remove variable and sanity checks and logic to locate
27969         add-ons.
27970         (add_ons_automatic): Remove variable.
27971         (configured_add_ons): Likewise.
27972         (add_ons_sfx): Likewise.
27973         (add_ons_pfx): Likewise.
27974         (add_on_subdirs): Likewise.
27975         (sysnames_add_ons): Likewise.  Remove loop over add-ons and
27976         consideration of add-ons in Implies handling.
27977         (sysdeps_add_ons): Likewise.
27978         * configure: Regenerated.
27979         * libidn/configure.ac: Remove.
27980         * libidn/configure: Likewise.
27981         * sysdeps/unix/inet/configure.ac: New file.
27982         * sysdeps/unix/inet/configure: New generated file.
27983         * sysdeps/unix/inet/Subdirs: Add libidn.
27984         * Makeconfig (sysdeps-srcdirs): Remove variable.
27985         (+sysdep_dirs): Do not include $(sysdeps-srcdirs).
27986         ($(common-objpfx)config.status): Do not depend on add-on files.
27987         ($(common-objpfx)shlib-versions.v.i): Do not mention add-ons in
27988         comment.
27989         (all-subdirs): Do not include $(add-on-subdirs).
27990         * Makefile (dist-prepare): Do not use $(sysdeps-add-ons).
27991         * config.make.in (add-ons): Remove variable.
27992         (add-on-subdirs): Likewise.
27993         (sysdeps-add-ons): Likewise.
27994         * manual/Makefile (add-chapters): Remove.
27995         ($(objpfx)texis): Do not depend on $(add-chapters).
27996         (nonexamples): Do not handle $(add-chapters).
27997         (examples): Do not handle $(add-ons).
27998         (chapters.% top-menu.%): Do not pass '$(add-chapters)' to
27999         libc-texinfo.sh.
28000         * manual/install.texi (Installation): Do not mention add-ons.
28001         (--enable-add-ons): Do not document configure option.
28002         * INSTALL: Regenerated.
28003         * manual/libc-texinfo.sh: Do not handle $2 add-ons argument.
28004         * manual/maint.texi (Hierarchy Conventions): Do not mention
28005         add-ons.
28006         * scripts/build-many-glibcs.py (Glibc.build_glibc): Do not use
28007         --enable-add-ons.
28008         * scripts/gen-sorted.awk: Do not handle Subdirs files from
28009         add-ons.
28010         * scripts/test-installation.pl: Do not handle glibc-compat add-on.
28011         * sysdeps/nptl/Makeconfig: Do not mention add-ons in comment.
28013 2017-10-05  Andreas Schwab  <schwab@suse.de>
28015         [BZ #15142]
28016         * libio/genops.c (_IO_list_all_stamp): Delete.  All uses removed.
28017         (_IO_flush_all_lockp): Always lock list_all_lock.
28018         (_IO_flush_all_linebuffered): Likewise.
28019         (_IO_unbuffer_all): Likewise.
28021 2017-10-05  Florian Weimer  <fweimer@redhat.com>
28023         [BZ #15436]
28024         Do not flush stdio streams on abort.
28025         * stdlib/abort.c (fflush): Remove macro definition.
28026         (abort): Remove stages related to stdio flushing.
28028 2017-10-05  Florian Weimer  <fweimer@redhat.com>
28030         * gmon/Makefile (CFLAGS-tst-gmon.c): Add -fno-omit-frame-pointer.
28032 2017-10-05  Stefan Liebler  <stli@linux.vnet.ibm.com>
28034         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
28036 2017-10-05  Florian Weimer  <fweimer@redhat.com>
28038         * support/support_format_hostent.c (support_format_hostent): Add
28039         more error information for NETDB_INTERNAL.
28041 2017-10-04  H.J. Lu  <hongjiu.lu@intel.com>
28043         * config.h.in (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New.
28044         * include/libc-symbols.h (__hidden_proto_hiddenattr): Add check
28045         for PIC and NO_HIDDEN_EXTERN_FUNC_IN_PIE.
28046         * sysdeps/i386/configure.ac (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New
28047         AC_DEFINE if multi-arch is enabled.
28048         * sysdeps/i386/configure: Regenerated.
28050 2017-10-04  H.J. Lu  <hongjiu.lu@intel.com>
28052         * Makeconfig (+link-static-before-libc): Use
28053         $(DEFAULT-LDFLAGS-$(@F)).
28054         * elf/Makefile (CRT-tst-tls1-static-non-pie): New.
28055         (LDFLAGS-tst-tls1-static-non-pie): Renamed to ...
28056         (DEFAULT-LDFLAGS-tst-tls1-static-non-pie): This.
28058 2017-10-04  H.J. Lu  <hongjiu.lu@intel.com>
28060         * elf/Makefile (tests): Add tst-main1.
28061         (modules-names): Add tst-main1mod.
28062         ($(objpfx)tst-main1): New.
28063         (CRT-tst-main1): Likewise.
28064         (LDFLAGS-tst-main1): Likewise.
28065         (LDLIBS-tst-main1): Likewise.
28066         (tst-main1mod.so-no-z-defs): Likewise.
28067         * elf/tst-main1.c: New file.
28068         * elf/tst-main1mod.c: Likewise.
28070 2017-10-04  H.J. Lu  <hongjiu.lu@intel.com>
28072         * math/test-math-iscanonical.cc (do_test): Return errors != 0.
28074 2017-10-04  Joseph Myers  <joseph@codesourcery.com>
28076         * sysdeps/ieee754/dbl-64/s_fma.c: Include <libm-alias-double.h>.
28077         (fma): Define using libm_alias_double.
28078         * sysdeps/ieee754/ldbl-opt/s_fma.c: Remove file.
28079         * sysdeps/sparc/sparc32/fpu/s_fma.c: Do not include
28080         <math_ldbl_opt.h>.
28081         (fmal): Do not define as compat symbol here.
28082         * sysdeps/alpha/fpu/s_fma.c: New file.
28084 2017-10-04  Szabolcs Nagy  <szabolcs.nagy@arm.com>
28086         * sysdeps/aarch64/dl-machine.h (elf_machine_rela): Expand MIN.
28088 2017-10-04  Joseph Myers  <joseph@codesourcery.com>
28090         [BZ #22229]
28091         * sysdeps/sparc/sparc32/fpu/s_copysign.S: Include
28092         <math_ldbl_opt.h>
28093         (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
28094         and libc.
28095         * sysdeps/sparc/sparc32/fpu/s_fabs.S: Include <math_ldbl_opt.h>.
28096         (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
28097         * sysdeps/sparc/sparc32/fpu/s_fma.c: Include <math_ldbl_opt.h>.
28098         (fmal): Define as compat symbol at version GLIBC_2_1 for libm.
28099         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
28100         Include <math_ldbl_opt.h>
28101         (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
28102         and libc.
28103         (compat_symbol): Undefine and redefine.
28104         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Include
28105         <math_ldbl_opt.h>
28106         (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
28107         (compat_symbol): Undefine and redefine.
28108         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c
28109         [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h>.
28110         [HAVE_AS_VIS3_SUPPORT] (fmal): Define as compat symbol at version
28111         GLIBC_2_1 for libm.
28112         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Add
28113         GLIBC_2.0 copysignl symbol.
28114         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
28115         GLIBC_2.0 copysignl and fabsl and GLIBC_2.1 fmal symbols.
28117         * sysdeps/alpha/fpu/s_nearbyint.c: Remove file.
28119 2017-10-04  Florian Weimer  <fweimer@redhat.com>
28121         * scripts/check-local-headers.sh: Ignore nspr4 header file
28122         directory in addition to nspr.
28124 2017-10-04  Guido Trentalancia  <guido@trentalancia.net>
28126         [BZ #17956]
28127         * configure.ac (--enable-nss-crypt): Use NSPR include directory.
28128         * configure: Regenerate.
28129         * crypt/Makefile (nss-cpp-flags): New variable.
28130         (CPPFLAGS-sha256-crypt.c, CPPFLAGS-sha512-crypt.c)
28131         (CPPFLAGS-md5-crypt.c): Use it.
28132         * scripts/check-local-headers.sh: Ignore nspr header file
28133         directory.
28135 2017-10-04  Andreas Schwab  <schwab@suse.de>
28137         * nis/Makefile (services): Remove compat.
28138         (libnss_compat-routines, libnss_compat-inhibit-o): Don't define.
28139         ($(objpfx)libnss_compat.so): Remove rule.
28140         * nis/Versions (libnss_compat): Remove.
28141         * nss/Makefile (services): Add compat.
28142         (libnss_compat-routines, libnss_compat-inhibit-o): Define.
28143         * nss/Versions (libnss_compat): Define.
28144         * nss/nss_compat/compat-grp.c: Moved here from nis/nss_compat.
28145         Don't include <rpc/types.h>.  Replace bool_t by bool.
28146         * nss/nss_compat/compat-initgroups.c: Likewise.
28147         * nss/nss_compat/compat-pwd.c: Likewise.  Include "nisdomain.h"
28148         instead of <rpcsrv/ypclnt.h>.
28149         (getpwent_next_nss_netgr): Use __nss_get_default_domain instead of
28150         yp_get_default_domain.
28151         * nss/nss_compat/compat-pwd.c: Likewise.
28152         (getspent_next_nss_netgr): Use __nss_get_default_domain instead of
28153         yp_get_default_domain.
28154         * nss/nss_compat/nisdomain.c: New file.
28155         * nss/nss_compat/nisdomain.h: Likewise.
28157 2017-10-04  Szabolcs Nagy  <szabolcs.nagy@arm.com>
28159         [BZ #22244]
28160         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Fix x == 0 case.
28161         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
28163 2017-10-04  Szabolcs Nagy  <szabolcs.nagy@arm.com>
28165         [BZ #22243]
28166         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c (__ieee754_log10): Use fabs.
28167         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c (__ieee754_log2): Likewise.
28169 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
28171         * sysdeps/i386/start.S: Replace "leal main@GOT(%ebx), %eax" with
28172         "movl main@GOTOFF(%ebx), %eax".
28174 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
28176         * sysdeps/i386/dl-machine.h (elf_machine_load_address): Don't
28177         allow undefined _DYNAMIC in PIE libc.a.
28178         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
28179         Likewse.
28181 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
28183         * sysdeps/mips/dl-machine.h (elf_machine_load_address): Don't
28184         check _DYNAMIC.
28186 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
28188         * sysdeps/arm/dl-machine.h (elf_machine_load_address): Don't
28189         check _DYNAMIC.
28191 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
28193         * math/test-math-iscanonical.cc (error): Replace bool with int.
28195 2017-10-03  Joseph Myers  <joseph@codesourcery.com>
28197         * sysdeps/ieee754/dbl-64/s_modf.c: Include <libm-alias-double.h>.
28198         (modf): Define using libm_alias_double, only if [!__modf].
28199         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Include
28200         <libm-alias-double.h>.
28201         (modf): Define using libm_alias_double, only if [!__modf].
28202         * sysdeps/ieee754/ldbl-opt/s_modf.c (modfl): Only define libc
28203         compat symbol here.
28204         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-ppc32.c
28205         (weak_alias): Do not undefine and redefine.
28206         (strong_alias): Likewise.
28207         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-ppc64.c
28208         (weak_alias): Likewise.
28209         (strong_alias): Likewise.
28211         * sysdeps/ieee754/dbl-64/s_logb.c: Include <libm-alias-double.h>.
28212         (logb): Define using libm_alias_double, only if [!__logb].
28213         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Include
28214         <libm-alias-double.h>.
28215         (logb): Define using libm_alias_double, only if [!__logb].
28216         * sysdeps/ieee754/ldbl-opt/s_logb.c: Remove file.
28217         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-ppc32.c
28218         (weak_alias): Do not undefine and redefine.
28219         (strong_alias): Likewise.
28220         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-ppc64.c
28221         (weak_alias): Likewise.
28222         (strong_alias): Likewise.
28224 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
28226         * sysdeps/unix/sysv/linux/tile/sysdep.h (SYSCALL_ERROR_NAME):
28227         Check SHARED instead PIC.
28229 2017-10-03  Joseph Myers  <joseph@codesourcery.com>
28231         * sysdeps/ieee754/dbl-64/s_fmaf.c: Include <libm-alias-float.h>.
28232         [!__fmaf] (fmaf): Define using libm_alias_float.
28234         * sysdeps/ieee754/dbl-64/s_frexp.c: Include <libm-alias-double.h>.
28235         (frexp): Define using libm_alias_double.
28236         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Include
28237         <libm-alias-double.h>.
28238         (frexp): Define using libm_alias_double.
28239         * sysdeps/ieee754/ldbl-opt/s_frexp.c (frexpl): Only define libc
28240         compat symbol here.
28242 2017-10-03  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
28244         [BZ #22235]
28245         * math/math.h: Trivial fix for unbalanced parentheses in comment.
28246         * math/Makefile [CXX] (tests): Add test-math-iscanonical.cc.
28247         (CFLAGS-test-math-iscanonical.cc): New variable.
28248         * math/test-math-iscanonical.cc: New file.
28249         * sysdeps/ieee754/ldbl-96/bits/iscanonical.h (iscanonical):
28250         Provide a C++ implementation based on function overloading,
28251         rather than using __MATH_TG, which uses C-only builtins.
28252         * sysdeps/ieee754/ldbl-128ibm/bits/iscanonical.h (iscanonical):
28253         Likewise.
28254         * sysdeps/powerpc/powerpc64le/Makefile
28255         (CFLAGS-test-math-iscanonical.cc): New variable.
28257 2017-10-03  Joseph Myers  <joseph@codesourcery.com>
28259         * sysdeps/ieee754/dbl-64/s_ceil.c: Include <libm-alias-double.h>.
28260         (ceil): Define using libm_alias_double.
28261         * sysdeps/ieee754/dbl-64/s_floor.c: Include <libm-alias-double.h>.
28262         (floor): Define using libm_alias_double.
28263         * sysdeps/ieee754/dbl-64/s_llround.c: Include
28264         <libm-alias-double.h>.
28265         (llround): Define using libm_alias_double.
28266         * sysdeps/ieee754/dbl-64/s_lround.c: Include
28267         <libm-alias-double.h>.
28268         (lround): Define using libm_alias_double.
28269         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Include
28270         <libm-alias-double.h>.
28271         (nearbyint): Define using libm_alias_double.
28272         * sysdeps/ieee754/dbl-64/s_remquo.c: Include
28273         <libm-alias-double.h>.
28274         (remquo): Define using libm_alias_double.
28275         * sysdeps/ieee754/dbl-64/s_rint.c: Include <libm-alias-double.h>.
28276         (rint): Define using libm_alias_double.
28277         * sysdeps/ieee754/dbl-64/s_round.c: Include <libm-alias-double.h>.
28278         (round): Define using libm_alias_double.
28279         * sysdeps/ieee754/dbl-64/s_trunc.c: Include <libm-alias-double.h>.
28280         (trunc): Define using libm_alias_double.
28281         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Include
28282         <libm-alias-double.h>.
28283         (ceil): Define using libm_alias_double.
28284         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Include
28285         <libm-alias-double.h>.
28286         (floor): Define using libm_alias_double.
28287         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: Include
28288         <libm-alias-double.h>.
28289         (llround): Define using libm_alias_double.
28290         [_LP64] (lround): Likewise.
28291         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Include
28292         <libm-alias-double.h>.
28293         [!_LP64] (lround): Define using libm_alias_double.
28294         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Include
28295         <libm-alias-double.h>.
28296         (nearbyint): Define using libm_alias_double.
28297         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Include
28298         <libm-alias-double.h>.
28299         (remquo): Define using libm_alias_double.
28300         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Include
28301         <libm-alias-double.h>.
28302         (rint): Define using libm_alias_double.
28303         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Include
28304         <libm-alias-double.h>.
28305         (round): Define using libm_alias_double.
28306         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Include
28307         <libm-alias-double.h>.
28308         (trunc): Define using libm_alias_double.
28309         * sysdeps/ieee754/ldbl-opt/s_ceil.c: Remove file.
28310         * sysdeps/ieee754/ldbl-opt/s_floor.c: Likewise.
28311         * sysdeps/ieee754/ldbl-opt/s_llround.c: Likewise.
28312         * sysdeps/ieee754/ldbl-opt/s_lround.c: Likewise.
28313         * sysdeps/ieee754/ldbl-opt/s_nearbyint.c: Likewise.
28314         * sysdeps/ieee754/ldbl-opt/s_remquo.c: Likewise.
28315         * sysdeps/ieee754/ldbl-opt/s_rint.c: Likewise.
28316         * sysdeps/ieee754/ldbl-opt/s_round.c: Likewise.
28317         * sysdeps/ieee754/ldbl-opt/s_trunc.c: Likewise.
28319 2017-10-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
28321         * math/w_remainder.c: New file.
28322         * math/w_remainderf.c: New file.
28323         * math/w_remainderl.c: New file.
28325 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
28327         * elf/rtld.c (BOOTSTRAP_MAP): New.
28328         (RESOLVE_MAP): Replace (&bootstrap_map) with BOOTSTRAP_MAP.
28329         * sysdeps/hppa/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
28330         Likewise.
28331         * sysdeps/ia64/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
28332         Likewise.
28333         * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
28334         Likewise.
28336 2017-10-03  Samuel Thibault  <samuel.thibault@ens-lyon.org>
28338         * include/libc-symbols.h [NO_RTLD_HIDDEN] (rtld_hidden_proto,
28339         rtld_hidden_tls_proto, rtld_hidden_def, rtld_hidden_weak,
28340         rtld_hidden_rtld_hidden_ver, data_def, rtld_hidden_data_weak,
28341         rtld_hidden_data_ver): Define to empty.
28342         * include/assert.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__assert_fail,
28343         __assert_perror_fail): Likewise.
28344         * include/dirent.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
28345         (__rewinddir): Likewise.
28346         * include/libc-internal.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
28347         (__profile_frequency): Likewise.
28348         * include/setjmp.h (__sigsetjmp): Likewise.
28349         * include/signal.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__sigaction,
28350         __libc_sigaction): Likewise.
28351         * include/stdlib.h [NO_RTLD_HIDDEN] (unsetenv, __strtoul_internal): Do
28352         not set hidden attribute.
28353         * include/string.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__stpcpy, __strdup,
28354         __strerror_t, __strsep_g, memchr, memcmp, memcpy, memmove, memset,
28355         rawmemchr, stpcpy, strchr, strcmp, strlen, strnlen, strsep): Likewise.
28356         * include/sys/stat.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__fxstat,
28357         __fxstat64, __lxstat, __lxstat64, __xstat, __xstat64,
28358         __fxstatat64): Likewise.
28359         * include/sys/utsname.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
28360         (__uname): Likewise.
28361         * include/sysdeps/generic/_itoa.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
28362         (_itoa_upper_digits, _itoa_lower_digits): Likewise.
28363         * sysdeps/mach/hurd/configure.ac (NO_HIDDEN): Do not set.
28364         (NO_RTLD_HIDDEN): Set.
28365         * sysdeps/mach/hurd/configure: Refresh.
28366         * config.h.in: Refresh.
28368 2017-10-02  Joseph Myers  <joseph@codesourcery.com>
28370         * sysdeps/ieee754/dbl-64/s_atan.c: Include <libm-alias-double.h>.
28371         (atan): Define using libm_alias_double.
28372         * sysdeps/ieee754/dbl-64/s_tan.c: Include <libm-alias-double.h>.
28373         (tan): Define using libm_alias_double.
28374         * sysdeps/ieee754/ldbl-opt/s_atan.c: Remove file.
28375         * sysdeps/ieee754/ldbl-opt/s_tan.c: Likewise.
28377         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Rename to __atan and
28378         define as weak alias of __atan.  Do not define any aliases if
28379         [__atan].
28380         [NO_LONG_DOUBLE] (__atanl): Define as strong alias of __atan.
28381         [NO_LONG_DOUBLE] (atanl): Define as weak alias of __atanl.
28382         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Rename to __tan and define
28383         as weak alias of __tan.  Do not define any aliases if [__tan].
28384         [NO_LONG_DOUBLE] (__tanl): Define as strong alias of __tan.
28385         [NO_LONG_DOUBLE] (tanl): Define as weak alias of __tanl.
28386         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c (atan): Rename to
28387         __atan.
28388         * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c (atan): Likewise.
28389         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c (atan): Likewise.
28390         * sysdeps/x86_64/fpu/multiarch/s_atan.c (atan): Rename to __atan
28391         and define as weak alias of __atan.
28392         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c (tan): Rename to
28393         __atan.
28394         * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c (tan): Likewise.
28395         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (tan): Likewise.
28396         * sysdeps/x86_64/fpu/multiarch/s_tan.c (tan): Rename to __tan and
28397         define as weak alias of __tan.
28399 2017-10-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
28401         * math/w_lgamma.c: New file.
28402         * math/w_lgammaf.c: New file.
28403         * math/w_lgammal.c: New file.
28405 2017-10-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
28407         * sysdeps/ieee754/flt-32/e_log2f.c (__log2f): Define without wrapper.
28408         * sysdeps/ieee754/flt-32/e_logf.c (__logf): Likewise
28409         * sysdeps/ieee754/flt-32/e_powf.c (__powf): Likewise
28410         * sysdeps/ieee754/flt-32/w_log2f.c: New file.
28411         * sysdeps/ieee754/flt-32/w_logf.c: New file.
28412         * sysdeps/ieee754/flt-32/w_powf.c: New file.
28413         * sysdeps/i386/fpu/w_log2f.c: New file.
28414         * sysdeps/i386/fpu/w_logf.c: New file.
28415         * sysdeps/i386/fpu/w_powf.c: New file.
28416         * sysdeps/m68k/m680x0/fpu/w_log2f.c: New file.
28417         * sysdeps/m68k/m680x0/fpu/w_logf.c: New file.
28418         * sysdeps/m68k/m680x0/fpu/w_powf.c: New file.
28420 2017-10-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
28421             H.J. Lu  <hongjiu.lu@intel.com>
28423         * sysdeps/ieee754/flt-32/e_exp2f.c (__exp2f): Define without wrapper.
28424         * sysdeps/ieee754/flt-32/e_expf.c (__expf): Likewise
28425         * sysdeps/ieee754/flt-32/w_exp2f.c: New file.
28426         * sysdeps/ieee754/flt-32/w_expf.c: New file.
28427         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-ppc64.c: Update for
28428         the new expf code.
28429         * sysdeps/powerpc/powerpc64/fpu/multiarch/w_expf.c: New file.
28430         * sysdeps/powerpc/powerpc64/power8/fpu/w_expf.c: New file.
28431         * sysdeps/m68k/m680x0/fpu/w_exp2f.c: New file.
28432         * sysdeps/m68k/m680x0/fpu/w_expf.c: New file.
28433         * sysdeps/i386/fpu/w_exp2f.c: New file.
28434         * sysdeps/i386/fpu/w_expf.c: New file.
28435         * sysdeps/i386/i686/fpu/multiarch/w_expf.c: New file.
28436         * sysdeps/x86_64/fpu/w_expf.c: New file.
28438 2017-10-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
28440         * math/Versions (logf): New libm symbol at GLIBC_2.27.
28441         (log2f): Likewise.
28442         (powf): Likewise.
28443         * math/w_log2f.c: New file.
28444         * math/w_logf.c: New file.
28445         * math/w_powf.c: New file.
28446         * math/w_log2f_compat.c (__log2f_compat): For compat symbol only.
28447         * math/w_logf_compat.c (__logf_compat): Likewise.
28448         * math/w_powf_compat.c (__powf_compat): Likewise.
28449         * sysdeps/ia64/fpu/e_log2f.S: Add versioned symbols.
28450         * sysdeps/ia64/fpu/e_logf.S: Likewise.
28451         * sysdeps/ia64/fpu/e_powf.S: Likewise.
28452         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
28453         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
28454         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
28455         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
28456         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
28457         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
28458         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
28459         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
28460         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
28461         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
28462         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
28463         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
28464         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
28465         Likewise.
28466         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
28467         Likewise.
28468         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
28469         Likewise.
28470         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
28471         Likewise.
28472         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
28473         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
28474         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
28475         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
28476         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
28477         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
28478         Likewise.
28479         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
28480         Likewise.
28481         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
28482         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
28483         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
28485 2017-10-02  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
28487         * sysdeps/powerpc/powerpc64/multiarch/Makefile
28488         (sysdep_routines): Add memrchr_power8.
28489         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
28490         (memrchr): Add __memrchr_power8 to list of memrchr functions.
28491         * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S:
28492         New file.
28493         * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
28494         (memrchr): Add __memrchr_power8 to ifunc list.
28495         * sysdeps/powerpc/powerpc64/power8/memrchr.S: New file.
28497 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
28499         [BZ #18822]
28500         * sysdeps/unix/sysv/linux/posix_fadvise64.c
28501         (__posix_fadvise64_l64): Add Add libc_hidden_proto and
28502         libc_hidden_def.
28503         * sysdeps/unix/sysv/linux/posix_fallocate64.c
28504         (__posix_fallocate64_l64): Likewise.
28506 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
28508         [BZ #18822]
28509         * sysdeps/unix/sysv/linux/sched_setaffinity.c
28510         (__sched_setaffinity_new): Add libc_hidden_proto and
28511         libc_hidden_def.
28513 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
28515         [BZ #18822]
28516         * include/glob.h (__glob64): Add libc_hidden_proto.
28517         * sysdeps/unix/sysv/linux/glob64.c (__glob64): Add
28518         libc_hidden_def.
28520 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
28522         [BZ #18822]
28523         * sysdeps/unix/sysv/linux/getrlimit64.c (__new_getrlimit): Add
28524         attribute_hidden.
28526 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
28528         [BZ #18822]
28529         * stdlib/exit.h (__new_exitfn): Add attribute_hidden.
28531 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
28533         [BZ #18822]
28534         * mon/gmon.c (__moncontrol): Add libc_hidden_proto and
28535         libc_hidden_def.
28537 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
28539         [BZ #18822]
28540         * csu/version.c (__libc_print_version): Add attribute_hidden.
28542 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
28544         [BZ #18822]
28545         * include/libc-internal.h (__init_misc): Add attribute_hidden.
28547 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
28549         [BZ #18822]
28550         * include/fpu_control.h (__setfpucw): Add attribute_hidden.
28552 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
28554         [BZ #18822]
28555         * nscd/nscd_helper.c (__nis_hash): New prototype.
28557 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
28559         [BZ #18822]
28560         * include/termios.h (__tcgetattr): Add libc_hidden_proto.
28561         * sysdeps/unix/bsd/tcgetattr.c (__tcgetattr): Add
28562         libc_hidden_def.
28563         * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Likewise.
28564         * termios/tcgetattr.c (__tcgetattr): Likewise.
28566 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
28568         [BZ #18822]
28569         * include/sys/resource.h (__setrlimit): Add libc_hidden_proto.
28570         * resource/setrlimit.c (__setrlimit): Add libc_hidden_def.
28571         * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Likewise.
28572         * sysdeps/unix/sysv/linux/setrlimit.c (__setrlimit): Likewise.
28573         * sysdeps/unix/sysv/linux/setrlimit64.c (__GI___setrlimit): New.
28575 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
28577         [BZ #18822]
28578         * include/monetary.h (__vstrfmon_l): Add attribute_hidden.
28580 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
28582         [BZ #18822]
28583         * include/sched.h (__sched_setparam): Add libc_hidden_proto.
28584         * posix/sched_setp.c (__sched_setparam): Add libc_hidden_def.
28586 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
28588         [BZ #18822]
28589         * intl/hash-string.h (__hash_string): Add attribute_hidden.
28591 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
28593         [BZ #18822]
28594         * include/mntent.h (__hasmntopt): Add libc_hidden_proto.
28595         * misc/mntent_r.c (__hasmntopt): Add libc_hidden_def.
28597 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
28599         [BZ #18822]
28600         * include/ifreq.h: New file.
28601         * sysdeps/generic/ifreq.h (__if_nextreq): Removed.
28602         (__ifreq): Likewise.
28603         * sysdeps/mach/hurd/ifreq.h (__if_nextreq): Removed.
28604         (__ifreq): Likewise.
28606 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
28608         [BZ #18822]
28609         * include/idna.h: New file.
28610         * inet/getnameinfo.c: Include <idna.h> instead of
28611         <libidn/idna.h>.
28612         (__idna_to_unicode_lzlz): Removed.
28613         * sysdeps/posix/getaddrinfo.c: Include <idna.h> instead of
28614         <libidn/idna.h>.
28615         (__idna_to_ascii_lz): Removed.
28616         (__idna_to_unicode_lzlz): Likewise.
28618 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
28620         [BZ #18822]
28621         * include/plural-exp.h: New file.
28622         * intl/plural-exp.c: Include <plural-exp.h> instead of
28623         "plural-exp.h".
28625 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
28627         [BZ #18822]
28628         * sysdeps/unix/sysv/linux/getsourcefilter.c: Include
28629         "getsourcefilter.h".
28630         * sysdeps/unix/sysv/linux/getsourcefilter.h: New file.
28631         * sysdeps/unix/sysv/linux/setsourcefilter.c: Include
28632         "getsourcefilter.h".
28633         (__get_sol): Removed.
28635 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
28637         [BZ #18822]
28638         * elf/dl-iteratephdr.c (hidden_proto (__dl_iterate_phdr)): Moved
28639         to ...
28640         * include/link.h (hidden_proto (__dl_iterate_phdr)): Here.
28642 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
28644         [BZ #18822]
28645         * sysdeps/unix/sysv/linux/getpt.c (__bsd_getpt): Add
28646         attribute_hidden.
28648 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
28650         [BZ #18822]
28651         * libio/iolibio.h (__fopen_maybe_mmap): Add attribute_hidden.
28653 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
28655         [BZ #18822]
28656         * include/search.h (__tdestroy): Add libc_hidden_proto.
28657         * misc/tsearch.c (__tdestroy): Add libc_hidden_def.
28659 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
28661         [BZ #18822]
28662         * include/assert.h (__assert_fail_base): Add attribute_hidden.
28664 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
28666         [BZ #18822]
28667         * sysdeps/unix/sysv/linux/include/sys/sysinfo.h (__sysinfo): Add
28668         attribute_hidden.
28670 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
28672         [BZ #18822]
28673         * include/signal.h (__kill): Add libc_hidden_proto.
28674         (__sigblock): Likewise.
28675         (__sigprocmask): Likewise.
28676         (__sigaltstack): Likewise.
28677         * signal/kill.c (__kill): Add libc_hidden_def.
28678         * signal/sigblock.c (__sigblock): Likewise.
28679         * signal/sigprocmask.c (__sigprocmask): Likewise.
28680         * sysdeps/mach/hurd/kill.c (__kill): Likewise.
28681         * sysdeps/mach/hurd/sigaltstack.c (__sigaltstack): Likewise.
28682         * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Likewise.
28683         * sysdeps/posix/sigblock.c (__sigblock): Likewise.
28684         * sysdeps/unix/sysv/linux/alpha/sigprocmask.c (__sigprocmask):
28685         Likewise.
28686         * sysdeps/unix/sysv/linux/ia64/sigprocmask.c (__sigprocmask):
28687         Likewise.
28688         * sysdeps/unix/sysv/linux/s390/s390-64/sigprocmask.c
28689         (__sigprocmask): Likewise.
28690         * sysdeps/unix/sysv/linux/sigprocmask.c (__sigprocmask):
28691         Likewise.
28692         * /sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c
28693         (__sigprocmask): Likewise.
28694         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c (__sigprocmask):
28695         Likewise.
28697 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
28699         [BZ #18822]
28700         * include/string.h (__strsep): Add libc_hidden_proto.
28701         * string/strsep.c (__strsep): Add libc_hidden_def.
28703 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
28705         [BZ #18822]
28706         * posix/spawn_int.h (__posix_spawn_file_actions_realloc): Add
28707         attribute_hidden.
28708         (__spawni): Likewise.
28710 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
28712         [BZ #18822]
28713         * include/sys/mman.h (__mremap): Add libc_hidden_proto.
28714         * sysdeps/unix/sysv/linux/m68k/mremap.S (__mremap): Add
28715         libc_hidden_def.
28717 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
28719         [BZ #18822]
28720         * include/malloc.h (__malloc_check_init): Add attribute_hidden.
28722 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
28724         [BZ #18822]
28725         * include/sys/ioctl.h (__ioctl): Add libc_hidden_proto.
28726         * misc/ioctl.c (__ioctl): Add libc_hidden_def.
28727         * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
28728         * sysdeps/unix/sysv/linux/aarch64/ioctl.S (__ioctl): Likewise.
28729         * sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S (__ioctl):
28730         Likewise.
28731         * sysdeps/unix/sysv/linux/powerpc/ioctl.c (__ioctl): Likewise.
28732         * sysdeps/unix/sysv/linux/tile/tilegx/ioctl.S (__ioctl): Likewise.
28734 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
28736         [BZ #18822]
28737         * intl/gettextP.h (__dcngettext): Add attribute_hidden.
28738         (__dcigettext): Likewise.
28740 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
28742         [BZ #18822]
28743         * include/sys/sysinfo.h (__get_nprocs_conf): Add
28744         libc_hidden_proto.
28745         (__get_nprocs): Likewise.
28746         (__get_phys_pages): Likewise.
28747         (__get_avphys_pages): Likewise.
28748         (__get_child_max): Add attribute_hidden.
28749         * misc/getsysstats.c (__get_nprocs_conf): Add libc_hidden_def.
28750         (__get_nprocs): Likewise.
28751         (__get_phys_pages): Likewise.
28752         (__get_avphys_pages): Likewise.
28753         * sysdeps/mach/getsysstats.c (__get_nprocs_conf): Add
28754         libc_hidden_def.
28755         (__get_nprocs): Likewise.
28756         (__get_phys_pages): Likewise.
28757         (__get_avphys_pages): Likewise.
28758         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Add
28759         libc_hidden_def.
28760         (__get_nprocs_conf): Likewise.
28761         (__get_phys_pages): Likewise.
28762         (__get_avphys_pages): Likewise.
28764 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
28766         [BZ #18822]
28767         * sysdeps/unix/sysv/linux/netlinkaccess.h (__netlink_open): Add
28768         attribute_hidden.
28769         (__netlink_close): Likewise.
28770         (__netlink_free_handle): Likewise.
28771         (__netlink_request): Likewise.
28773 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
28775         [BZ #18822]
28776         * include/rpc/rpc.h (__rpc_thread_variables): Add
28777         attribute_hidden.
28778         (__rpc_thread_svc_cleanup): Likewise.
28779         (__rpc_thread_clnt_cleanup): Likewise.
28780         (__rpc_thread_key_cleanup): Likewise.
28782 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
28784         [BZ #18822]
28785         * include/sys/uio.h (__readv): Add libc_hidden_proto.
28786         (__writev): Likewise.
28787         * misc/readv.c (__readv): Add libc_hidden_def.
28788         * misc/writev.c (__writev): Likewise.
28789         * sysdeps/posix/readv.c (__readv): Likewise.
28790         * sysdeps/posix/writev.c (__writev): Likewise.
28791         * sysdeps/unix/sysv/linux/readv.c: Include <sys/uio.h>.
28792         (__readv): Likewise.
28793         * sysdeps/unix/sysv/linux/writev.c: Include <sys/uio.h>.
28794         (__writev): Likewise.
28796 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
28798         [BZ #18822]
28799         * include/regex.h (__re_compile_fastmap): Add attribute_hidden.
28800         (__regcomp): Add libc_hidden_proto.
28801         (__regexec): Likewise.
28802         (__regfree): Likewise.
28803         * posix/regcomp.c (__regcomp): Add libc_hidden_def.
28804         (__regfree): Likewise.
28805         * posix/regexec.c (__regexec): Likewise.
28807 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
28809         [BZ #18822]
28810         * include/utmp.h (__updwtmp): Add libc_hidden_proto.
28811         (__getutent): Likewise.
28812         (__getutid): Likewise.
28813         (__getutline): Likewise.
28814         (__pututline): Likewise.
28815         (__getutent_r): Likewise.
28816         (__getutid_r): Likewise.
28817         (__getutline_r): Likewise.
28818         (__utmpname): Add attribute_hidden.
28819         (__setutent): Likewise.
28820         (__endutent): Likewise.
28821         * login/getutent.c (__getutent): Add libc_hidden_def.
28822         * login/getutent_r.c (__getutent_r): Likewise.
28823         (__pututline): Likewise.
28824         * login/getutid.c (__getutid): Likewise.
28825         * login/getutid_r.c (__getutid_r): Likewise.
28826         * login/getutline.c (__getutline): Likewise.
28827         * login/getutline_r.c (__getutline_r): Likewise.
28828         * login/updwtmp.c (__updwtmp): Likewise.
28830 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
28832         [BZ #18822]
28833         * include/dirent.h (__opendir): Always add attribute_hidden.
28834         (__fdopendir): Likewise.
28835         (__closedir): Likewise.
28836         (__readdir): Likewise.
28837         (__readdir64): Add libc_hidden_proto.
28838         * sysdeps/mach/hurd/readdir64.c (__readdir64): Add libc_hidden_def.
28839         * sysdeps/unix/sysv/linux/i386/readdir64.c (__readdir64): Likewise.
28840         * sysdeps/unix/sysv/linux/readdir64.c (__readdir64): Likewise.
28841         * sysdeps/unix/sysv/linux/wordsize-64/readdir.c (__GI___readdir64):
28842         New alias.
28844 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
28846         [BZ #18822]
28847         * include/aliases.h (__getaliasbyname_r): Add attribute_hidden.
28848         * include/netdb.h (__gethostbyaddr_r): Likewise.
28849         (__gethostbyname_r): Likewise.
28850         (__gethostbyname2_r): Likewise.
28851         (__getnetbyaddr_r): Likewise.
28852         (__getnetbyname_r): Likewise.
28853         (__getservbyname_r): Likewise.
28854         (__getservbyport_r): Likewise.
28855         (__getprotobyname_r): Likewise.
28856         (__getprotobynumber_r): Likewise.
28857         (__getnetgrent_r): Likewise.
28858         * include/rpc/netdb.h (__getrpcbyname_r): Likewise.
28859         (__getrpcbynumber_r): Likewise.
28860         * nss/getXXbyYY.c (INTERNAL (REENTRANT_NAME)): Likewise.
28862 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
28864         [BZ #18822]
28865         * include/stdio.h (__fcloseall): Add attribute_hidden.
28866         (__getline): Likewise.
28867         (__path_search): Likewise.
28868         (__gen_tempname): Likewise.
28869         (__libc_message): Likewise.
28870         (__flockfile): Likewise.
28871         (__funlockfile): Likewise.
28872         (__fxprintf): Likewise.
28873         (__fxprintf_nocancel): Likewise.
28875 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
28877         [BZ #18822]
28878         * include/gshadow.h (__fgetsgent_r): Add attribute_hidden.
28879         (__sgetsgent_r): Likewise.
28881 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
28883         [BZ #18822]
28884         * include/sys/statfs.h (__fstatfs): Add attribute_hidden.
28885         (__statfs64): Likewise.
28886         (__fstatfs64): Likewise.
28887         * include/sys/statvfs.h (__statvfs64): Likewise.
28888         (__fstatvfs64): Likewise.
28889         * sysdeps/unix/sysv/linux/pathconf.h (__statfs_link_max): Likewise.
28890         (__statfs_filesize_max): Likewise.
28891         (__statfs_symlinks): Likewise.
28892         (__statfs_chown_restricted): Likewise.
28894 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
28896         [BZ #18822]
28897         * include/time.h (__tzstring): Add attribute_hidden.
28898         (__tzfile_read): Likewise.
28899         (__tzfile_compute): Likewise.
28900         (__tzfile_default): Likewise.
28901         (__tzset_parse_tz): Likewise.
28902         (__offtime): Likewise.
28903         (__asctime_r): Likewise.
28904         (__tzset): Likewise.
28905         (__tz_convert): Likewise.
28906         (__getdate_r): Likewise.
28907         (__getclktck): Likewise.
28909 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
28911         [BZ #18822]
28912         * nscd/nscd-client.h (__nscd_get_map_ref): Add attribute_hidden.
28913         (__nscd_unmap): Likewise.
28914         (__nscd_cache_search): Likewise.
28915         (__nscd_get_nl_timestamp): Likewise.
28916         (__nscd_getpwnam_r): Likewise.
28917         (__nscd_getpwuid_r): Likewise.
28918         (__nscd_getgrnam_r): Likewise.
28919         (__nscd_getgrgid_r): Likewise.
28920         (__nscd_gethostbyname_r): Likewise.
28921         (__nscd_gethostbyname2_r): Likewise.
28922         (__nscd_gethostbyaddr_r): Likewise.
28923         (__nscd_getai): Likewise.
28924         (__nscd_getgrouplist): Likewise.
28925         (__nscd_getservbyname_r): Likewise.
28926         (__nscd_getservbyport_r): Likewise.
28927         (__nscd_innetgr): Likewise.
28928         (__nscd_setnetgrent): Likewise.
28930 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
28932         [BZ #18822]
28933         * include/gmp.h: Declare internal functions only if _ISOMAC is
28934         undefined.
28935         (__mpn_extract_double): Add attribute_hidden.
28936         (__mpn_extract_long_double): Likewise.
28937         (__mpn_extract_float128): Likewise.
28938         (__mpn_construct_float): Likewise.
28939         (__mpn_construct_double): Likewise.
28940         (__mpn_construct_long_double): Likewise.
28941         (__mpn_construct_float128): Likewise.
28942         (mpn_add_1): Likewise.
28943         (mpn_addmul_1): Likewise.
28944         (mpn_add_n): Likewise.
28945         (mpn_cmp): Likewise.
28946         (mpn_divrem): Likewise.
28947         (mpn_lshift): Likewise.
28948         (mpn_mul): Likewise.
28949         (mpn_mul_1): Likewise.
28950         (mpn_rshift): Likewise.
28951         (mpn_sub_1): Likewise.
28952         (mpn_submul_1): Likewise.
28953         (mpn_sub_n): Likewise.
28955 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
28957         [BZ #18822]
28958         * include/wchar.h (__wcsnlen): Add attribute_hidden.
28959         (__wcscat): Likewise.
28960         (__btowc): Likewise.
28961         (__wcrtomb): Likewise.
28962         (__mbsrtowcs): Likewise.
28963         (__wcsrtombs): Likewise.
28964         (__mbsnrtowcs): Likewise.
28965         (__wcsnrtombs): Likewise.
28966         (__wcsncpy): Likewise.
28967         (__wcpncpy): Likewise.
28968         (__wmemcpy): Likewise.
28969         (__wmempcpy): Likewise.
28970         (__wmemmove): Likewise.
28971         (__wcschrnul): Likewise.
28972         (__vfwscanf): Likewise.
28973         (__vswprintf): Likewise.
28974         (__fwprintf): Likewise.
28975         (__vfwprintf): Likewise.
28977 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
28979         [BZ #18822]
28980         * include/grp.h (__fgetgrent_r): Add attribute_hidden.
28981         (__getgrgid_r): Likewise.
28982         (__getgrnam_r): Likewise.
28983         * include/pwd.h (__getpwuid_r): Likewise.
28984         (__getpwnam_r): Likewise.
28985         (__fgetpwent_r): Likewise.
28986         * include/shadow.h (__getspnam_r): Likewise.
28987         (__sgetspent_r): Likewise.
28988         (__fgetspent_r): Likewise.
28990 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
28992         [BZ #18822]
28993         * include/unistd.h (__access): Add attribute_hidden.
28994         (__lseek64): Likewise.
28995         (__libc_pread64): Likewise.
28996         (__pipe2): Likewise.
28997         (__sleep): Likewise.
28998         (__chdir): Likewise.
28999         (__fchdir): Likewise.
29000         (__getcwd): Likewise.
29001         (__rmdir): Likewise.
29002         (__execvpe): Likewise.
29003         (__execve): Likewise.
29004         (__setsid): Likewise.
29005         (__getuid): Likewise.
29006         (__geteuid): Likewise.
29007         (__getgid): Likewise.
29008         (__getegid): Likewise.
29009         (__getgroups): Likewise.
29010         (__group_member): Likewise.
29011         (__ttyname_r): Likewise.
29012         (__isatty): Likewise.
29013         (__readlink): Likewise.
29014         (__unlink): Likewise.
29015         (__gethostname): Likewise.
29016         (__profil): Likewise.
29017         (__getdtablesize): Likewise.
29018         (__brk): Likewise.
29019         (__ftruncate): Likewise.
29020         (__ftruncate64): Likewise.
29022 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
29024         [BZ #18822]
29025         * argp/argp-fmtstream.c: Include <argp-fmtstream.h>.
29026         * argp/argp-fs-xinl.c: Likewise.
29027         * argp/argp-help.c: Include <argp.h> and <argp-fmtstream.h>.
29028         * argp/argp-parse.c: Include <argp.h>.
29029         * argp/argp-xinl.c: Likewise.
29030         * include/argp-fmtstream.h: New file.
29031         * include/argp.h (__argp_error): Add attribute_hidden.
29032         (__argp_failure): Likewise.
29033         (__argp_input): Likewise.
29034         (__argp_state_help): Likewise.
29036 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
29038         [BZ #18822]
29039         * include/wchar.h (____wcstof_l_internal): New prototype.
29040         (____wcstod_l_internal): Likewise.
29041         (____wcstold_l_internal): Likewise.
29042         (____wcstol_l_internal): Likewise.
29043         (____wcstoul_l_internal): Likewise.
29044         (____wcstoll_l_internal): Likewise.
29045         (____wcstoull_l_internal): Likewise.
29046         (____wcstof128_l_internal): Likewise.
29047         * sysdeps/ieee754/float128/wcstof128.c
29048         (____wcstof128_l_internal): Removed.
29049         * sysdeps/ieee754/float128/wcstof128_l.c
29050         (____wcstof128_l_internal): Likewise.
29051         * wcsmbs/wcstod.c (____wcstod_l_internal): Likewise.
29052         * wcsmbs/wcstod_l.c (____wcstod_l_internal): Likewise.
29053         * wcsmbs/wcstof.c (____wcstof_l_internal): Likewise.
29054         * wcsmbs/wcstof_l.c (____wcstof_l_internal): Likewise.
29055         * wcsmbs/wcstol_l.c (____wcstol_l_internal): Likewise.
29056         * wcsmbs/wcstold.c (____wcstold_l_internal): Likewise.
29057         * wcsmbs/wcstold_l.c (____wcstold_l_internal): Likewise.
29058         * wcsmbs/wcstoll_l.c (____wcstoll_l_internal): Likewise.
29059         * wcsmbs/wcstoul_l.c (____wcstoul_l_internal): Likewise.
29060         * wcsmbs/wcstoull_l.c (____wcstoull_l_internal): Likewise.
29062 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
29064         [BZ #18822]
29065         * sysdeps/unix/sysv/linux/fstatvfs.c: Include "internal_statvfs.h"
29066         instead of <sys/statvfs.h>.
29067         (__internal_statvfs): Removed.
29068         * sysdeps/unix/sysv/linux/fstatvfs64.c Include "internal_statvfs.h"
29069         instead of <sys/statvfs.h>.
29070         (__internal_statvfs64): Removed.
29071         * sysdeps/unix/sysv/linux/internal_statvfs.c: Include
29072         "internal_statvfs.h" instead of <sys/statvfs.h>.
29073         * sysdeps/unix/sysv/linux/internal_statvfs.h: New file.
29074         * sysdeps/unix/sysv/linux/statvfs.c Include "internal_statvfs.h"
29075         instead of <sys/statvfs.h>.
29076         (__internal_statvfs): Removed.
29077         * sysdeps/unix/sysv/linux/statvfs64.c Include "internal_statvfs.h"
29078         instead of <sys/statvfs.h>.
29079         (__internal_statvfs64): Removed.
29081 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
29083         [BZ #18822]
29084         * iconv/gconv_int.h (__gconv_open): Add attribute_hidden.
29085         (__gconv_close): Likewise.
29086         (__gconv): Likewise.
29087         (__gconv_find_transform): Likewise.
29088         (__gconv_lookup_cache): Likewise.
29089         (__gconv_compare_alias_cache): Likewise.
29090         (__gconv_load_cache): Likewise.
29091         (__gconv_get_path): Likewise.
29092         (__gconv_close_transform): Likewise.
29093         (__gconv_release_cache): Likewise.
29094         (__gconv_find_shlib): Likewise.
29095         (__gconv_release_shlib): Likewise.
29096         (__gconv_get_builtin_trans): Likewise.
29097         (__gconv_compare_alias): Likewise.
29098         * include/dlfcn.h (_dlerror_run): Likewise.
29099         * include/stdio.h (__fortify_fail_abort): Likewise.
29100         * include/time.h (__tz_compute): Likewise.
29101         (__strptime_internal): Likewise.
29102         * intl/gettextP.h (_nl_find_domain): Likewise.
29103         (_nl_load_domain): Likewise.
29104         (_nl_find_msg): Likewise.
29105         * intl/plural-exp.h (FREE_EXPRESSION): Likewise.
29106         (EXTRACT_PLURAL_EXPRESSION): Likewise.
29107         * locale/coll-lookup.h (__collidx_table_lookup): Likewise.
29108         * resolv/gai_misc.h (__gai_enqueue_request): Likewise.
29109         (__gai_find_request): Likewise.
29110         (__gai_remove_request): Likewise.
29111         (__gai_notify): Likewise.
29112         (__gai_notify_only): Likewise.
29113         * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
29114         * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
29115         (_dl_non_dynamic_init): Likewise.
29116         (_dl_aux_init): Likewise.
29117         * sysdeps/i386/machine-gmon.h (mcount_internal): Likewise.
29118         * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
29119         Likewise.
29120         * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv): Likewise.
29121         (__wcsmbs_clone_conv): Likewise.
29122         (__wcsmbs_named_conv): Likewise.
29124 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
29126         [BZ #18822]
29127         * include/stdlib.h (__random): Add attribute_hidden.
29128         (__random_r): Likewise.
29129         (__srandom_r): Likewise.
29130         (__initstate_r): Likewise.
29131         (__setstate_r): Likewise.
29132         (__erand48_r): Likewise.
29133         (__nrand48_r): Likewise.
29134         (__jrand48_r): Likewise.
29135         (__srand48_r): Likewise.
29136         (__seed48_r): Likewise.
29137         (__lcong48_r): Likewise.
29138         (__drand48_iterate): Likewise.
29139         (__setenv): Likewise.
29140         (__unsetenv): Likewise.
29141         (__clearenv): Likewise.
29142         (__ptsname_r): Likewise.
29143         (__posix_openpt): Likewise.
29144         (__add_to_environ): Likewise.
29145         (__realpath): Add libc_hidden_proto.
29146         (__ecvt_r): Likewise.
29147         (__fcvt_r): Likewise.
29148         (__qecvt_r): Likewise.
29149         (__qfcvt_r): Likewise.
29150         * misc/efgcvt_r.c (cvt_symbol_1): Add libc_hidden_def (local).
29151         * stdlib/canonicalize.c (__realpath): Add libc_hidden_def.
29153 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
29155         [BZ #18822]
29156         * include/stdlib.h (__ptsname_internal): Add attribute_hidden.
29157         * include/time.h (__mktime_internal): Likewise.
29158         * libio/iolibio.h (__fopen_internal): Likewise.
29160 2017-10-01  John David Anglin  <danglin@gcc.gnu.org>
29162         * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Save return
29163         pointer in frame.
29164         * sysdeps/unix/sysv/linux/hppa/setcontext.S (__setcontext): Likewise.
29165         Correct offset used to restore PIC register.
29167 2017-09-30  John David Anglin  <danglin@gcc.gnu.org>
29169         [BZ libc/22165]
29170         * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Use PIC
29171         code to load address of __getcontext_ret when generating PIC code.
29173 2017-09-30  H.J. Lu  <hongjiu.lu@intel.com>
29175         * elf/Makefile (tests-static-internal): Add
29176         tst-tls1-static-non-pie.
29177         (LDFLAGS-tst-tls1-static-non-pie): New.
29178         * elf/tst-tls1-static-non-pie.c: New file.
29180 2017-09-29  Joseph Myers  <joseph@codesourcery.com>
29182         * sysdeps/ieee754/dbl-64/s_asinh.c: Include <libm-alias-double.h>.
29183         (asinh): Define using libm_alias_double.
29184         * sysdeps/ieee754/dbl-64/s_cbrt.c: Include <libm-alias-double.h>.
29185         (cbrt): Define using libm_alias_double.
29186         * sysdeps/ieee754/dbl-64/s_copysign.c: Include
29187         <libm-alias-double.h>.
29188         (copysign): Define using libm_alias_double.
29189         * sysdeps/ieee754/dbl-64/s_erf.c: Include <libm-alias-double.h>.
29190         (erf): Define using libm_alias_double.
29191         (erfc): Likewise.
29192         * sysdeps/ieee754/dbl-64/s_expm1.c: Include <libm-alias-double.h>.
29193         (expm1): Define using libm_alias_double.
29194         * sysdeps/ieee754/dbl-64/s_fabs.c: Include <libm-alias-double.h>.
29195         (fabs): Define using libm_alias_double.
29196         * sysdeps/ieee754/dbl-64/s_fromfp.c (fromfp): Define using
29197         libm_alias_double.
29198         * sysdeps/ieee754/dbl-64/s_fromfp_main.c: Include
29199         <libm-alias-double.h>.
29200         * sysdeps/ieee754/dbl-64/s_fromfpx.c (fromfpx): Define using
29201         libm_alias_double.
29202         * sysdeps/ieee754/dbl-64/s_getpayload.c: Include
29203         <libm-alias-double.h>.
29204         (getpayload): Define using libm_alias_double.
29205         * sysdeps/ieee754/dbl-64/s_llrint.c: Include
29206         <libm-alias-double.h>.
29207         (llrint): Define using libm_alias_double.
29208         * sysdeps/ieee754/dbl-64/s_lrint.c: Include <libm-alias-double.h>.
29209         (lrint): Define using libm_alias_double.
29210         * sysdeps/ieee754/dbl-64/s_nextup.c: Include
29211         <libm-alias-double.h>.
29212         (nextup): Define using libm_alias_double.
29213         * sysdeps/ieee754/dbl-64/s_roundeven.c: Include
29214         <libm-alias-double.h>.
29215         (roundeven): Define using libm_alias_double.
29216         * sysdeps/ieee754/dbl-64/s_setpayload.c (setpayload): Define using
29217         libm_alias_double.
29218         * sysdeps/ieee754/dbl-64/s_setpayload_main.c: Include
29219         <libm-alias-double.h>.
29220         * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (setpayloadsig): Define
29221         using libm_alias_double.
29222         * sysdeps/ieee754/dbl-64/s_sin.c: Include <libm-alias-double.h>.
29223         (cos): Define using libm_alias_double.
29224         (sin): Likewise.
29225         * sysdeps/ieee754/dbl-64/s_sincos.c: Include
29226         <libm-alias-double.h>.
29227         (sincos): Define using libm_alias_double.
29228         * sysdeps/ieee754/dbl-64/s_tanh.c: Include <libm-alias-double.h>.
29229         (tanh): Define using libm_alias_double.
29230         * sysdeps/ieee754/dbl-64/s_totalorder.c: Include
29231         <libm-alias-double.h>.
29232         (totalorder): Define using libm_alias_double.
29233         * sysdeps/ieee754/dbl-64/s_totalordermag.c: Include
29234         <libm-alias-double.h>.
29235         (totalordermag): Define using libm_alias_double.
29236         * sysdeps/ieee754/dbl-64/s_ufromfp.c (ufromfp): Define using
29237         libm_alias_double.
29238         * sysdeps/ieee754/dbl-64/s_ufromfpx.c (ufromfpx): Define using
29239         libm_alias_double.
29240         * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c: Include
29241         <libm-alias-double.h>.
29242         (getpayload): Define using libm_alias_double.
29243         * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c: Include
29244         <libm-alias-double.h>.
29245         (roundeven): Define using libm_alias_double.
29246         * sysdeps/ieee754/dbl-64/wordsize-64/s_setpayload_main.c: Include
29247         <libm-alias-double.h>.
29248         * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c: Include
29249         <libm-alias-double.h>.
29250         (totalorder): Define using libm_alias_double.
29251         * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c: Include
29252         <libm-alias-double.h>.
29253         (totalordermag): Define using libm_alias_double.
29254         * sysdeps/ieee754/ldbl-opt/s_copysign.c (copysignl): Only define
29255         libc compat symbol here.
29256         * sysdeps/ieee754/ldbl-opt/s_asinh.c: Remove file.
29257         * sysdeps/ieee754/ldbl-opt/s_cbrt.c: Likewise.
29258         * sysdeps/ieee754/ldbl-opt/s_erf.c: Likewise.
29259         * sysdeps/ieee754/ldbl-opt/s_expm1.c: Likewise.
29260         * sysdeps/ieee754/ldbl-opt/s_fabs.c: Likewise.
29261         * sysdeps/ieee754/ldbl-opt/s_llrint.c: Likewise.
29262         * sysdeps/ieee754/ldbl-opt/s_lrint.c: Likewise.
29263         * sysdeps/ieee754/ldbl-opt/s_sin.c: Likewise.
29264         * sysdeps/ieee754/ldbl-opt/s_sincos.c: Likewise.
29265         * sysdeps/ieee754/ldbl-opt/s_tanh.c: Likewise.
29267 2017-09-29  H.J. Lu  <hongjiu.lu@intel.com>
29269         * sysdeps/arm/dl-machine.h (elf_machine_load_address): Use
29270         _dl_relocate_static_pie instead of _dl_start to compute load
29271         address in static PIE.  Return 0 if _DYNAMIC is undefined for
29272         static executable.
29274 2017-09-29  H.J. Lu  <hongjiu.lu@intel.com>
29276         * sysdeps/mips/dl-machine.h (elf_machine_dynamic): Return 0 if
29277         _DYNAMIC is undefined for static executable.
29279 2017-09-29  H.J. Lu  <hongjiu.lu@intel.com>
29281         * sysdeps/arm/start.S (_start): Check PIC instead of SHARED.
29283 2017-09-29  Joseph Myers  <joseph@codesourcery.com>
29285         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
29287 2017-09-29  Wilco Dijkstra  <wdijkstr@arm.com>
29289         * sysdeps/ieee754/dbl-64/e_lgamma_r.c
29290         (__ieee754_lgamma_r): Use fabs rather than __fabs.
29291         * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
29292         * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
29293         * sysdeps/ieee754/flt-32/e_lgammaf_r.c
29294         (__ieee754_lgammaf_r): Use fabsf rather than __fabsf.
29295         * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
29296         * sysdeps/ieee754/flt-32/e_log2f.c (__ieee754_log2f): Likewise.
29297         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c
29298         (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
29299         * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Likewise.
29300         * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Likewise.
29301         * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
29302         (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
29303         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l): Likewise.
29304         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l): Likewise.
29305         * sysdeps/powerpc/nofpu/Makefile: Add -fno-builtin-fabsl for BZ #29253.
29307 2017-09-29  Wilco Dijkstra  <wdijkstr@arm.com>
29309         * math/bits/cmathcalls.h (cimag): Remove inline.
29310         (creal): Remove inline.
29311         (conj): Remove inline.
29313 2017-09-29  Szabolcs Nagy  <szabolcs.nagy@arm.com>
29315         * math/Makefile (type-float-routines): Add e_powf_log2_data.
29316         * sysdeps/ieee754/flt-32/e_powf.c: New implementation.
29317         * sysdeps/ieee754/flt-32/e_powf_log2_data.c: New file.
29318         * sysdeps/ieee754/flt-32/math_config.h (__powf_log2_data): Define.
29319         (issignalingf_inline): Likewise.
29320         (POWF_LOG2_TABLE_BITS): Likewise.
29321         (POWF_LOG2_POLY_ORDER): Likewise.
29322         (POWF_SCALE_BITS): Likewise.
29323         (POWF_SCALE): Likewise.
29324         * sysdeps/i386/fpu/e_powf_log2_data.c: New file.
29325         * sysdeps/ia64/fpu/e_powf_log2_data.c: New file.
29326         * sysdeps/m68k/m680x0/fpu/e_powf_log2_data.c: New file.
29328 2017-09-29  Szabolcs Nagy  <szabolcs.nagy@arm.com>
29330         * math/Makefile (type-float-routines): Add e_log2f_data.
29331         * sysdeps/ieee754/flt-32/e_log2f.c: New implementation.
29332         * sysdeps/ieee754/flt-32/e_log2f_data.c: New file.
29333         * sysdeps/ieee754/flt-32/math_config.h (__log2f_data): Define.
29334         (LOG2F_TABLE_BITS, LOG2F_POLY_ORDER): Define.
29335         * sysdeps/i386/fpu/e_log2f_data.c: New file.
29336         * sysdeps/ia64/fpu/e_log2f_data.c: New file.
29337         * sysdeps/m68k/m680x0/fpu/e_log2f_data.c: New file.
29339 2017-09-29  Szabolcs Nagy  <szabolcs.nagy@arm.com>
29341         * math/Makefile (type-float-routines): Add e_logf_data.
29342         * sysdeps/ieee754/flt-32/e_logf.c: New implementation.
29343         * sysdeps/ieee754/flt-32/e_logf_data.c: New file.
29344         * sysdeps/ieee754/flt-32/math_config.h (__logf_data): Define.
29345         (LOGF_TABLE_BITS, LOGF_POLY_ORDER): Define.
29346         * sysdeps/i386/fpu/e_logf_data.c: New file.
29347         * sysdeps/ia64/fpu/e_logf_data.c: New file.
29348         * sysdeps/m68k/m680x0/fpu/e_logf_data.c: New file.
29350 2017-09-28  H.J. Lu  <hongjiu.lu@intel.com>
29352         * sysdeps/i386/dl-machine.h (elf_machine_load_address): Allow
29353         undefined _DYNAMIC in PIE libc.a.
29354         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
29355         Likewse.
29357 2017-09-28  Wilco Dijkstra  <wdijkstr@arm.com>
29359         * sysdeps/alpha/fpu/bits/mathinline.h: Delete file.
29360         * sysdeps/ia64/fpu/bits/mathinline.h: Delete file.
29361         * sysdeps/m68k/coldfire/fpu/bits/mathinline.h: Delete file.
29362         * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: (__signbitf): Remove.
29363         (__signbit): Remove.
29364         (__signbitl): Remove.
29365         * sysdeps/powerpc/bits/mathinline.h (__signbitf): Remove.
29366         (__signbit): Remove.
29367         (__signbitl): Remove.
29368         * sysdeps/s390/fpu/bits/mathinline.h: (__signbitf): Remove.
29369         (__signbit): Remove.
29370         (__signbitl): Remove.
29371         * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf): Remove.
29372         (__signbit): Remove.
29373         (__signbitl): Remove.
29374         * sysdeps/tile/bits/mathinline.h: Delete file.
29375         * sysdeps/x86/fpu/bits/mathinline.h (__signbitf): Remove.
29376         (__signbit): Remove.
29377         (__signbitl): Remove.
29379 2017-09-28  Wilco Dijkstra  <wdijkstr@arm.com>
29381         * math/math.h: Improve handling of C99 isgreater macros.
29382         * sysdeps/alpha/fpu/bits/mathinline.h: Remove isgreater macros.
29383         * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: Likewise.
29384         * sysdeps/powerpc/bits/mathinline.h: Likewise.
29385         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
29386         * sysdeps/x86/fpu/bits/mathinline.h: Likewise.
29388 2017-09-28  Szabolcs Nagy  <szabolcs.nagy@arm.com>
29390         * sysdeps/aarch64/libm-test-ulps: Update.
29392 2017-09-28  Joseph Myers  <joseph@codesourcery.com>
29394         [BZ #22225]
29395         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
29396         math_opt_barrier on argument when doing arithmetic on it.
29397         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
29398         Likewise.  Use math_force_eval not math_opt_barrier after
29399         arithmetic.
29400         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Use
29401         math_opt_barrier on argument when doing arithmetic on it.
29402         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
29403         Likewise.
29405 2017-09-27  H.J. Lu  <hongjiu.lu@intel.com>
29407         * sysdeps/unix/sysv/linux/ifaddrs.c (__getifaddrs): Add
29408         libc_hidden_def.
29409         (__freeifaddrs): Likewise.
29411 2017-09-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
29413         * include/dirent.h (__dirfd): New declaration.
29414         * dirent/dirfd.c (dirfd): Rename to __dirfd, and redefine as weak
29415         alias.
29416         * sysdeps/posix/dirfd/dirfd.c (dirfd): Likewise.
29417         * sysdeps/mach/hurd/dirfd.c (dirfd): Likewise.
29418         * io/ftw.c (open_dir_stream, ftw_dir): Use __dirfd instead of dirfd.
29419         * include/unistd.h (__revoke): New declaration.
29420         * misc/revoke.c (revoke): Rename to __revoke, and redefine as weak
29421         alias.
29422         * sysdeps/mach/hurd/revoke.c (revoke): Likewise.
29423         * sysdeps/unix/bsd/unlockpt.c (unlockpt): Use __revoke instead of
29424         revoke.
29425         * include/dirent.h (__seekdir): New declaration.
29426         * sysdeps/mach/hurd/seekdir.c (seekdir): Rename to __seekdir and
29427         redefine as weak alias.
29428         * sysdeps/mach/hurd/rewinddir.c (__rewinddir): Use __seekdir instead
29429         of seekdir.
29430         * include/ifaddrs.h (__getifaddrs, __freeifaddrs): New declarations,
29431         and use libc_hidden_def on them.
29432         * inet/ifaddrs.c (__getifaddrs, __freeifaddrs): Use libc_hidden_def on
29433         them.
29434         * sysdeps/gnu/ifaddrs.c (__getifaddrs, __freeifaddrs): Likewise.
29435         * inet/check_pf.c (__check_pf): Use __getifaddrs and __freeifaddrs
29436         instead of getifaddrs and freeifaddrs.
29438 2017-09-26  H.J. Lu  <hongjiu.lu@intel.com>
29440         [BZ #18822]
29441         * dlfcn/modatexit.c (foo): Remove __dso_handle check.
29442         * dlfcn/modcxaatexit.c: Include <dso_handle.h>.
29443         (__dso_handle): Remove declaration.
29444         * dlfcn/tstatexit.c (__dso_handle): Removed.
29445         (main): Don't check __dso_handle.
29446         * dlfcn/tstcxaatexit.c (__dso_handle): Removed.
29447         (main): Don't check __dso_handle.
29448         * include/dso_handle.h: New file.
29449         * malloc/mtrace.c: Include <dso_handle.h>.
29450         (mtrace): Pass __dso_handle directly.
29451         * nptl/pthread_atfork.c: Include <dso_handle.h>.
29452         (__dso_handle): Remove declaration.
29453         (__pthread_atfork): Pass __dso_handle directly.
29454         * nptl/tst-atfork2mod.c: Include <dso_handle.h>.
29455         (__dso_handle): Removed.
29456         * posix/wordexp-test.c: Include <dso_handle.h>.
29457         (__dso_handle): Remove declaration.
29458         (__app_register_atfork): Pass __dso_handle directly.
29459         * stdlib/at_quick_exit.c: Include <dso_handle.h>.
29460         (__dso_handle): Remove declaration.
29461         (at_quick_exit): Pass __dso_handle directly.
29462         * stdlib/atexit.c: Include <dso_handle.h>.
29463         (__dso_handle): Remove declaration.
29464         (atexit): Pass __dso_handle directly.
29465         * stdlib/tst-tls-atexit-lib.c: Include <dso_handle.h>.
29466         (__dso_handle): Removed.
29468 2017-09-26  Joseph Myers  <joseph@codesourcery.com>
29470         * sysdeps/unix/make-syscalls.sh: Use __ifunc to define symbols
29471         using VDSO.
29473 2017-09-26  Alexey Makhalov  <amakhalov@vmware.com>
29475         * elf/dl-tunables.c (do_tunable_update_val): Range checking fix.
29476         * scripts/gen-tunables.awk: Set unspecified minval and/or maxval
29477         values to correct default value for given type.
29479 2017-09-26  H.J. Lu  <hongjiu.lu@intel.com>
29481         [BZ #22101]
29482         * elf/Makefile (tests): Add tst-debug1.
29483         ($(objpfx)tst-debug1): New.
29484         ($(objpfx)tst-debug1.out): Likewise.
29485         ($(objpfx)tst-debug1mod1.so): Likewise.
29486         * elf/dl-load.c (_dl_map_object_from_fd): Skip PT_DYNAMIC segment
29487         with p_filesz == 0.
29488         * elf/tst-debug1.c: New file.
29490 2017-09-26  Joseph Myers  <joseph@codesourcery.com>
29492         * sysdeps/sparc/sparc-ifunc.h [!__ASSEMBLER__] (sparc_libm_ifunc):
29493         Define using __ifunc.
29495 2017-09-26  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
29497         * sysdeps/powerpc/fpu/libm-test-ulps: Regenerate expf() and
29498         exp2f() values.
29500 2017-09-26  Joseph Myers  <joseph@codesourcery.com>
29502         [BZ #22156]
29503         * sysdeps/ia64/stackinfo.h (DEFAULT_STACK_PERMS): Likewise.
29505 2017-09-26  Florian Weimer  <fweimer@redhat.com>
29507         * resolv/Makefile (tests-internal): Fix typo in comment.
29509 2017-09-26  Florian Weimer  <fweimer@redhat.com>
29511         * resolv/nss_dns/dns-host.c: Fix typo in comment.
29513 2017-09-25  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
29515         * lib/malloc/scratch_buffer.h (struct scratch_buffer):
29516         Use an union instead of a max_align_t array for __space,
29517         so that __space is the same size on all platforms.
29518         * malloc/scratch_buffer_grow_preserve.c
29519         (__libc_scratch_buffer_grow_preserve): Likewise.
29521         [BZ #22183]
29522         * include/gnu-versions.h (_GNU_GLOB_INTERFACE_VERSION): Increase
29523         version to 2.
29524         * posix/Makefile (routines): Add glob-lstat-compat and
29525         glob64-lstat-compat.
29526         * posix/Versions (GLIBC_2.27, glob, glob64): Add symbol version.
29527         * posix/glob-lstat-compat.c: New file.
29528         * posix/glob64-lstat-compat.c: Likewise.
29529         * posix/tst-glob_lstat_compat.c: Likewise.
29530         * sysdeps/unix/sysv/linux/glob-lstat-compat.c: Likewise.
29531         * sysdeps/unix/sysv/linux/alpha/glob-lstat-compat.c: Likewise.
29532         * sysdeps/unix/sysv/linux/glob64-lstat-compat.c: Likewise.
29533         * sysdeps/unix/sysv/linux/s390/s390-32/glob64-lstat-compat.c:
29534         Likewise.
29535         * sysdeps/unix/sysv/linux/alpha/glob.c: Remove file.
29536         * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
29537         * posix/glob.c (glob_lstat): New function.
29538         (glob): Rename to __glob and add versioned symbol to 2.27.
29539         (glob_in_dir): Use glob_lstat.
29540         * posix/glob64.c (glob64): Add GLOB_ATTRIBUTE.
29541         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
29542         * sysdeps/unix/sysv/linux/glob.c (glob): Add versioned symbol for
29543         2.27.
29544         * sysdeps/unix/sysv/linux/glob64.c (glob64): Likewise.
29545         * sysdeps/unix/sysv/linux/oldglob.c (GLOB_NO_LSTAT): Define.
29546         * sysdeps/unix/sysv/linux/alpha/oldglob.c (__old_glob): Do not use
29547         gl_lstat on glob call.
29548         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add GLIBC_2.27 glob
29549         and glob64 symbols.
29550         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
29551         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
29552         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
29553         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
29554         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
29555         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
29556         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
29557         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
29558         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
29559         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
29560         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
29561         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
29562         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
29563         Likewise.
29564         * sysdeps/unix/linux/powerpc/powerpc32/nofpu/libc.abilist: Likewise.
29565         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
29566         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
29567         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
29568         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
29569         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
29570         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
29571         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
29572         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
29573         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
29574         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
29575         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
29577 2017-09-25  H.J. Lu  <hongjiu.lu@intel.com>
29579         * configure.ac (AS): Require binutils 2.25 or later.
29580         * configure: Regenerated.
29582 2017-09-25  Paul Pluzhnikov  <ppluzhnikov@google.com>
29584         [BZ #22207]
29585         * stdlib/test-atexit-race-common.c (do_test): Minimize required
29586         VM size.
29588 2017-09-25  DJ Delorie  <dj@redhat.com>
29590         [BZ #22161]
29591         * nscd/netgroupcache.c (addinnetgrX): Release read lock after
29592         resetting timeout.
29594 2017-09-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
29596         * sysdeps/ieee754/dbl-64/sincos32.h
29597         [SINCCOS32_H]: Remove define.
29598         [SINCOS32_H]: Define.
29600 2017-09-25  Szabolcs Nagy  <szabolcs.nagy@arm.com>
29602         * math/Versions (expf): New libm symbol at GLIBC_2.27.
29603         (exp2f): Likewise.
29604         * math/w_exp2f.c: New file.
29605         * math/w_expf.c: New file.
29606         * math/w_exp2f_compat.c (__exp2f_compat): For compat symbol only.
29607         * math/w_expf_compat.c (__expf_compat): Likewise.
29608         * sysdeps/ia64/fpu/e_exp2f.S: Add versioned symbols.
29609         * sysdeps/ia64/fpu/e_expf.S: Likewise.
29610         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
29611         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
29612         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
29613         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
29614         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
29615         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
29616         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
29617         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
29618         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
29619         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
29620         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
29621         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
29622         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
29623         Likewise.
29624         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
29625         Likewise.
29626         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
29627         Likewise.
29628         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
29629         Likewise.
29630         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
29631         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
29632         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
29633         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
29634         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
29635         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
29636         Likewise.
29637         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
29638         Likewise.
29639         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
29640         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
29641         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
29643 2017-09-25  Szabolcs Nagy  <szabolcs.nagy@arm.com>
29645         * math/Makefile (type-float-routines): Add math_errf and e_exp2f_data.
29646         * sysdeps/aarch64/fpu/math_private.h (TOINT_INTRINSICS): Define.
29647         (roundtoint, converttoint): Likewise.
29648         * sysdeps/ieee754/flt-32/e_expf.c: New implementation.
29649         * sysdeps/ieee754/flt-32/e_exp2f.c: New implementation.
29650         * sysdeps/ieee754/flt-32/e_exp2f_data.c: New file.
29651         * sysdeps/ieee754/flt-32/math_config.h: New file.
29652         * sysdeps/ieee754/flt-32/math_errf.c: New file.
29653         * sysdeps/ieee754/flt-32/t_exp2f.h: Remove.
29654         * sysdeps/i386/fpu/e_exp2f_data.c: New file.
29655         * sysdeps/i386/fpu/math_errf.c: New file.
29656         * sysdeps/ia64/fpu/e_exp2f_data.c: New file.
29657         * sysdeps/ia64/fpu/math_errf.c: New file.
29658         * sysdeps/m68k/m680x0/fpu/e_exp2f_data.c: New file.
29659         * sysdeps/m68k/m680x0/fpu/math_errf.c: New file.
29661 2017-09-24  Samuel Thibault  <samuel.thibault@ens-lyon.org>
29663         * sysdeps/mach/hurd/dl-sysdep.c (check_no_hidden): New macro.
29664         (__open, __close, __libc_read, __libc_write, __writev, __libc_lseek64,
29665         __mmap, __fxstat64, __xstat64, __access, __access_noerrno, __getpid,
29666         __getcwd, __sbrk, __strtoul_internal, _exit, abort): Use check_no_hidden
29667         to make sure that these symbols are defined.
29668         * sysdeps/mach/hurd/bits/socket.h: Include <bits/wordsize.h> instead
29669         of <limits.h>
29670         (__need_NULL): Do not define.
29671         (__ss_aligntype): Use __WORDSIZE instead of ULONG_MAX to determine
29672         alignment.
29673         [!__USE_MISC] (pseudo_AF_XTP, pseudo_AF_RTIP, pseudo_AF_PIP,
29674         CMGROUP_MAX, cmsgcred): Do not define.
29675         (CMSG_FIRSTHDR, __cmsg_nxthdr): Use (struct cmsghdr *) 0 instead of
29676         NULL.
29677         * bits/socket.h: Likewise.
29678         * sysdeps/unix/clock_gettime.c (realtime_gettime, __clock_gettime): Use
29679         __gettimeofday instead of gettimeofday.
29680         * sysdeps/unix/clock_settime.c (__clock_settime): Use __settimeofday
29681         instead of settimeofday.
29683 2017-09-22  Joseph Myers  <joseph@codesourcery.com>
29685         * sysdeps/ieee754/flt-32/s_asinhf.c: Include <libm-alias-float.h>.
29686         (asinhf): Define using libm_alias_float.
29687         * sysdeps/ieee754/flt-32/s_atanf.c: Include <libm-alias-float.h>.
29688         (atanf): Define using libm_alias_float.
29689         * sysdeps/ieee754/flt-32/s_cbrtf.c: Include <libm-alias-float.h>.
29690         (cbrtf): Define using libm_alias_float.
29691         * sysdeps/ieee754/flt-32/s_ceilf.c: Include <libm-alias-float.h>.
29692         (ceilf): Define using libm_alias_float.
29693         * sysdeps/ieee754/flt-32/s_copysignf.c: Include
29694         <libm-alias-float.h>.
29695         (copysignf): Define using libm_alias_float.
29696         * sysdeps/ieee754/flt-32/s_cosf.c: Include <libm-alias-float.h>.
29697         (cosf): Define using libm_alias_float.
29698         * sysdeps/ieee754/flt-32/s_erff.c: Include <libm-alias-float.h>.
29699         (erff): Define using libm_alias_float.
29700         (erfcf): Likewise.
29701         * sysdeps/ieee754/flt-32/s_expm1f.c: Include <libm-alias-float.h>.
29702         (expm1f): Define using libm_alias_float.
29703         * sysdeps/ieee754/flt-32/s_fabsf.c: Include <libm-alias-float.h>.
29704         (fabsf): Define using libm_alias_float.
29705         * sysdeps/ieee754/flt-32/s_floorf.c: Include <libm-alias-float.h>.
29706         (floorf): Define using libm_alias_float.
29707         * sysdeps/ieee754/flt-32/s_frexpf.c: Include <libm-alias-float.h>.
29708         (frexpf): Define using libm_alias_float.
29709         * sysdeps/ieee754/flt-32/s_fromfpf.c (fromfpf): Define using
29710         libm_alias_float.
29711         * sysdeps/ieee754/flt-32/s_fromfpf_main.c: Include
29712         <libm-alias-float.h>.
29713         * sysdeps/ieee754/flt-32/s_fromfpxf.c (fromfpxf): Define using
29714         libm_alias_float.
29715         * sysdeps/ieee754/flt-32/s_getpayloadf.c: Include
29716         <libm-alias-float.h>.
29717         (getpayloadf): Define using libm_alias_float.
29718         * sysdeps/ieee754/flt-32/s_llrintf.c: Include
29719         <libm-alias-float.h>.
29720         (llrintf): Define using libm_alias_float.
29721         * sysdeps/ieee754/flt-32/s_llroundf.c: Include
29722         <libm-alias-float.h>.
29723         (llroundf): Define using libm_alias_float.
29724         * sysdeps/ieee754/flt-32/s_logbf.c: Include <libm-alias-float.h>.
29725         (logbf): Define using libm_alias_float.
29726         * sysdeps/ieee754/flt-32/s_lrintf.c: Include <libm-alias-float.h>.
29727         (lrintf): Define using libm_alias_float.
29728         * sysdeps/ieee754/flt-32/s_lroundf.c: Include <libm-alias-float.h>.
29729         (lroundf): Define using libm_alias_float.
29730         * sysdeps/ieee754/flt-32/s_modff.c: Include <libm-alias-float.h>.
29731         (modff): Define using libm_alias_float.
29732         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Include
29733         <libm-alias-float.h>.
29734         (nearbyintf): Define using libm_alias_float.
29735         * sysdeps/ieee754/flt-32/s_nextafterf.c: Include
29736         <libm-alias-float.h>.
29737         (nextafterf): Define using libm_alias_float.
29738         * sysdeps/ieee754/flt-32/s_nextupf.c: Include
29739         <libm-alias-float.h>.
29740         (nextupf): Define using libm_alias_float.
29741         * sysdeps/ieee754/flt-32/s_remquof.c: Include
29742         <libm-alias-float.h>.
29743         (remquof): Define using libm_alias_float.
29744         * sysdeps/ieee754/flt-32/s_rintf.c: Include <libm-alias-float.h>.
29745         (rintf): Define using libm_alias_float.
29746         * sysdeps/ieee754/flt-32/s_roundevenf.c: Include
29747         <libm-alias-float.h>.
29748         (roundevenf): Define using libm_alias_float.
29749         * sysdeps/ieee754/flt-32/s_roundf.c: Include <libm-alias-float.h>.
29750         (roundf): Define using libm_alias_float.
29751         * sysdeps/ieee754/flt-32/s_setpayloadf.c (setpayloadf): Define
29752         using libm_alias_float.
29753         * sysdeps/ieee754/flt-32/s_setpayloadf_main.c: Include
29754         <libm-alias-float.h>.
29755         * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (setpayloadsigf):
29756         Define using libm_alias_float.
29757         * sysdeps/ieee754/flt-32/s_sincosf.c: Include
29758         <libm-alias-float.h>.
29759         (sincosf): Define using libm_alias_float.
29760         * sysdeps/ieee754/flt-32/s_sinf.c: Include <libm-alias-float.h>.
29761         (sinf): Define using libm_alias_float.
29762         * sysdeps/ieee754/flt-32/s_tanf.c: Include <libm-alias-float.h>.
29763         (tanf): Define using libm_alias_float.
29764         * sysdeps/ieee754/flt-32/s_tanhf.c: Include <libm-alias-float.h>.
29765         (tanhf): Define using libm_alias_float.
29766         * sysdeps/ieee754/flt-32/s_totalorderf.c: Include
29767         <libm-alias-float.h>.
29768         (totalorderf): Define using libm_alias_float.
29769         * sysdeps/ieee754/flt-32/s_totalordermagf.c: Include
29770         <libm-alias-float.h>.
29771         (totalordermagf): Define using libm_alias_float.
29772         * sysdeps/ieee754/flt-32/s_truncf.c: Include <libm-alias-float.h>.
29773         (truncf): Define using libm_alias_float.
29774         * sysdeps/ieee754/flt-32/s_ufromfpf.c (ufromfpf): Define using
29775         libm_alias_float.
29776         * sysdeps/ieee754/flt-32/s_ufromfpxf.c (ufromfpxf): Define using
29777         libm_alias_float.
29779 2017-09-22  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
29781         [BZ #22146]
29782         math/math.h: Let fpclassify use the builtin in C++ mode, even
29783         when optimazing for size.
29785 2017-09-22  Joseph Myers  <joseph@codesourcery.com>
29787         * csu/Makefile (generated): Do not add version-info.h.
29788         (before-compile): Likewise.
29789         (all-Banner-files): Remove variable.
29790         ($(objpfx)version-info.h): Remove rule.
29791         * csu/version.c (banner): Do not include "version-info.h".
29792         * libidn/Banner: Remove.
29793         * manual/contrib.texi (Simon Josefsson): New entry.
29795 2017-09-21  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
29797         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
29798         Remove conditionals on LDBL_MANT_DIG.
29799         * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
29800         (__ieee754_lgammal_r): Likewise.
29802 2017-09-21  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
29804         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Remove definitions of
29805         _Float128 and L().
29806         * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Remove definitions of
29807         _Float128 and L(). Replace _Float128 with long double and L(x)
29808         with xL, throughout the file.
29809         * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
29810         * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
29811         * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
29812         * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
29814 2017-09-21  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
29816         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Include tables from
29817         sysdeps/ieee754/ldbl-128ibm.
29818         * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Copy contents from the
29819         equivalent implementation in sysdeps/ieee754/ldbl-128/ instead
29820         of including it.  Keep _Float128 and L() intact.  These will be
29821         reviewed by a separate patch.
29822         * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
29823         * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
29824         * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
29825         * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
29827 2017-09-21  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
29829         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c
29830         (__finitef128): Define to __redirect___finitef128.
29831         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c
29832         (__isinff128): Define to __redirect___isinff128.
29833         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c
29834         (__isnanf128): Define to __redirect___isnanf128.
29836 2017-09-21  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
29838         * sysdeps/powerpc/powerpc64le/Makefile
29839         (CFLAGS-tst-strtod-nan-locale.c): New variable.
29840         (CFLAGS-tst-wcstod-nan-locale.c): New variable.
29842 2017-09-21  Paul Pluzhnikov  <ppluzhnikov@google.com>
29843             Carlos O'Donell  <carlos@redhat.com>
29845         [BZ #22180]
29846         * stdlib/Makefile (tests): Add test-dlclose-exit-race.
29847         * stdlib/test-dlclose-exit-race.c: New file.
29848         * stdlib/test-dlclose-exit-race-helper.c: New file.
29849         * stdlib/exit.c (__run_exit_handlers): Mark slot as free.
29851 2017-09-21  Joseph Myers  <joseph@codesourcery.com>
29853         * crypt/Banner: Remove file.
29854         * nptl/Banner: Likewise.
29855         * resolv/Banner: Likewise.
29856         * soft-fp/Banner: Likewise.
29857         * nptl/Makefile ($(objpfx)banner.h): Remove rule.
29858         ($(objpfx)version.d): Remove dependency on banner.h.
29859         ($(objpfx)version.os): Likewise.
29860         * nptl/version.c (banner): Do not include banner.h.
29861         * manual/contrib.texi: Update entries for Richard Henderson, Jakub
29862         Jelinek and BIND code.
29864 2017-09-20  Paul Pluzhnikov  <ppluzhnikov@google.com>
29865             Carlos O'Donell  <carlos@redhat.com>
29867         * support/xdlfcn.h: New file.
29868         * support/xdlfcn.c: New file.
29869         * support/Makefile (libsupport-routines): Add xdlfcn.
29870         * stdlib/tst-tls-atexit.c: Use xdlopen, xdlsym, xdlclose.
29872 2017-09-20  Joseph Myers  <joseph@codesourcery.com>
29874         [BZ #20142]
29875         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
29876         Add s_trunc-c, s_truncf-c, s_trunc-sse4_1 and s_truncf-sse4_1.
29877         * sysdeps/x86_64/fpu/multiarch/s_trunc-c.c: New file.
29878         * sysdeps/x86_64/fpu/multiarch/s_trunc-sse4_1.S: Likewise.
29879         * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Likewise.
29880         * sysdeps/x86_64/fpu/multiarch/s_truncf-c.c: Likewise.
29881         * sysdeps/x86_64/fpu/multiarch/s_truncf-sse4_1.S: Likewise.
29882         * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Likewise.
29884 2017-09-20  Paul Pluzhnikov  <ppluzhnikov@google.com>
29885             Ricky Zhou  <rickyz@google.com>
29886             Anoop V Chakkalakkal  <anoop.vijayan@in.ibm.com>
29888         [BZ #14333]
29889         * stdlib/cxa_atexit.c (__internal_atexit): Use __exit_funcs_lock.
29890         Remove atomics.
29891         (__new_exitfn): Fail registration when we finished at_exit processing.
29892         * stdlib/cxa_finalize.c (__cxa_finalize): Likewise.
29893         * stdlib/on_exit.c (__on_exit): Likewise.
29894         * stdlib/exit.c (__exit_funcs_done): New variable.
29895         (__run_exit_handlers): Use __exit_funcs_lock.
29896         * stdlib/exit.h (__exit_funcs_lock, __exit_funcs_done): New
29897         declarations.
29898         * stdlib/Makefile (test-atexit-race, test-quick_at_exit-race)
29899         (test-cxa_atexit-race, test-on_exit-race): New tests.
29900         * stdlib/test-atexit-race-common.c: New file.
29901         * stdlib/test-atexit-race.c: New file.
29902         * stdlib/test-at_quick_exit-race.c: New file.
29903         * stdlib/test-cxa_atexit-race.c: New file.
29904         * stdlib/test-on_exit-race.c: New file.
29906 2017-09-20  Szabolcs Nagy  <szabolcs.nagy@arm.com>
29908         * benchtests/Makefile: Add exp2f and log2f benchmarks.
29909         * benchtests/exp2f-inputs: Copy of expf-inputs.
29910         * benchtests/log2f-inputs: Copy of logf-inputs.
29912 2017-09-19  Joseph Myers  <joseph@codesourcery.com>
29914         * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]:
29915         Explicitly take address of first element of array arguments in
29916         call to INLINE_SYSCALL.
29918 2017-09-19  Andreas Schwab  <schwab@suse.de>
29920         [BZ #22134]
29921         * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]: Try
29922         execveat first.
29923         [!__ASSUME_EXECVEAT]: Fall back to /proc if execveat is
29924         unimplemented.
29925         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_EXECVEAT)
29926         [__LINUX_KERNEL_VERSION >= 0x031300]: Define.
29927         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
29928         (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040200]: Undef.
29929         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
29930         (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
29931         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
29932         (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
29933         * posix/Makefile (tests): Add tst-fexecve.
29934         * posix/tst-fexecve.c: New file.
29936 2017-09-19  Wilco Dijkstra  <wdijkstr@arm.com>
29938         * benchtests/Makefile: Add logf benchmark.
29939         * benchtests/logf-inputs: Add reduced trace from wrf_r.
29941 2017-09-19  Wilco Dijkstra  <wdijkstr@arm.com>
29943         * benchtests/Makefile: Add expf benchmark.
29944         * benchtests/expf-inputs: Add reduced trace from wrf_r.
29946 2017-09-19  Wilco Dijkstra  <wdijkstr@arm.com>
29948         * csu/Makefile: Add -funwind-tables to libc-start.c.
29949         * debug/Makefile: Add -funwind-tables to backtrace.c.
29950         * sysdeps/aarch64/Makefile: Remove CFLAGS-backtrace.c.
29951         * sysdeps/arm/Makefile: Likewise.
29952         * sysdeps/i386/Makefile: Likewise.
29953         * sysdeps/m68k/Makefile: Likewise.
29954         * sysdeps/mips/Makefile: Likewise.
29955         * sysdeps/nios2/Makefile: Likewise.
29956         * sysdeps/sh/Makefile: Likewise.
29957         * sysdeps/sparc/Makefile: Likewise.
29959 2017-09-19  Joseph Myers  <joseph@codesourcery.com>
29961         * benchtests/Makefile (bench-math): Add trunc and truncf.
29962         (CFLAGS-bench-trunc.c): New variable.
29963         (CFLAGS-bench-truncf.c): Likewise.
29964         * benchtests/trunc-inputs: New file.
29965         * benchtests/truncf-inputs: Likewise.
29967 2017-09-19  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
29969         * sysdeps/powerpc/powerpc64/power8/memset.S: Avoid misaligned stores.
29971 2017-09-18  Joseph Myers  <joseph@codesourcery.com>
29973         * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT &&
29974         !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)] (weak_alias): Undefine and
29975         redefine.
29976         [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
29977         (exp10l): Define as weak alias.
29978         * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c [LIBM_SVID_COMPAT
29979         && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (weak_alias): Undefine
29980         and redefine.
29981         [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)]
29982         (remainderl): Define as weak alias.
29984         * math/s_fmal.c: Include <libm-alias-ldouble.h>.
29985         (fmal): Define using libm_alias_ldouble.
29986         * math/w_acoshl_compat.c: Include <libm-alias-ldouble.h>.
29987         (acoshl): Define using libm_alias_ldouble.
29988         * math/w_acosl_compat.c: Include <libm-alias-ldouble.h>.
29989         (acosl): Define using libm_alias_ldouble.
29990         * math/w_asinl_compat.c: Include <libm-alias-ldouble.h>.
29991         (asinl): Define using libm_alias_ldouble.
29992         * math/w_atan2l_compat.c: Include <libm-alias-ldouble.h>.
29993         (atan2l): Define using libm_alias_ldouble.
29994         * math/w_atanhl_compat.c: Include <libm-alias-ldouble.h>.
29995         (atanhl): Define using libm_alias_ldouble.
29996         * math/w_coshl_compat.c: Include <libm-alias-ldouble.h>.
29997         (coshl): Define using libm_alias_ldouble.
29998         * math/w_exp10l_compat.c: Include <libm-alias-ldouble.h>.
29999         (exp10l): Define using libm_alias_ldouble.
30000         * math/w_exp2l_compat.c: Include <libm-alias-ldouble.h>.
30001         (exp2l): Define using libm_alias_ldouble.
30002         * math/w_expl_compat.c: Include <libm-alias-ldouble.h>.
30003         (expl): Define using libm_alias_ldouble.
30004         * math/w_fmodl_compat.c: Include <libm-alias-ldouble.h>.
30005         (fmodl): Define using libm_alias_ldouble.
30006         * math/w_hypotl_compat.c: Include <libm-alias-ldouble.h>.
30007         (hypotl): Define using libm_alias_ldouble.
30008         * math/w_j0l_compat.c: Include <libm-alias-ldouble.h>.
30009         (j0l): Define using libm_alias_ldouble.
30010         (y0l): Likewise.
30011         * math/w_j1l_compat.c: Include <libm-alias-ldouble.h>.
30012         (j1l): Define using libm_alias_ldouble.
30013         (y1l): Likewise.
30014         * math/w_jnl_compat.c: Include <libm-alias-ldouble.h>.
30015         (jnl): Define using libm_alias_ldouble.
30016         (ynl): Likewise.
30017         * math/w_log10l_compat.c: Include <libm-alias-ldouble.h>.
30018         (log10l): Define using libm_alias_ldouble.
30019         * math/w_log2l_compat.c: Include <libm-alias-ldouble.h>.
30020         (log2l): Define using libm_alias_ldouble.
30021         * math/w_logl_compat.c: Include <libm-alias-ldouble.h>.
30022         (logl): Define using libm_alias_ldouble.
30023         * math/w_powl_compat.c: Include <libm-alias-ldouble.h>.
30024         (powl): Define using libm_alias_ldouble.
30025         * math/w_remainderl_compat.c: Include <libm-alias-ldouble.h>.
30026         (remainderl): Define using libm_alias_ldouble.
30027         * math/w_sinhl_compat.c: Include <libm-alias-ldouble.h>.
30028         (sinhl): Define using libm_alias_ldouble.
30029         * math/w_sqrtl_compat.c: Include <libm-alias-ldouble.h>.
30030         (sqrtl): Define using libm_alias_ldouble.
30031         * math/w_tgammal_compat.c: Include <libm-alias-ldouble.h>.
30032         (tgammal): Define using libm_alias_ldouble.
30033         * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT]
30034         (exp10l): Do not use long_double_symbol here.
30035         * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
30036         [LIBM_SVID_COMPAT] (remainderl): Likewise.
30037         * sysdeps/ieee754/ldbl-opt/s_fmal.c: Remove.
30038         * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
30039         * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
30040         * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
30041         * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
30042         * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
30043         * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
30044         * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
30045         * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
30046         * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
30047         * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
30048         * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
30049         * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
30050         * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
30051         * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
30052         * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
30053         * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
30054         * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
30055         * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
30056         * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
30058 2017-09-18  Wang Boshi  <wangboshi@huawei.com>  (tiny change)
30060         * sysdeps/aarch64/start.S: Use MOVL instead of literal pools.
30061         * sysdeps/aarch64/sysdep.h (MOVL): Add MOVL macro.
30063 2017-09-17  Samuel Thibault  <samuel.thibault@ens-lyon.org>
30065         * io/read.c (read): Add libc_hidden_weak.
30066         * sysdeps/mach/hurd/read.c (read): Likewise.
30067         * io/write.c (write): Likewise.
30068         * sysdeps/mach/hurd/write.c (write): Likewise.
30069         * io/pread64.c (__pread64): Likewise.
30070         * sysdeps/mach/hurd/pread64.c (__pread64): Likewise.
30071         * posix/pread64.c (__pread64): Add libc_hidden_def.
30073 2017-09-16  Siddhesh Poyarekar  <siddhesh@sourceware.org>
30075         * benchtests/scripts/compare_strings.py: New option -g.
30076         (draw_graph): Print a message that a graph is being generated.
30077         (process_results): Generate graph only if -g is passed.
30078         (main): Process option -g.
30080         * benchtests/scripts/compare_strings.py (process_results):
30081         Better spacing for output.
30083         * benchtests/scripts/compare_strings.py: Use argparse.
30084         * benchtests/README: Document existence of compare_strings.py.
30086 2017-09-15  Joseph Myers  <joseph@codesourcery.com>
30088         * math/s_fma.c: Include <libm-alias-double.h>.
30089         (fma): Define using libm_alias_double.
30090         * math/s_nextafter.c: Include <libm-alias-double.h>.
30091         (nextafter): Define using libm_alias_double.
30092         * math/w_acos_compat.c: Include <libm-alias-double.h>.
30093         (acos): Define using libm_alias_double.
30094         * math/w_acosh_compat.c: Include <libm-alias-double.h>.
30095         (aocsh): Define using libm_alias_double.
30096         * math/w_asin_compat.c: Include <libm-alias-double.h>.
30097         (asin): Define using libm_alias_double.
30098         * math/w_atan2_compat.c: Include <libm-alias-double.h>.
30099         (atan2): Define using libm_alias_double.
30100         * math/w_atanh_compat.c: Include <libm-alias-double.h>.
30101         (atanh): Define using libm_alias_double.
30102         * math/w_cosh_compat.c: Include <libm-alias-double.h>.
30103         (cosh): Define using libm_alias_double.
30104         * math/w_exp10_compat.c: Include <libm-alias-double.h>.
30105         (exp10): Define using libm_alias_double.
30106         * math/w_exp2_compat.c: Include <libm-alias-double.h>.
30107         (exp2): Define using libm_alias_double.
30108         * math/w_exp_compat.c: Include <libm-alias-double.h>.
30109         (exp): Define using libm_alias_double.
30110         * math/w_fmod_compat.c: Include <libm-alias-double.h>.
30111         (fmod): Define using libm_alias_double.
30112         * math/w_hypot_compat.c: Include <libm-alias-double.h>.
30113         (hypot): Define using libm_alias_double.
30114         * math/w_j0_compat.c: Include <libm-alias-double.h>.
30115         (j0): Define using libm_alias_double.
30116         (y0): Likewise.
30117         * math/w_j1_compat.c: Include <libm-alias-double.h>.
30118         (j1): Define using libm_alias_double.
30119         (y1): Likewise.
30120         * math/w_jn_compat.c: Include <libm-alias-double.h>.
30121         (jn): Define using libm_alias_double.
30122         (yn): Likewise.
30123         * math/w_log10_compat.c: Include <libm-alias-double.h>.
30124         (log10): Define using libm_alias_double.
30125         * math/w_log2_compat.c: Include <libm-alias-double.h>.
30126         (log2): Define using libm_alias_double.
30127         * math/w_log_compat.c: Include <libm-alias-double.h>.
30128         (log): Define using libm_alias_double.
30129         * math/w_pow_compat.c: Include <libm-alias-double.h>.
30130         (pow): Define using libm_alias_double.
30131         * math/w_remainder_compat.c: Include <libm-alias-double.h>.
30132         (remainder): Define using libm_alias_double.
30133         * math/w_sinh_compat.c: Include <libm-alias-double.h>.
30134         (sinh): Define using libm_alias_double.
30135         * math/w_sqrt_compat.c: Include <libm-alias-double.h>.
30136         (sqrt): Define using libm_alias_double.
30137         * math/w_tgamma_compat.c: Include <libm-alias-double.h>.
30138         (tgamma): Define using libm_alias_double.
30139         * sysdeps/ieee754/ldbl-opt/s_nextafter.c [LONG_DOUBLE_COMPAT(libm,
30140         GLIBC_2_0)] (nextafterl): Do not define compat symbol here.
30141         * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c
30142         [LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)] (exp10l): Likewise.
30143         * sysdeps/ieee754/ldbl-opt/w_remainder_compat.c
30144         [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (remainderl): Likewise.
30145         * sysdeps/ieee754/ldbl-opt/w_acos_compat.c: Remove.
30146         * sysdeps/ieee754/ldbl-opt/w_acosh_compat.c: Likewise.
30147         * sysdeps/ieee754/ldbl-opt/w_asin_compat.c: Likewise.
30148         * sysdeps/ieee754/ldbl-opt/w_atan2_compat.c: Likewise.
30149         * sysdeps/ieee754/ldbl-opt/w_atanh_compat.c: Likewise.
30150         * sysdeps/ieee754/ldbl-opt/w_cosh_compat.c: Likewise.
30151         * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Likewise.
30152         * sysdeps/ieee754/ldbl-opt/w_fmod_compat.c: Likewise.
30153         * sysdeps/ieee754/ldbl-opt/w_hypot_compat.c: Likewise.
30154         * sysdeps/ieee754/ldbl-opt/w_j0_compat.c: Likewise.
30155         * sysdeps/ieee754/ldbl-opt/w_j1_compat.c: Likewise.
30156         * sysdeps/ieee754/ldbl-opt/w_jn_compat.c: Likewise.
30157         * sysdeps/ieee754/ldbl-opt/w_log10_compat.c: Likewise.
30158         * sysdeps/ieee754/ldbl-opt/w_log2_compat.c: Likewise.
30159         * sysdeps/ieee754/ldbl-opt/w_log_compat.c: Likewise.
30160         * sysdeps/ieee754/ldbl-opt/w_pow_compat.c: Likewise.
30161         * sysdeps/ieee754/ldbl-opt/w_sinh_compat.c: Likewise.
30162         * sysdeps/ieee754/ldbl-opt/w_sqrt_compat.c: Likewise.
30163         * sysdeps/ieee754/ldbl-opt/w_tgamma_compat.c: Likewise.
30165         * math/e_acoshl.c: Remove.
30166         * math/e_acosl.c: Likewise.
30167         * math/e_asinl.c: Likewise.
30168         * math/e_atan2l.c: Likewise.
30169         * math/e_atanhl.c: Likewise.
30170         * math/e_coshl.c: Likewise.
30171         * math/e_expl.c: Likewise.
30172         * math/e_fmodl.c: Likewise.
30173         * math/e_gammal_r.c: Likewise.
30174         * math/e_hypotl.c: Likewise.
30175         * math/e_j0l.c: Likewise.
30176         * math/e_j1l.c: Likewise.
30177         * math/e_jnl.c: Likewise.
30178         * math/e_lgammal_r.c: Likewise.
30179         * math/e_log10l.c: Likewise.
30180         * math/e_log2l.c: Likewise.
30181         * math/e_logl.c: Likewise.
30182         * math/e_powl.c: Likewise.
30183         * math/e_rem_pio2l.c: Likewise.
30184         * math/e_sinhl.c: Likewise.
30185         * math/e_sqrtf128.c: Likewise.
30186         * math/e_sqrtl.c: Likewise.
30187         * math/k_cosl.c: Likewise.
30188         * math/k_sinl.c: Likewise.
30189         * math/k_tanl.c: Likewise.
30190         * math/s_asinhl.c: Likewise.
30191         * math/s_atanl.c: Likewise.
30192         * math/s_cbrtl.c: Likewise.
30193         * math/s_erfl.c: Likewise.
30194         * math/s_expm1l.c: Likewise.
30195         * math/s_log1pl.c: Likewise.
30196         * math/s_tanhl.c: Likewise.
30198 2017-09-15  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
30200         [BZ #21745]
30201         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile:
30202         [$(subdir) = math] (sysdep_calls): New variable.  Has the
30203         previous contents of sysdep_routines, but re-sorted..
30204         [$(subdir) = math] (sysdep_routines): Re-use the contents from
30205         sysdep_calls.
30206         [$(subdir) = math] (libm-sysdep_routines): Remove the functions
30207         defined in sysdep_calls and replace by the respective m_* names.
30208         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S:
30209         (compat_symbol): Undefine to avoid duplicated compat symbols in
30210         libc.
30212 2017-09-15  Joseph Myers  <joseph@codesourcery.com>
30214         * math/s_fmaf.c: Include <libm-alias-float.h>.
30215         (fmaf): Define using libm_alias_float.
30216         * math/w_acosf_compat.c: Include <libm-alias-float.h>.
30217         (acosf): Define using libm_alias_float.
30218         * math/w_acoshf_compat.c: Include <libm-alias-float.h>.
30219         (acoshf): Define using libm_alias_float.
30220         * math/w_asinf_compat.c: Include <libm-alias-float.h>.
30221         (asinf): Define using libm_alias_float.
30222         * math/w_atan2f_compat.c: Include <libm-alias-float.h>.
30223         (atan2f): Define using libm_alias_float.
30224         * math/w_atanhf_compat.c: Include <libm-alias-float.h>.
30225         (atanhf): Define using libm_alias_float.
30226         * math/w_coshf_compat.c: Include <libm-alias-float.h>.
30227         (coshf): Define using libm_alias_float.
30228         * math/w_exp10f_compat.c: Include <libm-alias-float.h>.
30229         (exp10f): Define using libm_alias_float.
30230         * math/w_fmodf_compat.c: Include <libm-alias-float.h>.
30231         (fmodf): Define using libm_alias_float.
30232         * math/w_hypotf_compat.c: Include <libm-alias-float.h>.
30233         (hypotf): Define using libm_alias_float.
30234         * math/w_j0f_compat.c: Include <libm-alias-float.h>.
30235         (j0f): Define using libm_alias_float.
30236         (y0f): Likewise.
30237         * math/w_j1f_compat.c: Include <libm-alias-float.h>.
30238         (j1f): Define using libm_alias_float.
30239         (y1f): Likewise.
30240         * math/w_jnf_compat.c: Include <libm-alias-float.h>.
30241         (jnf): Define using libm_alias_float.
30242         (ynf): Likewise.
30243         * math/w_log10f_compat.c: Include <libm-alias-float.h>.
30244         (log10f): Define using libm_alias_float.
30245         * math/w_log2f_compat.c: Include <libm-alias-float.h>.
30246         (log2f): Define using libm_alias_float.
30247         * math/w_logf_compat.c: Include <libm-alias-float.h>.
30248         (logf): Define using libm_alias_float.
30249         * math/w_powf_compat.c: Include <libm-alias-float.h>.
30250         (powf): Define using libm_alias_float.
30251         * math/w_remainderf_compat.c: Include <libm-alias-float.h>.
30252         (remainderf): Define using libm_alias_float.
30253         * math/w_sinhf_compat.c: Include <libm-alias-float.h>.
30254         (sinhf): Define using libm_alias_float.
30255         * math/w_sqrtf_compat.c: Include <libm-alias-float.h>.
30256         (sqrtf): Define using libm_alias_float.
30257         * math/w_tgammaf_compat.c: Include <libm-alias-float.h>.
30258         (tgammaf): Define using libm_alias_float.
30260 2017-09-14  Joseph Myers  <joseph@codesourcery.com>
30262         * include/math.h (roundeven): Change hidden_proto call to
30263         __roundeven.
30264         * math/w_j0_compat.c (j0): Rename to __j0 and define as weak
30265         alias.
30266         [NO_LONG_DOUBLE] (__j0l): New strong alias.
30267         (y0): Rename to __y0 and define as weak alias.
30268         [NO_LONG_DOUBLE] (__y0l): New strong alias.
30269         * math/w_j0f_compat.c (j0f): Rename to __j0f and define as weak
30270         alias.
30271         (y0f): Rename to __y0f and define as weak alias.
30272         * math/w_j1_compat.c (j1): Rename to __j1 and define as weak
30273         alias.
30274         [NO_LONG_DOUBLE] (__j1l): New strong alias.
30275         (y1): Rename to __y1 and define as weak alias.
30276         [NO_LONG_DOUBLE] (__y1l): New strong alias.
30277         * math/w_j1f_compat.c (j1f): Rename to __j1f and define as weak
30278         alias.
30279         (y1f): Rename to __y1f and define as weak alias.
30280         * math/w_jn_compat.c (jn): Rename to __jn and define as weak
30281         alias.
30282         [NO_LONG_DOUBLE] (__jnl): New strong alias.
30283         (yn): Rename to __yn and define as weak alias.
30284         [NO_LONG_DOUBLE] (__ynl): New strong alias.
30285         * math/w_jnf_compat.c (jnf): Rename to __jnf and define as weak
30286         alias.
30287         (ynf): Rename to __ynf and define as weak alias.
30288         * sysdeps/ieee754/dbl-64/s_fromfp.c (FUNC): Define to __fromfp.
30289         (fromfp): Define as weak alias.
30290         [NO_LONG_DOUBLE] (__fromfpl): New strong alias.
30291         * sysdeps/ieee754/dbl-64/s_fromfpx.c (FUNC): Define to __fromfpx.
30292         (fromfpx): Define as weak alias.
30293         [NO_LONG_DOUBLE] (__fromfpxl): New strong alias.
30294         * sysdeps/ieee754/dbl-64/s_getpayload.c (getpayload): Rename to
30295         __getpayload and define as weak alias.
30296         [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
30297         * sysdeps/ieee754/dbl-64/s_roundeven.c (roundeven): Rename to
30298         __roundeven and define as weak alias.
30299         [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
30300         * sysdeps/ieee754/dbl-64/s_setpayload.c (FUNC): Define to
30301         __setpayload.
30302         (setpayload): Define as weak alias.
30303         [NO_LONG_DOUBLE] (__setpayloadl): New strong alias.
30304         * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (FUNC): Define to
30305         __setpayloadsig.
30306         (setpayloadsig): Define as weak alias.
30307         [NO_LONG_DOUBLE] (__setpayloadsigl): New strong alias.
30308         * sysdeps/ieee754/dbl-64/s_totalorder.c (totalorder): Rename to
30309         __totalorder and define as weak alias.
30310         [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
30311         * sysdeps/ieee754/dbl-64/s_totalordermag.c (totalordermag): Rename
30312         to __totalordermag and define as weak alias.
30313         [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
30314         * sysdeps/ieee754/dbl-64/s_ufromfp.c (FUNC): Define to __ufromfp.
30315         (ufromfp): Define as weak alias.
30316         [NO_LONG_DOUBLE] (__ufromfpl): New strong alias.
30317         * sysdeps/ieee754/dbl-64/s_ufromfpx.c (FUNC): Define to
30318         __ufromfpx.
30319         (ufromfpx): Define as weak alias.
30320         [NO_LONG_DOUBLE] (__ufromfpxl): New strong alias.
30321         * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c (getpayload):
30322         Rename to __getpayload and define as weak alias.
30323         [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
30324         * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c (roundeven):
30325         Rename to __roundeven and define as weak alias.
30326         [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
30327         * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c (totalorder):
30328         Rename to __totalorder and define as weak alias.
30329         [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
30330         * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c
30331         (totalordermag): Rename to __totalordermag and define as weak
30332         alias.
30333         [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
30334         * sysdeps/ieee754/float128/float128_private.h (__getpayloadl): New
30335         macro.
30336         (__roundevenl): Likewise.
30337         (__totalorderl): Likewise.
30338         (__totalordermagl): Likewise
30339         * sysdeps/ieee754/float128/s_fromfpf128.c (FUNC): Define to
30340         __fromfpf128.
30341         (fromfpf128): Define as weak alias.
30342         * sysdeps/ieee754/float128/s_fromfpxf128.c (FUNC): Define to
30343         __fromfpxf128.
30344         (fromfpxf128): Define as weak alias.
30345         * sysdeps/ieee754/float128/s_setpayloadf128.c (FUNC): Define to
30346         __setpayloadf128.
30347         (setpayloadf128): Define as weak alias.
30348         * sysdeps/ieee754/float128/s_setpayloadsigf128.c (FUNC): Define to
30349         __setpayloadsigf128.
30350         (setpayloadsigf128): Define as weak alias.
30351         * sysdeps/ieee754/float128/s_ufromfpf128.c (FUNC): Define to
30352         __ufromfpf128.
30353         (ufromfpf128): Define as weak alias.
30354         * sysdeps/ieee754/float128/s_ufromfpxf128.c (FUNC): Define to
30355         __ufromfpxf128.
30356         (ufromfpxf128): Define as weak alias.
30357         * sysdeps/ieee754/flt-32/s_fromfpf.c (FUNC): Define to __fromfpf.
30358         (fromfpf): Define as weak alias.
30359         * sysdeps/ieee754/flt-32/s_fromfpxf.c (FUNC): Define to
30360         __fromfpxf.
30361         (fromfpxf): Define as weak alias.
30362         * sysdeps/ieee754/flt-32/s_getpayloadf.c (getpayloadf): Rename to
30363         __getpayloadf and define as weak alias.
30364         * sysdeps/ieee754/flt-32/s_roundevenf.c (roundevenf): Rename to
30365         __roundevenf and define as weak alias.
30366         * sysdeps/ieee754/flt-32/s_setpayloadf.c (FUNC): Define to
30367         __setpayloadf.
30368         (setpayloadf): Define as weak alias.
30369         * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (FUNC): Define to
30370         __setpayloadsigf.
30371         (setpayloadsigf): Define as weak alias.
30372         * sysdeps/ieee754/flt-32/s_totalorderf.c (totalorderf): Rename to
30373         __totalorderf and define as weak alias.
30374         * sysdeps/ieee754/flt-32/s_totalordermagf.c (totalordermagf):
30375         Rename to __totalordermagf and define as weak alias.
30376         * sysdeps/ieee754/flt-32/s_ufromfpf.c (FUNC): Define to
30377         __ufromfpf.
30378         (ufromfpf): Define as weak alias.
30379         * sysdeps/ieee754/flt-32/s_ufromfpxf.c (FUNC): Define to
30380         __ufromfpxf.
30381         (ufromfpxf): Define as weak alias.
30382         * sysdeps/ieee754/ldbl-128/s_fromfpl.c (FUNC): Define to
30383         __fromfpl.
30384         (fromfpl): Define as weak alias.
30385         * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (FUNC): Define to
30386         __fromfpxl.
30387         (fromfpxl): Define as weak alias.
30388         * sysdeps/ieee754/ldbl-128/s_getpayloadl.c (getpayloadl): Rename
30389         to __getpayloadl and define as weak alias.
30390         * sysdeps/ieee754/ldbl-128/s_roundevenl.c (roundevenl): Rename to
30391         __roundevenl and define as weak alias.
30392         * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (FUNC): Define to
30393         __setpayloadl.
30394         (setpayloadl): Define as weak alias.
30395         * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (FUNC): Define to
30396         __setpayloadsigl.
30397         (setpayloadsigl): Define as weak alias.
30398         * sysdeps/ieee754/ldbl-128/s_totalorderl.c (totalorderl): Rename
30399         to __totalorderl and define as weak alias.
30400         * sysdeps/ieee754/ldbl-128/s_totalordermagl.c (totalordermagl):
30401         Rename to __totalordermagl and define as weak alias.
30402         * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (FUNC): Define to
30403         __ufromfpl.
30404         (ufromfpl): Define as weak alias.
30405         * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (FUNC): Define to
30406         __ufromfpxl.
30407         (ufromfpxl): Define as weak alias.
30408         * sysdeps/ieee754/ldbl-128ibm/s_fromfpl.c (FUNC): Define to
30409         __fromfpl.
30410         (fromfpl): Define as weak alias.
30411         * sysdeps/ieee754/ldbl-128ibm/s_fromfpxl.c (FUNC): Define to
30412         __fromfpxl.
30413         (fromfpxl): Define as weak alias.
30414         * sysdeps/ieee754/ldbl-128ibm/s_getpayloadl.c (getpayloadl):
30415         Rename to __getpayloadl and define as weak alias.
30416         * sysdeps/ieee754/ldbl-128ibm/s_roundevenl.c (roundevenl): Rename
30417         to __roundevenl and define as weak alias.  Call __roundeven
30418         instead of roundeven.
30419         * sysdeps/ieee754/ldbl-128ibm/s_setpayloadl.c (FUNC): Define to
30420         __setpayloadl.
30421         (setpayloadl): Define as weak alias.
30422         * sysdeps/ieee754/ldbl-128ibm/s_setpayloadsigl.c (FUNC): Define to
30423         __setpayloadsigl.
30424         (setpayloadsigl): Define as weak alias.
30425         * sysdeps/ieee754/ldbl-128ibm/s_totalorderl.c (totalorderl):
30426         Rename to __totalorderl and define as weak alias.
30427         * sysdeps/ieee754/ldbl-128ibm/s_totalordermagl.c (totalordermagl):
30428         Rename to __totalordermagl and define as weak alias.
30429         * sysdeps/ieee754/ldbl-128ibm/s_ufromfpl.c (FUNC): Define to
30430         __ufromfpl.
30431         (ufromfpl): Define as weak alias.
30432         * sysdeps/ieee754/ldbl-128ibm/s_ufromfpxl.c (FUNC): Define to
30433         __ufromfpxl.
30434         (ufromfpxl): Define as weak alias.
30435         * sysdeps/ieee754/ldbl-96/s_fromfpl.c (FUNC): Define to
30436         __fromfpl.
30437         (fromfpl): Define as weak alias.
30438         * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (FUNC): Define to
30439         __fromfpxl.
30440         (fromfpxl): Define as weak alias.
30441         * sysdeps/ieee754/ldbl-96/s_getpayloadl.c (getpayloadl): Rename to
30442         __getpayloadl and define as weak alias.
30443         * sysdeps/ieee754/ldbl-96/s_roundevenl.c (roundevenl): Rename to
30444         __roundevenl and define as weak alias.
30445         * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (FUNC): Define to
30446         __setpayloadl.
30447         (setpayloadl): Define as weak alias.
30448         * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c (FUNC): Define to
30449         __setpayloadsigl.
30450         (setpayloadsigl): Define as weak alias.
30451         * sysdeps/ieee754/ldbl-96/s_totalorderl.c (totalorderl): Rename to
30452         __totalorderl and define as weak alias.
30453         * sysdeps/ieee754/ldbl-96/s_totalordermagl.c (totalordermagl):
30454         Rename to __totalordermagl and define as weak alias.
30455         * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (FUNC): Define to
30456         __ufromfpl.
30457         (ufromfpl): Define as weak alias.
30458         * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (FUNC): Define to
30459         __ufromfpxl.
30460         (ufromfpxl): Define as weak alias.
30462 2017-09-14  Siddhesh Poyarekar  <siddhesh@sourceware.org>
30464         * benchtests/bench-string.h (realloc_bufs): New function.
30465         (test_init): Call it.
30466         * benchtests/bench-memset-large.c (do_test): Likewise.
30467         * benchtests/bench-memset.c (do_test): Likewise.
30469         * benchtests/bench-memset-large.c: Print output in JSON
30470         format.
30471         * benchtests/bench-memset.c: Likewise.
30473 2017-09-14  Mike FABIAN  <mfabian@redhat.com>
30475         [BZ #21084]
30476         * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Add IBM858 and ibm858.c.
30477         * iconvdata/Makefile: Add IBM858.
30478         * iconvdata/gconv-modules: Likewise.
30479         * iconvdata/tst-tables.sh: Likewise.
30480         * iconvdata/ibm858.c: New file.
30481         * localedata/charmaps/IBM858: Likewise.
30483 2017-09-14  Akhilesh Kumar  <akhilesh.k@samsung.com>
30485         [BZ #22023]
30486         * locales/niu_NZ (LC_TIME): copy "niu_NU".
30487         * locales/niu_NZ (LC_MESSAGES): copy "niu_NU".
30489 2017-09-14  Mike FABIAN  <mfabian@redhat.com>
30491         [BZ #22112]
30492         * localedata/locales/az_AZ(LC_TELEPHONE): Fix int_select
30493         and add tel_int_fmt.
30495 2017-09-14  Joseph Myers  <joseph@codesourcery.com>
30497         * sysdeps/generic/libm-alias-float128.h: New file.
30498         * sysdeps/generic/math-type-macros-float128.h: Include
30499         <libm-alias-float128.h>.
30500         [!declare_mgen_alias] (declare_mgen_alias): Define macro.
30502 2017-09-13  Joseph Myers  <joseph@codesourcery.com>
30504         * sysdeps/generic/libm-alias-ldouble.h: New file.
30505         * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Likewise.
30506         * sysdeps/ieee754/ldbl-opt/math-type-macros-ldouble.h: Remove.
30507         * sysdeps/generic/math-type-macros-ldouble.h: Include
30508         <libm-alias-ldouble.h>.
30509         [!declare_mgen_alias] (declare_mgen_alias): Define to use
30510         libm_alias_ldouble.
30512 2017-09-13  Szabolcs Nagy  <szabolcs.nagy@arm.com>
30514         * sysdeps/ieee754/dbl-64/w_exp_compat.c: Move to...
30515         * math/w_exp_compat.c: ... here.
30516         * sysdeps/ieee754/flt-32/w_expf_compat.c: Move to...
30517         * math/w_expf_compat.c: ... here.
30518         * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Move to...
30519         * math/w_expl_compat.c: ... here.
30520         * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Remove.
30521         * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Remove.
30522         * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Use the new path.
30523         * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
30525 2017-09-13  Joseph Myers  <joseph@codesourcery.com>
30527         * math/w_scalbln_template.c (strong_alias): Do not undefine and
30528         redefine.
30529         * sysdeps/ieee754/ldbl-opt/s_ldexp.c (declare_mgen_alias): Remove
30530         macro.
30531         (ldexpl): Only define as compat symbol for libc, not libm.
30532         (scalbnl): Define as compat symbol for libc here.
30533         * sysdeps/ieee754/ldbl-opt/s_ldexpl.c (declare_mgen_alias): Only
30534         define for [IS_IN (libc)].
30535         (__ldexpl_2): Remove alias.
30536         (ldexpl): Only define with long_double_symbol if [IS_IN (libc)].
30537         (scalbnl): Likewise.  Use __wrap_scalbnl not __ldexpl_2 as base
30538         name in long_double_symbol call.
30539         * sysdeps/ieee754/ldbl-opt/s_log1p.c: Remove file.
30540         * sysdeps/ieee754/ldbl-opt/s_scalbln.c: Likewise.
30541         * sysdeps/ieee754/ldbl-opt/s_scalbn.c: Likewise.
30542         * sysdeps/ieee754/ldbl-opt/w_log1p.c: Likewise.
30543         * sysdeps/ieee754/ldbl-opt/w_scalbln.c (declare_mgen_alias):
30544         Remove macro.
30545         [IS_IN (libc) && LONG_DOUBLE_COMPAT (libc, GLIBC_2_1)] (scalblnl):
30546         Define as compat symbol.
30548 2017-09-13  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
30550         * sysdeps/unix/sysv/linux/s390/s390-32/oldglob.c: New file.
30551         * sysdeps/unix/sysv/linux/alpha/Makefile
30552         [$(subdir) = csu] (sysdep_routines): Remove rule.
30554 2017-09-13  Joseph Myers  <joseph@codesourcery.com>
30556         * sysdeps/generic/libm-alias-double.h: New file.
30557         * sysdeps/ieee754/ldbl-opt/libm-alias-double.h: Likewise.
30558         * sysdeps/generic/math-type-macros-double.h: Include
30559         <libm-alias-double.h>.
30560         [declare_mgen_alias] (declare_mgen_alias): Define to use
30561         libm_alias_double.
30562         * sysdeps/generic/math-type-macros.h [!M_LIBM_NEED_COMPAT]
30563         (M_LIBM_NEED_COMPAT): Remove macro.
30564         [!M_LIBM_NEED_COMPAT] (declare_mgen_libm_compat): Likewise.
30565         * sysdeps/ieee754/ldbl-opt/math-type-macros-double.h: Remove.
30566         * math/cabs_template.c [M_LIBM_NEED_COMPAT]: Remove conditional
30567         code.
30568         * math/carg_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30569         * math/cimag_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30570         * math/conj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30571         * math/creal_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30572         * math/s_cacos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30573         * math/s_cacosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30574         * math/s_casin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30575         * math/s_casinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30576         * math/s_catan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30577         * math/s_catanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30578         * math/s_ccos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30579         * math/s_ccosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30580         * math/s_cexp_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30581         * math/s_clog10_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30582         * math/s_clog_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30583         * math/s_cpow_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30584         * math/s_cproj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30585         * math/s_csin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30586         * math/s_csinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30587         * math/s_csqrt_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30588         * math/s_ctan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30589         * math/s_ctanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30590         * math/s_fdim_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30591         * math/s_fmax_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30592         * math/s_fmin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30593         * math/s_nan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30594         * math/w_ilogb_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30595         * sysdeps/ieee754/ldbl-opt/s_clog10.c: New file.
30596         * sysdeps/ieee754/ldbl-opt/s_ldexp.c (M_LIBM_NEED_COMPAT): Remove
30597         macro.
30598         (declare_mgen_alias): New macro.
30599         * sysdeps/ieee754/ldbl-opt/w_log1p.c: New file.
30600         * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Likewise.
30601         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.c
30602         (M_LIBM_NEED_COMPAT): Remove macro.
30603         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c
30604         [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h> and
30605         <first-versions.h>.
30606         [HAVE_AS_VIS3_SUPPORT && LONG_DOUBLE_COMPAT (libm,
30607         FIRST_VERSION_libm_fdiml)]: Define fdiml as compat symbol.
30609 2017-09-12  Joseph Myers  <joseph@codesourcery.com>
30611         * sysdeps/generic/math-type-macros.h [!declare_mgen_alias_2]
30612         (declare_mgen_alias_2): Remove.
30613         * sysdeps/generic/math-type-macros-double.h
30614         [NO_LONG_DOUBLE && !declare_mgen_alias_2] (declare_mgen_alias_2):
30615         Likewise.
30616         * math/s_ldexp_template.c (M_SUF (__wrap_scalbn)): Define strong
30617         alias.
30618         (ldexp): Define with declare_mgen_alias.
30619         (scalbn): Likewise.
30621 2017-09-12  Steve Ellcey  <sellcey@cavium.com>
30623         * grp/initgroups.c: Include config.h.
30624         (DEFAULT_CONFIG): New macro.
30625         (internal_getgrouplist): Use DEFAULT_CONFIG.
30626         * nscd/initgrcache.c (addinitgroupsX): Likewise.
30627         * nss/nsswitch.c (__nss_disable_nscd): Likewise.
30628         (DEFAULT_DEFCONFIG): New macro.
30629         (__nss_database_lookup): Use DEFAULT_DEFCONFIG.
30630         * nss/grp-lookup.c: Include config.h
30631         (DEFAULT_CONFIG): Set definition based on LINK_OBSOLETE_NSL.
30632         * nss/pwd-lookup.c (DEFAULT_CONFIG): Likewise.
30633         * nss/spwd-lookup.c (DEFAULT_CONFIG): Likewise.
30634         * manual/nss.texi: Update default values section.
30636 2017-09-12  H.J. Lu  <hongjiu.lu@intel.com>
30638         [BZ #21967]
30639         * sysdeps/x86/cpu-features.h (bit_arch_MathVec_Prefer_No_AVX512):
30640         New.
30641         (index_arch_MathVec_Prefer_No_AVX512): Likewise.
30642         * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
30643         Handle MathVec_Prefer_No_AVX512.
30644         * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h
30645         (IFUNC_SELECTOR): Return AVX2 version if MathVec_Prefer_No_AVX512
30646         is set.
30648 2017-09-12  Samuel Thibault  <samuel.thibault@ens-lyon.org>
30650         * posix/sched_primax.c (__sched_get_priority_max): Add
30651         libc_hidden_def.
30652         * posix/sched_primin.c (__sched_get_priority_min): Likewise.
30653         * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
30654         * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
30655         * sysdeps/mach/hurd/mprotect.c (__mprotect): Likewise.
30656         * sysdeps/mach/hurd/munmap.c (__munmap): Likewise.
30657         * sysdeps/mach/hurd/dl-sysdep.c (__GI___getpid,
30658         __GI___strtoul_internal, __GI_____strtoul_internal, __GI___chk_fail,
30659         __GI___fortify_fail, __GI___assert_fail, __GI___assert_perror_fail):
30660         Add aliases.
30662 2017-09-11  Joseph Myers  <joseph@codesourcery.com>
30664         * sysdeps/generic/libm-alias-float.h: New file.
30665         * sysdeps/generic/math-type-macros-float.h: Include
30666         <libm-alias-float.h>.
30667         [!declare_mgen_alias] (declare_mgen_alias): Define macro.
30669 2017-09-11  H.J. Lu  <hongjiu.lu@intel.com>
30671         [BZ #22093]
30672         * sysdeps/x86/cpu-features.c (init_cpu_features): Initialize
30673         GLRO(dl_hwcap) to HWCAP_X86_64 for x86-64.
30674         * sysdeps/x86/dl-hwcap.h (HWCAP_COUNT): Updated.
30675         (HWCAP_IMPORTANT): Likewise.
30676         (HWCAP_X86_64): New enum.
30677         (HWCAP_X86_AVX512_1): Updated.
30678         * sysdeps/x86/dl-procinfo.c (_dl_x86_hwcap_flags): Add "x86_64".
30679         * sysdeps/x86_64/Makefile (tests): Add tst-x86_64-1.
30680         (modules-names): Add x86_64/tst-x86_64mod-1.
30681         (LDFLAGS-tst-x86_64mod-1.so): New.
30682         ($(objpfx)tst-x86_64-1): Likewise.
30683         ($(objpfx)x86_64/tst-x86_64mod-1.os): Likewise.
30684         (tst-x86_64-1-clean): Likewise.
30685         * sysdeps/x86_64/tst-x86_64-1.c: New file.
30686         * sysdeps/x86_64/tst-x86_64mod-1.c: Likewise.
30688 2017-09-11  Siddhesh Poyarekar  <siddhesh@sourceware.org>
30690         * po/sv.po: Update translations.
30691         * po/fr.po: Likewise.
30693 2017-09-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
30695         * sunrpc/tst-udp-timeout.c (test_udp_server): Increase timeout to 2.5
30696         seconds.
30697         * sunrpc/tst-udp-nonblocking.c (do_test): Increase timeout to 0.75
30698         seconds.
30699         * elf/rtld-Rules: Fix $(error) use.
30701 2017-09-09  Mike FABIAN  <mfabian@redhat.com>
30703         [BZ #14925]
30704         * libio/tst-widetext.input: Change “Bengali” to “Bangla”.
30705         * locale/iso-639.def: Change “Bengali” to “Bangla”.
30706         * localedata/locales/bn_BD: “Bengali” was still used in some
30707         comments. Change it to “Bangla”.
30709 2017-09-08  Markus Trippelsdorf  <markus@trippelsdorf.de>
30711         * sysdeps/x86_64/fpu/libm-test-ulps: Update for AMD Ryzen.
30713 2017-09-08  Steve Ellcey  <sellcey@cavium.com>
30715         * manual/tunables.texi (glibc.tune.cpu): Add thunderx2t99 and
30716         thunderx2t99p1 to list of cpu names.
30717         * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
30718         Add thunderx2t99 and thunderx2t99p1 entries to cpu_list.
30720 2017-09-08  Steve Ellcey  <sellcey@cavium.com>
30722         * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (get_midr_from_mcpu):
30723         Use strcmp instead of tunable_is_name.
30725 2017-09-08  Joseph Myers  <joseph@codesourcery.com>
30727         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
30728         (F_GET_RW_HINT): New macro.
30729         [__USE_GNU] (F_SET_RW_HINT): Likewise.
30730         [__USE_GNU] (F_GET_FILE_RW_HINT): Likewise.
30731         [__USE_GNU] (F_SET_FILE_RW_HINT): Likewise.
30732         [__USE_GNU] (RWF_WRITE_LIFE_NOT_SET): Likewise.
30733         [__USE_GNU] (RWH_WRITE_LIFE_NONE): Likewise.
30734         [__USE_GNU] (RWH_WRITE_LIFE_SHORT): Likewise.
30735         [__USE_GNU] (RWH_WRITE_LIFE_MEDIUM): Likewise.
30736         [__USE_GNU] (RWH_WRITE_LIFE_LONG): Likewise.
30737         [__USE_GNU] (RWH_WRITE_LIFE_EXTREME): Likewise.
30739         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
30740         (F_ADD_SEALS): New macro.
30741         [__USE_GNU] (F_GET_SEALS): Likewise.
30742         [__USE_GNU] (F_SEAL_SEAL): Likewise.
30743         [__USE_GNU] (F_SEAL_SHRINK): Likewise.
30744         [__USE_GNU] (F_SEAL_GROW): Likewise.
30745         [__USE_GNU] (F_SEAL_WRITE): Likewise.
30747 2017-09-08  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
30749         * posix/glob_internal.h (GLOBPAT_NONE, GLOBPAT_SPECIAL)
30750         (GLOBPAT_BACKSLASH, GLOBPAT_BRACKET): New constants.
30751         * posix/glob_internal.h (__glob_pattern_type):
30752         * posix/glob.c (glob):
30753         * posix/glob_pattern_p.c (__glob_pattern_p):
30754         Use them.
30756         * sysdeps/unix/sysv/linux/arm/glob64.c: Remove file.
30757         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
30758         * sysdeps/unix/sysv/linux/m68k/glob64.c: Likewise.
30759         * sysdeps/unix/sysv/linux/mips/mips64/n64/glob64.c: Likewise.
30760         * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
30761         * sysdeps/unix/sysv/linux/powerpc/powerpc32/glob64.c: Likewise.
30762         * sysdeps/unix/sysv/linux/sparc/sparc32/glob64.c: Likewise.
30763         * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: Likewise.
30764         * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
30765         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
30766         * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
30767         * sysdeps/wordsize-64/glob.c: Likewise.
30768         * sysdeps/wordsize-64/glob64.c: Likewise.
30769         * sysdeps/wordsize-64/globfree.c: Likewise.
30770         * sysdeps/wordsize-64/globfree64.c: Likewise.
30771         * sysdeps/unix/sysv/linux/glob.c: New file.
30772         * sysdeps/unix/sysv/linux/glob64.c: Likewise.
30773         * sysdeps/unix/sysv/linux/globfree.c: Likewise.
30774         * sysdeps/unix/sysv/linux/globfree64.c: Likewise.
30775         * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
30776         * sysdeps/unix/sysv/linux/oldglob.c [SHLIB_COMPAT]: Also
30777         adds !GLOB_NO_OLD_VERSION as an extra condition.
30778         * sysdeps/unix/sysv/linux/i386/alphasort64.c: Include olddirent.h
30779         using relative path instead of absolute one.
30780         * sysdeps/unix/sysv/linux/i386/getdents64.c: Likewise.
30781         * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
30782         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
30783         * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
30784         * sysdeps/unix/sysv/linux/i386/olddirent.h: Move to ...
30785         * sysdeps/unix/sysv/linux//olddirent.h: ... here.
30787         [BZ #1062]
30788         * posix/glob.c (GET_LOGIN_NAME_MAX): Remove.
30789         (glob): Use the same scratch buffer for both getlogin_r and
30790         getpwnam_r.  Don’t require preallocation of the login name.  This
30791         simplifies storage allocation, and corrects the handling of
30792         long login names.
30794         [BZ #1062]
30795         * posix/glob.c (glob): Port recent patches to platforms
30796         lacking getpwnam_r.
30797         (glob): Fix longstanding misuse of errno after getpwnam_r, which
30798         returns an error number rather than setting errno.
30800         * include/scratch_buffer.h (scratch_buffer): Use a C99 align method
30801         instead of GCC extension.
30802         * malloc/scratch_buffer_grow.c [!_LIBC]: Include libc-config.h.
30803         * malloc/scratch_buffer_grow_preserve.c [!_LIBC]: Likewise.
30804         * malloc/scratch_buffer_set_array_size.c [!_LIBC]: Likewise.
30806         [BZ #866]
30807         [BZ #1062]
30808         * posix/Makefile (tests): Remove bug-glob1 and tst-glob_symlinks.
30809         * posix/bug-glob1.c: Remove file.
30810         * posix/tst-glob_symlinks.c: New file.
30811         * posix/glob.c (__lstat64): New macro.
30812         (is_dir): New function.
30813         (glob, glob_in_dir): Match symlinks even if they are dangling.
30814         (link_stat, link_exists_p): Remove.  All uses removed.
30816         [BZ #1062]
30817         [BZ #19971]
30818         * posix/glob.c (struct readdir_result): Remove skip_entry member.
30819         (readdir_result_skip_entry, D_INO_TO_RESULT): Remove.
30820         All uses removed.
30822         [BZ #1062]
30823         CVE-2017-15671
30824         * posix/Makefile (routines): Add globfree, globfree64, and
30825         glob_pattern_p.
30826         * posix/flexmember.h: New file.
30827         * posix/glob_internal.h: Likewise.
30828         * posix/glob_pattern_p.c: Likewise.
30829         * posix/globfree.c: Likewise.
30830         * posix/globfree64.c: Likewise.
30831         * sysdeps/gnu/globfree64.c: Likewise.
30832         * sysdeps/unix/sysv/linux/alpha/globfree.c: Likewise.
30833         * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
30834         * sysdeps/unix/sysv/linux/oldglob.c: Likewise.
30835         * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
30836         * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
30837         * sysdeps/wordsize-64/globfree.c: Likewise.
30838         * sysdeps/wordsize-64/globfree64.c: Likewise.
30839         * posix/glob.c (HAVE_CONFIG_H): Use !_LIBC instead.
30840         [NDEBUG): Remove comments.
30841         (GLOB_ONLY_P, _AMIGA, VMS): Remove define.
30842         (dirent_type): New type.  Use uint_fast8_t not
30843         uint8_t, as C99 does not require uint8_t.
30844         (DT_UNKNOWN, DT_DIR, DT_LNK): New macros.
30845         (struct readdir_result): Use dirent_type.  Do not define skip_entry
30846         unless it is needed; this saves a byte on platforms lacking d_ino.
30847         (readdir_result_type, readdir_result_skip_entry):
30848         New functions, replacing ...
30849         (readdir_result_might_be_symlink, readdir_result_might_be_dir):
30850         these functions, which were removed.  This makes the callers
30851         easier to read.  All callers changed.
30852         (D_INO_TO_RESULT): Now empty if there is no d_ino.
30853         (size_add_wrapv, glob_use_alloca): New static functions.
30854         (glob, glob_in_dir): Check for size_t overflow in several places,
30855         and fix some size_t checks that were not quite right.
30856         Remove old code using SHELL since Bash no longer
30857         uses this.
30858         (glob, prefix_array): Separate MS code better.
30859         (glob_in_dir): Remove old Amiga and VMS code.
30860         (globfree, __glob_pattern_type, __glob_pattern_p): Move to
30861         separate files.
30862         (glob_in_dir): Do not rely on undefined behavior in accessing
30863         struct members beyond their bounds.  Use a flexible array member
30864         instead
30865         (link_stat): Rename from link_exists2_p and return -1/0 instead of
30866         0/1.  Caller changed.
30867         (glob): Fix memory leaks.
30868         * posix/glob64 (globfree64): Move to separate file.
30869         * sysdeps/gnu/glob64.c (NO_GLOB_PATTERN_P): Remove define.
30870         (globfree64): Remove hidden alias.
30871         * sysdeps/unix/sysv/linux/Makefile (sysdeps_routines): Add
30872         oldglob.
30873         * sysdeps/unix/sysv/linux/alpha/glob.c (__new_globfree): Move to
30874         separate file.
30875         * sysdeps/unix/sysv/linux/i386/glob64.c (NO_GLOB_PATTERN_P): Remove
30876         define.
30877         Move compat code to separate file.
30878         * sysdeps/wordsize-64/glob.c (globfree): Move definitions to
30879         separate file.
30881 2017-09-07  H.J. Lu  <hongjiu.lu@intel.com>
30883         * resolv/tst-resolv-qtypes.c (domain): Changed to
30884         "const char domain[] =".
30886 2017-09-07  Joseph Myers  <joseph@codesourcery.com>
30888         * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
30889         version to 3.1.6.
30891         * sysdeps/gnu/netinet/tcp.h (TCP_ULP): New macro.
30892         (TCP_MD5SIG_EXT): Likewise.
30893         (TCP_MD5SIG_FLAG_PREFIX): Likewise.
30894         (struct tcp_md5sig): Replace __tcpm_pad1 by tcpm_flags and
30895         tcpm_prefixlen.  Rename __tcpm_pad2 to __tcpm_pad.
30897         * sysdeps/unix/sysv/linux/bits/socket.h (SOL_TLS): New macro.
30899 2017-09-07  Mike FABIAN  <mfabian@redhat.com>
30901         * localedata/locales/om_ET (LC_TIME): use ASCII for better readability.
30903 2017-09-07  Akhilesh Kumar  <akhilesh.k@samsung.com>
30905         [BZ #22100]
30906         * localedata/locales/om_KE (LC_TIME): copy "om_ET".
30908 2017-09-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
30910         * hurd/get-host.c (_hurd_get_host_config): Also check that more == 0
30911         before assuming that the file is empty.  Avoid testing buffer content
30912         when nread == 0.
30914 2017-09-06  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
30916         [BZ #18858]
30917         * sysdeps/i386/i686/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
30918         Remove define.
30919         * sysdeps/x86_64/multiarch/stpcpy.c (_HAVE_STRING_ARCH_stpcpy):
30920         Likewise.
30921         * sysdeps/x86_64/multiarch/strcspn.c (_HAVE_STRING_ARCH_strcspn):
30922         Likewise.
30923         * sysdeps/x86_64/multiarch/strncat.c (_HAVE_STRING_ARCH_strncat):
30924         Likewise.
30925         * sysdeps/x86_64/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
30926         Likewise.
30927         * sysdeps/x86_64/multiarch/strpbrk.c (_HAVE_STRING_ARCH_strpbrk):
30928         Likewise.
30929         * sysdeps/x86_64/multiarch/strspn.c (_HAVE_STRING_ARCH_strspn):
30930         Likewise.
30932 2017-09-06  Florian Weimer  <fweimer@redhat.com>
30934         * malloc/dynarray_emplace_enlarge.c
30935         (__libc_dynarray_emplace_enlarge): Add missing else.
30937 2017-09-06  Florian Weimer  <fweimer@redhat.com>
30939         [BZ #22096]
30940         * resolv/resolv_conf.c (__resolv_conf_attach): Do not free conf in
30941         case of failure to obtain the global conf object.
30943 2017-09-06  Florian Weimer  <fweimer@redhat.com>
30945         [BZ #22095]
30946         * resolv/res_init.c (res_vinit_1): Avoid memory leak in case of
30947         dynarray allocation failure.
30949 2017-09-06  Florian Weimer  <fweimer@redhat.com>
30951         Remove dead PTR IPv4-to-IPv6 mapping code from nss_dns.
30952         * resolv/nss_dns/dns-host.c (getanswer_r): Remove dead code.
30953         * resolv/tst-res_use_inet6.c (response_ptr_v4, response_ptr_v6):
30954         New functions.
30955         (response): Call them.  Add 'p', '6' flag processing.
30956         (test_reverse): New function.
30957         (test_get2_any): Call it.
30958         (test_no_inet6): Add 'p' test.
30959         (test_inet6): Likewise.
30961 2017-09-06  Florian Weimer  <fweimer@redhat.com>
30963         Enhance tst-res_use_inet6 to test IPv4-to-IPv6 address mapping.
30964         * resolv/tst-res_use_inet6.c (response): Process flags embedded in
30965         the QNAME.
30966         (test_gai): Adjust query names.  Add additional tests.
30967         (test_get2_any, test_get2_no_inet6, test_get2_inet6): Split from
30968         test_get2.  Adjust query names.  Add additional tests.
30969         (test_no_inet6): New function, extracted from threadfunc.
30970         (threadfunc): Call test_get2_any, test_get2_inet6, test_no_inet6.
30971         Add additional tests.
30973 2017-09-06  Mike FABIAN  <mfabian@redhat.com>
30975         [BZ #22070]
30976         * localedata/unicode-gen/utf8_gen.py: Set the width for
30977         characters with Prepended_Concatenation_Mark property to 1
30978         * localedata/charmaps/UTF-8: Updated using the improved script.
30980 2017-09-06  Mike FABIAN  <mfabian@redhat.com>
30982         [BZ #21750]
30983         * localedata/unicode-gen/utf8_gen.py: Improve the script to
30984         use the range notation for all ranges of neighbouring characters
30985         with the same width.
30987 2017-09-05  Joseph Myers  <joseph@codesourcery.com>
30989         * sysdeps/generic/math-type-macros-double.h: Include
30990         <math-svid-compat.h>.
30991         (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
30992         * sysdeps/generic/math-type-macros-float.h: Include
30993         <math-svid-compat.h>.
30994         (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
30995         * sysdeps/generic/math-type-macros-ldouble.h: Include
30996         <math-svid-compat.h>.
30997         (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
30998         * math/lgamma-compat.h (BUILD_LGAMMA): Include LIBM_SVID_COMPAT
30999         condition.
31000         * math/w_acos_compat.c: Condition contents on [LIBM_SVID_COMPAT].
31001         * math/w_acosf_compat.c: Likewise.
31002         * math/w_acosh_compat.c: Likewise.
31003         * math/w_acoshf_compat.c: Likewise.
31004         * math/w_acoshl_compat.c: Likewise.
31005         * math/w_acosl_compat.c: Likewise.
31006         * math/w_asin_compat.c: Likewise.
31007         * math/w_asinf_compat.c: Likewise.
31008         * math/w_asinl_compat.c: Likewise.
31009         * math/w_atan2_compat.c: Likewise.
31010         * math/w_atan2f_compat.c: Likewise.
31011         * math/w_atan2l_compat.c: Likewise.
31012         * math/w_atanh_compat.c: Likewise.
31013         * math/w_atanhf_compat.c: Likewise.
31014         * math/w_atanhl_compat.c: Likewise.
31015         * math/w_cosh_compat.c: Likewise.
31016         * math/w_coshf_compat.c: Likewise.
31017         * math/w_coshl_compat.c: Likewise.
31018         * math/w_exp10_compat.c: Likewise.
31019         * math/w_exp10f_compat.c: Likewise.
31020         * math/w_exp10l_compat.c: Likewise.
31021         * math/w_exp2_compat.c: Likewise.
31022         * math/w_exp2f_compat.c: Likewise.
31023         * math/w_exp2l_compat.c: Likewise.
31024         * math/w_fmod_compat.c: Likewise.
31025         * math/w_fmodf_compat.c: Likewise.
31026         * math/w_fmodl_compat.c: Likewise.
31027         * math/w_hypot_compat.c: Likewise.
31028         * math/w_hypotf_compat.c: Likewise.
31029         * math/w_hypotl_compat.c: Likewise.
31030         * math/w_j0_compat.c: Likewise.
31031         * math/w_j0f_compat.c: Likewise.
31032         * math/w_j0l_compat.c: Likewise.
31033         * math/w_j1_compat.c: Likewise.
31034         * math/w_j1f_compat.c: Likewise.
31035         * math/w_j1l_compat.c: Likewise.
31036         * math/w_jn_compat.c: Likewise.
31037         * math/w_jnf_compat.c: Likewise.
31038         * math/w_jnl_compat.c: Likewise.
31039         * math/w_lgamma_r_compat.c: Likewise.
31040         * math/w_lgammaf_r_compat.c: Likewise.
31041         * math/w_lgammal_r_compat.c: Likewise.
31042         * math/w_log10_compat.c: Likewise.
31043         * math/w_log10f_compat.c: Likewise.
31044         * math/w_log10l_compat.c: Likewise.
31045         * math/w_log2_compat.c: Likewise.
31046         * math/w_log2f_compat.c: Likewise.
31047         * math/w_log2l_compat.c: Likewise.
31048         * math/w_log_compat.c: Likewise.
31049         * math/w_logf_compat.c: Likewise.
31050         * math/w_logl_compat.c: Likewise.
31051         * math/w_pow_compat.c: Likewise.
31052         * math/w_powf_compat.c: Likewise.
31053         * math/w_powl_compat.c: Likewise.
31054         * math/w_remainder_compat.c: Likewise.
31055         * math/w_remainderf_compat.c: Likewise.
31056         * math/w_remainderl_compat.c: Likewise.
31057         * math/w_sinh_compat.c: Likewise.
31058         * math/w_sinhf_compat.c: Likewise.
31059         * math/w_sinhl_compat.c: Likewise.
31060         * math/w_sqrt_compat.c: Likewise.
31061         * math/w_sqrtf_compat.c: Likewise.
31062         * math/w_sqrtl_compat.c: Likewise.
31063         * math/w_tgamma_compat.c: Likewise.
31064         * math/w_tgammaf_compat.c: Likewise.
31065         * math/w_tgammal_compat.c: Likewise.
31066         * math/w_scalb_compat.c (sysv_scalb): Condition definition on
31067         [LIBM_SVID_COMPAT].
31068         (__scalb): Condition call to sysv_scalb on [LIBM_SVID_COMPAT].
31069         * math/w_scalbf_compat.c (sysv_scalbf): Condition definition on
31070         [LIBM_SVID_COMPAT].
31071         (__scalbf): Condition call to sysv_scalbf on [LIBM_SVID_COMPAT].
31072         * math/w_scalbl_compat.c (sysv_scalbl): Condition definition on
31073         [LIBM_SVID_COMPAT].
31074         (__scalbl): Condition call to sysv_scalbl on [LIBM_SVID_COMPAT].
31075         * sysdeps/i386/fpu/w_sqrt.c: New file.
31076         * sysdeps/ia64/fpu/w_acos.c: Likewise.
31077         * sysdeps/ia64/fpu/w_acosf.c: Likewise.
31078         * sysdeps/ia64/fpu/w_acosh.c: Likewise.
31079         * sysdeps/ia64/fpu/w_acoshf.c: Likewise.
31080         * sysdeps/ia64/fpu/w_acoshl.c: Likewise.
31081         * sysdeps/ia64/fpu/w_acosl.c: Likewise.
31082         * sysdeps/ia64/fpu/w_asin.c: Likewise.
31083         * sysdeps/ia64/fpu/w_asinf.c: Likewise.
31084         * sysdeps/ia64/fpu/w_asinl.c: Likewise.
31085         * sysdeps/ia64/fpu/w_atan2.c: Likewise.
31086         * sysdeps/ia64/fpu/w_atan2f.c: Likewise.
31087         * sysdeps/ia64/fpu/w_atan2l.c: Likewise.
31088         * sysdeps/ia64/fpu/w_atanh.c: Likewise.
31089         * sysdeps/ia64/fpu/w_atanhf.c: Likewise.
31090         * sysdeps/ia64/fpu/w_atanhl.c: Likewise.
31091         * sysdeps/ia64/fpu/w_cosh.c: Likewise.
31092         * sysdeps/ia64/fpu/w_coshf.c: Likewise.
31093         * sysdeps/ia64/fpu/w_coshl.c: Likewise.
31094         * sysdeps/ia64/fpu/w_exp.c: Likewise.
31095         * sysdeps/ia64/fpu/w_exp10.c: Likewise.
31096         * sysdeps/ia64/fpu/w_exp10f.c: Likewise.
31097         * sysdeps/ia64/fpu/w_exp10l.c: Likewise.
31098         * sysdeps/ia64/fpu/w_exp2.c: Likewise.
31099         * sysdeps/ia64/fpu/w_exp2f.c: Likewise.
31100         * sysdeps/ia64/fpu/w_exp2l.c: Likewise.
31101         * sysdeps/ia64/fpu/w_expf.c: Likewise.
31102         * sysdeps/ia64/fpu/w_expl.c: Likewise.
31103         * sysdeps/ia64/fpu/w_fmod.c: Likewise.
31104         * sysdeps/ia64/fpu/w_fmodf.c: Likewise.
31105         * sysdeps/ia64/fpu/w_fmodl.c: Likewise.
31106         * sysdeps/ia64/fpu/w_hypot.c: Likewise.
31107         * sysdeps/ia64/fpu/w_hypotf.c: Likewise.
31108         * sysdeps/ia64/fpu/w_hypotl.c: Likewise.
31109         * sysdeps/ia64/fpu/w_lgamma_r.c: Likewise.
31110         * sysdeps/ia64/fpu/w_lgammaf_r.c: Likewise.
31111         * sysdeps/ia64/fpu/w_lgammal_r.c: Likewise.
31112         * sysdeps/ia64/fpu/w_log.c: Likewise.
31113         * sysdeps/ia64/fpu/w_log10.c: Likewise.
31114         * sysdeps/ia64/fpu/w_log10f.c: Likewise.
31115         * sysdeps/ia64/fpu/w_log10l.c: Likewise.
31116         * sysdeps/ia64/fpu/w_log2.c: Likewise.
31117         * sysdeps/ia64/fpu/w_log2f.c: Likewise.
31118         * sysdeps/ia64/fpu/w_log2l.c: Likewise.
31119         * sysdeps/ia64/fpu/w_logf.c: Likewise.
31120         * sysdeps/ia64/fpu/w_logl.c: Likewise.
31121         * sysdeps/ia64/fpu/w_pow.c: Likewise.
31122         * sysdeps/ia64/fpu/w_powf.c: Likewise.
31123         * sysdeps/ia64/fpu/w_powl.c: Likewise.
31124         * sysdeps/ia64/fpu/w_remainder.c: Likewise.
31125         * sysdeps/ia64/fpu/w_remainderf.c: Likewise.
31126         * sysdeps/ia64/fpu/w_remainderl.c: Likewise.
31127         * sysdeps/ia64/fpu/w_sinh.c: Likewise.
31128         * sysdeps/ia64/fpu/w_sinhf.c: Likewise.
31129         * sysdeps/ia64/fpu/w_sinhl.c: Likewise.
31130         * sysdeps/ia64/fpu/w_sqrt.c: Likewise.
31131         * sysdeps/ia64/fpu/w_sqrtf.c: Likewise.
31132         * sysdeps/ia64/fpu/w_sqrtl.c: Likewise.
31133         * sysdeps/ia64/fpu/w_tgamma.c: Likewise.
31134         * sysdeps/ia64/fpu/w_tgammaf.c: Likewise.
31135         * sysdeps/ia64/fpu/w_tgammal.c: Likewise.
31136         * sysdeps/ieee754/dbl-64/w_exp_compat.c: Condition contents on
31137         [LIBM_SVID_COMPAT].
31138         * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
31139         * sysdeps/ieee754/k_standard.c: Likewise.
31140         * sysdeps/ieee754/k_standardf.c: Likewise.
31141         * sysdeps/ieee754/k_standardl.c: Likewise.
31142         * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
31143         * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
31144         * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
31145         * sysdeps/ieee754/ldbl-64-128/w_expl_compat.c: Condition
31146         long_double_symbol call on [LIBM_SVID_COMPAT].
31147         * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
31148         * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
31149         * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
31150         * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
31151         * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
31152         * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
31153         * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
31154         * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
31155         * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
31156         * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
31157         * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
31158         * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
31159         * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
31160         * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
31161         * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
31162         * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
31163         * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c: Likewise.
31164         * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
31165         * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
31166         * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
31167         * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c: Condition
31168         long_double_symbol and compat_symbol calls on [LIBM_SVID_COMPAT].
31170 2017-09-05  Steve Ellcey  <sellcey@cavium.com>
31172         * include/shlib-compat.h (TEST_COMPAT): New Macro.
31173         * malloc/tst-mallocstate.c: Convert from test-skeleton
31174         to test-driver.  Ifdef code using TEST_COMPAT macro.
31175         * math/test-matherr-2.c: Ifdef test using TEST_COMPAT macro.
31176         * math/test-matherr.c: Likewise.
31178 2017-09-05  Joseph Myers  <joseph@codesourcery.com>
31180         [BZ #22086]
31181         * debug/pcprofiledump.c (main): Use byte-swapped mask when
31182         comparing word with byte-swapped constant.
31184 2017-09-05  Chris Leonard  <cjlhomeaddress@gmail.com>
31186         [BZ #20498]
31187         * locale/iso-639.def: add Miskito.
31188         * localedata/SUPPORTED: Add miq_NI/UTF-8.
31189         * localedata/locales/miq_NI: New file.
31191 2017-09-04  H.J. Lu  <hongjiu.lu@intel.com>
31193         [BZ #18822]
31194         * include/sys/stat.h (__chmod): Add libc_hidden_proto.
31195         (__mkdir): Likewise.
31196         * io/chmod.c (__chmod): Add libc_hidden_def.
31197         * io/mkdir.c (__mkdir): Likewise.
31198         * sysdeps/mach/hurd/chmod.c (__chmod): Likewise.
31199         * sysdeps/mach/hurd/mkdir.c (__mkdir): Likewise.
31200         * sysdeps/unix/sysv/linux/generic/chmod.c (__chmod): Likewise.
31201         * sysdeps/unix/sysv/linux/generic/mkdir.c (__mkdir): Likewise.
31203 2017-09-04  Joseph Myers  <joseph@codesourcery.com>
31205         * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
31206         version to 4.13.
31208         [BZ #22082]
31209         * math/bits/math-finite.h (exp10): Redirect if [__GLIBC_USE
31210         (IEC_60559_FUNCS_EXT)], not [__USE_GNU].
31212 2017-09-04  Florian Weimer  <fweimer@redhat.com>
31214         * math/math.h: Issue warning if log is defined.
31216 2017-09-04  Joseph Myers  <joseph@codesourcery.com>
31218         * scripts/build-many-glibcs.py (Context.checkout): Default Linux
31219         kernel version to 4.13.
31221 2017-09-03  Samuel Thibault  <samuel.thibault@ens-lyon.org>
31223         * sysdeps/generic/sigsetops.h: Remove spurious #endif.
31224         (__sigismember, __sigaddset, __sigdelset): Fix referencing set
31225         parameter.
31226         * sysdeps/mach/hurd/bits/socket.h: Include <sys/types.h> instead of
31227         just <bits/types.h>.
31228         * sysdeps/posix/preadv2.c: Use off_t instead of OFF_T.
31229         * sysdeps/posix/preadv64v2.c: Use off64_t instead of OFF_T.
31230         * sysdeps/posix/pwritev2.c: Use off_t instead of OFF_T.
31231         * sysdeps/posix/pwritev64v2.c: Use off64_t instead of OFF_T.
31232         * misc/preadv2.c: Include <errno.h>.
31233         * misc/preadv64v2.c: Include <errno.h>.
31234         * misc/pwritev2.c: Include <errno.h>.
31235         * misc/pwritev64v2.c: Include <errno.h>.
31236         * sysdeps/posix/preadv2.c: Include <errno.h>.
31237         * sysdeps/posix/preadv64v2.c: Include <errno.h>.
31238         Fix <unistd.h> inclusion.
31239         * sysdeps/posix/pwritev2.c: Include <errno.h>.
31240         * sysdeps/posix/pwritev64v2.c: Include <errno.h>.
31241         * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno, __sbrk,
31242         __strtoul_internal): New functions.
31243         * sysdeps/posix/pause.c: Include <sigsetops.h>.
31244         * sysdeps/posix/system.c: Include <sigsetops.h>.
31245         * sysdeps/mach/hurd/i386/Makefile
31246         [$(subdir) = csu] (sysdep_routines): New rule: divdi3 object.
31247         [$(subdir) = csu] (sysdep-only-routines): Likewise.
31248         [$(subdir) = csu] (CFLAGS-divdi3.c): Likewise.
31249         * sysdeps/x86/fpu/include/bits/fenv.h [NO_HIDDEN]: Redirect
31250         __feraiseexcept_renamed to feraiseexcept instead of
31251         __GI_feraiseexcept.
31252         * sysdeps/mach/hurd/i386/Implies: Add mach/hurd/x86.
31253         * sysdeps/mach/hurd/x86/dl-sysdep.c: New file.
31254         * misc/tst-preadvwritev2-common.c (RWF_HIPRI, RWF_DSYNC, RWF_SYNC,
31255         RWF_NOWAIT): Define to 0 if undefined already.
31256         (do_test_with_invalid_flags): Set invalid_flag to 2 if RWF_SUPPORTED
31257         boils down to 0.
31258         * resolv/tst-resolv-res_init-skeleton.c (run_res_init)
31259         [!CLONE_NEWUTS]: Fail as unsupported if hostname is not NULL.
31261 2017-09-01  Joseph Myers  <joseph@codesourcery.com>
31263         * manual/math.texi (pow10): Do not document.
31264         (pow10f): Likewise.
31265         (pow10l): Likewise.
31266         * math/bits/mathcalls.h [__USE_GNU] (pow10): Do not declare.
31267         * math/bits/math-finite.h [__USE_GNU] (pow10): Likewise.
31268         * math/libm-test-exp10.inc (pow10_test): Remove.
31269         (do_test): Do not call pow10.
31270         * math/w_exp10_compat.c (pow10): Make into compat symbol.
31271         [NO_LONG_DOUBLE] (pow10l): Likewise.
31272         * math/w_exp10f_compat.c (pow10f): Likewise.
31273         * math/w_exp10l_compat.c (pow10l): Likewise.
31274         * sysdeps/ia64/fpu/e_exp10.S: Include <shlib-compat.h>.
31275         (pow10): Make into compat symbol.
31276         * sysdeps/ia64/fpu/e_exp10f.S: Include <shlib-compat.h>.
31277         (pow10f): Make into compat symbol.
31278         * sysdeps/ia64/fpu/e_exp10l.S: Include <shlib-compat.h>.
31279         (pow10l): Make into compat symbol.
31280         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Remove
31281         pow10.
31282         (CFLAGS-nldbl-pow10.c): Remove variable..
31283         * sysdeps/ieee754/ldbl-opt/nldbl-pow10.c: Remove file.
31284         * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c (pow10l): Condition on
31285         [SHLIB_COMPAT (libm, GLIBC_2_1, GLIBC_2_27)].
31286         * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (compat_symbol):
31287         Undefine and redefine.
31288         (pow10l): Make into compat symbol.
31289         * sysdeps/aarch64/libm-test-ulps: Remove pow10 ulps.
31290         * sysdeps/alpha/fpu/libm-test-ulps: Likewise.
31291         * sysdeps/arm/libm-test-ulps: Likewise.
31292         * sysdeps/hppa/fpu/libm-test-ulps: Likewise.
31293         * sysdeps/i386/fpu/libm-test-ulps: Likewise.
31294         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
31295         * sysdeps/microblaze/libm-test-ulps: Likewise.
31296         * sysdeps/mips/mips32/libm-test-ulps: Likewise.
31297         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
31298         * sysdeps/nios2/libm-test-ulps: Likewise.
31299         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
31300         * sysdeps/powerpc/nofpu/libm-test-ulps: Likewise.
31301         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
31302         * sysdeps/sh/libm-test-ulps: Likewise.
31303         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
31304         * sysdeps/tile/libm-test-ulps: Likewise.
31305         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
31307 2017-09-01  Paul Pluzhnikov  <ppluzhnikov@google.com>
31309         * stdlib/tst-atexit-common.c (crumbs): Ensure correct size.
31311 2017-09-01  H.J. Lu  <hongjiu.lu@intel.com>
31313         * posix/tst-regex.c (do_test): Replace "../ChangeLog.8" with
31314         "../ChangeLog.old/ChangeLog.8".
31315         * posix/tst-regex2.c (do_test): Replace "../ChangeLog.14" with
31316         "../ChangeLog.old/ChangeLog.14".
31318 2017-09-01  H.J. Lu  <hongjiu.lu@intel.com>
31320         * manual/contrib.texi: Credit Ulrich Drepper for the POSIX
31321         Threads Library.
31323 2017-09-01  Joseph Myers  <joseph@codesourcery.com>
31325         * sysdeps/unix/sysv/linux/gentempfd.c: Include <string.h>.
31327 2017-09-01  H.J. Lu  <hongjiu.lu@intel.com>
31329         * csu/version.c (banner): Remove "by Roland McGrath et al.".
31330         * nptl/Banner: Remove "by Ulrich Drepper et al.".
31332 2017-09-01  Paul Pluzhnikov  <ppluzhnikov@google.com>
31334         * stdlib/tst-atexit-common.c (do_test): Test support for at least
31335         32 atexit handlers.
31337 2017-09-01  Zack Weinberg  <zackw@panix.com>
31339         * math/math.h (HUGE_VAL): Improve commentary.
31341 2017-09-01  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
31342             Andreas Schwab  <schwab@suse.de>
31344         [BZ #21530]
31345         * include/stdio.h (__gen_tempfd): New function.
31346         * stdio-common/Makefile (routines): Add gentempfd.
31347         * stdio-common/gentempfd.c: New file.
31348         * sysdeps/unix/sysv/linux/gentempfd.c: Likewise.
31349         * stdio-common/tmpfile.c (tmpfile): First try to use a system specific
31350         unnamed file first.
31352 2017-09-01  Florian Weimer  <fweimer@redhat.com>
31354         [BZ #21915]
31355         [BZ #21922]
31356         * sysdeps/posix/getaddrinfo.c (gethosts): Look at NSS function
31357         result to determine success or failure, not the errno value.
31358         * nss/Makefile (tests): Add tst-nss-files-hosts-erange.
31359         (tst-nss-files-hosts-erange): Link with -ldl.
31360         * nss/tst-nss-files-hosts-erange.c: New file.
31361         * nss/tst-resolv-basic.c (response): Handle nodata.example.
31362         (do_test): Add NO_DATA tests.
31363         * resolv/tst-resolv-basic.c (test_nodata_nxdomain): New function.
31364         (do_test): Call it.
31366 2017-09-01  Florian Weimer  <fweimer@redhat.com>
31368         [BZ #21922]
31369         * sysdeps/posix/getaddrinfo.c (gaih_inet): Report EAI_NODATA error
31370         coming from gethostbyname2_r.
31372 2017-09-01  Florian Weimer  <fweimer@redhat.com>
31374         * support/namespace.h (struct support_chroot_configuration): Add
31375         hosts, host_conf.
31376         (struct support_chroot): Add path_hosts, path_host_conf.
31377         * support/support_chroot.c (write_file): New function.
31378         (support_chroot_create): Call it to process /etc/resolv.conf,
31379         /etc/hosts, /etc/host.conf.
31380         (support_chroot_free): Update.
31382 2017-09-01  Florian Weimer  <fweimer@redhat.com>
31384         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use h_errno if
31385         status indicates it is set.
31387 2017-09-01  Florian Weimer  <fweimer@redhat.com>
31389         [BZ #20532]
31390         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make reporting of NSS
31391         function lookup failures more reliable.
31393 2017-09-01  Florian Weimer  <fweimer@redhat.com>
31395         * sysdeps/posix/getaddrinfo.c (gethosts): Use h_errno directly.
31396         (getcanonname): Likewise.
31397         (gaih_inet): Likewise.
31399 2017-09-01  Florian Weimer  <fweimer@redhat.com>
31401         * sysdeps/posix/getaddrinfo.c (gethosts): Use errno directly.
31402         (getcanonname): Likewise.
31403         (gaih_inet): Likewise.
31405 2017-08-31  Steve Ellcey  <sellcey@cavium.com>
31406             Richard Henderson  <rth@twiddle.net>
31408         * sysdeps/aarch64/fpu/s_llrint.c (OREG_SIZE): New macro.
31409         * sysdeps/aarch64/fpu/s_llround.c (OREG_SIZE): Likewise.
31410         * sysdeps/aarch64/fpu/s_llrintf.c (OREGS, IREGS): Remove.
31411         (IREG_SIZE, OREG_SIZE): New macros.
31412         * sysdeps/aarch64/fpu/s_llroundf.c: (OREGS, IREGS): Remove.
31413         (IREG_SIZE, OREG_SIZE): New macros.
31414         * sysdeps/aarch64/fpu/s_lrintf.c (IREGS): Remove.
31415         (IREG_SIZE): New macro.
31416         * sysdeps/aarch64/fpu/s_lroundf.c (IREGS): Remove.
31417         (IREG_SIZE): New macro.
31418         * sysdeps/aarch64/fpu/s_lrint.c (get-rounding-mode.h, stdint.h):
31419         New includes.
31420         (IREG_SIZE, OREG_SIZE): Initialize if not already set.
31421         (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
31422         (__CONCATX): Handle exceptions correctly on large values that may
31423         set FE_INVALID.
31424         * sysdeps/aarch64/fpu/s_lround.c (IREG_SIZE, OREG_SIZE):
31425         Initialize if not already set.
31426         (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
31428 2017-08-31  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
31430         * sysdeps/generic/not-cancel.h (NO_CANCELLATION): Remove macro.
31431         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (NO_CANCELLATION):
31432         Likewise.
31433         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (NO_CANCELLATION):
31434         Likewise.
31435         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (NO_CANCELLATION):
31436         Likewise.
31437         * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (NO_CANCELLATION):
31438         Likewise.
31439         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (NO_CANCELLATION):
31440         Likewise.
31441         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (NO_CANCELLATION):
31442         Likewise.
31443         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (NO_CANCELLATION):
31444         Likewise.
31445         * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h
31446         (NO_CANCELLATION): Likewise.
31447         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (NO_CANCELLATION):
31448         Likewise.
31449         * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (NO_CANCELLATION):
31450         Likewise.
31451         * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h (NO_CANCELLATION):
31452         Likewise.
31453         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h
31454         (NO_CANCELLATION): Likewise.
31455         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h
31456         (NO_CANCELLATION): Likewise.
31457         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (NO_CANCELLATION):
31458         Likewise
31459         * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h (NO_CANCELLATION):
31460         Likewise.
31461         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (NO_CANCELLATION):
31462         Likewise.
31463         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (NO_CANCELLATION):
31464         Likewise.
31465         * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): Add
31466         hidden prototype.
31467         * sysdeps/unix/sysv/linux/fcntl.c (__fcntl_nocancel): Define only
31468         for !IS_IN (rtld) and remove NO_CANCELLATION usage.
31470 2017-08-31  Steve Ellcey  <sellcey@cavium.com>
31472         * sysdeps/aarch64/dl-irel.h: (elf_ifunc_invoke): Change argument type
31473         in resolver call.
31475 2017-08-31  Florian Weimer  <fweimer@redhat.com>
31477         * include/libc-symbols.h (internal_function): Remove.
31479 2017-08-31  Florian Weimer  <fweimer@redhat.com>
31481         * stdlib/fmtmsg.c (internal_addseverity): Remove
31482         internal_function.
31484 2017-08-31  Florian Weimer  <fweimer@redhat.com>
31486         * stdio-common/printf_fp.c (group_number): Remove
31487         internal_function.
31488         * stdio-common/vfprintf.c (buffered_vfprintf): Likewise.
31490 2017-08-31  Florian Weimer  <fweimer@redhat.com>
31492         * posix/fnmatch.c (internal_function): Remove definition.
31493         * posix/fnmatch_loop.c (FCT, EXT, END): Remove internal_function.
31494         * posix/regcomp.c (peek_token, init_word_char)
31495         (duplicate_node_closure, fetch_token, peek_token)
31496         (peek_token_bracket, build_range_exp, build_collating_symbol):
31497         Likewise.
31498         * posix/regex_internal.c (re_string_construct_common)
31499         (create_ci_newstate, create_cd_newstate, re_string_allocate)
31500         (re_string_construct, re_string_realloc_buffers, build_wcs_buffer)
31501         (build_wcs_upper_buffer, re_string_skip_chars, build_upper_buffer)
31502         (re_string_translate_buffer, re_string_reconstruct)
31503         (re_string_peek_byte_case, re_string_fetch_byte_case)
31504         (re_string_destruct, re_string_context_at, re_node_set_alloc)
31505         (re_node_set_init_1, re_node_set_init_2, re_node_set_init_copy)
31506         (re_node_set_add_intersect, re_node_set_init_union)
31507         (re_node_set_merge, re_node_set_insert, re_node_set_insert_last)
31508         (re_node_set_compare, re_node_set_contains, re_node_set_remove_at)
31509         (re_dfa_add_node, calc_state_hash, re_acquire_state)
31510         (re_acquire_state_context): Likewise.
31511         * posix/regex_internal.h (internal_function): Remove definition.
31512         (re_string_realloc_buffers, build_wcs_buffer)
31513         (build_wcs_upper_buffer, build_upper_buffer)
31514         (re_string_translate_buffer, re_string_context_at)
31515         (re_string_char_size_at, re_string_wchar_at)
31516         (re_string_elem_size_at): Likewise.
31517         * posix/regexec.c (match_ctx_init, match_ctx_clean)
31518         (match_ctx_free, match_ctx_add_entry, search_cur_bkref_entry)
31519         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init)
31520         (re_search_internal, re_search_2_stub, re_search_stub)
31521         (re_copy_regs, prune_impossible_nodes, check_matching)
31522         (check_halt_state_context, update_regs, push_fail_stack, set_regs)
31523         (free_fail_stack_return, sift_states_iter_mb)
31524         (sift_states_backward, build_sifted_states)
31525         (update_cur_sifted_state, add_epsilon_src_nodes, check_dst_limits)
31526         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos)
31527         (check_subexp_limits, sift_states_bkref, merge_state_array)
31528         (find_recover_state, transit_state, merge_state_with_log)
31529         (check_subexp_matching_top, transit_state_sb, transit_state_sb)
31530         (transit_state_mb, transit_state_bkref, get_subexp)
31531         (get_subexp_sub, find_subexp_node, check_arrival)
31532         (check_arrival_add_next_nodes, check_arrival_expand_ecl)
31533         (check_arrival_expand_ecl_sub, expand_bkref_cache, build_trtable)
31534         (check_node_accept_bytes, find_collation_sequence_value)
31535         (group_nodes_into_DFAstates, check_node_accept, extend_buffers)
31536         (acquire_init_state_context, check_halt_node_context)
31537         (proceed_next_node, pop_fail_stack, clean_state_log_if_needed)
31538         (sub_epsilon_src_nodes): Likewise.
31539         * posix/spawn_int.h (__spawn_valid_fd): Likewise.
31540         * posix/spawn_valid_fd (__spawn_valid_fd): Likewise.
31541         * posix/wordexp.c (parse_dollars, parse_backtick, parse_dquote)
31542         (eval_expr, w_addmem, w_addstr, w_addword, parse_backslash)
31543         (parse_qtd_backslash, parse_tilde, do_parse_glob, parse_glob)
31544         (parse_squote, eval_expr_val, eval_expr_multdiv, parse_arith)
31545         (exec_comm_child, exec_comm, parse_comm, parse_param): Likewise.
31546         * sysdeps/posix/ttyname.c (getttyname): Likewise.
31547         * sysdeps/posix/ttyname_r.c (getttyname_r): Likewise.
31548         * sysdeps/unix/sysv/linux/preadv.c (__atomic_preadv_replacement)
31549         (PREADV): Likewise.
31550         * sysdeps/unix/sysv/linux/preadv64.c (__atomic_preadv64_replacement)
31551         (PREADV): Likewise.
31552         * sysdeps/unix/sysv/linux/pwritev.c (__atomic_pwritev_replacement)
31553         (PWRITEV): Likewise.
31554         * sysdeps/unix/sysv/linux/pwritev64.c (__atomic_pwritev64_replacement)
31555         (PWRITEV): Likewise.
31556         * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Likewise.
31557         * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
31559 2017-08-31  Florian Weimer  <fweimer@redhat.com>
31561         * nptl/allocatestack.c (change_stack_perm, __deallocate_stack)
31562         (setxid_mark_thread, setxid_unmark_thread, setxid_signal_thread):
31563         Remove internal_function.
31564         * nptl/cancellation.c (__pthread_disable_asynccancel): Likewise.
31565         * nptl/libc_pthread_init.c (__libc_pthread_init): Likewise.
31566         * nptl/pthreadP.h (__find_in_stack_list, __free_tcb)
31567         (__deallocate_stack, __libc_pthread_init)
31568         (__pthread_mutex_cond_lock, __pthread_mutex_cond_lock_adjust)
31569         (__pthread_mutex_unlock_usercnt, __pthread_disable_asynccancel)
31570         (__libc_disable_asynccancel, __librt_disable_asynccancel):
31571         Likewise.
31572         * nptl/pthread_create.c (__find_in_stack_list, __free_tcb): Likewise.
31573         * nptl/pthread_mutex_cond_lock.c (__pthread_mutex_lock): Likewise.
31574         * nptl/pthread_mutex_lock.c (__pthread_mutex_cond_lock_adjust):
31575         Likewise.
31576         * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full)
31577         (__pthread_mutex_unlock_usercnt): Likewise.
31579 2017-08-31  Florian Weimer  <fweimer@redhat.com>
31581         * io/fts.c (fts_alloc, fts_build, fts_lfree, fts_load)
31582         (fts_maxarglen, fts_padjust, fts_palloc, fts_sort, fts_stat)
31583         (fts_safe_changedir): Remove internal_function.
31584         * io/ftw.c (internal_function): Remove definition.
31585         (ftw_dir, process_entry, ftw_startup): Remove internal_function.
31587 2017-08-31  Florian Weimer  <fweimer@redhat.com>
31589         * inet/deadline.c (__deadline_current_time)
31590         (__deadline_from_timeval, __deadline_to_ms): Remove
31591         internal_function.
31592         * inet/getnameinfo.c (nrl_domainname): Likewise.
31593         * inet/getnetgrent_r.c (__internal_setnetgrent_reuse): Likewise.
31594         * inet/inet6_option.c (add_pad): Likewise.
31595         * inet/net-internal.h (__deadline_current_time)
31596         (__deadline_from_timeval, __deadline_to_ms): Likewise.
31597         * inet/rcmd.c (__checkhost_sa, __icheckuser): Likewise.
31598         * sysdeps/mach/hurd/if_index.c (__protocol_available): Likewise.
31599         * sysdeps/unix/sysv/linux/ifaddrs.c (map_newlink): Likewise.
31601 2017-08-31  Joseph Myers  <joseph@codesourcery.com>
31603         *  math/math.h [__USE_ISOC99] (NAN): Define directly here.  Do not
31604         include <bits/nan.h>.
31605         * math/Makefile (headers): Remove bits/nan.h.
31606         * bits/nan.h: Remove.
31607         * sysdeps/ieee754/bits/nan.h: Likewise.
31608         * sysdeps/mips/bits/nan.h: Likewise.
31610         * math/math.h [__USE_ISOC99] (INFINITY): Define directly here.  Do
31611         not include <bits/inf.h>.
31612         * math/Makefile (headers): Remove bits/inf.h.
31613         * bits/inf.h: Remove.
31614         * sysdeps/ieee754/bits/inf.h: Likewise.
31616         * math/math.h: Do not include bits/huge_val.h, bits/huge_valf.h,
31617         bits/huge_vall.h or bits/huge_val_flt128.h.
31618         (HUGE_VAL): Define directly here.
31619         [__USE_ISOC99] (HUGE_VALF): Likewise.
31620         [__USE_ISOC99] (HUGE_VALL): Likewise.
31621         [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
31622         (HUGE_VAL_F128): Likewise.
31623         * math/Makefile (headers): Remove bits/huge_val.h,
31624         bits/huge_valf.h, bits/huge_vall.h and bits/huge_val_flt128.h.
31625         * bits/huge_val.h: Remove.
31626         * bits/huge_val_flt128.h: Likewise.
31627         * bits/huge_valf.h: Likewise.
31628         * bits/huge_vall.h: Likewise.
31629         * sysdeps/ia64/bits/huge_vall.h: Likewise.
31630         * sysdeps/ieee754/bits/huge_val.h: Likewise.
31631         * sysdeps/ieee754/bits/huge_valf.h: Likewise.
31632         * sysdeps/m68k/m680x0/bits/huge_vall.h: Likewise.
31633         * sysdeps/sh/bits/huge_val.h: Likewise.
31634         * sysdeps/sparc/bits/huge_vall.h: Likewise.
31635         * sysdeps/x86/bits/huge_vall.h: Likewise.
31637 2017-08-31  Florian Weimer  <fweimer@redhat.com>
31639         * elf/dl-addr-obj.c (_dl_addr_inside_object): Remove
31640         internal_function.
31641         * elf/dl-cache.c (_dl_cache_libcmp, _dl_load_cache_lookup):
31642         Likewise.
31643         * elf/dl-debug.c (_dl_debug_initialize): Likewise.
31644         * elf/dl-deps.c (_dl_build_local_scope, _dl_map_object_deps): Likewise.
31645         * elf/dl-environ.c (_dl_next_ld_env_entry): Likewise.
31646         * elf/dl-execstack.c (_dl_make_stack_executable): Likewise.
31647         * elf/dl-fini.c (_dl_sort_fini): Likewise.
31648         * elf/dl-hwcaps.c (_dl_important_hwcaps): Likewise.
31649         * elf/dl-libc.c (dlerror_run): Likewise.
31650         * elf/dl-load.c (add_name_to_object, decompose_rpath)
31651         (_dl_init_paths, _dl_map_object, _dl_rtld_di_serinfo): Likewise.
31652         * elf/dl-lookup.c (add_dependency, _dl_debug_bindings)
31653         (_dl_lookup_symbol_x, _dl_setup_hash, _dl_debug_bindings):
31654         Likewise.
31655         * elf/dl-misc.c (_dl_sysdep_read_whole_file, _dl_name_match_p)
31656         (_dl_higher_prime_number, _dl_strtoul): Likewise.
31657         * elf/dl-object.c (_dl_add_to_namespace_list, _dl_new_object): Likewise.
31658         * elf/dl-profile.c (_dl_start_profile): Likewise.
31659         * elf/dl-reloc.c (_dl_try_allocate_static_tls)
31660         (_dl_allocate_static_tls, _dl_protect_relro, _dl_reloc_bad_type):
31661         Likewise.
31662         * elf/dl-support.c (_dl_aux_init, _dl_non_dynamic_init): Likewise.
31663         * elf/dl-sym.c (_dl_tls_symaddr, do_sym): Likewise.
31664         * elf/dl-sysdep.c (_dl_sysdep_start_cleanup, _dl_show_auxv): Likewise.
31665         * elf/dl-tls.c (_dl_next_tls_modid, _dl_count_modids)
31666         (_dl_determine_tlsoffset, allocate_dtv, _dl_get_tls_static_info)
31667         (_dl_allocate_tls_storage): Likewise.
31668         * elf/dl-version.c (match_symbol, _dl_check_map_versions)
31669         (_dl_check_all_versions): Likewise.
31670         * elf/dynamic-link.h (_dl_try_allocate_static_tls): Likewise.
31671         * elf/tlsdeschtab.h (_dl_make_tlsdesc_dynamic): Likewise.
31672         * elf/tst-_dl_addr_inside_object.c (_dl_addr_inside_object): Likewise.
31673         * sysdeps/aarch64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
31674         * sysdeps/aarch64/tlsdesc.c (_dl_unmap): Likewise.
31675         * sysdeps/arm/dl-lookupcfg.h (_dl_unmap): Likewise.
31676         * sysdeps/arm/dl-machine.h (elf_machine_load_address): Remove
31677         internal_function from __dl_start.
31678         * sysdeps/arm/dl-tlsdesc.h (_dl_unmap): Remove internal_function.
31679         * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): Likewise.
31680         * sysdeps/generic/ldsodefs.h (_dl_name_match_p)
31681         (_dl_higher_prime_number, _dl_strtoul, _dl_map_object)
31682         (_dl_map_object_deps, _dl_setup_hash, _dl_rtld_di_serinfo)
31683         (_dl_lookup_symbol_x, _dl_add_to_namespace_list, _dl_new_object)
31684         (_dl_protect_relro, _dl_reloc_bad_type, _dl_check_all_versions)
31685         (_dl_check_map_versions, _dl_sort_fini, _dl_debug_initialize)
31686         (_dl_init_paths, _dl_start_profile, _dl_show_auxv)
31687         (_dl_next_ld_env_entry, _dl_important_hwcaps)
31688         (_dl_load_cache_lookup, _dl_sysdep_read_whole_file)
31689         (_dl_sysdep_start_cleanup, _dl_next_tls_modid, _dl_count_modids)
31690         (_dl_determine_tlsoffset, _dl_get_tls_static_info)
31691         (_dl_allocate_static_tls, _dl_allocate_tls_storage)
31692         (_dl_addr_inside_object, _dl_non_dynamic_init, _dl_aux_init):
31693         Likewise.
31694         (struct rtld_global_ro): Remove internal_function from the
31695         _dl_lookup_symbol_x member.
31696         (_dl_symbol_value): Remove.  No longer defined anywhere.
31697         * sysdeps/i386/dl-lookupcfg.h (_dl_unmap): Remove
31698         internal_function.
31699         * sysdeps/i386/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
31700         * sysdeps/i386/tlsdesc.c (_dl_unmap): Likewise.
31701         * sysdeps/mach/hurd/dl-sysdep.c (_dl_show_auxv): Likewise.
31702         * sysdeps/nios2/dl-init.c (_dl_nios2_get_gp_value): Likewise.
31703         * sysdeps/tile/dl-lookupcfg.h (_dl_unmap): Likewise.
31704         * sysdeps/tile/dl-machine.h (_dl_after_load): Likewise.
31705         * sysdeps/tile/dl-runtime.c (_dl_after_load, _dl_unmap): Likewise.
31706         * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Likewise.
31707         * sysdeps/unix/sysv/linux/dl-vdso.h (_dl_vdso_vsym): Likewise.
31708         * sysdeps/x86_64/dl-lookupcfg.h (_dl_unmap): Likewise.
31709         * sysdeps/x86_64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
31710         * sysdeps/x86_64/tlsdesc.c (_dl_unmap): Likewise.
31712 2017-08-31  Florian Weimer  <fweimer@redhat.com>
31714         * gmon/gmon.c (write_hist, write_call_graph, write_bb_counts):
31715         Remove internal_function.
31716         * sysdeps/arm/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
31717         Likewise.
31718         * sysdeps/sparc/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
31719         Likewise.
31721 2017-08-31  Florian Weimer  <fweimer@redhat.com>
31723         * dlfcn/dlerror.c (_dlerror_run): Remove internal_function.
31724         * elf/dl-sym.c (_dl_vsym, _dl_sym): Likewise.
31725         * include/dlfcn.h (_dl_sym, _dl_vsym, _dlerror_run): Likewise.
31727 2017-08-31  Florian Weimer  <fweimer@redhat.com>
31729         * resolv/gai_misc.c (__gai_find_request, __gai_remove_request)
31730         (__gai_enqueue_request): Remove internal_function.
31731         * resolv/gai_misc.h (__gai_enqueue_request, __gai_find_request)
31732         (__gai_remove_request, __gai_notify, __gai_notify_only)
31733         (__gai_sigqueue): Likewise.
31734         * resolv/gai_notify.c (__gai_notify_only, __gai_notify): Likewise.
31735         * resolv/gai_sigqueue.c (__gai_sigqueue): Likewise.
31736         * resolv/inet_ntop.c (inet_ntop4, inet_ntop6): Likewise.
31737         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
31738         Likewise.
31740 2017-08-31  Florian Weimer  <fweimer@redhat.com>
31742         * dirent/scandir-tail.c (SCANDIR_TAIL): Remove internal_function.
31743         * include/dirent.h (__opendirat, __getdents, __getdents64)
31744         (__alloc_dir, __scandir_tail, __scandir64_tail): Likewise.
31745         * sysdeps/posix/opendir.c (__opendirat, __alloc_dir): Likewise.
31746         * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
31747         * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
31748         Likewise.
31749         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Likewise.
31751 2017-08-31  Florian Weimer  <fweimer@redhat.com>
31753         * sysdeps/unix/sysv/linux/getcwd.c (generic_getcwd): Remove
31754         internal_function.
31755         (GETCWD_RETURN_TYPE): Likewise.
31757 2017-08-31  Florian Weimer  <fweimer@redhat.com>
31759         * include/time.h (__tz_compute, __strptime_internal): Remove
31760         internal_function.
31761         * time/strptime_l.c (__strptime_internal): Likewise.
31762         * time/tzset.c (compute_change, update_vars, __tz_compute): Likewise.
31764 2017-08-31  Florian Weimer  <fweimer@redhat.com>
31766         * iconv/gconv.c (__gconv): Remove internal_function.
31767         * iconv/gconv_builtin.c (__gconv_get_builtin_trans): Likewise.
31768         * iconv/gconv_cache.c (__gconv_load_cache, find_module_idx)
31769         (find_module, __gconv_compare_alias_cache, __gconv_lookup_cache)
31770         (__gconv_release_cache): Likewise.
31771         * iconv/gconv_close.c (__gconv_close): Likewise.
31772         * iconv/gconv_conf.c (detect_conflict, insert_module, add_module)
31773         (read_conf_file, __gconv_get_path): Likewise.
31774         * iconv/gconv_db.c (derivation_lookup, add_derivation)
31775         (__gconv_release_step, gen_steps, increment_counter)
31776         (find_derivation, __gconv_compare_alias, __gconv_find_transform)
31777         (__gconv_close_transform, free_modules_db): Likewise.
31778         * iconv/gconv_dl.c (__gconv_find_shlib, __gconv_release_shlib):
31779         Likewise.
31780         * iconv/gconv_int.h (__gconv_open, __gconv_close, __gconv)
31781         (__gconv_find_transform, __gconv_lookup_cache)
31782         (__gconv_release_step, __gconv_load_cache, __gconv_get_path)
31783         (__gconv_close_transform, __gconv_release_cache)
31784         (__gconv_loaded_object, __gconv_release_shlib)
31785         (__gconv_compare_alias): Likewise.
31786         * iconv/gconv_open.c (__gconv_open): Likewise.
31787         * iconv/iconv_prog.c (print_known_names, add_known_names): Likewise.
31788         * iconv/iconvconfig.c (add_module): Likewise.
31789         * intl/dcigettext.c (plural_lookup, guess_category_value)
31790         (category_to_name, get_output_charset, _nl_find_msg): Likewise.
31791         * intl/eval-plural.h (plural_eval): Likewise.
31792         * intl/finddomain.c (_nl_find_domain): Likewise.
31793         * intl/gettextP.h (_nl_unload_domain, _nl_find_domain)
31794         (_nl_load_domain, _nl_find_msg): Likewise.
31795         (internal_function): Remove definition.
31796         * intl/loadinfo.h (internal_function): Likewise.
31797         * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Remove
31798         internal_function.
31799         * intl/localealias.c (internal_function): Remove definition.
31800         (read_alias_file): Remove internal_function.
31801         * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Likewise.
31802         * intl/plural-exp.h (internal_function): Remove definition.
31803         (FREE_EXPRESSION, EXTRACT_PLURAL_EXPRESSION): Remove
31804         internal_function.
31805         * intl/plural.c: Regenerate.
31806         * intl/plural.y (FREE_EXPRESSION): Remove internal_function.
31807         * locale/coll-lookup.c (__collidx_table_lookup)
31808         (__collseq_table_lookup): Likewise.
31809         * locale/coll-lookup.h (__collidx_table_lookup)
31810         (__collseq_table_lookup): Likewise.
31811         * locale/findlocale.c (_nl_find_locale, _nl_remove_locale): Likewise.
31812         * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
31813         * locale/loadlocale.c (_nl_intern_locale_data, _nl_load_locale)
31814         (_nl_unload_locale): Likewise.
31815         * locale/localeinfo.h (struct __locale_data): Remove
31816         internal_function from cleanup member.
31817         (_nl_find_locale, _nl_load_locale, _nl_unload_locale)
31818         (_nl_remove_locale, _nl_load_locale_from_archive)
31819         (_nl_intern_locale_data, _nl_get_era_entry, _nl_select_era_entry)
31820         (_nl_get_alt_digit, _nl_get_walt_digit, _nl_parse_alt_digit)
31821         (_nl_cleanup_time): Remove internal_function.
31822         * time/alt_digit.c (_nl_get_alt_digit, _nl_get_walt_digit)
31823         (_nl_parse_alt_digit): Likewise.
31824         * time/era.c (_nl_init_era_entries, _nl_get_era_entry)
31825         (_nl_select_era_entry): Likewise.
31826         * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
31827         * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv, __wcsmbs_clone_conv)
31828         (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
31829         * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv, __wcsmbs_clone_conv)
31830         (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
31832 2017-08-31  Florian Weimer  <fweimer@redhat.com>
31834         * rt/aio_sigqueue.c (__aio_sigqueue): Remove internal_function.
31835         * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
31836         * sysdeps/pthread/aio_misc.c (__aio_free_request, __aio_find_req)
31837         (__aio_find_req_fd, __aio_remove_request, __aio_enqueue_request):
31838         Likewise.
31839         * sysdeps/pthread/aio_misc.h (__aio_enqueue_request)
31840         (__aio_find_req, __aio_find_req_fd, __aio_free_request)
31841         (__aio_notify, __aio_notify_only, __aio_sigqueue): Likewise.
31842         * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
31843         Likewise.
31844         * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue): Likewise.
31846 2017-08-31  Florian Weimer  <fweimer@redhat.com>
31848         * misc/getttyent.c (skip, value): Remove internal_function.
31849         * misc/syslog.c (openlog_internal): Likewise.
31850         * misc/tsearch.c (trecurse, tdestroy_recurse): Likewise.
31852 2017-08-31  Florian Weimer  <fweimer@redhat.com>
31854         * include/nss.h (__nss_valid_field, __nss_valid_list_field)
31855         (__nss_rewrite_field): Remove internal_function.
31856         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
31857         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
31858         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
31859         * nss/nsswitch.c (nss_parse_file, nss_getline)
31860         (nss_parse_service_list, nss_new_service): Likewise.
31861         * nss/rewrite_field.c (__nss_rewrite_field): Likewise.
31862         * nss/valid_field.c (__nss_valid_field): Likewise.
31863         * nss/valid_list_field.c (__nss_valid_list_field): Likewise.
31865 2017-08-31  Florian Weimer  <fweimer@redhat.com>
31867         * malloc/arena.c (__malloc_fork_lock_parent)
31868         (__malloc_fork_unlock_parent, __malloc_fork_unlock_child)
31869         (next_env_entry, new_heap, heap_trim, arena_get2): Remove
31870         internal_function from defintions.
31871         * malloc/hooks.c (mem2mem_check, mem2chunk_check): Likewise.
31872         * malloc/malloc-internal.h (__malloc_fork_lock_parent)
31873         (__malloc_fork_unlock_parent, __malloc_fork_unlock_child): Remove
31874         internal_function from declarations.
31875         * malloc/malloc.c (internal_function): Do not define.
31876         (mem2mem_check): Remove internal_function from declaration.
31877         (munmap_chunk, mremap_chunk): Remove internal_function.
31878         * malloc/mtrace.c (tr_where): Likewise.
31880 2017-08-31  Florian Weimer  <fweimer@redhat.com>
31882         * include/rpc/pmap_clnt.h (__get_socket): Remove
31883         internal_function.
31884         * sunrpc/auth_des.c (synchronize): Likewise.
31885         * sunrpc/auth_unix.c (marshal_new_auth): Likewise.
31886         * sunrpc/clnt_perr.c (auth_errmsg): Likewise.
31887         * sunrpc/des_impl.c (des_encrypt, des_set_key): Likewise.
31888         * sunrpc/key_call.c (key_call_keyenvoy, key_call_socket)
31889         (key_call): Likewise.
31890         * sunrpc/pm_getport.c (__get_socket): Likewise.
31891         * sunrpc/pmap_rmt.c (getbroadcastnets): Likewise.
31892         * sunrpc/svc_unix.c (makefd_xprt): Likewise.
31893         * sunrpc/svc_tcp.c (makefd_xprt): Likewise.
31894         * sunrpc/svcauth_des.c (cache_init, cache_spot, cache_ref)
31895         (invalidate): Likewise.
31896         * sunrpc/xcrypt.c (hexval, hex2bin, bin2hex): Likewise.
31897         * sunrpc/xdr_rec.c (fix_buf_size, skip_input_bytes, flush_out)
31898         (set_input_fragment, get_input_bytes): Likewise.
31900 2017-08-31  Florian Weimer  <fweimer@redhat.com>
31902         * malloc/malloc.c (_int_free): Remove locked variable and related
31903         asserts.
31905 2017-08-31  H.J. Lu  <hongjiu.lu@intel.com>
31907         [BZ #22051]
31908         * Makerules (build-module-helper-objlist): Filter out
31909         $(elf-objpfx)sofini.os.
31910         (build-shlib-objlist): Append $(elf-objpfx)sofini.os if it is
31911         needed.
31913 2017-08-31  Florian Weimer  <fweimer@redhat.com>
31915         * libio/fcloseall.c: Assume weak_alias is defined.
31916         * libio/feof.c: Likewise.
31917         * libio/fileno.c: Likewise.
31918         * libio/fileops.c: Assume _LIBC, errno, __set_errno are defined.
31919         (_POSIX_SOURCE, open, lseek, read, write): Remove macro
31920         definitions.
31921         (_IO_file_open): Call __open directly.
31922         (_IO_new_file_sync): Assume ESPIPE is defined.
31923         (_IO_file_seekoff_maybe_mmap): Call __read directly.
31924         (_IO_new_file_write): Call __write directly.
31925         * libio/ftello.c (__ftello): Assume EIO, EOVERFLOW are defined.
31926         * libio/ftello64.c (__ftello64): Assume EIO is defined.
31927         * libio/genops.c: Assume _LIBC is defined.
31928         (save_for_backup): Remove internal_function.
31929         * libio/getc.c: Assume weak_alias is defined.
31930         * libio/getwc.c: Likewise.
31931         * libio/iofclose.c: Assume _LIBC is defined.
31932         * libio/iofdopen.c: Likewise.
31933         (_IO_fcntl): Remove macro definition.
31934         (_IO_new_fdopen): Assume F_GETFL, F_SETFL, O_ACCMODE are defined.
31935         Call __fcntl directly.
31936         * libio/iofflush.c: Assume weak_alias is defined.
31937         * libio/iofgetpos.c (_IO_new_fgetpos): Assume EIO, EOVERFLOW are
31938         defined.
31939         * libio/iofgetpos64.c (_IO_new_fgetpos64): Assume EIO is defined.
31940         * libio/iofgets.c: Likewise.
31941         * libio/iofopen.c: Assume _LIBC is defined.
31942         * libio/iofopen64.c: Assume _LIBC, weak_alias are defined.
31943         * libio/iofputs.c: Assume weak_alias is defined.
31944         * libio/iofread.c: Likewise.
31945         * libio/iofsetpos.c (_IO_new_fsetpos): Assume EIO is defined.
31946         * libio/iofsetpos64.c (_IO_new_fsetpos64): Likewise.
31947         * libio/ioftell.c: Assume weak_alias is defined.
31948         (_IO_ftell): Assume EIO, EOVERFLOW are defined.
31949         * libio/iofwide.c: Assume _LIBC is defined.
31950         (_IO_fwide): Drop SHARED conditional because it is implied by
31951         SHLIB_COMPAT.
31952         * libio/iofwrite.c: Assume weak_alias is defined.
31953         * libio/iogetdelim.c: Likewise.
31954         * libio/iogets.c: Assume _LIBC, weak_alias are defined.
31955         * libio/iogetwline.c (wmemcpy): Remove macro definition.
31956         (_IO_getwline): Call __wmemcpy directly.
31957         * libio/iopopen.c: Assume _LIBC is defined.
31958         (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
31959         (_IO_close): Remove macro definitions.
31960         (_IO_new_proc_open): Call __fork, __dup2, __close_nocancel, execl,
31961         _exit directly.
31962         (_IO_new_proc_close): Call __close_nocancel, __waitpid_nocancel
31963         directly.
31964         * libio/ioputs.c: Assume weak_alias is defined.
31965         * libio/ioseekoff.c: Assume errno, __set_errno are defined.
31966         * libio/iosetbuffer.c: Assume weak_alias is defined.
31967         * libio/iosetvbuf.c: Likewise.
31968         * libio/ioungetc.c: Likewise.
31969         * libio/libioP.h: Assume _LIBC, __GLIBC__, libc_hidden_proto,
31970         libc_hidden_def, libc_hidden_weak, NULL are defined.
31971         (mmap, munmap, ftruncate, OS_FSTAT): Remove macro definitions.
31972         * libio/oldfilepos.c: Assume _LIBC, errno, __set_errno are
31973         defined.
31974         (_POSIX_SOURCE, open, lseek, read, write): Remove macro
31975         definitions.
31976         (_IO_old_file_init_internal): Drop SHARED conditional because it
31977         is implied by SHLIB_COMPAT.
31978         (_IO_old_file_fopen): Call __open directly.
31979         (_IO_old_file_sync): Assume ESPIPE is defined.
31980         (_IO_old_file_write): Call __write directly.
31981         * libio/oldfdopen.c (_IO_fcntl): Remove macro definition.
31982         (_IO_old_fdopen): Assume F_GETFL, O_ACCMODE, F_SETFL are defined.
31983         Call __fcntl directly.
31984         * libio/oldiofgetpos.c: Assume weak_alias is defined.
31985         (_IO_old_fgetpos): Assume EIO is defined.
31986         * libio/oldiofgetpos64.c: Assume weak_alias is defined.
31987         (_IO_old_fgetpos64): Assume EIO is defined.
31988         * libio/oldiofsetpos.c: Assume weak_alias is defined.
31989         (_IO_old_fsetpos): Assume EIO is defined.
31990         * libio/oldiofsetpos64.c: Assume weak_alias is defined.
31991         (_IO_old_fsetpos64): Assume EIO is defined.
31992         * libio/oldiopopen.c:  Assume _LIBC is defined.
31993         (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
31994         (_IO_close): Remove macro definitions.
31995         (_IO_old_proc_open): Call __pipe, __close, __dup2, execl, _exit
31996         directly.
31997         (_IO_old_proc_close): Call __close, __waitpid directly.
31998         * libio/put.c: Assume weak_alias is defined.
31999         * libio/stdfiles.c: Assume _LIBC is defined.
32000         * libio/stdio.c: Likewise.
32001         * libio/wfileops.c: Likewise.
32002         (_IO_wfile_sync): Assume ESPIPE is defined.
32003         * libio/wgenops.c: Assume _LIBC is defined.
32004         (save_for_wbackup): Remove internal_function.
32006 2017-08-31  Florian Weimer  <fweimer@redhat.com>
32008         * malloc/malloc.c (top_check): Change return type to void.  Remove
32009         internal_function.
32010         * malloc/hooks.c (top_check): Likewise.
32011         (malloc_check, realloc_check, memalign_check): Adjust.
32013 2017-08-30  Joseph Myers  <joseph@codesourcery.com>
32015         [BZ #21457]
32016         * sysdeps/arm/sys/ucontext.h: Do not include <bits/sigcontext.h>.
32017         * sysdeps/generic/sys/ucontext.h: Add comment about use of struct
32018         sigcontext and namespace requirements.
32019         * sysdeps/i386/sys/ucontext.h: Do not include <bits/sigcontext.h>.
32020         * sysdeps/m68k/sys/ucontext.h: Likewise.
32021         * sysdeps/mips/sys/ucontext.h: Likewise.  Include <bits/types.h>.
32022         * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h: Do not include
32023         <bits/sigcontext.h>.
32024         (__ctx): Define earlier.
32025         (mcontext_t): Define structure contents rather than using struct
32026         sigcontext.
32027         * sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym (oEXTENSION): Use
32028         __glibc_reserved1 instead of __reserved.
32029         * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h: Do not include
32030         <bits/sigcontext.h>.
32031         (__ctx): Define earlier.
32032         (mcontext_t): Define structure contents rather than using struct
32033         sigcontext.
32034         * sysdeps/unix/sysv/linux/alpha/ucontext-offsets.sym: Use
32035         mcontext_t instead of struct sigcontext.
32036         * sysdeps/unix/sysv/linux/arm/sys/ucontext.h: Do not include
32037         <bits/sigcontext.h>.
32038         (__ctx): Define earlier.
32039         (mcontext_t): Define structure contents rather than using struct
32040         sigcontext.
32041         * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h: Do not include
32042         <bits/sigcontext.h>.
32043         (__ctx): Define earlier.
32044         (mcontext_t): Define structure contents rather than using struct
32045         sigcontext.
32046         * sysdeps/unix/sysv/linux/ia64/makecontext.c (__makecontext): Use
32047         mcontext_t instead of struct sigcontext.
32048         * sysdeps/unix/sysv/linux/ia64/sigcontext-offsets.sym: Use
32049         mcontext_t instead of struct sigcontext.
32050         * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: Do not include
32051         <bits/sigcontext.h>.
32052         (__ctx): New macro.
32053         (struct __ia64_fpreg_mcontext): New type.
32054         (mcontext_t): Define structure contents rather than using struct
32055         sigcontext.
32056         (_SC_GR0_OFFSET): Use mcontext_t instead of struct sigcontext.
32057         (uc_sigmask): Define using __ctx.
32058         (uc_stack): Likewise.
32059         * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Include
32060         <bits/sigcontext.h>.
32061         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
32062         * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h: Do not include
32063         <bits/sigcontext.h>.
32064         * sysdeps/unix/sysv/linux/microblaze/sys/ucontext.h: New file.
32065         * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Do not include
32066         <bits/sigcontext.h>.
32067         * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h: Do not include
32068         <bits/sigcontext.h>.
32069         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Do not include
32070         <bits/sigcontext.h>.
32071         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Do not include
32072         <bits/sigcontext.h>.
32073         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: Do not include
32074         <bits/sigcontext.h>.
32075         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h: Do not include
32076         <bits/sigcontext.h>.
32077         * sysdeps/unix/sysv/linux/tile/sys/ucontext.h: Do not include
32078         <bits/sigcontext.h>.
32079         (__ctx): Define earlier.
32080         (mcontext_t): Define structure contents rather than using struct
32081         sigcontext.
32082         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: Do not include
32083         <bits/sigcontext.h>.  Include <bits/types.h>.
32084         * conform/Makefile (test-xfail-XPG42/signal.h/conform): Remove.
32085         (test-xfail-XPG42/sys/wait.h/conform): Likewise.
32086         (test-xfail-XPG42/ucontext.h/conform): Likewise.
32087         (test-xfail-UNIX98/signal.h/conform): Likewise.
32088         (test-xfail-UNIX98/sys/wait.h/conform): Likewise.
32089         (test-xfail-UNIX98/ucontext.h/conform): Likewise.
32090         (test-xfail-XOPEN2K/signal.h/conform): Likewise.
32091         (test-xfail-XOPEN2K/sys/wait.h/conform): Likewise.
32092         (test-xfail-XOPEN2K/ucontext.h/conform): Likewise.
32093         (test-xfail-POSIX2008/signal.h/conform): Likewise.
32094         (test-xfail-POSIX2008/sys/wait.h/conform): Likewise.
32095         (test-xfail-XOPEN2K8/signal.h/conform): Likewise.
32096         (test-xfail-XOPEN2K8/sys/wait.h/conform): Likewise.
32098 2017-08-30  Florian Weimer  <fweimer@redhat.com>
32100         * malloc/dynarray_emplace_enlarge.c
32101         (__libc_dynarray_emplace_enlarge): Set errno on overflow.
32102         * malloc/dynarray_resize.c (__libc_dynarray_resize): Likewise.
32103         * malloc/tst-dynarray.c (test_long_overflow): New function.
32104         (do_test): Call it.
32106 2017-08-30  Florian Weimer  <fweimer@redhat.com>
32108         * malloc/malloc.c (ARENA_CORRUPTION_BIT, arena_is_corrupt)
32109         (set_arena_corrupt): Remove definitions.
32110         (mtrim): Do not check for corrupt arena.
32111         * malloc/arena.c (arena_lock, reused_arena, arena_get_retry):
32112         Likewise.
32114 2017-08-30  Florian Weimer  <fweimer@redhat.com>
32116         [BZ #21754]
32117         * malloc/arena.c (TUNABLE_CALLBACK set_mallopt_check): Do not set
32118         check_action.
32119         (ptmalloc_init): Do not set or use check_action.
32120         * malloc/hooks.c (malloc_check_get_size, realloc_check): Adjust
32121         call to malloc_printerr.  Remove return statement.
32122         (free_check): Likewise.  Remove arena unlock.
32123         (top_check): Update comment.  Adjust call to malloc_printerr.
32124         Remove heap repair code.
32125         * malloc/malloc.c (unlink): Adjust calls to malloc_printerr.
32126         (DEFAULT_CHECK_ACTION, check_action): Remove definitions.
32127         (sysmalloc): Adjust call to malloc_printerr.
32128         (munmap_chunk, __libc_realloc): Likewise.  Remove return
32129         statement.
32130         (_int_malloc, int_realloc): Likewise.  Remove errstr variable.
32131         Remove errout label and corresponding gotos.
32132         (_int_free): Likewise.  Remove arena unlock.
32133         (do_set_mallopt_check): Do not set check_action.
32134         (malloc_printerr): Adjust parameter list.  Do not mark arena as
32135         corrupt.
32136         * manual/memory.texi (Malloc Tunable Parameters): Remove TODO
32137         comment.
32138         * manual/probes.texi (Memory Allocation Probes): Remove
32139         memory_mallopt_check_action.
32141 2017-08-30  Steve Ellcey  <sellcey@cavium.com>
32143         * sysdeps/unix/sysv/linux/aarch64/makecontext.c (__makecontext):
32144         Use pointer to uint64_t instead of long int for sp.
32146 2017-08-30  Florian Weimer  <fweimer@redhat.com>
32148         [BZ #21754]
32149         * malloc/malloc.c (malloc_printerr): Always terminate the process,
32150         without printing a backtrace.  Do not leak any information in the
32151         error message.
32152         * manual/memory.texi (Heap Consistency Checking): Update.
32153         * manual/tunables.texi (Memory Allocation Tunables): Likewise.
32155 2017-08-30  Florian Weimer  <fweimer@redhat.com>
32157         Do not scale NPTL tests with available number of CPUs.
32158         * nptl/tst-cond16.c (count): Set to constant value of 8.
32159         * nptl/tst-cond18.c (count): Likewise.
32161 2017-08-29  Joseph Myers  <joseph@codesourcery.com>
32163         [BZ #22035]
32164         * sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__inline_functions):
32165         Define to take a second argument that is a macro that
32166         concatentates a suffix, not the suffix itself.
32167         (__CONCAT_d): New macro.
32168         (__CONCAT_f): Likewise.
32169         (__CONCAT_l): Likewise.
32171 2017-08-29  Paul Pluzhnikov  <ppluzhnikov@google.com>
32173         * stdlib/tst-atexit-common.c (do_test): Test handler inheritance
32174         by child.
32176 2017-08-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
32177             Aurelien Jarno  <aurelien@aurel32.net>
32178             Maciej W. Rozycki  <macro@imgtec.com>
32180         [BZ #21956]
32181         * sysdeps/unix/sysv/linux/mips/mips32/mips16/Makefile
32182         [subdir = misc] (sysdep_routines): Remove `mips16-syscall5',
32183         `mips16-syscall6' and `mips16-syscall7'.
32184         (CFLAGS-mips16-syscall5.c, CFLAGS-mips16-syscall6.c)
32185         (CFLAGS-mips16-syscall7.c): Remove.
32186         * sysdeps/unix/sysv/linux/mips/mips32/mips16/Versions (libc):
32187         Remove `__mips16_syscall5', `__mips16_syscall6' and
32188         `__mips16_syscall7'.
32189         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall0.c
32190         (__mips16_syscall0): Rename `__mips16_syscall_return' to
32191         `__mips_syscall_return'.
32192         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall1.c
32193         (__mips16_syscall1): Likewise.
32194         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall2.c
32195         (__mips16_syscall2): Likewise.
32196         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall3.c
32197         (__mips16_syscall3): Likewise.
32198         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall4.c
32199         (__mips16_syscall4): Likewise.
32200         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall5.c:
32201         Remove.
32202         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall6.c:
32203         Remove.
32204         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall7.c:
32205         Remove.
32206         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall.h
32207         (__mips16_syscall5): Expand to `__mips_syscall5' rather than
32208         `__mips16_syscall5'.  Remove prototype.
32209         (__mips16_syscall6): Expand to `__mips_syscall6' rather than
32210         `__mips16_syscall6'.  Remove prototype.
32211         (__mips16_syscall7): Expand to `__mips_syscall7' rather than
32212         `__mips16_syscall7'.  Remove prototype.
32213         (__nomips16, __mips16_syscall_return): Move to...
32214         * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h
32215         (__nomips16, __mips_syscall_return): ... here.
32216         [__mips16] (INTERNAL_SYSCALL_NCS): Rename
32217         `__mips16_syscall_return' to `__mips_syscall_return'.
32218         [__mips16] (INTERNAL_SYSCALL_MIPS16): Pass `number' to
32219         `internal_syscall##nr'.
32220         [!__mips16] (INTERNAL_SYSCALL): Pass `SYS_ify (name)' to
32221         `internal_syscall##nr'.
32222         (FORCE_FRAME_POINTER): Remove.
32223         (__mips_syscall5): New prototype.
32224         (internal_syscall5): Rewrite to call `__mips_syscall5'.
32225         (__mips_syscall6): New prototype.
32226         (internal_syscall6): Rewrite to call `__mips_syscall6'.
32227         (__mips_syscall7): New prototype.
32228         (internal_syscall7): Rewrite to call `__mips_syscall7'.
32229         * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall5.S: New file.
32230         * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall6.S: New file.
32231         * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall7.S: New file.
32232         * sysdeps/unix/sysv/linux/mips/mips32/Makefile [subdir = misc]
32233         (sysdep_routines): Add libc-do-syscall.
32234         * sysdeps/unix/sysv/linux/mips/mips32/Versions (libc): Add
32235         `__mips_syscall5', `__mips_syscall6' and `__mips_syscall7'.
32237 2017-08-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
32239         [BZ #21672]
32240         * nptl/allocatestack.c [_STACK_GROWS_DOWN] (setup_stack_prot):
32241         Set to use !NEED_SEPARATE_REGISTER_STACK as well.
32242         (advise_stack_range): New function.
32243         * nptl/pthread_create.c (START_THREAD_DEFN): Move logic to mark
32244         stack non required to advise_stack_range at allocatestack.c
32246 2017-08-29  Szabolcs Nagy  <szabolcs.nagy@arm.com>
32248         * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Use __uint64_t.
32250 2017-08-29  Florian Weimer  <fweimer@redhat.com>
32252         [BZ #22026]
32253         * iconv/gconv_db.c (gen_steps): Decrement step_cnt after resetting
32254         __end_fct.  Mangle __end_fct after setting it to NULL.
32255         * iconv/Makefile (tests): Add tst-gconv-init-failure.
32256         (modules-names, modules-names-tests): Add
32257         tst-gconv-init-failure-mod.
32258         (gconv-modules): New target.
32259         (tst-gconv-init-failure-mod.so): Link against libsupport.
32260         (tst-gconv-init-failure): Depend on gconv-modules,
32261         tst-gconv-init-failure-mod.so.
32262         * iconv/tst-gconv-init-failure-mod.c: New file.
32263         * iconv/tst-gconv-init-failure.c: Likewise.
32264         * iconv/test-gconv-modules: Likewise.
32266 2017-08-29  Florian Weimer  <fweimer@redhat.com>
32268         [BZ #22025]
32269         * iconv/gconv_db.c (free_derivation): Remove redundant
32270         parentheses.
32271         (gen_steps): Unconditionally mangle __btowc_fct after
32272         initialization.
32273         (increment_counter): Likewise.  Do not call init_fct for internal
32274         modules.
32276 2017-08-29  Joseph Myers  <joseph@codesourcery.com>
32278         [BZ #22028]
32279         * math/math.h [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
32280         (_MSUF_): Remove macro.
32281         [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (_MSUFTO_):
32282         Likewise.
32283         [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
32284         (__REDIRFROM_X): New macro.
32285         [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (__REDIRTO_X):
32286         Likewise.
32287         * math/bits/math-finite.h (__REDIRFROM_X): Remove macro.
32288         (__REDIRTO_X): Likewise.
32289         (__MATH_REDIRCALL): Do not pass _MSUF_ or _MSUFTO_ macro
32290         arguments.
32291         (__MATH_REDIRCALL_2): Likewise.
32292         (__MATH_REDIRCALL_INTERNAL): Likewise.
32293         (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
32294         (__REDIRFROM (gamma, , _MSUF_)): Likweise.
32295         (__REDIRFROM (__gamma, _r_finite, _MSUF_)): Likewise.
32296         (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
32297         * math/test-finite-macros.c: New file.
32298         * math/Makefile (tests): Add test-finite-macros.
32299         (CFLAGS-test-finite-macros.c): New variable.
32301 2017-08-29  Patsy Franklin  <pfrankli@redhat.com>
32302             Jeff Law  <law@redhat.com>
32304         [BZ #22025]
32305         Mangle NULL pointers in iconv/gconv.
32306         * iconv/gconv_cache.c (find_module): Demangle init_fct before
32307         checking for NULL. Mangle __btowc_fct if init_fct is non-NULL.
32308         * iconv/gconv_db.c (free_derivation): Check that __shlib_handle
32309         is non-NULL before demangling the end_fct.  Check for NULL
32310         end_fct after demangling.
32311         (__gconv_release_step): Demangle the end_fct before checking
32312         it for NULL.   Remove assert on __shlibc_handle != NULL.
32313         (gen_steps): Don't check btowc_fct for NULL before mangling.
32314         Demangle init_fct before checking for NULL.
32315         (increment_counter): Likewise.
32316         * gconv_dl.c (__gconv_find_shlib): Don't check init_fct or
32317         end_fct for NULL before mangling.
32318         * wcsmbs/btowc.c (__btowc): Demangle btowc_fct before checking
32319         for NULL.
32321 2017-08-29  Akhilesh Kumar  <akhilesh.k@samsung.com>
32323         [BZ #21971]
32324         * locale/iso-639.def: add Morisyen.
32326 2017-08-28  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
32328         [BZ #21930]
32329         * math/math.h [defined __cplusplus && defined __SUPPORT_SNAN__]
32330         (iszero): New C++ implementation that does not use
32331         fpclassify/__MATH_TG/__builtin_types_compatible_p, when
32332         signaling nans are enabled, since __builtin_types_compatible_p
32333         is a C-only feature.
32334         * math/test-math-iszero.cc: When __HAVE_DISTINCT_FLOAT128 is
32335         defined, include ieee754_float128.h for access to the union and
32336         member ieee854_float128.ieee.
32337         [__HAVE_DISTINCT_FLOAT128] (do_test): Call check_float128.
32338         [__HAVE_DISTINCT_FLOAT128] (check_float128): New function.
32339         * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
32340         (CXXFLAGS-test-math-iszero.cc): Add -mfloat128 to the build
32341         options of test-math-zero on powerpc64le.
32343 2017-08-28  H.J. Lu  <hongjiu.lu@intel.com>
32345         * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
32346         Change double to float.
32348 2017-08-28  Joseph Myers  <joseph@codesourcery.com>
32350         * math/math-svid-compat.h [!__ASSEMBLER__]: Make code
32351         unconditional.
32352         * sysdeps/ieee754/s_lib_version.c [!defined SHARED]: Remove
32353         conditional code; define contents only for [LIBM_SVID_COMPAT].
32355 2017-08-28  Florian Weimer  <fweimer@redhat.com>
32357         * sysdeps/unix/sysv/linux/aarch64/Makefile (abi-lp64-options)
32358         (abi-lp64_be-options): Remove.
32359         * sysdeps/unix/sysv/linux/arm/Makefile (abi-soft-options)
32360         (abi-hard-options): Likewise.
32361         * sysdeps/unix/sysv/linux/mips/Makefile(abi-o32_soft-options)
32362         (abi-o32_hard-options, abi-o32_soft_2008-options)
32363         (abi-o32_hard_2008-options, abi-n32_soft-options)
32364         (abi-n32_hard-options, abi-n32_soft_2008-options)
32365         (abi-n32_hard_2008-options, abi-n64_soft-options)
32366         (abi-n64_hard-options, abi-n64_soft_2008-options)
32367         (abi-n64_hard_2008-options): Likewise.
32368         * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-32-options)
32369         (abi-64-v1-options, abi-64-v2-options): Likewise.
32370         * sysdeps/unix/sysv/linux/s390/Makefile (abi-32-options)
32371         (abi-64-options): Likewise.
32372         * sysdeps/unix/sysv/linux/sparc/Makefile (abi-32-options)
32373         (abi-64-options): Likewise.
32374         * sysdeps/unix/sysv/linux/tile/tilegx/Makefile (abi-32-options)
32375         (abi-64-options): Likewise.
32376         * sysdeps/unix/sysv/linux/x86/Makefile (abi-32-options)
32377         (abi-64-options, abi-x32-options): Likewise.
32379 2017-08-28  Florian Weimer  <fweimer@redhat.com>
32381         Store supported list of SYS_* system calls in the source tree.
32382         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
32383         (bits/syscall.h): Generate from list file.
32384         [$(subdir) = misc] (before-compile): Add bits/syscall.h.
32385         [$(subdir) = misc] (tests): Add tst-syscall-list.
32386         [$(subdir) = misc] (tests-special): Add tst-syscall-list.out
32387         [$(subdir) = misc] (tst-syscall-list-macros.list)
32388         [$(subdir) = misc] (tst-syscall-list-nr.list)
32389         (tst-syscall-list-sys.list): Helper targets for new
32390         tst-syscall-list test.
32391         [$(subdir) = misc] (tst-syscall-list.out): Run test script
32392         tst-syscall-list.sh.
32393         [$(subdir) = misc] (bits/syscall%h, bits/syscall%d): Remove
32394         target. Do not include bits/syscall.d.
32395         [$(subdir) = misc] (generated): Do not update.
32396         * sysdeps/unix/sysv/linux/syscall-names.list: New file.
32397         * sysdeps/unix/sysv/linux/gen-syscall-h.awk: Likewise.
32398         * sysdeps/unix/sysv/linux/filter-nr-syscalls.awk: Likewise.
32399         * sysdeps/unix/sysv/linux/tst-syscall-list.sh: Likewise.
32401 2017-08-27  Paul Pluzhnikov  <ppluzhnikov@google.com>
32403         * stdlib/Makefile (tst-atexit, tst-at_quick_exit): New tests.
32404         (tst-cxa_atexit, tst-on_exit): Likewise.
32405         * stdlib/Makefile (tests): Add tst-atexit, tst-at_quick_exit,
32406         tst-cxa_atexit, and tst-on_exit.
32407         * stdlib/tst-atexit-common.c: New file.
32408         * stdlib/tst-atexit.c: New file.
32409         * stdlib/tst-at_quick_exit.c: New file.
32410         * stdlib/tst-cxa_atexit.c: New file.
32411         * stdlib/tst-on_exit.c: New file.
32413 2017-08-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
32415         * sysdeps/mach/hurd/bits/sysmacros.h: New file.
32416         * mach/stack_chk_fail_local.c: New file.
32417         * hurd/stack_chk_fail_local.c: New file.
32418         * mach/Machrules ($(interface-library)-routines): Add
32419         stack_chk_fail_local.
32420         * mach/Makefile (CFLAGS-mach_init.o, CFLAGS-RPC_vm_statistics.o,
32421         CFLAGS-RPC_vm_map.o, CFLAGS-RPC_vm_protect.o,
32422         CFLAGS-RPC_i386_set_gdt.o, CFLAGS-RPC_i386_set_ldt.o,
32423         CFLAGS-RPC_task_get_special_port.o): Add $(no-stack-protector).
32424         * hurd/Makefile (CFLAGS-hurdstartup.o,
32425         CFLAGS-RPC_exec_startup_get_info.o): Add $(no-stack-protector).
32427 2017-08-25  H.J. Lu  <hongjiu.lu@intel.com>
32429         * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
32430         (index_cpu_*, index_arch_*): Removed.
32432 2017-08-25  Szabolcs Nagy  <szabolcs.nagy@arm.com>
32434         * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h (elf_greg_t):
32435         Use uint64_t instead of unsigned long.
32437 2017-08-25  Joseph Myers  <joseph@codesourcery.com>
32439         * math/tgmath.h [__HAVE_FLOAT128]: Change conditional to
32440         [__HAVE_DISTINCT_FLOAT128].
32442         * math/math.h (_MSUFTO_): Define and undefine for each inclusion
32443         of <bits/math-finite.h>.
32444         (__MATH_DECLARING_LDOUBLE): Do not define and undefine for each
32445         inclusion of <bits/math-finite.h>.
32446         * math/bits/math-finite.h (__REDIRTO_X): Do not define
32447         conditionally on [__MATH_DECLARING_LDOUBLE && defined
32448         __NO_LONG_DOUBLE_MATH].
32449         (__MATH_REDIRCALL): Use _MSUFTO_ in __REDIRTO call.
32450         (__MATH_REDIRCALL_2): Likewise.
32451         (__MATH_REDIRCALL_INTERNAL): Likewise.
32452         (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
32453         (__REDIRFROM (gamma, , _MSUF_)): Likewise.
32454         (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
32456         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-power5.S:
32457         Remove file.
32458         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-ppc32.S:
32459         Likewise.
32460         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat.c:
32461         Likewise.
32462         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-power5.S:
32463         Likewise.
32464         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-ppc32.S:
32465         Likewise.
32466         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat.c:
32467         Likewise.
32468         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
32469         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
32470         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
32471         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
32472         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
32473         (libm-sysdep-routines): Remove w_sqrt_compat-power5,
32474         w_sqrt_compat-ppc32, w_sqrtf_compat-power5 and
32475         w_sqrtf_compat-ppc32.
32477 2017-08-24  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
32479         * math/math.h [defined __cplusplus] (issignaling): In the long
32480         double case, call __issignalingl only if __NO_LONG_DOUBLE_MATH
32481         is not defined.  Call __issignaling, otherwise.
32483 2017-08-24  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
32485         * sysdeps/unix/make-syscalls.sh: Remove cancellable tagging for
32486         syscall definitions and replace __builtin_expect with __glibc_likely.
32487         * sysdeps/unix/syscall-template.S: Update comment about cancellable
32488         syscall.
32489         (SYSCALL_CANCELLABLE): Removedefinition
32490         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (PSEUDO): Remove
32491         definition.
32492         (PSEUDO_END): Likewise.
32493         [IS_IN (libpthread)] (CENABLE): Likewise.
32494         [IS_IN (libpthread)] (CDISABLE): Likewise.
32495         [IS_IN (libc)] (CENABLE): Likewise.
32496         [IS_IN (libc)] (CENABLE): Likewise.
32497         [IS_IN (librt)] (CDISABLE): Likewise.
32498         [IS_IN (librt)] (CDISABLE): Likewise.
32499         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32500         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (PSEUDO): Remove
32501         definition.
32502         (PSEUDO_END): Likewise.
32503         [IS_IN (libpthread)] (__local_enable_asynccancel): Likewise.
32504         [IS_IN (libpthread)] (__local_disable_asynccancel): Likewise.
32505         [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
32506         [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
32507         [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
32508         [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
32509         (CENABLE): Likewise.
32510         (CDISABLE): Likewise.
32511         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32512         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (PSEUDO): Remove
32513         defintion.
32514         (PSEUDO_END): Likewise.
32515         [IS_IN (libpthread)] (CENABLE): Likewise.
32516         [IS_IN (libpthread)] (CDISABLE): Likewise.
32517         [IS_IN (libc)] (CENABLE): Likewise.
32518         [IS_IN (libc)] (CENABLE): Likewise.
32519         [IS_IN (librt)] (CDISABLE): Likewise.
32520         [IS_IN (librt)] (CDISABLE): Likewise.
32521         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32522         * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (PSEUDO): Remove
32523         definition.
32524         (PSEUDO_END): Likewise.
32525         [IS_IN (libpthread)] (CENABLE): Likewise.
32526         [IS_IN (libpthread)] (CDISABLE): Likewise.
32527         [IS_IN (libc)] (CENABLE): Likewise.
32528         [IS_IN (libc)] (CENABLE): Likewise.
32529         [IS_IN (librt)] (CDISABLE): Likewise.
32530         [IS_IN (librt)] (CDISABLE): Likewise.
32531         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32532         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (PSEUDO): Remove
32533         definition.
32534         (PSEUDO_END): Likewise.
32535         [IS_IN (libpthread)] (CENABLE): Likewise.
32536         [IS_IN (libpthread)] (CDISABLE): Likewise.
32537         [IS_IN (libc)] (CENABLE): Likewise.
32538         [IS_IN (libc)] (CENABLE): Likewise.
32539         [IS_IN (librt)] (CDISABLE): Likewise.
32540         [IS_IN (librt)] (CDISABLE): Likewise.
32541         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32542         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (PSEUDO): Remove
32543         definition.
32544         (PSEUDO_END): Likewise.
32545         [IS_IN (libpthread)] (CENABLE): Likewise.
32546         [IS_IN (libpthread)] (CDISABLE): Likewise.
32547         [IS_IN (libc)] (CENABLE): Likewise.
32548         [IS_IN (libc)] (CENABLE): Likewise.
32549         [IS_IN (librt)] (CDISABLE): Likewise.
32550         [IS_IN (librt)] (CDISABLE): Likewise.
32551         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32552         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (PSEUDO): Remove
32553         definition.
32554         (PSEUDO_END): Likewise.
32555         [IS_IN (libpthread)] (CENABLE): Likewise.
32556         [IS_IN (libpthread)] (CDISABLE): Likewise.
32557         [IS_IN (libc)] (CENABLE): Likewise.
32558         [IS_IN (libc)] (CENABLE): Likewise.
32559         [IS_IN (librt)] (CDISABLE): Likewise.
32560         [IS_IN (librt)] (CDISABLE): Likewise.
32561         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32562         * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h (PSEUDO): Remove
32563         definition.
32564         (PSEUDO_END): Likewise.
32565         [IS_IN (libpthread)] (CENABLE): Likewise.
32566         [IS_IN (libpthread)] (CDISABLE): Likewise.
32567         [IS_IN (libc)] (CENABLE): Likewise.
32568         [IS_IN (libc)] (CENABLE): Likewise.
32569         [IS_IN (librt)] (CDISABLE): Likewise.
32570         [IS_IN (librt)] (CDISABLE): Likewise.
32571         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32572         * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h (PSEUDO):
32573         Remove definition.
32574         (PSEUDO_END): Likewise.
32575         [IS_IN (libpthread)] (CENABLE): Likewise.
32576         [IS_IN (libpthread)] (CDISABLE): Likewise.
32577         [IS_IN (libc)] (CENABLE): Likewise.
32578         [IS_IN (libc)] (CENABLE): Likewise.
32579         [IS_IN (librt)] (CDISABLE): Likewise.
32580         [IS_IN (librt)] (CDISABLE): Likewise.
32581         (SINGLE_THREAD_P): Likewise.
32582         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (PSEUDO): Remove
32583         definition.
32584         (PSEUDO_END): Likewise.
32585         [IS_IN (libpthread)] (CENABLE): Likewise.
32586         [IS_IN (libpthread)] (CDISABLE): Likewise.
32587         [IS_IN (libc)] (CENABLE): Likewise.
32588         [IS_IN (libc)] (CENABLE): Likewise.
32589         [IS_IN (librt)] (CDISABLE): Likewise.
32590         [IS_IN (librt)] (CDISABLE): Likewise.
32591         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32592         * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (PSEUDO): Remove
32593         definition.
32594         (PSEUDO_END): Likewise.
32595         [IS_IN (libpthread)] (CENABLE): Likewise.
32596         [IS_IN (libpthread)] (CDISABLE): Likewise.
32597         [IS_IN (libc)] (CENABLE): Likewise.
32598         [IS_IN (libc)] (CENABLE): Likewise.
32599         [IS_IN (librt)] (CDISABLE): Likewise.
32600         [IS_IN (librt)] (CDISABLE): Likewise.
32601         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32602         * sysdeps/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Remove file.
32603         * sysdeps/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
32604         * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: New file.
32605         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h (PSEUDO): Remove
32606         definition.
32607         (PSEUDO_END): Likewise.
32608         [IS_IN (libpthread)] (CENABLE): Likewise.
32609         [IS_IN (libpthread)] (CDISABLE): Likewise.
32610         [IS_IN (libc)] (CENABLE): Likewise.
32611         [IS_IN (libc)] (CENABLE): Likewise.
32612         [IS_IN (librt)] (CDISABLE): Likewise.
32613         [IS_IN (librt)] (CDISABLE): Likewise.
32614         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32615         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h (PSEUDO): Remove
32616         definition.
32617         (PSEUDO_END): Likewise.
32618         [IS_IN (libpthread)] (CENABLE): Likewise.
32619         [IS_IN (libpthread)] (CDISABLE): Likewise.
32620         [IS_IN (libc)] (CENABLE): Likewise.
32621         [IS_IN (libc)] (CENABLE): Likewise.
32622         [IS_IN (librt)] (CDISABLE): Likewise.
32623         [IS_IN (librt)] (CDISABLE): Likewise.
32624         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32625         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (PSEUDO): Remove
32626         definition.
32627         (PSEUDO_END): Likewise.
32628         [IS_IN (libpthread)] (CENABLE): Likewise.
32629         [IS_IN (libpthread)] (CDISABLE): Likewise.
32630         [IS_IN (libc)] (CENABLE): Likewise.
32631         [IS_IN (libc)] (CENABLE): Likewise.
32632         [IS_IN (librt)] (CDISABLE): Likewise.
32633         [IS_IN (librt)] (CDISABLE): Likewise.
32634         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32635         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Remove file.
32636         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
32637         * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: New file.
32638         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (PSEUDO): Remove
32639         definition.
32640         (PSEUDO_END): Likewise.
32641         [IS_IN (libpthread)] (CENABLE): Likewise.
32642         [IS_IN (libpthread)] (CDISABLE): Likewise.
32643         [IS_IN (libc)] (CENABLE): Likewise.
32644         [IS_IN (libc)] (CENABLE): Likewise.
32645         [IS_IN (librt)] (CDISABLE): Likewise.
32646         [IS_IN (librt)] (CDISABLE): Likewise.
32647         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32648         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (PSEUDO): Remove
32649         definition.
32650         (PSEUDO_END): Likewise.
32651         [IS_IN (libpthread)] (CENABLE): Likewise.
32652         [IS_IN (libpthread)] (CDISABLE): Likewise.
32653         [IS_IN (libc)] (CENABLE): Likewise.
32654         [IS_IN (libc)] (CENABLE): Likewise.
32655         [IS_IN (librt)] (CDISABLE): Likewise.
32656         [IS_IN (librt)] (CDISABLE): Likewise.
32657         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32659 2017-08-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
32661         * sysdeps/ieee754/dbl-64/Makefile: Don't override CFLAGS.
32663 2017-08-23  H.J. Lu  <hongjiu.lu@intel.com>
32665         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
32667 2017-08-23  H.J. Lu  <hongjiu.lu@intel.com>
32669         [BZ #21982]
32670         * string/stratcliff.c (do_test): Declare size, nchars, inner,
32671         middle and outer with size_t instead of int.  Repleace %d and
32672         %Zd with %zu in printf.  Update "MAX (0, nchars - 128)" and
32673         "MAX (outer, nchars - 64)" to support unsigned outer and
32674         nchars.  Also exit loop when outer == 0.
32676 2017-08-23  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
32678         * include/fcntl.h (__fcntl_nocancel): Remove definition.
32679         * include/signal.h (__sigsuspend_nocancel): Likewise.
32680         * include/time.h (__nanosleep_nocancel): Likewise.
32681         * sysdeps/generic/not-cancel.h (__fcntl_nocancel): New macro.
32682         * login/utmp_file.c: Include non cancellable syscall header.
32683         * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): New
32684         prototype.
32686 2017-08-23  H.J. Lu  <hongjiu.lu@intel.com>
32688         * sysdeps/x86_64/fpu/svml_d_sincos8_core.S: Replace AVX512F
32689         .byte sequences with AVX512F instructions.
32690         * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Likewise.
32691         * sysdeps/x86_64/fpu/svml_s_sincosf16_core.S: Likewise.
32692         * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Likewise.
32693         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S:
32694         Likewise.
32695         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
32696         Likewise.
32698 2017-08-22  Szabolcs Nagy  <szabolcs.nagy@arm.com>
32699             Steve Ellcey  <sellcey@cavium.com>
32701         * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic):
32702         Use PTR_REG macro in cmp instruction.
32704 2017-08-22  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
32706         * include/libc-symbols.h: [!defined HAVE_GCC_IFUNC] (__ifunc):
32707         Change the return type of the ifunc resolver to match the return
32708         type of the target function.
32710 2017-08-22  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
32712         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (pread64): Remove.
32713         (preadv64): Likewise.
32714         (pwrite64(: Likewise.
32715         (pwritev64): Likewise.
32717         * sysdeps/unix/sysv/linux/x86_64/sysdep.h
32718         (INTERNAL_SYSCALL_NCS_TYPES): Remove define.
32719         (LOAD_ARGS_0): Likewise.
32720         (LOAD_ARGS_1): Likewise.
32721         (LOAD_ARGS_2): Likewise.
32722         (LOAD_ARGS_3): Likewise.
32723         (LOAD_ARGS_4): Likewise.
32724         (LOAD_ARGS_5): Likewise.
32725         (LOAD_ARGS_6): Likewise.
32726         (LOAD_REGS_0): Likewise.
32727         (LOAD_REGS_1): Likewise.
32728         (LOAD_REGS_2): Likewise.
32729         (LOAD_REGS_3): Likewise.
32730         (LOAD_REGS_4): Likewise.
32731         (LOAD_REGS_5): Likewise.
32732         (LOAD_REGS_6): Likewise.
32733         (ASM_ARGS_0): Likewise.
32734         (ASM_ARGS_1): Likewise.
32735         (ASM_ARGS_2): Likewise.
32736         (ASM_ARGS_3): Likewise.
32737         (ASM_ARGS_4): Likewise.
32738         (ASM_ARGS_5): Likewise.
32739         (ASM_ARGS_6): Likewise.
32740         (LOAD_ARGS_TYPES_1): Likewise.
32741         (LOAD_ARGS_TYPES_2): Likewise.
32742         (LOAD_ARGS_TYPES_3): Likewise.
32743         (LOAD_ARGS_TYPES_4): Likewise.
32744         (LOAD_ARGS_TYPES_5): Likewise.
32745         (LOAD_ARGS_TYPES_6): Likewise.
32746         (LOAD_REGS_TYPES_1): Likewise.
32747         (LOAD_REGS_TYPES_2): Likewise.
32748         (LOAD_REGS_TYPES_3): Likewise.
32749         (LOAD_REGS_TYPES_4): Likewise.
32750         (LOAD_REGS_TYPES_5): Likewise.
32751         (LOAD_REGS_TYPES_6): Likewise.
32752         (TYPEFY): New define.
32753         (ARGIFY): Likewise.
32754         (internal_syscall0): Likewise.
32755         (internal_syscall1): Likewise.
32756         (internal_syscall2): Likewise.
32757         (internal_syscall3): Likewise.
32758         (internal_syscall4): Likewise.
32759         (internal_syscall5): Likewise.
32760         (internal_syscall6): Likewise.
32761         * sysdeps/unix/sysv/linux/x86_64/x32/times.c
32762         (INTERNAL_SYSCALL_NCS): Remove define.
32763         (internal_syscall1): Add define.
32765 2017-08-22  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
32767         * math/w_remainder_compat.c: Remove duplicate inclusion of
32768         math-svid-compat.h.
32769         * math/w_remainderf_compat.c: Likewise.
32770         * math/w_remainderl_compat.c: Likewise.
32772 2017-08-22  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
32774         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
32776 2017-08-22  Joseph Myers  <joseph@codesourcery.com>
32778         [BZ #21684]
32779         * math/tgmath.h (__floating_type): Simplify definitions.
32780         (__real_integer_type): New macro.
32781         (__complex_integer_type): Likewise.
32782         (__expr_is_real): Likewise.
32783         (__tgmath_real_type_sub): Update comment to describe handling of
32784         complex types.
32785         (__tgmath_complex_type_sub): New macro.
32786         (__tgmath_complex_type): Likewise.
32787         [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
32788         (__TGMATH_CF128): Use __expr_is_real.
32789         (__TGMATH_UNARY_REAL_IMAG): Use __tgmath_complex_type and
32790         __expr_is_real.
32791         (__TGMATH_BINARY_REAL_IMAG): Likewise.
32792         (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Use __expr_is_real.
32793         * math/gen-tgmath-tests.py (Type.create_type): Create complex
32794         integer types.
32796 2017-08-22  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
32798         * sysdeps/generic/not-cancel.h (sigsuspend_not_cancel): Remove
32799         macro.
32800         * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Remove
32801         alias.
32802         * sysdeps/unix/sysv/linux/not-cancel.h (sigsuspend_not_cancel):
32803         Likewise.
32805         * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Replace
32806         nanosleep_not_cancel with __nanosleep_nocancel.
32807         * sysdeps/generic/not-cancel.h (nanosleep_not_cancel): Remove macro.
32808         (__nanosleep_nocancel): New macro.
32809         * sysdeps/unix/sysv/linux/nanosleep.c (__nanosleep_nocancel): New
32810         function.
32811         * sysdeps/unix/sysv/linux/not-cancel.h (nanosleep_not_cancel): Remove
32812         macro.
32813         (__nanosleep_nocancel): New prototype.
32815         * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full): Replace
32816         pause_not_cancel with __pause_nocancel.
32817         * sysdeps/generic/not-cancel.h (pause_not_cancel): Remove macro.
32818         (__pause_nocancel): New macro.
32819         * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): Remove
32820         macro.
32821         (__pause_nocancel): New prototype.
32822         * sysdeps/unix/sysv/linux/pause.c (__pause_nocancel): New function.
32824 2017-08-22  Martin Sebor  <msebor@redhat.com>
32826         * include/libc-symbols.h (__ifunc_resolver): Declare resolver
32827         to return a pointer to the same type as the target function.
32829 2017-08-22  H.J. Lu  <hongjiu.lu@intel.com>
32831         [BZ #18822]
32832         [BZ #21986]
32833         * include/printf.h (__printf_fphex): Add attribute_hidden.
32834         (__guess_grouping): New prototype.
32835         * stdio-common/printf_fp.c (__guess_grouping): Removed.
32836         * stdio-common/reg-printf.c (__register_printf_specifier): Add
32837         libc_hidden_proto and libc_hidden_def.
32838         * stdlib/strfmon_l.c (__guess_grouping): Removed.
32839         (__vstrfmon_l): Remove the third argument passed to
32840         __guess_grouping.
32842 2017-08-22  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
32844         * math/math.h [defined __cplusplus] (issignaling): Provide a C++
32845         definition for issignaling that does not rely on __MATH_TG,
32846         since __MATH_TG uses __builtin_types_compatible_p, which is only
32847         available in C mode.
32848         (CFLAGS-test-math-issignaling.cc): New variable.
32849         * math/Makefile [CXX] (tests): Add test-math-issignaling.
32850         * math/test-math-issignaling.cc: New test for C++ implementation
32851         of type-generic issignaling.
32852         * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
32853         (CXXFLAGS-test-math-issignaling.cc): Add -mfloat128 to the build
32854         options of test-math-issignaling on powerpc64le.
32856 2017-08-22  H.J. Lu  <hongjiu.lu@intel.com>
32858         * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
32859         building libc.a.
32860         (hidden_proto): Likewise.
32861         (hidden_tls_proto): Likewise.
32862         (__hidden_proto): Likewise.
32864 2017-08-22  Florian Weimer  <fweimer@redhat.com>
32866         math: Statically link tests of internal functionality.
32867         * math/Makefile (tests): Remove atest-exp, atest-sincos,
32868         atest-exp2.
32869         (tests-static): Add atest-exp, atest-sincos, atest-exp2.
32870         (gmp-objs): Remove assignment.
32871         (atest-exp, atest-sincos, atest-exp2): Remove targets.
32873 2017-08-22  Joseph Myers  <joseph@codesourcery.com>
32875         [BZ #21987]
32876         * sysdeps/unix/sysv/linux/sparc/bits/long-double.h: Remove file
32877         and copy to ...
32878         * sysdeps/unix/sysv/linux/sparc/sparc32/bits/long-double.h:
32879         ... here.
32880         * sysdeps/unix/sysv/linux/sparc/sparc64/bits/long-double.h:
32881         ... and here.
32883         * assert/Makefile [$(have-cxx-thread_local)]: Move conditional
32884         variable definitions above inclusion of ../Rules.
32886 2017-08-21  Joseph Myers  <joseph@codesourcery.com>
32888         * sysdeps/ieee754/k_standard.c (__kernel_standard): Add default
32889         case calling __builtin_unreachable.
32891 2017-08-21  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
32893         * libio/ioopen.c (_IO_waitpid): Replace waitpid_not_cancel with
32894         __waitpid_nocancel.
32895         * sysdeps/generic/not-cancel.h (waitpid_not_cancel): Remove macro.
32896         (__waitpid_nocancel): New macro.
32897         * sysdeps/unix/sysv/linux/not-cancel.h (waitpid_not_cancel): Remove
32898         macro.
32899         (__waitpid_nocancel): Replace macro with a function.
32900         * sysdeps/unix/sysv/linux/waitpid.c (__waitpid_nocancel): New
32901         function.
32903         * login/utmp_file.c (timeout_handler): Replace fcntl_not_cancel with
32904         __fcntl_nocancel.
32905         * sysdeps/generic/not-cancel.h (fcntl_not_cancel): Remove macro.
32906         * sysdeps/unix/sysv/linux/not-cancel.h (fcntl_not_cancel): Likewise.
32908         * gmon/gmon.c (write_hist): Replace writev_not_cancel_no_status with
32909         __writev_nocancel_nostatus.
32910         (write_call_graph): Likewise.
32911         (write_bb_counts): Likewise.
32912         * resolv/herror.c (herror): Likewise.
32913         * sysdeps/generic/not-cancel.h (writev_not_cancel_no_status): Remove
32914         macro.
32915         (__writev_nocancel_nostatus): New macro.
32916         * sysdeps/unix/sysv/linux/not-cancel.h (writev_not_cancel_no_status):
32917         Remove macro.
32918         (__writev_nocancel_nostatus): New function.
32920 2017-08-21  Joseph Myers  <joseph@codesourcery.com>
32922         Revert:
32923         2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
32925         * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
32926         building libc.a.
32927         (hidden_proto): Likewise.
32928         (hidden_tls_proto): Likewise.
32929         (__hidden_proto): Likewise.
32931         [BZ #21973]
32932         * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Remove file.
32933         * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
32934         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
32935         Likewise.
32936         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat.S:
32937         Likewise.
32938         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
32939         Likewise.
32940         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat.S:
32941         Likewise.
32942         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S : Likewise.
32943         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
32944         * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
32945         * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
32946         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
32947         GLIBC_2.0 sqrtl symbol.
32949         * math/math.h [__USE_MISC] (_LIB_VERSION_TYPE): Remove.
32950         [__USE_MISC] (_LIB_VERSION): Likewise.
32951         [__USE_MISC] (struct exception): Likewise.
32952         [__USE_MISC] (matherr): Likewise.
32953         [__USE_MISC] (DOMAIN): Likewise.
32954         [__USE_MISC] (SING): Likewise.
32955         [__USE_MISC] (OVERFLOW): Likewise.
32956         [__USE_MISC] (UNDERFLOW): Likewise.
32957         [__USE_MISC] (TLOSS): Likewise.
32958         [__USE_MISC] (PLOSS): Likewise.
32959         [__USE_MISC] (HUGE): Likewise.
32960         [__USE_XOPEN] (MAXFLOAT): Define even if [__USE_MISC].
32961         * math/math-svid-compat.h: New file.
32962         * conform/linknamespace.pl (@whitelist): Remove matherr, matherrf
32963         and matherrl.
32964         * include/math.h [!_ISOMAC] (__matherr): Remove.
32965         * manual/arith.texi (FP Exceptions): Do not document matherr.
32966         * math/Makefile (tests): Change test-matherr to test-matherr-3.
32967         (tests-internal): New variable.
32968         (install-lib): Do not add libieee.a.
32969         (non-lib.a): Likewise.
32970         (extra-objs): Do not add libieee.a and ieee-math.o.
32971         (CPPFLAGS-s_lib_version.c): Remove variable.
32972         ($(objpfx)libieee.a): Remove rule.
32973         ($(addprefix $(objpfx), $(tests-internal)): Depend on $(libm).
32974         * math/ieee-math.c: Remove.
32975         * math/libm-test-support.c (matherr): Remove.
32976         * math/test-matherr.c: Use <support/test-driver.c>.  Add copyright
32977         and license notices.  Include <math-svid-compat.h> and
32978         <shlib-compat.h>.
32979         (matherr): Undefine as macro.  Use compat_symbol_reference.
32980         (_LIB_VERSION): Likewise.
32981         * math/test-matherr-2.c: New file.
32982         * math/test-matherr-3.c: Likewise.
32983         * sysdeps/generic/math_private.h (__kernel_standard): Remove
32984         declaration.
32985         (__kernel_standard_f): Likewise.
32986         (__kernel_standard_l): Likewise.
32987         * sysdeps/ieee754/s_lib_version.c: Do not include <math.h> or
32988         <math_private.h>.  Include <math-svid-compat.h>.
32989         (_LIB_VERSION): Undefine as macro.
32990         (_LIB_VERSION_INTERNAL): Always initialize to _POSIX_.  Define
32991         only if [LIBM_SVID_COMPAT || !defined SHARED].  If
32992         [LIBM_SVID_COMPAT], use compat_symbol.
32993         * sysdeps/ieee754/s_matherr.c: Do not include <math.h> or
32994         <math_private.h>.  Include <math-svid-compat.h>.
32995         (matherr): Undefine as macro.
32996         (__matherr): Define only if [LIBM_SVID_COMPAT].  Use
32997         compat_symbol.
32998         * sysdeps/ia64/fpu/libm_error.c: Include <math-svid-compat.h>.
32999         [_LIBC && LIBM_SVID_COMPAT] (matherrf): Use
33000         compat_symbol_reference.
33001         [_LIBC && LIBM_SVID_COMPAT] (matherrl): Likewise.
33002         [_LIBC && !LIBM_SVID_COMPAT] (matherrf): Define as macro.
33003         [_LIBC && !LIBM_SVID_COMPAT] (matherrl): Likewise.
33004         * sysdeps/ia64/fpu/libm_support.h: Include <math-svid-compat.h>.
33005         (MATHERR_D): Remove declaration.
33006         [!_LIBC] (_LIB_VERSION_TYPE): Likewise
33007         [!LIBM_BUILD] (_LIB_VERSIONIMF): Likewise.
33008         [LIBM_BUILD] (pmatherrf): Likewise.
33009         [LIBM_BUILD] (pmatherr): Likewise.
33010         [LIBM_BUILD] (pmatherrl): Likewise.
33011         (DOMAIN): Likewise.
33012         (SING): Likewise.
33013         (OVERFLOW): Likewise.
33014         (UNDERFLOW): Likewise.
33015         (TLOSS): Likewise.
33016         (PLOSS): Likewise.
33017         * sysdeps/ia64/fpu/s_matherrf.c: Include <math-svid-compat.h>.
33018         (__matherrf): Define only if [LIBM_SVID_COMPAT].  Use
33019         compat_symbol.
33020         * sysdeps/ia64/fpu/s_matherrl.c: Include <math-svid-compat.h>.
33021         (__matherrl): Define only if [LIBM_SVID_COMPAT].  Use
33022         compat_symbol.
33023         * math/lgamma-compat.h: Include <math-svid-compat.h>.
33024         * math/w_acos_compat.c: Likewise.
33025         * math/w_acosf_compat.c: Likewise.
33026         * math/w_acosh_compat.c: Likewise.
33027         * math/w_acoshf_compat.c: Likewise.
33028         * math/w_acoshl_compat.c: Likewise.
33029         * math/w_acosl_compat.c: Likewise.
33030         * math/w_asin_compat.c: Likewise.
33031         * math/w_asinf_compat.c: Likewise.
33032         * math/w_asinl_compat.c: Likewise.
33033         * math/w_atan2_compat.c: Likewise.
33034         * math/w_atan2f_compat.c: Likewise.
33035         * math/w_atan2l_compat.c: Likewise.
33036         * math/w_atanh_compat.c: Likewise.
33037         * math/w_atanhf_compat.c: Likewise.
33038         * math/w_atanhl_compat.c: Likewise.
33039         * math/w_cosh_compat.c: Likewise.
33040         * math/w_coshf_compat.c: Likewise.
33041         * math/w_coshl_compat.c: Likewise.
33042         * math/w_exp10_compat.c: Likewise.
33043         * math/w_exp10f_compat.c: Likewise.
33044         * math/w_exp10l_compat.c: Likewise.
33045         * math/w_exp2_compat.c: Likewise.
33046         * math/w_exp2f_compat.c: Likewise.
33047         * math/w_exp2l_compat.c: Likewise.
33048         * math/w_fmod_compat.c: Likewise.
33049         * math/w_fmodf_compat.c: Likewise.
33050         * math/w_fmodl_compat.c: Likewise.
33051         * math/w_hypot_compat.c: Likewise.
33052         * math/w_hypotf_compat.c: Likewise.
33053         * math/w_hypotl_compat.c: Likewise.
33054         * math/w_j0_compat.c: Likewise.
33055         * math/w_j0f_compat.c: Likewise.
33056         * math/w_j0l_compat.c: Likewise.
33057         * math/w_j1_compat.c: Likewise.
33058         * math/w_j1f_compat.c: Likewise.
33059         * math/w_j1l_compat.c: Likewise.
33060         * math/w_jn_compat.c: Likewise.
33061         * math/w_jnf_compat.c: Likewise.
33062         * math/w_jnl_compat.c: Likewise.
33063         * math/w_lgamma_main.c: Likewise.
33064         * math/w_lgamma_r_compat.c: Likewise.
33065         * math/w_lgammaf_main.c: Likewise.
33066         * math/w_lgammaf_r_compat.c: Likewise.
33067         * math/w_lgammal_main.c: Likewise.
33068         * math/w_lgammal_r_compat.c: Likewise.
33069         * math/w_log10_compat.c: Likewise.
33070         * math/w_log10f_compat.c: Likewise.
33071         * math/w_log10l_compat.c: Likewise.
33072         * math/w_log2_compat.c: Likewise.
33073         * math/w_log2f_compat.c: Likewise.
33074         * math/w_log2l_compat.c: Likewise.
33075         * math/w_log_compat.c: Likewise.
33076         * math/w_logf_compat.c: Likewise.
33077         * math/w_logl_compat.c: Likewise.
33078         * math/w_pow_compat.c: Likewise.
33079         * math/w_powf_compat.c: Likewise.
33080         * math/w_powl_compat.c: Likewise.
33081         * math/w_remainder_compat.c: Likewise.
33082         * math/w_remainderf_compat.c: Likewise.
33083         * math/w_remainderl_compat.c: Likewise.
33084         * math/w_scalb_compat.c: Likewise.
33085         * math/w_scalbf_compat.c: Likewise.
33086         * math/w_scalbl_compat.c: Likewise.
33087         * math/w_sinh_compat.c: Likewise.
33088         * math/w_sinhf_compat.c: Likewise.
33089         * math/w_sinhl_compat.c: Likewise.
33090         * math/w_sqrt_compat.c: Likewise.
33091         * math/w_sqrtf_compat.c: Likewise.
33092         * math/w_sqrtl_compat.c: Likewise.
33093         * math/w_tgamma_compat.c: Likewise.
33094         * math/w_tgammaf_compat.c: Likewise.
33095         * math/w_tgammal_compat.c: Likewise.
33096         * sysdeps/ieee754/dbl-64/w_exp_compat.c: Likewise.
33097         * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
33098         * sysdeps/ieee754/k_standard.c: Likewise.
33099         * sysdeps/ieee754/k_standardf.c: Likewise.
33100         * sysdeps/ieee754/k_standardl.c: Likewise.
33101         * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
33102         * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
33103         * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
33104         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
33105         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
33106         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
33107         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
33108         * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Likewise.
33109         * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
33110         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
33111         Likewise.
33112         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
33113         Likewise.
33114         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S: Likewise.
33115         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
33116         * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
33117         * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
33119 2017-08-21  Florian Weimer  <fweimer@redhat.com>
33121         [BZ #21864]
33122         Do not compile benchmark helper objects with -DMODULE_NAME=libc.
33123         * benchtests/Makefile (others-extras): Set to $(bench-extra-objs).
33124         Move before inclusion of ../Rules.
33126 2017-08-21  Florian Weimer  <fweimer@redhat.com>
33128         [BZ #21972]
33129         * assert/assert.h (assert): Use static_cast (bool) for C++.
33130         Use the ternary operator in the warning branch for GNU C.
33131         * assert/Makefile (tests): Add tst-assert-c++, tst-assert-g++.
33132         (CFLAGS-tst-assert-c++.o): Compile in C++11 mode.
33133         (CFLAGS-tst-assert-g++.o): Compile in GnU C++11 mode.
33134         (LDLIBS-tst-assert-c++, LDLIBS-tst-assert-g++): Link with libstdc++.
33135         * assert/tst-assert-c++.cc, assert/tst-assert-g++.cc: New files.
33137 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
33139         [BZ #18822]
33140         * sysdeps/unix/sysv/linux/x86_64/init-first.c
33141         (__syscall_clock_gettime): Add attribute_hidden.
33142         * sysdeps/unix/sysv/linux/x86_64/makecontext.c
33143         (__start_context): Likewise.
33145 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
33147         * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
33148         building libc.a.
33149         (hidden_proto): Likewise.
33150         (hidden_tls_proto): Likewise.
33151         (__hidden_proto): Likewise.
33153 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
33155         * include/libc-symbols.h (attribute_hidden): Enable hidden
33156         visibility in libc.a compiled with PIE.
33158 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
33160         [BZ #18822]
33161         * sysdeps/unix/sysv/linux/x86/libc-vdso.h (VDSO_SYMBOL(getcpu)):
33162         Add attribute_hidden.
33164 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
33166         [BZ #21864]
33167         * Makerules (all-nonlib): Add $(others-extras).
33168         * catgets/Makefile (others-extras): New.
33169         * elf/Makefile (others-extras): Likewise.
33170         * nss/Makefile (others-extras): Likewise.
33172 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
33174         [BZ #18822]
33175         * csu/libc-start.c (__libc_multiple_libcs): Removed.
33176         * elf/dl-open.c: Include <libc-internal.h>.
33177         (__libc_multiple_libcs): Removed.
33178         * elf/dl-sysdep.c: Include <libc-internal.h> instead of
33179         <hp-timing.h>.
33180         * include/libc-internal.h (__libc_multiple_libcs): New.
33181         * misc/sbrk.c: Include <libc-internal.h>.
33182         (__libc_multiple_libcs): Removed.
33184 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
33186         [BZ #18822]
33187         * grp/initgroups.c (__nss_group_database): Removed.
33188         (__nss_initgroups_database): Likewise.
33189         * nscd/gai.c (__nss_hosts_database): Likewise.
33190         * nss/XXX-lookup.c (DATABASE_NAME_SYMBOL): Likewise.
33191         * posix/tst-rfc3484-2.c (__nss_hosts_database): Likewise.
33192         * posix/tst-rfc3484-3.c (__nss_hosts_database): Likewise.
33193         * posix/tst-rfc3484.c (__nss_hosts_database): Likewise.
33194         * sysdeps/posix/getaddrinfo.c (__nss_hosts_database): Likewise.
33195         * nss/getXXent.c (INTERNAL (REENTRANT_GETNAME)): Add
33196         attribute_hidden.
33197         * nss/nsswitch.c (__nss_database_custom): Define only if
33198         USE_NSCD is defined.
33199         (__nss_configure_lookup): Use __nss_database_custom only if
33200         USE_NSCD is defined.
33201         * nss/nsswitch.h (__nss_database_custom): Declare only if
33202         USE_NSCD is defined.  Add attribute_hidden.
33203         (__nss_setent): Add attribute_hidden.
33204         (__nss_endent): Likewise.
33205         (__nss_getent_r): Likewise.
33206         (__nss_getent): Likewise.
33207         (DEFINE_DATABASE): Declare __nss_##arg##_database.
33209 2017-08-20  H.J. Lu  <hongjiu.lu@intel.com>
33211         [BZ #18822]
33212         * sysdeps/unix/sysv/linux/i386/glob64.c (__old_glob64): Add
33213         libc_hidden_proto and libc_hidden_def.
33215 2017-08-20  H.J. Lu  <hongjiu.lu@intel.com>
33217         [BZ #18822]
33218         * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_readdir64):
33219         Add libc_hidden_proto.
33220         * sysdeps/unix/sysv/linux/i386/readdir64.c (__old_readdir64):
33221         Add libc_hidden_def.
33223 2017-08-20  H.J. Lu  <hongjiu.lu@intel.com>
33225         [BZ #21974]
33226         * gmon/Makefile (routines): Remove bb_init_func and
33227         bb_exit_func.
33228         (elide-routines.os): Removed.
33229         * gmon/bb_exit_func.c: Likewise.
33230         * gmon/bb_init_func.c: Likewise.
33231         * include/sys/gmon.h (__bb): Likewise.
33232         (__bb_init_func): Likewise.
33233         (__bb_exit_func): Likewise.
33234         * sysdeps/alpha/bb_init_func.S: Likewise.
33236 2017-08-20  H.J. Lu  <hongjiu.lu@intel.com>
33238         * debug/longjmp_chk.c (____longjmp_chk): Moved to ...
33239         * include/setjmp.h (____longjmp_chk): Here.  Add
33240         attribute_hidden.
33242 2017-08-19  H.J. Lu  <hongjiu.lu@intel.com>
33244         [BZ #18822]
33245         * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE2): Add
33246         attribute_hidden.
33247         (__strspn_sse2): Likewise.
33249 2017-08-18  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
33251         * sysdeps/generic/not-cancel.h (close_not_cancel): Remove macro.
33252         (close_not_cancel_no_status): Likewise.
33253         (__close_nocancel): New macro.
33254         (__close_nocancel_nostatus): Likewise.
33255         * sysdeps/unix/sysv/linux/not-cancel.h (__close_nocancel): Remove
33256         macro.
33257         (close_not_cancel): Likewise.
33258         (close_not_cancel_no_status): Likewise.
33259         (__close_nocancel): New prototype.
33260         (__close_nocancel_nostatus): New function.
33261         * sysdeps/unix/sysv/linux/close.c (__close_nocancel): New function.
33262         * catgets/open_catalog.c (__open_catalog): Replace
33263         close_not_cancel{_no_status) with __close_nocancel{_nostatus}.
33264         * gmon/gmon.c (write_gmon): Likewise.
33265         * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
33266         * intl/loadmsgcat.c (close): Likewise.
33267         * io/ftw.c (open_dir_stream): Likewise.
33268         (ftw_startup): Likewise.
33269         * libio/fileops.c (_IO_file_open): Likewise.
33270         (_IO_file_close_mmap): Likewise.
33271         (_IO_file_close): Likewise.
33272         * libio/iopopen.c (_IO_dup2): Likewise.
33273         * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
33274         * locale/loadlocale.c (_nl_load_locale): Likewise.
33275         * login/utmp_file.c (pututline_file): Likewise.
33276         (endutent_file): Likewise.
33277         * misc/daemon.c (daemon): Likewise.
33278         * nscd/nscd_getai.c (__nscd_getai): Likewise.
33279         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
33280         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
33281         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
33282         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
33283         * nscd/nscd_helper.c (open_socket): Likewise.
33284         (__nscd_open_socket): Likewise.
33285         * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
33286         * nscd/nscd_netgroup.c (__nscd_setnetgrent): Likewise.
33287         (__nscd_innetgr): Likewise.
33288         * nss/nss_db/db-open.c (internal_setent): Likewise.
33289         * resolv/res-close.c (__res_iclose): Likewise.
33290         * sunrpc/pm_getmaps.c (pmap_getmaps): Likewise.
33291         * sysdeps/posix/closedir.c (__closedir): Likewise.
33292         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Likewise.
33293         * sysdeps/posix/getcwd.c (__getcwd): Likewise.
33294         * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
33295         (opendir_tail): Likewise.
33296         * sysdeps/posix/spawni.c (__spawni_child): Likewise.
33297         * sysdeps/unix/sysv/linux/check_native.c (__check_native): Likewise.
33298         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Likewise.
33299         * sysdeps/unix/sysv/linux/fips-private.h (fips_enabled_p): Likewise.
33300         * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
33301         (gethostid): Likewise.
33302         * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
33303         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
33304         Likewise.
33305         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
33306         * sysdeps/unix/sysv/linux/grantpt.c (close_all_fds): Likewise.
33307         * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
33308         * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
33309         Likewise.
33310         * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex): Likewise.
33311         * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps): Likewise.
33312         * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
33313         Likewise.
33314         * sysdeps/unix/sysv/linux/mq_notify.c (init_mq_netlink): Likewise.
33315         * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
33316         Likewise.
33317         * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
33318         Likewise.
33319         * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
33320         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
33321         * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
33322         __close_nocancel.
33324         * sysdeps/generic/not-cancel.h (openat_not_cancel): Remove macro.
33325         (openat_not_cancel_3): Likewise.
33326         (openat64_not_cancel_3): Likewise).
33327         (openat_not_cancel_3): Likewise).
33328         * sysdeps/unix/sysv/linux/not-cancel.h (openat_not_cancel): Remove
33329         macro.
33330         (openat_not_cancel_3): Likewise.
33331         (openat64_not_cancel): Likewise.
33332         (openat64_not_cancel_3): Likewise.
33333         * sysdeps/unix/sysv/linux/openat.c (__openat_nocancel): New function.
33334         * sysdeps/unix/sysv/linux/openat64.c (__openat64_nocancel): Likewise.
33335         * io/ftw.c (open_dir_stream): Replace openat{64}_not_cancel{_3} with
33336         __open{64}_nocancel.
33337         * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
33338         * sysdeps/posix/getcwd.c (__getcwd): Likewise.
33339         * sysdeps/posix/opendir.c (__opendirat): Likewise.
33341 2017-08-18  H.J. Lu  <hongjiu.lu@intel.com>
33343         [BZ #18822]
33344         * include/argz.h (__argz_create_sep): New function prototype.
33345         (__argz_append): Likewise.
33346         (__argz_add): Likewise.
33347         (__argz_add_sep): Likewise.
33348         (__argz_delete): Likewise.
33349         (__argz_insert): Likewise.
33350         (__argz_replace): Likewise.
33351         * string/argz.h (__argz_create_sep): Removed.
33352         (__argz_append): Likewise.
33353         (__argz_add): Likewise.
33354         (__argz_add_sep): Likewise.
33355         (__argz_delete): Likewise.
33356         (__argz_insert): Likewise.
33357         (__argz_replace): Likewise.
33359 2017-08-18  H.J. Lu  <hongjiu.lu@intel.com>
33361         * elf/elf.h (NT_GNU_PROPERTY_TYPE_0): New.
33362         (NOTE_GNU_PROPERTY_SECTION_NAME): Likewise.
33363         (GNU_PROPERTY_STACK_SIZE): Likewie.
33364         (GNU_PROPERTY_NO_COPY_ON_PROTECTED): Likewie.
33365         (GNU_PROPERTY_LOPROC): Likewise.
33366         (GNU_PROPERTY_HIPROC): Likewise.
33367         (GNU_PROPERTY_LOUSER): Likewise.
33368         (GNU_PROPERTY_HIUSER): Likewise.
33369         (GNU_PROPERTY_X86_ISA_1_USED): Likwise.
33370         (GNU_PROPERTY_X86_ISA_1_NEEDED): Likwise.
33371         (GNU_PROPERTY_X86_FEATURE_1_AND): Likwise.
33372         (GNU_PROPERTY_X86_ISA_1_486): Likwise.
33373         (GNU_PROPERTY_X86_ISA_1_586): Likwise.
33374         (GNU_PROPERTY_X86_ISA_1_686): Likwise.
33375         (GNU_PROPERTY_X86_ISA_1_SSE): Likwise.
33376         (GNU_PROPERTY_X86_ISA_1_SSE2): Likwise.
33377         (GNU_PROPERTY_X86_ISA_1_SSE3): Likwise.
33378         (GNU_PROPERTY_X86_ISA_1_SSSE3): Likwise.
33379         (GNU_PROPERTY_X86_ISA_1_SSE4_1): Likwise.
33380         (GNU_PROPERTY_X86_ISA_1_SSE4_2): Likwise.
33381         (GNU_PROPERTY_X86_ISA_1_AVX): Likwise.
33382         (GNU_PROPERTY_X86_ISA_1_AVX2): Likwise.
33383         (GNU_PROPERTY_X86_ISA_1_AVX512F): Likwise.
33384         (GNU_PROPERTY_X86_ISA_1_AVX512CD): Likwise.
33385         (GNU_PROPERTY_X86_ISA_1_AVX512ER): Likwise.
33386         (GNU_PROPERTY_X86_ISA_1_AVX512PF): Likwise.
33387         (GNU_PROPERTY_X86_ISA_1_AVX512VL): Likwise.
33388         (GNU_PROPERTY_X86_ISA_1_AVX512DQ): Likwise.
33389         (GNU_PROPERTY_X86_ISA_1_AVX512BW): Likwise.
33390         (GNU_PROPERTY_X86_FEATURE_1_IBT): Likwise.
33391         (GNU_PROPERTY_X86_FEATURE_1_SHSTK): Likwise.
33393 2017-08-18  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
33395         * misc/sys/cdefs.h (__HAVE_GENERIC_SELECTION): Define to 0, if
33396         in C++ mode.
33398 2017-08-18  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
33400         [BZ #21930]
33401         * math/math.h (isinf): Check if in C or C++ mode before using
33402         __builtin_types_compatible_p, since this is a C mode feature.
33404 2017-08-18  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
33406         * sysdeps/generic/not-cancel.h (write_not_cancel): Remove macro.
33407         (__write_nocancel): New macro.
33408         * sysdeps/unix/sysv/linux/not-cancel.h (__write_nocancel):
33409         Rewrite as a function prototype.
33410         (write_not_cancel): Remove macro.
33411         * sysdeps/unix/sysv/linux/write.c (__write_nocancel): New function.
33412         * gmon/gmon.c (ERR): Replace write_not_cancel with __write_nocancel.
33413         (write_gmon): Likewise.
33414         * libio/fileops.c (_IO_new_file_write): Likewise.
33415         * login/utmp_file.c (pututline_file): Likewise.
33416         (updwtmp_file): Likewise.
33417         * stdio-common/psiginfo.c (psiginfo): Likewise.
33418         * sysdeps/posix/spawni.c (__spawni_child): Likewise.
33419         * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
33420         * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
33421         Likewise.
33422         * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
33423         Likewise.
33425         * sysdeps/generic/not-cancel.h (read_not_cancel): Remove macro.
33426         (__read_nocancel): New macro.
33427         * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
33428         __read_nocancel.
33429         * sysdeps/unix/sysv/linux/not-cancel.h (__read_nocancel): Remove
33430         macro.
33431         (__read_nocancel): New prototype.
33432         * sysdeps/unix/sysv/linux/read.c (__read_nocancel): New function.
33433         * catgets/open_catalog.c (__open_catalog): Replace read_not_cancel
33434         with __read_nocancel.
33435         * intl/loadmsgcat.c (read): Likewise.
33436         * libio/fileops.c (_IO_file_read): Likewise.
33437         * locale/loadlocale.c (_nl_load_locale): Likewise.
33438         * login/utmp_file.c (getutent_r_file): Likewise.
33439         (internal_getut_r): Likewise.
33440         (getutline_r_file): Likewise.
33441         * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
33442         * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
33443         * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
33444         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
33445         Likewise.
33446         * sysdeps/unix/sysv/linux/getsysstats.c (next_line): Likewise.
33447         * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
33448         * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
33449         Likewise.
33450         * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
33451         Likewise.
33452         * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
33453         Likewise.
33454         * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
33455         Likewise.
33456         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
33458 2017-08-18  H.J. Lu  <hongjiu.lu@intel.com>
33460         [BZ #21966]
33461         * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h
33462         (IFUNC_SELECTOR): Don't use the AVX2 version if FMA isn't
33463         usable.
33465 2017-08-17  DJ Delorie  <dj@redhat.com>
33467         * bug17079.c: Update to new test harness.
33468         * test-digits-dots.c: Likewise.
33469         * test-netdb.c: Likewise.
33470         * tst-field.c: Likewise.
33471         * tst-nss-getpwent.c: Likewise.
33472         * tst-nss-static.c: Likewise.
33473         * tst-nss-test1.c: Likewise.
33474         * tst-nss-test2.c: Likewise.
33475         * tst-nss-test3.c: Likewise.
33476         * tst-nss-test4.c: Likewise.
33477         * tst-nss-test5.c: Likewise.
33479 2017-08-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
33481         * sysdeps/generic/not-cancel.h (open_not_cancel): Remove macro.
33482         (open_not_cancel_2): Likewise.
33483         (open_nocancel): New macro.
33484         (open64_nocancel): Likewise.
33485         * sysdeps/unix/sysv/linux/not-cancel.h (open_not_cancel): Remove macro.
33486         (open_not_cancel_2): Likewise.
33487         (__open_nocancel): New prototype.
33488         (__open64_nocancel): Likewise.
33489         * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
33490         __open_nocancel.
33491         * sysdeps/unix/sysv/linux/open.c (__open_nocancel): New function.
33492         * sysdeps/unix/sysv/linux/open64.c (__open64_nocancel): Likewise.
33493         * catgets/open_catalog.c (__open_catalog): Replace open_not_cancel{_2}
33494         with __open_nocancel.
33495         * csu/check_fds.c (check_one_fd): Likewise.
33496         * gmon/gmon.c (write_gmon): Likewise.
33497         * iconv/gconv_cache.c (__gconv_load_cached): Likewise.
33498         * intl/loadmsgcat.c (open): Likewise.
33499         * libio/fileops.c (_IO_file_open): Likewise.
33500         * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
33501         * locale/loadlocale.c (_nl_load_locale): Likewise.
33502         * login/utmp_file.c (setutent_file): Likewise.
33503         * misc/daemon.c (daemon): Likewise.
33504         * nss/nss_db/db-open.c (internal_setent): Likewise.
33505         * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
33506         * sysdeps/posix/libc_fatal.c (__libc_message): Likewise.
33507         * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
33508         (__opendir): Likewise.
33509         * sysdeps/posix/spawni.c (__spawni_child): Likewise.
33510         * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
33511         * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
33512         (gethostid): Likewise.
33513         * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
33514         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
33515         Likewise.
33516         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
33517         * sysdeps/unix/sysv/linux/grantpt.c (__close_all_fds): Likewise.
33518         * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
33519         * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
33520         Likewise.
33521         * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
33522         Likewise.
33523         * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
33524         Likewise.
33525         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c (__get_clockfreq):
33526         Likewise.
33527         * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
33528         Likewise.
33529         * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
33530         Likewise.
33531         * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
33532         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
33534 2017-08-17  Wilco Dijkstra  <wdijkstr@arm.com>
33536         * benchtests/bench-skeleton.c (main): Add support for
33537         latency benchmarking.
33538         * benchtests/scripts/bench.py: Add support for latency benchmarking.
33540 2017-08-17  H.J. Lu  <hongjiu.lu@intel.com>
33542         * Makeconfig (+link-pie-before-libc): Add CRT-* hook to override
33543         the startup object.
33545 2017-08-17  Florian Weimer  <fweimer@redhat.com>
33547         * include/sys/socket.h (__opensock): Remove internal_function.
33548         * socket/opensock.c (__opensock): Likewise.
33549         * sysdeps/unix/sysv/linux/opensock.c (__opensock): Likewise.
33551 2017-08-16  Joseph Myers  <joseph@codesourcery.com>
33553         [BZ #21944]
33554         * signal/bits/types/__sigval_t.h: New file.
33555         * signal/Makefile (headers): Add bits/types/__sigval_t.h.
33556         * signal/bits/types/sigval_t.h: Include <bits/types/__sigval_t.h>
33557         and define sigval_t using __sigval_t.
33558         * include/bits/types/__sigval_t.h: New file.
33559         * bits/types/sigevent_t.h: Include <bits/types/__sigval_t.h>
33560         instead of <bits/types/__sigval_t.h>.
33561         (struct sigevent): Use __sigval_t instead of sigval_t.
33562         * bits/types/siginfo_t.h: Include <bits/types/__sigval_t.h>
33563         instead of <bits/types/__sigval_t.h>.
33564         (siginfo_t): Use __sigval_t instead of sigval_t.
33565         * sysdeps/unix/sysv/linux/bits/types/sigevent_t.h: Include
33566         <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
33567         (struct sigevent): Use __sigval_t instead of sigval_t.
33568         * sysdeps/unix/sysv/linux/bits/types/siginfo_t.h: Include
33569         <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
33570         (siginfo_t): Use __sigval_t instead of sigval_t.
33571         * signal/signal.h [__USE_MISC]: Include <bits/types/sigval_t.h>.
33573 2017-08-16  H.J. Lu  <hongjiu.lu@intel.com>
33575         * NEWS: Remove "[Add new features here]" for 2.27.
33577 2017-08-16  Joseph Myers  <joseph@codesourcery.com>
33579         * sysdeps/unix/sysv/linux/sh/localplt.data: Allow abort in
33580         libc.so.
33582 2017-08-16  H.J. Lu  <hongjiu.lu@intel.com>
33584         * NEWS: Mention x86-64 FMA optimization.
33586 2017-08-16  H.J. Lu  <hongjiu.lu@intel.com>
33588         [BZ #21912]
33589         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
33590         Add e_expf-fma.
33591         * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: New file.
33592         * sysdeps/x86_64/fpu/multiarch/e_expf.c: Likewise.
33593         * sysdeps/x86_64/fpu/multiarch/ifunc-fma.h: Likewise.
33595 2017-08-16  Andreas Schwab  <schwab@suse.de>
33597         [BZ #16750]
33598         CVE-2009-5064
33599         * elf/ldd.bash.in: Never run file directly.
33601 2017-08-15  H.J. Lu  <hongjiu.lu@intel.com>
33603         [BZ #21955]
33604         * sysdeps/x86_64/fpu/e_expf.S (L(SP_RANGE)): Aligned to 8 bytes.
33605         (L(SP_INF_0)): Likewise.
33607 2017-08-15  Florian Weimer  <fweimer@redhat.com>
33609         * gmon/Makefile (tests-special): Add tst-gmon-prof only if
33610         run-built-tests.
33612 2017-08-15  Florian Weimer  <fweimer@redhat.com>
33614         Remove BROKEN_THREAD_SIGNALS support for LinuxThreads.
33615         * sysdeps/pthread/aio_misc.c (__aio_enqueue_request): Remove
33616         BROKEN_THREAD_SIGNALS code.
33617         * sysdeps/ppthread/aio_misc.h (struct waitlist, struct
33618         request_list): Remove caller_pid member used for
33619         BROKEN_THREAD_SIGNALS.
33620         [BROKEN_THREAD_SIGNALS] (__aio_notify_only): Remove declaration.
33621         * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
33622         Remove BROKEN_THREAD_SIGNALS support.
33623         * sysdeps/pthread/aio_suspend.c (aio_suspend): Likewise.
33624         * sysdeps/pthread/lio_listio.c (lio_listio_internal): Likewise.
33626 2017-08-15  Florian Weimer  <fweimer@redhat.com>
33628         * gmon/Makefile (tests): Add tst-gmon.
33629         (CFLAGS-tst-gmon.c, LDFLAGS-tst-gmon, CRT-tst-gmon, tst-gmon-ENV):
33630         Set.
33631         (tests-special): Add tst-gmon-prof.out.
33632         (tst-gmon.out): Depend on clean-tst-gmon-data.
33633         (clean-tst-gmon-data, tst-gmon-gprof.out): New targets.
33634         * gmon/tst-gmon.c, gmon/tst-gmon-gprof.sh: New files.
33635         * Makeconfig (+link-before-libc): Add CRT-* hook to override the
33636         startup object.
33637         * aclocal.m4 (GPROF): Set and substitute.
33638         * config.amke.in (GPROF): Set.
33639         * configure: Regenerate.
33641 2017-08-15  Gustavo Romero  <gromero@linux.vnet.ibm.com>
33643         * elf/elf.h A (NT_PPC_TAR): New macro.
33644         (NT_PPC_PPR): Likewise.
33645         (NT_PPC_DSCR): Likewise.
33646         (NT_PPC_EBB): Likewise.
33647         (NT_PPC_PMU): Likewise.
33648         (NT_PPC_TM_CGPR): Likewise.
33649         (NT_PPC_TM_CFPR): Likewise.
33650         (NT_PPC_TM_CVMX): Likewise.
33651         (NT_PPC_TM_CVSX): Likewise.
33652         (NT_PPC_TM_SPR): Likewise.
33653         (NT_PPC_TM_CTAR): Likewise.
33654         (NT_PPC_TM_CPPR): Likewise.
33655         (NT_PPC_TM_CDSCR): Likewise.
33657 2017-08-15  Florian Weimer  <fweimer@redhat.com>
33659         * sysdeps/i386/machine-gmon.h (mcount_internal): Declare with
33660         regparm (2) instead of internal_function.
33661         (_MCOUNT_DECL): Adjust.
33663 2017-08-15  Stefan Liebler  <stli@linux.vnet.ibm.com>
33665         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add z14.
33666         * sysdeps/s390/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increased.
33668 2017-08-14  Joseph Myers  <joseph@codesourcery.com>
33670         * conform/data/sys/wait.h-data (si_value): Do not expect for
33671         XPG42.
33673 2017-08-14  Florian Weimer  <fweimer@redhat.com>
33675         [BZ #21962]
33676         NSS: Create stubs for accidentally exported lookup functions.
33677         * grp/initgroups.c (__nss_group_lookup, __nss_lookup_function):
33678         Remove declaration.
33679         * inet/ether_hton.c (__nss_ethers_lookup): Likewise.
33680         (ether_hostton): Call __nss_ethers_lookup2 instead.
33681         * inet/ether_ntoh.c (__nss_ethers_lookup): Remove declaration.
33682         (ether_ntohost): Call __nss_ethers_lookup2 instead.
33683         * inet/getnetgrent_r.c (__nss_netgroup_lookup): Remove declaration.
33684         (setup): Call __nss_netgroup_lookup2 instead.
33685         * nss/Makefile (routines): Add compat-lookup.
33686         * nss/Versions (GLIBC_2.27): Add symbol version.
33687         * nss/XXX-lookup (DB_LOOKUP_FCT): Remove declaration.  Now provided by <nsswitch.h>.
33688         (DB_COMPAT_FCT): Remove.
33689         * nss/compat-lookup.c: New file.
33690         * nss/nsswitch.h: Generate __nss_*_lookup2 function prototypes
33691         from databases.def.
33692         * nss/service-lookup.c (NO_COMPAT): Remove definition.
33693         * sunrpc/netname.c (__nss_publickey_lookup): Remove declaration.
33694         (netname2user): Call __nss_publickey_lookup2 instead.
33695         * sunrpc/publickey.c (__nss_publickey_lookup): Remove declaration.
33696         (getpublickey, getsecretkey): Call __nss_publickey_lookup2
33697         instead.
33699 2017-08-14  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
33700             Sergei Trofimovich  <slyfox@inbox.ru>
33702         [BZ #21908]
33703         * sysdeps/unix/sysv/linux/m68k/mmap_internal.h (MMAP2_PAGE_SHIFT):
33704         Rename to MMAP2_PAGE_UNIT.
33705         * sysdeps/unix/sysv/linux/mmap.c: Include mmap_internal iff
33706         __OFF_T_MATCHES_OFF64_T is not defined.
33707         * sysdeps/unix/sysv/linux/mmap_internal.h (page_unit): Declare as
33708         uint64_t.
33709         (MMAP2_PAGE_UNIT) [MMAP2_PAGE_UNIT == -1]: Redefine to page_unit.
33710         (page_unit) [MMAP2_PAGE_UNIT != -1]: Remove definition.
33712 2017-08-14  Florian Weimer  <fweimer@redhat.com>
33714         i386: Do not set internal_function.
33715         * config.h.in (USE_REGPARMS, internal_function): Remove.
33716         * sysdeps/i386/configure.ac (USE_REGPARMS): Likewise.
33717         * sysdeps/i386/configure (USE_REGPARMS): Likewise.
33719 2017-08-14  Florian Weimer  <fweimer@redhat.com>
33721         * elf/dl-init.c (_dl_init): Remove internal_function.
33722         * sysdeps/generic/ldsodefs.h (_dl_init): Likewise.
33723         * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to _dl_init.
33725 2017-08-14  Florian Weimer  <fweimer@redhat.com>
33727         * elf/rtld.c (_dl_start): Remove internal_function.
33728         * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to
33729         _dl_start.
33731 2017-08-14  Florian Weimer  <fweimer@redhat.com>
33733         * elf/dl-fini.c (_dl_fini): Remove internal_function
33734         * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
33736 2017-08-14  H.J. Lu  <hongjiu.lu@intel.com>
33738         * sysdeps/x86/cpu-features.h (bit_cpu_IBT): New.
33739         (bit_cpu_SHSTK): Likewise.
33740         (index_cpu_IBT): Likewise.
33741         (index_cpu_SHSTK): Likewise.
33742         (reg_IBT): Likewise.
33743         (reg_SHSTK): Likewise.
33744         * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
33745         Handle index_cpu_IBT and index_cpu_SHSTK.
33747 2017-08-14  Mike FABIAN  <mfabian@redhat.com>
33749         [BZ #19982]
33750         * po/fr.po: Fix spelling mistake.
33752 2017-08-13  Florian Weimer  <fweimer@redhat.com>
33754         * elf/dl-addr.c (_dl_addr): Remove internal_function.
33755         * elf/dl-error-skeleton.c (_dl_signal_error, _dl_signal_cerror)
33756         (_dl_catch_error, _dl_receive_error): Likewise.
33757         * elf/dl-open.c (_dl_find_dso_for_object): Likewise.
33758         * elf/dl-tls.c (_dl_allocate_tls_init, _dl_allocate_tls)
33759         (_dl_deallocate_tls): Likewise.
33760         * include/dlfcn.h (_dl_addr): Likewise.
33761         * sysdeps/generic/ldsodefs.h (_dl_signal_error, _dl_signal_cerror)
33762         (_dl_catch_error, _dl_receive_error, _dl_find_dso_for_object)
33763         (_dl_allocate_tls_init, _dl_allocate_tls, _dl_deallocate_tls):
33764         Likewise.
33766 2017-08-13  Florian Weimer  <fweimer@redhat.com>
33768         * include/stdlib.h: (__strtof_nan, __strtod_nan, __strtold_nan)
33769         (__wcstof_nan, __wcstod_nan, __wcstold_nan): Remove
33770         internal_function.
33771         * stdlib/sttod_nan_main.c (STRTOD_NAN): Likewise.
33773 2017-08-13  Florian Weimer  <fweimer@redhat.com>
33775         * elf/dl-support.c (_dl_make_stack_executable_hook): Remove
33776         internal_function.
33777         * nptl/allocatestack.c (__make_stacks_executable): Likewise.
33778         * nptl/pthreadP.h (__make_stacks_executable): Likewise.
33779         * sysdeps/generic/ldsodefs.h (_rtld_global): Remove
33780         internal_function from _dl_make_stack_executable_hook member.
33781         (_dl_make_stack_executable): Remove internal_function.
33782         * sysdeps/mach/hurd/dl-execstack.c (_dl_make_stack_executable):
33783         Likewise.
33784         * sysdeps/unix/sysv/linux/dl-execstack.c
33785         (_dl_make_stack_executable): Likewise.
33787 2017-08-13  Florian Weimer  <fweimer@redhat.com>
33789         * sysdeps/unix/sysv/linux/netlinkaccess.h
33790         (__netlink_assert_response): Remove internal_function.
33791         * sysdeps/unix/sysv/linux/netlink_assert_response.c
33792         (__netlink_assert_response): Likewise.
33794 2017-08-13  Florian Weimer  <fweimer@redhat.com>
33796         * include/rpc/pmap_clnt.h (__libc_rpc_getport): Remove
33797         internal_function.
33798         * sunrpoc/pm_getport.c (__libc_rpc_getport): Likewise.
33800 2017-08-13  Florian Weimer  <fweimer@redhat.com>
33802         * grp/grp-merge.h (__copy_grp, __merge_grp): Remove
33803         internal_function.
33804         * grp/grp-merge.c (__copy_grp, __merge_grp): Likewise.
33805         * inet/netgroup.h (__internal_setnetgrent)
33806         (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
33807         * inet/getnetgrent_r.c (__internal_setnetgrent)
33808         (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
33809         * nss/XXX-lookup.c (DB_LOOKUP_FCT, DB_COMPAT_FCT): Likewise.
33810         * nss/getXXbyYY_r.c (DB_LOOKUP_FCT): Likewise.
33811         * nss/getXXent_r.c (DB_LOOKUP_FCT): Likewise.
33812         * nss/nsswitch.h (db_lookup_function): Likewise.
33814 2017-08-13  Florian Weimer  <fweimer@redhat.com>
33816         * debug/fortify_fail.c (__fortify_fail, __fortify_fail_abort):
33817         Remove internal_function.
33818         * include/stdio.h (__fortify_fail, __fortify_fail_abort): Likewise.
33819         * sysdeps/mach/hurd/i386/____longjmp_chk.S (CALL_FAIL): Pass
33820         message argument on the stack.
33821         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S (CALL_FAIL):
33822         Likeweise.
33824 2017-08-12  Mike FABIAN  <mfabian@redhat.com>
33826         Adapt test case data to the changes in the thousands
33827         separators.
33829         [BZ #20756]
33830         * localedata/tst-langinfo.sh: Adapt test case data.
33831         * stdlib/tst-strfmon_l.c: Likewise.
33832         * stdlib/tst-strtod4.c: Likewise.
33833         * stdlib/tst-strtod5i.c: Likewise.
33835 2017-08-11  Florian Weimer  <fweimer@redhat.com>
33837         [BZ #21242]
33838         * assert/assert.h [__GNUC__ && !__STRICT_ANSI__] (assert):
33839         Suppress pedantic warning resulting from statement expression.
33840         (__ASSERT_FUNCTION): Add missing __extension__.
33842 2017-08-11  Siddhesh Poyarekar  <siddhesh@sourceware.org>
33844         * benchtests/bench-memmove-large.c: Print output in JSON
33845         format.
33846         * benchtests/bench-memmove.c: Likewise.
33848         * benchtests/bench-memccpy.c (do_one_test): Remove checks.
33849         * benchtests/bench-memchr.c (do_one_test): Likewise.
33850         * benchtests/bench-memcpy-large.c (do_one_test): Likewise.
33851         * benchtests/bench-memcpy.c (do_one_test): Likewise.
33852         * benchtests/bench-memmove-large.c (do_one_test): Likewise.
33853         * benchtests/bench-memmove.c (do_one_test): Likewise.
33854         * benchtests/bench-memset-large.c (do_one_test): Likewise.
33855         * benchtests/bench-memset.c (do_one_test): Likewise.
33856         * benchtests/bench-string.h (test_init): Remove memsets.
33858 2017-08-10  Rical Jasan  <ricaljasan@pacific.net>
33860         * manual/lang.texi
33861         (Computing the Width of an Integer Data Type): Rename section to
33862         "Width of an Integer Type".  Remove inaccurate statement regarding
33863         lack of C language facilities for determining width of integer
33864         types, and reorder content to improve flow and context of
33865         discussion.
33867 2017-08-10  Rical Jasan  <ricaljasan@pacific.net>
33869         * lang.texi (va_copy): Change standard from ISO to C99.
33870         (__va_copy): Add standard and header annotation.
33871         Update description for clarity of origins and current use.
33873 2017-08-10  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
33875         [BZ #21941]
33876         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrtf128): Since
33877         xssqrtqp requires operands to be in Vector Registers
33878         (Altivec/VMX), replace the register constraint 'wq' with 'v'.
33879         * sysdeps/powerpc/powerpc64le/power9/fpu/e_sqrtf128.c
33880         (__ieee754_sqrtf128): Likewise.
33882 2017-08-10  Wilco Dijkstra  <wdijkstr@arm.com>
33884         * sysdeps/aarch64/memcmp.S (memcmp):
33885         Rewrite of optimized memcmp.
33887 2017-08-10  Florian Weimer  <fweimer@redhat.com>
33889         Introduce ld.so exceptions.
33890         * sysdeps/generic/ldsodefs.h (struct dl_exception): Define.
33891         (_dl_exception_create, _dl_exception_create_format)
33892         (_dl_exception_free, _dl_signal_exception, _dl_signal_cexception)
33893         (_dl_catch_exception): Declare.
33894         (_dl_catch_error): Update comment.
33895         * elf/dl-error-skeleton.c (struct catch): Replace objname,
33896         errstring, malloced members with exception member.
33897         (_dl_out_of_memory): Remove.
33898         (fatal_error): New function, extracted from _dl_signal_error.
33899         (_dl_signal_exception, _dl_signal_cexception): New functions.
33900         (_dl_signal_error): Call _dl_exception_create to allocate an
33901         exception object.
33902         (_dl_catch_exception): New function, based on _dl_catch_error.
33903         (_dl_catch_error): Implement using _dl_catch_exception.
33904         * elf/dl-exception.c: New file.
33905         * elf/Makefile (dl-routines): Add dl-exception.
33906         (elide-routines.os): Likewise.
33907         * elf/Version (ld/GLIBC_PRIVATE): Add _dl_exception_create,
33908         _dl_exception_create_format, _dl_exception_free.
33909         * elf/dl-deps.c (_dl_map_object_deps): Use _dl_catch_exception and
33910         _dl_signal_exception.
33911         * elf/dl-lookup.c (make_string): Remove.
33912         (_dl_lookup_symbol_x): Use _dl_exception_create_format,
33913         _dl_signal_cexception, _dl_exception_free.
33914         * elf/dl-open.c (_dl_open): Use _dl_catch_exception and
33915         _dl_signal_exception.
33916         * elf/dl-sym.c (do_sym): Likewise.
33917         * elf/dl-version.c (make_string): Remove.
33918         (match_symbol): Use _dl_exception_create_format,
33919         _dl_signal_cexception, _dl_exception_free.
33920         (_dl_check_map_versions): Likewise.
33921         * sysdeps/generic/localplt.data (ld.so): Add _dl_signal_exception,
33922         _dl_catch_exception.
33923         * sysdeps/unix/sysv/linux/aarch64/localplt.data (ld.so): Likewise.
33924         * sysdeps/unix/sysv/linux/alpha/localplt.data (ld.so): Likewise.
33925         * sysdeps/unix/sysv/linux/arm/localplt.data (ld.so): Likewise.
33926         * sysdeps/unix/sysv/linux/hppa/localplt.data (ld.so): Likewise.
33927         * sysdeps/unix/sysv/linux/i386/localplt.data (ld.so): Likewise.
33928         * sysdeps/unix/sysv/linux/ia64/localplt.data (ld.so): Likewise.
33929         * sysdeps/unix/sysv/linux/m68k/localplt.data (ld.so): Likewise.
33930         * sysdeps/unix/sysv/linux/microblaze/localplt.data (ld.so):
33931         Likewise.
33932         * sysdeps/unix/sysv/linux/nios2/localplt.data (ld.so): Likewise.
33933         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data
33934         (ld.so): Likewise.
33935         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data
33936         (ld.so): Likewise.
33937         * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data (ld.so):
33938         Likewise.
33939         * sysdeps/unix/sysv/linux/s390/localplt.data (ld.so): Likewise.
33940         * sysdeps/unix/sysv/linux/sh/localplt.data (ld.so): Likewise.
33941         * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data (ld.so):
33942         Likewise.
33943         * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data (ld.so):
33944         Likewise.
33945         * sysdeps/x86_64/localplt.data (ld.so): Likewise.
33947 2017-08-10  Florian Weimer  <fweimer@redhat.com>
33949         * inet/net-internal.h (__inet6_scopeid_pton): Remove
33950         attribute_hidden, internal_function.
33951         * inet/inet6_scopeid_pton.c (__inet6_scopeid_pton): Remove
33952         internal_function.
33954 2017-08-10  Florian Weimer  <fweimer@redhat.com>
33956         * malloc/malloc.c (get_max_fast): Reimplement as an inline
33957         function which calls __builtin_unreachable.
33959 2017-08-10  Mike FABIAN  <mfabian@redhat.com>
33961         * stdlib/tst-strfmon_l.c: Fix test cases to agree with the changes in
33962         Indian monetary formatting
33963         * stdlib/Makefile: Adapt list of locales needed for the tst-strfmon_l.c
33964         test cases.
33966 2017-08-09  Dmitry V. Levin  <ldv@altlinux.org>
33968         * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (enum __ptrace_request):
33969         Fix typo in comment.
33971         [BZ #21928]
33972         * sysdeps/unix/sysv/linux/sys/ptrace.h (enum __ptrace_flags,
33973         PTRACE_SEIZE_DEVEL): Remove.
33974         * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Likewise.
33975         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
33976         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
33977         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
33978         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
33980 2017-08-09  Joseph Myers  <joseph@codesourcery.com>
33982         * posix/bits/types.h (__qaddr_t): Remove.
33984         [BZ #21457]
33985         * sysdeps/arm/sys/ucontext.h (__ctx): Move undefine further down.
33986         (ucontext_t): Use __ctx with uc_flags.  Rename uc_filler to
33987         __glibc_reserved1.
33988         * sysdeps/generic/sys/ucontext.h (__ctx): New macro.
33989         (ucontext_t): Use __ctx with uc_flags.
33990         * sysdeps/i386/sys/ucontext.h (__ctx): Move undefine further down.
33991         (__ctxt): Likewise.
33992         (ucontext_t): Use __ctx with uc_flags.  Rename uc_filler to
33993         __glibc_reserved1.
33994         * sysdeps/m68k/sys/ucontext.h (__ctx): Move undefine further down.
33995         (ucontext_t): Use __ctx with uc_flags.  Rename uc_filler to
33996         __glibc_reserved1.
33997         * sysdeps/mips/sys/ucontext.h (__ctx): Move undefine further down.
33998         (ucontext_t): Use __ctx with uc_flags.  Rename uc_filler to
33999         __glibc_reserved1.
34000         * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (__ctx): New
34001         macro.
34002         (ucontext_t): Use __ctx with uc_flags.
34003         * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h (__ctx): New macro.
34004         (ucontext_t): Use __ctx with uc_flags.
34005         * sysdeps/unix/sysv/linux/arm/sys/ucontext.h (__ctx): New macro.
34006         (ucontext_t): Use __ctx with uc_flags and uc_regspace.
34007         * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h (__ctx): New macro.
34008         (ucontext_t): Use __ctx with uc_flags.
34009         * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h (__ctx): Move
34010         undefine further down.
34011         (ucontext_t): Use __ctx with uc_flags.  Rename uc_filler to
34012         __glibc_reserved1.
34013         * sysdeps/unix/sysv/linux/mips/sys/ucontext.h (__ctx): Move
34014         undefine further down.
34015         (ucontext_t): Use __ctx with uc_flags.
34016         * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h (__ctx): Move
34017         undefine further down.
34018         (ucontext_t): Use __ctx with uc_flags.
34019         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (ucontext_t): Use
34020         __ctx with uc_flags, uc_regs_ptr, uc_regs and uc_reg_space.
34021         Rename uc_pad to __glibc_reserved1.
34022         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__ctx): Move
34023         undefine further down.
34024         (ucontext_t): Use __ctx with uc_flags.
34025         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h (__ctx): Move undefine
34026         further down.
34027         (ucontext_t): Use __ctx with uc_flags.
34028         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (ucontext_t): Use
34029         __ctx with uc_flags.
34030         * sysdeps/unix/sysv/linux/tile/sys/ucontext.h (__ctx): New macro.
34031         (ucontext_t): Use __ctx with uc_flags.
34032         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h (ucontext_t): Use
34033         __ctx with uc_flags.
34035 2017-08-09  Florian Weimer  <fweimer@redhat.com>
34037         [BZ #21932]
34038         * nss/getXXbyYY_r.c (REENTRANT_NAME): Call __resolv_context_put
34039         before early return.
34041 2017-08-09  Andreas Schwab  <schwab@suse.de>
34043         [BZ #21041]
34044         * sysdeps/unix/sysv/linux/s390/pt-longjmp.c: Update reference to
34045         renamed alias.
34047         [BZ #21041]
34048         * nptl/Makefile (tests) [$(build-shared) = yes]: Add
34049         tst-compat-forwarder.
34050         (modules-names): Add tst-compat-forwarder-mod.
34051         ($(objpfx)tst-compat-forwarder): Depend on
34052         $(objpfx)tst-compat-forwarder-mod.so.
34053         * nptl/tst-compat-forwarder.c: New file.
34054         * nptl/tst-compat-forwarder-mod.c: New file.
34056 2017-08-09  Siddhesh Poyarekar  <siddhesh@sourceware.org>
34058         * sysdeps/aarch64/multiarch/memcpy_falkor.S: Fix code style in
34059         comments.
34061         * manual/tunables.texi (Tunable glibc.tune.cpu): Add falkor.
34062         * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
34063         memcpy_falkor.
34064         * sysdeps/aarch64/multiarch/ifunc-impl-list.c (MAX_IFUNC):
34065         Bump.
34066         (__libc_ifunc_impl_list): Add __memcpy_falkor.
34067         * sysdeps/aarch64/multiarch/memcpy.c: Likewise.
34068         * sysdeps/aarch64/multiarch/memcpy_falkor.S: New file.
34069         * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
34070         Add falkor.
34071         * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_FALKOR):
34072         New macro.
34074 2017-08-08  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
34076         [BZ #759]
34077         * manual/setjmp.texi (getcontex): Document uc_stack value
34078         compatibility differences.
34080 2017-08-08  Joseph Myers  <joseph@codesourcery.com>
34082         * malloc/mcheck.c (old_free_hook): Use void * instead of __ptr_t.
34083         (old_malloc_hook): Likewise.
34084         (old_memalign_hook): Likewise.
34085         (old_realloc_hook): Likewise.
34086         (struct hdr): Likewise.
34087         (flood): Likewise.
34088         (freehook): Likewise.
34089         (mallochook): Likewise.
34090         (memalignhook): Likewise.
34091         (reallochook): Likewise.
34092         (mprobe): Likewise.
34093         * malloc/mtrace.c (mallwatch): Likewise.
34094         (tr_old_free_hook): Likewise.
34095         (tr_old_malloc_hook): Likewise.
34096         (tr_old_realloc_hook): Likewise.
34097         (tr_old_memalign_hook): Likewise.
34098         (tr_where): Likewise.
34099         (lock_and_info): Likewise.
34100         (tr_freehook): Likewise.
34101         (tr_mallochook): Likewise.
34102         (tr_reallochook): Likewise.
34103         (tr_memalignhook): Likewise.
34104         * misc/err.h [!__GNUC_VA_LIST] (__gnuc_va_list): Likewise.
34105         * misc/mmap.c (__mmap): Likewise.
34106         * misc/mmap64.c (__mmap64): Likewise.
34107         * misc/mprotect.c (__mprotect): Likewise.
34108         * misc/msync.c (msync): Likewise.
34109         * misc/munmap.c (__munmap): Likewise.
34110         * posix/posix_madvise.c (posix_madvise): Likewise.
34111         * socket/send.c (__send): Likewise.
34112         * socket/sendto.c (__sendto): Likewise.
34113         * socket/setsockopt.c (__setsockopt): Likewise.
34114         * string/memcmp.c (__ptr_t): Remove macro.
34115         (MEMCMP): Use void * instead of ptr_t.
34116         * string/memrchr.c (__ptr_t): Remove macro.
34117         (__memrchr): Use void * instead of ptr_t.
34118         * sysdeps/mach/hurd/dl-sysdep.c (__mmap): Likewise.
34119         * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
34120         * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
34121         * sysdeps/mach/mprotect.c (__mprotect): Likewise.
34122         * sysdeps/mach/msync.c (msync): Likewise.
34123         * sysdeps/mach/munmap.c (__munmap): Likewise.
34124         * sysdeps/mips/bits/setjmp.h (struct __jmp_buf_internal_tag):
34125         Likewise.
34126         * sysdeps/posix/getcwd.c (__getcwd): Likewise.
34127         * sysdeps/powerpc/powerpc32/memset.S (memset): Likewise.
34128         * sysdeps/powerpc/powerpc32/power4/memcpy.S (memcpy): Likewise.
34129         * sysdeps/powerpc/powerpc32/power4/memset.S (memset): Likewise.
34130         * sysdeps/powerpc/powerpc32/power6/memcpy.S (memcpy): Likewise.
34131         * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
34132         * sysdeps/powerpc/powerpc32/power7/memcpy.S (memcpy): Likewise.
34133         * sysdeps/powerpc/powerpc32/power7/mempcpy.S (__mempcpy):
34134         Likewise.
34135         * sysdeps/powerpc/powerpc32/power7/memset.S (memset): Likewise.
34136         * sysdeps/powerpc/powerpc64/memcpy.S (memcpy): Likewise.
34137         * sysdeps/powerpc/powerpc64/memset.S (memset): Likewise.
34138         * sysdeps/powerpc/powerpc64/power4/memcpy.S (memcpy): Likewise.
34139         * sysdeps/powerpc/powerpc64/power4/memset.S (memset): Likewise.
34140         * sysdeps/powerpc/powerpc64/power6/memcpy.S (memcpy): Likewise.
34141         * sysdeps/powerpc/powerpc64/power6/memset.S (memset): Likewise.
34142         * sysdeps/powerpc/powerpc64/power7/memcpy.S (memcpy): Likewise.
34143         * sysdeps/powerpc/powerpc64/power7/mempcpy.S (__mempcpy):
34144         Likewise.
34145         * sysdeps/powerpc/powerpc64/power7/memset.S (memset): Likewise.
34146         * sysdeps/powerpc/powerpc64/power8/memset.S (memset): Likewise.
34147         * sysdeps/tile/memcmp.c (__ptr_t): Remove macro.
34148         (MEMCMP): Use void * instead of ptr_t.
34149         * sysdeps/unix/sysv/linux/alpha/oldglob.c (old_glob_t): Likewise.
34150         * sysdeps/unix/sysv/linux/mmap.c (__mmap): Likewise.
34152 2017-08-08  Florian Weimer  <fweimer@redhat.com>
34154         * sysdeps/posix/getaddrinfo.c (gaih_inet): Remove unreachable
34155         return statement.
34157 2017-08-08  H.J. Lu  <hongjiu.lu@intel.com>
34159         [BZ #21913]
34160         * csu/libc-tls.c: Include <startup.h> first.
34161         (__libc_setup_tls): Call _startup_fatal instead of __libc_fatal.
34162         * elf/dl-tunables.c: Include <startup.h> first.
34163         * include/libc-symbols.h (BUILD_PIE_DEFAULT): New.
34164         * sysdeps/generic/startup.h: New file.
34165         * sysdeps/unix/sysv/linux/i386/startup.h: Likewise.
34166         * sysdeps/unix/sysv/linux/i386/brk.c [BUILD_PIE_DEFAULT != 0]
34167         (I386_USE_SYSENTER): New.  Defined to 0.
34169 2017-08-08  Andreas Schwab  <schwab@suse.de>
34171         [BZ #21041]
34172         * nptl/pt-longjmp.c (longjmp, siglongjmp): Don't use IFUNC resolver.
34173         * nptl/pt-system.c (system): Likewise.
34175 2017-08-07  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
34177         [BZ #21780]
34178         * sysdeps/posix/preadv2.c (preadv2): Use ENOTSUP instead of
34179         EOPNOTSUPP.
34180         * sysdeps/posix/preadv64v2.c (preadv64v2): Likewise.
34181         * sysdeps/posix/pwritev2.c (pwritev2): Likewise.
34182         * sysdeps/posix/pwritev64v2.c (pwritev64v2): Likewise.
34183         * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Likewise.
34184         * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
34185         * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
34186         * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likewise.
34188 2017-08-07  Joseph Myers  <joseph@codesourcery.com>
34190         [BZ #21899]
34191         * bits/sigaction.h (struct sigaction): Define sa_handler and
34192         sa_sigaction using union also for [__USE_XOPEN_EXTENDED].
34193         (SA_ONSTACK): Change [__USE_UNIX98] condition to
34194         [__USE_XOPEN_EXTENDED].
34195         (SA_RESTART): Likewise.
34196         (SA_NODEFER): Likewise.
34197         (SA_RESETHAND): Likewise.
34198         * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h
34199         (struct sigaction): Define sa_handler and sa_sigaction using union
34200         also for [__USE_XOPEN_EXTENDED].
34201         (SA_ONSTACK): Change [__USE_UNIX98] condition to
34202         [__USE_XOPEN_EXTENDED].
34203         (SA_RESTART): Likewise.
34204         (SA_NODEFER): Likewise.
34205         (SA_RESETHAND): Likewise.
34206         * sysdeps/unix/sysv/linux/bits/sigaction.h
34207         (struct sigaction): Define sa_handler and sa_sigaction using union
34208         also for [__USE_XOPEN_EXTENDED].
34209         (SA_ONSTACK): Change [__USE_UNIX98] condition to
34210         [__USE_XOPEN_EXTENDED].
34211         (SA_RESTART): Likewise.
34212         (SA_NODEFER): Likewise.
34213         (SA_RESETHAND): Likewise.
34214         * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h
34215         (struct sigaction): Define sa_handler and sa_sigaction using union
34216         also for [__USE_XOPEN_EXTENDED].
34217         (SA_ONSTACK): Change [__USE_UNIX98] condition to
34218         [__USE_XOPEN_EXTENDED].
34219         (SA_RESTART): Likewise.
34220         (SA_NODEFER): Likewise.
34221         (SA_RESETHAND): Likewise.
34222         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h
34223         (struct sigaction): Define sa_handler and sa_sigaction using union
34224         also for [__USE_XOPEN_EXTENDED].
34225         (SA_ONSTACK): Change [__USE_UNIX98] condition to
34226         [__USE_XOPEN_EXTENDED].
34227         (SA_RESTART): Likewise.
34228         (SA_NODEFER): Likewise.
34229         (SA_RESETHAND): Likewise.
34230         * sysdeps/unix/sysv/linux/mips/bits/sigaction.h
34231         (struct sigaction): Define sa_handler and sa_sigaction using union
34232         also for [__USE_XOPEN_EXTENDED].
34233         (SA_ONSTACK): Change [__USE_UNIX98] condition to
34234         [__USE_XOPEN_EXTENDED].
34235         (SA_RESTART): Likewise.
34236         (SA_NODEFER): Likewise.
34237         (SA_RESETHAND): Likewise.
34238         * sysdeps/unix/sysv/linux/s390/bits/sigaction.h
34239         (struct sigaction): Define sa_handler and sa_sigaction using union
34240         also for [__USE_XOPEN_EXTENDED].
34241         (SA_ONSTACK): Change [__USE_UNIX98] condition to
34242         [__USE_XOPEN_EXTENDED].
34243         (SA_RESTART): Likewise.
34244         (SA_NODEFER): Likewise.
34245         (SA_RESETHAND): Likewise.
34246         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h
34247         (struct sigaction): Define sa_handler and sa_sigaction using union
34248         also for [__USE_XOPEN_EXTENDED].
34249         (SA_ONSTACK): Change [__USE_UNIX98] condition to
34250         [__USE_XOPEN_EXTENDED].
34251         (SA_RESTART): Likewise.
34252         (SA_NODEFER): Likewise.  Define directly rather than as alias.
34253         (SA_RESETHAND): Likewise.
34254         (SA_INTERRUPT): Define only for [__USE_MISC].
34255         (SA_NOMASK): Define as alias of SA_NODEFER, only for [__USE_MISC].
34256         (SA_ONESHOT): Define as alias of SA_RESETHAND, only for
34257         [__USE_MISC].
34258         (SA_STACK): Define only for [__USE_MISC].
34259         * sysdeps/unix/sysv/linux/tile/bits/sigaction.h
34260         (struct sigaction): Define sa_handler and sa_sigaction using union
34261         also for [__USE_XOPEN_EXTENDED].
34262         (SA_ONSTACK): Change [__USE_UNIX98] condition to
34263         [__USE_XOPEN_EXTENDED].
34264         (SA_RESTART): Likewise.
34265         (SA_NODEFER): Likewise.
34266         (SA_RESETHAND): Likewise.
34267         (SA_NOPTRACE): Define only for [__USE_MISC].
34269         * catgets/catgets.c (catgets): Use uintN_t instead of u_intN_t.
34270         * catgets/catgetsinfo.h (struct catalog_obj): Likewise.
34271         (struct catalog_info): Likewise.
34272         * inet/htontest.c (lo): Likewise.
34273         (foo): Likewise.
34274         * inet/inet_lnaof.c (inet_lnaof): Likewise.
34275         * inet/inet_net.c (inet_network): Likewise.
34276         * inet/inet_netof.c (inet_netof): Likewise.
34277         * inet/rcmd.c (__ivaliduser): Likewise.
34278         (iruserok): Likewise.
34279         * locale/loadlocale.c (_nl_intern_locale_data): Likewise.
34280         * locale/programs/locale-spec.c (locale_special): Likewise.
34281         * nis/nis_findserv.c (struct findserv_req): Likewise.
34282         (__nis_findfastest_with_timeout): Likewise.
34283         * nss/test-netdb.c (test_network): Likewise.
34284         * resolv/inet_neta.c (inet_neta): Likewise.
34285         * resolv/ns_date.c (ns_datetosecs): Likewise.
34286         (SECS_PER_DAY): Likewise.
34287         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r):
34288         Likewise.
34289         * resolv/res_comp.c (__putlong): Likewise.
34290         (__putshort): Likewise.
34291         (_getlong): Likewise.
34292         (_getshort): Likewise.
34293         * resolv/res_debug.c (p_time): Likewise.
34294         (precsize_ntoa): Likewise.
34295         (precsize_aton): Likewise.
34296         (latlon2ul): Likewise.
34297         (loc_aton): Likewise.
34298         (loc_ntoa): Likewise.
34299         * resolv/res_hconf.c (struct netaddr): Likewise.
34300         (_res_hconf_reorder_addrs): Likewise.
34301         * sunrpc/clnt_tcp.c (clnttcp_call): Likewise.
34302         (clnttcp_control): Likewise.
34303         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
34304         (clntudp_control): Likewise.
34305         * sunrpc/clnt_unix.c (clntunix_call): Likewise.
34306         (clntunix_control): Likewise.
34307         * sunrpc/pmap_rmt.c (clnt_broadcast): Likewise.
34308         * sunrpc/rpc/auth.h (union des_block): Likewise.
34309         * sunrpc/tst-udp-nonblocking.c (do_test): Likewise.
34310         * sunrpc/xdr_rec.c (struct rec_strm): Likewise.
34311         (xdrrec_create): Likewise.
34312         (xdrrec_endofrecord): Likewise.
34313         (flush_out): Likewise.
34314         * sunrpc/xdr_stdio.c (xdrstdio_getlong): Likewise.
34315         (xdrstdio_putlong): Likewise.
34316         * sysdeps/unix/sysv/linux/errqueue.h (struct sock_extended_err):
34317         Likewise.
34319         * misc/sys/cdefs.h (__long_double_t): Remove.
34320         * stdio-common/printf_fp.c (__printf_fp_l): Use long double
34321         instead of __long_double_t,
34322         * stdlib/strfmon_l.c (__vstrfmon_l): Likewise.
34324 2017-08-07  Siddhesh Poyarekar  <siddhesh@sourceware.org>
34326         * benchtests/scripts/compare_strings.py: Avoid display error when
34327         running on a text terminal.
34329         * benchtests/scripts/compare_strings.py (main): Add an
34330         optional -base option.
34331         (process_results): New argument base_func.
34333         * benchtests/bench-memcpy.c (test_main): Use TEST_NAME instead of
34334         hardcoding memcpy.
34335         * benchtests/bench-memcpy-large.c (test_name): Likewise.
34336         * benchtests/bench-memcpy-random.c (test_name): Likewise.
34338 2017-08-07  Andreas Schwab  <schwab@suse.de>
34340         * elf/Makefile ($(objpfx)tst-pathopt.out): Redirect output to target.
34341         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Likewise.
34342         * intl/Makefile ($(objpfx)tst-gettext.out)
34343         ($(objpfx)tst-translit.out, $(objpfx)tst-gettext2.out)
34344         ($(objpfx)tst-gettext4.out, $(objpfx)tst-gettext6.out): Likewise.
34345         * libio/Makefile ($(objpfx)test-freopen.out): Likewise.
34346         * malloc/Makefile ($(objpfx)tst-mtrace.out): Likewise.
34347         * nptl/Makefile ($(objpfx)tst-tls6.out): Likewise.
34348         * posix/Makefile ($(objpfx)globtest.out)
34349         ($(objpfx)wordexp-tst.out, $(objpfx)tst-getconf.out): Likewise.
34350         * stdio-common/Makefile ($(objpfx)tst-unbputc.out)
34351         ($(objpfx)tst-printf.out): Likewise.
34352         * stdlib/Makefile ($(objpfx)tst-fmtmsg.out)
34353         ($(objpfx)tst-setcontext3.out): Likewise.
34355 2017-08-07  H.J. Lu  <hongjiu.lu@intel.com>
34357         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
34358         Add e_exp-fma, e_log-fma, e_pow-fma, s_atan-fma, e_asin-fma,
34359         e_atan2-fma, s_sin-fma, s_tan-fma, mplog-fma, mpa-fma,
34360         slowexp-fma, slowpow-fma, sincos32-fma, doasin-fma, dosincos-fma,
34361         halfulp-fma, mpexp-fma, mpatan2-fma, mpatan-fma, mpsqrt-fma,
34362         and mptan-fma.
34363         (CFLAGS-doasin-fma.c): New.
34364         (CFLAGS-dosincos-fma.c): Likewise.
34365         (CFLAGS-e_asin-fma.c): Likewise.
34366         (CFLAGS-e_atan2-fma.c): Likewise.
34367         (CFLAGS-e_exp-fma.c): Likewise.
34368         (CFLAGS-e_log-fma.c): Likewise.
34369         (CFLAGS-e_pow-fma.c): Likewise.
34370         (CFLAGS-halfulp-fma.c): Likewise.
34371         (CFLAGS-mpa-fma.c): Likewise.
34372         (CFLAGS-mpatan-fma.c): Likewise.
34373         (CFLAGS-mpatan2-fma.c): Likewise.
34374         (CFLAGS-mpexp-fma.c): Likewise.
34375         (CFLAGS-mplog-fma.c): Likewise.
34376         (CFLAGS-mpsqrt-fma.c): Likewise.
34377         (CFLAGS-mptan-fma.c): Likewise.
34378         (CFLAGS-s_atan-fma.c): Likewise.
34379         (CFLAGS-sincos32-fma.c): Likewise.
34380         (CFLAGS-slowexp-fma.c): Likewise.
34381         (CFLAGS-slowpow-fma.c): Likewise.
34382         (CFLAGS-s_sin-fma.c): Likewise.
34383         (CFLAGS-s_tan-fma.c): Likewise.
34384         * sysdeps/x86_64/fpu/multiarch/doasin-fma.c: New file.
34385         * sysdeps/x86_64/fpu/multiarch/dosincos-fma.c: Likewise.
34386         * sysdeps/x86_64/fpu/multiarch/e_asin-fma.c: Likewise.
34387         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma.c: Likewise.
34388         * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c: Likewise.
34389         * sysdeps/x86_64/fpu/multiarch/e_log-fma.c: Likewise.
34390         * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c: Likewise.
34391         * sysdeps/x86_64/fpu/multiarch/halfulp-fma.c: Likewise.
34392         * sysdeps/x86_64/fpu/multiarch/ifunc-avx-fma4.h: Likewise.
34393         * sysdeps/x86_64/fpu/multiarch/ifunc-fma4.h: Likewise.
34394         * sysdeps/x86_64/fpu/multiarch/mpa-fma.c: Likewise.
34395         * sysdeps/x86_64/fpu/multiarch/mpatan-fma.c: Likewise.
34396         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma.c: Likewise.
34397         * sysdeps/x86_64/fpu/multiarch/mpexp-fma.c: Likewise.
34398         * sysdeps/x86_64/fpu/multiarch/mplog-fma.c: Likewise.
34399         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma.c: Likewise.
34400         * sysdeps/x86_64/fpu/multiarch/mptan-fma.c: Likewise.
34401         * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c: Likewise.
34402         * sysdeps/x86_64/fpu/multiarch/s_sin-fma.c: Likewise.
34403         * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c: Likewise.
34404         * sysdeps/x86_64/fpu/multiarch/sincos32-fma.c: Likewise.
34405         * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
34406         * sysdeps/x86_64/fpu/multiarch/slowpow-fma.c: Likewise.
34407         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Rewrite.
34408         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
34409         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
34410         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
34411         * sysdeps/x86_64/fpu/multiarch/e_pow.c: Likewise.
34412         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
34413         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
34414         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
34416 2017-08-04  Joseph Myers  <joseph@codesourcery.com>
34418         * sysdeps/generic/math_private.h (__EXPR_FLT128): Remove macro.
34419         (min_of_type_f): New macro.
34420         (min_of_type_): Likewise.
34421         (min_of_type_l): Likewise.
34422         (min_of_type_f128): Likewise.
34423         (min_of_type): Define using __MATH_TG and taking an expression
34424         argument.
34425         (math_check_force_underflow): Pass expression instead of type to
34426         min_of_type.
34427         (math_check_force_underflow_nonneg): Likewise.
34429 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
34431         * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
34432         (LOAD_RTLD_GLOBAL_RO_RDX, HAS_FEATURE, LOAD_FUNC_GOT_EAX,
34433         HAS_CPU_FEATURE, HAS_ARCH_FEATURE): Removed.
34435 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
34437         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
34438         bcopy-ia32, bzero-ia32, rawmemchr-ia32 memchr-ia32,
34439         memcmp-ia32, memcpy-ia32, memmove-ia32, mempcpy-ia32,
34440         memset-ia32, strcat-ia32, strchr-ia32, strrchr-ia32,
34441         strcpy-ia32, strcmp-ia32, strcspn-ia32, strpbrk-ia32,
34442         strspn-ia32, strlen-ia32, stpcpy-ia32, stpncpy-ia32,
34443         memcpy_chk-nonshared, mempcpy_chk-nonshared,
34444         memmove_chk-nonshared and memset_chk-nonshared
34445         * sysdeps/i386/i686/multiarch/bcopy-ia32.S: New file.
34446         * sysdeps/i386/i686/multiarch/bcopy.c: Likewise.
34447         * sysdeps/i386/i686/multiarch/bzero-ia32.S: Likewise.
34448         * sysdeps/i386/i686/multiarch/bzero.c: Likewise.
34449         * sysdeps/i386/i686/multiarch/ifunc-memmove.h: Likewise.
34450         * sysdeps/i386/i686/multiarch/ifunc-memset.h: Likewise.
34451         * sysdeps/i386/i686/multiarch/ifunc-sse2-bsf.h: Likewise.
34452         * sysdeps/i386/i686/multiarch/ifunc-sse2-ssse3.h: Likewise.
34453         * sysdeps/i386/i686/multiarch/ifunc-sse2.h: Likewise.
34454         * sysdeps/i386/i686/multiarch/ifunc-sse4_2.h: Likewise.
34455         * sysdeps/i386/i686/multiarch/ifunc-ssse3-sse4_2.h: Likewise.
34456         * sysdeps/i386/i686/multiarch/memchr-ia32.S: Likewise.
34457         * sysdeps/i386/i686/multiarch/memchr.c: Likewise.
34458         * sysdeps/i386/i686/multiarch/memcmp-ia32.S: Likewise.
34459         * sysdeps/i386/i686/multiarch/memcmp.c: Likewise.
34460         * sysdeps/i386/i686/multiarch/memcpy-ia32.S: Likewise.
34461         * sysdeps/i386/i686/multiarch/memcpy.c: Likewise.
34462         * sysdeps/i386/i686/multiarch/memcpy_chk-nonshared.S: Likewise.
34463         * sysdeps/i386/i686/multiarch/memcpy_chk.c: Likewise.
34464         * sysdeps/i386/i686/multiarch/memmove-ia32.S: Likewise.
34465         * sysdeps/i386/i686/multiarch/memmove.c: Likewise.
34466         * sysdeps/i386/i686/multiarch/memmove_chk-nonshared.S: Likewise.
34467         * sysdeps/i386/i686/multiarch/memmove_chk.c: Likewise.
34468         * sysdeps/i386/i686/multiarch/mempcpy-ia32.S: Likewise.
34469         * sysdeps/i386/i686/multiarch/mempcpy.c: Likewise.
34470         * sysdeps/i386/i686/multiarch/mempcpy_chk-nonshared.S: Likewise.
34471         * sysdeps/i386/i686/multiarch/mempcpy_chk.c: Likewise.
34472         * sysdeps/i386/i686/multiarch/memrchr.c: Likewise.
34473         * sysdeps/i386/i686/multiarch/memset-ia32.S: Likewise.
34474         * sysdeps/i386/i686/multiarch/memset.c: Likewise.
34475         * sysdeps/i386/i686/multiarch/memset_chk-nonshared.S: Likewise.
34476         * sysdeps/i386/i686/multiarch/rawmemchr-ia32.S: Likewise.
34477         * sysdeps/i386/i686/multiarch/rawmemchr.c: Likewise.
34478         * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
34479         * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
34480         * sysdeps/i386/i686/multiarch/stpcpy.c: Likewise.
34481         * sysdeps/i386/i686/multiarch/stpncpy-ia32.S: Likewise.
34482         * sysdeps/i386/i686/multiarch/stpncpy.c: Likewise.
34483         * sysdeps/i386/i686/multiarch/strcasecmp.c: Likewise.
34484         * sysdeps/i386/i686/multiarch/strcasecmp_l.c: Likewise.
34485         * sysdeps/i386/i686/multiarch/strcat-ia32.S: Likewise.
34486         * sysdeps/i386/i686/multiarch/strcat.c: Likewise.
34487         * sysdeps/i386/i686/multiarch/strchr-ia32.S: Likewise.
34488         * sysdeps/i386/i686/multiarch/strchr.c: Likewise.
34489         * sysdeps/i386/i686/multiarch/strcmp-ia32.S: Likewise.
34490         * sysdeps/i386/i686/multiarch/strcmp.c: Likewise.
34491         * sysdeps/i386/i686/multiarch/strcpy-ia32.S: Likewise.
34492         * sysdeps/i386/i686/multiarch/strcpy.c: Likewise.
34493         * sysdeps/i386/i686/multiarch/strcspn-ia32.S: Likewise.
34494         * sysdeps/i386/i686/multiarch/strcspn.c: Likewise.
34495         * sysdeps/i386/i686/multiarch/strlen-ia32.S: Likewise.
34496         * sysdeps/i386/i686/multiarch/strlen.c: Likewise.
34497         * sysdeps/i386/i686/multiarch/strncase.c: Likewise.
34498         * sysdeps/i386/i686/multiarch/strncase_l.c: Likewise.
34499         * sysdeps/i386/i686/multiarch/strncat.c: Likewise.
34500         * sysdeps/i386/i686/multiarch/strncmp.c: Likewise.
34501         * sysdeps/i386/i686/multiarch/strncpy.c: Likewise.
34502         * sysdeps/i386/i686/multiarch/strnlen.c: Likewise.
34503         * sysdeps/i386/i686/multiarch/strpbrk-ia32.S: Likewise.
34504         * sysdeps/i386/i686/multiarch/strpbrk.c: Likewise.
34505         * sysdeps/i386/i686/multiarch/strrchr-ia32.S: Likewise.
34506         * sysdeps/i386/i686/multiarch/strrchr.c: Likewise.
34507         * sysdeps/i386/i686/multiarch/strspn-ia32.S: Likewise.
34508         * sysdeps/i386/i686/multiarch/strspn.c: Likewise.
34509         * sysdeps/i386/i686/multiarch/wcschr.c: Likewise.
34510         * sysdeps/i386/i686/multiarch/wcscmp.c: Likewise.
34511         * sysdeps/i386/i686/multiarch/wcscpy.c: Likewise.
34512         * sysdeps/i386/i686/multiarch/wcslen.c: Likewise.
34513         * sysdeps/i386/i686/multiarch/wcsrchr.c: Likewise.
34514         * sysdeps/i386/i686/multiarch/wmemcmp.c: Likewise.
34515         * sysdeps/i386/i686/multiarch/bcopy.S: Removed.
34516         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
34517         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
34518         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
34519         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
34520         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
34521         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
34522         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
34523         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
34524         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
34525         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
34526         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
34527         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
34528         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
34529         * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
34530         * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
34531         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
34532         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
34533         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
34534         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
34535         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
34536         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
34537         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
34538         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
34539         * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
34540         * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
34541         * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
34542         * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
34543         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
34544         * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
34545         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
34546         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
34547         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
34548         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
34549         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
34550         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
34551         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
34552         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
34554 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
34556         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines)
34557         Add svml_d_cos2_core-sse2, svml_d_cos4_core-sse,
34558         svml_d_cos8_core-avx2, svml_d_exp2_core-sse2,
34559         svml_d_exp4_core-sse, svml_d_exp8_core-avx2,
34560         svml_d_log2_core-sse2, svml_d_log4_core-sse,
34561         svml_d_log8_core-avx2, svml_d_pow2_core-sse2,
34562         svml_d_pow4_core-sse, svml_d_pow8_core-avx2
34563         svml_d_sin2_core-sse2, svml_d_sin4_core-sse,
34564         svml_d_sin8_core-avx2, svml_d_sincos2_core-sse2,
34565         svml_d_sincos4_core-sse, svml_d_sincos8_core-avx2,
34566         svml_s_cosf16_core-avx2, svml_s_cosf4_core-sse2,
34567         svml_s_cosf8_core-sse, svml_s_expf16_core-avx2,
34568         svml_s_expf4_core-sse2, svml_s_expf8_core-sse,
34569         svml_s_logf16_core-avx2, svml_s_logf4_core-sse2,
34570         svml_s_logf8_core-sse, svml_s_powf16_core-avx2,
34571         svml_s_powf4_core-sse2, svml_s_powf8_core-sse,
34572         svml_s_sincosf16_core-avx2, svml_s_sincosf4_core-sse2,
34573         svml_s_sincosf8_core-sse, svml_s_sinf16_core-avx2,
34574         svml_s_sinf4_core-sse2 and svml_s_sinf8_core-sse.
34575         * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h: New file.
34576         * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h: Likewise.
34577         * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-sse4_1.h: Likewise.
34578         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.c: Likewise.
34579         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.c: Likewise.
34580         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.c: Likewise.
34581         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.c: Likewise.
34582         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.c: Likewise.
34583         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.c: Likewise.
34584         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.c: Likewise.
34585         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.c: Likewise.
34586         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.c: Likewise.
34587         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.c: Likewise.
34588         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.c: Likewise.
34589         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.c: Likewise.
34590         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.c: Likewise.
34591         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.c: Likewise.
34592         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.c: Likewise.
34593         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.c: Likewise.
34594         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.c: Likewise.
34595         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.c: Likewise.
34596         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.c: Likewise.
34597         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.c: Likewise.
34598         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.c: Likewise.
34599         * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.c: Likewise.
34600         * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.c: Likewise.
34601         * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.c: Likewise.
34602         * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.c: Likewise.
34603         * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.c: Likewise.
34604         * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.c: Likewise.
34605         * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.c: Likewise.
34606         * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.c: Likewise.
34607         * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.c: Likewise.
34608         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.c: Likewise.
34609         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.c: Likewise.
34610         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.c: Likewise.
34611         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.c: Likewise.
34612         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.c: Likewise.
34613         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.c: Likewise.
34614         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.S:  Renamed to
34615         ...
34616         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core-sse2.S: This.
34617         Don't include <sysdep.h> nor <init-arch.h>.
34618         (_ZGVbN2v_cos): Removed.
34619         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.S:  Renamed to
34620         ...
34621         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core-sse.S: This.
34622         Don't include <sysdep.h> nor <init-arch.h>.
34623         (_ZGVdN4v_cos): Removed.
34624         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S:  Renamed to
34625         ...
34626         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core-avx2.S: This.
34627         Don't include <sysdep.h> nor <init-arch.h>.
34628         (_ZGVeN8v_cos): Removed.
34629         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.S:  Renamed to
34630         ...
34631         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core-sse2.S: This.
34632         Don't include <sysdep.h> nor <init-arch.h>.
34633         (_ZGVbN2v_exp): Removed.
34634         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.S:  Renamed to
34635         ...
34636         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core-sse.S: This.
34637         Don't include <sysdep.h> nor <init-arch.h>.
34638         (_ZGVdN4v_exp): Removed.
34639         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S:  Renamed to
34640         ...
34641         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core-avx2.S: This.
34642         Don't include <sysdep.h> nor <init-arch.h>.
34643         (_ZGVeN8v_exp): Removed.
34644         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.S:  Renamed to
34645         ...
34646         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core-sse2.S: This.
34647         Don't include <sysdep.h> nor <init-arch.h>.
34648         (_ZGVbN2v_log): Removed.
34649         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.S:  Renamed to
34650         ...
34651         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core-sse.S: This.
34652         Don't include <sysdep.h> nor <init-arch.h>.
34653         (_ZGVdN4v_log): Removed.
34654         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S:  Renamed to
34655         ...
34656         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core-avx2.S: This.
34657         Don't include <sysdep.h> nor <init-arch.h>.
34658         (_ZGVeN8v_log): Removed.
34659         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.S:  Renamed to
34660         ...
34661         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core-sse2.S: This.
34662         Don't include <sysdep.h> nor <init-arch.h>.
34663         (_ZGVbN2vv_pow): Removed.
34664         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.S:  Renamed to
34665         ...
34666         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core-sse.S: This.
34667         Don't include <sysdep.h> nor <init-arch.h>.
34668         (_ZGVdN4vv_pow): Removed.
34669         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S:  Renamed to
34670         ...
34671         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core-avx2.S: This.
34672         Don't include <sysdep.h> nor <init-arch.h>.
34673         (_ZGVeN8vv_pow): Removed.
34674         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.S:  Renamed to
34675         ...
34676         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core-sse2.S: This.
34677         Don't include <sysdep.h> nor <init-arch.h>.
34678         (_ZGVbN2v_sin): Removed.
34679         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.S:  Renamed to
34680         ...
34681         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core-sse.S: This.
34682         Don't include <sysdep.h> nor <init-arch.h>.
34683         (_ZGVbN4v_sin): Removed.
34684         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S:  Renamed to
34685         ...
34686         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core-avx2.S: This.
34687         Don't include <sysdep.h> nor <init-arch.h>.
34688         (_ZGVbN8v_sin): Removed.
34689         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.S:  Renamed to
34690         ...
34691         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core-sse2.S: This.
34692         Don't include <sysdep.h> nor <init-arch.h>.
34693         (_ZGVbN2vvv_sincos): Removed.
34694         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.S:  Renamed to
34695         ...
34696         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core-sse.S: This.
34697         Don't include <sysdep.h> nor <init-arch.h>.
34698         (_ZGVdN4vvv_sincos): Removed.
34699         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S:  Renamed to
34700         ...
34701         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core-avx2.S: This.
34702         Don't include <sysdep.h> nor <init-arch.h>.
34703         (_ZGVeN8vvv_sincos): Removed.
34704         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.S:  Renamed to
34705         ...
34706         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core-avx2.S: This.
34707         Don't include <sysdep.h> nor <init-arch.h>.
34708         (_ZGVeN16v_cosf): Removed.
34709         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.S:  Renamed to
34710         ...
34711         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core-sse2.S: This.
34712         Don't include <sysdep.h> nor <init-arch.h>.
34713         (_ZGVbN4v_cosf): Removed.
34714         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.S:  Renamed to
34715         ...
34716         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core-sse.S: This.
34717         Don't include <sysdep.h> nor <init-arch.h>.
34718         (_ZGVdN8v_cosf): Removed.
34719         * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.S:  Renamed to
34720         ...
34721         * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core-avx2.S: This.
34722         Don't include <sysdep.h> nor <init-arch.h>.
34723         (_ZGVeN16v_expf): Removed.
34724         * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.S:  Renamed to
34725         ...
34726         * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core-sse2.S: This.
34727         Don't include <sysdep.h> nor <init-arch.h>.
34728         (_ZGVbN4v_expf): Removed.
34729         * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.S:  Renamed to
34730         ...
34731         * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core-sse.S: This.
34732         Don't include <sysdep.h> nor <init-arch.h>.
34733         (_ZGVdN8v_expf): Removed.
34734         * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.S:  Renamed to
34735         ...
34736         * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core-avx2.S: This.
34737         Don't include <sysdep.h> nor <init-arch.h>.
34738         (_ZGVeN16v_logf): Removed.
34739         * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.S:  Renamed to
34740         ...
34741         * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core-sse2.S: This.
34742         Don't include <sysdep.h> nor <init-arch.h>.
34743         (_ZGVbN4v_logf): Removed.
34744         * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.S:  Renamed to
34745         ...
34746         * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core-sse.S: This.
34747         Don't include <sysdep.h> nor <init-arch.h>.
34748         (_ZGVdN8v_logf): Removed.
34749         * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.S:  Renamed to
34750         ...
34751         * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core-avx2.S: This.
34752         Don't include <sysdep.h> nor <init-arch.h>.
34753         (_ZGVeN16vv_powf): Removed.
34754         * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.S:  Renamed to
34755         ...
34756         * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core-sse2.S: This.
34757         Don't include <sysdep.h> nor <init-arch.h>.
34758         (_ZGVbN4vv_powf): Removed.
34759         * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.S:  Renamed to
34760         ...
34761         * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core-sse.S: This.
34762         Don't include <sysdep.h> nor <init-arch.h>.
34763         (_ZGVdN8vv_powf): Removed.
34764         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.S:  Renamed to
34765         ...
34766         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core-avx2.S: This.
34767         Don't include <sysdep.h> nor <init-arch.h>.
34768         (_ZGVeN16vvv_sincosf): Removed.
34769         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.S:  Renamed to
34770         ...
34771         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core-sse2.S: This.
34772         Don't include <sysdep.h> nor <init-arch.h>.
34773         (_ZGVbN4vvv_sincosf): Removed.
34774         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.S:  Renamed to
34775         ...
34776         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core-sse.S: This.
34777         Don't include <sysdep.h> nor <init-arch.h>.
34778         (_ZGVdN8vvv_sincosf): Removed.
34779         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.S:  Renamed to
34780         ...
34781         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core-avx2.S: This.
34782         Don't include <sysdep.h> nor <init-arch.h>.
34783         (_ZGVeN16v_sinf): Removed.
34784         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.S:  Renamed to
34785         ...
34786         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core-sse2.S: This.
34787         Don't include <sysdep.h> nor <init-arch.h>.
34788         (_ZGVbN4v_sinf): Removed.
34789         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.S:  Renamed to
34790         ...
34791         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core-sse.S: This.
34792         Don't include <sysdep.h> nor <init-arch.h>.
34793         (_ZGVdN8v_sinf): Removed.
34795 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
34797         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
34798         Add s_ceil-sse4_1, s_ceilf-sse4_1, s_floor-sse4_1,
34799         s_floorf-sse4_1, s_nearbyint-sse4_1, s_nearbyintf-sse4_1,
34800         s_rint-sse4_1 and s_rintf-sse4_1.
34801         * sysdeps/x86_64/fpu/multiarch/ifunc-sse4_1.h: New file.
34802         * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Likewise.
34803         * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Likewise.
34804         * sysdeps/x86_64/fpu/multiarch/s_floor.c: Likewise.
34805         * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Likewise.
34806         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Likewise.
34807         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Likewise.
34808         * sysdeps/x86_64/fpu/multiarch/s_rint.c: Likewise.
34809         * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Likewise.
34810         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: Renamed to ...
34811         * sysdeps/x86_64/fpu/multiarch/s_ceil-sse4_1.S: This.  Don't
34812         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
34813         (__ceil): Removed.
34814         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: Renamed to ...
34815         * sysdeps/x86_64/fpu/multiarch/s_ceilf-sse4_1.S: This.  Don't
34816         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
34817         (__ceilf): Removed.
34818         * sysdeps/x86_64/fpu/multiarch/s_floor.S: Renamed to ...
34819         * sysdeps/x86_64/fpu/multiarch/s_floor-sse4_1.S: This.  Don't
34820         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
34821         (__floor): Removed.
34822         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: Renamed to ...
34823         * sysdeps/x86_64/fpu/multiarch/s_floorf-sse4_1.S: This.  Don't
34824         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
34825         (__floorf): Removed.
34826         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: Renamed to ...
34827         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-sse4_1.S: This.  Don't
34828         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
34829         (__nearbyint): Removed.
34830         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: Renamed to ...
34831         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-sse4_1.S: This.  Don't
34832         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
34833         (__nearbyintf): Removed.
34834         * sysdeps/x86_64/fpu/multiarch/s_rint.S: Renamed to ...
34835         * sysdeps/x86_64/fpu/multiarch/s_rint-sse4_1.S: This.  Don't
34836         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
34837         (__rint): Removed.
34838         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: Renamed to ...
34839         * sysdeps/x86_64/fpu/multiarch/s_rintf-sse4_1.S: This.  Don't
34840         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
34841         (__rintf): Removed.
34843 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
34845         * sysdeps/i386/start.S (_start): Check Check PIC instead of
34846         SHARED.  Avoid dynamic relocation against main in static PIE.
34848 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
34850         [BZ #21815]
34851         * elf/Makefile (CFLAGS-tst-prelink.c): New.
34852         (LDFLAGS-tst-prelink): Likewise.
34854 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
34856         * sysdeps/unix/sysv/linux/i386/sysdep.h (I386_USE_SYSENTER):
34857         Define to I386_USE_SYSENTER to 0 or 1 if not defined.
34858         (ENTER_KERNEL): Check if I386_USE_SYSENTER is 1 and check PIC.
34859         (INTERNAL_SYSCALL_MAIN_INLINE): Likewise.
34860         (INTERNAL_SYSCALL_NCS): Likewise.
34861         (LOADARGS_1): Likewise.
34862         (LOADARGS_5): Likewise.
34863         (RESTOREARGS_1): Likewise.
34864         (RESTOREARGS_5): Likewise.
34866 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
34868         * sysdeps/x86_64/memmove.S (MEMCPY_SYMBOL): Don't check SHARED.
34869         (MEMPCPY_SYMBOL): Likewise.
34870         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
34871         (__libc_ifunc_impl_list): Test memcpy and mempcpy in libc.a.
34872         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Also include
34873         in libc.a.
34874         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
34875         * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
34876         Likewise.
34877         * sysdeps/x86_64/multiarch/memcpy.c: Also include in libc.a.
34878         (__hidden_ver1): Don't use in libc.a.
34879         * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S
34880         (__mempcpy): Don't create a weak alias in libc.a.
34881         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S: Support
34882         libc.a.
34883         * sysdeps/x86_64/multiarch/mempcpy.c: Also include in libc.a.
34884         (__hidden_ver1): Don't use in libc.a.
34886 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
34888         * config.make.in (have-insert): New.
34889         * configure.ac (libc_cv_insert): New.  Set to yes if linker
34890         supports INSERT in linker script.
34891         (AC_SUBST(libc_cv_insert): New.
34892         * configure: Regenerated.
34893         * sysdeps/x86_64/Makefile (tests): Add tst-split-dynreloc only
34894         if $(have-insert) == yes.
34896 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
34898         * elf/Makefile (tests): Add vismain only if
34899         $(have-protected-data) == yes.
34900         (tests-pie): Likewise.
34902 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
34904         [BZ #21871]
34905         * sysdeps/x86/cpu-features.c (init_cpu_features): Set
34906         bit_arch_Use_dl_runtime_resolve_opt only with AVX512F.
34908 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
34910         [BZ #21790]
34911         * sysdeps/i386/i586/memset.S
34912         (__memset_zero_constant_len_parameter): Removed.
34913         * sysdeps/i386/i686/memset.S
34914         (__memset_zero_constant_len_parameter): Likewise.
34915         * sysdeps/i386/i686/multiarch/memset_chk.S
34916         (__memset_zero_constant_len_parameter): Likewise.
34917         * sysdeps/x86_64/memset.S (__memset_zero_constant_len_parameter):
34918         Likewise.
34920 2017-08-03  Aurelien Jarno  <aurelien@aurel32.net>
34922         * stdlib/getentropy.c (getentropy): Change return type to int.
34924 2017-08-03  Aurelien Jarno  <aurelien@aurel32.net>
34926         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Regenerated.
34928 2017-08-03  Joseph Myers  <joseph@codesourcery.com>
34930         * math/s_nextafter.c (__nextafter): Use uintN_t instead of
34931         u_intN_t.
34932         * math/s_nexttowardf.c (__nexttowardf): Likewise.
34933         * sysdeps/generic/math_private.h (ieee_double_shape_type):
34934         Likewise.
34935         (ieee_float_shape_type): Likewise.
34936         * sysdeps/i386/fpu/s_fpclassifyl.c (__fpclassifyl): Likewise.
34937         * sysdeps/i386/fpu/s_isnanl.c (__isnanl): Likewise.
34938         * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Likewise.
34939         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
34940         * sysdeps/i386/fpu/s_nexttowardf.c (__nexttowardf): Likewise.
34941         * sysdeps/ieee754/dbl-64/e_acosh.c (__ieee754_acosh): Likewise.
34942         * sysdeps/ieee754/dbl-64/e_cosh.c (__ieee754_cosh): Likewise.
34943         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Likewise.
34944         * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
34945         Likewise.
34946         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
34947         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
34948         (__ieee754_yn): Likewise.
34949         * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
34950         * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
34951         * sysdeps/ieee754/dbl-64/e_rem_pio2.c (__ieee754_rem_pio2):
34952         Likewise.
34953         * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
34954         * sysdeps/ieee754/dbl-64/s_ceil.c (__ceil): Likewise.
34955         * sysdeps/ieee754/dbl-64/s_copysign.c (__copysign): Likewise.
34956         * sysdeps/ieee754/dbl-64/s_erf.c (__erf): Likewise.
34957         (__erfc): Likewise.
34958         * sysdeps/ieee754/dbl-64/s_expm1.c (__expm1): Likewise.
34959         * sysdeps/ieee754/dbl-64/s_finite.c (FINITE): Likewise.
34960         * sysdeps/ieee754/dbl-64/s_floor.c (__floor): Likewise.
34961         * sysdeps/ieee754/dbl-64/s_fpclassify.c (__fpclassify): Likewise.
34962         * sysdeps/ieee754/dbl-64/s_isnan.c (__isnan): Likewise.
34963         * sysdeps/ieee754/dbl-64/s_issignaling.c (__issignaling):
34964         Likewise.
34965         * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Likewise.
34966         * sysdeps/ieee754/dbl-64/s_llround.c (__llround): Likewise.
34967         * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
34968         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Likewise.
34969         * sysdeps/ieee754/dbl-64/s_modf.c (__modf): Likewise.
34970         * sysdeps/ieee754/dbl-64/s_nextup.c (__nextup): Likewise.
34971         * sysdeps/ieee754/dbl-64/s_remquo.c (__remquo): Likewise.
34972         * sysdeps/ieee754/dbl-64/s_round.c (__round): Likewise.
34973         * sysdeps/ieee754/dbl-64/s_trunc.c (__trunc): Likewise.
34974         * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c
34975         (__issignaling): Likewise.
34976         * sysdeps/ieee754/flt-32/e_atan2f.c (__ieee754_atan2f): Likewise.
34977         * sysdeps/ieee754/flt-32/e_fmodf.c (__ieee754_fmodf): Likewise.
34978         * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
34979         Likewise.
34980         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
34981         * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
34982         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Likewise.
34983         * sysdeps/ieee754/flt-32/e_rem_pio2f.c (__ieee754_rem_pio2f):
34984         Likewise.
34985         * sysdeps/ieee754/flt-32/e_remainderf.c (__ieee754_remainderf):
34986         Likewise.
34987         * sysdeps/ieee754/flt-32/e_sqrtf.c (__ieee754_sqrtf): Likewise.
34988         * sysdeps/ieee754/flt-32/s_ceilf.c (__ceilf): Likewise.
34989         * sysdeps/ieee754/flt-32/s_copysignf.c (__copysignf): Likewise.
34990         * sysdeps/ieee754/flt-32/s_erff.c (__erff): Likewise.
34991         (__erfcf): Likewise.
34992         * sysdeps/ieee754/flt-32/s_expm1f.c (__expm1f): Likewise.
34993         * sysdeps/ieee754/flt-32/s_finitef.c (FINITEF): Likewise.
34994         * sysdeps/ieee754/flt-32/s_floorf.c (__floorf): Likewise.
34995         * sysdeps/ieee754/flt-32/s_fpclassifyf.c (__fpclassifyf):
34996         Likewise.
34997         * sysdeps/ieee754/flt-32/s_isnanf.c (__isnanf): Likewise.
34998         * sysdeps/ieee754/flt-32/s_issignalingf.c (__issignalingf):
34999         Likewise.
35000         * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
35001         * sysdeps/ieee754/flt-32/s_llroundf.c (__llroundf): Likewise.
35002         * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
35003         * sysdeps/ieee754/flt-32/s_lroundf.c (__lroundf): Likewise.
35004         * sysdeps/ieee754/flt-32/s_modff.c (__modff): Likewise.
35005         * sysdeps/ieee754/flt-32/s_remquof.c (__remquof): Likewise.
35006         * sysdeps/ieee754/flt-32/s_roundf.c (__roundf): Likewise.
35007         * sysdeps/ieee754/ldbl-128/e_acoshl.c (__ieee754_acoshl):
35008         Likewise.
35009         * sysdeps/ieee754/ldbl-128/e_atan2l.c (__ieee754_atan2l):
35010         Likewise.
35011         * sysdeps/ieee754/ldbl-128/e_atanhl.c (__ieee754_atanhl):
35012         Likewise.
35013         * sysdeps/ieee754/ldbl-128/e_fmodl.c (__ieee754_fmodl): Likewise.
35014         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
35015         Likewise.
35016         * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
35017         Likewise.
35018         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
35019         (__ieee754_ynl): Likewise.
35020         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
35021         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c (__ieee754_rem_pio2l):
35022         Likewise.
35023         * sysdeps/ieee754/ldbl-128/e_remainderl.c (__ieee754_remainderl):
35024         Likewise.
35025         * sysdeps/ieee754/ldbl-128/e_sinhl.c (__ieee754_sinhl): Likewise.
35026         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Likewise.
35027         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
35028         Likewise.
35029         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Likewise.
35030         * sysdeps/ieee754/ldbl-128/s_ceill.c (__ceill): Likewise.
35031         * sysdeps/ieee754/ldbl-128/s_copysignl.c (__copysignl): Likewise.
35032         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Likewise.
35033         * sysdeps/ieee754/ldbl-128/s_fabsl.c (__fabsl): Likewise.
35034         * sysdeps/ieee754/ldbl-128/s_finitel.c (__finitel): Likewise.
35035         * sysdeps/ieee754/ldbl-128/s_floorl.c (__floorl): Likewise.
35036         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c (__fpclassifyl):
35037         Likewise.
35038         * sysdeps/ieee754/ldbl-128/s_frexpl.c (__frexpl): Likewise.
35039         * sysdeps/ieee754/ldbl-128/s_isnanl.c (__isnanl): Likewise.
35040         * sysdeps/ieee754/ldbl-128/s_issignalingl.c (__issignalingl):
35041         Likewise.
35042         * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
35043         * sysdeps/ieee754/ldbl-128/s_llroundl.c (__llroundl): Likewise.
35044         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
35045         * sysdeps/ieee754/ldbl-128/s_lroundl.c (__lroundl): Likewise.
35046         * sysdeps/ieee754/ldbl-128/s_modfl.c (__modfl): Likewise.
35047         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
35048         Likewise.
35049         * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl):
35050         Likewise.
35051         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
35052         Likewise.
35053         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
35054         Likewise.
35055         * sysdeps/ieee754/ldbl-128/s_nextupl.c (__nextupl): Likewise.
35056         * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Likewise.
35057         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
35058         * sysdeps/ieee754/ldbl-128/s_roundl.c (__roundl): Likewise.
35059         * sysdeps/ieee754/ldbl-128/s_tanhl.c (__tanhl): Likewise.
35060         * sysdeps/ieee754/ldbl-128/s_truncl.c (__truncl): Likewise.
35061         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl):
35062         Likewise.
35063         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
35064         Likewise.
35065         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
35066         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
35067         Likewise.
35068         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c
35069         (__ieee754_remainderl): Likewise.
35070         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
35071         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
35072         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Likewise.
35073         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c (___fpclassifyl):
35074         Likewise.
35075         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c (__modfl): Likewise.
35076         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
35077         Likewise.
35078         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
35079         * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Likewise.
35080         * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
35081         * sysdeps/ieee754/ldbl-96/e_atanhl.c (__ieee754_atanhl): Likewise.
35082         * sysdeps/ieee754/ldbl-96/e_coshl.c (__ieee754_coshl): Likewise.
35083         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
35084         Likewise.
35085         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
35086         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Likewise.
35087         (__ieee754_y0l): Likewise.
35088         (pzero): Likewise.
35089         (qzero): Likewise.
35090         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
35091         (__ieee754_y1l): Likewise.
35092         (pone): Likewise.
35093         (qone): Likewise.
35094         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
35095         (__ieee754_ynl): Likewise.
35096         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Likewise.
35097         (__ieee754_lgammal_r): Likewise.
35098         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c (__ieee754_rem_pio2l):
35099         Likewise.
35100         * sysdeps/ieee754/ldbl-96/e_sinhl.c (__ieee754_sinhl): Likewise.
35101         * sysdeps/ieee754/ldbl-96/s_copysignl.c (__copysignl): Likewise.
35102         * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfl): Likewise.
35103         (__erfcl): Likewise.
35104         * sysdeps/ieee754/ldbl-96/s_frexpl.c (__frexpl): Likewise.
35105         * sysdeps/ieee754/ldbl-96/s_issignalingl.c (__issignalingl):
35106         Likewise.
35107         * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
35108         * sysdeps/ieee754/ldbl-96/s_llroundl.c (__llroundl): Likewise.
35109         * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
35110         * sysdeps/ieee754/ldbl-96/s_lroundl.c (__lroundl): Likewise.
35111         * sysdeps/ieee754/ldbl-96/s_modfl.c (__modfl): Likewise.
35112         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
35113         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
35114         Likewise.
35115         * sysdeps/ieee754/ldbl-96/s_nextupl.c (__nextupl): Likewise.
35116         * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Likewise.
35117         * sysdeps/ieee754/ldbl-96/s_roundl.c (__roundl): Likewise.
35118         * sysdeps/ieee754/ldbl-96/s_tanhl.c (__tanhl): Likewise.
35119         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
35120         Likewise.
35121         * sysdeps/m68k/m680x0/fpu/e_pow.c (s(__ieee754_pow)): Likewise.
35122         * sysdeps/m68k/m680x0/fpu/s_fpclassifyl.c (__fpclassifyl):
35123         Likewise.
35124         * sysdeps/m68k/m680x0/fpu/s_llrint.c (__llrint): Likewise.
35125         * sysdeps/m68k/m680x0/fpu/s_llrintf.c (__llrintf): Likewise.
35126         * sysdeps/m68k/m680x0/fpu/s_llrintl.c (__llrintl): Likewise.
35127         * sysdeps/m68k/m680x0/fpu/s_nextafterl.c (__nextafterl): Likewise.
35128         * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Likewise.
35130 2017-08-03  Florian Weimer  <fweimer@redhat.com>
35132         [BZ #21885]
35133         * sysdeps/posix/getaddrinfo.c (gethosts): Release resolver context
35134         on memory allocation failure.
35136 2017-08-03  Alan Modra  <amodra@gmail.com>
35138         * sysdeps/powerpc/mod-tlsopt-powerpc.c: Extract from
35139         tst-tlsopt-powerpc.c with function name change and no test harness.
35140         * sysdeps/powerpc/tst-tlsopt-powerpc.c: Remove body of test.
35141         Call tls_get_addr_opt_test.
35142         * sysdeps/powerpc/Makefile (LDFLAGS-tst-tlsopt-powerpc): Don't define.
35143         (modules-names): Add mod-tlsopt-powerpc.
35144         (mod-tlsopt-powerpc.so-no-z-defs): Define.
35145         (tst-tlsopt-powerpc): Depend on .so.
35146         * sysdeps/powerpc/powerpc64/tls-macros.h (__TLS_GET_ADDR): Don't
35147         define.  Expand use in TLS_GD and TLS_LD.
35149 2017-08-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
35151         * sysdeps/mach/hurd/enbl-secure.c (__libc_init_secure): Define
35152         function.
35153         * sysdeps/posix/shm_open.c: Include <pthread.h>.
35155 2017-08-02  Joseph Myers  <joseph@codesourcery.com>
35157         [BZ #21686]
35158         * math/tgmath.h (__TGMATH_BINARY_REAL_ONLY): Add arguments before
35159         comparing size with that of double.
35160         (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
35161         (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
35162         (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
35163         (__TGMATH_TERNARY_REAL_ONLY): Likewise.
35164         (__TGMATH_BINARY_REAL_IMAG): Likewise.
35165         * math/gen-tgmath-tests.py (Type.init_types): Create __int128 and
35166         unsigned __int128 types.
35168 2017-08-02  Steve Ellcey  <sellcey@cavium.com>
35170         * localedata/Makefile (CFLAGS-tst_iswalnum.c, CFLAGS-tst_iswalpha.c
35171         CFLAGS-tst_iswcntrl.c, CFLAGS-tst_iswdigit.c, CFLAGS-tst_iswgraph.c,
35172         CFLAGS-tst_iswlower.c, CFLAGS-tst_iswprint.c, CFLAGS-tst_iswpunct.c,
35173         CFLAGS-tst_iswspace.c, CFLAGS-tst_iswupper.c, CFLAGS-tst_iswxdigit.c,
35174         CFLAGS-tst_towlower.c, CFLAGS-tst_towupper.c): Remove.
35176 2017-08-02  H.J. Lu  <hongjiu.lu@intel.com>
35178         * sysdeps/x86_64/start.S (_start): Check PIC instead of SHARED.
35180 2017-08-02  H.J. Lu  <hongjiu.lu@intel.com>
35182         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Check PIC instead
35183         of SHARED.
35184         * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Likewise.
35185         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
35186         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
35187         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
35188         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
35189         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
35190         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
35192 2017-08-02  Joseph Myers  <joseph@codesourcery.com>
35194         [BZ #21685]
35195         * math/tgmath.h (__tgmath_real_type): Use unary + on potentially
35196         bit-field expressions passed to sizeof or typeof.
35197         [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
35198         (__TGMATH_F128): Likewise.
35199         [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
35200         (__TGMATH_CF128): Likewise.
35201         (__TGMATH_UNARY_REAL_ONLY): Likewise.
35202         (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
35203         (__TGMATH_BINARY_FIRST_REAL_ONLY): Likewise.
35204         (__TGMATH_BINARY_FIRST_REAL_STD_ONLY): Likewise.
35205         (__TGMATH_BINARY_REAL_ONLY): Likewise.
35206         (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
35207         (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
35208         (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
35209         (__TGMATH_TERNARY_REAL_ONLY): Likewise.
35210         (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY): Likewise.
35211         (__TGMATH_UNARY_REAL_IMAG): Likewise.
35212         (__TGMATH_UNARY_IMAG): Likewise.
35213         (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
35214         (__TGMATH_BINARY_REAL_IMAG): Likewise.
35215         * math/gen-tgmath-tests.py (Type.init_types): Create bit_field
35216         type.
35217         (define_vars_for_type): Handle bit_field type specially.
35218         (Tests.__init__): Declare structure with bit-field element.
35220 2017-08-02  H.J. Lu  <hongjiu.lu@intel.com>
35222         [BZ #21791]
35223         * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S
35224         (MEMCPY_CHK): Define only if SHARED is defined.
35225         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S (MEMCPY_CHK):
35226         Likewise.
35227         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S (MEMCPY_CHK):
35228         Likewise.
35230 See ChangeLog.18 for earlier changes.