Linux: Implement interfaces for memory protection keys
[glibc.git] / ChangeLog
blob333012ba815696e8eef0a99e86aa55419f218fff
1 2017-12-05  Florian Weimer  <fweimer@redhat.com>
3         Linux: Implement interfaces for memory protection keys
4         * support/Makefile (libsupport-routines): Add xraise, xsigaction,
5         xsignal, xsysconf.
6         * support/xsignal.h (xraise, xsignal, xsigaction): Declare.
7         * support/xunistd.h (xsysconf): Declare.
8         * support/xraise.c: New file.
9         * support/xsigaction.c: Likewise.
10         * support/xsignal.c: Likewise.
11         * support/xsysconf.c: Likewise.
12         * sysdeps/unix/sysv/linux/Makefile [misc] (routines): Add
13         pkey_set, pkey_get, pkey_mprotect.
14         [misc] (tests): Add tst-pkey.
15         (tst-pkey): Link with -lpthread.
16         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Add pkey_alloc,
17         pkey_free, pkey_set, pkey_get, pkey_mprotect.
18         * sysdeps/unix/sysv/linux/bits/mman-linux.h (PKEY_DISABLE_ACCESS)
19         (PKEY_DISABLE_WRITE): Define.
20         (pkey_alloc, pkey_free, pkey_set, pkey_get, pkey_mprotect):
21         Declare.
22         * sysdeps/unix/sysv/linux/bits/siginfo-consts.h (SEGV_BNDERR)
23         (SEGV_PKUERR): Add.
24         * sysdeps/unix/sysv/linux/pkey_get.c: New file.
25         * sysdeps/unix/sysv/linux/pkey_set.c: Likewise.
26         * sysdeps/unix/sysv/linux/pkey_mprotect.c: Likewise.
27         * sysdeps/unix/sysv/linux/syscalls.list (pkey_alloc, pkey_free):
28         Add.
29         * sysdeps/unix/sysv/linux/tst-pkey.c: New file.
30         * sysdeps/unix/sysv/linux/x86/arch-pkey.h: Likewise.
31         * sysdeps/unix/sysv/linux/x86/pkey_get.c: Likewise.
32         * sysdeps/unix/sysv/linux/x86/pkey_set.c: Likewise.
33         * sysdeps/unix/sysv/linux/**.abilist: Update.
35 2017-12-05  Florian Weimer  <fweimer@redhat.com>
37         * support/tst-test_compare.c (subprocess): Use long long instead
38         of long argument for consistent type width across 32-bit and
39         64-bit architectures.
40         (do_test): Adjust expected output.
42 2017-12-05  Joseph Myers  <joseph@codesourcery.com>
44         * sysdeps/powerpc/fpu/s_cosf.c: Include <libm-alias-float.h>.
45         (cosf): Define using libm_alias_float.
46         * sysdeps/powerpc/fpu/s_fabs.S: Include <libm-alias-float.h>.
47         (fabsf): Define using libm_alias_float.
48         * sysdeps/powerpc/fpu/s_fmaf.S: Include <libm-alias-float.h>.
49         (fmaf): Define using libm_alias_float.
50         * sysdeps/powerpc/fpu/s_rintf.c: Include <libm-alias-float.h>.
51         (rintf): Define using libm_alias_float.
52         * sysdeps/powerpc/fpu/s_sinf.c: Include <libm-alias-float.h>.
53         (sinf): Define using libm_alias_float.
54         * sysdeps/powerpc/power5+/fpu/s_modff.c: Include
55         <libm-alias-float.h>.
56         (modff): Define using libm_alias_float.
57         * sysdeps/powerpc/power7/fpu/s_logbf.c: Include
58         <libm-alias-float.h>.
59         (logbf): Define using libm_alias_float.
60         * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S: Include
61         <libm-alias-float.h>.
62         (ceilf): Define using libm_alias_float.
63         * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Include
64         <libm-alias-float.h>.
65         (copysignf): Define using libm_alias_float.
66         * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Include
67         <libm-alias-float.h>.
68         (floorf): Define using libm_alias_float.
69         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Include
70         <libm-alias-float.h>.
71         (llrintf): Define using libm_alias_float.
72         * sysdeps/powerpc/powerpc32/fpu/s_llroundf.c: Include
73         <libm-alias-float.h>.
74         (llroundf): Define using libm_alias_float.
75         * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Include
76         <libm-alias-float.h>.
77         (lrintf): Define using libm_alias_float.
78         * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Include
79         <libm-alias-float.h>.
80         (lroundf): Define using libm_alias_float.
81         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: Include
82         <libm-alias-float.h>.
83         (nearbyintf): Define using libm_alias_float.
84         * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Include
85         <libm-alias-float.h>.
86         (rintf): Define using libm_alias_float.
87         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Include
88         <libm-alias-float.h>.
89         (roundf): Define using libm_alias_float.
90         * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Include
91         <libm-alias-float.h>.
92         (truncf): Define using libm_alias_float.
93         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c:
94         Include <libm-alias-float.h>.
95         (ceilf): Define using libm_alias_float.
96         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c:
97         Include <libm-alias-float.h>.
98         (copysignf): Define using libm_alias_float.
99         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c:
100         Include <libm-alias-float.h>.
101         (floorf): Define using libm_alias_float.
102         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf.c:
103         Include <libm-alias-float.h>.
104         (llrintf): Define using libm_alias_float.
105         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llroundf.c:
106         Include <libm-alias-float.h>.
107         (llroundf): Define using libm_alias_float.
108         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf.c:
109         Include <libm-alias-float.h>.
110         (logbf): Define using libm_alias_float.
111         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrintf.c:
112         Include <libm-alias-float.h>.
113         (lrintf): Define using libm_alias_float.
114         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lroundf.c:
115         Include <libm-alias-float.h>.
116         (lroundf): Define using libm_alias_float.
117         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff.c:
118         Include <libm-alias-float.h>.
119         (modff): Define using libm_alias_float.
120         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c:
121         Include <libm-alias-float.h>.
122         (roundf): Define using libm_alias_float.
123         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c:
124         Include <libm-alias-float.h>.
125         (truncf): Define using libm_alias_float.
126         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Include
127         <libm-alias-float.h>.
128         (llrintf): Define using libm_alias_float.
129         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Include
130         <libm-alias-float.h>.
131         (llroundf): Define using libm_alias_float.
132         * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: Include
133         <libm-alias-float.h>.
134         (ceilf): Define using libm_alias_float.
135         * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: Include
136         <libm-alias-float.h>.
137         (floorf): Define using libm_alias_float.
138         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Include
139         <libm-alias-float.h>.
140         (llroundf): Define using libm_alias_float.
141         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Include
142         <libm-alias-float.h>.
143         (lroundf): Define using libm_alias_float.
144         * sysdeps/powerpc/powerpc32/power5+/fpu/s_roundf.S: Include
145         <libm-alias-float.h>.
146         (roundf): Define using libm_alias_float.
147         * sysdeps/powerpc/powerpc32/power5+/fpu/s_truncf.S: Include
148         <libm-alias-float.h>.
149         (truncf): Define using libm_alias_float.
150         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Include
151         <libm-alias-float.h>.
152         (copysignf): Define using libm_alias_float.
153         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Include
154         <libm-alias-float.h>.
155         (llrintf): Define using libm_alias_float.
156         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Include
157         <libm-alias-float.h>.
158         (llroundf): Define using libm_alias_float.
159         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: Include
160         <libm-alias-float.h>.
161         (lrintf): Define using libm_alias_float.
162         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Include
163         <libm-alias-float.h>.
164         (lroundf): Define using libm_alias_float.
165         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Include
166         <libm-alias-float.h>.
167         (ceilf): Define using libm_alias_float.
168         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: Include
169         <libm-alias-float.h>.
170         (copysignf): Define using libm_alias_float.
171         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf.c: Include
172         <libm-alias-float.h>.
173         (cosf): Define using libm_alias_float.
174         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Include
175         <libm-alias-float.h>.
176         (floorf): Define using libm_alias_float.
177         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrintf.c: Include
178         <libm-alias-float.h>.
179         (llrintf): Define using libm_alias_float.
180         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf.c: Include
181         <libm-alias-float.h>.
182         (llroundf): Define using libm_alias_float.
183         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf.c: Include
184         <libm-alias-float.h>.
185         (logbf): Define using libm_alias_float.
186         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff.c: Include
187         <libm-alias-float.h>.
188         (modff): Define using libm_alias_float.
189         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Include
190         <libm-alias-float.h>.
191         (roundf): Define using libm_alias_float.
192         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf.c: Include
193         <libm-alias-float.h>.
194         (sinf): Define using libm_alias_float.
195         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Include
196         <libm-alias-float.h>.
197         (truncf): Define using libm_alias_float.
198         * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Include
199         <libm-alias-float.h>.
200         (ceilf): Define using libm_alias_float.
201         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Include
202         <libm-alias-float.h>.
203         (copysignf): Define using libm_alias_float.
204         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Include
205         <libm-alias-float.h>.
206         (floorf): Define using libm_alias_float.
207         * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Include
208         <libm-alias-float.h>.
209         (llrintf): Define using libm_alias_float.
210         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S: Include
211         <libm-alias-float.h>.
212         (llroundf): Define using libm_alias_float.
213         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: Include
214         <libm-alias-float.h>.
215         (nearbyintf): Define using libm_alias_float.
216         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Include
217         <libm-alias-float.h>.
218         (rintf): Define using libm_alias_float.
219         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Include
220         <libm-alias-float.h>.
221         (roundf): Define using libm_alias_float.
222         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Include
223         <libm-alias-float.h>.
224         (truncf): Define using libm_alias_float.
225         * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: Include
226         <libm-alias-float.h>.
227         (ceilf): Define using libm_alias_float.
228         * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: Include
229         <libm-alias-float.h>.
230         (floorf): Define using libm_alias_float.
231         * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Include
232         <libm-alias-float.h>.
233         (llroundf): Define using libm_alias_float.
234         * sysdeps/powerpc/powerpc64/power5+/fpu/s_roundf.S: Include
235         <libm-alias-float.h>.
236         (roundf): Define using libm_alias_float.
237         * sysdeps/powerpc/powerpc64/power5+/fpu/s_truncf.S: Include
238         <libm-alias-float.h>.
239         (truncf): Define using libm_alias_float.
240         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Include
241         <libm-alias-float.h>.
242         (copysignf): Define using libm_alias_float.
243         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Include
244         <libm-alias-float.h>.
245         (llrintf): Define using libm_alias_float.
246         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Include
247         <libm-alias-float.h>.
248         (llroundf): Define using libm_alias_float.
249         * sysdeps/powerpc/powerpc64/power8/fpu/s_cosf.S: Include
250         <libm-alias-float.h>.
251         (cosf): Define using libm_alias_float.
252         * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: Include
253         <libm-alias-float.h>.
254         (llrintf): Define using libm_alias_float.
255         * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Include
256         <libm-alias-float.h>.
257         (llroundf): Define using libm_alias_float.
258         * sysdeps/powerpc/powerpc64/power8/fpu/s_sinf.S: Include
259         <libm-alias-float.h>.
260         (sinf): Define using libm_alias_float.
262 2017-12-04  Florian Weimer  <fweimer@redhat.com>
264         * support/check.h (TEST_COMPARE): Define.
265         (support_test_compare_failure): Declare.
266         * support/Makefile (libsupport-routines): Add
267         support_test_compare_failure.
268         (tests): Add tst-test_compare.
269         * support /support_test_compare_failure.c: New file.
270         * support/tst-test_compare.c: Likewise.
272 2017-12-04  Mike FABIAN  <mfabian@redhat.com>
274         [BZ #22527]
275         *  localedata/locales/tr_TR (LC_COLLATE): Base collation rules
276         on iso14651_t1. A test file localedata/tr_TR.UTF-8.in is already
277         available, this rewrite of the collation rules does reproduce
278         the test file in the same order.
280 2017-12-04  Mike FABIAN  <mfabian@redhat.com>
282         [BZ #10580]
283         * localedata/locales/hr_HR (LC_TIME): Use two letters for the
284         digraphs in the month and day names. Using single code points for
285         digraphs is deprecated.  While there are dedicated Unicode
286         codepoints, for the digraphs, these are included for backwards
287         compatibility and modern texts use a sequence of Basic Latin
288         characters. See: https://www.unicode.org/faq/ligature_digraph.html
289         This makes the month and day names agree exactly with CLDR now,
290         CLDR does not use the single code points for the digraphs either.
292 2017-12-04  Chris Metcalf  <cmetcalf@mellanox.com>
294         * sysdeps/tile/libm-test-ulps: Update ca{cos,sin,tan}{,h} ulps.
296 2017-12-04  Joseph Myers  <joseph@codesourcery.com>
298         * sysdeps/ieee754/flt-32/s_sinf.c (SINF_FUNC): Use __floor instead
299         of floor.
301 2017-12-04  Siddhesh Poyarekar  <siddhesh@sourceware.org>
303         * sysdeps/aarch64/multiarch/memcpy_generic.S (__GI_memcpy):
304         Define only for libc.so.
306 2017-12-04  Stefan Liebler  <stli@linux.vnet.ibm.com>
308         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
309         (INTERNAL_VSYSCALL_CALL, CLOBBER_0, CLOBBER_1, CLOBBER_2,
310          CLOBBER_3, CLOBBER_4, CLOBBER_5, CLOBBER_6,
311         INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Remove.
312         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
314 2017-12-04  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
316         [BZ #5997]
317         * sysdeps/ieee754/flt-32/s_sinf.c: New implementation.
319 2017-12-02  John David Anglin  <danglin@gcc.gnu.org>
321         [BZ libc/19170]
322         * sysdeps/hppa/crti.S: Declare PREINIT_FUNCTION weak_extern when
323         PREINIT_FUNCTION_WEAK is nonzero.
324         (gmon_initializer): New function.  Put procedure label for it in
325         .init_array section.
326         (_init): Don't call PREINIT_FUNCTION.
327         * sysdeps/hppa/crtn.S (__gmon_start__): Remove.
328         * sysdeps/hppa/dl-lookupcfg.h (DL_FIXUP_MAKE_VALUE): Create null fixup
329         value when map argument is null.
331         * sysdeps/hppa/dl-fptr.c (elf_machine_resolve): Remove unnecessary
332         depi instruction from PIC pc-relative sequence.
333         * sysdeps/hppa/dl-fptr.h (ELF_MACHINE_LOAD_ADDRESS): Likewise.
334         * sysdeps/hppa/dl-machine.h (elf_machine_dynamic): Likewise.
335         (elf_machine_load_address): Likewise.
336         (elf_machine_runtime_setup): Likewise.
338 2017-12-02  Joseph Myers  <joseph@codesourcery.com>
340         * sysdeps/powerpc/power7/fpu/s_logb.c: Include
341         <libm-alias-double.h>.
342         (logb): Define using libm_alias_double.
343         * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Include
344         <libm-alias-double.h>.
345         (copysign): Define using libm_alias_double.
346         * sysdeps/powerpc/powerpc32/fpu/s_llrint.c: Include
347         <libm-alias-double.h>.
348         (llrint): Define using libm_alias_double.
349         * sysdeps/powerpc/powerpc32/fpu/s_llround.c: Include
350         <libm-alias-double.h>.
351         (llround): Define using libm_alias_double.
352         * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Include
353         <libm-alias-double.h>.
354         (lrint): Define using libm_alias_double.
355         * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Include
356         <libm-alias-double.h>.
357         (lround): Define using libm_alias_double.
358         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
359         Include <libm-alias-double.h>.
360         (copysign): Define using libm_alias_double.
361         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint.c:
362         Include <libm-alias-double.h>.
363         (llrint): Define using libm_alias_double.
364         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround.c:
365         Include <libm-alias-double.h>.
366         (llround): Define using libm_alias_double.
367         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c: Include
368         <libm-alias-double.h>.
369         (logb): Define using libm_alias_double.
370         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint.c:
371         Include <libm-alias-double.h>.
372         (lrint): Define using libm_alias_double.
373         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround.c:
374         Include <libm-alias-double.h>.
375         (lround): Define using libm_alias_double.
376         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Include
377         <libm-alias-double.h>.
378         (llrint): Define using libm_alias_double.
379         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Include
380         <libm-alias-double.h>.
381         (llround): Define using libm_alias_double.
382         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Include
383         <libm-alias-double.h>.
384         (llround): Define using libm_alias_double.
385         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Include
386         <libm-alias-double.h>.
387         (lround): Define using libm_alias_double.
388         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Include
389         <libm-alias-double.h>.
390         (copysign): Define using libm_alias_double.
391         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Include
392         <libm-alias-double.h>.
393         (llrint): Define using libm_alias_double.
394         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Include
395         <libm-alias-double.h>.
396         (llround): Define using libm_alias_double.
397         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: Include
398         <libm-alias-double.h>.
399         (lrint): Define using libm_alias_double.
400         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Include
401         <libm-alias-double.h>.
402         (lround): Define using libm_alias_double.
403         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Include
404         <libm-alias-double.h>.
405         (copysign): Define using libm_alias_double.
406         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c: Include
407         <libm-alias-double.h>.
408         (llrint): Define using libm_alias_double.
409         (lrint): Likewise.
410         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c: Include
411         <libm-alias-double.h>.
412         (llround): Define using libm_alias_double.
413         (lround): Likewise.
414         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c: Include
415         <libm-alias-double.h>.
416         (logb): Define using libm_alias_double.
417         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Include
418         <libm-alias-double.h>.
419         (copysign): Define using libm_alias_double.
420         * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Include
421         <libm-alias-double.h>.
422         (llrint): Define using libm_alias_double.
423         (lrint): Likewise.
424         * sysdeps/powerpc/powerpc64/fpu/s_llround.S: Include
425         <libm-alias-double.h>.
426         (llround): Define using libm_alias_double.
427         (lround): Likewise.
428         * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Include
429         <libm-alias-double.h>.
430         (llround): Define using libm_alias_double.
431         (lround): Likewise.
432         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Include
433         <libm-alias-double.h>.
434         (copysign): Define using libm_alias_double.
435         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Include
436         <libm-alias-double.h>.
437         (llrint): Define using libm_alias_double.
438         (lrint): Likewise.
439         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Include
440         <libm-alias-double.h>.
441         (llround): Define using libm_alias_double.
442         (lround): Likewise.
443         * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: Include
444         <libm-alias-double.h>.
445         (llrint): Define using libm_alias_double.
446         (lrint): Likewise.
447         * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Include
448         <libm-alias-double.h>.
449         (llround): Define using libm_alias_double.
450         (lround): Likewise.
452 2017-12-01  Joseph Myers  <joseph@codesourcery.com>
454         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c
455         [LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)] (lroundl): Do not define
456         compat symbol based on llround.
458         * sysdeps/powerpc/power7/fpu/s_logb.c
459         [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Define as compat
460         symbol based on __logb, not on logb.
461         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c
462         [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Likewise.
463         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c
464         [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Likewise.
466         * sysdeps/powerpc/fpu/s_rint.c: Include <libm-alias-double.h>.
467         (rint): Define using libm_alias_double.
468         * sysdeps/powerpc/power5+/fpu/s_modf.c: Include
469         <libm-alias-double.h>.
470         (modf): Define using libm_alias_double.
471         * sysdeps/powerpc/powerpc32/fpu/s_ceil.S: Include
472         <libm-alias-double.h>.
473         (ceil): Define using libm_alias_double.
474         * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Include
475         <libm-alias-double.h>.
476         (floor): Define using libm_alias_double.
477         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: Include
478         <libm-alias-double.h>.
479         (nearbyint): Define using libm_alias_double.
480         * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Include
481         <libm-alias-double.h>.
482         (rint): Define using libm_alias_double.
483         * sysdeps/powerpc/powerpc32/fpu/s_round.S: Include
484         <libm-alias-double.h>.
485         (round): Define using libm_alias_double.
486         * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Include
487         <libm-alias-double.h>.
488         (trunc): Define using libm_alias_double.
489         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: Include
490         <libm-alias-double.h>.
491         (ceil): Define using libm_alias_double.
492         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c:
493         Include <libm-alias-double.h>.
494         (floor): Define using libm_alias_double.
495         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf.c: Include
496         <libm-alias-double.h>.
497         (modf): Define using libm_alias_double.
498         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c:
499         Include <libm-alias-double.h>.
500         (round): Define using libm_alias_double.
501         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c:
502         Include <libm-alias-double.h>.
503         (trunc): Define using libm_alias_double.
504         * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: Include
505         <libm-alias-double.h>.
506         (ceil): Define using libm_alias_double.
507         * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: Include
508         <libm-alias-double.h>.
509         (floor): Define using libm_alias_double.
510         * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S: Include
511         <libm-alias-double.h>.
512         (round): Define using libm_alias_double.
513         * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S: Include
514         <libm-alias-double.h>.
515         (trunc): Define using libm_alias_double.
516         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: Include
517         <libm-alias-double.h>.
518         (ceil): Define using libm_alias_double.
519         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: Include
520         <libm-alias-double.h>.
521         (floor): Define using libm_alias_double.
522         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf.c: Include
523         <libm-alias-double.h>.
524         (modf): Define using libm_alias_double.
525         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: Include
526         <libm-alias-double.h>.
527         (round): Define using libm_alias_double.
528         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: Include
529         <libm-alias-double.h>.
530         (trunc): Define using libm_alias_double.
531         * sysdeps/powerpc/powerpc64/fpu/s_ceil.S: Include
532         <libm-alias-double.h>.
533         (ceil): Define using libm_alias_double.
534         * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Include
535         <libm-alias-double.h>.
536         (floor): Define using libm_alias_double.
537         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: Include
538         <libm-alias-double.h>.
539         (nearbyint): Define using libm_alias_double.
540         * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Include
541         <libm-alias-double.h>.
542         (rint): Define using libm_alias_double.
543         * sysdeps/powerpc/powerpc64/fpu/s_round.S: Include
544         <libm-alias-double.h>.
545         (round): Define using libm_alias_double.
546         * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Include
547         <libm-alias-double.h>.
548         (trunc): Define using libm_alias_double.
549         * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: Include
550         <libm-alias-double.h>.
551         (ceil): Define using libm_alias_double.
552         * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: Include
553         <libm-alias-double.h>.
554         (floor): Define using libm_alias_double.
555         * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S: Include
556         <libm-alias-double.h>.
557         (round): Define using libm_alias_double.
558         * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S: Include
559         <libm-alias-double.h>.
560         (trunc): Define using libm_alias_double.
562         * sysdeps/powerpc/fpu/s_fabs.S: Include <libm-alias-double.h>.
563         (fabs): Define using libm_alias_double.
564         * sysdeps/powerpc/fpu/s_fma.S: Include <libm-alias-double.h>.
565         (fma): Define using libm_alias_double.
566         * sysdeps/powerpc/powerpc32/fpu/s_fabs.S: Remove file.
567         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: Likewise.
568         * sysdeps/powerpc/powerpc64/fpu/s_fabs.S: Likewise.
569         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: Likewise.
571 2017-12-01  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
573         * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Remove file.
575         * sysdeps/sparc/sparc-ifunc.h (SPARC_ASM_IFUNC_DFLT,
576         SPARC_ASM_IFUNC1, SPARC_ASM_IFUNC2, SET, SPARC_ASM_VIS2_IFUNC,
577         SPARC_ASM_VIS3_IFUNC, SPARC_ASM_VIS3_VIS2_IFUNC): Remove macros.
579         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c: Fix build
580         due redirect macro.
582 2017-12-01  Andreas Schwab  <schwab@linux-m68k.org>
584         * intl/Makefile ($(objpfx)plural.c): Add $(make-target-directory).
586 2017-12-01  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
588         * sysdeps/sparc/sparc64/cpu_relax.c: New file.
589         * sysdeps/sparc/sparc32/sparcv9/cpu_relax.c: Likewise.
590         * sysdeps/sparc/sparc64/cpu_relax.S: Remove file.
591         * sysdeps/sparc/sparc32/sparcv9/cpu_relax.S: Likewise.
593         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
594         (libm-sysdep_routines): Add s_nearbyintf-generic and
595         s_nearbyint-generic.
596         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-generic.S:
597         New file.
598         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.c: Likewise.
599         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-generic.S:
600         Likewise.
601         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.c:
602         Likewise.
603         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S: Remove
604         file.
605         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S:
606         Likewise.
608         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
609         (libm-sysdep_routines): Add s_rintf-generic and s_rint-generic.
610         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-generic.S: New
611         file.
612         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.c: Likewise.
613         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-generic.S:
614         Likewise.
615         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.c: Likewise.
616         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Remove file.
617         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
619         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
620         (libm-sysdep_routines): Add s_llrintf-generic and s_llrint-generic.
621         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-generic.S: New
622         file.
623         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.c: Likewise.
624         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-generic.S:
625         Likewise.
626         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.c: Likewise.
627         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Remove file.
628         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: Likewise.
630         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
631         (libm-sysdep_routines): Add s_fabsf-generic and s_fabs-generic.
632         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-generic.S: New
633         file.
634         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.c: Likewise.
635         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-generic.S:
636         Likewise.
637         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.c: Likewise.
638         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Remove file.
639         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
641         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
642         (sysdep_calls): New rule.
643         (sysdep_routines): Use sysdep_calls as base.
644         (libm-sysdep_routines): Add generic rule for symbols shared with
645         libc.  Add s_copysign-generic and s_copysign-generic objects.
646         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-generic.S:
647         New file.
648         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c: Likewise.
649         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-generic.S:
650         Likewise.
651         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.c: Likewise.
652         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: Remove file.
653         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: Likewise.
655 2017-12-01  Mike FABIAN  <mfabian@redhat.com>
657         [BZ #22519]
658         * localedata/Makefile: Add is_IS.UTF-8 to test-input and to
659         the list of locales to be built for testing.
660         * localedata/is_IS.UTF-8.in: New file.
661         * localedata/locales/is_IS (LC_COLLATE): Base collation rules
662         on iso14651_t1.
664 2017-12-01  Joseph Myers  <joseph@codesourcery.com>
666         * sysdeps/powerpc/powerpc32/e500/nofpu/s_fabsf.S: Include
667         <libm-alias-float.h>.
668         (fabsf): Define using libm_alias_float.
670 2017-11-30  H.J. Lu  <hongjiu.lu@intel.com>
672         * sysdeps/mips/dl-machine.h (elf_machine_reloc): Expand MIN.
674 2017-11-30  Joseph Myers  <joseph@codesourcery.com>
676         * sysdeps/m68k/coldfire/fpu/s_fabsf.c: Include
677         <libm-alias-float.h>.
678         (fabsf): Define using libm_alias_float.
679         * sysdeps/m68k/coldfire/fpu/s_lrintf.c: Include
680         <libm-alias-float.h>.
681         (lrintf): Define using libm_alias_float.
682         * sysdeps/m68k/coldfire/fpu/s_rintf.c: Include
683         <libm-alias-float.h>.
684         (rintf): Define using libm_alias_float.
686         * sysdeps/m68k/coldfire/fpu/s_fabs.c: Include
687         <libm-alias-double.h>.
688         (fabs): Define using libm_alias_double.
689         * sysdeps/m68k/coldfire/fpu/s_lrint.c: Include
690         <libm-alias-double.h>.
691         (lrint): Define using libm_alias_double.
692         * sysdeps/m68k/coldfire/fpu/s_rint.c: Include
693         <libm-alias-double.h>.
694         (rint): Define using libm_alias_double.
696         * sysdeps/m68k/m680x0/fpu/s_atan_template.c: New file.
697         * sysdeps/m68k/m680x0/fpu/s_ceil_template.c: Likewise.
698         * sysdeps/m68k/m680x0/fpu/s_cos_template.c: Likewise.
699         * sysdeps/m68k/m680x0/fpu/s_expm1_template.c: Likewise.
700         * sysdeps/m68k/m680x0/fpu/s_fabs_template.c: Likewise.
701         * sysdeps/m68k/m680x0/fpu/s_floor_template.c: Likewise.
702         * sysdeps/m68k/m680x0/fpu/s_frexp_template.c: Likewise.
703         * sysdeps/m68k/m680x0/fpu/s_lrint_template.c: Likewise.
704         * sysdeps/m68k/m680x0/fpu/s_modf_template.c: Likewise.
705         * sysdeps/m68k/m680x0/fpu/s_nearbyint_template.c: Likewise.
706         * sysdeps/m68k/m680x0/fpu/s_remquo_template.c: Likewise.
707         * sysdeps/m68k/m680x0/fpu/s_rint_template.c: Likewise.
708         * sysdeps/m68k/m680x0/fpu/s_sin_template.c: Likewise.
709         * sysdeps/m68k/m680x0/fpu/s_sincos_template.c: Likewise.
710         * sysdeps/m68k/m680x0/fpu/s_tan_template.c: Likewise.
711         * sysdeps/m68k/m680x0/fpu/s_tanh_template.c: Likewise.
712         * sysdeps/m68k/m680x0/fpu/s_trunc_template.c: Likewise.
713         * sysdeps/m68k/m680x0/fpu/s_atan.c: Reimplement to use
714         s_atan_template.c.
715         * sysdeps/m68k/m680x0/fpu/s_atanf.c: Likewise.
716         * sysdeps/m68k/m680x0/fpu/s_atanl.c: Likewise.
717         * sysdeps/m68k/m680x0/fpu/s_ceil.c: Reimplement to use
718         s_ceil_template.c.
719         * sysdeps/m68k/m680x0/fpu/s_ceilf.c: Likewise.
720         * sysdeps/m68k/m680x0/fpu/s_ceill.c: Likewise.
721         * sysdeps/m68k/m680x0/fpu/s_cos.c: Reimplement to use
722         s_cos_template.c.
723         * sysdeps/m68k/m680x0/fpu/s_cosf.c: Likewise.
724         * sysdeps/m68k/m680x0/fpu/s_cosl.c: Likewise.
725         * sysdeps/m68k/m680x0/fpu/s_expm1.c: Reimplement to use
726         s_expm1_template.c.
727         * sysdeps/m68k/m680x0/fpu/s_expm1f.c: Likewise.
728         * sysdeps/m68k/m680x0/fpu/s_expm1l.c: Likewise.
729         * sysdeps/m68k/m680x0/fpu/s_fabs.c: Reimplement to use
730         s_fabs_template.c.
731         * sysdeps/m68k/m680x0/fpu/s_fabsf.c: Likewise.
732         * sysdeps/m68k/m680x0/fpu/s_fabsl.c: Likewise.
733         * sysdeps/m68k/m680x0/fpu/s_floor.c: Reimplement to use
734         s_floor_template.c.
735         * sysdeps/m68k/m680x0/fpu/s_floorf.c: Likewise.
736         * sysdeps/m68k/m680x0/fpu/s_floorl.c: Likewise.
737         * sysdeps/m68k/m680x0/fpu/s_frexp.c: Reimplement to use
738         s_frexp_template.c.
739         * sysdeps/m68k/m680x0/fpu/s_frexpf.c: Likewise.
740         * sysdeps/m68k/m680x0/fpu/s_lrint.c: Reimplement to use
741         s_lrint_template.c.
742         * sysdeps/m68k/m680x0/fpu/s_lrintf.c: Likewise.
743         * sysdeps/m68k/m680x0/fpu/s_lrintl.c: Likewise.
744         * sysdeps/m68k/m680x0/fpu/s_modf.c: Reimplement to use
745         s_modf_template.c.
746         * sysdeps/m68k/m680x0/fpu/s_modff.c: Likewise.
747         * sysdeps/m68k/m680x0/fpu/s_modfl.c: Likewise.
748         * sysdeps/m68k/m680x0/fpu/s_nearbyint.c: Reimplement to use
749         s_nearbyint_template.c.
750         * sysdeps/m68k/m680x0/fpu/s_nearbyintf.c: Likewise.
751         * sysdeps/m68k/m680x0/fpu/s_nearbyintl.c: Likewise.
752         * sysdeps/m68k/m680x0/fpu/s_remquo.c: Reimplement to use
753         s_remquo_template.c.
754         * sysdeps/m68k/m680x0/fpu/s_remquof.c: Likewise.
755         * sysdeps/m68k/m680x0/fpu/s_remquol.c: Likewise.
756         * sysdeps/m68k/m680x0/fpu/s_rint.c: Reimplement to use
757         s_rint_template.c.
758         * sysdeps/m68k/m680x0/fpu/s_rintf.c: Likewise.
759         * sysdeps/m68k/m680x0/fpu/s_rintl.c: Likewise.
760         * sysdeps/m68k/m680x0/fpu/s_sin.c: Reimplement to use
761         s_sin_template.c.
762         * sysdeps/m68k/m680x0/fpu/s_sinf.c: Likewise.
763         * sysdeps/m68k/m680x0/fpu/s_sinl.c: Likewise.
764         * sysdeps/m68k/m680x0/fpu/s_sincos.c: Reimplement to use
765         s_sincos_template.c.
766         * sysdeps/m68k/m680x0/fpu/s_sincosf.c: Likewise.
767         * sysdeps/m68k/m680x0/fpu/s_sincosl.c: Likewise.
768         * sysdeps/m68k/m680x0/fpu/s_tan.c: Reimplement to use
769         s_tan_template.c.
770         * sysdeps/m68k/m680x0/fpu/s_tanf.c: Likewise.
771         * sysdeps/m68k/m680x0/fpu/s_tanl.c: Likewise.
772         * sysdeps/m68k/m680x0/fpu/s_tanh.c: Reimplement to use
773         s_tanh_template.c.
774         * sysdeps/m68k/m680x0/fpu/s_tanhf.c: Likewise.
775         * sysdeps/m68k/m680x0/fpu/s_tanhl.c: Likewise.
776         * sysdeps/m68k/m680x0/fpu/s_trunc.c: Reimplement to use
777         s_trunc_template.c.
778         * sysdeps/m68k/m680x0/fpu/s_truncf.c: Likewise.
779         * sysdeps/m68k/m680x0/fpu/s_truncl.c: Likewise.
780         * sysdeps/m68k/m680x0/fpu/s_significand.c: Reimplement based on
781         s_atan.c instead of including s_atan.c.
782         * sysdeps/m68k/m680x0/fpu/s_significandf.c: Reimplement based on
783         s_atanf.c instead of including s_atanf.c.
784         * sysdeps/m68k/m680x0/fpu/s_significandl.c: Reimplement based on
785         s_atanl.c instead of including s_atanl.c.
786         * sysdeps/m68k/m680x0/fpu/s_log1p.c: Include s_significand.c
787         instead of s_atan.c.
788         * sysdeps/m68k/m680x0/fpu/s_log1pf.c: Include s_significandf.c
789         instead of s_atanf.c.
790         * sysdeps/m68k/m680x0/fpu/s_log1pl.c: Include s_significandl.c
791         instead of s_atanl.c.
793         * scripts/update-copyrights: Do not handle intl/plural.c
794         specially.
796 2017-11-30  Juro Bystricky  <juro.bystricky@linux.intel.com>
798         [BZ #22432]
799         * configure.ac (BISON): Require to be present.
800         * configure: Regenerated.
801         * intl/Makefile (generated): Add plural.c.
802         [$(BISON) != no]: Make code unconditional.
803         (plural.c): Change rule to $(objpfx)plural.c.
804         ($(objpfx)plural.o): Depend on $(objpfx)plural.c.
805         * intl/plural.c: Remove.
806         * manual/install.texi (Tools for Compilation): Document bison as
807         required.
808         * INSTALL: Regenerated.
810 2017-11-30  Joseph Myers  <joseph@codesourcery.com>
812         * sysdeps/m68k/m680x0/fpu/s_llrint.c: Include
813         <libm-alias-double.h>.
814         (llrint): Define using libm_alias_double.
815         * sysdeps/m68k/m680x0/fpu/s_llrintf.c: Include
816         <libm-alias-float.h>.
817         (llrintf): Define using libm_alias_float.
818         * sysdeps/m68k/m680x0/fpu/s_llrintl.c: Include
819         <libm-alias-ldouble.h>.
820         (llrintl): Define using libm_alias_ldouble.
822         * sysdeps/m68k/m680x0/fpu/s_ccosh_template.c (ccosh): Use
823         declare_mgen_alias instead of weak_alias.
824         * sysdeps/m68k/m680x0/fpu/s_cexp_template.c (cexp): Likewise.
825         * sysdeps/m68k/m680x0/fpu/s_csin_template.c (csin): Likewise.
826         * sysdeps/m68k/m680x0/fpu/s_csinh_template.c (csinh): Likewise.
828 2017-11-30  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
830         * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
831         Add add_n-generic.
832         * sysdeps/sparc/sparc64/multiarch/add_n-generic.S: New file.
833         * sysdeps/sparc/sparc64/multiarch/add_n.c: Likewise.
834         * sysdeps/sparc/sparc64/multiarch/add_n.S: Remove file.
836         * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
837         Add submul_1-generic.
838         * sysdeps/sparc/sparc64/multiarch/submul_1-generic.S: New file.
839         * sysdeps/sparc/sparc64/multiarch/submul_1.c: Likewise.
840         * sysdeps/sparc/sparc64/multiarch/submul_1.S: Remove file.
842         * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
843         Add addmul_1-generic.
844         * sysdeps/sparc/sparc64/multiarch/addmul_1-generic.S: New file.
845         * sysdeps/sparc/sparc64/multiarch/addmul_1.c: Likewise.
846         * sysdeps/sparc/sparc64/multiarch/addmul_1.S: Remove file.
848         * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
849         Add sub_n-generic.
850         * sysdeps/sparc/sparc64/multiarch/sub_n-generic.S: New file.
851         * sysdeps/sparc/sparc64/multiarch/sub_n.c: Likewise.
852         * sysdeps/sparc/sparc64/multiarch/sub_n.S: Remove file.
854         * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
855         Add mul_1-generic.
856         * sysdeps/sparc/sparc64/multiarch/mul_1-generic.S: New file.
857         * sysdeps/sparc/sparc64/multiarch/mul_1.c: Likewise.
858         * sysdeps/sparc/sparc64/multiarch/mul_1.S: Remove file.
860 2017-11-30  Mike FABIAN  <mfabian@redhat.com>
862         According to CLDR, collation rules for Serbian and Bosnian
863         should be the same as for Croatian.
865         [BZ #22534]
866         * localedata/Makefile: Add sr_RS.UTF-8 and bs_BA.UTF-8 to test-input
867         and to the list of locales to be built for testing.
868         * localedata/bs_BA.UTF-8.in: New file (same as hr_HR.UTF-8.in).
869         * localedata/sr_RS.UTF-8.in: New file (same as hr_HR.UTF-8.in).
870         * localedata/locales/bs_BA (LC_COLLATE): Use “copy "hr_HR"”.
871         * localedata/locales/sr_RS (LC_COLLATE): Use “copy "hr_HR"”.
873 2017-11-30  Mike FABIAN  <mfabian@redhat.com>
875         * localedata/locales/hr_HR (LC_COLLATE): Fix collation
876         to make test case pass.
877         * localedata/hr_HR.UTF-8.in: Add more test strings.
879 2017-11-30  Mike FABIAN  <mfabian@redhat.com>
881         * stdlib/tst-strfmon_l.c: Fix testcase. Needed because of [BZ #10580]
883 2017-11-30  Dragan Stanojević - Nevidljivi <invisible@hidden-city.net>
885         * localedata/Makefile: Add hr_HR.UTF-8 to test-input and to
886         the list of locales to built for testing.
887         * localedata/hr_HR.UTF-8.in: New file.
889 2017-11-30  Dragan Stanojević - Nevidljivi <invisible@hidden-city.net>
891         [BZ #10580]
892         * localedata/locales/hr_HR (LC_COLLATE): Base collation rules on
893         iso14651_t1.
894         * localedata/locales/hr_HR (LC_TIME): Sync month and day names with
895         CLDR (except use ligatures for the digraphs, CLDR does not use
896         the ligatures), add first_workday, some fixes in the date and time
897         formats.
898         * localedata/locales/hr_HR (LC_CTYPE): Add transliteration rules
899         for Đ and đ.
900         * localedata/locales/hr_HR (LC_MONETARY): Change currency_symbol to
901         lower case. p_cs_precedes and n_cs_precedes should be 0 instead of 1.
902         Add int_p_cs_precedes and int_n_cs_precedes.
903         * localedata/locales/hr_HR (LC_NUMERIC): Change thousands_sep to
904         "<U202F>" (NARROW NO-BREAK SPACE) and grouping to 3;3 (Agrees with
905         LC_MONETARY now).
906         * localedata/locales/hr_HR (LC_TELEPHONE): Add tel_dom_fmt.
907         * localedata/locales/hr_HR (LC_NAME): Add name_mr, name_mrs, and
908         name_miss.
909         * localedata/locales/hr_HR (LC_ADDRESS): Add country_post, country_isbn,
910         and lang_lib. Change postal_fmt.
912 2017-11-30  H.J. Lu  <hongjiu.lu@intel.com>
914         * debug/longjmp_chk.c: Include <setjmpP.h> instead of
915         <setjmp.h>.
916         * setjmp/longjmp.c: Include <setjmpP.h> instead of <setjmp.h>.
917         (__libc_siglongjmp): Cast &env[0].__saved_mask to "sigset_t *".
918         * setjmp/sigjmp.c: Include <setjmpP.h> instead of <setjmp.h>.
919         (__sigjmp_save): Cast &env[0].__saved_mask to "sigset_t *".
920         * sysdeps/generic/setjmpP.h: New file.
921         * sysdeps/unix/sysv/linux/x86/jmp_buf-ssp.sym: Likewise.
922         * sysdeps/unix/sysv/linux/x86/setjmpP.h: Likewise.
923         * sysdeps/unix/sysv/linux/x86/tst-saved_mask-1.c: Likewise.
924         * sysdeps/unix/sysv/linux/x86/Makefile (gen-as-const-headers):
925         Add jmp_buf-ssp.sym.
926         (tests): Add tst-saved_mask-1.
928 2017-11-30  Arjun Shankar  <arjun@redhat.com>
930         [BZ #22375]
931         * malloc/malloc.c (__libc_malloc): Use checked_request2size
932         instead of request2size.
934 2017-11-30  Joseph Myers  <joseph@codesourcery.com>
936         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S
937         (__lllrint): Remove alias.
938         (lllrint): Likewise.
939         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S
940         (__lllrintf): Likewise.
941         (lllrintf): Likewise.
943         * sysdeps/sparc/sparc32/fpu/s_copysignf.S: Include
944         <libm-alias-float.h>.
945         (copysignf): Define using libm_alias_float.
946         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Include
947         <libm-alias-float.h>.
948         (fabsf): Define using libm_alias_float.
949         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
950         Include <libm-alias-float.h>.
951         (copysignf): Define using libm_alias_float.
952         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Include
953         <libm-alias-float.h>.
954         (fabsf): Define using libm_alias_float.
955         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.c: Include
956         <libm-alias-float.h>.
957         (fdimf): Define using libm_alias_float.
958         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: Include
959         <libm-alias-float.h>.
960         (fmaf): Define using libm_alias_float.
961         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: Include
962         <libm-alias-float.h>.
963         (llrintf): Define using libm_alias_float.
964         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S:
965         Include <libm-alias-float.h>.
966         (nearbyintf): Define using libm_alias_float.
967         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Include
968         <libm-alias-float.h>.
969         (rintf): Define using libm_alias_float.
970         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: Include
971         <libm-alias-float.h>.
972         (llrintf): Define using libm_alias_float.
973         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: Include
974         <libm-alias-float.h>.
975         (lrintf): Define using libm_alias_float.
976         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyintf.S: Include
977         <libm-alias-float.h>.
978         (nearbyintf): Define using libm_alias_float.
979         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Include
980         <libm-alias-float.h>.
981         (rintf): Define using libm_alias_float.
982         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Include
983         <libm-alias-float.h>.
984         (ceilf): Define using libm_alias_float.
985         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Include
986         <libm-alias-float.h>.
987         (floorf): Define using libm_alias_float.
988         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: Include
989         <libm-alias-float.h>.
990         (fmaf): Define using libm_alias_float.
991         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.c: Include
992         <libm-alias-float.h>.
993         (lrintf): Define using libm_alias_float.
994         (llrintf): Likewise.
995         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.c: Include
996         <libm-alias-float.h>.
997         (nearbyintf): Define using libm_alias_float.
998         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Include
999         <libm-alias-float.h>.
1000         (rintf): Define using libm_alias_float.
1001         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Include
1002         <libm-alias-float.h>.
1003         (truncf): Define using libm_alias_float.
1004         * sysdeps/sparc/sparc64/fpu/s_copysignf.S: Include
1005         <libm-alias-float.h>.
1006         (copysignf): Define using libm_alias_float.
1007         * sysdeps/sparc/sparc64/fpu/s_fabsf.c: Include
1008         <libm-alias-float.h>.
1009         (fabsf): Define using libm_alias_float.
1010         * sysdeps/sparc/sparc64/fpu/s_lrintf.S: Include
1011         <libm-alias-float.h>.
1012         (lrintf): Define using libm_alias_float.
1013         (llrintf): Likewise.
1014         * sysdeps/sparc/sparc64/fpu/s_nearbyintf.S: Include
1015         <libm-alias-float.h>.
1016         (nearbyintf): Define using libm_alias_float.
1017         * sysdeps/sparc/sparc64/fpu/s_rintf.S: Include
1018         <libm-alias-float.h>.
1019         (rintf): Define using libm_alias_float.
1021 2017-11-29  Joseph Myers  <joseph@codesourcery.com>
1023         * sysdeps/sparc/sparc32/fpu/s_copysign.S: Include
1024         <libm-alias-double.h>.
1025         (copysign): Define using libm_alias_double.
1026         * sysdeps/sparc/sparc32/fpu/s_fabs.S: Include
1027         <libm-alias-double.h>.
1028         (fabs): Define using libm_alias_double.
1029         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
1030         Include <libm-alias-double.h>.
1031         (copysign): Define using libm_alias_double.
1032         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Include
1033         <libm-alias-double.h>.
1034         (fabs): Define using libm_alias_double.
1035         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c: Include
1036         <libm-alias-double.h>.
1037         (fdim): Define using libm_alias_double.
1038         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: Include
1039         <libm-alias-double.h>.
1040         (fma): Define using libm_alias_double.
1041         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Include
1042         <libm-alias-double.h>.
1043         (llrint): Define using libm_alias_double.
1044         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S:
1045         Include <libm-alias-double.h>.
1046         (nearbyint): Define using libm_alias_double.
1047         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Include
1048         <libm-alias-double.h>.
1049         (rint): Define using libm_alias_double.
1050         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Include
1051         <libm-alias-double.h>.
1052         (fabs): Define using libm_alias_double.
1053         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Include
1054         <libm-alias-double.h>.
1055         (llrint): Define using libm_alias_double.
1056         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyint.S: Include
1057         <libm-alias-double.h>.
1058         (nearbyint): Define using libm_alias_double.
1059         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Include
1060         <libm-alias-double.h>.
1061         (rint): Define using libm_alias_double.
1062         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Include
1063         <libm-alias-double.h>.
1064         (ceil): Define using libm_alias_double.
1065         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Include
1066         <libm-alias-double.h>.
1067         (floor): Define using libm_alias_double.
1068         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: Include
1069         <libm-alias-double.h>.
1070         (fma): Define using libm_alias_double.
1071         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.c: Include
1072         <libm-alias-double.h>.
1073         (lrint): Define using libm_alias_double.
1074         (llrint): Likewise.
1075         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.c: Include
1076         <libm-alias-double.h>.
1077         (nearbyint): Define using libm_alias_double.
1078         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Include
1079         <libm-alias-double.h>.
1080         (rint): Define using libm_alias_double.
1081         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Include
1082         <libm-alias-double.h>.
1083         (trunc): Define using libm_alias_double.
1084         * sysdeps/sparc/sparc64/fpu/s_copysign.S: Include
1085         <libm-alias-double.h>.
1086         (copysign): Define using libm_alias_double.
1087         * sysdeps/sparc/sparc64/fpu/s_fabs.c: Include
1088         <libm-alias-double.h>.
1089         (fabs): Define using libm_alias_double.
1090         * sysdeps/sparc/sparc64/fpu/s_lrint.S: Include
1091         <libm-alias-double.h>.
1092         (lrint): Define using libm_alias_double.
1093         (llrint): Likewise.
1094         * sysdeps/sparc/sparc64/fpu/s_nearbyint.S: Include
1095         <libm-alias-double.h>.
1096         (nearbyint): Define using libm_alias_double.
1097         * sysdeps/sparc/sparc64/fpu/s_rint.S: Include
1098         <libm-alias-double.h>.
1099         (rint): Define using libm_alias_double.
1101         [BZ #22229]
1102         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Include
1103         <math_ldbl_opt.h>.
1104         (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
1106         * scripts/build-many-glibcs.py (Context.add_all_configs): Add
1107         SPARC --disable-multi-arch glibc variants.
1109         * sysdeps/x86_64/fpu/multiarch/e_exp2f.c: Include
1110         <libm-alias-float.h>.
1111         (exp2f): Define using libm_alias_float, or libm_alias_float_other
1112         if [SHARED].
1113         * sysdeps/x86_64/fpu/multiarch/e_expf.c: Include
1114         <libm-alias-float.h>.
1115         (exp2f): Define using libm_alias_float, or libm_alias_float_other
1116         if [SHARED].
1117         * sysdeps/x86_64/fpu/multiarch/e_log2f.c: Include
1118         <libm-alias-float.h>.
1119         (exp2f): Define using libm_alias_float, or libm_alias_float_other
1120         if [SHARED].
1121         * sysdeps/x86_64/fpu/multiarch/e_logf.c: Include
1122         <libm-alias-float.h>.
1123         (exp2f): Define using libm_alias_float, or libm_alias_float_other
1124         if [SHARED].
1125         * sysdeps/x86_64/fpu/multiarch/e_powf.c: Include
1126         <libm-alias-float.h>.
1127         (exp2f): Define using libm_alias_float, or libm_alias_float_other
1128         if [SHARED].
1129         * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Include
1130         <libm-alias-float.h>.
1131         (ceilf): Define using libm_alias_float.
1132         * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Include
1133         <libm-alias-float.h>.
1134         (floorf): Define using libm_alias_float.
1135         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Include
1136         <libm-alias-float.h>.
1137         (fmaf): Define using libm_alias_float.
1138         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Include
1139         <libm-alias-float.h>.
1140         (nearbyintf): Define using libm_alias_float.
1141         * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Include
1142         <libm-alias-float.h>.
1143         (rintf): Define using libm_alias_float.
1144         * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Include
1145         <libm-alias-float.h>.
1146         (truncf): Define using libm_alias_float.
1147         * sysdeps/x86_64/fpu/s_copysignf.S: Include <libm-alias-float.h>.
1148         (copysignf): Define using libm_alias_float.
1149         * sysdeps/x86_64/fpu/s_cosf.S: Include <libm-alias-float.h>.
1150         (cosf): Define using libm_alias_float.
1151         * sysdeps/x86_64/fpu/s_fabsf.c: Include <libm-alias-float.h>.
1152         (fabsf): Define using libm_alias_float.
1153         * sysdeps/x86_64/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
1154         (fmaxf): Define using libm_alias_float.
1155         * sysdeps/x86_64/fpu/s_fminf.S: Include <libm-alias-float.h>.
1156         (fminf): Define using libm_alias_float.
1157         * sysdeps/x86_64/fpu/s_llrintf.S: Include <libm-alias-float.h>.
1158         (llrintf): Define using libm_alias_float.
1159         [!__ILP32__] (lrintf): Likewise.
1160         * sysdeps/x86_64/fpu/s_sincosf.S: Include <libm-alias-float.h>.
1161         (sincosf): Define using libm_alias_float.
1162         * sysdeps/x86_64/fpu/s_sinf.S: Include <libm-alias-float.h>.
1163         (sinf): Define using libm_alias_float.
1164         * sysdeps/x86_64/x32/fpu/s_lrintf.S: Include <libm-alias-float.h>.
1165         (lrintf): Define using libm_alias_float.
1167         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Include
1168         <libm-alias-double.h>.
1169         (atan): Define using libm_alias_double.
1170         * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Include
1171         <libm-alias-double.h>.
1172         (ceil): Define using libm_alias_double.
1173         * sysdeps/x86_64/fpu/multiarch/s_floor.c: Include
1174         <libm-alias-double.h>.
1175         (floor): Define using libm_alias_double.
1176         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Include
1177         <libm-alias-double.h>.
1178         (fma): Define using libm_alias_double.
1179         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Include
1180         <libm-alias-double.h>.
1181         (nearbyint): Define using libm_alias_double.
1182         * sysdeps/x86_64/fpu/multiarch/s_rint.c: Include
1183         <libm-alias-double.h>.
1184         (rint): Define using libm_alias_double.
1185         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Include
1186         <libm-alias-double.h>.
1187         (sin): Define using libm_alias_double.
1188         (cos): Likewise.
1189         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Include
1190         <libm-alias-double.h>.
1191         (tan): Define using libm_alias_double.
1192         * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Include
1193         <libm-alias-double.h>.
1194         (trunc): Define using libm_alias_double.
1195         * sysdeps/x86_64/fpu/s_copysign.S: Include <libm-alias-double.h>.
1196         (copysign): Define using libm_alias_double.
1197         * sysdeps/x86_64/fpu/s_fabs.c: Include <libm-alias-double.h>.
1198         (fabs): Define using libm_alias_double.
1199         * sysdeps/x86_64/fpu/s_fmax.S: Include <libm-alias-double.h>.
1200         (fmax): Define using libm_alias_double.
1201         * sysdeps/x86_64/fpu/s_fmin.S: Include <libm-alias-double.h>.
1202         (fmin): Define using libm_alias_double.
1203         * sysdeps/x86_64/fpu/s_llrint.S: Include <libm-alias-double.h>.
1204         (llrint): Define using libm_alias_double.
1205         [!__ILP32__] (lrint): Likewise.
1206         * sysdeps/x86_64/x32/fpu/s_lrint.S: Include <libm-alias-double.h>.
1207         (lrint): Define using libm_alias_double.
1209 2017-11-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1211         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
1212         (libm-sysdep_routines): Add s_rintf-generic and s_rint-generic
1213         objects.
1214         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-generic.S: New file.
1215         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Likewise.
1216         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-generic.S: Likewise.
1217         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Likewise.
1218         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Remove file.
1219         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
1221         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
1222         (libm-sysdep_routines): Add s_lrint-generic and s_lrintf-generic
1223         objects.
1224         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-generic.S: New file.
1225         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.c: Likewise.
1226         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-generic.S: Likewise.
1227         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.c: Likewise.
1228         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Remove file.
1229         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
1231         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
1232         (libm-sysdep_routines): Add s_nearbyint-generic and
1233         s_nearbyintf-generic objects.
1234         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint-generic.S: New file.
1235         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.c: Likewise.
1236         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf-generic.S: Likewise.
1237         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.c: Likewise.
1238         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.S: Remove file.
1239         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.S: Likewise.
1241         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
1242         Add s_finitef-generic and s_finite-generic objects.
1243         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-generic.S: New file.
1244         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.c: Likewise.
1245         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-generic.S: Likewise.
1246         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.c: Likewise.
1247         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Remove file.
1248         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Remove file.
1250         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
1251         Add s_isinff-generic and s_isinf-generic objects.
1252         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-generic.S: New file.
1253         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.c: Likewise.
1254         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-generic.S: Likewise.
1255         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.c: Likewise.
1256         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Remove file.
1257         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
1259         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
1260         Add s_isnanf-generic and s_isnan-generic objects.
1261         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-generic.S: New file.
1262         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-generic.S: Likewise.
1263         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.c: Likewise.
1264         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.c: Likewise.
1265         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Remove file.
1266         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
1268         * sysdeps/sparc/sparc-ifunc.h (sparc_libm_ifunc_redirected): New
1269         macro.
1270         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdep_calls): New
1271         rule.
1272         (sysdep_routines): Use sysdep_calls as base.
1273         (libm-sysdep_routines): Add generic rule for symbols shared with
1274         libc.  Add s_signbit-generic and s_signbitf-generic objects.
1275         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.c: New file.
1276         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.c: Likewise.
1277         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-generic.S: Likewise.
1278         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-generic.S: Likewise.
1279         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Remove file.
1280         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
1282 2017-11-29  Joseph Myers  <joseph@codesourcery.com>
1284         * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-float.h>.
1285         * sysdeps/ia64/fpu/e_acosf.S (acosf): Use libm_alias_float_other.
1286         * sysdeps/ia64/fpu/e_acoshf.S (acoshf): Likewise.
1287         * sysdeps/ia64/fpu/e_asinf.S (asinf): Likewise.
1288         * sysdeps/ia64/fpu/e_atan2f.S (atan2f): Likewise.
1289         * sysdeps/ia64/fpu/e_atanhf.S (atanhf): Likewise.
1290         * sysdeps/ia64/fpu/e_coshf.S (coshf): Likewise.
1291         * sysdeps/ia64/fpu/e_exp10f.S (exp10f): Likewise.
1292         * sysdeps/ia64/fpu/e_exp2f.S (exp2f): Likewise.
1293         * sysdeps/ia64/fpu/e_expf.S (expf): Likewise.
1294         * sysdeps/ia64/fpu/e_fmodf.S (fmodf): Likewise.
1295         * sysdeps/ia64/fpu/e_hypotf.S (hypotf): Likewise.
1296         * sysdeps/ia64/fpu/e_lgammaf_r.c (lgammaf_r): Define using
1297         libm_alias_float_r.
1298         * sysdeps/ia64/fpu/e_log2f.S (log2f): Use libm_alias_float_other.
1299         * sysdeps/ia64/fpu/e_logf.S (log10f): Likewise.
1300         (logf): Likewise.
1301         * sysdeps/ia64/fpu/e_powf.S (powf): Likewise.
1302         * sysdeps/ia64/fpu/e_remainderf.S (remainderf): Likewise.
1303         * sysdeps/ia64/fpu/e_sinhf.S (sinhf): Likewise.
1304         * sysdeps/ia64/fpu/e_sqrtf.S (sqrtf): Likewise.
1305         * sysdeps/ia64/fpu/libm_sincosf.S (sincosf): Likewise.
1306         * sysdeps/ia64/fpu/s_asinhf.S (asinhf): Likewise.
1307         * sysdeps/ia64/fpu/s_atanf.S (atanf): Likewise.
1308         * sysdeps/ia64/fpu/s_cbrtf.S (cbrtf): Likewise.
1309         * sysdeps/ia64/fpu/s_ceilf.S (ceilf): Likewise.
1310         * sysdeps/ia64/fpu/s_copysign.S (copysignf): Define using
1311         libm_alias_float.
1312         * sysdeps/ia64/fpu/s_cosf.S (sinf): Use libm_alias_float_other.
1313         (cosf): Likewise.
1314         * sysdeps/ia64/fpu/s_erfcf.S (erfcf): Likewise.
1315         * sysdeps/ia64/fpu/s_erff.S (erff): Likewise.
1316         * sysdeps/ia64/fpu/s_expm1f.S (expm1f): Likewise.
1317         * sysdeps/ia64/fpu/s_fabsf.S (fabsf): Likewise.
1318         * sysdeps/ia64/fpu/s_fdimf.S (fdimf): Likewise.
1319         * sysdeps/ia64/fpu/s_floorf.S (floorf): Likewise.
1320         * sysdeps/ia64/fpu/s_fmaf.S (fmaf): Likewise.
1321         * sysdeps/ia64/fpu/s_fmaxf.S (fmaxf): Likewise.
1322         * sysdeps/ia64/fpu/s_frexpf.c (frexpf): Likewise.
1323         * sysdeps/ia64/fpu/s_ldexpf.c (ldexpf): Likewise.
1324         * sysdeps/ia64/fpu/s_log1pf.S (log1pf): Likewise.
1325         * sysdeps/ia64/fpu/s_logbf.S (logbf): Likewise.
1326         * sysdeps/ia64/fpu/s_modff.S (modff): Likewise.
1327         * sysdeps/ia64/fpu/s_nearbyintf.S (nearbyintf): Likewise.
1328         * sysdeps/ia64/fpu/s_nextafterf.S (nextafterf): Likewise.
1329         * sysdeps/ia64/fpu/s_rintf.S (rintf): Likewise.
1330         * sysdeps/ia64/fpu/s_roundf.S (roundf): Likewise.
1331         * sysdeps/ia64/fpu/s_scalblnf.c (scalblnf): Likewise.
1332         * sysdeps/ia64/fpu/s_scalbnf.c (scalbnf): Define using
1333         libm_alias_float.
1334         * sysdeps/ia64/fpu/s_tanf.S (tanf): Use libm_alias_float_other.
1335         * sysdeps/ia64/fpu/s_tanhf.S (tanhf): Likewise.
1336         * sysdeps/ia64/fpu/s_truncf.S (truncf): Likewise.
1337         * sysdeps/ia64/fpu/w_lgammaf_main.c
1338         [BUILD_LGAMMA && !USE_AS_COMPAT] (lgammaf): Likewise.
1339         * sysdeps/ia64/fpu/w_tgammaf_compat.S (tgammaf): Likewise.
1341 2017-11-28  Mike FABIAN  <mfabian@redhat.com>, Alexandre Oliva <aoliva@redhat.com>
1343         [BZ #17750]
1344         * Makefile: add fr_CA.UTF-8 to test-input and LOCALES.
1345         * localedata/fr_CA.UTF-8.in: New file with test data for backward
1346         accents sorting.
1347         * localedata/fr_FR.UTF-8.in: Fix test data for forward accents
1348         sorting.
1349         * localedata/locales/cs_CZ (LC_COLLATE): Remove “define DIACRIT_FORWARD”
1350         * localedata/locales/de_DE (LC_COLLATE): Likewise.
1351         * localedata/locales/hu_HU (LC_COLLATE): Likewise.
1352         * localedata/locales/lb_LU (LC_COLLATE): Likewise.
1353         * localedata/locales/yuw_PG (LC_COLLATE): Likewise.
1354         * localedata/locales/fr_CA (LC_COLLATE): Add “define DIACRIT_BACKWARD”
1355         * localedata/locales/iso14651_t1_common: Use “ifdef DIACRIT_FORWARD”
1356         instead of “ifdef DIACRIT_BACKWARD”.
1358 2017-11-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1360         * config.h.in (HAVE_AS_VIS3_SUPPORT): Remove check for VIS3 support.
1361         * sysdeps/sparc/configure.ac (HAVE_AS_VIS3_SUPPORT): Likewise.
1362         * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c: Likewise.
1363         * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.c: Likewise.
1364         * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: Likewise.
1365         * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: Likewise.
1366         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Likewise.
1367         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Likewise.
1368         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Likewise.
1369         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Likewise.
1370         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: Likewise.
1371         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: Likewise.
1372         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Likewise.
1373         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Likewise.
1374         * sysdeps/sparc/sparc-ifunc.h [!HAVE_AS_VIS3_SUPPORT]
1375         (SPARC_ASM_VIS3_IFUNC, SPARC_ASM_VIS3_VIS2_IFUNC): Remove macros.
1376         * sysdeps/sparc/sparc32/sparcv9/Makefile [$(have-as-vis3) != yes]
1377         (ASFLAGS.o, ASFLAGS-.os, ASFLAGS-.op, ASFLAGS-.oS): Remove rules.
1378         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
1379         ($(have-as-vis3) == yes): Remove conditional.
1380         * sysdeps/sparc/sparc64/Makefile (($(have-as-vis3) == yes)):
1381         Likewise.
1382         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-generic.c: New
1383         file.
1384         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-generic.c: New
1385         file.
1386         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-generic.c: New
1387         file.
1388         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-generic.c: New
1389         file.
1390         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-generic.c: New file.
1391         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-generic.c: New file.
1392         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-generic.c: New file.
1393         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-generic.c: New file.
1394         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-generic.c: New file.
1395         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-generic.c: New file.
1396         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-generic.c: New file.
1397         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-generic.c: New file.
1399 2017-11-29  Joseph Myers  <joseph@codesourcery.com>
1401         * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-double.h>.
1402         * sysdeps/ia64/fpu/e_acos.S (acos): Use libm_alias_double_other.
1403         * sysdeps/ia64/fpu/e_acosh.S (acosh): Likewise.
1404         * sysdeps/ia64/fpu/e_asin.S (asin): Likewise.
1405         * sysdeps/ia64/fpu/e_atan2.S (atan2): Likewise.
1406         * sysdeps/ia64/fpu/e_atanh.S (atanh): Likewise.
1407         * sysdeps/ia64/fpu/e_cosh.S (cosh): Likewise.
1408         * sysdeps/ia64/fpu/e_exp.S (exp): Likewise.
1409         * sysdeps/ia64/fpu/e_exp10.S (exp10): Likewise.
1410         * sysdeps/ia64/fpu/e_exp2.S (exp2): Likewise.
1411         * sysdeps/ia64/fpu/e_fmod.S (fmod): Likewise.
1412         * sysdeps/ia64/fpu/e_hypot.S (hypot): Likewise.
1413         * sysdeps/ia64/fpu/e_lgamma_r.c (lgamma_r): Define using
1414         libm_alias_double_r.
1415         * sysdeps/ia64/fpu/e_log.S (log10): Use libm_alias_double_other.
1416         (log): Likewise.
1417         * sysdeps/ia64/fpu/e_log2.S (log2): Likewise.
1418         * sysdeps/ia64/fpu/e_pow.S (pow): Likewise.
1419         * sysdeps/ia64/fpu/e_remainder.S (remainder): Likewise.
1420         * sysdeps/ia64/fpu/e_sinh.S (sinh): Likewise.
1421         * sysdeps/ia64/fpu/e_sqrt.S (sqrt): Likewise.
1422         * sysdeps/ia64/fpu/libm_sincos.S (sincos): Likewise.
1423         * sysdeps/ia64/fpu/s_asinh.S (asinh): Likewise.
1424         * sysdeps/ia64/fpu/s_atan.S (atan): Likewise.
1425         * sysdeps/ia64/fpu/s_cbrt.S (cbrt): Likewise.
1426         * sysdeps/ia64/fpu/s_ceil.S (ceil): Likewise.
1427         * sysdeps/ia64/fpu/s_copysign.S (copysign): Define using
1428         libm_alias_double.
1429         * sysdeps/ia64/fpu/s_cos.S (sin): Use libm_alias_double_other.
1430         (cos): Likewise.
1431         * sysdeps/ia64/fpu/s_erf.S (erf): Likewise.
1432         * sysdeps/ia64/fpu/s_erfc.S (erfc): Likewise.
1433         * sysdeps/ia64/fpu/s_expm1.S (expm1): Likewise.
1434         * sysdeps/ia64/fpu/s_fabs.S (fabs): Likewise.
1435         * sysdeps/ia64/fpu/s_fdim.S (fdim): Likewise.
1436         * sysdeps/ia64/fpu/s_floor.S (floor): Likewise.
1437         * sysdeps/ia64/fpu/s_fma.S (fma): Likewise.
1438         * sysdeps/ia64/fpu/s_fmax.S (fmax): Likewise.
1439         * sysdeps/ia64/fpu/s_frexp.c (frexp): Likewise.
1440         * sysdeps/ia64/fpu/s_ldexp.c (ldexp): Likewise.
1441         * sysdeps/ia64/fpu/s_log1p.S (log1p): Likewise.
1442         * sysdeps/ia64/fpu/s_logb.S (logb): Likewise.
1443         * sysdeps/ia64/fpu/s_modf.S (modf): Likewise.
1444         * sysdeps/ia64/fpu/s_nearbyint.S (nearbyint): Likewise.
1445         * sysdeps/ia64/fpu/s_nextafter.S (nextafter): Likewise.
1446         * sysdeps/ia64/fpu/s_rint.S (rint): Likewise.
1447         * sysdeps/ia64/fpu/s_round.S (round): Likewise.
1448         * sysdeps/ia64/fpu/s_scalbn.c (scalbn): Define using
1449         libm_alias_double.
1450         * sysdeps/ia64/fpu/s_tan.S (tan): Use libm_alias_double_other.
1451         * sysdeps/ia64/fpu/s_tanh.S (tanh): Likewise.
1452         * sysdeps/ia64/fpu/s_trunc.S (trunc): Likewise.
1453         * sysdeps/ia64/fpu/w_lgamma_main.c
1454         [BUILD_LGAMMA && !USE_AS_COMPAT] (lgamma): Likewise.
1455         * sysdeps/ia64/fpu/w_tgamma_compat.S (tgamma): Likewise.
1457 2017-11-28  John David Anglin  <danglin@gcc.gnu.org>
1459         * sysdeps/hppa/start.S (_start): Check PIC instead of SHARED.  Load
1460         address of $global$ into %dp register earlier.  Use pc-relative
1461         instruction sequence for PIC case.
1463 2017-11-28  Joseph Myers  <joseph@codesourcery.com>
1465         * sysdeps/i386/fpu/s_asinhf.S: Include <libm-alias-float.h>.
1466         (asinhf): Define using libm_alias_float.
1467         * sysdeps/i386/fpu/s_atanf.S: Include <libm-alias-float.h>.
1468         (atanf): Define using libm_alias_float.
1469         * sysdeps/i386/fpu/s_cbrtf.S: Include <libm-alias-float.h>.
1470         (cbrtf): Define using libm_alias_float.
1471         * sysdeps/i386/fpu/s_ceilf.S: Include <libm-alias-float.h>.
1472         (ceilf): Define using libm_alias_float.
1473         * sysdeps/i386/fpu/s_copysignf.S: Include <libm-alias-float.h>.
1474         (copysignf): Define using libm_alias_float.
1475         * sysdeps/i386/fpu/s_expm1f.S: Include <libm-alias-float.h>.
1476         (expm1f): Define using libm_alias_float.
1477         * sysdeps/i386/fpu/s_fabsf.S: Include <libm-alias-float.h>.
1478         (fabsf): Define using libm_alias_float.
1479         * sysdeps/i386/fpu/s_floorf.S: Include <libm-alias-float.h>.
1480         (floorf): Define using libm_alias_float.
1481         * sysdeps/i386/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
1482         (fmaxf): Define using libm_alias_float.
1483         * sysdeps/i386/fpu/s_fminf.S: Include <libm-alias-float.h>.
1484         (fminf): Define using libm_alias_float.
1485         * sysdeps/i386/fpu/s_frexpf.S: Include <libm-alias-float.h>.
1486         (frexpf): Define using libm_alias_float.
1487         * sysdeps/i386/fpu/s_llrintf.S: Include <libm-alias-float.h>.
1488         (llrintf): Define using libm_alias_float.
1489         * sysdeps/i386/fpu/s_logbf.S: Include <libm-alias-float.h>.
1490         (logbf): Define using libm_alias_float.
1491         * sysdeps/i386/fpu/s_lrintf.S: Include <libm-alias-float.h>.
1492         (lrintf): Define using libm_alias_float.
1493         * sysdeps/i386/fpu/s_nearbyintf.S: Include <libm-alias-float.h>.
1494         (nearbyintf): Define using libm_alias_float.
1495         * sysdeps/i386/fpu/s_remquof.S: Include <libm-alias-float.h>.
1496         (remquof): Define using libm_alias_float.
1497         * sysdeps/i386/fpu/s_rintf.S: Include <libm-alias-float.h>.
1498         (rintf): Define using libm_alias_float.
1499         * sysdeps/i386/fpu/s_truncf.S: Include <libm-alias-float.h>.
1500         (truncf): Define using libm_alias_float.
1501         * sysdeps/i386/i686/fpu/multiarch/e_exp2f.c: Include
1502         <libm-alias-float.h>.
1503         (exp2f): Define using libm_alias_float, or libm_alias_float_other
1504         if [SHARED].
1505         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Include
1506         <libm-alias-float.h>.
1507         (expf): Define using libm_alias_float, or libm_alias_float_other
1508         if [SHARED].
1509         * sysdeps/i386/i686/fpu/multiarch/e_log2f.c: Include
1510         <libm-alias-float.h>.
1511         (log2f): Define using libm_alias_float, or libm_alias_float_other
1512         if [SHARED].
1513         * sysdeps/i386/i686/fpu/multiarch/e_logf.c: Include
1514         <libm-alias-float.h>.
1515         (logf): Define using libm_alias_float, or libm_alias_float_other
1516         if [SHARED].
1517         * sysdeps/i386/i686/fpu/multiarch/e_powf.c: Include
1518         <libm-alias-float.h>.
1519         (powf): Define using libm_alias_float, or libm_alias_float_other
1520         if [SHARED].
1521         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Include
1522         <libm-alias-float.h>.
1523         (cosf): Define using libm_alias_float.
1524         * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: Include
1525         <libm-alias-float.h>.
1526         (sincosf): Define using libm_alias_float.
1527         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: Include
1528         <libm-alias-float.h>.
1529         (sinf): Define using libm_alias_float.
1530         * sysdeps/i386/i686/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
1531         (fmaxf): Define using libm_alias_float.
1532         * sysdeps/i386/i686/fpu/s_fminf.S: Include <libm-alias-float.h>.
1533         (fminf): Define using libm_alias_float.
1534         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
1535         <libm-alias-float.h>.
1536         (fmaf): Define using libm_alias_float.
1538         * sysdeps/i386/fpu/s_asinh.S: Include <libm-alias-double.h>.
1539         (asinh): Define using libm_alias_double.
1540         * sysdeps/i386/fpu/s_atan.S: Include <libm-alias-double.h>.
1541         (atan): Define using libm_alias_double.
1542         * sysdeps/i386/fpu/s_cbrt.S: Include <libm-alias-double.h>.
1543         (cbrt): Define using libm_alias_double.
1544         * sysdeps/i386/fpu/s_ceil.S: Include <libm-alias-double.h>.
1545         (ceil): Define using libm_alias_double.
1546         * sysdeps/i386/fpu/s_copysign.S: Include <libm-alias-double.h>.
1547         (copysign): Define using libm_alias_double.
1548         * sysdeps/i386/fpu/s_expm1.S: Include <libm-alias-double.h>.
1549         (expm1): Define using libm_alias_double.
1550         * sysdeps/i386/fpu/s_fabs.S: Include <libm-alias-double.h>.
1551         (fabs): Define using libm_alias_double.
1552         * sysdeps/i386/fpu/s_fdim.c: Include <libm-alias-double.h>.
1553         (fdim): Define using libm_alias_double.
1554         * sysdeps/i386/fpu/s_floor.S: Include <libm-alias-double.h>.
1555         (floor): Define using libm_alias_double.
1556         * sysdeps/i386/fpu/s_fmax.S: Include <libm-alias-double.h>.
1557         (fmax): Define using libm_alias_double.
1558         * sysdeps/i386/fpu/s_fmin.S: Include <libm-alias-double.h>.
1559         (fmin): Define using libm_alias_double.
1560         * sysdeps/i386/fpu/s_frexp.S: Include <libm-alias-double.h>.
1561         (frexp): Define using libm_alias_double.
1562         * sysdeps/i386/fpu/s_llrint.S: Include <libm-alias-double.h>.
1563         (llrint): Define using libm_alias_double.
1564         * sysdeps/i386/fpu/s_logb.S: Include <libm-alias-double.h>.
1565         (logb): Define using libm_alias_double.
1566         * sysdeps/i386/fpu/s_lrint.S: Include <libm-alias-double.h>.
1567         (lrint): Define using libm_alias_double.
1568         * sysdeps/i386/fpu/s_nearbyint.S: Include <libm-alias-double.h>.
1569         (nearbyint): Define using libm_alias_double.
1570         * sysdeps/i386/fpu/s_remquo.S: Include <libm-alias-double.h>.
1571         (remquo): Define using libm_alias_double.
1572         * sysdeps/i386/fpu/s_rint.S: Include <libm-alias-double.h>.
1573         (rint): Define using libm_alias_double.
1574         * sysdeps/i386/fpu/s_trunc.S: Include <libm-alias-double.h>.
1575         (trunc): Define using libm_alias_double.
1576         * sysdeps/i386/i686/fpu/s_fmax.S: Include <libm-alias-double.h>.
1577         (fmax): Define using libm_alias_double.
1578         * sysdeps/i386/i686/fpu/s_fmin.S: Include <libm-alias-double.h>.
1579         (fmin): Define using libm_alias_double.
1580         * sysdeps/i386/i686/multiarch/s_fma.c: Include <libm-alias-double.h>.
1581         (fma): Define using libm_alias_double.
1583 2017-11-28  H.J. Lu  <hongjiu.lu@intel.com>
1585         [BZ #22370]
1586         * elf/dl-hwcaps.c (ROUND): Removed.
1587         (_dl_important_hwcaps): Replace ROUND with ELF_NOTE_DESC_OFFSET
1588         and ELF_NOTE_NEXT_OFFSET.
1589         * elf/dl-load.c (ROUND): Removed.
1590         (open_verify): Replace ROUND with ELF_NOTE_NEXT_OFFSET.
1591         * elf/readelflib.c (ROUND): Removed.
1592         (process_elf_file): Replace ROUND with ELF_NOTE_NEXT_OFFSET.
1593         * include/elf.h [!_ISOMAC]: Include <libc-pointer-arith.h>.
1594         [!_ISOMAC] (ELF_NOTE_DESC_OFFSET): New.
1595         [!_ISOMAC] (ELF_NOTE_NEXT_OFFSET): Likewise.
1597 2017-11-28  Joseph Myers  <joseph@codesourcery.com>
1599         * sysdeps/s390/fpu/s_fmaf.c: Include <libm-alias-float.h>.
1600         [!__fmaf] (fmaf): Define using libm_alias_float.
1602         * sysdeps/s390/fpu/s_fma.c: Include <libm-alias-double.h>.
1603         [!__fma] (fma): Define using libm_alias_double.
1604         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: Remove.
1606 2017-11-28  Mike FABIAN  <mfabian@redhat.com>
1608         [BZ #22336]
1609         * localedata/locales/cs_CZ (LC_COLLATE): Use “copy "iso14651_t1"”
1610         and implement the collation rules for cs from CLDR on top of that.
1611         * Makefile: Add cs_CZ.UTF-8 to test-input.
1612         * cs_CZ.UTF-8.in: New file with test data to test the Czech sorting.
1614 2017-11-28  Siddhesh Poyarekar  <siddhesh@sourceware.org>
1616         * localedata/Makefile (LOCALES): Remove duplicate cs_CZ.UTF-8.
1618 2017-11-28  Victor Rodriguez  <victor.rodriguez.bahena@intel.com>
1619             Icarus Sparry  <icarus.w.sparry@intel.com>
1621         * benchtests/Makefile:Add BENCHSET to allow subsets of
1622         benchmarks to be run.
1623         * benchtests/README: Add documentation for: Running subsets of
1624         benchmarks.
1626 2017-11-28  Victor Rodriguez  <victor.rodriguez.bahena@intel.com>
1628         * benchtests/scripts/benchout.schema.json: Fix regex to accept a wider
1629         range of tests names.
1631         * benchtests/scripts/benchout.schema.json: Add throughput as accepted
1632         result from property and remove "max", min" and "mean" from
1633         required properties based on benchtests/bench-skeleton.c.
1635 2017-11-28  Florian Weimer  <fweimer@redhat.com>
1637         [BZ #20826]
1638         Turn posix/tst-getaddrinfo4, posix/tst-getaddrinfo5 into xtests
1639         due to Internet requirement.
1640         * posix/Makefile (tests): Remove tst-getaddrinfo4,
1641         tst-getaddrinfo5.
1642         (xtests): Add tst-getaddrinfo4, tst-getaddrinfo5.
1644 2017-11-28  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1646         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
1647         [$(subdir) = string] (sysdep_routines): Add memset-ultra1.
1648         * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = string]
1649         (sysdep_routines): Add memset-ultra1.
1650         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-ultra1.S: New
1651         file.
1652         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset.c: Likewise.
1653         * sysdeps/sparc/sparc32/sparcv9/multiarch/bzero.c: Likewise.
1654         * sysdeps/sparc/sparc64/multiarch/ifunc-memset.h: Likewise.
1655         * sysdeps/sparc/sparc64/multiarch/memset-ultra1.S: Likewise.
1656         * sysdeps/sparc/sparc64/multiarch/memset.c: Likewise.
1657         * sysdeps/sparc/sparc64/multiarch/bzero.c: Likewise.
1658         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset.S: Remove file.
1659         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
1661         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-ultra1.S: New
1662         file.
1663         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy.c: Likewise.
1664         * sysdeps/sparc/sparc32/sparcv9/multiarch/mempcpy.c: Likewise.
1665         * sysdeps/sparc/sparc64/multiarch/ifunc-memcpy.h: Likewise.
1666         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra1.S: Likewise.
1667         * sysdeps/sparc/sparc64/multiarch/memcpy.c: Likewise.
1668         * sysdeps/sparc/sparc64/multiarch/mempcpy.c: Likewise.
1669         * sysdeps/sparc/sparc-ifunc.h (sparc_libc_ifunc_redirected): New
1670         macro.
1671         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
1672         [$(subdir) = string] (sysdep_routines): Add memcpy-ultra1.
1673         * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = string]
1674         (sysdep_routines): Add memcpy-ultra1.
1675         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Remove file.
1676         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy.S: Likewise.
1678 2017-11-28  Joseph Myers  <joseph@codesourcery.com>
1680         * sysdeps/alpha/fpu/cfloat-compat.h: Include <libm-alias-float.h>.
1681         (cfloat_versions): Take function argument without trailing 'f'.
1682         Call libm_alias_float_other.
1683         * sysdeps/alpha/fpu/cabsf.c: Update call to cfloat_versions.
1684         * sysdeps/alpha/fpu/cargf.c: Likewise.
1685         * sysdeps/alpha/fpu/cimagf.c: Likewise.
1686         * sysdeps/alpha/fpu/conjf.c: Likewise.
1687         * sysdeps/alpha/fpu/crealf.c: Likewise.
1688         * sysdeps/alpha/fpu/s_cacosf.c: Likewise.
1689         * sysdeps/alpha/fpu/s_cacoshf.c: Likewise.
1690         * sysdeps/alpha/fpu/s_casinf.c: Likewise.
1691         * sysdeps/alpha/fpu/s_casinhf.c: Likewise.
1692         * sysdeps/alpha/fpu/s_catanf.c: Likewise.
1693         * sysdeps/alpha/fpu/s_catanhf.c: Likewise.
1694         * sysdeps/alpha/fpu/s_ccosf.c: Likewise.
1695         * sysdeps/alpha/fpu/s_ccoshf.c: Likewise.
1696         * sysdeps/alpha/fpu/s_cexpf.c: Likewise.
1697         * sysdeps/alpha/fpu/s_clogf.c: Likewise.
1698         * sysdeps/alpha/fpu/s_cpowf.c: Likewise.
1699         * sysdeps/alpha/fpu/s_cprojf.c: Likewise.
1700         * sysdeps/alpha/fpu/s_csinf.c: Likewise.
1701         * sysdeps/alpha/fpu/s_csinhf.c: Likewise.
1702         * sysdeps/alpha/fpu/s_csqrtf.c: Likewise.
1703         * sysdeps/alpha/fpu/s_ctanf.c: Likewise.
1704         * sysdeps/alpha/fpu/s_ctanhf.c: Likewise.
1705         * sysdeps/alpha/fpu/s_clog10f.c: Include <libm-alias-float.h>.
1706         (clog10f): Use libm_alias_float_other.
1707         * sysdeps/alpha/fpu/s_ceilf.c: Include <libm-alias-float.h>.
1708         (ceilf): Define using libm_alias_float.
1709         * sysdeps/alpha/fpu/s_copysignf.c: Include <libm-alias-float.h>.
1710         (copysignf): Define using libm_alias_float.
1711         * sysdeps/alpha/fpu/s_fabsf.c: Include <libm-alias-float.h>.
1712         (fabsf): Define using libm_alias_float.
1713         * sysdeps/alpha/fpu/s_floorf.c: Include <libm-alias-float.h>.
1714         (floorf): Define using libm_alias_float.
1715         * sysdeps/alpha/fpu/s_fmax.S: Include <libm-alias-float.h>.
1716         (fmaxf): Define using libm_alias_float.
1717         * sysdeps/alpha/fpu/s_fmin.S: Include <libm-alias-float.h>.
1718         (fminf): Define using libm_alias_float.
1719         * sysdeps/alpha/fpu/s_lrintf.c: Include <libm-alias-float.h>.
1720         (lrintf): Define using libm_alias_float.
1721         (llrintf): Likewise.
1722         * sysdeps/alpha/fpu/s_lroundf.c: Include <libm-alias-float.h>.
1723         (lroundf): Define using libm_alias_float.
1724         (llroundf): Likewise.
1725         * sysdeps/alpha/fpu/s_rintf.c: Include <libm-alias-float.h>.
1726         (rintf): Define using libm_alias_float.
1727         * sysdeps/alpha/fpu/s_truncf.c: Include <libm-alias-float.h>.
1728         (truncf): Define using libm_alias_float.
1730         * sysdeps/aarch64/fpu/s_ceilf.c: Include <libm-alias-float.h>.
1731         (ceilf): Define using libm_alias_float.
1732         * sysdeps/aarch64/fpu/s_floorf.c: Include <libm-alias-float.h>.
1733         (floorf): Define using libm_alias_float.
1734         * sysdeps/aarch64/fpu/s_fmaf.c: Include <libm-alias-float.h>.
1735         (fmaf): Define using libm_alias_float.
1736         * sysdeps/aarch64/fpu/s_fmaxf.c: Include <libm-alias-float.h>.
1737         (fmaxf): Define using libm_alias_float.
1738         * sysdeps/aarch64/fpu/s_fminf.c: Include <libm-alias-float.h>.
1739         (fminf): Define using libm_alias_float.
1740         * sysdeps/aarch64/fpu/s_llrintf.c: Include <libm-alias-float.h>.
1741         (llrintf): Define using libm_alias_float.
1742         * sysdeps/aarch64/fpu/s_llroundf.c: Include <libm-alias-float.h>.
1743         (llroundf): Define using libm_alias_float.
1744         * sysdeps/aarch64/fpu/s_lrintf.c: Include <libm-alias-float.h>.
1745         (lrintf): Define using libm_alias_float.
1746         * sysdeps/aarch64/fpu/s_lroundf.c: Include <libm-alias-float.h>.
1747         (lroundf): Define using libm_alias_float.
1748         * sysdeps/aarch64/fpu/s_nearbyintf.c: Include
1749         <libm-alias-float.h>.
1750         (nearbyintf): Define using libm_alias_float.
1751         * sysdeps/aarch64/fpu/s_rintf.c: Include <libm-alias-float.h>.
1752         (rintf): Define using libm_alias_float.
1753         * sysdeps/aarch64/fpu/s_roundf.c: Include <libm-alias-float.h>.
1754         (roundf): Define using libm_alias_float.
1755         * sysdeps/aarch64/fpu/s_truncf.c: Include <libm-alias-float.h>.
1756         (truncf): Define using libm_alias_float.
1758         * sysdeps/alpha/fpu/s_ceil.c: Include <libm-alias-double.h>.
1759         (ceil): Define using libm_alias_double.
1760         * sysdeps/alpha/fpu/s_copysign.c: Include <libm-alias-double.h>.
1761         (copysign): Define using libm_alias_double.
1762         * sysdeps/alpha/fpu/s_fabs.c: Include <libm-alias-double.h>.
1763         (fabs): Define using libm_alias_double.
1764         * sysdeps/alpha/fpu/s_floor.c: Include <libm-alias-double.h>.
1765         (floor): Define using libm_alias_double.
1766         * sysdeps/alpha/fpu/s_fmax.S: Include <libm-alias-double.h>.
1767         (fmax): Define using libm_alias_double.
1768         * sysdeps/alpha/fpu/s_fmin.S: Include <libm-alias-double.h>.
1769         (fmin): Define using libm_alias_double.
1770         * sysdeps/alpha/fpu/s_lrint.c: Include <libm-alias-double.h>.
1771         (lrint): Define using libm_alias_double.
1772         (llrint): Likewise.
1773         * sysdeps/alpha/fpu/s_lround.c: Include <libm-alias-double.h>.
1774         (lround): Define using libm_alias_double.
1775         (llround): Likewise.
1776         * sysdeps/alpha/fpu/s_rint.c: Include <libm-alias-double.h>.
1777         (rint): Define using libm_alias_double.
1778         * sysdeps/alpha/fpu/s_trunc.c: Include <libm-alias-double.h>.
1779         (trunc): Define using libm_alias_double.
1781         * sysdeps/ieee754/ldbl-opt/libm-alias-double.h
1782         (libm_alias_double_r): Add semicolon after weak_alias call.
1784 2017-11-27  Joseph Myers  <joseph@codesourcery.com>
1786         * sysdeps/aarch64/fpu/s_ceil.c: Include <libm-alias-double.h>.
1787         (ceil): Define using libm_alias_double.
1788         * sysdeps/aarch64/fpu/s_floor.c: Include <libm-alias-double.h>.
1789         (floor): Define using libm_alias_double.
1790         * sysdeps/aarch64/fpu/s_fma.c: Include <libm-alias-double.h>.
1791         (fma): Define using libm_alias_double.
1792         * sysdeps/aarch64/fpu/s_fmax.c: Include <libm-alias-double.h>.
1793         (fmax): Define using libm_alias_double.
1794         * sysdeps/aarch64/fpu/s_fmin.c: Include <libm-alias-double.h>.
1795         (fmin): Define using libm_alias_double.
1796         * sysdeps/aarch64/fpu/s_llrint.c: Include <libm-alias-double.h>.
1797         (llrint): Define using libm_alias_double.
1798         * sysdeps/aarch64/fpu/s_llround.c: Include <libm-alias-double.h>.
1799         (llround): Define using libm_alias_double.
1800         * sysdeps/aarch64/fpu/s_lrint.c: Include <libm-alias-double.h>.
1801         (lrint): Define using libm_alias_double.
1802         * sysdeps/aarch64/fpu/s_lround.c: Include <libm-alias-double.h>.
1803         (lround): Define using libm_alias_double.
1804         * sysdeps/aarch64/fpu/s_nearbyint.c: Include <libm-alias-double.h>.
1805         (nearbyint): Define using libm_alias_double.
1806         * sysdeps/aarch64/fpu/s_rint.c: Include <libm-alias-double.h>.
1807         (rint): Define using libm_alias_double.
1808         * sysdeps/aarch64/fpu/s_round.c: Include <libm-alias-double.h>.
1809         (round): Define using libm_alias_double.
1810         * sysdeps/aarch64/fpu/s_trunc.c: Include <libm-alias-double.h>.
1811         (trunc): Define using libm_alias_double.
1813 2017-11-27  Florian Weimer  <fweimer@redhat.com>
1815         * sysdeps/unix/sysv/linux/mlock2.c: New file.
1816         * sysdeps/unix/sysv/linux/tst-mlock2.c: Likewise.
1817         * sysdeps/unix/sysv/linux/Makefile (routines): Add mlock2.
1818         (tests): Add tst-mlock2.
1819         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Export mlock2.
1820         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_MLOCK2)
1821         [__LINUX_KERNEL_VERSION >= 4.4]: Define.
1822         * sysdeps/unix/sysv/linux/libc**.abilist: Update.
1823         * manual/memory.texi (Page Lock Functions): Move @end deftypefun
1824         for mlock.  Document mlock2.
1826 2017-11-27  Joseph Myers  <joseph@codesourcery.com>
1828         * sysdeps/ia64/Makeconfig (float64x-alias-fcts): New variable.
1829         * sysdeps/ieee754/float128/Makeconfig (float64x-alias-fcts):
1830         Likewise.
1831         * sysdeps/ieee754/ldbl-128/Makeconfig (float64x-alias-fcts):
1832         Likewise.
1833         * sysdeps/x86/Makeconfig: New file.
1834         * bits/floatn-common.h (__HAVE_FLOAT64X): Remove macro.
1835         (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
1836         * bits/floatn.h (__HAVE_FLOAT64X): New macro.
1837         (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
1838         * sysdeps/ia64/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
1839         (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
1840         * sysdeps/ieee754/ldbl-128/bits/floatn.h (__HAVE_FLOAT64X):
1841         Likewise.
1842         (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
1843         * sysdeps/mips/ieee754/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
1844         (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
1845         * sysdeps/powerpc/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
1846         (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
1847         * sysdeps/x86/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
1848         (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
1849         * manual/math.texi (Mathematics): Document support for _Float64x.
1850         * math/Versions (GLIBC_2.27): Add _Float64x functions.
1851         * stdlib/Versions (GLIBC_2.27): Likewise.
1852         * wcsmbs/Versions (GLIBC_2.27): Likewise.
1853         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
1854         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
1855         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
1856         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
1857         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
1858         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
1859         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
1860         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
1861         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
1862         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
1863         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
1864         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
1865         Likewise.
1866         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
1867         Likewise.
1868         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
1869         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
1870         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
1871         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
1872         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
1873         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
1874         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
1875         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
1876         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
1877         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
1878         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
1879         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
1880         * sysdeps/i386/fpu/libm-test-ulps: Likewise.
1881         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
1883 2017-11-27  Andreas Schwab  <schwab@suse.de>
1885         * elf/Makefile (dl-routines): Add dl-sort-maps.
1886         * elf/dl-sort-maps.c: New file.
1887         * sysdeps/generic/ldsodefs.h (_dl_sort_fini): Don't declare.
1888         (_dl_sort_maps): Declare.
1889         * elf/dl-fini.c (_dl_sort_fini): Remove.
1890         (_dl_fini): Use _dl_sort_maps instead of _dl_sort_fini.
1891         * elf/dl-close.c (_dl_close_worker): Likewise.
1892         * elf/dl-deps.c (_dl_map_object_deps): Use _dl_sort_maps instead of
1893         open-coding it.
1894         * elf/dl-open.c (dl_open_worker): Likewise.
1896 2017-11-24  Joseph Myers  <joseph@codesourcery.com>
1898         * sysdeps/ieee754/float128/s_fromfpf128.c (fromfpf128): Define
1899         using libm_alias_float128.
1900         * sysdeps/ieee754/float128/s_fromfpxf128.c (fromfpxf128):
1901         Likewise.
1902         * sysdeps/ieee754/float128/s_setpayloadf128.c (setpayloadf128):
1903         Likewise.
1904         * sysdeps/ieee754/float128/s_setpayloadsigf128.c
1905         (setpayloadsigf128): Likewise.
1906         * sysdeps/ieee754/float128/s_ufromfpf128.c (ufromfpf128):
1907         Likewise.
1908         * sysdeps/ieee754/float128/s_ufromfpxf128.c (ufromfpxf128):
1909         Likewise.
1911         * sysdeps/powerpc/powerpc64le/Makefile ($(foreach
1912         suf,$(all-object-suffixes),$(objpfx)test-float64x%$(suf))): Add
1913         -mfloat128 to CFLAGS.
1914         ($(foreach
1915         suf,$(all-object-suffixes),$(objpfx)test-ifloat64x%$(suf))):
1916         Likewise.
1917         (CFLAGS-libm-test-support-float64x.c): New variable.
1918         ($(objpfx)test-float64x% $(objpfx)test-ifloat64x%): Add
1919         $(f128-loader-link) to gnulib-tests.
1921         * sysdeps/generic/libm-alias-float128.h: Include <bits/floatn.h>.
1922         (libm_alias_float128_other_r): If
1923         [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE], define f64x
1924         alias.
1925         (libm_alias_float128_r): Add semicolon after weak_alias call.
1926         * sysdeps/generic/libm-alias-ldouble.h
1927         (libm_alias_ldouble_other_r_f128): New macro.
1928         (libm_alias_ldouble_other_r_f64x): Likewise.
1929         (libm_alias_ldouble_other_r): Use libm_alias_ldouble_other_r_f128
1930         and libm_alias_ldouble_other_r_f64x.
1931         (libm_alias_ldouble_r): Add semicolon after weak_alias call.
1932         * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h
1933         (libm_alias_ldouble_other_r_f128): New macro.
1934         (libm_alias_ldouble_other_r_f64x): Likewise.
1935         (libm_alias_ldouble_other_r): Use libm_alias_ldouble_other_r_f128
1936         and libm_alias_ldouble_other_r_f64x.
1938         * stdlib/strfroml.c: Always include <stdlib.h>.
1939         [__HAVE_FLOAT64X_LONG_DOUBLE] (strfromf64x): Define and later
1940         undefine as macro and define as weak alias.
1941         * sysdeps/ieee754/float128/strfromf128.c: Include <bits/floatn.h>.
1942         [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE]: Include
1943         <stdlib.h>.
1944         [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strfromf64x):
1945         Define and later undefine as macro and define as weak alias.
1947         * stdlib/strtold.c [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x):
1948         Define and later undefine as macro.  Define as weak alias if
1949         [!USE_WIDE_CHAR].
1950         [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x): Define and later
1951         undefine as macro.  Define as weak alias if [USE_WIDE_CHAR].
1952         * sysdeps/ieee754/float128/strtof128.c: Include <bits/floatn.h>.
1953         [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x):
1954         Define and later undefine as macro.  Define as weak alias if
1955         [!USE_WIDE_CHAR].
1956         [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x):
1957         Define and later undefine as macro.  Define as weak alias if
1958         [USE_WIDE_CHAR].
1959         * sysdeps/ieee754/float128/strtof128_l.c
1960         [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l):
1961         Define and later undefine as macro.  Define as weak alias if
1962         [!USE_WIDE_CHAR].
1963         [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l):
1964         Define and later undefine as macro.  Define as weak alias if
1965         [USE_WIDE_CHAR].
1966         * sysdeps/ieee754/ldbl-128/strtold_l.c
1967         [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
1968         undefine as macro.  Define as weak alias if [!USE_WIDE_CHAR].
1969         [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
1970         undefine as macro.  Define as weak alias if [USE_WIDE_CHAR].
1971         * sysdeps/ieee754/ldbl-64-128/strtold_l.c
1972         [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
1973         undefine as macro.  Define as weak alias if [!USE_WIDE_CHAR].
1974         [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
1975         undefine as macro.  Define as weak alias if [USE_WIDE_CHAR].
1976         * sysdeps/ieee754/ldbl-96/strtold_l.c
1977         [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
1978         undefine as macro.  Define as weak alias if [!USE_WIDE_CHAR].
1979         [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
1980         undefine as macro.  Define as weak alias if [USE_WIDE_CHAR].
1982         * math/test-float64x.h: New file.
1983         * math/Makefile (type-float64x-yes): New variable.
1984         (test-types): Add $(type-float64x-$(float64x-alias-fcts)).
1986         * sysdeps/generic/math_private.h (min_of_type_f): Make into a
1987         function-like macro.
1988         (min_of_type_): Likewise.
1989         (min_of_type_l): Likewise.
1990         (min_of_type_f128): Likewise.
1991         (min_of_type): Pass () as last argument of __MATH_TG.
1993         * stdlib/tst-strtod-round-skeleton.c
1994         (__STDC_WANT_IEC_60559_TYPES_EXT__): Define before including
1995         headers.
1997         * math/gen-tgmath-tests.py (Type.init_types): Pass suffix argument
1998         for combinations of long double with _Float64 and _Float64x.
2000         * bits/libm-simd-decl-stubs.h (__DECL_SIMD_cosf16): New macro.
2001         (__DECL_SIMD_cosf32): Likewise.
2002         (__DECL_SIMD_cosf64): Likewise.
2003         (__DECL_SIMD_cosf32x): Likewise.
2004         (__DECL_SIMD_cosf64x): Likewise.
2005         (__DECL_SIMD_cosf128x): Likewise.
2006         (__DECL_SIMD_sinf16): Likewise.
2007         (__DECL_SIMD_sinf32): Likewise.
2008         (__DECL_SIMD_sinf64): Likewise.
2009         (__DECL_SIMD_sinf32x): Likewise.
2010         (__DECL_SIMD_sinf64x): Likewise.
2011         (__DECL_SIMD_sinf128x): Likewise.
2012         (__DECL_SIMD_sincosf16): Likewise.
2013         (__DECL_SIMD_sincosf32): Likewise.
2014         (__DECL_SIMD_sincosf64): Likewise.
2015         (__DECL_SIMD_sincosf32x): Likewise.
2016         (__DECL_SIMD_sincosf64x): Likewise.
2017         (__DECL_SIMD_sincosf128x): Likewise.
2018         (__DECL_SIMD_logf16): Likewise.
2019         (__DECL_SIMD_logf32): Likewise.
2020         (__DECL_SIMD_logf64): Likewise.
2021         (__DECL_SIMD_logf32x): Likewise.
2022         (__DECL_SIMD_logf64x): Likewise.
2023         (__DECL_SIMD_logf128x): Likewise.
2024         (__DECL_SIMD_expf16): Likewise.
2025         (__DECL_SIMD_expf32): Likewise.
2026         (__DECL_SIMD_expf64): Likewise.
2027         (__DECL_SIMD_expf32x): Likewise.
2028         (__DECL_SIMD_expf64x): Likewise.
2029         (__DECL_SIMD_expf128x): Likewise.
2030         (__DECL_SIMD_powf16): Likewise.
2031         (__DECL_SIMD_powf32): Likewise.
2032         (__DECL_SIMD_powf64): Likewise.
2033         (__DECL_SIMD_powf32x): Likewise.
2034         (__DECL_SIMD_powf64x): Likewise.
2035         (__DECL_SIMD_powf128x): Likewise.
2037         * stdlib/Versions (libc): Move entries for wcstof128 and
2038         wcstof128_l to ....
2039         * wcsmbs/Versions (libc): ... here.
2040         Include <float128-abi.h>.
2042 2017-11-24  Florian Weimer  <fweimer@redhat.com>
2044         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
2045         bits/mman-shared.h.
2046         * sysdeps/unix/sysv/linux/bits/mman-linux.h: Include
2047         <bits/mman-shared.h>.
2048         (MFD_CLOEXEC, MFD_ALLOW_SEALING, MFD_HUGETLB, memfd_create): Move
2049         to ...
2050         * sysdeps/unix/sysv/linux/bits/mman-shared.h: ... this new file.
2051         Add #ifndef guard for the MFD_* constants based on MFD_CLOEXEC.
2052         * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Include
2053         <bits/mman-shared.h>.
2055 2017-11-24  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2057         [BZ #22457]
2058         * sysdeps/posix/preadv_common.c (PREADV): Use mmap/munmap instead of
2059         posix_memalign/free.
2060         * sysdeps/posix/pwritev_common.c (PWRITEV): Likewise.
2062 2017-11-22  Mike FABIAN  <mfabian@redhat.com>
2064         [BZ #22469]
2065         * localedata/locales/pl_PL (LC_COLLATE): Use “copy "iso14651_t1"”
2066         and implement the collation rules for pl from CLDR on top of that.
2067         * Makefile: Add pl_PL.UTF-8 to test-input and to the list
2068         of locales to be built for testing.
2069         * pl_PL.UTF-8.in: New file with test data to test the Polish sorting.
2071 2017-11-23  Joseph Myers  <joseph@codesourcery.com>
2073         * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-ldouble.h>.
2074         * sysdeps/ia64/fpu/e_acoshl.S (acoshl): Use
2075         libm_alias_ldouble_other.
2076         * sysdeps/ia64/fpu/e_acosl.S (acosl): Likewise.
2077         * sysdeps/ia64/fpu/e_asinl.S (asinl): Likewise.
2078         * sysdeps/ia64/fpu/e_atanhl.S (atanhl): Likewise.
2079         * sysdeps/ia64/fpu/e_coshl.S (coshl): Likewise.
2080         * sysdeps/ia64/fpu/e_exp10l.S (exp10l): Likewise.
2081         * sysdeps/ia64/fpu/e_exp2l.S (exp2l): Likewise.
2082         * sysdeps/ia64/fpu/e_fmodl.S (fmodl): Likewise.
2083         * sysdeps/ia64/fpu/e_hypotl.S (hypotl): Likewise.
2084         * sysdeps/ia64/fpu/e_lgammal_r.c (lgammal_r): Define using
2085         libm_alias_ldouble_r.
2086         * sysdeps/ia64/fpu/e_log2l.S (log2l): Use
2087         libm_alias_ldouble_other.
2088         * sysdeps/ia64/fpu/e_logl.S (logl): Likewise.
2089         (log10l): Likewise.
2090         * sysdeps/ia64/fpu/e_powl.S (powl): Likewise.
2091         * sysdeps/ia64/fpu/e_remainderl.S (remainderl): Likewise.
2092         * sysdeps/ia64/fpu/e_sinhl.S (sinhl): Likewise.
2093         * sysdeps/ia64/fpu/e_sqrtl.S (sqrtl): Likewise.
2094         * sysdeps/ia64/fpu/libm_sincosl.S (sincosl): Likewise.
2095         * sysdeps/ia64/fpu/s_asinhl.S (asinhl): Likewise.
2096         * sysdeps/ia64/fpu/s_atanl.S (atanl): Likewise.
2097         (atan2l): Likewise.
2098         * sysdeps/ia64/fpu/s_cbrtl.S (cbrtl): Likewise.
2099         * sysdeps/ia64/fpu/s_ceill.S (ceill): Likewise.
2100         * sysdeps/ia64/fpu/s_copysign.S (copysignl): Define using
2101         libm_alias_ldouble.
2102         * sysdeps/ia64/fpu/s_cosl.S (sinl): Use libm_alias_ldouble_other.
2103         (cosl): Likewise.
2104         * sysdeps/ia64/fpu/s_erfcl.S (erfcl): Likewise.
2105         * sysdeps/ia64/fpu/s_erfl.S (erfl): Likewise.
2106         * sysdeps/ia64/fpu/s_expm1l.S (expm1l): Likewise.
2107         (expl): Likewise.
2108         * sysdeps/ia64/fpu/s_fabsl.S (fabsl): Likewise.
2109         * sysdeps/ia64/fpu/s_fdiml.S (fdiml): Likewise.
2110         * sysdeps/ia64/fpu/s_floorl.S (floorl): Likewise.
2111         * sysdeps/ia64/fpu/s_fmal.S (fmal): Likewise.
2112         * sysdeps/ia64/fpu/s_fmaxl.S (fmaxl): Likewise.
2113         * sysdeps/ia64/fpu/s_frexpl.c (frexpl): Likewise.
2114         * sysdeps/ia64/fpu/s_ldexpl.c (ldexpl): Likewise.
2115         * sysdeps/ia64/fpu/s_log1pl.S (log1pl): Likewise.
2116         * sysdeps/ia64/fpu/s_logbl.S (logbl): Likewise.
2117         * sysdeps/ia64/fpu/s_modfl.S (modfl): Likewise.
2118         * sysdeps/ia64/fpu/s_nearbyintl.S (nearbyintl): Define using
2119         libm_alias_ldouble.
2120         * sysdeps/ia64/fpu/s_nextafterl.S (nextafterl): Use
2121         libm_alias_ldouble_other.
2122         * sysdeps/ia64/fpu/s_rintl.S (rintl): Likewise.
2123         * sysdeps/ia64/fpu/s_roundl.S (roundl): Likewise.
2124         * sysdeps/ia64/fpu/s_scalbnl.c (scalbnl): Define using
2125         libm_alias_ldouble.
2126         * sysdeps/ia64/fpu/s_tanhl.S (tanhl): Use
2127         libm_alias_ldouble_other.
2128         * sysdeps/ia64/fpu/s_tanl.S (tanl): Likewise.
2129         * sysdeps/ia64/fpu/s_truncl.S (truncl): Likewise.
2130         * sysdeps/ia64/fpu/w_lgammal_main.c
2131         [BUILD_LGAMMA && !USE_AS_COMPAT] (lgammal): Likewise.
2132         * sysdeps/ia64/fpu/w_tgammal_compat.S (tgammal): Likewise.
2134 2017-11-23  Florian Weimer  <fweimer@redhat.com>
2136         * malloc/malloc.c (tcache_thread_shutdown): Rename from
2137         tcache_thread_freeres.  Define for USE_TCACHE and !USE_TCACHE
2138         alike.  Remove freeres marker.
2139         * malloc/arena.c (arena_thread_freeres): Call
2140         tcache_thread_shutdown.
2142 2017-11-23  Florian Weimer  <fweimer@redhat.com>
2144         [BZ #22459]
2145         Export nscd hash function as __nss_hash.
2146         * include/nss.h (__nss_hash): Declare.
2147         * nis/nis_hash.c (__nis_hash): Call __nss_hash.  Turn into compat
2148         symbol.
2149         * nscd/Makefile (aux, nscd-modules): Remove nscd_hash.
2150         * nscd/cache.c (cache_search, cache_add): Call __nss_hash instead
2151         of __nscd_hash.
2152         * nscd/nscd_helper.c (__nscd_cache_search): Likewise.
2153         * nscd/nscd_hash.h, nscd/nscd_hash.c: Remove files.
2154         * nss/Makefiles (routines): Add nss_hash.
2155         * nss/Versions (GLIBC_PRIVATE): Export __nss_hash.
2156         * nss/nss_hash.c: Rename from nis/nis_hash.c.
2157         (__nss_hash): Rename from __nis_hash.  Define hidden alias.
2158         * nis/rpcsvc/nislib.h (__nis_hash): Remove declaration.
2160 2017-11-23  Florian Weimer  <fweimer@redhat.com>
2162         [BZ #22478]
2163         * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Retry on EINTR.
2164         Return error code, not -1.
2165         * signal/tst-sigwait-eintr.c: New file.
2166         * signal/Makefile (tests): Add tst-sigwait-eintr.
2168 2017-11-23  Florian Weimer  <fweimer@redhat.com>
2170         Linux: Add memfd_create system call wrapper
2171         * sysdeps/unix/sysv/linux/Makefile [misc] (tests): Add
2172         tst-memfd_create.
2173         * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_GNU]
2174         (MFD_CLOEXEC, MFD_ALLOW_SEALING): Define.
2175         [__USE_GNU] (memfd_create): Declare.
2176         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Add memfd_create.
2177         * sysdeps/unix/sysv/linux/syscalls.list (memfd_create): Add.
2178         * sysdeps/unix/sysv/linux/tst-memfd_create.c: New file.
2179         * sysdeps/unix/sysv/linux/**.abilist: Update.
2180         * manual/llio.texi (Memory-mapped I/O): Document memfd_create.
2182 2017-11-22  Joseph Myers  <joseph@codesourcery.com>
2184         * localedata/gen-locale.sh: Fix typo in variable name.
2186         * resolv/res_debug.c (p_secstodate): Condition definition on
2187         [SHLIB_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)].  Define
2188         directly as __p_secstodate, and as a compat symbol.  Do not use
2189         libresolv_hidden_def.
2190         * resolv/resolv.h (p_secstodate): Remove macro and function
2191         declaration.
2192         * resolv/ns_print.c (ns_sprintrrf): Print times with %lu, not
2193         using p_secstodate.
2194         * include/resolv.h (__p_secstodate): Do not use
2195         libresolv_hidden_proto.
2196         * resolv/Makefile (tests): Move tst-p_secstodate to ....
2197         (tests-internal): ... here.
2198         * resolv/tst-p_secstodate.c: Include <shlib-compat.h>.  Condition
2199         all contents on [TEST_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)]
2200         and declare and use __p_secstodate and use compat_symbol_reference
2201         in that case.
2202         [!TEST_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)] (do_test): Add
2203         implementation returning 77.
2205         [BZ #22463]
2206         * resolv/res_debug.c: Include <libc-diag.h>.
2207         (p_secstodate): Assert time_t at least as wide as u_long.  On
2208         overflow, use integer seconds since the epoch as output, or use
2209         "<overflow>" as output and set errno to EOVERFLOW if integer
2210         seconds since the epoch would be 14 or more characters.
2211         (p_secstodate) [__GNUC_PREREQ (7, 0)]: Disable -Wformat-overflow=
2212         for sprintf call.
2213         * resolv/tst-p_secstodate.c: New file.
2214         * resolv/Makefile (tests): Add tst-p_secstodate.
2215         ($(objpfx)tst-p_secstodate): Depend on $(objpfx)libresolv.so.
2217         * sysdeps/sparc/sparc64/soft-fp/s_frexpl.c: Remove file.
2218         * sysdeps/sparc/sparc64/soft-fp/s_scalblnl.c: Likewise.
2219         * sysdeps/sparc/sparc64/soft-fp/s_scalbnl.c: Likewise.
2221 2017-11-22  Paul Eggert  <eggert@cs.ucla.edu>
2223         * posix/regcomp.c (init_word_char): Add comments.
2225 2017-11-22  Joseph Myers  <joseph@codesourcery.com>
2227         [BZ #22447]
2228         * sysdeps/unix/getlogin_r.c (__getlogin_r): Use __strnlen not
2229         strlen to compute length of ut_user and set trailing NUL byte of
2230         result explicitly.
2232 2017-11-21  Mike FABIAN  <mfabian@redhat.com>
2234         [BZ #15537]
2235         * localedata/locales/lv_LV (LC_COLLATE): Fix collation by
2236         using “copy "iso14651_t1"” and then implementing the
2237         collation rules for lv from CLDR on top of that.
2238         * Makefile: Add lv_LV.UTF-8 to test-input and to the list
2239         of locales to be built for testing.
2240         * lv_LV.UTF-8.in: New file with test data to test the Latvian
2241         sorting.
2243 2017-11-21  Joseph Myers  <joseph@codesourcery.com>
2245         * sysdeps/unix/sysv/linux/hppa/bits/mman.h
2246         [__USE_MISC] (MADV_SPACEAVAIL): Remove macro.
2247         [__USE_MISC] (MADV_VPS_PURGE): Likewise.
2248         [__USE_MISC] (MADV_VPS_INHERIT): Likewise.
2249         [__USE_MISC] (MADV_HWPOISON): New macro.
2250         [__USE_MISC] (MADV_SOFT_OFFLINE): Likewise.
2252 2017-11-21  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2254         * nptl/pthreadP.h (ASSERT_PTHREAD_INTERNAL_SIZE): Add workarond for
2255         -Wmissing-braces on GCC 4.9.
2257 2017-11-21  Stefan Liebler  <stli@linux.vnet.ibm.com>
2259         * sysdeps/s390/s390-64/start.S (_start): Add cfi information for r14.
2260         * sysdeps/s390/s390-32/start.S (_start): Likewise
2261         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S
2262         (thread_start): Likewise.
2263         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S
2264         (thread_start): Likewise.
2265         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S
2266         (__makecontext_ret): Likewise.
2267         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S
2268         (__makecontext_ret): Likewise.
2270 2017-11-21  Stefan Liebler  <stli@linux.vnet.ibm.com>
2272         * include/wchar.h (__wcsnlen, __wcscat, __wcsncpy, __wcpncpy,
2273         __wcschrnul): Remove attribute_hidden.
2275 2017-11-20  Paul Eggert  <eggert@cs.ucla.edu>
2277         regex: don't assume uint64_t or uint32_t
2278         This avoids -Werror=overflow errors for 32-bit systems in
2279         the 64-bit case.  Problem reported by Joseph Myers in:
2280         https://sourceware.org/ml/libc-alpha/2017-11/msg00694.html
2281         Also, when this code is used in Gnulib it ports to platforms
2282         that lack uint64_t and uint32_t.  The C standard doesn't guarantee
2283         them, and on some 32-bit compilers there is no uint64_t.
2284         Problem reported by Gianluigi Tiesi in:
2285         http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00154.html
2286         * posix/regcomp.c (init_word_char): Don't assume that the types
2287         uint64_t and uint32_t exist.  Adapted from Gnulib patch
2288         2012-05-27T06:40:00!eggert@cs.ucla.edu.  See:
2289         https://git.savannah.gnu.org/cgit/gnulib.git/commit/?id=252b52457da7887667c036d18cc5169777615bb0
2291 2017-11-20  Siddhesh Poyarekar  <siddhesh@sourceware.org>
2293         * sysdeps/aarch64/memset-reg.h: New file.
2294         * sysdeps/aarch64/memset.S: Use it.
2295         (__memset): Rename to MEMSET macro.
2296         [ZVA_MACRO]: Use zva_macro.
2297         * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
2298         Add memset_generic and memset_falkor.
2299         * sysdeps/aarch64/multiarch/ifunc-impl-list.c
2300         (__libc_ifunc_impl_list): Add memset ifuncs.
2301         * sysdeps/aarch64/multiarch/init-arch.h (INIT_ARCH): New
2302         local variable zva_size.
2303         * sysdeps/aarch64/multiarch/memset.c: New file.
2304         * sysdeps/aarch64/multiarch/memset_generic.S: New file.
2305         * sysdeps/aarch64/multiarch/memset_falkor.S: New file.
2306         * sysdeps/aarch64/multiarch/rtld-memset.S: New file.
2307         * sysdeps/unix/sysv/linux/aarch64/cpu-features.c
2308         (DCZID_DZP_MASK): New macro.
2309         (DCZID_BS_MASK): Likewise.
2310         (init_cpu_features): Read and set zva_size.
2311         * sysdeps/unix/sysv/linux/aarch64/cpu-features.h
2312         (struct cpu_features): New member zva_size.
2314         * benchtests/bench-memcpy-walk.c (START_SIZE): Set to 128.
2315         * benchtests/bench-memmove-walk.c (START_SIZE): Likewise.
2316         * benchtests/bench-memset-walk.c (START_SIZE): Likewise.
2318         * benchtests/bench-memcpy-walk.c (do_one_test): Copy only
2319         backwards.  Fix timing computation.
2320         * benchtests/bench-memmove-walk.c (do_one_test): Likewise.
2321         * benchtests/bench-memset-walk.c (do_one_test): Walk backwards
2322         on memset by N at a time.  Fix timing computation.
2324 2017-11-20  Florian Weimer  <fweimer@redhat.com>
2326         * manual/llio.texi (Memory-mapped I/O): Document MAP_HUGETLB,
2327         MADV_HUGEPAGE, MADV_NOHUGEPAGE.
2329 2017-11-19  Florian Weimer  <fweimer@redhat.com>
2331         manual: Document mprotect
2332         * manual/memory.texi (Memory Protection): New section.
2333         * manual/llio.texi (Memory-mapped I/O): Remove duplicate
2334         documentation of PROT_* flags and reference the Memory Protection
2335         section instead.
2337 2017-11-19  Florian Weimer  <fweimer@redhat.com>
2339         * manual/llio.texi (I/O Primitives): Move preadv, preadv64,
2340         pwritev, pwritev64, preadv2, preadv64v2, pwritev2, pwritev64v2 ...
2341         (Scatter-Gather): ... to here.  Remove misleading comment.
2343 2017-11-18  Christian Brauner <christian.brauner@ubuntu.com>
2345         * support/support_become_root.c (setup_uid_gid_mapping): Fix comment
2346         style.
2348         * support/support_become_root.c (setup_uid_gid_mapping): Don't fail
2349         when /proc/<pid>/setgroups does not exist.
2351 2017-11-18  Florian Weimer  <fweimer@redhat.com>
2353         * sysdeps/unix/sysv/linux/tst-ttyname.c
2354         (become_root_in_mount_ns): Remove.
2355         (do_in_chroot_1): Call support_enter_mount_namespace.
2356         (do_in_chroot_2): Likewise.
2357         (do_test): Call support_become_root early.
2359 2017-11-18  Florian Weimer  <fweimer@redhat.com>
2361         * support/namespace.h (support_enter_mount_namespace): Declare.
2362         * support/support_enter_mount_namespace.c: New file.
2363         * support/Makefile (libsupport-routines): Add
2364         support_enter_mount_namespace.
2366 2017-11-18  Florian Weimer  <fweimer@redhat.com>
2368         * support/temp_file.c (support_create_temp_directory): Use
2369         test_dir and do not rely on the presence of the XXXXXX suffix.
2370         * support/temp_file.h (support_create_temp_directory): Update
2371         comment.
2372         * support/tst-xreadlink.c (do_test): Adjust.
2373         * support/support_chroot.c (support_chroot_create): Likewise.
2375 2017-11-17  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
2377         * sysdeps/powerpc/bits/hwcap.h (PPC_FEATURE2_HTM_NO_SUSPEND): New
2378         macro.
2379         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add
2380         htm-no-suspend.
2382 2017-11-17  Joseph Myers  <joseph@codesourcery.com>
2384         * sysdeps/x86_64/fpu/e_expl.S: Include <libm-alias-ldouble.h>.
2385         [USE_AS_EXPM1L] (expm1l): Define using libm_alias_ldouble.
2386         * sysdeps/x86_64/fpu/s_ceill.S: Include <libm-alias-ldouble.h>.
2387         (ceill): Define using libm_alias_ldouble.
2388         * sysdeps/x86_64/fpu/s_copysignl.S: Include
2389         <libm-alias-ldouble.h>.
2390         (copysignl): Define using libm_alias_ldouble.
2391         * sysdeps/x86_64/fpu/s_fabsl.S: Include <libm-alias-ldouble.h>.
2392         (fabsl): Define using libm_alias_ldouble.
2393         * sysdeps/x86_64/fpu/s_floorl.S: Include <libm-alias-ldouble.h>.
2394         (floorl): Define using libm_alias_ldouble.
2395         * sysdeps/x86_64/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
2396         (fmaxl): Define using libm_alias_ldouble.
2397         * sysdeps/x86_64/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
2398         (fminl): Define using libm_alias_ldouble.
2399         * sysdeps/x86_64/fpu/s_llrintl.S: Include <libm-alias-ldouble.h>.
2400         (llrintl): Define using libm_alias_ldouble.
2401         (lrintl): Likewise.
2402         * sysdeps/x86_64/fpu/s_nearbyintl.S: Include
2403         <libm-alias-ldouble.h>.
2404         (nearbyintl): Define using libm_alias_ldouble.
2405         * sysdeps/x86_64/fpu/s_truncl.S: Include <libm-alias-ldouble.h>.
2406         (truncl): Define using libm_alias_ldouble.
2407         * sysdeps/x86_64/x32/fpu/s_lrintl.S: Include
2408         <libm-alias-ldouble.h>.
2409         (lrintl): Define using libm_alias_ldouble.
2411         * sysdeps/i386/fpu/e_expl.S: Include <libm-alias-ldouble.h>.
2412         [USE_AS_EXPM1L] (expm1l): Define using libm_alias_ldouble.
2413         * sysdeps/i386/fpu/s_asinhl.S: Include <libm-alias-ldouble.h>.
2414         (asinhl): Define using libm_alias_ldouble.
2415         * sysdeps/i386/fpu/s_atanl.c: Include <libm-alias-ldouble.h>.
2416         (atanl): Define using libm_alias_ldouble.
2417         * sysdeps/i386/fpu/s_cbrtl.S: Include <libm-alias-ldouble.h>.
2418         (cbrtl): Define using libm_alias_ldouble.
2419         * sysdeps/i386/fpu/s_ceill.S: Include <libm-alias-ldouble.h>.
2420         (ceill): Define using libm_alias_ldouble.
2421         * sysdeps/i386/fpu/s_copysignl.S: Include <libm-alias-ldouble.h>.
2422         (copysignl): Define using libm_alias_ldouble.
2423         * sysdeps/i386/fpu/s_fabsl.S: Include <libm-alias-ldouble.h>.
2424         (fabsl): Define using libm_alias_ldouble.
2425         * sysdeps/i386/fpu/s_floorl.S: Include <libm-alias-ldouble.h>.
2426         (floorl): Define using libm_alias_ldouble.
2427         * sysdeps/i386/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
2428         (fmaxl): Define using libm_alias_ldouble.
2429         * sysdeps/i386/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
2430         (fminl): Define using libm_alias_ldouble.
2431         * sysdeps/i386/fpu/s_frexpl.S: Include <libm-alias-ldouble.h>.
2432         (frexpl): Define using libm_alias_ldouble.
2433         * sysdeps/i386/fpu/s_llrintl.S: Include <libm-alias-ldouble.h>.
2434         (llrintl): Define using libm_alias_ldouble.
2435         * sysdeps/i386/fpu/s_logbl.c: Include <libm-alias-ldouble.h>.
2436         (logbl): Define using libm_alias_ldouble.
2437         * sysdeps/i386/fpu/s_lrintl.S: Include <libm-alias-ldouble.h>.
2438         (lrintl): Define using libm_alias_ldouble.
2439         * sysdeps/i386/fpu/s_nearbyintl.S: Include <libm-alias-ldouble.h>.
2440         (nearbyintl): Define using libm_alias_ldouble.
2441         * sysdeps/i386/fpu/s_nextafterl.c: Include <libm-alias-ldouble.h>.
2442         (nextafterl): Define using libm_alias_ldouble.
2443         * sysdeps/i386/fpu/s_remquol.S: Include <libm-alias-ldouble.h>.
2444         (remquol): Define using libm_alias_ldouble.
2445         * sysdeps/i386/fpu/s_rintl.c: Include <libm-alias-ldouble.h>.
2446         (rintl): Define using libm_alias_ldouble.
2447         * sysdeps/i386/fpu/s_truncl.S: Include <libm-alias-ldouble.h>.
2448         (truncl): Define using libm_alias_ldouble.
2449         * sysdeps/i386/i686/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
2450         (fmaxl): Define using libm_alias_ldouble.
2451         * sysdeps/i386/i686/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
2452         (fminl): Define using libm_alias_ldouble.
2454         * bits/floatn-common.h [!__ASSEMBLER]: Disable everything related
2455         to C syntax instead of availability and properties of types.
2456         * bits/floatn.h [!__ASSEMBLER]: Likewise.
2457         * sysdeps/ia64/bits/floatn.h [!__ASSEMBLER]: Likewise.
2458         * sysdeps/ieee754/ldbl-128/bits/floatn.h [!__ASSEMBLER]: Likewise.
2459         * sysdeps/mips/ieee754/bits/floatn.h [!__ASSEMBLER]: Likewise.
2460         * sysdeps/powerpc/bits/floatn.h [!__ASSEMBLER]: Likewise.
2461         * sysdeps/x86/bits/floatn.h [!__ASSEMBLER]: Likewise.
2463 2017-11-17  Florian Weimer  <fweimer@redhat.com>
2465         support_become_root: Enable file creation in namespaces.
2466         * support/support_become_root.c (setup_mapping): New function.
2467         (support_become_root): Call it.
2469 2017-11-17  Joseph Myers  <joseph@codesourcery.com>
2471         * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_DCPOP): New
2472         macro.
2474 2017-11-16  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2476         * sysdeps/aarch64/fpu/Makefile (CFLAGS-s_fmax.c, CFLAGS-s_fmaxf.c,
2477         CFLAGS-s_fmin.c, CFLAGS-s_fminf.c): New rule: add -ffinite-math-only.
2479 2017-11-16  Joseph Myers  <joseph@codesourcery.com>
2481         * sysdeps/unix/sysv/linux/net/if_arp.h (ARPHRD_RAWIP): New macro.
2483         * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
2484         version to 4.14.
2486 2017-11-16  Siddhesh Poyarekar  <siddhesh@sourceware.org>
2488         * INSTALL: Fix botched up regeneration.
2490         * NEWS: Update sourceare link to https.
2491         * configure.ac: Likewise.
2492         * crypt/md5test-giant.c: Likewise.
2493         * dlfcn/bug-atexit1.c: Likewise.
2494         * dlfcn/bug-atexit2.c: Likewise.
2495         * localedata/README: Likewise.
2496         * malloc/tst-mallocfork.c: Likewise.
2497         * manual/install.texi: Likewise.
2498         * nptl/tst-pthread-getattr.c: Likewise.
2499         * stdio-common/tst-fgets.c: Likewise.
2500         * stdio-common/tst-fwrite.c: Likewise.
2501         * sunrpc/Makefile: Likewise.
2502         * sysdeps/arm/armv7/multiarch/memcpy_impl.S: Likewise.
2503         * wcsmbs/tst-mbrtowc2.c: Likewise.
2504         * configure: Regenerate.
2505         * INSTALL: Regenerate.
2507 2017-11-15  Martin Sebor  <msebor@redhat.com>
2509         * misc/sys/cdefs.h (__attribute_nonstring__): New macro.
2510         * sysdeps/gnu/bits/utmp.h (struct utmp): Use it.
2511         * sysdeps/unix/sysv/linux/s390/bits/utmp.h (struct utmp): Same.
2513 2017-11-15  Luke Shumaker  <lukeshu@parabola.nu>
2515         [BZ #22145]
2516         * sysdeps/unix/sysv/linux/tst-ttyname.c: New file.
2517         * sysdeps/unix/sysv/linux/Makefile: Add tst-ttyname to tests.
2519         [BZ #22145]
2520         * sysdeps/unix/sysv/linux/ttyname.c (ttyname):
2521         Defer is_pty check until end of the function.
2522         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
2524         [BZ #22145]
2525         * sysdeps/unix/sysv/linux/ttyname.h (is_mytty): New function.
2526         * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Call is_mytty.
2527         (ttyname): Likewise.
2528         * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
2529         (__ttyname_r): Likewise.
2531         * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Change return type from
2532         int to bool.
2534         * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Update doc reference.
2536         * manual/terminal.texi (Is It a Terminal):
2537         Mention ENODEV for ttyname and ttyname_r.
2539 2017-11-15  Joseph Myers  <joseph@codesourcery.com>
2541         * sysdeps/unix/sysv/linux/bits/socket.h (MSG_ZEROCOPY): New enum
2542         constant and macro.
2544         * sysdeps/unix/sysv/linux/bits/mman-linux.h
2545         [__USE_MISC] (MADV_WIPEONFORK): New macro.
2546         [__USE_MISC] (MADV_KEEPONFORK): Likewise.
2547         * sysdeps/unix/sysv/linux/hppa/bits/mman.h
2548         [__USE_MISC] (MADV_WIPEONFORK): Likewise.
2549         [__USE_MISC] (MADV_KEEPONFORK): Likewise.
2551 2017-11-15  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2553         * signal/sigrelse.c (sigrelse): Optimize implementation.
2555         * sysdeps/posix/sigpause.c (do_sigpause): Remove.
2556         (__sigpause): Rely on __sigsuspend to implement single thread
2557         optimization.  Add LIBC_CANCEL_HANDLED for cancellation marking.
2559 2017-11-15  Joseph Myers  <joseph@codesourcery.com>
2561         * scripts/build-many-glibcs.py (Context.checkout): Default Linux
2562         kernel version to 4.14.
2564 2017-11-15  Steve Ellcey  <sellcey@cavium.com>
2566         [BZ #22442]
2567         * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex):
2568         Check if ifname is too long.
2570 2017-11-15  Luke Shumaker  <lukeshu@parabola.nu>
2572         * sysdeps/unix/sysv/linux/epoll_wait.c: Include <sysdep-cancel.h>.
2574 2017-11-15  Mike FABIAN  <mfabian@redhat.com>
2576         * localedata/locales/ka_GE (LC_MESSAGES): Add “X” back to yesexpr,
2577         was accidentally lost.
2579 2017-11-15  Mike FABIAN  <mfabian@redhat.com>
2581         * localedata/locales/az_IR: Add standard copyright header.
2583 2017-11-15  Florian Weimer  <fweimer@redhat.com>
2585         [BZ #22439]
2586         * malloc/malloc.c (__malloc_info): Count all heaps in an arena,
2587         not just the top one.  Output a new "subheaps" statistic.
2589 2017-11-15  Florian Weimer  <fweimer@redhat.com>
2591         [BZ #22408]
2592         * malloc/malloc.c (__malloc_info): Obtain arena heap statistics
2593         under the per-arena lock.
2594         * malloc/Makefile (tests): Add tst-malloc_info.
2595         (tst-malloc_info): Link with libpthread.
2596         * malloc/tst-malloc_info.c: New file.
2598 2017-11-15  Joseph Myers  <joseph@codesourcery.com>
2600         [BZ #21660]
2601         * math/tgmath.h (__HAVE_BUILTIN_TGMATH): New macro.
2602         [__HAVE_BUILTIN_TGMATH] (__TG_F16_ARG): Likewise.
2603         [__HAVE_BUILTIN_TGMATH] (__TG_F32_ARG): Likewise.
2604         [__HAVE_BUILTIN_TGMATH] (__TG_F64_ARG): Likewise.
2605         [__HAVE_BUILTIN_TGMATH] (__TG_F128_ARG): Likewise.
2606         [__HAVE_BUILTIN_TGMATH] (__TG_F32X_ARG): Likewise.
2607         [__HAVE_BUILTIN_TGMATH] (__TG_F64X_ARG): Likewise.
2608         [__HAVE_BUILTIN_TGMATH] (__TG_F128X_ARG): Likewise.
2609         [__HAVE_BUILTIN_TGMATH] (__TGMATH_FUNCS): Likewise.
2610         [__HAVE_BUILTIN_TGMATH] (__TGMATH_RCFUNCS): Likewise.
2611         [__HAVE_BUILTIN_TGMATH] (__TGMATH_1): Likewise.
2612         [__HAVE_BUILTIN_TGMATH] (__TGMATH_2): Likewise.
2613         [__HAVE_BUILTIN_TGMATH] (__TGMATH_2STD): Likewise.
2614         [__HAVE_BUILTIN_TGMATH] (__TGMATH_3): Likewise.
2615         [__HAVE_BUILTIN_TGMATH] (__TGMATH_1C): Likewise.
2616         [__HAVE_BUILTIN_TGMATH] (__TGMATH_2C): Likewise.
2617         (__tgml): Make conditional on [!__HAVE_BUILTIN_TGMATH].
2618         (__floating_type): Likewise.
2619         (__real_integer_type): Likewise.
2620         (__complex_integer_type): Likewise.
2621         (__expr_is_real): Likewise.
2622         (__tgmath_real_type_sub): Likewise.
2623         (__tgmath_real_type): Likewise.
2624         (__tgmath_complex_type_sub): Likewise.
2625         (__tgmath_complex_type): Likewise.
2626         (__TGMATH_F128): Likewise.
2627         (__TGMATH_CF128): Likewise.
2628         [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_ONLY): Define using
2629         new macros.
2630         [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
2631         [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_FIRST_REAL_ONLY):
2632         Likewise.
2633         [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_FIRST_REAL_STD_ONLY):
2634         Likewise.
2635         [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_ONLY): Likewise.
2636         [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
2637         [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
2638         [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY):
2639         Likewise.
2640         [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_REAL_ONLY): Likewise.
2641         [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY):
2642         Likewise.
2643         [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_IMAG): Likewise.
2644         [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_IMAG): Likewise.
2645         [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_IMAG_RET_REAL):
2646         Likewise.
2647         [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_IMAG): Likewise.
2648         (__TGMATH_UNARY_REAL_IMAG_RET_REAL_SAME): New macro.
2649         (carg): Use __TGMATH_UNARY_REAL_IMAG_RET_REAL_SAME.
2650         (cimag): Likewise.
2651         (creal): Likewise.
2653 2017-11-14  Joseph Myers  <joseph@codesourcery.com>
2655         * string/tester.c (test_stpncpy): Disable -Wstringop-truncation
2656         for stpncpy calls for GCC 8.
2657         (test_strncat): Disable -Wstringop-truncation warning for strncat
2658         calls for GCC 8.  Disable -Wstringop-overflow= warning for one
2659         strncat call for GCC 7.
2660         (test_strncpy): Disable -Wstringop-truncation warning for strncpy
2661         calls for GCC 8.
2662         (test_memcmp): Use memcpy instead of strncpy for calls not copying
2663         trailing NUL.
2665         * string/bug-strncat1.c: Include <libc-diag.h>.
2666         (main): Disable -Wstringop-truncation for strncat call for GCC 8.
2668 2017-11-13  Claude Paroz <claude@2xlibre.net>
2670         [BZ #22387]
2671         * localedata/locales/aa_DJ: Improved readibility by replacing
2672         <Uxxxx> sequences in the ASCII printable range by their ASCII
2673         character equivalents.
2674         * localedata/locales/aa_ER: Likewise.
2675         * localedata/locales/aa_ER@saaho: Likewise.
2676         * localedata/locales/aa_ET: Likewise.
2677         * localedata/locales/af_ZA: Likewise.
2678         * localedata/locales/agr_PE: Likewise.
2679         * localedata/locales/ak_GH: Likewise.
2680         * localedata/locales/am_ET: Likewise.
2681         * localedata/locales/anp_IN: Likewise.
2682         * localedata/locales/ar_AE: Likewise.
2683         * localedata/locales/ar_BH: Likewise.
2684         * localedata/locales/ar_DZ: Likewise.
2685         * localedata/locales/ar_EG: Likewise.
2686         * localedata/locales/ar_IN: Likewise.
2687         * localedata/locales/ar_IQ: Likewise.
2688         * localedata/locales/ar_JO: Likewise.
2689         * localedata/locales/ar_KW: Likewise.
2690         * localedata/locales/ar_LB: Likewise.
2691         * localedata/locales/ar_LY: Likewise.
2692         * localedata/locales/ar_MA: Likewise.
2693         * localedata/locales/ar_OM: Likewise.
2694         * localedata/locales/ar_QA: Likewise.
2695         * localedata/locales/ar_SA: Likewise.
2696         * localedata/locales/ar_SD: Likewise.
2697         * localedata/locales/ar_SS: Likewise.
2698         * localedata/locales/ar_SY: Likewise.
2699         * localedata/locales/ar_TN: Likewise.
2700         * localedata/locales/ar_YE: Likewise.
2701         * localedata/locales/as_IN: Likewise.
2702         * localedata/locales/ast_ES: Likewise.
2703         * localedata/locales/ayc_PE: Likewise.
2704         * localedata/locales/az_AZ: Likewise.
2705         * localedata/locales/az_IR: Likewise.
2706         * localedata/locales/be_BY: Likewise.
2707         * localedata/locales/be_BY@latin: Likewise.
2708         * localedata/locales/bem_ZM: Likewise.
2709         * localedata/locales/ber_DZ: Likewise.
2710         * localedata/locales/ber_MA: Likewise.
2711         * localedata/locales/bg_BG: Likewise.
2712         * localedata/locales/bhb_IN: Likewise.
2713         * localedata/locales/bho_IN: Likewise.
2714         * localedata/locales/bi_VU: Likewise.
2715         * localedata/locales/bn_BD: Likewise.
2716         * localedata/locales/bn_IN: Likewise.
2717         * localedata/locales/bo_CN: Likewise.
2718         * localedata/locales/bo_IN: Likewise.
2719         * localedata/locales/br_FR: Likewise.
2720         * localedata/locales/brx_IN: Likewise.
2721         * localedata/locales/bs_BA: Likewise.
2722         * localedata/locales/byn_ER: Likewise.
2723         * localedata/locales/ca_AD: Likewise.
2724         * localedata/locales/ca_ES: Likewise.
2725         * localedata/locales/ca_FR: Likewise.
2726         * localedata/locales/ca_IT: Likewise.
2727         * localedata/locales/ce_RU: Likewise.
2728         * localedata/locales/chr_US: Likewise.
2729         * localedata/locales/cmn_TW: Likewise.
2730         * localedata/locales/crh_UA: Likewise.
2731         * localedata/locales/cs_CZ: Likewise.
2732         * localedata/locales/csb_PL: Likewise.
2733         * localedata/locales/cv_RU: Likewise.
2734         * localedata/locales/cy_GB: Likewise.
2735         * localedata/locales/da_DK: Likewise.
2736         * localedata/locales/de_AT: Likewise.
2737         * localedata/locales/de_BE: Likewise.
2738         * localedata/locales/de_CH: Likewise.
2739         * localedata/locales/de_DE: Likewise.
2740         * localedata/locales/de_IT: Likewise.
2741         * localedata/locales/de_LI: Likewise.
2742         * localedata/locales/de_LU: Likewise.
2743         * localedata/locales/doi_IN: Likewise.
2744         * localedata/locales/dv_MV: Likewise.
2745         * localedata/locales/dz_BT: Likewise.
2746         * localedata/locales/el_CY: Likewise.
2747         * localedata/locales/el_GR: Likewise.
2748         * localedata/locales/en_AG: Likewise.
2749         * localedata/locales/en_AU: Likewise.
2750         * localedata/locales/en_BW: Likewise.
2751         * localedata/locales/en_CA: Likewise.
2752         * localedata/locales/en_DK: Likewise.
2753         * localedata/locales/en_GB: Likewise.
2754         * localedata/locales/en_HK: Likewise.
2755         * localedata/locales/en_IE: Likewise.
2756         * localedata/locales/en_IL: Likewise.
2757         * localedata/locales/en_IN: Likewise.
2758         * localedata/locales/en_NG: Likewise.
2759         * localedata/locales/en_NZ: Likewise.
2760         * localedata/locales/en_PH: Likewise.
2761         * localedata/locales/en_SG: Likewise.
2762         * localedata/locales/en_US: Likewise.
2763         * localedata/locales/en_ZA: Likewise.
2764         * localedata/locales/en_ZM: Likewise.
2765         * localedata/locales/en_ZW: Likewise.
2766         * localedata/locales/eo: Likewise.
2767         * localedata/locales/es_AR: Likewise.
2768         * localedata/locales/es_BO: Likewise.
2769         * localedata/locales/es_CL: Likewise.
2770         * localedata/locales/es_CO: Likewise.
2771         * localedata/locales/es_CR: Likewise.
2772         * localedata/locales/es_CU: Likewise.
2773         * localedata/locales/es_DO: Likewise.
2774         * localedata/locales/es_EC: Likewise.
2775         * localedata/locales/es_ES: Likewise.
2776         * localedata/locales/es_GT: Likewise.
2777         * localedata/locales/es_HN: Likewise.
2778         * localedata/locales/es_MX: Likewise.
2779         * localedata/locales/es_NI: Likewise.
2780         * localedata/locales/es_PA: Likewise.
2781         * localedata/locales/es_PE: Likewise.
2782         * localedata/locales/es_PR: Likewise.
2783         * localedata/locales/es_PY: Likewise.
2784         * localedata/locales/es_SV: Likewise.
2785         * localedata/locales/es_US: Likewise.
2786         * localedata/locales/es_UY: Likewise.
2787         * localedata/locales/es_VE: Likewise.
2788         * localedata/locales/et_EE: Likewise.
2789         * localedata/locales/eu_ES: Likewise.
2790         * localedata/locales/eu_ES@euro: Likewise.
2791         * localedata/locales/fa_IR: Likewise.
2792         * localedata/locales/ff_SN: Likewise.
2793         * localedata/locales/fi_FI: Likewise.
2794         * localedata/locales/fil_PH: Likewise.
2795         * localedata/locales/fo_FO: Likewise.
2796         * localedata/locales/fr_BE: Likewise.
2797         * localedata/locales/fr_CA: Likewise.
2798         * localedata/locales/fr_CH: Likewise.
2799         * localedata/locales/fr_FR: Likewise.
2800         * localedata/locales/fr_LU: Likewise.
2801         * localedata/locales/fur_IT: Likewise.
2802         * localedata/locales/fy_DE: Likewise.
2803         * localedata/locales/fy_NL: Likewise.
2804         * localedata/locales/ga_IE: Likewise.
2805         * localedata/locales/gd_GB: Likewise.
2806         * localedata/locales/gez_ER: Likewise.
2807         * localedata/locales/gez_ET: Likewise.
2808         * localedata/locales/gl_ES: Likewise.
2809         * localedata/locales/gu_IN: Likewise.
2810         * localedata/locales/gv_GB: Likewise.
2811         * localedata/locales/ha_NG: Likewise.
2812         * localedata/locales/hak_TW: Likewise.
2813         * localedata/locales/he_IL: Likewise.
2814         * localedata/locales/hi_IN: Likewise.
2815         * localedata/locales/hif_FJ: Likewise.
2816         * localedata/locales/hne_IN: Likewise.
2817         * localedata/locales/hr_HR: Likewise.
2818         * localedata/locales/hsb_DE: Likewise.
2819         * localedata/locales/ht_HT: Likewise.
2820         * localedata/locales/hu_HU: Likewise.
2821         * localedata/locales/hy_AM: Likewise.
2822         * localedata/locales/i18n: Likewise.
2823         * localedata/locales/ia_FR: Likewise.
2824         * localedata/locales/id_ID: Likewise.
2825         * localedata/locales/ig_NG: Likewise.
2826         * localedata/locales/ik_CA: Likewise.
2827         * localedata/locales/is_IS: Likewise.
2828         * localedata/locales/it_CH: Likewise.
2829         * localedata/locales/it_IT: Likewise.
2830         * localedata/locales/iu_CA: Likewise.
2831         * localedata/locales/ja_JP: Likewise.
2832         * localedata/locales/ka_GE: Likewise.
2833         * localedata/locales/kk_KZ: Likewise.
2834         * localedata/locales/kl_GL: Likewise.
2835         * localedata/locales/kn_IN: Likewise.
2836         * localedata/locales/ko_KR: Likewise.
2837         * localedata/locales/kok_IN: Likewise.
2838         * localedata/locales/ks_IN: Likewise.
2839         * localedata/locales/ks_IN@devanagari: Likewise.
2840         * localedata/locales/ku_TR: Likewise.
2841         * localedata/locales/kw_GB: Likewise.
2842         * localedata/locales/ky_KG: Likewise.
2843         * localedata/locales/lb_LU: Likewise.
2844         * localedata/locales/lg_UG: Likewise.
2845         * localedata/locales/li_BE: Likewise.
2846         * localedata/locales/li_NL: Likewise.
2847         * localedata/locales/lij_IT: Likewise.
2848         * localedata/locales/ln_CD: Likewise.
2849         * localedata/locales/lo_LA: Likewise.
2850         * localedata/locales/lt_LT: Likewise.
2851         * localedata/locales/lv_LV: Likewise.
2852         * localedata/locales/lzh_TW: Likewise.
2853         * localedata/locales/mag_IN: Likewise.
2854         * localedata/locales/mai_IN: Likewise.
2855         * localedata/locales/mg_MG: Likewise.
2856         * localedata/locales/mhr_RU: Likewise.
2857         * localedata/locales/mi_NZ: Likewise.
2858         * localedata/locales/mk_MK: Likewise.
2859         * localedata/locales/ml_IN: Likewise.
2860         * localedata/locales/mn_MN: Likewise.
2861         * localedata/locales/mni_IN: Likewise.
2862         * localedata/locales/mr_IN: Likewise.
2863         * localedata/locales/ms_MY: Likewise.
2864         * localedata/locales/mt_MT: Likewise.
2865         * localedata/locales/my_MM: Likewise.
2866         * localedata/locales/nan_TW: Likewise.
2867         * localedata/locales/nan_TW@latin: Likewise.
2868         * localedata/locales/nb_NO: Likewise.
2869         * localedata/locales/nds_DE: Likewise.
2870         * localedata/locales/nds_NL: Likewise.
2871         * localedata/locales/ne_NP: Likewise.
2872         * localedata/locales/nhn_MX: Likewise.
2873         * localedata/locales/niu_NU: Likewise.
2874         * localedata/locales/niu_NZ: Likewise.
2875         * localedata/locales/nl_AW: Likewise.
2876         * localedata/locales/nl_BE: Likewise.
2877         * localedata/locales/nl_NL: Likewise.
2878         * localedata/locales/nn_NO: Likewise.
2879         * localedata/locales/nr_ZA: Likewise.
2880         * localedata/locales/nso_ZA: Likewise.
2881         * localedata/locales/oc_FR: Likewise.
2882         * localedata/locales/om_ET: Likewise.
2883         * localedata/locales/om_KE: Likewise.
2884         * localedata/locales/or_IN: Likewise.
2885         * localedata/locales/os_RU: Likewise.
2886         * localedata/locales/pa_IN: Likewise.
2887         * localedata/locales/pa_PK: Likewise.
2888         * localedata/locales/pap_AW: Likewise.
2889         * localedata/locales/pap_CW: Likewise.
2890         * localedata/locales/pl_PL: Likewise.
2891         * localedata/locales/ps_AF: Likewise.
2892         * localedata/locales/pt_BR: Likewise.
2893         * localedata/locales/pt_PT: Likewise.
2894         * localedata/locales/quz_PE: Likewise.
2895         * localedata/locales/raj_IN: Likewise.
2896         * localedata/locales/ro_RO: Likewise.
2897         * localedata/locales/ru_RU: Likewise.
2898         * localedata/locales/ru_UA: Likewise.
2899         * localedata/locales/rw_RW: Likewise.
2900         * localedata/locales/sa_IN: Likewise.
2901         * localedata/locales/sat_IN: Likewise.
2902         * localedata/locales/sc_IT: Likewise.
2903         * localedata/locales/sd_IN: Likewise.
2904         * localedata/locales/sd_IN@devanagari: Likewise.
2905         * localedata/locales/se_NO: Likewise.
2906         * localedata/locales/sgs_LT: Likewise.
2907         * localedata/locales/shs_CA: Likewise.
2908         * localedata/locales/si_LK: Likewise.
2909         * localedata/locales/sid_ET: Likewise.
2910         * localedata/locales/sk_SK: Likewise.
2911         * localedata/locales/sl_SI: Likewise.
2912         * localedata/locales/sm_WS: Likewise.
2913         * localedata/locales/so_DJ: Likewise.
2914         * localedata/locales/so_ET: Likewise.
2915         * localedata/locales/so_KE: Likewise.
2916         * localedata/locales/so_SO: Likewise.
2917         * localedata/locales/sq_AL: Likewise.
2918         * localedata/locales/sq_MK: Likewise.
2919         * localedata/locales/sr_ME: Likewise.
2920         * localedata/locales/sr_RS: Likewise.
2921         * localedata/locales/sr_RS@latin: Likewise.
2922         * localedata/locales/ss_ZA: Likewise.
2923         * localedata/locales/st_ZA: Likewise.
2924         * localedata/locales/sv_FI: Likewise.
2925         * localedata/locales/sv_SE: Likewise.
2926         * localedata/locales/sw_KE: Likewise.
2927         * localedata/locales/sw_TZ: Likewise.
2928         * localedata/locales/szl_PL: Likewise.
2929         * localedata/locales/ta_IN: Likewise.
2930         * localedata/locales/ta_LK: Likewise.
2931         * localedata/locales/tcy_IN: Likewise.
2932         * localedata/locales/te_IN: Likewise.
2933         * localedata/locales/tg_TJ: Likewise.
2934         * localedata/locales/th_TH: Likewise.
2935         * localedata/locales/the_NP: Likewise.
2936         * localedata/locales/ti_ER: Likewise.
2937         * localedata/locales/ti_ET: Likewise.
2938         * localedata/locales/tig_ER: Likewise.
2939         * localedata/locales/tk_TM: Likewise.
2940         * localedata/locales/tl_PH: Likewise.
2941         * localedata/locales/tn_ZA: Likewise.
2942         * localedata/locales/to_TO: Likewise.
2943         * localedata/locales/tpi_PG: Likewise.
2944         * localedata/locales/tr_CY: Likewise.
2945         * localedata/locales/tr_TR: Likewise.
2946         * localedata/locales/ts_ZA: Likewise.
2947         * localedata/locales/tt_RU: Likewise.
2948         * localedata/locales/tt_RU@iqtelif: Likewise.
2949         * localedata/locales/ug_CN: Likewise.
2950         * localedata/locales/uk_UA: Likewise.
2951         * localedata/locales/unm_US: Likewise.
2952         * localedata/locales/ur_IN: Likewise.
2953         * localedata/locales/ur_PK: Likewise.
2954         * localedata/locales/uz_UZ: Likewise.
2955         * localedata/locales/uz_UZ@cyrillic: Likewise.
2956         * localedata/locales/ve_ZA: Likewise.
2957         * localedata/locales/vi_VN: Likewise.
2958         * localedata/locales/wa_BE: Likewise.
2959         * localedata/locales/wae_CH: Likewise.
2960         * localedata/locales/wal_ET: Likewise.
2961         * localedata/locales/wo_SN: Likewise.
2962         * localedata/locales/xh_ZA: Likewise.
2963         * localedata/locales/yi_US: Likewise.
2964         * localedata/locales/yo_NG: Likewise.
2965         * localedata/locales/yue_HK: Likewise.
2966         * localedata/locales/yuw_PG: Likewise.
2967         * localedata/locales/zh_CN: Likewise.
2968         * localedata/locales/zh_HK: Likewise.
2969         * localedata/locales/zh_SG: Likewise.
2970         * localedata/locales/zh_TW: Likewise.
2971         * localedata/locales/zu_ZA: Likewise.
2973 2017-11-13  Florian Weimer  <fweimer@redhat.com>
2975         * support/next_to_fault.h, support/next_to_fault.c: New files.
2976         * support/Makefile (libsupport-routines): Add next_to_fault.
2977         * resolv/tst-inet_pton.c (struct next_to_fault)
2978         (next_to_fault_allocate, next_to_fault_free): Remove.
2979         (run_one_test): Switch to <support/next_to_fault.h> interfaces.
2981 2017-11-13  H.J. Lu  <hongjiu.lu@intel.com>
2983         * elf/dl-support.c: Include <dl-procruntime.c>.
2984         * include/link.h: Include <link_map.h>.
2985         * sysdeps/generic/dl-procruntime.c: New file.
2986         * sysdeps/generic/link_map.h: Likewise.
2987         * sysdeps/generic/ldsodefs.h: Include <dl-procruntime.c> in
2988         the writable ld.so namespace.
2990 2017-11-12  Paul Eggert  <eggert@cs.ucla.edu>
2992         timezone: pacify GCC -Wstringop-truncation
2993         Problem reported by Martin Sebor in:
2994         https://sourceware.org/ml/libc-alpha/2017-11/msg00336.html
2995         * timezone/zic.c (writezone): Use memcpy, not strncpy.
2997 2017-11-12  Florian Weimer  <fweimer@redhat.com>
2999         * support/Makefile (libsupport-routines): Add xreadlink, xstrndup,
3000         tst-xreadlink.
3001         (tests): Add tst-xreadlink.
3002         * support/support.h (xstrndup): Declare.
3003         * support/xunistd.h (xunlink, xreadlink): Declare.
3004         * support/temp_file.h (support_create_temp_directory): Declare.
3005         * support/temp_file.c (support_create_temp_directory): New function.
3006         * support/support_chroot.c (support_chroot_create): Use it.
3007         * support/xreadlink.c: New file.
3008         * support/xstrndup.c: Likewise.
3009         * support/xunlink.c: Likewise.
3010         * support/tst-xreadlink.c: Likewise.
3012 2017-11-11  John David Anglin  <danglin@gcc.gnu.org>
3014         * sysdeps/hppa/fpu/libm-test-ulps: Update clog10_downward ulps.
3016 2017-11-11  Florian Weimer  <fweimer@redhat.com>
3018         [BZ #22409]
3019         [BZ #22412]
3020         * resolv/res_comp.c (printable_string, binary_hnok)
3021         (binary_leading_dash): New functions.
3022         (res_hnok): Reimplement using these functions and ns_name_pton.
3023         (res_ownok): Likewise.
3024         (res_mailok): Reimplement using printable_string, ns_name_pton and
3025         binary_hnok.
3026         (res_dnok): Reimplement using printable_string and ns_name_pton.
3027         * resolv/tst-res_hnok.c (tests): Add additional tests.
3028         (LETTERDIGITS, PRINTABLE): Define.
3029         (do_test): Adjust one_char results.
3031 2017-11-11  Florian Weimer  <fweimer@redhat.com>
3033         [BZ #22413]
3034         * resolv/ns_name.c (ns_name_pton): Treat trailing backslash as error.
3035         * resolv/tst-ns_name_pton.c (tests): Add trailing backslash tests.
3037 2017-11-11  Florian Weimer  <fweimer@redhat.com>
3039         * resolv/tst-ns_name_pton.c: New file.
3040         * resolv/Makefile (tests): Add tst-ns_name_pton.
3041         (tst-ns_name_pton): Link against libresolv.
3043 2017-11-11  Florian Weimer  <fweimer@redhat.com>
3045         * resolv/tst-res_hnok.c: New file.
3046         * resolv/Makefile (tests): Add tst-res_hnok.
3047         (tst-res_hnok): Link against libresolv.
3049 2017-11-11  Florian Weimer  <fweimer@redhat.com>
3051         * resolv/tst-resolv-network.c: Use test framework instead explicit
3052         main function.
3054 2017-11-09  H.J. Lu  <hongjiu.lu@intel.com>
3056         * include/setjmp.h [!_ISOMAC]: Include <stddef.h> and
3057         <jmp_buf-macros.h>.
3058         [!_ISOMAC] (STR_HELPER): New.
3059         [!_ISOMAC] (STR): Likewise.
3060         [!_ISOMAC] (TEST_SIZE): Likewise.
3061         [!_ISOMAC] (TEST_ALIGN): Likewise.
3062         [!_ISOMAC] (TEST_OFFSET): Likewise.
3063         [!_ISOMAC] Add _Static_assert to check sizes, alignments and
3064         field offsets of jmp_buf as well as sigjmp_buf.
3065         * sysdeps/unix/sysv/linux/aarch64/jmp_buf-macros.h: Likewise.
3066         * sysdeps/unix/sysv/linux/alpha/jmp_buf-macros.h: Likewise.
3067         * sysdeps/unix/sysv/linux/arm/jmp_buf-macros.h: Likewise.
3068         * sysdeps/unix/sysv/linux/hppa/jmp_buf-macros.h: Likewise.
3069         * sysdeps/unix/sysv/linux/i386/jmp_buf-macros.h: Likewise.
3070         * sysdeps/unix/sysv/linux/ia64/jmp_buf-macros.h: Likewise.
3071         * sysdeps/unix/sysv/linux/m68k/jmp_buf-macros.h: Likewise.
3072         * sysdeps/unix/sysv/linux/microblaze/jmp_buf-macros.h: Likewise.
3073         * sysdeps/unix/sysv/linux/mips/mips32/jmp_buf-macros.h: Likewise.
3074         * sysdeps/unix/sysv/linux/mips/mips64/n32/jmp_buf-macros.h:
3075         Likewise.
3076         * sysdeps/unix/sysv/linux/mips/mips64/n64/jmp_buf-macros.h:
3077         Likewise.
3078         * sysdeps/unix/sysv/linux/nios2/jmp_buf-macros.h: Likewise.
3079         * sysdeps/unix/sysv/linux/powerpc/powerpc32/jmp_buf-macros.h:
3080         Likewise.
3081         * sysdeps/unix/sysv/linux/powerpc/powerpc64/jmp_buf-macros.h:
3082         Likewise.
3083         * sysdeps/unix/sysv/linux/s390/s390-32/jmp_buf-macros.h: Likewise.
3084         * sysdeps/unix/sysv/linux/s390/s390-64/jmp_buf-macros.h: Likewise.
3085         * sysdeps/unix/sysv/linux/sh/jmp_buf-macros.h: Likewise.
3086         * sysdeps/unix/sysv/linux/sparc/sparc32/jmp_buf-macros.h: Likewise.
3087         * sysdeps/unix/sysv/linux/sparc/sparc64/jmp_buf-macros.h: Likewise.
3088         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/jmp_buf-macros.h:
3089         Likewise.
3090         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/jmp_buf-macros.h:
3091         Likewise.
3092         * sysdeps/unix/sysv/linux/tile/tilepro/jmp_buf-macros.h: Likewise.
3093         * sysdeps/unix/sysv/linux/x86_64/64/jmp_buf-macros.h: Likewise.
3094         * sysdeps/unix/sysv/linux/x86_64/x32/jmp_buf-macros.h: Likewise.
3096 2017-11-07  Joseph Myers  <joseph@codesourcery.com>
3098         * include/float.h
3099         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
3100         && __HAVE_FLOAT32] (FLT32_MANT_DIG): New macro.
3101         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
3102         && __HAVE_FLOAT32] (FLT32_DECIMAL_DIG): Likewise.
3103         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
3104         && __HAVE_FLOAT32] (FLT32_DIG): Likewise.
3105         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
3106         && __HAVE_FLOAT32] (FLT32_MIN_EXP): Likewise.
3107         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
3108         && __HAVE_FLOAT32] (FLT32_MIN_10_EXP): Likewise.
3109         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
3110         && __HAVE_FLOAT32] (FLT32_MAX_EXP): Likewise.
3111         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
3112         && __HAVE_FLOAT32] (FLT32_MAX_10_EXP): Likewise.
3113         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
3114         && __HAVE_FLOAT32] (FLT32_MAX): Likewise.
3115         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
3116         && __HAVE_FLOAT32] (FLT32_EPSILON): Likewise.
3117         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
3118         && __HAVE_FLOAT32] (FLT32_MIN): Likewise.
3119         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
3120         && __HAVE_FLOAT32] (FLT32_TRUE_MIN): Likewise.
3121         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
3122         && __HAVE_FLOAT64] (FLT64_MANT_DIG): Likewise.
3123         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
3124         && __HAVE_FLOAT64] (FLT64_DECIMAL_DIG): Likewise.
3125         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
3126         && __HAVE_FLOAT64] (FLT64_DIG): Likewise.
3127         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
3128         && __HAVE_FLOAT64] (FLT64_MIN_EXP): Likewise.
3129         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
3130         && __HAVE_FLOAT64] (FLT64_MIN_10_EXP): Likewise.
3131         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
3132         && __HAVE_FLOAT64] (FLT64_MAX_EXP): Likewise.
3133         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
3134         && __HAVE_FLOAT64] (FLT64_MAX_10_EXP): Likewise.
3135         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
3136         && __HAVE_FLOAT64] (FLT64_MAX): Likewise.
3137         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
3138         && __HAVE_FLOAT64] (FLT64_EPSILON): Likewise.
3139         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
3140         && __HAVE_FLOAT64] (FLT64_MIN): Likewise.
3141         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
3142         && __HAVE_FLOAT64] (FLT64_TRUE_MIN): Likewise.
3143         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
3144         && __HAVE_FLOAT32X] (FLT32X_MANT_DIG): Likewise.
3145         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
3146         && __HAVE_FLOAT32X] (FLT32X_DECIMAL_DIG): Likewise.
3147         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
3148         && __HAVE_FLOAT32X] (FLT32X_DIG): Likewise.
3149         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
3150         && __HAVE_FLOAT32X] (FLT32X_MIN_EXP): Likewise.
3151         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
3152         && __HAVE_FLOAT32X] (FLT32X_MIN_10_EXP): Likewise.
3153         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
3154         && __HAVE_FLOAT32X] (FLT32X_MAX_EXP): Likewise.
3155         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
3156         && __HAVE_FLOAT32X] (FLT32X_MAX_10_EXP): Likewise.
3157         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
3158         && __HAVE_FLOAT32X] (FLT32X_MAX): Likewise.
3159         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
3160         && __HAVE_FLOAT32X] (FLT32X_EPSILON): Likewise.
3161         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
3162         && __HAVE_FLOAT32X] (FLT32X_MIN): Likewise.
3163         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
3164         && __HAVE_FLOAT32X] (FLT32X_TRUE_MIN): Likewise.
3165         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
3166         && __HAVE_FLOAT64X] (FLT64X_MANT_DIG): Likewise.
3167         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
3168         && __HAVE_FLOAT64X] (FLT64X_DECIMAL_DIG): Likewise.
3169         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
3170         && __HAVE_FLOAT64X] (FLT64X_DIG): Likewise.
3171         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
3172         && __HAVE_FLOAT64X] (FLT64X_MIN_EXP): Likewise.
3173         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
3174         && __HAVE_FLOAT64X] (FLT64X_MIN_10_EXP): Likewise.
3175         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
3176         && __HAVE_FLOAT64X] (FLT64X_MAX_EXP): Likewise.
3177         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
3178         && __HAVE_FLOAT64X] (FLT64X_MAX_10_EXP): Likewise.
3179         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
3180         && __HAVE_FLOAT64X] (FLT64X_MAX): Likewise.
3181         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
3182         && __HAVE_FLOAT64X] (FLT64X_EPSILON): Likewise.
3183         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
3184         && __HAVE_FLOAT64X] (FLT64X_MIN): Likewise.
3185         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
3186         && __HAVE_FLOAT64X] (FLT64X_TRUE_MIN): Likewise.
3188         * stdlib/tst-strtod.h (F16): New macro.
3189         (F32): Likewise.
3190         (F64): Likewise.
3191         (F32X): Likewise.
3192         (F64X): Likewise.
3193         (F128X): Likewise.
3194         (IF_FLOAT16): Likewise.
3195         (IF_FLOAT32): Likewise.
3196         (IF_FLOAT64): Likewise.
3197         (IF_FLOAT32X): Likewise.
3198         (IF_FLOAT64X): Likewise.
3199         (IF_FLOAT128X): Likewise.
3200         (GEN_TEST_STRTOD_FOREACH): Conditionally call macros for _Float16,
3201         _Float32, _Float64, _Float32x, _Float64x and _Float128x.
3202         (STRTOD_TEST_FOREACH): Likewise.
3203         * stdlib/tst-strtod-round-skeleton.c (CHOOSE_f32): New macro.
3204         (CHOOSE_f64): Likewise.
3205         (CHOOSE_f32x): Likewise.
3206         (CHOOSE_f64x): Likewise.
3208 2017-11-07  Andreas Schwab  <schwab@suse.de>
3210         * nptl/Makefile (tests-internal): Remove tst-typesizes.
3212 2017-11-07  Mike FABIAN  <mfabian@redhat.com>
3214         [BZ #22403]
3215         * localedata/locales/mfe_MU (LC_TIME): Fix wrong d_fmt, / needs
3216         to be escaped.
3217         * localedata/locales/miq_NI (LC_TIME): Fix wrong d_fmt, / needs
3218         to be escaped.
3220 2017-11-07  Claude Paroz <claude@2xlibre.net>
3222         [BZ #22403]
3223         * localedata/locales/an_ES (LC_TIME): Fix wrong d_fmt, / needs
3224         to be escaped.
3225         * localedata/locales/kab_DZ (LC_TIME): Fix wrong d_fmt, / needs
3226         to be escaped.
3227         * localedata/locales/om_ET (LC_TIME): Fix wrong d_fmt, / needs
3228         to be escaped.
3230 2017-11-07  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3232         [BZ #22298]
3233         * nptl/allocatestack.c (allocate_stack): Check if
3234         __PTHREAD_MUTEX_HAVE_PREV is non-zero, instead if
3235         __PTHREAD_MUTEX_HAVE_PREV is defined.
3236         * nptl/descr.h (pthread): Likewise.
3237         * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
3238         Likewise.
3239         * nptl/pthread_create.c (START_THREAD_DEFN): Likewise.
3240         * sysdeps/nptl/fork.c (__libc_fork): Likewise.
3241         * sysdeps/nptl/pthread.h (PTHREAD_MUTEX_INITIALIZER): Likewise.
3242         * sysdeps/nptl/bits/thread-shared-types.h
3243         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION): New
3244         defines.
3245         (__pthread_internal_list): Check __PTHREAD_MUTEX_USE_UNION instead
3246         of __WORDSIZE for internal layout.
3247         (__pthread_mutex_s): Check __PTHREAD_MUTEX_NUSERS_AFTER_KIND instead
3248         of __WORDSIZE for internal __nusers layout and __PTHREAD_MUTEX_USE_UNION
3249         instead of __WORDSIZE whether to use an union for __spins and __list
3250         fields.
3251         (__PTHREAD_MUTEX_HAVE_PREV): Define also for __PTHREAD_MUTEX_USE_UNION
3252         case.
3253         * sysdeps/aarch64/nptl/bits/pthreadtypes-arch.h
3254         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION): New
3255         defines.
3256         * sysdeps/alpha/nptl/bits/pthreadtypes-arch.h
3257         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
3258         Likewise.
3259         * sysdeps/arm/nptl/bits/pthreadtypes-arch.h
3260         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
3261         Likewise.
3262         * sysdeps/hppa/nptl/bits/pthreadtypes-arch.h
3263         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
3264         Likewise.
3265         * sysdeps/ia64/nptl/bits/pthreadtypes-arch.h
3266         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
3267         Likewise.
3268         * sysdeps/m68k/nptl/bits/pthreadtypes-arch.h
3269         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
3270         Likewise.
3271         * sysdeps/microblaze/nptl/bits/pthreadtypes-arch.h
3272         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
3273         Likewise.
3274         * sysdeps/mips/nptl/bits/pthreadtypes-arch.h
3275         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
3276         Likewise.
3277         * sysdeps/nios2/nptl/bits/pthreadtypes-arch.h
3278         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
3279         Likewise.
3280         * sysdeps/powerpc/nptl/bits/pthreadtypes-arch.h
3281         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
3282         Likewise.
3283         * sysdeps/s390/nptl/bits/pthreadtypes-arch.h
3284         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
3285         Likewise.
3286         * sysdeps/sh/nptl/bits/pthreadtypes-arch.h
3287         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
3288         Likewise.
3289         * sysdeps/sparc/nptl/bits/pthreadtypes-arch.h
3290         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
3291         Likewise.
3292         * sysdeps/tile/nptl/bits/pthreadtypes-arch.h
3293         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
3294         Likewise.
3295         * sysdeps/x86/nptl/bits/pthreadtypes-arch.h
3296         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
3297         Likewise.
3299         * nptl/pthreadP.h (ASSERT_TYPE_SIZE, ASSERT_PTHREAD_INTERNAL_SIZE):
3300         New macros.
3301         * nptl/pthread_attr_init.c (__pthread_mutex_init): Add build time
3302         checks for expected input type size.
3303         * nptl/pthread_barrier_init.c (__pthread_barrier_init): Likewise.
3304         * nptl/pthread_barrierattr_init.c (pthread_barrierattr_init):
3305         Likewise.
3306         * nptl/pthread_cond_init.c (__pthread_cond_init): Likewise.
3307         * nptl/pthread_condattr_init.c (__pthread_condattr_init): Likewise.
3308         * nptl/pthread_mutex_init.c (__pthread_mutex_init): Likewise.
3309         * nptl/pthread_mutexattr_init.c (__pthread_mutexattr_init): Likewise.
3310         * nptl/pthread_rwlock_init.c (__pthread_rwlock_init): Likewise.
3311         * nptl/pthread_rwlockattr_init.c (pthread_rwlockattr_init): Likewise.
3312         * nptl/sem_init.c (__new_sem_init, __old_sem_init): Likewise
3313         * nptl/pthread_attr_destroy.c (__pthread_attr_destroy): Remove
3314         superflous runtime assert check.
3315         * nptl/pthread_attr_getaffinity.c (__pthread_attr_getaffinity_new):
3316         Likewise.
3317         * nptl/pthread_attr_getdetachstate.c (__pthread_attr_getdetachstate):
3318         Likewise.
3319         * nptl/pthread_attr_getguardsize.c (pthread_attr_getguardsize):
3320         Likewise.
3321         * nptl/pthread_attr_getinheritsched.c (__pthread_attr_getinheritsched):
3322         Likewise.
3323         * nptl/pthread_attr_getschedparam.c (__pthread_attr_getschedparam):
3324         Likewise.
3325         * nptl/pthread_attr_getschedpolicy.c (__pthread_attr_getschedpolicy):
3326         Likewise.
3327         * nptl/pthread_attr_getscope.c (__pthread_attr_getscope): Likewise.
3328         * nptl/pthread_attr_getstack.c (__pthread_attr_getstack): Likewise.
3329         * nptl/pthread_attr_getstackaddr.c (__pthread_attr_getstackaddr):
3330         Likewise.
3331         * nptl/pthread_attr_getstacksize.c (__pthread_attr_getstacksize):
3332         Likewise.
3333         * nptl/pthread_attr_setaffinity.c (__pthread_attr_setaffinity_new):
3334         Likewise.
3335         * nptl/pthread_attr_setdetachstate.c (__pthread_attr_setdetachstate):
3336         Likewise.
3337         * nptl/pthread_attr_setguardsize.c (pthread_attr_setguardsize):
3338         Likewise.
3339         * nptl/pthread_attr_setinheritsched.c
3340         (__pthread_attr_setinheritsched): Likewise.
3341         * nptl/pthread_attr_setschedparam.c (__pthread_attr_setschedparam):
3342         Likewise.
3343         * nptl/pthread_attr_setschedpolicy.c (__pthread_attr_setschedpolicy):
3344         Likewise.
3345         * nptl/pthread_attr_setscope.c (__pthread_attr_setscope): Likewise.
3346         * nptl/pthread_attr_setstack.c (__pthread_attr_setstack,
3347         __old_pthread_attr_setstack): Likewise.
3348         * nptl/pthread_attr_setstackaddr.c (__pthread_attr_setstackaddr):
3349         Likewise.
3350         * nptl/pthread_attr_setstacksize.c (__pthread_attr_setstacksize):
3351         Likewise.
3352         * nptl/pthread_getattr_default_np.c (pthread_getattr_default_np):
3353         Likewise.
3354         * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Likewise.
3355         * nptl/pthread_setattr_default_np.c (pthread_setattr_default_np):
3356         Likewise.
3357         * nptl/tst-typesizes.c: Remove file.
3359         * nptl/pthreadP.h (ASSERT_PTHREAD_STRING,
3360         ASSERT_PTHREAD_INTERNAL_OFFSET): New macro.
3361         * nptl/pthread_mutex_init.c (__pthread_mutex_init): Add build time
3362         checks for internal pthread_mutex_t offsets.
3363         * sysdeps/aarch64/nptl/pthread-offsets.h
3364         (__PTHREAD_MUTEX_NUSERS_OFFSET, __PTHREAD_MUTEX_KIND_OFFSET,
3365         __PTHREAD_MUTEX_SPINS_OFFSET, __PTHREAD_MUTEX_ELISION_OFFSET,
3366         __PTHREAD_MUTEX_LIST_OFFSET): New macro.
3367         * sysdeps/alpha/nptl/pthread-offsets.h: Likewise.
3368         * sysdeps/arm/nptl/pthread-offsets.h: Likewise.
3369         * sysdeps/hppa/nptl/pthread-offsets.h: Likewise.
3370         * sysdeps/i386/nptl/pthread-offsets.h: Likewise.
3371         * sysdeps/ia64/nptl/pthread-offsets.h: Likewise.
3372         * sysdeps/m68k/nptl/pthread-offsets.h: Likewise.
3373         * sysdeps/microblaze/nptl/pthread-offsets.h: Likewise.
3374         * sysdeps/mips/nptl/pthread-offsets.h: Likewise.
3375         * sysdeps/nios2/nptl/pthread-offsets.h: Likewise.
3376         * sysdeps/powerpc/nptl/pthread-offsets.h: Likewise.
3377         * sysdeps/s390/nptl/pthread-offsets.h: Likewise.
3378         * sysdeps/sh/nptl/pthread-offsets.h: Likewise.
3379         * sysdeps/sparc/nptl/pthread-offsets.h: Likewise.
3380         * sysdeps/tile/nptl/pthread-offsets.h: Likewise.
3381         * sysdeps/x86_64/nptl/pthread-offsets.h: Likewise.
3383 2017-11-07  Florian Weimer  <fweimer@redhat.com>
3385         * bits/mman-linux.h: Move ...
3386         * sysdeps/unix/sysv/linux/bits/mman-linux.h: ... here.  Update
3387         comment.
3388         * sysdeps/unix/sysv/linux/bits/Makefile (sysdep_headers): Remove
3389         outdated comment.
3391 2017-11-07  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
3393         * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S (STRNLEN):
3394         Redefine STRNLEN as __strnlen_power8.
3396 2017-11-06  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3398         * signal/sighold.c (sighold): Optimize implementation.
3400         * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Asssume
3401         __NR_rt_sigqueueinfo.
3403         * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
3404         __sigtimedwait.
3405         * sysdeps/unix/sysv/linux/sigtimedwait.c: Simplify includes and
3406         assume __NR_rt_sigtimedwait.
3407         * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Call __sigtimedwait
3408         and add LIBC_CANCEL_HANDLED for cancellation marking.
3409         * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
3411         * sysdeps/arm/armv7/multiarch/Makefile [$(subdir) = string]
3412         (sysdeps_routines): Add memchr_noneon.
3413         * sysdeps/arm/armv7/multiarch/ifunc-memchr.h: New file.
3414         * sysdeps/arm/armv7/multiarch/memchr_noneon.S: Likewise.
3415         * sysdeps/arm/armv7/multiarch/rtld-memchr.S: Likewise.
3416         * sysdeps/arm/armv7/multiarch/memchr.S: Remove file.
3417         * sysdeps/arm/armv7/multiarch/memchr.c: New file.
3418         * sysdeps/arm/armv7/multiarch/memchr_impl.S: Move to ...
3419         * sysdeps/arm/armv7/multiarch/memchr_neon.S: ... here.
3421         * sysdeps/arm/arm-ifunc.h: New file.
3422         * sysdeps/arm/armv7/multiarch/ifunc-memcpy.h: Likewise.
3423         * sysdeps/arm/armv7/multiarch/memcpy.c: Likewise.
3424         * sysdeps/arm/armv7/multiarch/memcpy_arm.S: Likewise.
3425         * sysdeps/arm/armv7/multiarch/rtld-memcpy.S: Likewise.
3426         * sysdeps/arm/armv7/multiarch/memcpy_neon.S [!__ARM_NEON__]
3427         (__memcpy_neon): Avoid create hidden alias.
3428         * sysdeps/arm/armv7/multiarch/memcpy_vfp.S [!__ARM_NEON_]
3429         (__memcpy_vfp): Likewise.
3430         * sysdeps/arm/armv7/multiarch/Makefile [$(subdir) = string]
3431         (sysdep_routines): Add memcpy_arm.
3432         * sysdeps/arm/armv7/multiarch/memcpy.S: Remove file.
3434 2017-11-06  H.J. Lu  <hongjiu.lu@intel.com>
3436         [BZ #22362]
3437         * Makerules (make-link-multidir): New.
3438         * config.make.in (multidir): New.
3439         * configure.ac (libc_cv_multidir): New.  AC_SUBST.
3440         * configure: Regenerated.
3441         * csu/Makefile [$(multidir) != .](multilib-extra-objs): New.
3442         [$(multidir) != .](extra-objs): Add $(multilib-extra-objs).
3443         [$(multidir) != .]($(addprefix $(objpfx)$(multidir)/, $(install-lib))):
3444         New target.
3446 2017-11-06  Joseph Myers  <joseph@codesourcery.com>
3448         [BZ #22402]
3449         * sysdeps/powerpc/bits/floatn.h: Include <bits/long-double.h>.
3450         [__NO_LONG_DOUBLE_MATH] (__HAVE_FLOAT128): Define to 0.
3452 2017-11-04  Mike FABIAN  <mfabian@redhat.com>
3454         * localedata/locales/tpi_PG (LC_TIME): Fix wrong d_fmt, / needs
3455         to be escaped.
3457 2017-11-04  Florian Weimer  <fweimer@redhat.com>
3459         * manual/llio.texi (Open-time Flags): Document O_TMPFILE.
3461 2017-11-03  Joseph Myers  <joseph@codesourcery.com>
3463         * math/math.h [__HAVE_DISTINCT_FLOAT16
3464         || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
3465         || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
3466         || __HAVE_DISTINCT_FLOAT128X]: Use #error.
3467         [__NO_LONG_DOUBLE_MATH && __HAVE_DISTINCT_FLOAT128]: Likewise.
3468         [__HAVE_DISTINCT_FLOAT128 && !__HAVE_GENERIC_SELECTION
3469         && __HAVE_FLOATN_NOT_TYPEDEF]: Likewise.
3470         [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
3471         (__MATH_TG_F32): New macro.
3472         [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
3473         (__MATH_TG_F64X): Likewise.
3474         [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
3475         (__MATH_TG): Use __MATH_TG_F32 and __MATH_TG_F64X.
3477 2017-11-03  Dmitry V. Levin  <ldv@altlinux.org>
3479         * po/de.po: Update translations.
3480         * po/ru.po: Likewise.
3482 2017-11-03  Florian Weimer  <fweimer@redhat.com>
3484         * manual/filesys.texi (Hard Links): Document linkat.
3486 2017-11-03  Joseph Myers  <joseph@codesourcery.com>
3488         * math/tgmath.h [__HAVE_DISTINCT_FLOAT16
3489         || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
3490         || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
3491         || __HAVE_DISTINCT_FLOAT128X]: Use #error.
3492         [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
3493         && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
3494         && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_F128): Handle _Float64x
3495         the same as _Float128.
3496         [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
3497         && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
3498         && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_CF128): Likewise.
3500         * stdlib/stdlib.h
3501         [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof16):
3502         Declare.
3503         [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof32):
3504         Likewise.
3505         [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof64):
3506         Likewise.
3507         [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
3508         (strtof32x): Likewise.
3509         [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
3510         (strtof64x): Likewise.
3511         [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
3512         (strtof128x): Likewise.
3513         [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
3514         (strfromf16): Likewise.
3515         [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
3516         (strfromf32): Likewise.
3517         [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
3518         (strfromf64): Likewise.
3519         [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
3520         (strfromf32x): Likewise.
3521         [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
3522         (strfromf64x): Likewise.
3523         [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
3524         (strfromf128x): Likewise.
3525         [__USE_GNU && __HAVE_FLOAT16] (strtof16_l): Likewise.
3526         [__USE_GNU && __HAVE_FLOAT32] (strtof32_l): Likewise.
3527         [__USE_GNU && __HAVE_FLOAT64] (strtof64_l): Likewise.
3528         [__USE_GNU && __HAVE_FLOAT32X] (strtof32x_l): Likewise.
3529         [__USE_GNU && __HAVE_FLOAT64X] (strtof64x_l): Likewise.
3530         [__USE_GNU && __HAVE_FLOAT128X] (strtof128x_l): Likewise.
3532 2017-11-03  Richard Henderson  <rth@twiddle.net>
3534         * sysdeps/unix/sysv/linux/aarch64/sysconf.c: New file.
3536 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
3538         * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Optimize.
3540 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
3542         * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Remove
3543         DT_TLSDESC_GOT initialization.
3544         * sysdeps/arm/dl-tlsdesc.S (_dl_tlsdesc_lazy_resolver): Remove.
3545         (_dl_tlsdesc_resolve_hold): Likewise.
3546         * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_lazy_resolver): Remove.
3547         (_dl_tlsdesc_resolve_hold): Likewise.
3548         * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_lazy_resolver_fixup): Remove.
3549         (_dl_tlsdesc_resolve_hold_fixup): Likewise.
3551 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
3553         * sysdeps/arm/dl-machine.h (elf_machine_rel): Remove volatile.
3555 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
3557         [BZ #18572]
3558         * sysdeps/arm/dl-machine.h (elf_machine_lazy_rel): Do symbol binding
3559         non-lazily for R_ARM_TLS_DESC.
3561 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
3563         [BZ #17078]
3564         * sysdeps/arm/dl-machine.h (elf_machine_rela): Remove the
3565         R_ARM_TLS_DESC case.
3566         (elf_machine_lazy_rel): Remove the prelink check.
3568 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
3570         * sysdeps/aarch64/dl-machine.h (elf_machine_runtime_setup): Remove
3571         DT_TLSDESC_GOT initialization.
3572         * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_return_lazy): Remove.
3573         (_dl_tlsdesc_resolve_rela): Likewise.
3574         (_dl_tlsdesc_resolve_hold): Likewise.
3575         (_dl_tlsdesc_undefweak): Remove ldar.
3576         (_dl_tlsdesc_dynamic): Likewise.
3577         * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_return_lazy): Remove.
3578         (_dl_tlsdesc_resolve_rela): Likewise.
3579         (_dl_tlsdesc_resolve_hold): Likewise.
3580         * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_resolve_rela_fixup): Remove.
3581         (_dl_tlsdesc_resolve_hold_fixup): Likewise.
3582         (_dl_tlsdesc_resolve_rela): Likewise.
3583         (_dl_tlsdesc_resolve_hold): Likewise.
3585 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
3587         * sysdeps/aarch64/dl-machine.h (elf_machine_lazy_rel): Do symbol
3588         binding and initialization non-lazily for R_AARCH64_TLSDESC.
3590 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
3592         * elf/tlsdeschtab.h (_dl_tls_resolve_early_return_p): Mark unused.
3593         (_dl_tlsdesc_wake_up_held_fixups): Likewise.
3595 2017-11-02  Joseph Myers  <joseph@codesourcery.com>
3597         * wcsmbs/wchar.h [__HAVE_FLOAT16 && __USE_GNU] (wcstof16):
3598         Declare.
3599         [__HAVE_FLOAT32 && __USE_GNU] (wcstof32): Likewise.
3600         [__HAVE_FLOAT64 && __USE_GNU] (wcstof64): Likewise.
3601         [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x): Likewise.
3602         [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x): Likewise.
3603         [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x): Likewise.
3604         [__HAVE_FLOAT16 && __USE_GNU] (wcstof16_l): Likewise.
3605         [__HAVE_FLOAT32 && __USE_GNU] (wcstof32_l): Likewise.
3606         [__HAVE_FLOAT64 && __USE_GNU] (wcstof64_l): Likewise.
3607         [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x_l): Likewise.
3608         [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x_l): Likewise.
3609         [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x_l): Likewise.
3611 2017-11-02  Mike FABIAN  <mfabian@redhat.com>
3613         [BZ #22382]
3614         * localedata/locales/tpi_PG (LC_TIME): Fix syntax error.
3615         * localedata/locales/tpi_PG: Add standard header.
3617 2017-11-02  Florian Weimer  <fweimer@redhat.com>
3619         test-errno-linux: quotactl can fail with EPERM in containers.
3620         * sysdeps/unix/sysv/linux/test-errno-linux.c
3621         (LIST, LIST_FORWARD): New macros.
3622         (check_error_in_list): New function.
3623         (test_wrp_rv): Accept list of permitted error codes.
3624         (test_wrp_rv2): Remove.
3625         (test_wrp): Call test_wrp_rv with list of error codes.
3626         (test_wrp2): Accept list of error codes.
3627         (do_test): Adjust.  Allow EPERM for quotactl.
3629 2017-11-02  Florian Weimer  <fweimer@redhat.com>
3631         * stdio-common/bug16.c (do_test): Use array_length.
3632         * stdio-common/errlist.c (_sys_nerr): Likewise.
3633         * stdio-common/printf_fp.c (PRINTF_FP_FETCH): Likewise.
3634         * stdio-common/printf_fphex.c (__printf_fphex): Use array_end.
3635         * stdio-common/psiginfo.c (psiginfo): Use array_length.
3636         * stdio-common/test-vfprintf.c (nlocs): Remove definition.
3637         (do_test): Use array_length.
3638         * stdio-common/tst-fphex.c (do_test): Use array_end, array_length.
3639         * stdio-common/tst-long-dbl-fphex.c (do_test): Use array_length.
3640         * stdio-common/tst-printf-round.c (do_test): Likewise.
3641         * stdio-common/tst-swprintf.c (nbuf): Remove definition.
3642         (CHECK): Use array_length.
3643         * stdio-common/tstdiomisc.c (t3, F): Likewise.
3644         * stdio-common/tstscanf.c (main): Likewise.
3645         * stdio-common/vfprintf.c (process_string_arg): Likewise.
3647 2017-11-02  Florian Weimer  <fweimer@redhat.com>
3649         Add array_length and array_end macros.
3650         * include/array_length.h: New file.
3652 2017-11-02  Florian Weimer  <fweimer@redhat.com>
3654         [BZ #22332]
3655         * posix/tst-glob-tilde.c (do_noescape): New variable.
3656         (one_test): Process it.
3657         (do_test): Set do_noescape.  Add unescaping test case.
3659 2017-11-01  Joseph Myers  <joseph@codesourcery.com>
3661         * math/complex.h
3662         [(__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC))
3663         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Include <bits/cmathcalls.h>
3664         with appropriate macros defined and undefined.
3665         [(__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC))
3666         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
3667         [(__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC))
3668         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
3669         [(__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC))
3670         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
3671         [(__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC))
3672         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
3673         [(__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC))
3674         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
3676         * math/complex.h
3677         [(__HAVE_DISTINCT_FLOAT128 || (__HAVE_FLOAT128 && !LIBC))
3678         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Move conditional code after
3679         that for long double.  Do not condition define and undefine of
3680         _Mdouble_complex_ on [__CFLOAT128].
3682 2017-11-01  H.J. Lu  <hongjiu.lu@intel.com>
3684         * sysdeps/i386/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
3685         of <sysdeps/generic/sysdep.h>.
3686         (ALIGNARG): Removed.
3687         (ASM_SIZE_DIRECTIVE): Likewise.
3688         (ENTRY): Likewise.
3689         (END): Likewise.
3690         (ENTRY_CHK): Likewise.
3691         (END_CHK): Likewise.
3692         (syscall_error): Likewise.
3693         (mcount): Likewise.
3694         (PSEUDO_END): Likewise.
3695         (L): Likewise.
3696         (atom_text_section): Likewise.
3697         * sysdeps/x86/sysdep.h: New file.
3698         * sysdeps/x86_64/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
3699         of <sysdeps/generic/sysdep.h>.
3700         (ALIGNARG): Removed.
3701         (ASM_SIZE_DIRECTIVE): Likewise.
3702         (ENTRY): Likewise.
3703         (END): Likewise.
3704         (ENTRY_CHK): Likewise.
3705         (END_CHK): Likewise.
3706         (syscall_error): Likewise.
3707         (mcount): Likewise.
3708         (PSEUDO_END): Likewise.
3709         (L): Likewise.
3710         (atom_text_section): Likewise.
3712 2017-10-31  Rafal Luzynski  <digitalfreak@lingonborough.com>
3714         * localedata/unicode-gen/gen_unicode_ctype.py (output_head):
3715         category of LC_CTYPE set to "i18n:2012".
3716         * localedata/locales/i18n_ctype: Regenerate.
3718 2017-10-31  Yury Norov  <ynorov@caviumnetworks.com>
3720         * sysdeps/unix/sysv/linux/sigprocmask.c: Remove useless #ifdefs.
3721         * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
3722         * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
3723         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
3725         * sysdeps/unix/sysv/linux/ia64/sigpending.c: Remove file.
3726         * sysdeps/unix/sysv/linux/s390/s390-64/sigpending.c: Likewise.
3727         * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Likewise.
3728         * sysdeps/unix/sysv/linux/x86_64/sigpending.c: Likewise.
3730 2017-10-31  Joseph Myers  <joseph@codesourcery.com>
3732         * math/complex.h
3733         [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF16):
3734         New macro.
3735         [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF32):
3736         Likewise.
3737         [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF64):
3738         Likewise.
3739         [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
3740         (CMPLXF32X): Likewise.
3741         [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
3742         (CMPLXF64X): Likewise.
3743         [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
3744         (CMPLXF128X): Likewise.
3746         * math/math.h
3747         [__FLT_EVAL_METHOD__ == 0 || __FLT_EVAL_METHOD__ == 32]
3748         (__MATH_EVAL_FMT2): Define to add 0.0f.
3750 2017-10-31  Alan Modra  <amodra@gmail.com>
3752         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-power8.S: Don't
3753         include sysdep.h.
3754         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-power5+.S: Likewise.
3755         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-ppc64.S: Likewise.
3756         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-power8.S: Likewise.
3757         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-ppc64.c: Likewise.
3758         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power7.S: Likewise.
3759         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power8.S: Likewise.
3760         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-power5+.S: Likewise.
3761         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-ppc64.S: Likewise.
3762         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-power5+.S: Likewise.
3763         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-ppc64.S: Likewise.
3764         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: Likewise.
3765         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
3766         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-power5+.S: Likewise.
3767         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-ppc64.S: Likewise.
3768         * sysdeps/powerpc/powerpc64/multiarch/memchr-power7.S: Likewise.
3769         * sysdeps/powerpc/powerpc64/multiarch/memchr-power8.S: Likewise.
3770         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power4.S: Likewise.
3771         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power7.S: Likewise.
3772         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power8.S: Likewise.
3773         * sysdeps/powerpc/powerpc64/multiarch/memcpy-a2.S: Likewise.
3774         * sysdeps/powerpc/powerpc64/multiarch/memcpy-cell.S: Likewise.
3775         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power4.S: Likewise.
3776         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power6.S: Likewise.
3777         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power7.S: Likewise.
3778         * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S: Likewise.
3779         * sysdeps/powerpc/powerpc64/multiarch/memmove-power7.S: Likewise.
3780         * sysdeps/powerpc/powerpc64/multiarch/mempcpy-power7.S: Likewise.
3781         * sysdeps/powerpc/powerpc64/multiarch/memrchr-power7.S: Likewise.
3782         * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S: Likewise.
3783         * sysdeps/powerpc/powerpc64/multiarch/memset-power4.S: Likewise.
3784         * sysdeps/powerpc/powerpc64/multiarch/memset-power6.S: Likewise.
3785         * sysdeps/powerpc/powerpc64/multiarch/memset-power7.S: Likewise.
3786         * sysdeps/powerpc/powerpc64/multiarch/memset-power8.S: Likewise.
3787         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-power7.S: Likewise.
3788         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power8.S: Likewise.
3789         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power7.S: Likewise.
3790         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Likewise.
3791         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: Likewise.
3792         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power8.S: Likewise.
3793         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: Likewise.
3794         * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S: Likewise.
3795         * sysdeps/powerpc/powerpc64/multiarch/strchr-power7.S: Likewise.
3796         * sysdeps/powerpc/powerpc64/multiarch/strchr-power8.S: Likewise.
3797         * sysdeps/powerpc/powerpc64/multiarch/strchr-ppc64.S: Likewise.
3798         * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power7.S: Likewise.
3799         * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power8.S: Likewise.
3800         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power7.S: Likewise.
3801         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Likewise.
3802         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
3803         * sysdeps/powerpc/powerpc64/multiarch/strcmp-ppc64.S: Likewise.
3804         * sysdeps/powerpc/powerpc64/multiarch/strcpy-power8.S: Likewise.
3805         * sysdeps/powerpc/powerpc64/multiarch/strcspn-power8.S: Likewise.
3806         * sysdeps/powerpc/powerpc64/multiarch/strlen-power7.S: Likewise.
3807         * sysdeps/powerpc/powerpc64/multiarch/strlen-power8.S: Likewise.
3808         * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S: Likewise.
3809         * sysdeps/powerpc/powerpc64/multiarch/strncase-power8.S: Likewise.
3810         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power4.S: Likewise.
3811         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power7.S: Likewise.
3812         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
3813         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
3814         * sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.S: Likewise.
3815         * sysdeps/powerpc/powerpc64/multiarch/strncpy-power7.S: Likewise.
3816         * sysdeps/powerpc/powerpc64/multiarch/strncpy-power8.S: Likewise.
3817         * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: Likewise.
3818         * sysdeps/powerpc/powerpc64/multiarch/strnlen-power8.S: Likewise.
3819         * sysdeps/powerpc/powerpc64/multiarch/strrchr-power7.S: Likewise.
3820         * sysdeps/powerpc/powerpc64/multiarch/strrchr-power8.S: Likewise.
3821         * sysdeps/powerpc/powerpc64/multiarch/strspn-power8.S: Likewise.
3822         * sysdeps/powerpc/powerpc64/multiarch/strstr-power7.S: Likewise.
3824         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-ppc64.S: Don't
3825         include sysdep.h and math_ldbl_opt.h.
3827         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-power5+.S: Don't
3828         include sysdep.h and math_ldbl_opt.h.  Include shlib-compat.h.
3829         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-ppc64.S: Likewise.
3830         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-power6.S: Likewise.
3831         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-ppc64.S: Likewise.
3832         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-power5+.S: Likewise.
3833         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power7.S: Likewise.
3834         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power8.S: Likewise.
3835         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power5.S: Likewise.
3836         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6.S: Likewise.
3837         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6x.S: Likewise.
3838         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power7.S: Likewise.
3839         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power8.S: Likewise.
3840         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S: Likewise.
3841         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power6x.S: Likewise.
3842         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power8.S: Likewise.
3843         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-ppc64.S: Likewise.
3844         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power5+.S: Likewise.
3845         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power6x.S: Likewise.
3846         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power8.S: Likewise.
3847         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-ppc64.S: Likewise.
3848         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf-ppc64.S: Likewise.
3849         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-power5+.S: Likewise.
3850         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-ppc64.S: Likewise.
3851         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-power5+.S: Likewise.
3852         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-ppc64.S: Likewise.
3854 2017-10-31  Alan Modra  <amodra@gmail.com>
3856         * sysdeps/powerpc/powerpc64/multiarch/strncase_l-power7.c: Include
3857         string/strncase_l.c, not string/strncase.c.
3858         (USE_IN_EXTENDED_LOCALE_MODEL): Don't define.
3859         (libc_hidden_def): Redefine.
3861 2017-10-31  Alan Modra  <amodra@gmail.com>
3863         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S:
3864         (__STRCMP, STRCMP, __strcasecmp_l): Define.
3865         (__strcasecmp): Don't define.
3867 2017-10-31  Alan Modra  <amodra@gmail.com>
3869         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Wrap in
3870         IS_IN (libc).
3871         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
3872         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
3873         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
3875 2017-10-31  Alan Modra  <amodra@gmail.com>
3877         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Don't define
3878         USE_AS_STPNCPY.
3880 2017-10-31  Alan Modra  <amodra@gmail.com>
3882         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S (hidden_def):
3883         Redefine only when SHARED.
3885 2017-10-30  Joseph Myers  <joseph@codesourcery.com>
3887         * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
3888         Include <bits/math-finite.h> with appropriate macros defined and
3889         undefined.
3890         [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
3891         [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
3892         [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
3893         [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
3894         [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
3896         * math/math.h [!_Mfloat_] (_Mfloat_): Do not define.
3897         [!_Mlong_double_] (_Mlong_double_): Likewise.
3898         [!_Mfloat16_] (_Mfloat16_): Likewise.
3899         [!_Mfloat32_] (_Mfloat32_): Likewise.
3900         [!_Mfloat64_] (_Mfloat64_): Likewise.
3901         [!_Mfloat128_] (_Mfloat128_): Likewise.
3902         [!_Mfloat32x_] (_Mfloat32x_): Likewise.
3903         [!_Mfloat64x_] (_Mfloat64x_): Likewise.
3904         [!_Mfloat128x_] (_Mfloat128x_): Likewise.
3905         (_Mdouble_): Define without indirection through those macros.
3906         * math/complex.h [!_Mfloat_] (_Mfloat_): Do not define.
3907         [!_Mfloat128_] (_Mfloat128_): Likewise.
3908         [_Mlong_double_] (_Mlong_double_): Likewise.
3909         (_Mdouble_): Define without indirection through those macros.
3910         * math/Makefile [$(long-double-fcts) != yes] (math-CPPFLAGS): Do
3911         not add -D_Mlong_double_=double.
3912         * include/math.h [_ISOMAC] (_Mlong_double_): Do not undefine.
3913         * math/test-signgam-finite-c99.c (_Mlong_double_): Likewise.
3915 2017-10-30  H.J. Lu  <hongjiu.lu@intel.com>
3917         * sysdeps/x86/libc-start.c: Add /* !SHARED */.
3919 2017-10-30  H.J. Lu  <hongjiu.lu@intel.com>
3921         * sysdeps/x86/libc-start.c: Reformat.
3923 2017-10-30  H.J. Lu  <hongjiu.lu@intel.com>
3925         [BZ #22353]
3926         * sysdeps/i386/i586/strcpy.S (STRCPY): Use conditional branches.
3927         (1): Renamed to ...
3928         (L(Src0)): This.
3929         (L(Src1)): New.
3930         (L(Src2)): Likewise.
3931         (L(1)): Renamed to ...
3932         (L(Src3)): This.
3934 2017-10-30  Joseph Myers  <joseph@codesourcery.com>
3936         * math/math.h [__HAVE_FLOAT16 && __USE_GNU] (M_Ef16): New macro.
3937         [__HAVE_FLOAT16 && __USE_GNU] (M_LOG2Ef16): Likewise.
3938         [__HAVE_FLOAT16 && __USE_GNU] (M_LOG10Ef16): Likewise.
3939         [__HAVE_FLOAT16 && __USE_GNU] (M_LN2f16): Likewise.
3940         [__HAVE_FLOAT16 && __USE_GNU] (M_LN10f16): Likewise.
3941         [__HAVE_FLOAT16 && __USE_GNU] (M_PIf16): Likewise.
3942         [__HAVE_FLOAT16 && __USE_GNU] (M_PI_2f16): Likewise.
3943         [__HAVE_FLOAT16 && __USE_GNU] (M_PI_4f16): Likewise.
3944         [__HAVE_FLOAT16 && __USE_GNU] (M_1_PIf16): Likewise.
3945         [__HAVE_FLOAT16 && __USE_GNU] (M_2_PIf16): Likewise.
3946         [__HAVE_FLOAT16 && __USE_GNU] (M_2_SQRTPIf16): Likewise.
3947         [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT2f16): Likewise.
3948         [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT1_2f16): Likewise.
3949         [__HAVE_FLOAT32 && __USE_GNU] (M_Ef32): Likewise.
3950         [__HAVE_FLOAT32 && __USE_GNU] (M_LOG2Ef32): Likewise.
3951         [__HAVE_FLOAT32 && __USE_GNU] (M_LOG10Ef32): Likewise.
3952         [__HAVE_FLOAT32 && __USE_GNU] (M_LN2f32): Likewise.
3953         [__HAVE_FLOAT32 && __USE_GNU] (M_LN10f32): Likewise.
3954         [__HAVE_FLOAT32 && __USE_GNU] (M_PIf32): Likewise.
3955         [__HAVE_FLOAT32 && __USE_GNU] (M_PI_2f32): Likewise.
3956         [__HAVE_FLOAT32 && __USE_GNU] (M_PI_4f32): Likewise.
3957         [__HAVE_FLOAT32 && __USE_GNU] (M_1_PIf32): Likewise.
3958         [__HAVE_FLOAT32 && __USE_GNU] (M_2_PIf32): Likewise.
3959         [__HAVE_FLOAT32 && __USE_GNU] (M_2_SQRTPIf32): Likewise.
3960         [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT2f32): Likewise.
3961         [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT1_2f32): Likewise.
3962         [__HAVE_FLOAT64 && __USE_GNU] (M_Ef64): Likewise.
3963         [__HAVE_FLOAT64 && __USE_GNU] (M_LOG2Ef64): Likewise.
3964         [__HAVE_FLOAT64 && __USE_GNU] (M_LOG10Ef64): Likewise.
3965         [__HAVE_FLOAT64 && __USE_GNU] (M_LN2f64): Likewise.
3966         [__HAVE_FLOAT64 && __USE_GNU] (M_LN10f64): Likewise.
3967         [__HAVE_FLOAT64 && __USE_GNU] (M_PIf64): Likewise.
3968         [__HAVE_FLOAT64 && __USE_GNU] (M_PI_2f64): Likewise.
3969         [__HAVE_FLOAT64 && __USE_GNU] (M_PI_4f64): Likewise.
3970         [__HAVE_FLOAT64 && __USE_GNU] (M_1_PIf64): Likewise.
3971         [__HAVE_FLOAT64 && __USE_GNU] (M_2_PIf64): Likewise.
3972         [__HAVE_FLOAT64 && __USE_GNU] (M_2_SQRTPIf64): Likewise.
3973         [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT2f64): Likewise.
3974         [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT1_2f64): Likewise.
3975         [__HAVE_FLOAT32X && __USE_GNU] (M_Ef32x): Likewise.
3976         [__HAVE_FLOAT32X && __USE_GNU] (M_LOG2Ef32x): Likewise.
3977         [__HAVE_FLOAT32X && __USE_GNU] (M_LOG10Ef32x): Likewise.
3978         [__HAVE_FLOAT32X && __USE_GNU] (M_LN2f32x): Likewise.
3979         [__HAVE_FLOAT32X && __USE_GNU] (M_LN10f32x): Likewise.
3980         [__HAVE_FLOAT32X && __USE_GNU] (M_PIf32x): Likewise.
3981         [__HAVE_FLOAT32X && __USE_GNU] (M_PI_2f32x): Likewise.
3982         [__HAVE_FLOAT32X && __USE_GNU] (M_PI_4f32x): Likewise.
3983         [__HAVE_FLOAT32X && __USE_GNU] (M_1_PIf32x): Likewise.
3984         [__HAVE_FLOAT32X && __USE_GNU] (M_2_PIf32x): Likewise.
3985         [__HAVE_FLOAT32X && __USE_GNU] (M_2_SQRTPIf32x): Likewise.
3986         [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT2f32x): Likewise.
3987         [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT1_2f32x): Likewise.
3988         [__HAVE_FLOAT64X && __USE_GNU] (M_Ef64x): Likewise.
3989         [__HAVE_FLOAT64X && __USE_GNU] (M_LOG2Ef64x): Likewise.
3990         [__HAVE_FLOAT64X && __USE_GNU] (M_LOG10Ef64x): Likewise.
3991         [__HAVE_FLOAT64X && __USE_GNU] (M_LN2f64x): Likewise.
3992         [__HAVE_FLOAT64X && __USE_GNU] (M_LN10f64x): Likewise.
3993         [__HAVE_FLOAT64X && __USE_GNU] (M_PIf64x): Likewise.
3994         [__HAVE_FLOAT64X && __USE_GNU] (M_PI_2f64x): Likewise.
3995         [__HAVE_FLOAT64X && __USE_GNU] (M_PI_4f64x): Likewise.
3996         [__HAVE_FLOAT64X && __USE_GNU] (M_1_PIf64x): Likewise.
3997         [__HAVE_FLOAT64X && __USE_GNU] (M_2_PIf64x): Likewise.
3998         [__HAVE_FLOAT64X && __USE_GNU] (M_2_SQRTPIf64x): Likewise.
3999         [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT2f64x): Likewise.
4000         [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT1_2f64x): Likewise.
4001         [__HAVE_FLOAT128X && __USE_GNU]: Use #error.
4003 2017-10-30  Florian Weimer  <fweimer@redhat.com>
4005         * elf/ldconfig.c (search_dir): Assume that _DIRENT_HAVE_D_TYPE is
4006         always defined.
4007         * io/tst-mkdirat.c (do_test): Likewise.
4008         * io/tst-mkfifoat.c (do_test): Likewise.
4009         * io/tst-mknodat.c (do_test): Likewise.
4010         * locale/programs/charmap-dir.c (charmap_readdir): Likewise.
4011         * locale/programs/locale.c (select_dirs): Likewise.
4012         * locale/programs/locarchive.c (add_locales_to_archive): Likewise.
4013         * posix/bug-glob2.c (my_readdir): Likewise.
4014         * posix/tst-dir.c (main): Likewise.
4015         * posix/tst-glob_lstat_compat.c (my_readdir): Likewise.
4016         * posix/tst-gnuglob-skeleton.c (my_readdir): Likewise.
4018 2017-10-30  Florian Weimer  <fweimer@redhat.com>
4020         * string/strings.h (ffsl, ffsll): Declare under __USE_MISC, not
4021         just __USE_GNU.
4023 2017-10-30  Florian Weimer  <fweimer@redhat.com>
4025         * posix/tst-gnuglob-skeleton.c: Renamed from tst-gnuglob.c.
4026         Convert to support/test-driver.c.
4027         (GLOB_FUNC, GLOB_TYPE, GLOBFREE_FUNC, DIRENT_STRUCT, STAT_STRUCT):
4028         New macro parameters.
4029         (PRINTF): Remove macro.  Use test_verbose conditionals instead.
4030         * posix/tst-gnuglob.c: New file.
4031         * posix/tst-gnuglob64.c: Likewise.
4032         * posix/Makefile (tests): Add tst-gnuglob64.
4034 2017-10-30  Michal Ostrowski <ostrowski.michal@gmail.com>
4036         [BZ #19485]
4037         * localedata/locales/csb_PL (LC_TIME): Fix “abmon” for March
4038         and use a better translation for March in “mon”.
4039         * localedata/locales/csb_PL: Use more ASCII to improve the
4040         readability of the source.
4042 2017-10-30  Mike FABIAN  <mfabian@redhat.com>
4044         [BZ #13953]
4045         * localedata/locales/km_KH: Use ASCII as much
4046         as possible for better readability of the source and
4047         remove useless comments.
4048         * localedata/locales/km_KH (LC_TIME): Remove era stuff, it
4049         was commented out and apparently wrong anyway because it was
4050         using Lao characters. If Buddhist era should be used
4051         for km_KH, a native speaker should write the correct formaat
4052         for Khmer.
4053         * localedata/locales/km_KH (LC_TIME): Add first_weekday 1
4054         (According to CLDR, the first weekday for Cambodia is Sunday).
4055         * localedata/locales/km_KH (LC_NAME): Remove name_mr and name_mrs
4056         (These were using Lao characters which must be wrong. If we get
4057         the correct data from a native speaker, we could add it back, until
4058         then it is better not to have name_mr and name_mrs at all than
4059         having it wrong).
4061 2017-10-27  Rafal Luzynski  <digitalfreak@lingonborough.com>
4063         * locale/loadlocale.c: Correct size of
4064         _nl_value_type_LC_<category> arrays.
4066 2017-10-27  Joseph Myers  <joseph@codesourcery.com>
4068         * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
4069         Include <bits/mathcalls-helper-functions.h> and <bits/mathcalls.h>
4070         with appropriate macros defined and undefined.
4071         [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
4072         [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
4073         [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
4074         [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
4075         [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
4077 2017-10-27  H.J. Lu  <hongjiu.lu@intel.com>
4079         * sysdeps/i386/fpu/libm-test-ulps: Regenerated for GCC 7 with
4080         "-O2 -march=i586".
4082 2017-10-27  Mike FABIAN  <mfabian@redhat.com>
4084         * localedata/locales/tt_RU (LC_MESSAGES): Start yesstr and nostr
4085         with lowercase letters to make it agree with CLDR.
4087 2017-10-27  Mike FABIAN  <mfabian@redhat.com>
4089         [BZ #15260]
4090         * localedata/locales/doi_IN (LC_MESSAGES): Match only for the
4091         first letters of yesstr and nostr in yesexpr and noexpr,
4092         not for the full words.
4093         * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
4094         * localedata/locales/kok_IN (LC_MESSAGES): Likewise.
4095         * localedata/locales/mr_IN (LC_MESSAGES): Likewise.
4096         * localedata/locales/sat_IN (LC_MESSAGES): Likewise.
4097         * localedata/locales/km_KH (LC_MESSAGES): Match also for the
4098         first letters of yesstr and nostr in yesexpr and noexpr,
4099         until now only English was matched in yesexpr and noexpr.
4100         * localedata/locales/tl_PH (LC_MESSAGES): Use “copy "fil_PH"”
4101         instead of “copy "en_US"”. CLDR has yesstr and nostr data for
4102         fil but not for tl. As tl and fil are very similar, using fil
4103         is probably better than using English.
4105 2017-10-27  Thierry Vignaud <thierry.vignaud@gmail.com>
4107         [BZ #21706]
4108         * localedata/locales/br_FR (LC_MESSAGES): Use all lowercase
4109         in yesstr and nostr.
4111 2017-10-26  Joseph Myers  <joseph@codesourcery.com>
4113         * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
4114         (IEC_60559_TYPES_EXT)] (SNANF16): New macro.
4115         [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32):
4116         Likewise.
4117         [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64):
4118         Likewise.
4119         [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32X):
4120         Likewise.
4121         [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64X):
4122         Likewise.
4123         [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
4124         (SNANF128X): Likewise.
4126         * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
4127         (IEC_60559_TYPES_EXT)] (HUGE_VAL_F16): New macro.
4128         [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
4129         (HUGE_VAL_F32): Likewise.
4130         [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
4131         (HUGE_VAL_F64): Likewise.
4132         [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
4133         (HUGE_VAL_F32X): Likewise.
4134         [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
4135         (HUGE_VAL_F64X): Likewise.
4136         [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
4137         (HUGE_VAL_F128X): Likewise.
4139 2017-10-26  Thierry Vignaud <thierry.vignaud@gmail.com>
4141         * localedata/locales/br_FR (LC_IDENTIFICATON): Add
4142         Thierry Vignaud <thierry.vignaud@gmail.com> as the contact
4143         for the br_FR locale.
4145 2017-10-26  Thierry Vignaud <thierry.vignaud@gmail.com>
4147         [BZ #21706]
4148         * localedata/locales/br_FR (LC_MESSAGES): Fix nostr.
4150 2017-10-25  Carlos O'Donell  <carlos@redhat.com>
4152         * locale/programs/record-status.h: Define globals, and function
4153         prototypes. Move function bodies...
4154         * locale/programs/record-status.c: ... to here. New file.
4155         * iconv/Makefile (iconv_prog-modules): Add record-status.
4156         * locale/Makefile (lib-modules): Likewise.
4157         * iconv/iconv_prog.c: Remove verbose.
4158         * iconv/iconv_prog.h: Include record-status.h (defines verbose).
4159         * locale/programs/charmap.c (charmap_read): If warn_ascii is true then
4160         record a warning about ASCII compatibility.
4161         * locale/programs/ld-monetary.c (monetary_finish): If
4162         warn_int_curr_symbol is true then record a warning about the symbol
4163         not being in our ISO 4217 list.
4164         * locale/programs/locale.c: Include record-status.h. Remove verbose.
4165         * locale/programs/localedef.c: Include ctype.h. Remove delcaration of
4166         verbose, recorded_warning_count, recorded_error_count, and be_quiet.
4167         (OPT_NO_WARN): Define.
4168         (OPT_WARN): Define.
4169         (options): Add entry for --no-warnings, and --warnings.
4170         (set_warnings): New function to enable/disable warnings.
4171         (parse_opt): Call set_warnings for OPT_NO_WARN and OPT_WARN.
4172         * locale/programs/localedef.h: Remove warn_int_curr_symbol.
4173         * localedata/gen-locale.sh: Default flags to `--quiet -c'.
4174         Add `--no-warnings=ascii' to locales using SHIFT_JIS or SHIFT_JIXX0213.
4175         Pass flags to generate_locale.
4176         (generate_locale): Accept new flag argument and pass it to localedef
4177         invocation.
4178         * localedata/Makefile (INSTALL-SUPPORTED-LOCALES): Use
4179         --no-warnings=ascii for SHIFT_JIS and SHIFT_JISX0213 charmaps.
4181         * localedata/Makefile (test-input-data): Use full file name.
4182         * localedata/da_DK.in: Rename to...
4183         * localedata/da_DK.ISO-8859-1.in: ...this.
4184         * localedata/de_DE.in: Rename to...
4185         * localedata/de_DE.ISO-8859-1.in: ...this.
4186         * localedata/en_US.in: Rename to...
4187         * localedata/en_US.ISO-8859-1.in: ...this.
4188         * localedata/fr_FR.in: Rename to...
4189         * localedata/fr_FR.UTF-8.in: ... this.
4190         * localedata/hr_HR.in: Rename to...
4191         * localedata/hr_HR.ISO-8859-2.in: ...this.
4192         * localedata/hu_HU.in: Rename to...
4193         * localedata/hu_HU.UTF-8.in: ...this.
4194         * localedata/si_LK.in: Rename to...
4195         * localedata/si_LK.UTF-8.in: ...this.
4196         * localedata/sv_SE.in: Rename to...
4197         * localedata/sv_SE.ISO-8859-1.in: ...this.
4198         * localedata/tr_TR.in: Rename to...
4199         * localedata/tr_TR.UTF-8.in: ...this.
4200         * localedata/uk_UA.in: Rename to...
4201         * localedata/uk_UA.UTF-8.in: ...this.
4202         * localedata/sort-test.sh: Test file is locale name with the
4203         suffix.
4205         * localedata/unicode-gen/Makefile (check_i18n): Rename to
4206         check_i18n_ctype. Depend on i18n_ctype-report. Check i18n_ctype-report
4207         file.
4208         * localedata/locales/i18n_ctype: Regenerate.
4209         * localedata/locales/tr_TR: Likewise.
4210         * localedata/locales/translit_circle: Likewise.
4211         * localedata/locales/translit_cjk_compat: Likewise.
4212         * localedata/locales/translit_combining: Likewise.
4213         * localedata/locales/translit_compat: Likewise.
4214         * localedata/locales/translit_font: Likewise.
4215         * localedata/locales/translit_fraction: Likewise.
4217 2017-10-25  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
4219         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Replace
4220         lxvd2x/stxvd2x with lvx/stvx.
4221         * sysdeps/powerpc/powerpc64/power7/memmove.S: Likewise.
4223 2017-10-25  H.J. Lu  <hongjiu.lu@intel.com>
4225         * include/alloc_buffer.h: Replace "if if " with "if " in
4226         comments.
4227         * sysdeps/mips/memcpy.S: Likkewise.
4228         * sysdeps/mips/memset.S: Likewise.
4229         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
4230         Likewise.
4231         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S:
4232         Likewise.
4233         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S:
4234         Likewise.
4236 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
4238         [BZ #15261]
4239         * localedata/locales/cmn_TW (LC_MESSAGES): Add fullwidth yYnN to
4240         yesexpr and noexpr.
4241         * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
4242         * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
4243         * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
4244         * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
4245         * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
4246         * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
4247         * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
4249 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
4251         * localedata/locales/am_ET (LC_MESSAGES): Sync with CLDR.
4252         * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
4253         * localedata/locales/el_GR (LC_MESSAGES): Likewise.
4254         * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
4255         * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
4256         * localedata/locales/mfe_MU (LC_MESSAGES): Likewise.
4257         * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
4258         * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
4259         * localedata/locales/os_RU (LC_MESSAGES): Likewise.
4260         * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
4261         * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
4262         * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
4264 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
4266         * localedata/locales/aa_ET (LC_MESSAGES): Use ASCII as much
4267         as possible for better readability of the source.
4268         * localedata/locales/af_ZA (LC_MESSAGES): Likewise.
4269         * localedata/locales/ak_GH (LC_MESSAGES): Likewise.
4270         * localedata/locales/am_ET (LC_MESSAGES): Likewise.
4271         * localedata/locales/anp_IN (LC_MESSAGES): Likewise.
4272         * localedata/locales/ar_EG (LC_MESSAGES): Likewise.
4273         * localedata/locales/as_IN (LC_MESSAGES): Likewise.
4274         * localedata/locales/ast_ES (LC_MESSAGES): Likewise.
4275         * localedata/locales/ayc_PE (LC_MESSAGES): Likewise.
4276         * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
4277         * localedata/locales/az_IR (LC_MESSAGES): Likewise.
4278         * localedata/locales/be_BY (LC_MESSAGES): Likewise.
4279         * localedata/locales/be_BY@latin (LC_MESSAGES): Likewise.
4280         * localedata/locales/bem_ZM (LC_MESSAGES): Likewise.
4281         * localedata/locales/ber_MA (LC_MESSAGES): Likewise.
4282         * localedata/locales/bg_BG (LC_MESSAGES): Likewise.
4283         * localedata/locales/bhb_IN (LC_MESSAGES): Likewise.
4284         * localedata/locales/bi_VU (LC_MESSAGES): Likewise.
4285         * localedata/locales/bo_CN (LC_MESSAGES): Likewise.
4286         * localedata/locales/br_FR (LC_MESSAGES): Likewise.
4287         * localedata/locales/bs_BA (LC_MESSAGES): Likewise.
4288         * localedata/locales/ca_ES (LC_MESSAGES): Likewise.
4289         * localedata/locales/ce_RU (LC_MESSAGES): Likewise.
4290         * localedata/locales/crh_UA (LC_MESSAGES): Likewise.
4291         * localedata/locales/cs_CZ (LC_MESSAGES): Likewise.
4292         * localedata/locales/csb_PL (LC_MESSAGES): Likewise.
4293         * localedata/locales/cv_RU (LC_MESSAGES): Likewise.
4294         * localedata/locales/cy_GB (LC_MESSAGES): Likewise.
4295         * localedata/locales/da_DK (LC_MESSAGES): Likewise.
4296         * localedata/locales/de_DE (LC_MESSAGES): Likewise.
4297         * localedata/locales/dv_MV (LC_MESSAGES): Likewise.
4298         * localedata/locales/dz_BT (LC_MESSAGES): Likewise.
4299         * localedata/locales/el_GR (LC_MESSAGES): Likewise.
4300         * localedata/locales/en_CA (LC_MESSAGES): Likewise.
4301         * localedata/locales/en_US (LC_MESSAGES): Likewise.
4302         * localedata/locales/es_ES (LC_MESSAGES): Likewise.
4303         * localedata/locales/et_EE (LC_MESSAGES): Likewise.
4304         * localedata/locales/eu_ES (LC_MESSAGES): Likewise.
4305         * localedata/locales/fa_IR (LC_MESSAGES): Likewise.
4306         * localedata/locales/ff_SN (LC_MESSAGES): Likewise.
4307         * localedata/locales/fi_FI (LC_MESSAGES): Likewise.
4308         * localedata/locales/fil_PH (LC_MESSAGES): Likewise.
4309         * localedata/locales/fo_FO (LC_MESSAGES): Likewise.
4310         * localedata/locales/fr_BE (LC_MESSAGES): Likewise.
4311         * localedata/locales/fr_CH (LC_MESSAGES): Likewise.
4312         * localedata/locales/fr_FR (LC_MESSAGES): Likewise.
4313         * localedata/locales/fr_LU (LC_MESSAGES): Likewise.
4314         * localedata/locales/fur_IT (LC_MESSAGES): Likewise.
4315         * localedata/locales/fy_DE (LC_MESSAGES): Likewise.
4316         * localedata/locales/ga_IE (LC_MESSAGES): Likewise.
4317         * localedata/locales/gd_GB (LC_MESSAGES): Likewise.
4318         * localedata/locales/gl_ES (LC_MESSAGES): Likewise.
4319         * localedata/locales/gu_IN (LC_MESSAGES): Likewise.
4320         * localedata/locales/gv_GB (LC_MESSAGES): Likewise.
4321         * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
4322         * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
4323         * localedata/locales/he_IL (LC_MESSAGES): Likewise.
4324         * localedata/locales/hif_FJ (LC_MESSAGES): Likewise.
4325         * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
4326         * localedata/locales/hr_HR (LC_MESSAGES): Likewise.
4327         * localedata/locales/hsb_DE (LC_MESSAGES): Likewise.
4328         * localedata/locales/ht_HT (LC_MESSAGES): Likewise.
4329         * localedata/locales/hu_HU (LC_MESSAGES): Likewise.
4330         * localedata/locales/hy_AM (LC_MESSAGES): Likewise.
4331         * localedata/locales/ia_FR (LC_MESSAGES): Likewise.
4332         * localedata/locales/id_ID (LC_MESSAGES): Likewise.
4333         * localedata/locales/ig_NG (LC_MESSAGES): Likewise.
4334         * localedata/locales/ik_CA (LC_MESSAGES): Likewise.
4335         * localedata/locales/is_IS (LC_MESSAGES): Likewise.
4336         * localedata/locales/it_CH (LC_MESSAGES): Likewise.
4337         * localedata/locales/it_IT (LC_MESSAGES): Likewise.
4338         * localedata/locales/iu_CA (LC_MESSAGES): Likewise.
4339         * localedata/locales/ja_JP (LC_MESSAGES): Likewise.
4340         * localedata/locales/kk_KZ (LC_MESSAGES): Likewise.
4341         * localedata/locales/kl_GL (LC_MESSAGES): Likewise.
4342         * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
4343         * localedata/locales/ks_IN (LC_MESSAGES): Likewise.
4344         * localedata/locales/ku_TR (LC_MESSAGES): Likewise.
4345         * localedata/locales/kw_GB (LC_MESSAGES): Likewise.
4346         * localedata/locales/ky_KG (LC_MESSAGES): Likewise.
4347         * localedata/locales/lb_LU (LC_MESSAGES): Likewise.
4348         * localedata/locales/lg_UG (LC_MESSAGES): Likewise.
4349         * localedata/locales/li_NL (LC_MESSAGES): Likewise.
4350         * localedata/locales/lij_IT (LC_MESSAGES): Likewise.
4351         * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
4352         * localedata/locales/lo_LA (LC_MESSAGES): Likewise.
4353         * localedata/locales/lt_LT (LC_MESSAGES): Likewise.
4354         * localedata/locales/lv_LV (LC_MESSAGES): Likewise.
4355         * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
4356         * localedata/locales/mg_MG (LC_MESSAGES): Likewise.
4357         * localedata/locales/mhr_RU (LC_MESSAGES): Likewise.
4358         * localedata/locales/mi_NZ (LC_MESSAGES): Likewise.
4359         * localedata/locales/mk_MK (LC_MESSAGES): Likewise.
4360         * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
4361         * localedata/locales/mn_MN (LC_MESSAGES): Likewise.
4362         * localedata/locales/ms_MY (LC_MESSAGES): Likewise.
4363         * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
4364         * localedata/locales/my_MM (LC_MESSAGES): Likewise.
4365         * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
4366         * localedata/locales/nan_TW@latin (LC_MESSAGES): Likewise.
4367         * localedata/locales/nb_NO (LC_MESSAGES): Likewise.
4368         * localedata/locales/nds_DE (LC_MESSAGES): Likewise.
4369         * localedata/locales/nds_NL (LC_MESSAGES): Likewise.
4370         * localedata/locales/ne_NP (LC_MESSAGES): Likewise.
4371         * localedata/locales/nhn_MX (LC_MESSAGES): Likewise.
4372         * localedata/locales/niu_NU (LC_MESSAGES): Likewise.
4373         * localedata/locales/nl_NL (LC_MESSAGES): Likewise.
4374         * localedata/locales/nn_NO (LC_MESSAGES): Likewise.
4375         * localedata/locales/nr_ZA (LC_MESSAGES): Likewise.
4376         * localedata/locales/nso_ZA (LC_MESSAGES): Likewise.
4377         * localedata/locales/oc_FR (LC_MESSAGES): Likewise.
4378         * localedata/locales/om_ET (LC_MESSAGES): Likewise.
4379         * localedata/locales/or_IN (LC_MESSAGES): Likewise.
4380         * localedata/locales/os_RU (LC_MESSAGES): Likewise.
4381         * localedata/locales/pa_IN (LC_MESSAGES): Likewise.
4382         * localedata/locales/pa_PK (LC_MESSAGES): Likewise.
4383         * localedata/locales/pap_AW (LC_MESSAGES): Likewise.
4384         * localedata/locales/pap_CW (LC_MESSAGES): Likewise.
4385         * localedata/locales/pl_PL (LC_MESSAGES): Likewise.
4386         * localedata/locales/ps_AF (LC_MESSAGES): Likewise.
4387         * localedata/locales/pt_BR (LC_MESSAGES): Likewise.
4388         * localedata/locales/quz_PE (LC_MESSAGES): Likewise.
4389         * localedata/locales/raj_IN (LC_MESSAGES): Likewise.
4390         * localedata/locales/ro_RO (LC_MESSAGES): Likewise.
4391         * localedata/locales/ru_RU (LC_MESSAGES): Likewise.
4392         * localedata/locales/ru_UA (LC_MESSAGES): Likewise.
4393         * localedata/locales/rw_RW (LC_MESSAGES): Likewise.
4394         * localedata/locales/sa_IN (LC_MESSAGES): Likewise.
4395         * localedata/locales/sc_IT (LC_MESSAGES): Likewise.
4396         * localedata/locales/sd_IN@devanagari (LC_MESSAGES): Likewise.
4397         * localedata/locales/se_NO (LC_MESSAGES): Likewise.
4398         * localedata/locales/sgs_LT (LC_MESSAGES): Likewise.
4399         * localedata/locales/si_LK (LC_MESSAGES): Likewise.
4400         * localedata/locales/sk_SK (LC_MESSAGES): Likewise.
4401         * localedata/locales/sl_SI (LC_MESSAGES): Likewise.
4402         * localedata/locales/sm_WS (LC_MESSAGES): Likewise.
4403         * localedata/locales/so_DJ (LC_MESSAGES): Likewise.
4404         * localedata/locales/sq_AL (LC_MESSAGES): Likewise.
4405         * localedata/locales/sr_RS (LC_MESSAGES): Likewise.
4406         * localedata/locales/sr_RS@latin (LC_MESSAGES): Likewise.
4407         * localedata/locales/ss_ZA (LC_MESSAGES): Likewise.
4408         * localedata/locales/st_ZA (LC_MESSAGES): Likewise.
4409         * localedata/locales/sv_SE (LC_MESSAGES): Likewise.
4410         * localedata/locales/sw_KE (LC_MESSAGES): Likewise.
4411         * localedata/locales/szl_PL (LC_MESSAGES): Likewise.
4412         * localedata/locales/tcy_IN (LC_MESSAGES): Likewise.
4413         * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
4414         * localedata/locales/th_TH (LC_MESSAGES): Likewise.
4415         * localedata/locales/the_NP (LC_MESSAGES): Likewise.
4416         * localedata/locales/ti_ER (LC_MESSAGES): Likewise.
4417         * localedata/locales/tk_TM (LC_MESSAGES): Likewise.
4418         * localedata/locales/tn_ZA (LC_MESSAGES): Likewise.
4419         * localedata/locales/to_TO (LC_MESSAGES): Likewise.
4420         * localedata/locales/tr_TR (LC_MESSAGES): Likewise.
4421         * localedata/locales/ts_ZA (LC_MESSAGES): Likewise.
4422         * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
4423         * localedata/locales/tt_RU@iqtelif (LC_MESSAGES): Likewise.
4424         * localedata/locales/uk_UA (LC_MESSAGES): Likewise.
4425         * localedata/locales/unm_US (LC_MESSAGES): Likewise.
4426         * localedata/locales/ur_IN (LC_MESSAGES): Likewise.
4427         * localedata/locales/ur_PK (LC_MESSAGES): Likewise.
4428         * localedata/locales/uz_UZ (LC_MESSAGES): Likewise.
4429         * localedata/locales/uz_UZ@cyrillic (LC_MESSAGES): Likewise.
4430         * localedata/locales/ve_ZA (LC_MESSAGES): Likewise.
4431         * localedata/locales/vi_VN (LC_MESSAGES): Likewise.
4432         * localedata/locales/wa_BE (LC_MESSAGES): Likewise.
4433         * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
4434         * localedata/locales/xh_ZA (LC_MESSAGES): Likewise.
4435         * localedata/locales/yi_US (LC_MESSAGES): Likewise.
4436         * localedata/locales/yo_NG (LC_MESSAGES): Likewise.
4437         * localedata/locales/yue_HK (LC_MESSAGES): Likewise.
4438         * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
4439         * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
4440         * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
4441         * localedata/locales/zu_ZA (LC_MESSAGES): Likewise.
4443 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
4445         * localedata/locales/brx_IN (LC_MESSAGES): Fix yesexpr and noexpr
4446         (Use first letters of yesstr and nostr correctly instead of using
4447         full words).
4449 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
4451         * localedata/locales/ta_IN (LC_MESSAGES): Fix yesexpr and noexpr
4452         (Use first letters of yesstr and nostr correctly).
4454 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
4456         * localedata/locales/hi_IN (LC_MESSAGES): In yesexpr and noexpr,
4457         also check for the first characters of yesstr and nostr.
4458         * localedata/locales/kn_IN (LC_MESSAGES): Likewise.
4459         * localedata/locales/ks_IN@devanagari (LC_MESSAGES): Likewise.
4461 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
4463         * localedata/locales/cmn_TW (LC_MESSAGES): In yesexpr and noexpr,
4464         also check for Chinese characters.
4466 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
4468         * localedata/locales/chr_US (LC_MESSAGES): In yesexpr and noexpr,
4469         match also for the contents of yesstr and nostr. As the first letter
4470         of yesstr and nostr is equal, checking only for the first letter
4471         is not enough.
4473 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
4475         * localedata/locales/ber_DZ (LC_MESSAGES): Use copy "kab_DZ",
4476         it is the same according to  Belkacem Mohammed <belkacem77@gmail.com>.
4478 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
4480         * localedata/locales/kab_DZ (LC_IDENTIFICATION): Add e-mail
4481         of main contributor.
4483 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
4485         * localedata/locales/zh_SG (LC_MESSAGES): Use copy "zh_CN"
4486         instead of using English.
4488 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
4490         * localedata/locales/ug_CN (LC_MESSAGES): Fix noexpr and yesexpr
4491         by including the first letters of nostr and yesexpr in the regexp.
4492         Also make it more readable by using ASCII where possible.
4494 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
4496         * localedata/locales/te_IN (LC_MESSAGES): Fix noexpr by including
4497         the first letter of nostr in the regexp. It agrees with CLDR now.
4498         Also make it more readable by using ASCII where possible.
4500 2017-10-24  Mike FABIAN  <mfabian@redhat.com>
4502         * localedata/locales/km_KH (LC_MESSAGES): Fix yestr and nostr.
4503         The yesstr and nostr apparently came from CLDR. And CLDR has a bug there:
4504         these strings contain a U+17D6 (which somewhat looks like a colon)
4505         instead of a real colon to separate the full words for “yes”
4506         and “no” from the single letter responses.
4508 2017-10-24  Mike FABIAN  <mfabian@redhat.com>
4510         * localedata/locales/ka_GE (LC_MESSAGES): Fix yesexp to make
4511         it agree with CLDR (include the first letter of yesstr).
4512         Also make it more readable by using ASCII where possible.
4514 2017-10-24  Mike FABIAN  <mfabian@redhat.com>
4516         * localedata/locales/mr_IN (LC_MESSAGES): Fix yesstr and nostr
4517         and improve yesexpr and noexpr. The yesstr and nostr apparently
4518         came from CLDR. And CLDR has a bug there: these strings contain
4519         a U+0903 (which looks like a colon) instead of a real colon
4520         to separate the full words for “yes” and “no” from the single
4521         letter responses.
4523 2017-10-24  Mike FABIAN  <mfabian@redhat.com>
4525         * localedata/locales/bn_BD (LC_MESSAGES): Use only the first
4526         letters of the full yesstr and nostr in yesexpr and noexpr.
4528 2017-10-24  Mike FABIAN  <mfabian@redhat.com>
4530         * localedata/locales/an_ES (LC_MESSAGES): Add yesstr and nostr.
4531         * localedata/locales/an_ES (LC_ADDRESS): Add lang_term and lang_lib.
4532         * localedata/locales/an_ES: Make source more readable by using ASCII
4533         where possible.
4535 2017-10-24  Mike FABIAN  <mfabian@redhat.com>
4537         [BZ #20952]
4538         * localedata/locales/yuw_PG: New file.
4539         * localedata/SUPPORTED: Add yuw_PG/UTF-8.
4540         * locale/iso-639.def: Add Yau (Uruwa).
4542 2017-10-23  Wilco Dijkstra  <wdijkstr@arm.com>
4544         * malloc/malloc.c (_int_malloc): Add SINGLE_THREAD_P path.
4546 2017-10-23  Wilco Dijkstra  <wdijkstr@arm.com>
4548         * malloc/malloc.c (__libc_malloc): Add SINGLE_THREAD_P path.
4549         (__libc_realloc): Likewise.
4550         (_mid_memalign): Likewise.
4551         (__libc_calloc): Likewise.
4553 2017-10-23  Mike FABIAN  <mfabian@redhat.com>
4555         * localedata/locales/tpi_PG (LC_MESSAGES): Fix yesexpr and noexpr
4556         by adding the generic +1 and -0 as in all other locales.
4557         * localedata/locales/tpi_PG (LC_TIME): Fix some typos in the month and
4558         day names and make it more readable by using ASCII where possible.
4560 2017-10-24  Joseph Myers  <joseph@codesourcery.com>
4562         * sysdeps/x86/fpu/fix-fp-int-compare-invalid.h
4563         (FIX_COMPARE_INVALID): Define to 0 if [__GNUC_PREREQ (8, 0)].
4565 2017-10-23  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4567         * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Use 0 instead of
4568         WNOHANG in waitpid call.
4570 2017-10-23  Siddhesh Poyarekar  <siddhesh@sourceware.org>
4572         * manual/conf.texi (_SC_LEVEL1_DCACHE_LINESIZE,
4573         _SC_LEVEL1_ICACHE_LINESIZE): Document aarch64 caveat.
4575         * manual/conf.texi (_SC_LEVEL1_ICACHE_SIZE,
4576         _SC_LEVEL1_ICACHE_ASSOC, _SC_LEVEL1_ICACHE_LINESIZE,
4577         _SC_LEVEL1_DCACHE_SIZE, _SC_LEVEL1_DCACHE_ASSOC,
4578         _SC_LEVEL1_DCACHE_LINESIZE, _SC_LEVEL2_CACHE_SIZE,
4579         _SC_LEVEL2_CACHE_ASSOC, _SC_LEVEL2_CACHE_LINESIZE,
4580         _SC_LEVEL3_CACHE_SIZE, _SC_LEVEL3_CACHE_ASSOC,
4581         _SC_LEVEL3_CACHE_LINESIZE, _SC_LEVEL4_CACHE_SIZE,
4582         _SC_LEVEL4_CACHE_ASSOC, _SC_LEVEL4_CACHE_LINESIZE): New
4583         variables.
4585 2017-10-23  Michael Collison  <michael.collison@arm.com>
4587         * sysdeps/aarch64/fpu/e_sqrt.c (ieee754_sqrt): Replace asm statements
4588         with __builtin_sqrt.
4589         * sysdeps/aarch64/fpu/e_sqrtf.c (ieee754_sqrtf): Replace asm statements
4590         with __builtin_sqrtf.
4591         * sysdeps/aarch64/fpu/s_ceil.c (__ceil): Replace asm statements
4592         with __builtin_ceil.
4593         * sysdeps/aarch64/fpu/s_ceilf.c (__ceilf): Replace asm statements
4594         with __builtin_ceilf.
4595         * sysdeps/aarch64/fpu/s_floor.c (__floor): Replace asm statements
4596         with __builtin_floor.
4597         * sysdeps/aarch64/fpu/s_floorf.c (__floorf): Replace asm statements
4598         with __builtin_floorf.
4599         * sysdeps/aarch64/fpu/s_fma.c (__fma): Replace asm statements
4600         with __builtin_fma.
4601         * sysdeps/aarch64/fpu/s_fmaf.c (__fmaf): Replace asm statements
4602         with __builtin_fmaf.
4603         * sysdeps/aarch64/fpu/s_fmax.c (__fmax): Replace asm statements
4604         with __builtin_fmax.
4605         * sysdeps/aarch64/fpu/s_fmaxf.c (__fmaxf): Replace asm statements
4606         with __builtin_fmaxf.
4607         * sysdeps/aarch64/fpu/s_fmin.c (__fmin): Replace asm statements
4608         with __builtin_fmin.
4609         * sysdeps/aarch64/fpu/s_fminf.c (__fminf): Replace asm statements
4610         with __builtin_fminf.
4611         * sysdeps/aarch64/fpu/s_frint.c: Delete file.
4612         * sysdeps/aarch64/fpu/s_frintf.c: Delete file.
4613         * sysdeps/aarch64/fpu/s_llrint.c (__llrint): Replace asm statements
4614         with builtin_rint and conversion to int.
4615         * sysdeps/aarch64/fpu/s_llrintf.c (__llrintf): Likewise.
4616         * sysdeps/aarch64/fpu/s_llround.c (__llround): Replace asm statements
4617         with builtin_llround.
4618         * sysdeps/aarch64/fpu/s_llroundf.c (__llroundf): Likewise.
4619         * sysdeps/aarch64/fpu/s_lrint.c (__lrint): Replace asm statements
4620         with builtin_rint and conversion to long int.
4621         * sysdeps/aarch64/fpu/s_lrintf.c (__lrintf): Likewise.
4622         * sysdeps/aarch64/fpu/s_lround.c (__lround): Replace asm statements
4623         with builtin_lround.
4624         * sysdeps/aarch64/fpu/s_lroundf.c (__lroundf): Replace asm statements
4625         with builtin_lroundf.
4626         * sysdeps/aarch64/fpu/s_nearbyint.c (__nearbyint): Replace asm
4627         statements with __builtin_nearbyint.
4628         * sysdeps/aarch64/fpu/s_nearbyintf.c (__nearbyintf): Replace asm
4629         statements with __builtin_nearbyintf.
4630         * sysdeps/aarch64/fpu/s_rint.c (__rint): Replace asm statements
4631         with __builtin_rint.
4632         * sysdeps/aarch64/fpu/s_rintf.c (__rintf): Replace asm statements
4633         with __builtin_rintf.
4634         * sysdeps/aarch64/fpu/s_round.c (__round): Replace asm statements
4635         with __builtin_round.
4636         * sysdeps/aarch64/fpu/s_roundf.c (__roundf): Replace asm statements
4637         with __builtin_roundf.
4638         * sysdeps/aarch64/fpu/s_trunc.c (__trunc): Replace asm statements
4639         with __builtin_trunc.
4640         * sysdeps/aarch64/fpu/s_truncf.c (__truncf): Replace asm statements
4641         with __builtin_truncf.
4642         * sysdeps/aarch64/fpu/Makefile: Build e_sqrt[f].c with -fno-math-errno,
4643         and s_l[l]round[f].c too.
4645 2017-10-23  Alan Modra  <amodra@gmail.com>
4647         * sysdeps/powerpc/powerpc64/power8/strncpy.S: Move LR cfi.
4648         Adjust stack after restoring regs.  Add missing LR cfi_restore.
4650 2017-10-23  Alan Modra  <amodra@gmail.com>
4652         * sysdeps/powerpc/powerpc64/power7/strncpy.S: Decrease FRAMESIZE.
4653         Move LR save and frame setup/teardown and LR restore to
4654         immediately around memset call.  Provide cfi.
4656 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
4658         * sysdeps/i386/fpu/e_powf.S: Removed.
4659         * sysdeps/i386/fpu/e_powf_log2_data.c: Likewise.
4660         * sysdeps/i386/fpu/w_powf.c: Likewise.
4661         * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_powf.c.
4662         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
4663         * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
4664         Add e_powf-sse2.
4665         (CFLAGS-e_powf-sse2.c): New.
4666         * sysdeps/i386/i686/fpu/multiarch/e_powf-sse2.c: New file.
4667         * sysdeps/i386/i686/fpu/multiarch/e_powf.c: Likewise.
4669 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
4671         * sysdeps/i386/fpu/e_log2f.S: Removed.
4672         * sysdeps/i386/fpu/e_log2f_data.c: Likewise.
4673         * sysdeps/i386/fpu/w_log2f.c: Likewise.
4674         * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_log2f.c.
4675         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
4676         * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
4677         Add e_log2f-sse2.
4678         (CFLAGS-e_log2f-sse2.c): New.
4679         * sysdeps/i386/i686/fpu/multiarch/e_log2f-sse2.c: New file.
4680         * sysdeps/i386/i686/fpu/multiarch/e_log2f.c: Likewise.
4682 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
4684         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
4685         Add e_powf-fma.
4686         (CFLAGS-e_powf-fma.c): New.
4687         * sysdeps/x86_64/fpu/multiarch/e_powf-fma.c: New file.
4688         * sysdeps/x86_64/fpu/multiarch/e_powf.c: Likewise.
4690 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
4692         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
4693         Add e_log2f-fma.
4694         (CFLAGS-e_log2f-fma.c): New.
4695         * sysdeps/x86_64/fpu/multiarch/e_log2f-fma.c: New file.
4696         * sysdeps/x86_64/fpu/multiarch/e_log2f.c: Likewise.
4698 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
4700         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
4701         Add e_logf-fma.
4702         (CFLAGS-e_logf-fma.c): New.
4703         * sysdeps/x86_64/fpu/multiarch/e_logf-fma.c: New file.
4704         * sysdeps/x86_64/fpu/multiarch/e_logf.c: Likewise.
4706 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
4708         * sysdeps/i386/fpu/e_logf.S: Removed.
4709         * sysdeps/i386/fpu/e_logf_data.c: Likewise.
4710         * sysdeps/i386/fpu/w_logf.c: Likewise.
4711         * sysdeps/i386/i686/fpu/e_logf.S: Likewise.
4712         * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_logf.c.
4713         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
4714         * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
4715         Add e_logf-sse2.
4716         (CFLAGS-e_logf-sse2.c): New.
4717         * sysdeps/i386/i686/fpu/multiarch/e_logf-sse2.c: New file.
4718         * sysdeps/i386/i686/fpu/multiarch/e_logf.c: Likewise.
4720 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
4722         * sysdeps/i386/fpu/e_exp2f.S: Removed.
4723         * sysdeps/i386/fpu/w_exp2f.c: Likewise.
4724         * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_exp2f.c.
4725         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
4726         * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
4727         Add e_exp2f-sse2.
4728         (CFLAGS-e_exp2f-sse2.c): New.
4729         * sysdeps/i386/i686/fpu/multiarch/e_exp2f-sse2.c: New file.
4730         * sysdeps/i386/i686/fpu/multiarch/e_exp2f.c: Likewise.
4732 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
4734         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
4735         Add e_exp2f-fma.
4736         (CFLAGS-e_exp2f-fma.c): New.
4737         * sysdeps/x86_64/fpu/multiarch/e_exp2f-fma.c: New file.
4738         * sysdeps/x86_64/fpu/multiarch/e_exp2f.c: Likewise.
4740 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
4742         * sysdeps/i386/fpu/e_exp2f_data.c: Removed.
4743         * sysdeps/i386/fpu/e_expf.S: Likewise.
4744         * sysdeps/i386/fpu/math_errf.c: Likewise.
4745         * sysdeps/i386/fpu/w_expf.c: Likewise.
4746         * sysdeps/i386/i686/fpu/multiarch/e_expf-ia32.S: Likewise.
4747         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
4748         * sysdeps/i386/i686/fpu/multiarch/w_expf.c: Likewise.
4749         * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_expf.c.
4750         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
4751         * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
4752         Remove e_expf-ia32.
4753         (CFLAGS-e_expf-sse2.c): New.
4754         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.c: New file.
4755         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Rewritten.
4757 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
4759         * sysdeps/x86_64/fpu/e_expf.S: Removed.
4760         * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: Likewise.
4761         * sysdeps/x86_64/fpu/w_expf.c: Likewise.
4762         * sysdeps/x86_64/fpu/libm-test-ulps: Updated for generic
4763         e_expf.c.
4764         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_expf-fma.c):
4765         New.
4766         * sysdeps/x86_64/fpu/multiarch/e_expf-fma.c: New file.
4767         * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
4768         Renamed to ...
4769         (__redirect_expf): This.
4770         (SYMBOL_NAME): Changed to expf.
4771         (__ieee754_expf): Renamed to ...
4772         (__expf): This.
4773         (__GI___expf): This.
4774         (__ieee754_expf): Add strong_alias.
4775         (__expf_finite): Likewise.
4776         (__expf): New.
4777         Include <sysdeps/ieee754/flt-32/e_expf.c>.
4779 2017-10-22  Paul Eggert <eggert@cs.ucla.edu>
4781         [BZ #22332]
4782         * posix/glob.c (__glob): Fix buffer overflow during GLOB_TILDE
4783         unescaping.
4785 2017-10-21  Florian Weimer  <fweimer@redhat.com>
4787         * posix/Makefile (tests): Add tst-glob-tilde.
4788         (tests-special): Add tst-glob-tilde-mem.out
4789         (tst-glob-tilde-ENV): Set MALLOC_TRACE.
4790         (tst-glob-tilde-mem.out): Add mtrace check.
4791         * posix/tst-glob-tilde.c: New file.
4793 2017-10-20  Joseph Myers  <joseph@codesourcery.com>
4795         * bits/floatn-common.h: New file.
4796         * math/Makefile (headers): Add bits/floatn-common.h.
4797         * bits/floatn.h: Include <bits/floatn-common.h>.
4798         * sysdeps/ia64/bits/floatn.h: Likewise.
4799         * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
4800         * sysdeps/mips/ieee754/bits/floatn.h: Likewise.
4801         * sysdeps/powerpc/bits/floatn.h: Likewise.
4802         * sysdeps/x86/bits/floatn.h: Likewise.
4804 2017-10-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4806         * configure.ac (libc_cv_gcc_incompatbile_alias): New define:
4807         indicates whether compiler emits an warning for alias for
4808         functions with incompatible types.
4810         [BZ #22273]
4811         * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Handle the case where
4812         the auxiliary process is terminated by a signal before calling _exit
4813         or execve.
4815 2017-10-20  H.J. Lu  <hongjiu.lu@intel.com>
4817         [BZ #21265]
4818         * sysdeps/x86/cpu-features-offsets.sym (XSAVE_STATE_SIZE_OFFSET):
4819         New.
4820         * sysdeps/x86/cpu-features.c: Include <libc-pointer-arith.h>.
4821         (get_common_indeces): Set xsave_state_size, xsave_state_full_size
4822         and bit_arch_XSAVEC_Usable if needed.
4823         (init_cpu_features): Remove bit_arch_Use_dl_runtime_resolve_slow
4824         and bit_arch_Use_dl_runtime_resolve_opt.
4825         * sysdeps/x86/cpu-features.h (bit_arch_Use_dl_runtime_resolve_opt):
4826         Removed.
4827         (bit_arch_Use_dl_runtime_resolve_slow): Likewise.
4828         (bit_arch_Prefer_No_AVX512): Updated.
4829         (bit_arch_MathVec_Prefer_No_AVX512): Likewise.
4830         (bit_arch_XSAVEC_Usable): New.
4831         (STATE_SAVE_OFFSET): Likewise.
4832         (STATE_SAVE_MASK): Likewise.
4833         [__ASSEMBLER__]: Include <cpu-features-offsets.h>.
4834         (cpu_features): Add xsave_state_size and xsave_state_full_size.
4835         (index_arch_Use_dl_runtime_resolve_opt): Removed.
4836         (index_arch_Use_dl_runtime_resolve_slow): Likewise.
4837         (index_arch_XSAVEC_Usable): New.
4838         * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
4839         Support XSAVEC_Usable.  Remove Use_dl_runtime_resolve_slow.
4840         * sysdeps/x86_64/Makefile (tst-x86_64-1-ENV): New if tunables
4841         is enabled.
4842         * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup):
4843         Replace _dl_runtime_resolve_sse, _dl_runtime_resolve_avx,
4844         _dl_runtime_resolve_avx_slow, _dl_runtime_resolve_avx_opt,
4845         _dl_runtime_resolve_avx512 and _dl_runtime_resolve_avx512_opt
4846         with _dl_runtime_resolve_fxsave, _dl_runtime_resolve_xsave and
4847         _dl_runtime_resolve_xsavec.
4848         * sysdeps/x86_64/dl-trampoline.S (DL_RUNTIME_UNALIGNED_VEC_SIZE):
4849         Removed.
4850         (DL_RUNTIME_RESOLVE_REALIGN_STACK): Check STATE_SAVE_ALIGNMENT
4851         instead of VEC_SIZE.
4852         (REGISTER_SAVE_BND0): Removed.
4853         (REGISTER_SAVE_BND1): Likewise.
4854         (REGISTER_SAVE_BND3): Likewise.
4855         (REGISTER_SAVE_RAX): Always defined to 0.
4856         (VMOV): Removed.
4857         (_dl_runtime_resolve_avx): Likewise.
4858         (_dl_runtime_resolve_avx_slow): Likewise.
4859         (_dl_runtime_resolve_avx_opt): Likewise.
4860         (_dl_runtime_resolve_avx512): Likewise.
4861         (_dl_runtime_resolve_avx512_opt): Likewise.
4862         (_dl_runtime_resolve_sse): Likewise.
4863         (_dl_runtime_resolve_sse_vex): Likewise.
4864         (USE_FXSAVE): New.
4865         (_dl_runtime_resolve_fxsave): Likewise.
4866         (USE_XSAVE): Likewise.
4867         (_dl_runtime_resolve_xsave): Likewise.
4868         (USE_XSAVEC): Likewise.
4869         (_dl_runtime_resolve_xsavec): Likewise.
4870         * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve_avx512):
4871         Removed.
4872         (_dl_runtime_resolve_avx512_opt): Likewise.
4873         (_dl_runtime_resolve_avx): Likewise.
4874         (_dl_runtime_resolve_avx_opt): Likewise.
4875         (_dl_runtime_resolve_sse): Likewise.
4876         (_dl_runtime_resolve_sse_vex): Likewise.
4877         (_dl_runtime_resolve_fxsave): New.
4878         (_dl_runtime_resolve_xsave): Likewise.
4879         (_dl_runtime_resolve_xsavec): Likewise.
4881 2017-10-20  Paul Eggert <eggert@cs.ucla.edu>
4883         [BZ #22320]
4884         CVE-2017-15670
4885         * posix/glob.c (__glob): Fix one-byte overflow.
4887 2017-10-20  Wilco Dijkstra  <wdijkstr@arm.com>
4889         * malloc/malloc.c (sysdep-cancel.h): Add include.
4891 2017-10-20  Wilco Dijkstra  <wdijkstr@arm.com>
4893         * malloc/malloc.c (_int_free): Add SINGLE_THREAD_P fast paths.
4895 2017-10-20  Will Hawkins  <hawkinsw@borlaugic.com>
4897         * resolv/Makefile [$(build-shared)$(have-thread-library) == yesyes]
4898         (tests): Remove $(objpfx)ga_test depdendency.
4899         * resolv/ga_test.c: Remove file.
4901 2017-10-20  Mike FABIAN  <mfabian@redhat.com>
4903         [BZ #18812]
4904         * localedata/SUPPORTED: Add kab_DZ/UTF-8.
4905         * localedata/locales/kab_DZ: New file.
4907 2017-10-20  H.J. Lu  <hongjiu.lu@intel.com>
4909         * sysdeps/m68k/dl-machine.h (elf_machine_load_address): Use
4910         _dl_relocate_static_pie instead of _dl_start to compute load
4911         address in static PIE.
4913 2017-10-20  H.J. Lu  <hongjiu.lu@intel.com>
4915         * sysdeps/m68k/start.S (_start): Check PIC instead of SHARED.
4917 2017-10-20  Mike FABIAN  <mfabian@redhat.com>
4919         [BZ #13605]
4920         * localedata/SUPPORTED: Add shn_MM/UTF-8.
4921         * localedata/locales/shn_MM: New file.
4923 2017-10-20  Florian Weimer  <fweimer@redhat.com>
4925         [BZ #22321]
4926         sysconf: Fix missing definition of UIO_MAXIOV on Linux.
4927         * sysdeps/posix/sysconf.c: Include <sys/uio.h>.
4928         * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-sysconf-iov_max.
4929         (tst-sysconf-iov_max): Link with tst-sysconf-iov_max-uapi.o.
4930         * sysdeps/unix/sysv/linux/tst-sysconf-iov_max.c: New file.
4931         * sysdeps/unix/sysv/linux/tst-sysconf-iov_max-uapi.c: Likewise.
4933 2017-10-19  H.J. Lu  <hongjiu.lu@intel.com>
4935         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
4937 2017-10-19  Joseph Myers  <joseph@codesourcery.com>
4939         * sysdeps/mips/ieee754/bits/floatn.h: New file.
4941         [BZ #22322]
4942         * sysdeps/mips/bits/long-double.h: Move to ....
4943         * sysdeps/mips/ieee754/bits/long-double.h: ... here.
4945 2017-10-19  Wilco Dijkstra  <wdijkstr@arm.com>
4947         * malloc/malloc.c (_int_free): Fix deadlock bug in consistency check.
4949 2017-10-19  Valery Reznic <valery_reznic@yahoo.com>
4950             H.J. Lu  <hongjiu.lu@intel.com>
4952         [BZ #22299]
4953         * sysdeps/x86/cpu-features.c (init_cpu_features): Don't set
4954         GLRO(dl_platform) to NULL.
4955         * sysdeps/x86_64/Makefile (tests): Add tst-platform-1.
4956         (modules-names): Add tst-platformmod-1 and
4957         x86_64/tst-platformmod-2.
4958         (CFLAGS-tst-platform-1.c): New.
4959         (CFLAGS-tst-platformmod-1.c): Likewise.
4960         (CFLAGS-tst-platformmod-2.c): Likewise.
4961         (LDFLAGS-tst-platformmod-2.so): Likewise.
4962         ($(objpfx)tst-platform-1): Likewise.
4963         ($(objpfx)tst-platform-1.out): Likewise.
4964         (tst-platform-1-ENV): Likewise.
4965         ($(objpfx)x86_64/tst-platformmod-2.os): Likewise.
4966         * sysdeps/x86_64/tst-platform-1.c: New file.
4967         * sysdeps/x86_64/tst-platformmod-1.c: Likewise.
4968         * sysdeps/x86_64/tst-platformmod-2.c: Likewise.
4970 2017-10-19  Mike FABIAN  <mfabian@redhat.com>
4972         [BZ #13994]
4973         * locale/iso-639.def: Add Karbi.
4974         * localedata/SUPPORTED: Add mjw_IN/UTF-8.
4975         * localedata/locales/mjw_IN: New file.
4977 2017-10-18  Joseph Myers  <joseph@codesourcery.com>
4979         * sysdeps/ieee754/ldbl-128/Makeconfig: New file.
4980         * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
4981         * sysdeps/ieee754/ldbl-128/float128-abi.h: Likewise.
4982         * sysdeps/generic/libm-alias-ldouble.h: Include <bits/floatn.h>.
4983         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
4984         (libm_alias_ldouble_other_r): Also create _Float128 alias.
4985         * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Include
4986         <bits/floatn.h>.
4987         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
4988         (libm_alias_ldouble_other_r): Also create _Float128 alias.
4989         * manual/math.texi (Mathematics): Document additional architecture
4990         support for _Float128.
4991         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
4992         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
4993         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
4994         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
4995         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
4996         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
4997         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
4998         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
4999         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
5000         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
5001         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
5002         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
5003         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
5004         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
5005         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
5007 2017-10-18  Renlin Li  <renlin.li@arm.com>
5009         * sysdeps/aarch64/dl-machine.h (elf_machine_load_address): Use
5010         _DYNAMIC symbol to calculate load address.
5012 2017-10-18  Paul A. Clarke  <pc@us.ibm.com>
5014         * sysdeps/powerpc/fpu/fenv_private.h (_FPU_MASK_TRAPS_RN):
5015         (_FPU_MASK_FRAC_INEX_RET_CC): Fix masks to more properly handle
5016         summary bits.
5017         (_FPU_MASK_RN): Expand _FPU_MASK_RN to 64bit hex.
5018         (_FPU_MASK_NOT_RN_NI): Treat bit 52 (left-to-right) as reserved.
5020 2017-10-18  Mike FABIAN  <mfabian@redhat.com>
5022         [BZ #16777]
5023         * localedata/locales/pl_PL (LC_MONETARY): Use U+202F as mon_thousands_sep
5024         and improve readability by using more ASCII.
5025         * localedata/locales/pl_PL (LC_NUMERIC): Use U+202F as thousands_sep
5026         and improve readability by using more ASCII.
5028 2017-10-18  Wilco Dijkstra  <wdijkstr@arm.com>
5030         * malloc/malloc.c (malloc_state): Use int for have_fastchunks since
5031         not all targets support atomics on bool.
5033 2017-10-17  Joseph Myers  <joseph@codesourcery.com>
5035         * include/float.h [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 &&
5036         __GLIBC_USE (IEC_60559_TYPES_EXT)] (FLT128_MAX): Define using
5037         __f128.
5038         [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
5039         (IEC_60559_TYPES_EXT)] (FLT128_EPSILON): Likewise.
5040         [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
5041         (IEC_60559_TYPES_EXT)] (FLT128_MIN): Likewise.
5042         [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
5043         (IEC_60559_TYPES_EXT)] (FLT128_TRUE_MIN): Likewise.
5045 2017-10-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
5047         * bits/uio-ext.h (RWF_HIPRI, RWF_DSYNC, RWF_SYNC, RWF_NOWAIT): New
5048         defines.
5050 2017-10-17  Wilco Dijkstra  <wdijkstr@arm.com>
5052         [BZ #22159]
5053         * malloc/arena.c (ptmalloc_init): Call malloc_init_state.
5054         * malloc/malloc.c (do_check_free_chunk): Fix build bug.
5055         (do_check_remalloced_chunk): Fix build bug.
5056         (do_check_malloc_state): Add assert that checks arena->top.
5057         (malloc_consolidate): Remove initialization.
5058         (int_mallinfo): Remove call to malloc_consolidate.
5059          (__libc_mallopt): Clarify why malloc_consolidate is needed.
5061 2017-10-17  Wilco Dijkstra  <wdijkstr@arm.com>
5063         * malloc/malloc.c (FASTCHUNKS_BIT): Remove.
5064         (have_fastchunks): Remove.
5065         (clear_fastchunks): Remove.
5066         (set_fastchunks): Remove.
5067         (malloc_state): Add have_fastchunks.
5068         (malloc_init_state): Use have_fastchunks.
5069         (do_check_malloc_state): Remove incorrect invariant checks.
5070         (_int_malloc): Use have_fastchunks.
5071         (_int_free): Likewise.
5072         (malloc_consolidate): Likewise.
5074 2017-10-17  Wilco Dijkstra  <wdijkstr@arm.com>
5076         * malloc/malloc.c (tcache_put): Inline.
5077         (tcache_get): Inline.
5079 2017-10-17  Jordi Mallach  <jordi@gnu.org>
5081         Aurelien Jarno  <aurelien@aurel32.net>
5082         [BZ #2522]
5083         * localedata/locales/ca_ES@valencia: New file.
5084         * localedata/SUPPORTED: Add ca_ES@valencia/UTF-8.
5086 2017-10-17  Romain Naour  <romain.naour@gmail.com>  (tiny change)
5088         [BZ #22296]
5089         * math/math.h: Let signbit use the builtin in C++ mode with gcc
5090         < 6.x
5092 2017-10-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
5094         * scripts/build-many-glibcs.py (Context.add_all_configs):
5095         Add arm-linux-gnueabihf multiarch extra_glibcs.
5097         * sysdeps/generic/ifunc-init.h: New file.
5098         * sysdeps/x86/init-arch.h: Use generic ifunc-init.h.
5100 2017-10-17  Mike FABIAN  <mfabian@redhat.com>
5102         [BZ #22019]
5103         * localedata/locales/el_GR: Set n_cs_precedes to 0.
5104         * localedata/locales/el_CY: copy "el_GR" because it is identical.
5105         * stdlib/tst-strfmon_l.c: adapt test case.
5107 2017-10-16  Joseph Myers  <joseph@codesourcery.com>
5109         * sysdeps/generic/float128-abi.h: New file.
5110         * sysdeps/ieee754/float128/Versions (FLOAT128_VERSION): Move
5111         non-__prefixed symbols to ....
5112         * math/Versions: ... here.  Include <float128-abi.h>.
5113         * stdlib/Versions ... and here.  Include <float128-abi.h>
5115 2017-10-16  Florian Weimer  <fweimer@redhat.com>
5117         * version.h (VERSION): Switch to ".9000" as the development
5118         version suffix.
5120 2017-10-16  Florian Weimer  <fweimer@redhat.com>
5122         [BZ #22050]
5123         * malloc/mcheck-init.c (__malloc_initialize_hook): Use
5124         compat_symbol_reference to access non-default version.
5126 2017-10-16  Florian Weimer  <fweimer@redhat.com>
5128         * malloc/Makefile (others-extras): Set to mcheck-init.o.
5130 2017-10-16  Carlos O'Donell  <carlos@redhat.com>
5132         * include/shlib-compat.h (compat_symbol_reference): Update
5133         comment.
5135 2017-10-16  Joseph Myers  <joseph@codesourcery.com>
5137         * math/Makefile (test-types): Add
5138         $(type-float128-$(float128-alias-fcts)).
5139         * math/test-float128.h (TYPE_STR): Define conditional on
5140         [FLT128_MANT_DIG == LDBL_MANT_DIG].
5141         (ULP_IDX): Likewise.
5142         (ULP_I_IDX): Likewise.
5144         * stdlib/strtold.c: Include <bits/floatn.h>
5145         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128): Define
5146         and later undefine as macro.  Define as weak alias if
5147         [!USE_WIDE_CHAR].
5148         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128): Define
5149         and later undefine as macro.  Define as weak alias if
5150         [USE_WIDE_CHAR].
5151         * sysdeps/ieee754/ldbl-128/strtold_l.c [__HAVE_FLOAT128 &&
5152         !__HAVE_DISTINCT_FLOAT128] (strtof128_l): Define and later
5153         undefine as macro.  Define as weak alias if [!USE_WIDE_CHAR].
5154         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
5155         Define and later undefine as macro.  Define as weak alias if
5156         [USE_WIDE_CHAR].
5157         * sysdeps/ieee754/ldbl-64-128/strtold_l.c: Include
5158         <bits/floatn.h>.
5159         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128_l):
5160         Define and later undefine as macro.  Define as weak alias if
5161         [!USE_WIDE_CHAR].
5162         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
5163         Define and later undefine as macro.  Define as weak alias if
5164         [USE_WIDE_CHAR].
5166 2017-10-15  Carlos O'Donell  <carlos@redhat.com>
5168         * localedata/collate-test.c (allocate_arrays): Don't use \n in
5169         record_verbose messages.
5171 2017-10-15  H.J. Lu  <hongjiu.lu@intel.com>
5173         [BZ #22052]
5174         * malloc/hooks.c (realloc_check): Use DIAG_IGNORE_NEEDS_COMMENT
5175         to silence -O3 -Wall warning with GCC 7.
5177 2017-10-14  H.J. Lu  <hongjiu.lu@intel.com>
5179         * Makeconfig (+link-static-before-libc): Use the first of
5180         $(CRT-$(@F)) and $(csu-objpfx)$(static-start-installed-name).
5181         * gmon/Makefile (tests): Add tst-gmon-static.
5182         (tests-static): Likewise.
5183         (CFLAGS-tst-gmon-static.c): New.
5184         (CRT-tst-gmon-static): Likewise.
5185         (DEFAULT-LDFLAGS-tst-gmon-static): Likewise.
5186         (tst-gmon-static-ENV): Likewise.
5187         (tests-special): Likewise.
5188         ($(objpfx)tst-gmon-static.out): Likewise.
5189         (clean-tst-gmon-static-data): Likewise.
5190         ($(objpfx)tst-gmon-static-gprof.out): Likewise.
5191         * gmon/tst-gmon-static-gprof.sh: New file.
5192         * gmon/tst-gmon-static.c: Likewise.
5194 2017-10-13  Carlos O'Donell  <carlos@redhat.com>
5196         [BZ #22295]
5197         * locale/programs/linereader.c (get_string): Don't warn on
5198         non-symbolic character.
5200         [BZ #22294]
5201         * locale/programs/ld-monetary.c (monetary_finish): Allow ""
5202         int_curr_symbol.
5204         [BZ #22292]
5205         * locale/programs/record-status.h: New file
5206         * locale/programs/locale.c: Add comment.
5207         * locale/programs/charmap-dir.c: Don't include error.h.
5208         (charmap_opendir): Use record_error.
5209         * locale/programs/charmap.c: Don't include error.h.
5210         (charmap_read): Use record_error, and record_warning.
5211         (parse_charmap): Likewise.
5212         * locale/programs/ld-address.c: Don't include error.h.
5213         (address_finish): Use record_error, and record_warning.
5214         * locale/programs/ld-collate.c: Don't include error.h.
5215         (collate_finish): Use record_error, and record_error_at_line.
5216         * locale/programs/ld-ctype.c (ctype_finish): Use record_error.
5217         (ctype_class_new): Likewise.
5218         (ctype_map_new): Likewise.
5219         (set_one_default): Likewise.
5220         (set_class_defaults): Likewise.
5221         (translit_flatten): Likewise.
5222         (allocate_arrays): Use record_error, and record_verbose.
5223         * locale/programs/ld-identification.c: Don't include error.h.
5224         (indentation_finish): Use record_error and record_warning.
5225         * locale/programs/ld-measurement.c: Don't include error.h.
5226         (measurement_finish): Use record_error.
5227         * locale/programs/ld-messages.c
5228         (message_finish): Likewise.
5229         * locale/programs/ld-monetary.c
5230         (monetary_finish): Likewise.
5231         * locale/programs/ld-name.c (name_finish): Use record_error
5232         and record_warning.
5233         * locale/programs/ld-numeric.c
5234         (numeric_finish): Use record_error.
5235         * locale/programs/ld-paper.c: Don't include error.h.
5236         (paper_finish): Use record_error.
5237         * locale/programs/ld-telephone.c: Don't include error.h.
5238         (telephone_finish): Use record_error.
5239         * locale/programs/ld-time.c (time_finish): Likewise.
5240         * locale/programs/linereader.h (lr_error): Make inline func.
5241         * locale/programs/localedef.c: Define recorded_warning_count,
5242         and recorded_error_count.
5243         (main): Use record_error. Use recorded_error_count and
5244         recorded_warning_count to issue correct error returns.
5245         (add_to_readlist): Use record_error.
5246         (find_locale): Likewise.
5247         (load_locale): Likewise.
5248         * locale/programs/localedef.h: Remove be_quiet
5249         and WITH_CUR_LOCALE.
5250         * locale/programs/locarchive.c (compare_from_file): Use
5251         record_error.
5252         * locale/programs/locfile.c (write_locale_data): Use
5253         record_error.
5254         * locale/programs/repertoire.c: Dont include error.h.
5255         (repertoire_complain): Use record_error.
5256         * localedata/tst-fmon.sh: Expect failures from localedef.
5257         * localedata/tst-locale.sh: Likewise.
5258         * localedata/gen-locale.sh: Expect failures from SHIFT_JIS.
5260         * localedata/unicode-gen/Makefile (GENERATED): Use i18n_ctype.
5261         (REPORTS): Likewise.
5262         (check): Likewise.
5263         (i18n): Rename to...
5264         (i18n_ctype): ...this.
5265         (i18n-report): Rename to...
5266         (i18n_ctype-report): ...this.
5267         * localedata/locales/i18n_ctype: Regenerate.
5268         * localedata/locales/i18n: copy i18n_ctype.
5270 2017-10-13  Joseph Myers  <joseph@codesourcery.com>
5272         * stdlib/strfroml.c: Include <bits/floatn.h>.
5273         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strfromf128):
5274         Define before include of <stdlib.h> and undefine afterwards, then
5275         define as weak alias.
5277         * sysdeps/ieee754/ldbl-64-128/s_nextafterl.c (weak_alias):
5278         Undefine and restore default definition.  Use
5279         libm_alias_ldouble_other.
5281 2017-10-13  Peter Zelezny  <peter.zelezny@dektech.com.au>
5283         [BZ #22153]
5284         * nptl/allocatestack.c (__nptl_setxid_error): Preserve error code
5285         in coredumps.
5287 2017-10-13  James Clarke  <jrtc27@jrtc27.com>
5289         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
5290         Assign sym_map to be map for local symbols, as TLS relocations
5291         use sym_map to determine whether the symbol is defined and to
5292         extract the TLS information.
5293         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
5294         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
5296 2017-10-13  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
5298         [BZ #22189]
5299         * sysdeps/powerpc/fpu/math_private.h (math_opt_barrier):
5300         (math_force_eval): Add powerpc version.
5302         [BZ #22142]
5303         * stdio-common/tst-printf.c (fp_test): Add tests for DBL_MAX and
5304         -DBL_MAX.
5305         (do_test): Likewise.
5306         * stdio-common/tst-printf.sh: Likewise.
5307         * sysdeps/powerpc/powerpc64/power7/add_n.S: Invert the initial
5308         ifdef clause in order to set the carry bit right.  Replace r0 by
5309         0 without changing the behavior.
5311 2017-10-13  Joseph Myers  <joseph@codesourcery.com>
5313         * sysdeps/sparc/sparc32/fpu/s_fabsl.c: Include
5314         <libm-alias-ldouble.h>.
5315         (fabsl): Define using libm_alias_ldouble.
5316         * sysdeps/sparc/sparc64/fpu/s_fabsl.c: Include
5317         <libm-alias-ldouble.h>.
5318         (fabsl): Define using libm_alias_ldouble.
5320         * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]:
5321         Remove conditional code.
5323         * sysdeps/ieee754/ldbl-opt/s_clog10l.c (__clog10l__internal):
5324         Rename to __clog10_internal_l.
5325         (__clog10_internal_l): Define aliases using
5326         libm_alias_ldouble_other instead of using libm_alias_ldouble_other
5327         with __clog10.
5329 2017-10-13  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
5331         * benchtests/Makefile (bench-math):  Add sinf, cosf and sincosf.
5332         * benchtests/sincosf-inputs: New file.
5333         * benchtests/cosf-inputs: New file.
5334         * benchtests/sinf-inputs: New file.
5336 2017-10-12  Szabolcs Nagy  <szabolcs.nagy@arm.com>
5338         * posix/tst-spawn.c (do_test): Wait for both children.
5340 2017-10-12  H.J. Lu  <hongjiu.lu@intel.com>
5342         [BZ #22284]
5343         * gmon/Makefile [$(have-fpie)$(build-shared) == yesyes] (tests,
5344         tests-pie): Add tst-gmon-pie.
5345         (CFLAGS-tst-gmon-pie.c): New.
5346         (CRT-tst-gmon-pie): Likewise.
5347         (tst-gmon-pie-ENV): Likewise.
5348         [$(have-fpie)$(build-shared) == yesyes] (tests-special): Likewise.
5349         ($(objpfx)tst-gmon-pie.out): Likewise.
5350         (clean-tst-gmon-pie-data): Likewise.
5351         ($(objpfx)tst-gmon-pie-gprof.out): Likewise.
5352         * gmon/gmon.c [PIC]: Include <link.h>.
5353         [PIC] (callback): New function.
5354         (write_hist): Add an argument for load address.  Subtract load
5355         address from PCs.
5356         (write_call_graph): Likewise.
5357         (write_gmon): Call __dl_iterate_phdr to get load address, pass
5358         it to write_hist and write_call_graph.
5359         * gmon/tst-gmon-pie.c: New file.
5361 2017-10-11  Joseph Myers  <joseph@codesourcery.com>
5363         * math/Makefile (test-types-basic): New variable.
5364         (test-types): Likewise.
5365         (libm-test-support): Use $(test-types) instead of $(types).
5366         (libm-tests-base-normal): Likewise.
5367         (libm-tests-base-finite): Likewise.
5368         (libm-tests-base-inline): Likewise.
5369         (generated): Likewise.
5370         ($(objpfx)libm-test-support-$(t).c): Likewise.
5371         (libm-tests-for-type iterator): Likewise.
5372         (libm-test-support iterator): Likewise.
5373         * math/libm-test-support.c (ulp_i_idx): Use ULP_I_IDX.
5374         (ulp_idx): Use ULP_IDX.
5375         * math/test-ldouble.h: Include <float.h>.
5376         (TYPE_STR): Define conditional on [LDBL_MANT_DIG == DBL_MANT_DIG].
5377         (ULP_IDX): New macro.
5378         (ULP_I_IDX): Likewise.
5379         * math/test-double.h (ULP_IDX): Likewise.
5380         (ULP_I_IDX): Likewise.
5381         * math/test-float.h (ULP_IDX): Likewise.
5382         (ULP_I_IDX): Likewise.
5383         * math/test-float128.h (ULP_IDX): Likewise.
5384         (ULP_I_IDX): Likewise.
5386 2017-10-11  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
5388         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Remove file.
5389         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
5390         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
5391         * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h: Likewise.
5392         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
5393         * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h: Likewise.
5394         * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: Likewise.
5395         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
5396         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
5397         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
5398         * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: Likewise.
5399         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
5400         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
5401         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
5402         (SINGLE_THREAD_BY_GLOBAL): Define.
5403         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
5404         Likewise.
5405         * sysdeps/unix/sysv/linux/alpha/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
5406         Likewise.
5407         * sysdeps/unix/sysv/linux/arm/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
5408         Likewise.
5409         * sysdeps/unix/sysv/linux/hppa/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
5410         Likewise.
5411         * sysdeps/unix/sysv/linux/microblaze/sysdep.h
5412         (SINGLE_THREAD_BY_GLOBAL): Likewise.
5413         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
5414         Likewise.
5416 2017-10-11  Andreas Schwab  <schwab@suse.de>
5418         * nis/Makefile (aux): Remove.
5419         * nscd/Makefile (aux): Add nscd_hash.
5420         (nscd-modules): Likewise.
5421         ($(objpfx)nscd): Don't depend on libnsl.
5422         * nscd/nscd_hash.c: New file.
5423         * nscd/nscd_hash.h: Likewise.
5424         * nscd/cache.c: Include "nscd_hash.h" instead of <rpcsvc/nis.h>.
5425         (cache_search, cache_add): Use __nscd_hash instead of __nis_hash.
5426         * nscd/nscd_helper.c: Include <sys/param.h> and "nscd_hash.h"
5427         instead of <nis/rpcsvc/nis.h>.
5428         (__nscd_cache_search): Use __nscd_hash instead of __nis_hash.
5430 2017-10-11  Florian Weimer  <fweimer@redhat.com>
5432         [BZ #22078]
5433         Avoid large NSS buffers with many addresses, aliases.
5434         * nss/nss_files/files-hosts.c (gethostbyname3_multi): Rewrite
5435         using dynarrays and struct alloc_buffer.
5436         * nss/Makefile (tests): Add tst-nss-files-hosts-multi.
5437         (tst-nss-files-hosts-multi): Link with -ldl.
5438         * nss/tst-nss-files-hosts-multi.c: New file.
5440 2017-10-11  Florian Weimer  <fweimer@redhat.com>
5442         [BZ #18023]
5443         * nss/nss_files/files-hosts.c (gethostbyname3_multi): Use struct
5444         scratch_buffer.  Eliminate gotos.
5446 2017-10-11  Joseph Myers  <joseph@codesourcery.com>
5448         * sysdeps/ieee754/ldbl-opt/s_clog10l.c: Use
5449         libm_alias_ldouble_other.
5450         * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (weak_alias): Do not
5451         undefine and redefine.
5452         [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
5453         (exp10l): Do not define here.
5454         * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]
5455         (weak_alias): Undefine and redefine.
5456         [BUILD_LGAMMA]: Use libm_alias_ldouble_other.
5457         * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
5458         [LIBM_SVID_COMPAT] (weak_alias): Undefine and redefine here.
5459         [LIBM_SVID_COMPAT]: Use libm_alias_ldouble_other.
5461         * soft-fp/fmadf4.c: Include <libm-alias-double.h>.
5462         [!__fma] (fma): Define using libm_alias_double.
5463         * soft-fp/fmasf4.c: Include <libm-alias-float.h>.
5464         [!__fmaf] (fmaf): Define using libm_alias_float.
5465         * soft-fp/fmatf4.c: Include <libm-alias-ldouble.h>.
5466         (fmal): Define using libm_alias_ldouble.
5468 2017-10-10  Joseph Myers  <joseph@codesourcery.com>
5470         * sysdeps/generic/libm-alias-double.h (libm_alias_double_other_r):
5471         New macro.
5472         (libm_alias_double_other): Likewise.
5473         (libm_alias_double_r): Use libm_alias_double_other_r.
5474         * sysdeps/generic/libm-alias-float.h (libm_alias_float_other_r):
5475         New macro.
5476         (libm_alias_float_other): Likewise.
5477         (libm_alias_float_r): Use libm_alias_float_other_r.
5478         * sysdeps/generic/libm-alias-float128.h
5479         (libm_alias_float128_other_r): New macro.
5480         (libm_alias_float128_other): Likewise.
5481         (libm_alias_float128_r): Use libm_alias_float128_other_r.
5482         * sysdeps/generic/libm-alias-ldouble.h
5483         (libm_alias_ldouble_other_r): New macro.
5484         (libm_alias_ldouble_other): Likewise.
5485         (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
5486         * sysdeps/ieee754/ldbl-opt/libm-alias-double.h
5487         (libm_alias_double_other_r): New macro.
5488         (libm_alias_double_other): Likewise.
5489         (libm_alias_double_r): Use libm_alias_double_other_r.
5490         * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h
5491         (libm_alias_ldouble_other_r): New macro.
5492         (libm_alias_ldouble_other): Likewise.
5493         (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
5494         * math/w_lgamma_main.c: Include <libm-alias-double.h>.
5495         [!USE_AS_COMPAT]: Use libm_alias_double_other.
5496         * math/w_lgammaf_main.c: Include <libm-alias-float.h>.
5497         [!USE_AS_COMPAT]: Use libm_alias_float_other.
5498         * math/w_lgammal_main.c: Include <libm-alias-ldouble.h>.
5499         [!USE_AS_COMPAT]: Use libm_alias_ldouble_other.
5500         * math/w_exp2f.c: Use libm_alias_float_other.
5501         * math/w_expf.c: Likewise.
5502         * math/w_log2f.c: Likewise.
5503         * math/w_logf.c: Likewise.
5504         * math/w_powf.c: Likewise.
5505         * sysdeps/ieee754/flt-32/e_exp2f.c: Include <libm-alias-float.h>.
5506         [!__exp2f]: Use libm_alias_float_other.
5507         * sysdeps/ieee754/flt-32/e_expf.c: Include <libm-alias-float.h>.
5508         [!__expf]: Use libm_alias_float_other.
5509         * sysdeps/ieee754/flt-32/e_log2f.c: Include <libm-alias-float.h>.
5510         [!__log2f]: Use libm_alias_float_other.
5511         * sysdeps/ieee754/flt-32/e_logf.c: Include <libm-alias-float.h>.
5512         [!__logf]: Use libm_alias_float_other.
5513         * sysdeps/ieee754/flt-32/e_powf.c: Include <libm-alias-float.h>.
5514         [!__powf]: Use libm_alias_float_other.
5516 2017-10-10  Florian Weimer  <fweimer@redhat.com>
5518         * nss/nss_files/files-hosts.c (gethostbyname3_multi): New
5519         function.
5520         (_nss_files_gethostbyname3_r): Call it.
5522 2017-10-09  Joseph Myers  <joseph@codesourcery.com>
5524         * sysdeps/generic/math-type-macros.h [!declare_mgen_alias]: Give
5525         error.  Remove default definition of declare_mgen_alias.
5526         [!declare_mgen_alias_r]: Likewise.
5527         * sysdeps/generic/math-type-macros-double.h
5528         [!declare_mgen_alias_r] (declare_mgen_alias_r): New macro.
5529         * sysdeps/generic/math-type-macros-float.h [!declare_mgen_alias_r]
5530         (declare_mgen_alias_r): Likewise.
5531         * sysdeps/generic/math-type-macros-float128.h
5532         [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
5533         * sysdeps/generic/math-type-macros-ldouble.h
5534         [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
5535         * math/w_lgamma_r_template.c (declare_mgen_alias_r_x): Remove
5536         macro.
5537         (declare_mgen_alias_r_s): Likewise.
5538         (declare_mgen_alias_r): Likewise.
5539         * math/w_lgamma_r_compat.c: Include <libm-alias-double.h>.
5540         (lgamma_r): Define using libm_alias_double_r.
5541         * math/w_lgammaf_r_compat.c: Include <libm-alias-float.h>.
5542         (lgammaf_r): Define using libm_alias_float_r.
5543         * math/w_lgammal_r_compat.c: Include <libm-alias-ldouble.h>.
5544         (lgammal_r): Define using libm_alias_ldouble_r.
5545         * sysdeps/ieee754/ldbl-opt/w_lgamma_r_compat.c: Remove file.
5546         * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
5548 2017-10-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
5550         * lib/glob.c (__glob_pattern_type): Remove now-spurious
5551         extern declaration.
5553 2017-10-09  Joseph Myers  <joseph@codesourcery.com>
5555         * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Remove file.
5557 2017-10-09  Jonathan Wakely  <jwakely@redhat.com>
5559         [BZ #21326]
5560         * include/features.h [__cplusplus >= 201703] (__USE_ISOC11): Define.
5561         [__cplusplus >= 201103] (__USE_ISOC99): Define.
5562         * math/Makefile (test-math-cxx11): New test.
5563         * math/test-math-cxx11.cc: New file.
5565 2017-10-08  Christian Brauner  <christian.brauner@ubuntu.com>
5567         * login/openpty.c (openpty): Close slave pty file descriptor on error.
5569         * login/openpty.c (openpty): If defined, use the TIOCGPTPEER ioctl()
5570         call to allocate the slave pty file descriptor.
5572 2017-10-06  Joseph Myers  <joseph@codesourcery.com>
5574         * sysdeps/ieee754/ldbl-128/s_fma.c: Include <libm-alias-double.h>.
5575         [!__fma] (fma): Define using libm_alias_double.
5576         * sysdeps/ieee754/ldbl-96/s_fma.c: Include <libm-alias-double.h>.
5577         [!__fma] (fma): Define using libm_alias_double.
5579         * sysdeps/ieee754/float128/float128_private.h: Include
5580         <libm-alias-ldouble.h> and <libm-alias-float128.h>.
5581         (libm_alias_ldouble_r): Undefine and redefine.
5582         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Include
5583         <libm-alias-ldouble.h>.
5584         (asinhl): Define using libm_alias_ldouble.
5585         * sysdeps/ieee754/ldbl-128/s_atanl.c: Include
5586         <libm-alias-ldouble.h>.
5587         (atanl): Define using libm_alias_ldouble.
5588         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Include
5589         <libm-alias-ldouble.h>.
5590         (cbrtl): Define using libm_alias_ldouble.
5591         * sysdeps/ieee754/ldbl-128/s_ceill.c: Include
5592         <libm-alias-ldouble.h>.
5593         (ceill): Define using libm_alias_ldouble.
5594         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Include
5595         <libm-alias-ldouble.h>.
5596         (copysignl): Define using libm_alias_ldouble.
5597         * sysdeps/ieee754/ldbl-128/s_cosl.c: Include
5598         <libm-alias-ldouble.h>.
5599         (cosl): Define using libm_alias_ldouble.
5600         * sysdeps/ieee754/ldbl-128/s_erfl.c: Include
5601         <libm-alias-ldouble.h>.
5602         (erfl): Define using libm_alias_ldouble.
5603         (erfcl): Likewise.
5604         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Include
5605         <libm-alias-ldouble.h>.
5606         (expm1l): Define using libm_alias_ldouble.
5607         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Include
5608         <libm-alias-ldouble.h>.
5609         (fabsl): Define using libm_alias_ldouble.
5610         * sysdeps/ieee754/ldbl-128/s_floorl.c: Include
5611         <libm-alias-ldouble.h>.
5612         (floorl): Define using libm_alias_ldouble.
5613         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include
5614         <libm-alias-ldouble.h>.
5615         (fmal): Define using libm_alias_ldouble.
5616         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Include
5617         <libm-alias-ldouble.h>.
5618         (frexpl): Define using libm_alias_ldouble.
5619         * sysdeps/ieee754/ldbl-128/s_fromfpl.c (fromfpl): Define using
5620         libm_alias_ldouble.
5621         * sysdeps/ieee754/ldbl-128/s_fromfpl_main.c: Include
5622         <libm-alias-ldouble.h>.
5623         * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (fromfpxl): Define using
5624         libm_alias_ldouble.
5625         * sysdeps/ieee754/ldbl-128/s_getpayloadl.c: Include
5626         <libm-alias-ldouble.h>.
5627         (getpayloadl): Define using libm_alias_ldouble.
5628         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Include
5629         <libm-alias-ldouble.h>.
5630         (llrintl): Define using libm_alias_ldouble.
5631         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Include
5632         <libm-alias-ldouble.h>.
5633         (llroundl): Define using libm_alias_ldouble.
5634         * sysdeps/ieee754/ldbl-128/s_logbl.c: Include
5635         <libm-alias-ldouble.h>.
5636         (logbl): Define using libm_alias_ldouble.
5637         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Include
5638         <libm-alias-ldouble.h>.
5639         (lrintl): Define using libm_alias_ldouble.
5640         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Include
5641         <libm-alias-ldouble.h>.
5642         (lroundl): Define using libm_alias_ldouble.
5643         * sysdeps/ieee754/ldbl-128/s_modfl.c: Include
5644         <libm-alias-ldouble.h>.
5645         (modfl): Define using libm_alias_ldouble.
5646         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Include
5647         <libm-alias-ldouble.h>.
5648         (nearbyintl): Define using libm_alias_ldouble.
5649         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Include
5650         <libm-alias-ldouble.h>.
5651         (nextafterl): Define using libm_alias_ldouble.
5652         * sysdeps/ieee754/ldbl-128/s_nextupl.c: Include
5653         <libm-alias-ldouble.h>.
5654         (nextupl): Define using libm_alias_ldouble.
5655         * sysdeps/ieee754/ldbl-128/s_remquol.c: Include
5656         <libm-alias-ldouble.h>.
5657         (remquol): Define using libm_alias_ldouble.
5658         * sysdeps/ieee754/ldbl-128/s_rintl.c: Include
5659         <libm-alias-ldouble.h>.
5660         (rintl): Define using libm_alias_ldouble.
5661         * sysdeps/ieee754/ldbl-128/s_roundevenl.c: Include
5662         <libm-alias-ldouble.h>.
5663         (roundevenl): Define using libm_alias_ldouble.
5664         * sysdeps/ieee754/ldbl-128/s_roundl.c: Include
5665         <libm-alias-ldouble.h>.
5666         (roundl): Define using libm_alias_ldouble.
5667         * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (setpayloadl): Define
5668         using libm_alias_ldouble.
5669         * sysdeps/ieee754/ldbl-128/s_setpayloadl_main.c: Include
5670         <libm-alias-ldouble.h>.
5671         * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (setpayloadsigl):
5672         Define using libm_alias_ldouble.
5673         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Include
5674         <libm-alias-ldouble.h>.
5675         (sincosl): Define using libm_alias_ldouble.
5676         * sysdeps/ieee754/ldbl-128/s_sinl.c: Include
5677         <libm-alias-ldouble.h>.
5678         (sinl): Define using libm_alias_ldouble.
5679         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Include
5680         <libm-alias-ldouble.h>.
5681         (tanhl): Define using libm_alias_ldouble.
5682         * sysdeps/ieee754/ldbl-128/s_tanl.c: Include
5683         <libm-alias-ldouble.h>.
5684         (tanl): Define using libm_alias_ldouble.
5685         * sysdeps/ieee754/ldbl-128/s_totalorderl.c: Include
5686         <libm-alias-ldouble.h>.
5687         (totalorderl): Define using libm_alias_ldouble.
5688         * sysdeps/ieee754/ldbl-128/s_totalordermagl.c: Include
5689         <libm-alias-ldouble.h>.
5690         (totalordermagl): Define using libm_alias_ldouble.
5691         * sysdeps/ieee754/ldbl-128/s_truncl.c: Include
5692         <libm-alias-ldouble.h>.
5693         (truncl): Define using libm_alias_ldouble.
5694         * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (ufromfpl): Define using
5695         libm_alias_ldouble.
5696         * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (ufromfpxl): Define using
5697         libm_alias_ldouble.
5698         * sysdeps/ieee754/ldbl-64-128/s_copysignl.c: Include
5699         <libm-alias-ldouble.h>.
5700         (weak_alias): Do not undefine and redefine.
5701         [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
5702         (copysignl): Define with long_double_symbol only if [IS_IN
5703         (libc)].
5704         * sysdeps/ieee754/ldbl-64-128/s_frexpl.c: Include
5705         <libm-alias-ldouble.h>.
5706         (weak_alias): Do not undefine and redefine.
5707         [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
5708         (frexpl): Define with long_double_symbol only if [IS_IN (libc)].
5709         * sysdeps/ieee754/ldbl-64-128/s_modfl.c: Include
5710         <libm-alias-ldouble.h>.
5711         (weak_alias): Do not undefine and redefine.
5712         [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
5713         (modfl): Define with long_double_symbol only if [IS_IN (libc)].
5714         * sysdeps/ieee754/ldbl-64-128/s_asinhl.c: Remove file.
5715         * sysdeps/ieee754/ldbl-64-128/s_atanl.c: Likewise.
5716         * sysdeps/ieee754/ldbl-64-128/s_cbrtl.c: Likewise.
5717         * sysdeps/ieee754/ldbl-64-128/s_ceill.c: Likewise.
5718         * sysdeps/ieee754/ldbl-64-128/s_cosl.c: Likewise.
5719         * sysdeps/ieee754/ldbl-64-128/s_erfl.c: Likewise.
5720         * sysdeps/ieee754/ldbl-64-128/s_expm1l.c: Likewise.
5721         * sysdeps/ieee754/ldbl-64-128/s_fabsl.c: Likewise.
5722         * sysdeps/ieee754/ldbl-64-128/s_floorl.c: Likewise.
5723         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: Likewise.
5724         * sysdeps/ieee754/ldbl-64-128/s_llrintl.c: Likewise.
5725         * sysdeps/ieee754/ldbl-64-128/s_llroundl.c: Likewise.
5726         * sysdeps/ieee754/ldbl-64-128/s_logbl.c: Likewise.
5727         * sysdeps/ieee754/ldbl-64-128/s_lrintl.c: Likewise.
5728         * sysdeps/ieee754/ldbl-64-128/s_lroundl.c: Likewise.
5729         * sysdeps/ieee754/ldbl-64-128/s_nearbyintl.c: Likewise.
5730         * sysdeps/ieee754/ldbl-64-128/s_remquol.c: Likewise.
5731         * sysdeps/ieee754/ldbl-64-128/s_rintl.c: Likewise.
5732         * sysdeps/ieee754/ldbl-64-128/s_roundl.c: Likewise.
5733         * sysdeps/ieee754/ldbl-64-128/s_sincosl.c: Likewise.
5734         * sysdeps/ieee754/ldbl-64-128/s_sinl.c: Likewise.
5735         * sysdeps/ieee754/ldbl-64-128/s_tanhl.c: Likewise.
5736         * sysdeps/ieee754/ldbl-64-128/s_tanl.c: Likewise.
5737         * sysdeps/ieee754/ldbl-64-128/s_truncl.c: Likewise.
5739 2017-10-06  Carlos O'Donell  <carlos@redhat.com>
5741         [BZ #22111]
5742         * malloc/malloc.c (tcache_shutting_down): Use bool type.
5743         (tcache_thread_freeres): Set tcache_shutting_down before
5744         freeing the tcache.
5745         * malloc/Makefile (tests): Add tst-malloc-tcache-leak.
5746         * malloc/tst-malloc-tcache-leak.c: New file.
5748 2017-10-06  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
5750         * sysdeps/powerpc/powerpc64/multiarch/memrchr-ppc64.c: Revert
5751         back to powerpc32 file.
5752         * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
5753         (memrchr): Add __memrchr_power8 to ifunc list.
5754         * sysdeps/powerpc/powerpc64/power8/memrchr.S: Mask
5755         extra bytes for unaligned inputs.
5757 2017-10-06  Joseph Myers  <joseph@codesourcery.com>
5759         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: Remove file.
5760         * sysdeps/ieee754/ldbl-64-128/s_log1pl.c: Likewise.
5761         * sysdeps/ieee754/ldbl-64-128/s_scalblnl.c: Likewise.
5762         * sysdeps/ieee754/ldbl-64-128/s_scalbnl.c: Likewise.
5763         * sysdeps/ieee754/ldbl-64-128/w_scalblnl.c: Likewise.
5765 2017-10-05  Joseph Myers  <joseph@codesourcery.com>
5767         * sysdeps/arm/libm-test-ulps: Update.
5769         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Include
5770         <libm-alias-ldouble.h>.
5771         (asinhl): Define using libm_alias_ldouble.
5772         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Include
5773         <libm-alias-ldouble.h>.
5774         (cbrtl): Define using libm_alias_ldouble.
5775         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Include
5776         <libm-alias-ldouble.h>.
5777         (copysignl): Define using libm_alias_ldouble.
5778         * sysdeps/ieee754/ldbl-96/s_cosl.c: Include
5779         <libm-alias-ldouble.h>.
5780         (cosl): Define using libm_alias_ldouble.
5781         * sysdeps/ieee754/ldbl-96/s_erfl.c: Include
5782         <libm-alias-ldouble.h>.
5783         (erfl): Define using libm_alias_ldouble.
5784         (erfcl): Likewise.
5785         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include
5786         <libm-alias-ldouble.h>.
5787         (fmal): Define using libm_alias_ldouble.
5788         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Include
5789         <libm-alias-ldouble.h>.
5790         (frexpl): Define using libm_alias_ldouble.
5791         * sysdeps/ieee754/ldbl-96/s_fromfpl.c (fromfpl): Define using
5792         libm_alias_ldouble.
5793         * sysdeps/ieee754/ldbl-96/s_fromfpl_main.c: Include
5794         <libm-alias-ldouble.h>.
5795         * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (fromfpxl): Define using
5796         libm_alias_ldouble.
5797         * sysdeps/ieee754/ldbl-96/s_getpayloadl.c: Include
5798         <libm-alias-ldouble.h>.
5799         (getpayloadl): Define using libm_alias_ldouble.
5800         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Include
5801         <libm-alias-ldouble.h>.
5802         (llrintl): Define using libm_alias_ldouble.
5803         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Include
5804         <libm-alias-ldouble.h>.
5805         (llroundl): Define using libm_alias_ldouble.
5806         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Include
5807         <libm-alias-ldouble.h>.
5808         (lrintl): Define using libm_alias_ldouble.
5809         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Include
5810         <libm-alias-ldouble.h>.
5811         (lroundl): Define using libm_alias_ldouble.
5812         * sysdeps/ieee754/ldbl-96/s_modfl.c: Include
5813         <libm-alias-ldouble.h>.
5814         (modfl): Define using libm_alias_ldouble.
5815         * sysdeps/ieee754/ldbl-96/s_nextupl.c: Include
5816         <libm-alias-ldouble.h>.
5817         (nextupl): Define using libm_alias_ldouble.
5818         * sysdeps/ieee754/ldbl-96/s_remquol.c: Include
5819         <libm-alias-ldouble.h>.
5820         (remquol): Define using libm_alias_ldouble.
5821         * sysdeps/ieee754/ldbl-96/s_roundevenl.c: Include
5822         <libm-alias-ldouble.h>.
5823         (roundevenl): Define using libm_alias_ldouble.
5824         * sysdeps/ieee754/ldbl-96/s_roundl.c: Include
5825         <libm-alias-ldouble.h>.
5826         (roundl): Define using libm_alias_ldouble.
5827         * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (setpayloadl): Define
5828         using libm_alias_ldouble.
5829         * sysdeps/ieee754/ldbl-96/s_setpayloadl_main.c: Include
5830         <libm-alias-ldouble.h>.
5831         * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c: Include
5832         <libm-alias-ldouble.h>.
5833         (setpayloadsigl): Define using libm_alias_ldouble.
5834         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Include
5835         <libm-alias-ldouble.h>.
5836         (sincosl): Define using libm_alias_ldouble.
5837         * sysdeps/ieee754/ldbl-96/s_sinl.c: Include
5838         <libm-alias-ldouble.h>.
5839         (sinl): Define using libm_alias_ldouble.
5840         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Include
5841         <libm-alias-ldouble.h>.
5842         (tanhl): Define using libm_alias_ldouble.
5843         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include
5844         <libm-alias-ldouble.h>.
5845         (tanl): Define using libm_alias_ldouble.
5846         * sysdeps/ieee754/ldbl-96/s_totalorderl.c: Include
5847         <libm-alias-ldouble.h>.
5848         (totalorderl): Define using libm_alias_ldouble.
5849         * sysdeps/ieee754/ldbl-96/s_totalordermagl.c: Include
5850         <libm-alias-ldouble.h>.
5851         (totalordermagl): Define using libm_alias_ldouble.
5852         * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (ufromfpl): Define using
5853         libm_alias_ldouble.
5854         * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (ufromfpxl): Define using
5855         libm_alias_ldouble.
5857 2017-10-05  Siddhesh Poyarekar  <siddhesh@sourceware.org>
5859         * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
5860         memmove_falkor.
5861         * sysdeps/aarch64/multiarch/ifunc-impl-list.c
5862         (__libc_ifunc_impl_list): Likewise.
5863         * sysdeps/aarch64/multiarch/memmove.c: Likewise.
5864         * sysdeps/aarch64/multiarch/memmove_falkor.S: New file.
5866         * benchtests/bench-memmove-walk.c: New file.
5867         * benchtests/Makefile (string-benchset): Add it.
5869         * benchtests/bench-memset-walk.c: New file.
5870         * benchtests/Makefile (string-benchset): Add it.
5872         * benchtests/bench-memcpy-walk.c: New file.
5873         * benchtests/Makefile (string-benchset): Add it.
5875 2017-10-05  Florian Weimer  <fweimer@redhat.com>
5877         nscd: Eliminate compilation time dependency in the build output.
5878         * nscd/nscd_stat.c (STATDATA_VERSION)
5879         (STATDATA_VERSION_SELINUX_FLAG, STATDATA_VERSION_FLAGS)
5880         (STATDATA_VERSION_FULL): New macro definitions.
5881         (compilation): Remove.
5882         (struct statdata): Adjust version member.
5883         (send_stats): Set version from STATDATA_VERSION_FULL.
5884         (receive_print_stats): Verify version against STATDATA_VERSION_FULL.
5886 2017-10-05  Joseph Myers  <joseph@codesourcery.com>
5888         * configure.ac (--enable-add-ons): Remove option.
5889         (machine): Do not mention add-ons in comment.
5890         (LIBC_PRECONFIGURE): Likewise.
5891         (add_ons): Remove variable and sanity checks and logic to locate
5892         add-ons.
5893         (add_ons_automatic): Remove variable.
5894         (configured_add_ons): Likewise.
5895         (add_ons_sfx): Likewise.
5896         (add_ons_pfx): Likewise.
5897         (add_on_subdirs): Likewise.
5898         (sysnames_add_ons): Likewise.  Remove loop over add-ons and
5899         consideration of add-ons in Implies handling.
5900         (sysdeps_add_ons): Likewise.
5901         * configure: Regenerated.
5902         * libidn/configure.ac: Remove.
5903         * libidn/configure: Likewise.
5904         * sysdeps/unix/inet/configure.ac: New file.
5905         * sysdeps/unix/inet/configure: New generated file.
5906         * sysdeps/unix/inet/Subdirs: Add libidn.
5907         * Makeconfig (sysdeps-srcdirs): Remove variable.
5908         (+sysdep_dirs): Do not include $(sysdeps-srcdirs).
5909         ($(common-objpfx)config.status): Do not depend on add-on files.
5910         ($(common-objpfx)shlib-versions.v.i): Do not mention add-ons in
5911         comment.
5912         (all-subdirs): Do not include $(add-on-subdirs).
5913         * Makefile (dist-prepare): Do not use $(sysdeps-add-ons).
5914         * config.make.in (add-ons): Remove variable.
5915         (add-on-subdirs): Likewise.
5916         (sysdeps-add-ons): Likewise.
5917         * manual/Makefile (add-chapters): Remove.
5918         ($(objpfx)texis): Do not depend on $(add-chapters).
5919         (nonexamples): Do not handle $(add-chapters).
5920         (examples): Do not handle $(add-ons).
5921         (chapters.% top-menu.%): Do not pass '$(add-chapters)' to
5922         libc-texinfo.sh.
5923         * manual/install.texi (Installation): Do not mention add-ons.
5924         (--enable-add-ons): Do not document configure option.
5925         * INSTALL: Regenerated.
5926         * manual/libc-texinfo.sh: Do not handle $2 add-ons argument.
5927         * manual/maint.texi (Hierarchy Conventions): Do not mention
5928         add-ons.
5929         * scripts/build-many-glibcs.py (Glibc.build_glibc): Do not use
5930         --enable-add-ons.
5931         * scripts/gen-sorted.awk: Do not handle Subdirs files from
5932         add-ons.
5933         * scripts/test-installation.pl: Do not handle glibc-compat add-on.
5934         * sysdeps/nptl/Makeconfig: Do not mention add-ons in comment.
5936 2017-10-05  Andreas Schwab  <schwab@suse.de>
5938         [BZ #15142]
5939         * libio/genops.c (_IO_list_all_stamp): Delete.  All uses removed.
5940         (_IO_flush_all_lockp): Always lock list_all_lock.
5941         (_IO_flush_all_linebuffered): Likewise.
5942         (_IO_unbuffer_all): Likewise.
5944 2017-10-05  Florian Weimer  <fweimer@redhat.com>
5946         [BZ #15436]
5947         Do not flush stdio streams on abort.
5948         * stdlib/abort.c (fflush): Remove macro definition.
5949         (abort): Remove stages related to stdio flushing.
5951 2017-10-05  Florian Weimer  <fweimer@redhat.com>
5953         * gmon/Makefile (CFLAGS-tst-gmon.c): Add -fno-omit-frame-pointer.
5955 2017-10-05  Stefan Liebler  <stli@linux.vnet.ibm.com>
5957         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
5959 2017-10-05  Florian Weimer  <fweimer@redhat.com>
5961         * support/support_format_hostent.c (support_format_hostent): Add
5962         more error information for NETDB_INTERNAL.
5964 2017-10-04  H.J. Lu  <hongjiu.lu@intel.com>
5966         * config.h.in (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New.
5967         * include/libc-symbols.h (__hidden_proto_hiddenattr): Add check
5968         for PIC and NO_HIDDEN_EXTERN_FUNC_IN_PIE.
5969         * sysdeps/i386/configure.ac (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New
5970         AC_DEFINE if multi-arch is enabled.
5971         * sysdeps/i386/configure: Regenerated.
5973 2017-10-04  H.J. Lu  <hongjiu.lu@intel.com>
5975         * Makeconfig (+link-static-before-libc): Use
5976         $(DEFAULT-LDFLAGS-$(@F)).
5977         * elf/Makefile (CRT-tst-tls1-static-non-pie): New.
5978         (LDFLAGS-tst-tls1-static-non-pie): Renamed to ...
5979         (DEFAULT-LDFLAGS-tst-tls1-static-non-pie): This.
5981 2017-10-04  H.J. Lu  <hongjiu.lu@intel.com>
5983         * elf/Makefile (tests): Add tst-main1.
5984         (modules-names): Add tst-main1mod.
5985         ($(objpfx)tst-main1): New.
5986         (CRT-tst-main1): Likewise.
5987         (LDFLAGS-tst-main1): Likewise.
5988         (LDLIBS-tst-main1): Likewise.
5989         (tst-main1mod.so-no-z-defs): Likewise.
5990         * elf/tst-main1.c: New file.
5991         * elf/tst-main1mod.c: Likewise.
5993 2017-10-04  H.J. Lu  <hongjiu.lu@intel.com>
5995         * math/test-math-iscanonical.cc (do_test): Return errors != 0.
5997 2017-10-04  Joseph Myers  <joseph@codesourcery.com>
5999         * sysdeps/ieee754/dbl-64/s_fma.c: Include <libm-alias-double.h>.
6000         (fma): Define using libm_alias_double.
6001         * sysdeps/ieee754/ldbl-opt/s_fma.c: Remove file.
6002         * sysdeps/sparc/sparc32/fpu/s_fma.c: Do not include
6003         <math_ldbl_opt.h>.
6004         (fmal): Do not define as compat symbol here.
6005         * sysdeps/alpha/fpu/s_fma.c: New file.
6007 2017-10-04  Szabolcs Nagy  <szabolcs.nagy@arm.com>
6009         * sysdeps/aarch64/dl-machine.h (elf_machine_rela): Expand MIN.
6011 2017-10-04  Joseph Myers  <joseph@codesourcery.com>
6013         [BZ #22229]
6014         * sysdeps/sparc/sparc32/fpu/s_copysign.S: Include
6015         <math_ldbl_opt.h>
6016         (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
6017         and libc.
6018         * sysdeps/sparc/sparc32/fpu/s_fabs.S: Include <math_ldbl_opt.h>.
6019         (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
6020         * sysdeps/sparc/sparc32/fpu/s_fma.c: Include <math_ldbl_opt.h>.
6021         (fmal): Define as compat symbol at version GLIBC_2_1 for libm.
6022         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
6023         Include <math_ldbl_opt.h>
6024         (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
6025         and libc.
6026         (compat_symbol): Undefine and redefine.
6027         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Include
6028         <math_ldbl_opt.h>
6029         (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
6030         (compat_symbol): Undefine and redefine.
6031         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c
6032         [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h>.
6033         [HAVE_AS_VIS3_SUPPORT] (fmal): Define as compat symbol at version
6034         GLIBC_2_1 for libm.
6035         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Add
6036         GLIBC_2.0 copysignl symbol.
6037         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
6038         GLIBC_2.0 copysignl and fabsl and GLIBC_2.1 fmal symbols.
6040         * sysdeps/alpha/fpu/s_nearbyint.c: Remove file.
6042 2017-10-04  Florian Weimer  <fweimer@redhat.com>
6044         * scripts/check-local-headers.sh: Ignore nspr4 header file
6045         directory in addition to nspr.
6047 2017-10-04  Guido Trentalancia  <guido@trentalancia.net>
6049         [BZ #17956]
6050         * configure.ac (--enable-nss-crypt): Use NSPR include directory.
6051         * configure: Regenerate.
6052         * crypt/Makefile (nss-cpp-flags): New variable.
6053         (CPPFLAGS-sha256-crypt.c, CPPFLAGS-sha512-crypt.c)
6054         (CPPFLAGS-md5-crypt.c): Use it.
6055         * scripts/check-local-headers.sh: Ignore nspr header file
6056         directory.
6058 2017-10-04  Andreas Schwab  <schwab@suse.de>
6060         * nis/Makefile (services): Remove compat.
6061         (libnss_compat-routines, libnss_compat-inhibit-o): Don't define.
6062         ($(objpfx)libnss_compat.so): Remove rule.
6063         * nis/Versions (libnss_compat): Remove.
6064         * nss/Makefile (services): Add compat.
6065         (libnss_compat-routines, libnss_compat-inhibit-o): Define.
6066         * nss/Versions (libnss_compat): Define.
6067         * nss/nss_compat/compat-grp.c: Moved here from nis/nss_compat.
6068         Don't include <rpc/types.h>.  Replace bool_t by bool.
6069         * nss/nss_compat/compat-initgroups.c: Likewise.
6070         * nss/nss_compat/compat-pwd.c: Likewise.  Include "nisdomain.h"
6071         instead of <rpcsrv/ypclnt.h>.
6072         (getpwent_next_nss_netgr): Use __nss_get_default_domain instead of
6073         yp_get_default_domain.
6074         * nss/nss_compat/compat-pwd.c: Likewise.
6075         (getspent_next_nss_netgr): Use __nss_get_default_domain instead of
6076         yp_get_default_domain.
6077         * nss/nss_compat/nisdomain.c: New file.
6078         * nss/nss_compat/nisdomain.h: Likewise.
6080 2017-10-04  Szabolcs Nagy  <szabolcs.nagy@arm.com>
6082         [BZ #22244]
6083         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Fix x == 0 case.
6084         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
6086 2017-10-04  Szabolcs Nagy  <szabolcs.nagy@arm.com>
6088         [BZ #22243]
6089         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c (__ieee754_log10): Use fabs.
6090         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c (__ieee754_log2): Likewise.
6092 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
6094         * sysdeps/i386/start.S: Replace "leal main@GOT(%ebx), %eax" with
6095         "movl main@GOTOFF(%ebx), %eax".
6097 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
6099         * sysdeps/i386/dl-machine.h (elf_machine_load_address): Don't
6100         allow undefined _DYNAMIC in PIE libc.a.
6101         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
6102         Likewse.
6104 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
6106         * sysdeps/mips/dl-machine.h (elf_machine_load_address): Don't
6107         check _DYNAMIC.
6109 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
6111         * sysdeps/arm/dl-machine.h (elf_machine_load_address): Don't
6112         check _DYNAMIC.
6114 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
6116         * math/test-math-iscanonical.cc (error): Replace bool with int.
6118 2017-10-03  Joseph Myers  <joseph@codesourcery.com>
6120         * sysdeps/ieee754/dbl-64/s_modf.c: Include <libm-alias-double.h>.
6121         (modf): Define using libm_alias_double, only if [!__modf].
6122         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Include
6123         <libm-alias-double.h>.
6124         (modf): Define using libm_alias_double, only if [!__modf].
6125         * sysdeps/ieee754/ldbl-opt/s_modf.c (modfl): Only define libc
6126         compat symbol here.
6127         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-ppc32.c
6128         (weak_alias): Do not undefine and redefine.
6129         (strong_alias): Likewise.
6130         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-ppc64.c
6131         (weak_alias): Likewise.
6132         (strong_alias): Likewise.
6134         * sysdeps/ieee754/dbl-64/s_logb.c: Include <libm-alias-double.h>.
6135         (logb): Define using libm_alias_double, only if [!__logb].
6136         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Include
6137         <libm-alias-double.h>.
6138         (logb): Define using libm_alias_double, only if [!__logb].
6139         * sysdeps/ieee754/ldbl-opt/s_logb.c: Remove file.
6140         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-ppc32.c
6141         (weak_alias): Do not undefine and redefine.
6142         (strong_alias): Likewise.
6143         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-ppc64.c
6144         (weak_alias): Likewise.
6145         (strong_alias): Likewise.
6147 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
6149         * sysdeps/unix/sysv/linux/tile/sysdep.h (SYSCALL_ERROR_NAME):
6150         Check SHARED instead PIC.
6152 2017-10-03  Joseph Myers  <joseph@codesourcery.com>
6154         * sysdeps/ieee754/dbl-64/s_fmaf.c: Include <libm-alias-float.h>.
6155         [!__fmaf] (fmaf): Define using libm_alias_float.
6157         * sysdeps/ieee754/dbl-64/s_frexp.c: Include <libm-alias-double.h>.
6158         (frexp): Define using libm_alias_double.
6159         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Include
6160         <libm-alias-double.h>.
6161         (frexp): Define using libm_alias_double.
6162         * sysdeps/ieee754/ldbl-opt/s_frexp.c (frexpl): Only define libc
6163         compat symbol here.
6165 2017-10-03  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
6167         [BZ #22235]
6168         * math/math.h: Trivial fix for unbalanced parentheses in comment.
6169         * math/Makefile [CXX] (tests): Add test-math-iscanonical.cc.
6170         (CFLAGS-test-math-iscanonical.cc): New variable.
6171         * math/test-math-iscanonical.cc: New file.
6172         * sysdeps/ieee754/ldbl-96/bits/iscanonical.h (iscanonical):
6173         Provide a C++ implementation based on function overloading,
6174         rather than using __MATH_TG, which uses C-only builtins.
6175         * sysdeps/ieee754/ldbl-128ibm/bits/iscanonical.h (iscanonical):
6176         Likewise.
6177         * sysdeps/powerpc/powerpc64le/Makefile
6178         (CFLAGS-test-math-iscanonical.cc): New variable.
6180 2017-10-03  Joseph Myers  <joseph@codesourcery.com>
6182         * sysdeps/ieee754/dbl-64/s_ceil.c: Include <libm-alias-double.h>.
6183         (ceil): Define using libm_alias_double.
6184         * sysdeps/ieee754/dbl-64/s_floor.c: Include <libm-alias-double.h>.
6185         (floor): Define using libm_alias_double.
6186         * sysdeps/ieee754/dbl-64/s_llround.c: Include
6187         <libm-alias-double.h>.
6188         (llround): Define using libm_alias_double.
6189         * sysdeps/ieee754/dbl-64/s_lround.c: Include
6190         <libm-alias-double.h>.
6191         (lround): Define using libm_alias_double.
6192         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Include
6193         <libm-alias-double.h>.
6194         (nearbyint): Define using libm_alias_double.
6195         * sysdeps/ieee754/dbl-64/s_remquo.c: Include
6196         <libm-alias-double.h>.
6197         (remquo): Define using libm_alias_double.
6198         * sysdeps/ieee754/dbl-64/s_rint.c: Include <libm-alias-double.h>.
6199         (rint): Define using libm_alias_double.
6200         * sysdeps/ieee754/dbl-64/s_round.c: Include <libm-alias-double.h>.
6201         (round): Define using libm_alias_double.
6202         * sysdeps/ieee754/dbl-64/s_trunc.c: Include <libm-alias-double.h>.
6203         (trunc): Define using libm_alias_double.
6204         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Include
6205         <libm-alias-double.h>.
6206         (ceil): Define using libm_alias_double.
6207         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Include
6208         <libm-alias-double.h>.
6209         (floor): Define using libm_alias_double.
6210         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: Include
6211         <libm-alias-double.h>.
6212         (llround): Define using libm_alias_double.
6213         [_LP64] (lround): Likewise.
6214         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Include
6215         <libm-alias-double.h>.
6216         [!_LP64] (lround): Define using libm_alias_double.
6217         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Include
6218         <libm-alias-double.h>.
6219         (nearbyint): Define using libm_alias_double.
6220         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Include
6221         <libm-alias-double.h>.
6222         (remquo): Define using libm_alias_double.
6223         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Include
6224         <libm-alias-double.h>.
6225         (rint): Define using libm_alias_double.
6226         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Include
6227         <libm-alias-double.h>.
6228         (round): Define using libm_alias_double.
6229         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Include
6230         <libm-alias-double.h>.
6231         (trunc): Define using libm_alias_double.
6232         * sysdeps/ieee754/ldbl-opt/s_ceil.c: Remove file.
6233         * sysdeps/ieee754/ldbl-opt/s_floor.c: Likewise.
6234         * sysdeps/ieee754/ldbl-opt/s_llround.c: Likewise.
6235         * sysdeps/ieee754/ldbl-opt/s_lround.c: Likewise.
6236         * sysdeps/ieee754/ldbl-opt/s_nearbyint.c: Likewise.
6237         * sysdeps/ieee754/ldbl-opt/s_remquo.c: Likewise.
6238         * sysdeps/ieee754/ldbl-opt/s_rint.c: Likewise.
6239         * sysdeps/ieee754/ldbl-opt/s_round.c: Likewise.
6240         * sysdeps/ieee754/ldbl-opt/s_trunc.c: Likewise.
6242 2017-10-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
6244         * math/w_remainder.c: New file.
6245         * math/w_remainderf.c: New file.
6246         * math/w_remainderl.c: New file.
6248 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
6250         * elf/rtld.c (BOOTSTRAP_MAP): New.
6251         (RESOLVE_MAP): Replace (&bootstrap_map) with BOOTSTRAP_MAP.
6252         * sysdeps/hppa/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
6253         Likewise.
6254         * sysdeps/ia64/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
6255         Likewise.
6256         * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
6257         Likewise.
6259 2017-10-03  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6261         * include/libc-symbols.h [NO_RTLD_HIDDEN] (rtld_hidden_proto,
6262         rtld_hidden_tls_proto, rtld_hidden_def, rtld_hidden_weak,
6263         rtld_hidden_rtld_hidden_ver, data_def, rtld_hidden_data_weak,
6264         rtld_hidden_data_ver): Define to empty.
6265         * include/assert.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__assert_fail,
6266         __assert_perror_fail): Likewise.
6267         * include/dirent.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
6268         (__rewinddir): Likewise.
6269         * include/libc-internal.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
6270         (__profile_frequency): Likewise.
6271         * include/setjmp.h (__sigsetjmp): Likewise.
6272         * include/signal.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__sigaction,
6273         __libc_sigaction): Likewise.
6274         * include/stdlib.h [NO_RTLD_HIDDEN] (unsetenv, __strtoul_internal): Do
6275         not set hidden attribute.
6276         * include/string.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__stpcpy, __strdup,
6277         __strerror_t, __strsep_g, memchr, memcmp, memcpy, memmove, memset,
6278         rawmemchr, stpcpy, strchr, strcmp, strlen, strnlen, strsep): Likewise.
6279         * include/sys/stat.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__fxstat,
6280         __fxstat64, __lxstat, __lxstat64, __xstat, __xstat64,
6281         __fxstatat64): Likewise.
6282         * include/sys/utsname.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
6283         (__uname): Likewise.
6284         * include/sysdeps/generic/_itoa.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
6285         (_itoa_upper_digits, _itoa_lower_digits): Likewise.
6286         * sysdeps/mach/hurd/configure.ac (NO_HIDDEN): Do not set.
6287         (NO_RTLD_HIDDEN): Set.
6288         * sysdeps/mach/hurd/configure: Refresh.
6289         * config.h.in: Refresh.
6291 2017-10-02  Joseph Myers  <joseph@codesourcery.com>
6293         * sysdeps/ieee754/dbl-64/s_atan.c: Include <libm-alias-double.h>.
6294         (atan): Define using libm_alias_double.
6295         * sysdeps/ieee754/dbl-64/s_tan.c: Include <libm-alias-double.h>.
6296         (tan): Define using libm_alias_double.
6297         * sysdeps/ieee754/ldbl-opt/s_atan.c: Remove file.
6298         * sysdeps/ieee754/ldbl-opt/s_tan.c: Likewise.
6300         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Rename to __atan and
6301         define as weak alias of __atan.  Do not define any aliases if
6302         [__atan].
6303         [NO_LONG_DOUBLE] (__atanl): Define as strong alias of __atan.
6304         [NO_LONG_DOUBLE] (atanl): Define as weak alias of __atanl.
6305         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Rename to __tan and define
6306         as weak alias of __tan.  Do not define any aliases if [__tan].
6307         [NO_LONG_DOUBLE] (__tanl): Define as strong alias of __tan.
6308         [NO_LONG_DOUBLE] (tanl): Define as weak alias of __tanl.
6309         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c (atan): Rename to
6310         __atan.
6311         * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c (atan): Likewise.
6312         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c (atan): Likewise.
6313         * sysdeps/x86_64/fpu/multiarch/s_atan.c (atan): Rename to __atan
6314         and define as weak alias of __atan.
6315         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c (tan): Rename to
6316         __atan.
6317         * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c (tan): Likewise.
6318         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (tan): Likewise.
6319         * sysdeps/x86_64/fpu/multiarch/s_tan.c (tan): Rename to __tan and
6320         define as weak alias of __tan.
6322 2017-10-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
6324         * math/w_lgamma.c: New file.
6325         * math/w_lgammaf.c: New file.
6326         * math/w_lgammal.c: New file.
6328 2017-10-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
6330         * sysdeps/ieee754/flt-32/e_log2f.c (__log2f): Define without wrapper.
6331         * sysdeps/ieee754/flt-32/e_logf.c (__logf): Likewise
6332         * sysdeps/ieee754/flt-32/e_powf.c (__powf): Likewise
6333         * sysdeps/ieee754/flt-32/w_log2f.c: New file.
6334         * sysdeps/ieee754/flt-32/w_logf.c: New file.
6335         * sysdeps/ieee754/flt-32/w_powf.c: New file.
6336         * sysdeps/i386/fpu/w_log2f.c: New file.
6337         * sysdeps/i386/fpu/w_logf.c: New file.
6338         * sysdeps/i386/fpu/w_powf.c: New file.
6339         * sysdeps/m68k/m680x0/fpu/w_log2f.c: New file.
6340         * sysdeps/m68k/m680x0/fpu/w_logf.c: New file.
6341         * sysdeps/m68k/m680x0/fpu/w_powf.c: New file.
6343 2017-10-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
6344             H.J. Lu  <hongjiu.lu@intel.com>
6346         * sysdeps/ieee754/flt-32/e_exp2f.c (__exp2f): Define without wrapper.
6347         * sysdeps/ieee754/flt-32/e_expf.c (__expf): Likewise
6348         * sysdeps/ieee754/flt-32/w_exp2f.c: New file.
6349         * sysdeps/ieee754/flt-32/w_expf.c: New file.
6350         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-ppc64.c: Update for
6351         the new expf code.
6352         * sysdeps/powerpc/powerpc64/fpu/multiarch/w_expf.c: New file.
6353         * sysdeps/powerpc/powerpc64/power8/fpu/w_expf.c: New file.
6354         * sysdeps/m68k/m680x0/fpu/w_exp2f.c: New file.
6355         * sysdeps/m68k/m680x0/fpu/w_expf.c: New file.
6356         * sysdeps/i386/fpu/w_exp2f.c: New file.
6357         * sysdeps/i386/fpu/w_expf.c: New file.
6358         * sysdeps/i386/i686/fpu/multiarch/w_expf.c: New file.
6359         * sysdeps/x86_64/fpu/w_expf.c: New file.
6361 2017-10-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
6363         * math/Versions (logf): New libm symbol at GLIBC_2.27.
6364         (log2f): Likewise.
6365         (powf): Likewise.
6366         * math/w_log2f.c: New file.
6367         * math/w_logf.c: New file.
6368         * math/w_powf.c: New file.
6369         * math/w_log2f_compat.c (__log2f_compat): For compat symbol only.
6370         * math/w_logf_compat.c (__logf_compat): Likewise.
6371         * math/w_powf_compat.c (__powf_compat): Likewise.
6372         * sysdeps/ia64/fpu/e_log2f.S: Add versioned symbols.
6373         * sysdeps/ia64/fpu/e_logf.S: Likewise.
6374         * sysdeps/ia64/fpu/e_powf.S: Likewise.
6375         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
6376         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
6377         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
6378         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
6379         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
6380         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
6381         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
6382         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
6383         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
6384         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
6385         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
6386         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
6387         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
6388         Likewise.
6389         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
6390         Likewise.
6391         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
6392         Likewise.
6393         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
6394         Likewise.
6395         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
6396         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
6397         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
6398         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
6399         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
6400         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
6401         Likewise.
6402         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
6403         Likewise.
6404         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
6405         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
6406         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
6408 2017-10-02  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
6410         * sysdeps/powerpc/powerpc64/multiarch/Makefile
6411         (sysdep_routines): Add memrchr_power8.
6412         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
6413         (memrchr): Add __memrchr_power8 to list of memrchr functions.
6414         * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S:
6415         New file.
6416         * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
6417         (memrchr): Add __memrchr_power8 to ifunc list.
6418         * sysdeps/powerpc/powerpc64/power8/memrchr.S: New file.
6420 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
6422         [BZ #18822]
6423         * sysdeps/unix/sysv/linux/posix_fadvise64.c
6424         (__posix_fadvise64_l64): Add Add libc_hidden_proto and
6425         libc_hidden_def.
6426         * sysdeps/unix/sysv/linux/posix_fallocate64.c
6427         (__posix_fallocate64_l64): Likewise.
6429 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
6431         [BZ #18822]
6432         * sysdeps/unix/sysv/linux/sched_setaffinity.c
6433         (__sched_setaffinity_new): Add libc_hidden_proto and
6434         libc_hidden_def.
6436 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
6438         [BZ #18822]
6439         * include/glob.h (__glob64): Add libc_hidden_proto.
6440         * sysdeps/unix/sysv/linux/glob64.c (__glob64): Add
6441         libc_hidden_def.
6443 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
6445         [BZ #18822]
6446         * sysdeps/unix/sysv/linux/getrlimit64.c (__new_getrlimit): Add
6447         attribute_hidden.
6449 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
6451         [BZ #18822]
6452         * stdlib/exit.h (__new_exitfn): Add attribute_hidden.
6454 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
6456         [BZ #18822]
6457         * mon/gmon.c (__moncontrol): Add libc_hidden_proto and
6458         libc_hidden_def.
6460 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
6462         [BZ #18822]
6463         * csu/version.c (__libc_print_version): Add attribute_hidden.
6465 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
6467         [BZ #18822]
6468         * include/libc-internal.h (__init_misc): Add attribute_hidden.
6470 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
6472         [BZ #18822]
6473         * include/fpu_control.h (__setfpucw): Add attribute_hidden.
6475 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
6477         [BZ #18822]
6478         * nscd/nscd_helper.c (__nis_hash): New prototype.
6480 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
6482         [BZ #18822]
6483         * include/termios.h (__tcgetattr): Add libc_hidden_proto.
6484         * sysdeps/unix/bsd/tcgetattr.c (__tcgetattr): Add
6485         libc_hidden_def.
6486         * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Likewise.
6487         * termios/tcgetattr.c (__tcgetattr): Likewise.
6489 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
6491         [BZ #18822]
6492         * include/sys/resource.h (__setrlimit): Add libc_hidden_proto.
6493         * resource/setrlimit.c (__setrlimit): Add libc_hidden_def.
6494         * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Likewise.
6495         * sysdeps/unix/sysv/linux/setrlimit.c (__setrlimit): Likewise.
6496         * sysdeps/unix/sysv/linux/setrlimit64.c (__GI___setrlimit): New.
6498 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
6500         [BZ #18822]
6501         * include/monetary.h (__vstrfmon_l): Add attribute_hidden.
6503 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
6505         [BZ #18822]
6506         * include/sched.h (__sched_setparam): Add libc_hidden_proto.
6507         * posix/sched_setp.c (__sched_setparam): Add libc_hidden_def.
6509 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
6511         [BZ #18822]
6512         * intl/hash-string.h (__hash_string): Add attribute_hidden.
6514 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
6516         [BZ #18822]
6517         * include/mntent.h (__hasmntopt): Add libc_hidden_proto.
6518         * misc/mntent_r.c (__hasmntopt): Add libc_hidden_def.
6520 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
6522         [BZ #18822]
6523         * include/ifreq.h: New file.
6524         * sysdeps/generic/ifreq.h (__if_nextreq): Removed.
6525         (__ifreq): Likewise.
6526         * sysdeps/mach/hurd/ifreq.h (__if_nextreq): Removed.
6527         (__ifreq): Likewise.
6529 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
6531         [BZ #18822]
6532         * include/idna.h: New file.
6533         * inet/getnameinfo.c: Include <idna.h> instead of
6534         <libidn/idna.h>.
6535         (__idna_to_unicode_lzlz): Removed.
6536         * sysdeps/posix/getaddrinfo.c: Include <idna.h> instead of
6537         <libidn/idna.h>.
6538         (__idna_to_ascii_lz): Removed.
6539         (__idna_to_unicode_lzlz): Likewise.
6541 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
6543         [BZ #18822]
6544         * include/plural-exp.h: New file.
6545         * intl/plural-exp.c: Include <plural-exp.h> instead of
6546         "plural-exp.h".
6548 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
6550         [BZ #18822]
6551         * sysdeps/unix/sysv/linux/getsourcefilter.c: Include
6552         "getsourcefilter.h".
6553         * sysdeps/unix/sysv/linux/getsourcefilter.h: New file.
6554         * sysdeps/unix/sysv/linux/setsourcefilter.c: Include
6555         "getsourcefilter.h".
6556         (__get_sol): Removed.
6558 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
6560         [BZ #18822]
6561         * elf/dl-iteratephdr.c (hidden_proto (__dl_iterate_phdr)): Moved
6562         to ...
6563         * include/link.h (hidden_proto (__dl_iterate_phdr)): Here.
6565 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
6567         [BZ #18822]
6568         * sysdeps/unix/sysv/linux/getpt.c (__bsd_getpt): Add
6569         attribute_hidden.
6571 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
6573         [BZ #18822]
6574         * libio/iolibio.h (__fopen_maybe_mmap): Add attribute_hidden.
6576 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
6578         [BZ #18822]
6579         * include/search.h (__tdestroy): Add libc_hidden_proto.
6580         * misc/tsearch.c (__tdestroy): Add libc_hidden_def.
6582 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
6584         [BZ #18822]
6585         * include/assert.h (__assert_fail_base): Add attribute_hidden.
6587 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
6589         [BZ #18822]
6590         * sysdeps/unix/sysv/linux/include/sys/sysinfo.h (__sysinfo): Add
6591         attribute_hidden.
6593 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
6595         [BZ #18822]
6596         * include/signal.h (__kill): Add libc_hidden_proto.
6597         (__sigblock): Likewise.
6598         (__sigprocmask): Likewise.
6599         (__sigaltstack): Likewise.
6600         * signal/kill.c (__kill): Add libc_hidden_def.
6601         * signal/sigblock.c (__sigblock): Likewise.
6602         * signal/sigprocmask.c (__sigprocmask): Likewise.
6603         * sysdeps/mach/hurd/kill.c (__kill): Likewise.
6604         * sysdeps/mach/hurd/sigaltstack.c (__sigaltstack): Likewise.
6605         * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Likewise.
6606         * sysdeps/posix/sigblock.c (__sigblock): Likewise.
6607         * sysdeps/unix/sysv/linux/alpha/sigprocmask.c (__sigprocmask):
6608         Likewise.
6609         * sysdeps/unix/sysv/linux/ia64/sigprocmask.c (__sigprocmask):
6610         Likewise.
6611         * sysdeps/unix/sysv/linux/s390/s390-64/sigprocmask.c
6612         (__sigprocmask): Likewise.
6613         * sysdeps/unix/sysv/linux/sigprocmask.c (__sigprocmask):
6614         Likewise.
6615         * /sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c
6616         (__sigprocmask): Likewise.
6617         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c (__sigprocmask):
6618         Likewise.
6620 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
6622         [BZ #18822]
6623         * include/string.h (__strsep): Add libc_hidden_proto.
6624         * string/strsep.c (__strsep): Add libc_hidden_def.
6626 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
6628         [BZ #18822]
6629         * posix/spawn_int.h (__posix_spawn_file_actions_realloc): Add
6630         attribute_hidden.
6631         (__spawni): Likewise.
6633 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
6635         [BZ #18822]
6636         * include/sys/mman.h (__mremap): Add libc_hidden_proto.
6637         * sysdeps/unix/sysv/linux/m68k/mremap.S (__mremap): Add
6638         libc_hidden_def.
6640 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
6642         [BZ #18822]
6643         * include/malloc.h (__malloc_check_init): Add attribute_hidden.
6645 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
6647         [BZ #18822]
6648         * include/sys/ioctl.h (__ioctl): Add libc_hidden_proto.
6649         * misc/ioctl.c (__ioctl): Add libc_hidden_def.
6650         * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
6651         * sysdeps/unix/sysv/linux/aarch64/ioctl.S (__ioctl): Likewise.
6652         * sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S (__ioctl):
6653         Likewise.
6654         * sysdeps/unix/sysv/linux/powerpc/ioctl.c (__ioctl): Likewise.
6655         * sysdeps/unix/sysv/linux/tile/tilegx/ioctl.S (__ioctl): Likewise.
6657 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
6659         [BZ #18822]
6660         * intl/gettextP.h (__dcngettext): Add attribute_hidden.
6661         (__dcigettext): Likewise.
6663 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
6665         [BZ #18822]
6666         * include/sys/sysinfo.h (__get_nprocs_conf): Add
6667         libc_hidden_proto.
6668         (__get_nprocs): Likewise.
6669         (__get_phys_pages): Likewise.
6670         (__get_avphys_pages): Likewise.
6671         (__get_child_max): Add attribute_hidden.
6672         * misc/getsysstats.c (__get_nprocs_conf): Add libc_hidden_def.
6673         (__get_nprocs): Likewise.
6674         (__get_phys_pages): Likewise.
6675         (__get_avphys_pages): Likewise.
6676         * sysdeps/mach/getsysstats.c (__get_nprocs_conf): Add
6677         libc_hidden_def.
6678         (__get_nprocs): Likewise.
6679         (__get_phys_pages): Likewise.
6680         (__get_avphys_pages): Likewise.
6681         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Add
6682         libc_hidden_def.
6683         (__get_nprocs_conf): Likewise.
6684         (__get_phys_pages): Likewise.
6685         (__get_avphys_pages): Likewise.
6687 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
6689         [BZ #18822]
6690         * sysdeps/unix/sysv/linux/netlinkaccess.h (__netlink_open): Add
6691         attribute_hidden.
6692         (__netlink_close): Likewise.
6693         (__netlink_free_handle): Likewise.
6694         (__netlink_request): Likewise.
6696 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
6698         [BZ #18822]
6699         * include/rpc/rpc.h (__rpc_thread_variables): Add
6700         attribute_hidden.
6701         (__rpc_thread_svc_cleanup): Likewise.
6702         (__rpc_thread_clnt_cleanup): Likewise.
6703         (__rpc_thread_key_cleanup): Likewise.
6705 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
6707         [BZ #18822]
6708         * include/sys/uio.h (__readv): Add libc_hidden_proto.
6709         (__writev): Likewise.
6710         * misc/readv.c (__readv): Add libc_hidden_def.
6711         * misc/writev.c (__writev): Likewise.
6712         * sysdeps/posix/readv.c (__readv): Likewise.
6713         * sysdeps/posix/writev.c (__writev): Likewise.
6714         * sysdeps/unix/sysv/linux/readv.c: Include <sys/uio.h>.
6715         (__readv): Likewise.
6716         * sysdeps/unix/sysv/linux/writev.c: Include <sys/uio.h>.
6717         (__writev): Likewise.
6719 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
6721         [BZ #18822]
6722         * include/regex.h (__re_compile_fastmap): Add attribute_hidden.
6723         (__regcomp): Add libc_hidden_proto.
6724         (__regexec): Likewise.
6725         (__regfree): Likewise.
6726         * posix/regcomp.c (__regcomp): Add libc_hidden_def.
6727         (__regfree): Likewise.
6728         * posix/regexec.c (__regexec): Likewise.
6730 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
6732         [BZ #18822]
6733         * include/utmp.h (__updwtmp): Add libc_hidden_proto.
6734         (__getutent): Likewise.
6735         (__getutid): Likewise.
6736         (__getutline): Likewise.
6737         (__pututline): Likewise.
6738         (__getutent_r): Likewise.
6739         (__getutid_r): Likewise.
6740         (__getutline_r): Likewise.
6741         (__utmpname): Add attribute_hidden.
6742         (__setutent): Likewise.
6743         (__endutent): Likewise.
6744         * login/getutent.c (__getutent): Add libc_hidden_def.
6745         * login/getutent_r.c (__getutent_r): Likewise.
6746         (__pututline): Likewise.
6747         * login/getutid.c (__getutid): Likewise.
6748         * login/getutid_r.c (__getutid_r): Likewise.
6749         * login/getutline.c (__getutline): Likewise.
6750         * login/getutline_r.c (__getutline_r): Likewise.
6751         * login/updwtmp.c (__updwtmp): Likewise.
6753 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
6755         [BZ #18822]
6756         * include/dirent.h (__opendir): Always add attribute_hidden.
6757         (__fdopendir): Likewise.
6758         (__closedir): Likewise.
6759         (__readdir): Likewise.
6760         (__readdir64): Add libc_hidden_proto.
6761         * sysdeps/mach/hurd/readdir64.c (__readdir64): Add libc_hidden_def.
6762         * sysdeps/unix/sysv/linux/i386/readdir64.c (__readdir64): Likewise.
6763         * sysdeps/unix/sysv/linux/readdir64.c (__readdir64): Likewise.
6764         * sysdeps/unix/sysv/linux/wordsize-64/readdir.c (__GI___readdir64):
6765         New alias.
6767 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
6769         [BZ #18822]
6770         * include/aliases.h (__getaliasbyname_r): Add attribute_hidden.
6771         * include/netdb.h (__gethostbyaddr_r): Likewise.
6772         (__gethostbyname_r): Likewise.
6773         (__gethostbyname2_r): Likewise.
6774         (__getnetbyaddr_r): Likewise.
6775         (__getnetbyname_r): Likewise.
6776         (__getservbyname_r): Likewise.
6777         (__getservbyport_r): Likewise.
6778         (__getprotobyname_r): Likewise.
6779         (__getprotobynumber_r): Likewise.
6780         (__getnetgrent_r): Likewise.
6781         * include/rpc/netdb.h (__getrpcbyname_r): Likewise.
6782         (__getrpcbynumber_r): Likewise.
6783         * nss/getXXbyYY.c (INTERNAL (REENTRANT_NAME)): Likewise.
6785 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
6787         [BZ #18822]
6788         * include/stdio.h (__fcloseall): Add attribute_hidden.
6789         (__getline): Likewise.
6790         (__path_search): Likewise.
6791         (__gen_tempname): Likewise.
6792         (__libc_message): Likewise.
6793         (__flockfile): Likewise.
6794         (__funlockfile): Likewise.
6795         (__fxprintf): Likewise.
6796         (__fxprintf_nocancel): Likewise.
6798 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
6800         [BZ #18822]
6801         * include/gshadow.h (__fgetsgent_r): Add attribute_hidden.
6802         (__sgetsgent_r): Likewise.
6804 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
6806         [BZ #18822]
6807         * include/sys/statfs.h (__fstatfs): Add attribute_hidden.
6808         (__statfs64): Likewise.
6809         (__fstatfs64): Likewise.
6810         * include/sys/statvfs.h (__statvfs64): Likewise.
6811         (__fstatvfs64): Likewise.
6812         * sysdeps/unix/sysv/linux/pathconf.h (__statfs_link_max): Likewise.
6813         (__statfs_filesize_max): Likewise.
6814         (__statfs_symlinks): Likewise.
6815         (__statfs_chown_restricted): Likewise.
6817 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
6819         [BZ #18822]
6820         * include/time.h (__tzstring): Add attribute_hidden.
6821         (__tzfile_read): Likewise.
6822         (__tzfile_compute): Likewise.
6823         (__tzfile_default): Likewise.
6824         (__tzset_parse_tz): Likewise.
6825         (__offtime): Likewise.
6826         (__asctime_r): Likewise.
6827         (__tzset): Likewise.
6828         (__tz_convert): Likewise.
6829         (__getdate_r): Likewise.
6830         (__getclktck): Likewise.
6832 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
6834         [BZ #18822]
6835         * nscd/nscd-client.h (__nscd_get_map_ref): Add attribute_hidden.
6836         (__nscd_unmap): Likewise.
6837         (__nscd_cache_search): Likewise.
6838         (__nscd_get_nl_timestamp): Likewise.
6839         (__nscd_getpwnam_r): Likewise.
6840         (__nscd_getpwuid_r): Likewise.
6841         (__nscd_getgrnam_r): Likewise.
6842         (__nscd_getgrgid_r): Likewise.
6843         (__nscd_gethostbyname_r): Likewise.
6844         (__nscd_gethostbyname2_r): Likewise.
6845         (__nscd_gethostbyaddr_r): Likewise.
6846         (__nscd_getai): Likewise.
6847         (__nscd_getgrouplist): Likewise.
6848         (__nscd_getservbyname_r): Likewise.
6849         (__nscd_getservbyport_r): Likewise.
6850         (__nscd_innetgr): Likewise.
6851         (__nscd_setnetgrent): Likewise.
6853 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
6855         [BZ #18822]
6856         * include/gmp.h: Declare internal functions only if _ISOMAC is
6857         undefined.
6858         (__mpn_extract_double): Add attribute_hidden.
6859         (__mpn_extract_long_double): Likewise.
6860         (__mpn_extract_float128): Likewise.
6861         (__mpn_construct_float): Likewise.
6862         (__mpn_construct_double): Likewise.
6863         (__mpn_construct_long_double): Likewise.
6864         (__mpn_construct_float128): Likewise.
6865         (mpn_add_1): Likewise.
6866         (mpn_addmul_1): Likewise.
6867         (mpn_add_n): Likewise.
6868         (mpn_cmp): Likewise.
6869         (mpn_divrem): Likewise.
6870         (mpn_lshift): Likewise.
6871         (mpn_mul): Likewise.
6872         (mpn_mul_1): Likewise.
6873         (mpn_rshift): Likewise.
6874         (mpn_sub_1): Likewise.
6875         (mpn_submul_1): Likewise.
6876         (mpn_sub_n): Likewise.
6878 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
6880         [BZ #18822]
6881         * include/wchar.h (__wcsnlen): Add attribute_hidden.
6882         (__wcscat): Likewise.
6883         (__btowc): Likewise.
6884         (__wcrtomb): Likewise.
6885         (__mbsrtowcs): Likewise.
6886         (__wcsrtombs): Likewise.
6887         (__mbsnrtowcs): Likewise.
6888         (__wcsnrtombs): Likewise.
6889         (__wcsncpy): Likewise.
6890         (__wcpncpy): Likewise.
6891         (__wmemcpy): Likewise.
6892         (__wmempcpy): Likewise.
6893         (__wmemmove): Likewise.
6894         (__wcschrnul): Likewise.
6895         (__vfwscanf): Likewise.
6896         (__vswprintf): Likewise.
6897         (__fwprintf): Likewise.
6898         (__vfwprintf): Likewise.
6900 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
6902         [BZ #18822]
6903         * include/grp.h (__fgetgrent_r): Add attribute_hidden.
6904         (__getgrgid_r): Likewise.
6905         (__getgrnam_r): Likewise.
6906         * include/pwd.h (__getpwuid_r): Likewise.
6907         (__getpwnam_r): Likewise.
6908         (__fgetpwent_r): Likewise.
6909         * include/shadow.h (__getspnam_r): Likewise.
6910         (__sgetspent_r): Likewise.
6911         (__fgetspent_r): Likewise.
6913 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
6915         [BZ #18822]
6916         * include/unistd.h (__access): Add attribute_hidden.
6917         (__lseek64): Likewise.
6918         (__libc_pread64): Likewise.
6919         (__pipe2): Likewise.
6920         (__sleep): Likewise.
6921         (__chdir): Likewise.
6922         (__fchdir): Likewise.
6923         (__getcwd): Likewise.
6924         (__rmdir): Likewise.
6925         (__execvpe): Likewise.
6926         (__execve): Likewise.
6927         (__setsid): Likewise.
6928         (__getuid): Likewise.
6929         (__geteuid): Likewise.
6930         (__getgid): Likewise.
6931         (__getegid): Likewise.
6932         (__getgroups): Likewise.
6933         (__group_member): Likewise.
6934         (__ttyname_r): Likewise.
6935         (__isatty): Likewise.
6936         (__readlink): Likewise.
6937         (__unlink): Likewise.
6938         (__gethostname): Likewise.
6939         (__profil): Likewise.
6940         (__getdtablesize): Likewise.
6941         (__brk): Likewise.
6942         (__ftruncate): Likewise.
6943         (__ftruncate64): Likewise.
6945 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
6947         [BZ #18822]
6948         * argp/argp-fmtstream.c: Include <argp-fmtstream.h>.
6949         * argp/argp-fs-xinl.c: Likewise.
6950         * argp/argp-help.c: Include <argp.h> and <argp-fmtstream.h>.
6951         * argp/argp-parse.c: Include <argp.h>.
6952         * argp/argp-xinl.c: Likewise.
6953         * include/argp-fmtstream.h: New file.
6954         * include/argp.h (__argp_error): Add attribute_hidden.
6955         (__argp_failure): Likewise.
6956         (__argp_input): Likewise.
6957         (__argp_state_help): Likewise.
6959 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
6961         [BZ #18822]
6962         * include/wchar.h (____wcstof_l_internal): New prototype.
6963         (____wcstod_l_internal): Likewise.
6964         (____wcstold_l_internal): Likewise.
6965         (____wcstol_l_internal): Likewise.
6966         (____wcstoul_l_internal): Likewise.
6967         (____wcstoll_l_internal): Likewise.
6968         (____wcstoull_l_internal): Likewise.
6969         (____wcstof128_l_internal): Likewise.
6970         * sysdeps/ieee754/float128/wcstof128.c
6971         (____wcstof128_l_internal): Removed.
6972         * sysdeps/ieee754/float128/wcstof128_l.c
6973         (____wcstof128_l_internal): Likewise.
6974         * wcsmbs/wcstod.c (____wcstod_l_internal): Likewise.
6975         * wcsmbs/wcstod_l.c (____wcstod_l_internal): Likewise.
6976         * wcsmbs/wcstof.c (____wcstof_l_internal): Likewise.
6977         * wcsmbs/wcstof_l.c (____wcstof_l_internal): Likewise.
6978         * wcsmbs/wcstol_l.c (____wcstol_l_internal): Likewise.
6979         * wcsmbs/wcstold.c (____wcstold_l_internal): Likewise.
6980         * wcsmbs/wcstold_l.c (____wcstold_l_internal): Likewise.
6981         * wcsmbs/wcstoll_l.c (____wcstoll_l_internal): Likewise.
6982         * wcsmbs/wcstoul_l.c (____wcstoul_l_internal): Likewise.
6983         * wcsmbs/wcstoull_l.c (____wcstoull_l_internal): Likewise.
6985 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
6987         [BZ #18822]
6988         * sysdeps/unix/sysv/linux/fstatvfs.c: Include "internal_statvfs.h"
6989         instead of <sys/statvfs.h>.
6990         (__internal_statvfs): Removed.
6991         * sysdeps/unix/sysv/linux/fstatvfs64.c Include "internal_statvfs.h"
6992         instead of <sys/statvfs.h>.
6993         (__internal_statvfs64): Removed.
6994         * sysdeps/unix/sysv/linux/internal_statvfs.c: Include
6995         "internal_statvfs.h" instead of <sys/statvfs.h>.
6996         * sysdeps/unix/sysv/linux/internal_statvfs.h: New file.
6997         * sysdeps/unix/sysv/linux/statvfs.c Include "internal_statvfs.h"
6998         instead of <sys/statvfs.h>.
6999         (__internal_statvfs): Removed.
7000         * sysdeps/unix/sysv/linux/statvfs64.c Include "internal_statvfs.h"
7001         instead of <sys/statvfs.h>.
7002         (__internal_statvfs64): Removed.
7004 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
7006         [BZ #18822]
7007         * iconv/gconv_int.h (__gconv_open): Add attribute_hidden.
7008         (__gconv_close): Likewise.
7009         (__gconv): Likewise.
7010         (__gconv_find_transform): Likewise.
7011         (__gconv_lookup_cache): Likewise.
7012         (__gconv_compare_alias_cache): Likewise.
7013         (__gconv_load_cache): Likewise.
7014         (__gconv_get_path): Likewise.
7015         (__gconv_close_transform): Likewise.
7016         (__gconv_release_cache): Likewise.
7017         (__gconv_find_shlib): Likewise.
7018         (__gconv_release_shlib): Likewise.
7019         (__gconv_get_builtin_trans): Likewise.
7020         (__gconv_compare_alias): Likewise.
7021         * include/dlfcn.h (_dlerror_run): Likewise.
7022         * include/stdio.h (__fortify_fail_abort): Likewise.
7023         * include/time.h (__tz_compute): Likewise.
7024         (__strptime_internal): Likewise.
7025         * intl/gettextP.h (_nl_find_domain): Likewise.
7026         (_nl_load_domain): Likewise.
7027         (_nl_find_msg): Likewise.
7028         * intl/plural-exp.h (FREE_EXPRESSION): Likewise.
7029         (EXTRACT_PLURAL_EXPRESSION): Likewise.
7030         * locale/coll-lookup.h (__collidx_table_lookup): Likewise.
7031         * resolv/gai_misc.h (__gai_enqueue_request): Likewise.
7032         (__gai_find_request): Likewise.
7033         (__gai_remove_request): Likewise.
7034         (__gai_notify): Likewise.
7035         (__gai_notify_only): Likewise.
7036         * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
7037         * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
7038         (_dl_non_dynamic_init): Likewise.
7039         (_dl_aux_init): Likewise.
7040         * sysdeps/i386/machine-gmon.h (mcount_internal): Likewise.
7041         * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
7042         Likewise.
7043         * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv): Likewise.
7044         (__wcsmbs_clone_conv): Likewise.
7045         (__wcsmbs_named_conv): Likewise.
7047 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
7049         [BZ #18822]
7050         * include/stdlib.h (__random): Add attribute_hidden.
7051         (__random_r): Likewise.
7052         (__srandom_r): Likewise.
7053         (__initstate_r): Likewise.
7054         (__setstate_r): Likewise.
7055         (__erand48_r): Likewise.
7056         (__nrand48_r): Likewise.
7057         (__jrand48_r): Likewise.
7058         (__srand48_r): Likewise.
7059         (__seed48_r): Likewise.
7060         (__lcong48_r): Likewise.
7061         (__drand48_iterate): Likewise.
7062         (__setenv): Likewise.
7063         (__unsetenv): Likewise.
7064         (__clearenv): Likewise.
7065         (__ptsname_r): Likewise.
7066         (__posix_openpt): Likewise.
7067         (__add_to_environ): Likewise.
7068         (__realpath): Add libc_hidden_proto.
7069         (__ecvt_r): Likewise.
7070         (__fcvt_r): Likewise.
7071         (__qecvt_r): Likewise.
7072         (__qfcvt_r): Likewise.
7073         * misc/efgcvt_r.c (cvt_symbol_1): Add libc_hidden_def (local).
7074         * stdlib/canonicalize.c (__realpath): Add libc_hidden_def.
7076 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
7078         [BZ #18822]
7079         * include/stdlib.h (__ptsname_internal): Add attribute_hidden.
7080         * include/time.h (__mktime_internal): Likewise.
7081         * libio/iolibio.h (__fopen_internal): Likewise.
7083 2017-10-01  John David Anglin  <danglin@gcc.gnu.org>
7085         * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Save return
7086         pointer in frame.
7087         * sysdeps/unix/sysv/linux/hppa/setcontext.S (__setcontext): Likewise.
7088         Correct offset used to restore PIC register.
7090 2017-09-30  John David Anglin  <danglin@gcc.gnu.org>
7092         [BZ libc/22165]
7093         * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Use PIC
7094         code to load address of __getcontext_ret when generating PIC code.
7096 2017-09-30  H.J. Lu  <hongjiu.lu@intel.com>
7098         * elf/Makefile (tests-static-internal): Add
7099         tst-tls1-static-non-pie.
7100         (LDFLAGS-tst-tls1-static-non-pie): New.
7101         * elf/tst-tls1-static-non-pie.c: New file.
7103 2017-09-29  Joseph Myers  <joseph@codesourcery.com>
7105         * sysdeps/ieee754/dbl-64/s_asinh.c: Include <libm-alias-double.h>.
7106         (asinh): Define using libm_alias_double.
7107         * sysdeps/ieee754/dbl-64/s_cbrt.c: Include <libm-alias-double.h>.
7108         (cbrt): Define using libm_alias_double.
7109         * sysdeps/ieee754/dbl-64/s_copysign.c: Include
7110         <libm-alias-double.h>.
7111         (copysign): Define using libm_alias_double.
7112         * sysdeps/ieee754/dbl-64/s_erf.c: Include <libm-alias-double.h>.
7113         (erf): Define using libm_alias_double.
7114         (erfc): Likewise.
7115         * sysdeps/ieee754/dbl-64/s_expm1.c: Include <libm-alias-double.h>.
7116         (expm1): Define using libm_alias_double.
7117         * sysdeps/ieee754/dbl-64/s_fabs.c: Include <libm-alias-double.h>.
7118         (fabs): Define using libm_alias_double.
7119         * sysdeps/ieee754/dbl-64/s_fromfp.c (fromfp): Define using
7120         libm_alias_double.
7121         * sysdeps/ieee754/dbl-64/s_fromfp_main.c: Include
7122         <libm-alias-double.h>.
7123         * sysdeps/ieee754/dbl-64/s_fromfpx.c (fromfpx): Define using
7124         libm_alias_double.
7125         * sysdeps/ieee754/dbl-64/s_getpayload.c: Include
7126         <libm-alias-double.h>.
7127         (getpayload): Define using libm_alias_double.
7128         * sysdeps/ieee754/dbl-64/s_llrint.c: Include
7129         <libm-alias-double.h>.
7130         (llrint): Define using libm_alias_double.
7131         * sysdeps/ieee754/dbl-64/s_lrint.c: Include <libm-alias-double.h>.
7132         (lrint): Define using libm_alias_double.
7133         * sysdeps/ieee754/dbl-64/s_nextup.c: Include
7134         <libm-alias-double.h>.
7135         (nextup): Define using libm_alias_double.
7136         * sysdeps/ieee754/dbl-64/s_roundeven.c: Include
7137         <libm-alias-double.h>.
7138         (roundeven): Define using libm_alias_double.
7139         * sysdeps/ieee754/dbl-64/s_setpayload.c (setpayload): Define using
7140         libm_alias_double.
7141         * sysdeps/ieee754/dbl-64/s_setpayload_main.c: Include
7142         <libm-alias-double.h>.
7143         * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (setpayloadsig): Define
7144         using libm_alias_double.
7145         * sysdeps/ieee754/dbl-64/s_sin.c: Include <libm-alias-double.h>.
7146         (cos): Define using libm_alias_double.
7147         (sin): Likewise.
7148         * sysdeps/ieee754/dbl-64/s_sincos.c: Include
7149         <libm-alias-double.h>.
7150         (sincos): Define using libm_alias_double.
7151         * sysdeps/ieee754/dbl-64/s_tanh.c: Include <libm-alias-double.h>.
7152         (tanh): Define using libm_alias_double.
7153         * sysdeps/ieee754/dbl-64/s_totalorder.c: Include
7154         <libm-alias-double.h>.
7155         (totalorder): Define using libm_alias_double.
7156         * sysdeps/ieee754/dbl-64/s_totalordermag.c: Include
7157         <libm-alias-double.h>.
7158         (totalordermag): Define using libm_alias_double.
7159         * sysdeps/ieee754/dbl-64/s_ufromfp.c (ufromfp): Define using
7160         libm_alias_double.
7161         * sysdeps/ieee754/dbl-64/s_ufromfpx.c (ufromfpx): Define using
7162         libm_alias_double.
7163         * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c: Include
7164         <libm-alias-double.h>.
7165         (getpayload): Define using libm_alias_double.
7166         * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c: Include
7167         <libm-alias-double.h>.
7168         (roundeven): Define using libm_alias_double.
7169         * sysdeps/ieee754/dbl-64/wordsize-64/s_setpayload_main.c: Include
7170         <libm-alias-double.h>.
7171         * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c: Include
7172         <libm-alias-double.h>.
7173         (totalorder): Define using libm_alias_double.
7174         * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c: Include
7175         <libm-alias-double.h>.
7176         (totalordermag): Define using libm_alias_double.
7177         * sysdeps/ieee754/ldbl-opt/s_copysign.c (copysignl): Only define
7178         libc compat symbol here.
7179         * sysdeps/ieee754/ldbl-opt/s_asinh.c: Remove file.
7180         * sysdeps/ieee754/ldbl-opt/s_cbrt.c: Likewise.
7181         * sysdeps/ieee754/ldbl-opt/s_erf.c: Likewise.
7182         * sysdeps/ieee754/ldbl-opt/s_expm1.c: Likewise.
7183         * sysdeps/ieee754/ldbl-opt/s_fabs.c: Likewise.
7184         * sysdeps/ieee754/ldbl-opt/s_llrint.c: Likewise.
7185         * sysdeps/ieee754/ldbl-opt/s_lrint.c: Likewise.
7186         * sysdeps/ieee754/ldbl-opt/s_sin.c: Likewise.
7187         * sysdeps/ieee754/ldbl-opt/s_sincos.c: Likewise.
7188         * sysdeps/ieee754/ldbl-opt/s_tanh.c: Likewise.
7190 2017-09-29  H.J. Lu  <hongjiu.lu@intel.com>
7192         * sysdeps/arm/dl-machine.h (elf_machine_load_address): Use
7193         _dl_relocate_static_pie instead of _dl_start to compute load
7194         address in static PIE.  Return 0 if _DYNAMIC is undefined for
7195         static executable.
7197 2017-09-29  H.J. Lu  <hongjiu.lu@intel.com>
7199         * sysdeps/mips/dl-machine.h (elf_machine_dynamic): Return 0 if
7200         _DYNAMIC is undefined for static executable.
7202 2017-09-29  H.J. Lu  <hongjiu.lu@intel.com>
7204         * sysdeps/arm/start.S (_start): Check PIC instead of SHARED.
7206 2017-09-29  Joseph Myers  <joseph@codesourcery.com>
7208         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
7210 2017-09-29  Wilco Dijkstra  <wdijkstr@arm.com>
7212         * sysdeps/ieee754/dbl-64/e_lgamma_r.c
7213         (__ieee754_lgamma_r): Use fabs rather than __fabs.
7214         * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
7215         * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
7216         * sysdeps/ieee754/flt-32/e_lgammaf_r.c
7217         (__ieee754_lgammaf_r): Use fabsf rather than __fabsf.
7218         * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
7219         * sysdeps/ieee754/flt-32/e_log2f.c (__ieee754_log2f): Likewise.
7220         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c
7221         (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
7222         * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Likewise.
7223         * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Likewise.
7224         * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
7225         (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
7226         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l): Likewise.
7227         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l): Likewise.
7228         * sysdeps/powerpc/nofpu/Makefile: Add -fno-builtin-fabsl for BZ #29253.
7230 2017-09-29  Wilco Dijkstra  <wdijkstr@arm.com>
7232         * math/bits/cmathcalls.h (cimag): Remove inline.
7233         (creal): Remove inline.
7234         (conj): Remove inline.
7236 2017-09-29  Szabolcs Nagy  <szabolcs.nagy@arm.com>
7238         * math/Makefile (type-float-routines): Add e_powf_log2_data.
7239         * sysdeps/ieee754/flt-32/e_powf.c: New implementation.
7240         * sysdeps/ieee754/flt-32/e_powf_log2_data.c: New file.
7241         * sysdeps/ieee754/flt-32/math_config.h (__powf_log2_data): Define.
7242         (issignalingf_inline): Likewise.
7243         (POWF_LOG2_TABLE_BITS): Likewise.
7244         (POWF_LOG2_POLY_ORDER): Likewise.
7245         (POWF_SCALE_BITS): Likewise.
7246         (POWF_SCALE): Likewise.
7247         * sysdeps/i386/fpu/e_powf_log2_data.c: New file.
7248         * sysdeps/ia64/fpu/e_powf_log2_data.c: New file.
7249         * sysdeps/m68k/m680x0/fpu/e_powf_log2_data.c: New file.
7251 2017-09-29  Szabolcs Nagy  <szabolcs.nagy@arm.com>
7253         * math/Makefile (type-float-routines): Add e_log2f_data.
7254         * sysdeps/ieee754/flt-32/e_log2f.c: New implementation.
7255         * sysdeps/ieee754/flt-32/e_log2f_data.c: New file.
7256         * sysdeps/ieee754/flt-32/math_config.h (__log2f_data): Define.
7257         (LOG2F_TABLE_BITS, LOG2F_POLY_ORDER): Define.
7258         * sysdeps/i386/fpu/e_log2f_data.c: New file.
7259         * sysdeps/ia64/fpu/e_log2f_data.c: New file.
7260         * sysdeps/m68k/m680x0/fpu/e_log2f_data.c: New file.
7262 2017-09-29  Szabolcs Nagy  <szabolcs.nagy@arm.com>
7264         * math/Makefile (type-float-routines): Add e_logf_data.
7265         * sysdeps/ieee754/flt-32/e_logf.c: New implementation.
7266         * sysdeps/ieee754/flt-32/e_logf_data.c: New file.
7267         * sysdeps/ieee754/flt-32/math_config.h (__logf_data): Define.
7268         (LOGF_TABLE_BITS, LOGF_POLY_ORDER): Define.
7269         * sysdeps/i386/fpu/e_logf_data.c: New file.
7270         * sysdeps/ia64/fpu/e_logf_data.c: New file.
7271         * sysdeps/m68k/m680x0/fpu/e_logf_data.c: New file.
7273 2017-09-28  H.J. Lu  <hongjiu.lu@intel.com>
7275         * sysdeps/i386/dl-machine.h (elf_machine_load_address): Allow
7276         undefined _DYNAMIC in PIE libc.a.
7277         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
7278         Likewse.
7280 2017-09-28  Wilco Dijkstra  <wdijkstr@arm.com>
7282         * sysdeps/alpha/fpu/bits/mathinline.h: Delete file.
7283         * sysdeps/ia64/fpu/bits/mathinline.h: Delete file.
7284         * sysdeps/m68k/coldfire/fpu/bits/mathinline.h: Delete file.
7285         * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: (__signbitf): Remove.
7286         (__signbit): Remove.
7287         (__signbitl): Remove.
7288         * sysdeps/powerpc/bits/mathinline.h (__signbitf): Remove.
7289         (__signbit): Remove.
7290         (__signbitl): Remove.
7291         * sysdeps/s390/fpu/bits/mathinline.h: (__signbitf): Remove.
7292         (__signbit): Remove.
7293         (__signbitl): Remove.
7294         * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf): Remove.
7295         (__signbit): Remove.
7296         (__signbitl): Remove.
7297         * sysdeps/tile/bits/mathinline.h: Delete file.
7298         * sysdeps/x86/fpu/bits/mathinline.h (__signbitf): Remove.
7299         (__signbit): Remove.
7300         (__signbitl): Remove.
7302 2017-09-28  Wilco Dijkstra  <wdijkstr@arm.com>
7304         * math/math.h: Improve handling of C99 isgreater macros.
7305         * sysdeps/alpha/fpu/bits/mathinline.h: Remove isgreater macros.
7306         * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: Likewise.
7307         * sysdeps/powerpc/bits/mathinline.h: Likewise.
7308         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
7309         * sysdeps/x86/fpu/bits/mathinline.h: Likewise.
7311 2017-09-28  Szabolcs Nagy  <szabolcs.nagy@arm.com>
7313         * sysdeps/aarch64/libm-test-ulps: Update.
7315 2017-09-28  Joseph Myers  <joseph@codesourcery.com>
7317         [BZ #22225]
7318         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
7319         math_opt_barrier on argument when doing arithmetic on it.
7320         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
7321         Likewise.  Use math_force_eval not math_opt_barrier after
7322         arithmetic.
7323         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Use
7324         math_opt_barrier on argument when doing arithmetic on it.
7325         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
7326         Likewise.
7328 2017-09-27  H.J. Lu  <hongjiu.lu@intel.com>
7330         * sysdeps/unix/sysv/linux/ifaddrs.c (__getifaddrs): Add
7331         libc_hidden_def.
7332         (__freeifaddrs): Likewise.
7334 2017-09-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7336         * include/dirent.h (__dirfd): New declaration.
7337         * dirent/dirfd.c (dirfd): Rename to __dirfd, and redefine as weak
7338         alias.
7339         * sysdeps/posix/dirfd/dirfd.c (dirfd): Likewise.
7340         * sysdeps/mach/hurd/dirfd.c (dirfd): Likewise.
7341         * io/ftw.c (open_dir_stream, ftw_dir): Use __dirfd instead of dirfd.
7342         * include/unistd.h (__revoke): New declaration.
7343         * misc/revoke.c (revoke): Rename to __revoke, and redefine as weak
7344         alias.
7345         * sysdeps/mach/hurd/revoke.c (revoke): Likewise.
7346         * sysdeps/unix/bsd/unlockpt.c (unlockpt): Use __revoke instead of
7347         revoke.
7348         * include/dirent.h (__seekdir): New declaration.
7349         * sysdeps/mach/hurd/seekdir.c (seekdir): Rename to __seekdir and
7350         redefine as weak alias.
7351         * sysdeps/mach/hurd/rewinddir.c (__rewinddir): Use __seekdir instead
7352         of seekdir.
7353         * include/ifaddrs.h (__getifaddrs, __freeifaddrs): New declarations,
7354         and use libc_hidden_def on them.
7355         * inet/ifaddrs.c (__getifaddrs, __freeifaddrs): Use libc_hidden_def on
7356         them.
7357         * sysdeps/gnu/ifaddrs.c (__getifaddrs, __freeifaddrs): Likewise.
7358         * inet/check_pf.c (__check_pf): Use __getifaddrs and __freeifaddrs
7359         instead of getifaddrs and freeifaddrs.
7361 2017-09-26  H.J. Lu  <hongjiu.lu@intel.com>
7363         [BZ #18822]
7364         * dlfcn/modatexit.c (foo): Remove __dso_handle check.
7365         * dlfcn/modcxaatexit.c: Include <dso_handle.h>.
7366         (__dso_handle): Remove declaration.
7367         * dlfcn/tstatexit.c (__dso_handle): Removed.
7368         (main): Don't check __dso_handle.
7369         * dlfcn/tstcxaatexit.c (__dso_handle): Removed.
7370         (main): Don't check __dso_handle.
7371         * include/dso_handle.h: New file.
7372         * malloc/mtrace.c: Include <dso_handle.h>.
7373         (mtrace): Pass __dso_handle directly.
7374         * nptl/pthread_atfork.c: Include <dso_handle.h>.
7375         (__dso_handle): Remove declaration.
7376         (__pthread_atfork): Pass __dso_handle directly.
7377         * nptl/tst-atfork2mod.c: Include <dso_handle.h>.
7378         (__dso_handle): Removed.
7379         * posix/wordexp-test.c: Include <dso_handle.h>.
7380         (__dso_handle): Remove declaration.
7381         (__app_register_atfork): Pass __dso_handle directly.
7382         * stdlib/at_quick_exit.c: Include <dso_handle.h>.
7383         (__dso_handle): Remove declaration.
7384         (at_quick_exit): Pass __dso_handle directly.
7385         * stdlib/atexit.c: Include <dso_handle.h>.
7386         (__dso_handle): Remove declaration.
7387         (atexit): Pass __dso_handle directly.
7388         * stdlib/tst-tls-atexit-lib.c: Include <dso_handle.h>.
7389         (__dso_handle): Removed.
7391 2017-09-26  Joseph Myers  <joseph@codesourcery.com>
7393         * sysdeps/unix/make-syscalls.sh: Use __ifunc to define symbols
7394         using VDSO.
7396 2017-09-26  Alexey Makhalov  <amakhalov@vmware.com>
7398         * elf/dl-tunables.c (do_tunable_update_val): Range checking fix.
7399         * scripts/gen-tunables.awk: Set unspecified minval and/or maxval
7400         values to correct default value for given type.
7402 2017-09-26  H.J. Lu  <hongjiu.lu@intel.com>
7404         [BZ #22101]
7405         * elf/Makefile (tests): Add tst-debug1.
7406         ($(objpfx)tst-debug1): New.
7407         ($(objpfx)tst-debug1.out): Likewise.
7408         ($(objpfx)tst-debug1mod1.so): Likewise.
7409         * elf/dl-load.c (_dl_map_object_from_fd): Skip PT_DYNAMIC segment
7410         with p_filesz == 0.
7411         * elf/tst-debug1.c: New file.
7413 2017-09-26  Joseph Myers  <joseph@codesourcery.com>
7415         * sysdeps/sparc/sparc-ifunc.h [!__ASSEMBLER__] (sparc_libm_ifunc):
7416         Define using __ifunc.
7418 2017-09-26  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
7420         * sysdeps/powerpc/fpu/libm-test-ulps: Regenerate expf() and
7421         exp2f() values.
7423 2017-09-26  Joseph Myers  <joseph@codesourcery.com>
7425         [BZ #22156]
7426         * sysdeps/ia64/stackinfo.h (DEFAULT_STACK_PERMS): Likewise.
7428 2017-09-26  Florian Weimer  <fweimer@redhat.com>
7430         * resolv/Makefile (tests-internal): Fix typo in comment.
7432 2017-09-26  Florian Weimer  <fweimer@redhat.com>
7434         * resolv/nss_dns/dns-host.c: Fix typo in comment.
7436 2017-09-25  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7438         * lib/malloc/scratch_buffer.h (struct scratch_buffer):
7439         Use an union instead of a max_align_t array for __space,
7440         so that __space is the same size on all platforms.
7441         * malloc/scratch_buffer_grow_preserve.c
7442         (__libc_scratch_buffer_grow_preserve): Likewise.
7444         [BZ #22183]
7445         * include/gnu-versions.h (_GNU_GLOB_INTERFACE_VERSION): Increase
7446         version to 2.
7447         * posix/Makefile (routines): Add glob-lstat-compat and
7448         glob64-lstat-compat.
7449         * posix/Versions (GLIBC_2.27, glob, glob64): Add symbol version.
7450         * posix/glob-lstat-compat.c: New file.
7451         * posix/glob64-lstat-compat.c: Likewise.
7452         * posix/tst-glob_lstat_compat.c: Likewise.
7453         * sysdeps/unix/sysv/linux/glob-lstat-compat.c: Likewise.
7454         * sysdeps/unix/sysv/linux/alpha/glob-lstat-compat.c: Likewise.
7455         * sysdeps/unix/sysv/linux/glob64-lstat-compat.c: Likewise.
7456         * sysdeps/unix/sysv/linux/s390/s390-32/glob64-lstat-compat.c:
7457         Likewise.
7458         * sysdeps/unix/sysv/linux/alpha/glob.c: Remove file.
7459         * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
7460         * posix/glob.c (glob_lstat): New function.
7461         (glob): Rename to __glob and add versioned symbol to 2.27.
7462         (glob_in_dir): Use glob_lstat.
7463         * posix/glob64.c (glob64): Add GLOB_ATTRIBUTE.
7464         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
7465         * sysdeps/unix/sysv/linux/glob.c (glob): Add versioned symbol for
7466         2.27.
7467         * sysdeps/unix/sysv/linux/glob64.c (glob64): Likewise.
7468         * sysdeps/unix/sysv/linux/oldglob.c (GLOB_NO_LSTAT): Define.
7469         * sysdeps/unix/sysv/linux/alpha/oldglob.c (__old_glob): Do not use
7470         gl_lstat on glob call.
7471         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add GLIBC_2.27 glob
7472         and glob64 symbols.
7473         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
7474         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
7475         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
7476         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
7477         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
7478         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
7479         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
7480         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
7481         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
7482         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
7483         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
7484         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
7485         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
7486         Likewise.
7487         * sysdeps/unix/linux/powerpc/powerpc32/nofpu/libc.abilist: Likewise.
7488         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
7489         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
7490         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
7491         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
7492         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
7493         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
7494         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
7495         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
7496         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
7497         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
7498         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
7500 2017-09-25  H.J. Lu  <hongjiu.lu@intel.com>
7502         * configure.ac (AS): Require binutils 2.25 or later.
7503         * configure: Regenerated.
7505 2017-09-25  Paul Pluzhnikov  <ppluzhnikov@google.com>
7507         [BZ #22207]
7508         * stdlib/test-atexit-race-common.c (do_test): Minimize required
7509         VM size.
7511 2017-09-25  DJ Delorie  <dj@redhat.com>
7513         [BZ #22161]
7514         * nscd/netgroupcache.c (addinnetgrX): Release read lock after
7515         resetting timeout.
7517 2017-09-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
7519         * sysdeps/ieee754/dbl-64/sincos32.h
7520         [SINCCOS32_H]: Remove define.
7521         [SINCOS32_H]: Define.
7523 2017-09-25  Szabolcs Nagy  <szabolcs.nagy@arm.com>
7525         * math/Versions (expf): New libm symbol at GLIBC_2.27.
7526         (exp2f): Likewise.
7527         * math/w_exp2f.c: New file.
7528         * math/w_expf.c: New file.
7529         * math/w_exp2f_compat.c (__exp2f_compat): For compat symbol only.
7530         * math/w_expf_compat.c (__expf_compat): Likewise.
7531         * sysdeps/ia64/fpu/e_exp2f.S: Add versioned symbols.
7532         * sysdeps/ia64/fpu/e_expf.S: Likewise.
7533         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
7534         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
7535         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
7536         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
7537         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
7538         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
7539         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
7540         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
7541         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
7542         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
7543         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
7544         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
7545         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
7546         Likewise.
7547         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
7548         Likewise.
7549         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
7550         Likewise.
7551         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
7552         Likewise.
7553         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
7554         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
7555         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
7556         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
7557         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
7558         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
7559         Likewise.
7560         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
7561         Likewise.
7562         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
7563         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
7564         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
7566 2017-09-25  Szabolcs Nagy  <szabolcs.nagy@arm.com>
7568         * math/Makefile (type-float-routines): Add math_errf and e_exp2f_data.
7569         * sysdeps/aarch64/fpu/math_private.h (TOINT_INTRINSICS): Define.
7570         (roundtoint, converttoint): Likewise.
7571         * sysdeps/ieee754/flt-32/e_expf.c: New implementation.
7572         * sysdeps/ieee754/flt-32/e_exp2f.c: New implementation.
7573         * sysdeps/ieee754/flt-32/e_exp2f_data.c: New file.
7574         * sysdeps/ieee754/flt-32/math_config.h: New file.
7575         * sysdeps/ieee754/flt-32/math_errf.c: New file.
7576         * sysdeps/ieee754/flt-32/t_exp2f.h: Remove.
7577         * sysdeps/i386/fpu/e_exp2f_data.c: New file.
7578         * sysdeps/i386/fpu/math_errf.c: New file.
7579         * sysdeps/ia64/fpu/e_exp2f_data.c: New file.
7580         * sysdeps/ia64/fpu/math_errf.c: New file.
7581         * sysdeps/m68k/m680x0/fpu/e_exp2f_data.c: New file.
7582         * sysdeps/m68k/m680x0/fpu/math_errf.c: New file.
7584 2017-09-24  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7586         * sysdeps/mach/hurd/dl-sysdep.c (check_no_hidden): New macro.
7587         (__open, __close, __libc_read, __libc_write, __writev, __libc_lseek64,
7588         __mmap, __fxstat64, __xstat64, __access, __access_noerrno, __getpid,
7589         __getcwd, __sbrk, __strtoul_internal, _exit, abort): Use check_no_hidden
7590         to make sure that these symbols are defined.
7591         * sysdeps/mach/hurd/bits/socket.h: Include <bits/wordsize.h> instead
7592         of <limits.h>
7593         (__need_NULL): Do not define.
7594         (__ss_aligntype): Use __WORDSIZE instead of ULONG_MAX to determine
7595         alignment.
7596         [!__USE_MISC] (pseudo_AF_XTP, pseudo_AF_RTIP, pseudo_AF_PIP,
7597         CMGROUP_MAX, cmsgcred): Do not define.
7598         (CMSG_FIRSTHDR, __cmsg_nxthdr): Use (struct cmsghdr *) 0 instead of
7599         NULL.
7600         * bits/socket.h: Likewise.
7601         * sysdeps/unix/clock_gettime.c (realtime_gettime, __clock_gettime): Use
7602         __gettimeofday instead of gettimeofday.
7603         * sysdeps/unix/clock_settime.c (__clock_settime): Use __settimeofday
7604         instead of settimeofday.
7606 2017-09-22  Joseph Myers  <joseph@codesourcery.com>
7608         * sysdeps/ieee754/flt-32/s_asinhf.c: Include <libm-alias-float.h>.
7609         (asinhf): Define using libm_alias_float.
7610         * sysdeps/ieee754/flt-32/s_atanf.c: Include <libm-alias-float.h>.
7611         (atanf): Define using libm_alias_float.
7612         * sysdeps/ieee754/flt-32/s_cbrtf.c: Include <libm-alias-float.h>.
7613         (cbrtf): Define using libm_alias_float.
7614         * sysdeps/ieee754/flt-32/s_ceilf.c: Include <libm-alias-float.h>.
7615         (ceilf): Define using libm_alias_float.
7616         * sysdeps/ieee754/flt-32/s_copysignf.c: Include
7617         <libm-alias-float.h>.
7618         (copysignf): Define using libm_alias_float.
7619         * sysdeps/ieee754/flt-32/s_cosf.c: Include <libm-alias-float.h>.
7620         (cosf): Define using libm_alias_float.
7621         * sysdeps/ieee754/flt-32/s_erff.c: Include <libm-alias-float.h>.
7622         (erff): Define using libm_alias_float.
7623         (erfcf): Likewise.
7624         * sysdeps/ieee754/flt-32/s_expm1f.c: Include <libm-alias-float.h>.
7625         (expm1f): Define using libm_alias_float.
7626         * sysdeps/ieee754/flt-32/s_fabsf.c: Include <libm-alias-float.h>.
7627         (fabsf): Define using libm_alias_float.
7628         * sysdeps/ieee754/flt-32/s_floorf.c: Include <libm-alias-float.h>.
7629         (floorf): Define using libm_alias_float.
7630         * sysdeps/ieee754/flt-32/s_frexpf.c: Include <libm-alias-float.h>.
7631         (frexpf): Define using libm_alias_float.
7632         * sysdeps/ieee754/flt-32/s_fromfpf.c (fromfpf): Define using
7633         libm_alias_float.
7634         * sysdeps/ieee754/flt-32/s_fromfpf_main.c: Include
7635         <libm-alias-float.h>.
7636         * sysdeps/ieee754/flt-32/s_fromfpxf.c (fromfpxf): Define using
7637         libm_alias_float.
7638         * sysdeps/ieee754/flt-32/s_getpayloadf.c: Include
7639         <libm-alias-float.h>.
7640         (getpayloadf): Define using libm_alias_float.
7641         * sysdeps/ieee754/flt-32/s_llrintf.c: Include
7642         <libm-alias-float.h>.
7643         (llrintf): Define using libm_alias_float.
7644         * sysdeps/ieee754/flt-32/s_llroundf.c: Include
7645         <libm-alias-float.h>.
7646         (llroundf): Define using libm_alias_float.
7647         * sysdeps/ieee754/flt-32/s_logbf.c: Include <libm-alias-float.h>.
7648         (logbf): Define using libm_alias_float.
7649         * sysdeps/ieee754/flt-32/s_lrintf.c: Include <libm-alias-float.h>.
7650         (lrintf): Define using libm_alias_float.
7651         * sysdeps/ieee754/flt-32/s_lroundf.c: Include <libm-alias-float.h>.
7652         (lroundf): Define using libm_alias_float.
7653         * sysdeps/ieee754/flt-32/s_modff.c: Include <libm-alias-float.h>.
7654         (modff): Define using libm_alias_float.
7655         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Include
7656         <libm-alias-float.h>.
7657         (nearbyintf): Define using libm_alias_float.
7658         * sysdeps/ieee754/flt-32/s_nextafterf.c: Include
7659         <libm-alias-float.h>.
7660         (nextafterf): Define using libm_alias_float.
7661         * sysdeps/ieee754/flt-32/s_nextupf.c: Include
7662         <libm-alias-float.h>.
7663         (nextupf): Define using libm_alias_float.
7664         * sysdeps/ieee754/flt-32/s_remquof.c: Include
7665         <libm-alias-float.h>.
7666         (remquof): Define using libm_alias_float.
7667         * sysdeps/ieee754/flt-32/s_rintf.c: Include <libm-alias-float.h>.
7668         (rintf): Define using libm_alias_float.
7669         * sysdeps/ieee754/flt-32/s_roundevenf.c: Include
7670         <libm-alias-float.h>.
7671         (roundevenf): Define using libm_alias_float.
7672         * sysdeps/ieee754/flt-32/s_roundf.c: Include <libm-alias-float.h>.
7673         (roundf): Define using libm_alias_float.
7674         * sysdeps/ieee754/flt-32/s_setpayloadf.c (setpayloadf): Define
7675         using libm_alias_float.
7676         * sysdeps/ieee754/flt-32/s_setpayloadf_main.c: Include
7677         <libm-alias-float.h>.
7678         * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (setpayloadsigf):
7679         Define using libm_alias_float.
7680         * sysdeps/ieee754/flt-32/s_sincosf.c: Include
7681         <libm-alias-float.h>.
7682         (sincosf): Define using libm_alias_float.
7683         * sysdeps/ieee754/flt-32/s_sinf.c: Include <libm-alias-float.h>.
7684         (sinf): Define using libm_alias_float.
7685         * sysdeps/ieee754/flt-32/s_tanf.c: Include <libm-alias-float.h>.
7686         (tanf): Define using libm_alias_float.
7687         * sysdeps/ieee754/flt-32/s_tanhf.c: Include <libm-alias-float.h>.
7688         (tanhf): Define using libm_alias_float.
7689         * sysdeps/ieee754/flt-32/s_totalorderf.c: Include
7690         <libm-alias-float.h>.
7691         (totalorderf): Define using libm_alias_float.
7692         * sysdeps/ieee754/flt-32/s_totalordermagf.c: Include
7693         <libm-alias-float.h>.
7694         (totalordermagf): Define using libm_alias_float.
7695         * sysdeps/ieee754/flt-32/s_truncf.c: Include <libm-alias-float.h>.
7696         (truncf): Define using libm_alias_float.
7697         * sysdeps/ieee754/flt-32/s_ufromfpf.c (ufromfpf): Define using
7698         libm_alias_float.
7699         * sysdeps/ieee754/flt-32/s_ufromfpxf.c (ufromfpxf): Define using
7700         libm_alias_float.
7702 2017-09-22  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
7704         [BZ #22146]
7705         math/math.h: Let fpclassify use the builtin in C++ mode, even
7706         when optimazing for size.
7708 2017-09-22  Joseph Myers  <joseph@codesourcery.com>
7710         * csu/Makefile (generated): Do not add version-info.h.
7711         (before-compile): Likewise.
7712         (all-Banner-files): Remove variable.
7713         ($(objpfx)version-info.h): Remove rule.
7714         * csu/version.c (banner): Do not include "version-info.h".
7715         * libidn/Banner: Remove.
7716         * manual/contrib.texi (Simon Josefsson): New entry.
7718 2017-09-21  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
7720         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
7721         Remove conditionals on LDBL_MANT_DIG.
7722         * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
7723         (__ieee754_lgammal_r): Likewise.
7725 2017-09-21  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
7727         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Remove definitions of
7728         _Float128 and L().
7729         * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Remove definitions of
7730         _Float128 and L(). Replace _Float128 with long double and L(x)
7731         with xL, throughout the file.
7732         * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
7733         * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
7734         * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
7735         * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
7737 2017-09-21  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
7739         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Include tables from
7740         sysdeps/ieee754/ldbl-128ibm.
7741         * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Copy contents from the
7742         equivalent implementation in sysdeps/ieee754/ldbl-128/ instead
7743         of including it.  Keep _Float128 and L() intact.  These will be
7744         reviewed by a separate patch.
7745         * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
7746         * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
7747         * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
7748         * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
7750 2017-09-21  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
7752         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c
7753         (__finitef128): Define to __redirect___finitef128.
7754         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c
7755         (__isinff128): Define to __redirect___isinff128.
7756         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c
7757         (__isnanf128): Define to __redirect___isnanf128.
7759 2017-09-21  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
7761         * sysdeps/powerpc/powerpc64le/Makefile
7762         (CFLAGS-tst-strtod-nan-locale.c): New variable.
7763         (CFLAGS-tst-wcstod-nan-locale.c): New variable.
7765 2017-09-21  Paul Pluzhnikov  <ppluzhnikov@google.com>
7766             Carlos O'Donell  <carlos@redhat.com>
7768         [BZ #22180]
7769         * stdlib/Makefile (tests): Add test-dlclose-exit-race.
7770         * stdlib/test-dlclose-exit-race.c: New file.
7771         * stdlib/test-dlclose-exit-race-helper.c: New file.
7772         * stdlib/exit.c (__run_exit_handlers): Mark slot as free.
7774 2017-09-21  Joseph Myers  <joseph@codesourcery.com>
7776         * crypt/Banner: Remove file.
7777         * nptl/Banner: Likewise.
7778         * resolv/Banner: Likewise.
7779         * soft-fp/Banner: Likewise.
7780         * nptl/Makefile ($(objpfx)banner.h): Remove rule.
7781         ($(objpfx)version.d): Remove dependency on banner.h.
7782         ($(objpfx)version.os): Likewise.
7783         * nptl/version.c (banner): Do not include banner.h.
7784         * manual/contrib.texi: Update entries for Richard Henderson, Jakub
7785         Jelinek and BIND code.
7787 2017-09-20  Paul Pluzhnikov  <ppluzhnikov@google.com>
7788             Carlos O'Donell  <carlos@redhat.com>
7790         * support/xdlfcn.h: New file.
7791         * support/xdlfcn.c: New file.
7792         * support/Makefile (libsupport-routines): Add xdlfcn.
7793         * stdlib/tst-tls-atexit.c: Use xdlopen, xdlsym, xdlclose.
7795 2017-09-20  Joseph Myers  <joseph@codesourcery.com>
7797         [BZ #20142]
7798         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
7799         Add s_trunc-c, s_truncf-c, s_trunc-sse4_1 and s_truncf-sse4_1.
7800         * sysdeps/x86_64/fpu/multiarch/s_trunc-c.c: New file.
7801         * sysdeps/x86_64/fpu/multiarch/s_trunc-sse4_1.S: Likewise.
7802         * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Likewise.
7803         * sysdeps/x86_64/fpu/multiarch/s_truncf-c.c: Likewise.
7804         * sysdeps/x86_64/fpu/multiarch/s_truncf-sse4_1.S: Likewise.
7805         * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Likewise.
7807 2017-09-20  Paul Pluzhnikov  <ppluzhnikov@google.com>
7808             Ricky Zhou  <rickyz@google.com>
7809             Anoop V Chakkalakkal  <anoop.vijayan@in.ibm.com>
7811         [BZ #14333]
7812         * stdlib/cxa_atexit.c (__internal_atexit): Use __exit_funcs_lock.
7813         Remove atomics.
7814         (__new_exitfn): Fail registration when we finished at_exit processing.
7815         * stdlib/cxa_finalize.c (__cxa_finalize): Likewise.
7816         * stdlib/on_exit.c (__on_exit): Likewise.
7817         * stdlib/exit.c (__exit_funcs_done): New variable.
7818         (__run_exit_handlers): Use __exit_funcs_lock.
7819         * stdlib/exit.h (__exit_funcs_lock, __exit_funcs_done): New
7820         declarations.
7821         * stdlib/Makefile (test-atexit-race, test-quick_at_exit-race)
7822         (test-cxa_atexit-race, test-on_exit-race): New tests.
7823         * stdlib/test-atexit-race-common.c: New file.
7824         * stdlib/test-atexit-race.c: New file.
7825         * stdlib/test-at_quick_exit-race.c: New file.
7826         * stdlib/test-cxa_atexit-race.c: New file.
7827         * stdlib/test-on_exit-race.c: New file.
7829 2017-09-20  Szabolcs Nagy  <szabolcs.nagy@arm.com>
7831         * benchtests/Makefile: Add exp2f and log2f benchmarks.
7832         * benchtests/exp2f-inputs: Copy of expf-inputs.
7833         * benchtests/log2f-inputs: Copy of logf-inputs.
7835 2017-09-19  Joseph Myers  <joseph@codesourcery.com>
7837         * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]:
7838         Explicitly take address of first element of array arguments in
7839         call to INLINE_SYSCALL.
7841 2017-09-19  Andreas Schwab  <schwab@suse.de>
7843         [BZ #22134]
7844         * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]: Try
7845         execveat first.
7846         [!__ASSUME_EXECVEAT]: Fall back to /proc if execveat is
7847         unimplemented.
7848         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_EXECVEAT)
7849         [__LINUX_KERNEL_VERSION >= 0x031300]: Define.
7850         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
7851         (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040200]: Undef.
7852         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
7853         (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
7854         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
7855         (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
7856         * posix/Makefile (tests): Add tst-fexecve.
7857         * posix/tst-fexecve.c: New file.
7859 2017-09-19  Wilco Dijkstra  <wdijkstr@arm.com>
7861         * benchtests/Makefile: Add logf benchmark.
7862         * benchtests/logf-inputs: Add reduced trace from wrf_r.
7864 2017-09-19  Wilco Dijkstra  <wdijkstr@arm.com>
7866         * benchtests/Makefile: Add expf benchmark.
7867         * benchtests/expf-inputs: Add reduced trace from wrf_r.
7869 2017-09-19  Wilco Dijkstra  <wdijkstr@arm.com>
7871         * csu/Makefile: Add -funwind-tables to libc-start.c.
7872         * debug/Makefile: Add -funwind-tables to backtrace.c.
7873         * sysdeps/aarch64/Makefile: Remove CFLAGS-backtrace.c.
7874         * sysdeps/arm/Makefile: Likewise.
7875         * sysdeps/i386/Makefile: Likewise.
7876         * sysdeps/m68k/Makefile: Likewise.
7877         * sysdeps/mips/Makefile: Likewise.
7878         * sysdeps/nios2/Makefile: Likewise.
7879         * sysdeps/sh/Makefile: Likewise.
7880         * sysdeps/sparc/Makefile: Likewise.
7882 2017-09-19  Joseph Myers  <joseph@codesourcery.com>
7884         * benchtests/Makefile (bench-math): Add trunc and truncf.
7885         (CFLAGS-bench-trunc.c): New variable.
7886         (CFLAGS-bench-truncf.c): Likewise.
7887         * benchtests/trunc-inputs: New file.
7888         * benchtests/truncf-inputs: Likewise.
7890 2017-09-19  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
7892         * sysdeps/powerpc/powerpc64/power8/memset.S: Avoid misaligned stores.
7894 2017-09-18  Joseph Myers  <joseph@codesourcery.com>
7896         * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT &&
7897         !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)] (weak_alias): Undefine and
7898         redefine.
7899         [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
7900         (exp10l): Define as weak alias.
7901         * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c [LIBM_SVID_COMPAT
7902         && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (weak_alias): Undefine
7903         and redefine.
7904         [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)]
7905         (remainderl): Define as weak alias.
7907         * math/s_fmal.c: Include <libm-alias-ldouble.h>.
7908         (fmal): Define using libm_alias_ldouble.
7909         * math/w_acoshl_compat.c: Include <libm-alias-ldouble.h>.
7910         (acoshl): Define using libm_alias_ldouble.
7911         * math/w_acosl_compat.c: Include <libm-alias-ldouble.h>.
7912         (acosl): Define using libm_alias_ldouble.
7913         * math/w_asinl_compat.c: Include <libm-alias-ldouble.h>.
7914         (asinl): Define using libm_alias_ldouble.
7915         * math/w_atan2l_compat.c: Include <libm-alias-ldouble.h>.
7916         (atan2l): Define using libm_alias_ldouble.
7917         * math/w_atanhl_compat.c: Include <libm-alias-ldouble.h>.
7918         (atanhl): Define using libm_alias_ldouble.
7919         * math/w_coshl_compat.c: Include <libm-alias-ldouble.h>.
7920         (coshl): Define using libm_alias_ldouble.
7921         * math/w_exp10l_compat.c: Include <libm-alias-ldouble.h>.
7922         (exp10l): Define using libm_alias_ldouble.
7923         * math/w_exp2l_compat.c: Include <libm-alias-ldouble.h>.
7924         (exp2l): Define using libm_alias_ldouble.
7925         * math/w_expl_compat.c: Include <libm-alias-ldouble.h>.
7926         (expl): Define using libm_alias_ldouble.
7927         * math/w_fmodl_compat.c: Include <libm-alias-ldouble.h>.
7928         (fmodl): Define using libm_alias_ldouble.
7929         * math/w_hypotl_compat.c: Include <libm-alias-ldouble.h>.
7930         (hypotl): Define using libm_alias_ldouble.
7931         * math/w_j0l_compat.c: Include <libm-alias-ldouble.h>.
7932         (j0l): Define using libm_alias_ldouble.
7933         (y0l): Likewise.
7934         * math/w_j1l_compat.c: Include <libm-alias-ldouble.h>.
7935         (j1l): Define using libm_alias_ldouble.
7936         (y1l): Likewise.
7937         * math/w_jnl_compat.c: Include <libm-alias-ldouble.h>.
7938         (jnl): Define using libm_alias_ldouble.
7939         (ynl): Likewise.
7940         * math/w_log10l_compat.c: Include <libm-alias-ldouble.h>.
7941         (log10l): Define using libm_alias_ldouble.
7942         * math/w_log2l_compat.c: Include <libm-alias-ldouble.h>.
7943         (log2l): Define using libm_alias_ldouble.
7944         * math/w_logl_compat.c: Include <libm-alias-ldouble.h>.
7945         (logl): Define using libm_alias_ldouble.
7946         * math/w_powl_compat.c: Include <libm-alias-ldouble.h>.
7947         (powl): Define using libm_alias_ldouble.
7948         * math/w_remainderl_compat.c: Include <libm-alias-ldouble.h>.
7949         (remainderl): Define using libm_alias_ldouble.
7950         * math/w_sinhl_compat.c: Include <libm-alias-ldouble.h>.
7951         (sinhl): Define using libm_alias_ldouble.
7952         * math/w_sqrtl_compat.c: Include <libm-alias-ldouble.h>.
7953         (sqrtl): Define using libm_alias_ldouble.
7954         * math/w_tgammal_compat.c: Include <libm-alias-ldouble.h>.
7955         (tgammal): Define using libm_alias_ldouble.
7956         * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT]
7957         (exp10l): Do not use long_double_symbol here.
7958         * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
7959         [LIBM_SVID_COMPAT] (remainderl): Likewise.
7960         * sysdeps/ieee754/ldbl-opt/s_fmal.c: Remove.
7961         * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
7962         * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
7963         * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
7964         * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
7965         * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
7966         * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
7967         * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
7968         * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
7969         * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
7970         * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
7971         * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
7972         * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
7973         * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
7974         * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
7975         * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
7976         * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
7977         * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
7978         * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
7979         * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
7981 2017-09-18  Wang Boshi  <wangboshi@huawei.com>  (tiny change)
7983         * sysdeps/aarch64/start.S: Use MOVL instead of literal pools.
7984         * sysdeps/aarch64/sysdep.h (MOVL): Add MOVL macro.
7986 2017-09-17  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7988         * io/read.c (read): Add libc_hidden_weak.
7989         * sysdeps/mach/hurd/read.c (read): Likewise.
7990         * io/write.c (write): Likewise.
7991         * sysdeps/mach/hurd/write.c (write): Likewise.
7992         * io/pread64.c (__pread64): Likewise.
7993         * sysdeps/mach/hurd/pread64.c (__pread64): Likewise.
7994         * posix/pread64.c (__pread64): Add libc_hidden_def.
7996 2017-09-16  Siddhesh Poyarekar  <siddhesh@sourceware.org>
7998         * benchtests/scripts/compare_strings.py: New option -g.
7999         (draw_graph): Print a message that a graph is being generated.
8000         (process_results): Generate graph only if -g is passed.
8001         (main): Process option -g.
8003         * benchtests/scripts/compare_strings.py (process_results):
8004         Better spacing for output.
8006         * benchtests/scripts/compare_strings.py: Use argparse.
8007         * benchtests/README: Document existence of compare_strings.py.
8009 2017-09-15  Joseph Myers  <joseph@codesourcery.com>
8011         * math/s_fma.c: Include <libm-alias-double.h>.
8012         (fma): Define using libm_alias_double.
8013         * math/s_nextafter.c: Include <libm-alias-double.h>.
8014         (nextafter): Define using libm_alias_double.
8015         * math/w_acos_compat.c: Include <libm-alias-double.h>.
8016         (acos): Define using libm_alias_double.
8017         * math/w_acosh_compat.c: Include <libm-alias-double.h>.
8018         (aocsh): Define using libm_alias_double.
8019         * math/w_asin_compat.c: Include <libm-alias-double.h>.
8020         (asin): Define using libm_alias_double.
8021         * math/w_atan2_compat.c: Include <libm-alias-double.h>.
8022         (atan2): Define using libm_alias_double.
8023         * math/w_atanh_compat.c: Include <libm-alias-double.h>.
8024         (atanh): Define using libm_alias_double.
8025         * math/w_cosh_compat.c: Include <libm-alias-double.h>.
8026         (cosh): Define using libm_alias_double.
8027         * math/w_exp10_compat.c: Include <libm-alias-double.h>.
8028         (exp10): Define using libm_alias_double.
8029         * math/w_exp2_compat.c: Include <libm-alias-double.h>.
8030         (exp2): Define using libm_alias_double.
8031         * math/w_exp_compat.c: Include <libm-alias-double.h>.
8032         (exp): Define using libm_alias_double.
8033         * math/w_fmod_compat.c: Include <libm-alias-double.h>.
8034         (fmod): Define using libm_alias_double.
8035         * math/w_hypot_compat.c: Include <libm-alias-double.h>.
8036         (hypot): Define using libm_alias_double.
8037         * math/w_j0_compat.c: Include <libm-alias-double.h>.
8038         (j0): Define using libm_alias_double.
8039         (y0): Likewise.
8040         * math/w_j1_compat.c: Include <libm-alias-double.h>.
8041         (j1): Define using libm_alias_double.
8042         (y1): Likewise.
8043         * math/w_jn_compat.c: Include <libm-alias-double.h>.
8044         (jn): Define using libm_alias_double.
8045         (yn): Likewise.
8046         * math/w_log10_compat.c: Include <libm-alias-double.h>.
8047         (log10): Define using libm_alias_double.
8048         * math/w_log2_compat.c: Include <libm-alias-double.h>.
8049         (log2): Define using libm_alias_double.
8050         * math/w_log_compat.c: Include <libm-alias-double.h>.
8051         (log): Define using libm_alias_double.
8052         * math/w_pow_compat.c: Include <libm-alias-double.h>.
8053         (pow): Define using libm_alias_double.
8054         * math/w_remainder_compat.c: Include <libm-alias-double.h>.
8055         (remainder): Define using libm_alias_double.
8056         * math/w_sinh_compat.c: Include <libm-alias-double.h>.
8057         (sinh): Define using libm_alias_double.
8058         * math/w_sqrt_compat.c: Include <libm-alias-double.h>.
8059         (sqrt): Define using libm_alias_double.
8060         * math/w_tgamma_compat.c: Include <libm-alias-double.h>.
8061         (tgamma): Define using libm_alias_double.
8062         * sysdeps/ieee754/ldbl-opt/s_nextafter.c [LONG_DOUBLE_COMPAT(libm,
8063         GLIBC_2_0)] (nextafterl): Do not define compat symbol here.
8064         * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c
8065         [LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)] (exp10l): Likewise.
8066         * sysdeps/ieee754/ldbl-opt/w_remainder_compat.c
8067         [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (remainderl): Likewise.
8068         * sysdeps/ieee754/ldbl-opt/w_acos_compat.c: Remove.
8069         * sysdeps/ieee754/ldbl-opt/w_acosh_compat.c: Likewise.
8070         * sysdeps/ieee754/ldbl-opt/w_asin_compat.c: Likewise.
8071         * sysdeps/ieee754/ldbl-opt/w_atan2_compat.c: Likewise.
8072         * sysdeps/ieee754/ldbl-opt/w_atanh_compat.c: Likewise.
8073         * sysdeps/ieee754/ldbl-opt/w_cosh_compat.c: Likewise.
8074         * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Likewise.
8075         * sysdeps/ieee754/ldbl-opt/w_fmod_compat.c: Likewise.
8076         * sysdeps/ieee754/ldbl-opt/w_hypot_compat.c: Likewise.
8077         * sysdeps/ieee754/ldbl-opt/w_j0_compat.c: Likewise.
8078         * sysdeps/ieee754/ldbl-opt/w_j1_compat.c: Likewise.
8079         * sysdeps/ieee754/ldbl-opt/w_jn_compat.c: Likewise.
8080         * sysdeps/ieee754/ldbl-opt/w_log10_compat.c: Likewise.
8081         * sysdeps/ieee754/ldbl-opt/w_log2_compat.c: Likewise.
8082         * sysdeps/ieee754/ldbl-opt/w_log_compat.c: Likewise.
8083         * sysdeps/ieee754/ldbl-opt/w_pow_compat.c: Likewise.
8084         * sysdeps/ieee754/ldbl-opt/w_sinh_compat.c: Likewise.
8085         * sysdeps/ieee754/ldbl-opt/w_sqrt_compat.c: Likewise.
8086         * sysdeps/ieee754/ldbl-opt/w_tgamma_compat.c: Likewise.
8088         * math/e_acoshl.c: Remove.
8089         * math/e_acosl.c: Likewise.
8090         * math/e_asinl.c: Likewise.
8091         * math/e_atan2l.c: Likewise.
8092         * math/e_atanhl.c: Likewise.
8093         * math/e_coshl.c: Likewise.
8094         * math/e_expl.c: Likewise.
8095         * math/e_fmodl.c: Likewise.
8096         * math/e_gammal_r.c: Likewise.
8097         * math/e_hypotl.c: Likewise.
8098         * math/e_j0l.c: Likewise.
8099         * math/e_j1l.c: Likewise.
8100         * math/e_jnl.c: Likewise.
8101         * math/e_lgammal_r.c: Likewise.
8102         * math/e_log10l.c: Likewise.
8103         * math/e_log2l.c: Likewise.
8104         * math/e_logl.c: Likewise.
8105         * math/e_powl.c: Likewise.
8106         * math/e_rem_pio2l.c: Likewise.
8107         * math/e_sinhl.c: Likewise.
8108         * math/e_sqrtf128.c: Likewise.
8109         * math/e_sqrtl.c: Likewise.
8110         * math/k_cosl.c: Likewise.
8111         * math/k_sinl.c: Likewise.
8112         * math/k_tanl.c: Likewise.
8113         * math/s_asinhl.c: Likewise.
8114         * math/s_atanl.c: Likewise.
8115         * math/s_cbrtl.c: Likewise.
8116         * math/s_erfl.c: Likewise.
8117         * math/s_expm1l.c: Likewise.
8118         * math/s_log1pl.c: Likewise.
8119         * math/s_tanhl.c: Likewise.
8121 2017-09-15  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
8123         [BZ #21745]
8124         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile:
8125         [$(subdir) = math] (sysdep_calls): New variable.  Has the
8126         previous contents of sysdep_routines, but re-sorted..
8127         [$(subdir) = math] (sysdep_routines): Re-use the contents from
8128         sysdep_calls.
8129         [$(subdir) = math] (libm-sysdep_routines): Remove the functions
8130         defined in sysdep_calls and replace by the respective m_* names.
8131         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S:
8132         (compat_symbol): Undefine to avoid duplicated compat symbols in
8133         libc.
8135 2017-09-15  Joseph Myers  <joseph@codesourcery.com>
8137         * math/s_fmaf.c: Include <libm-alias-float.h>.
8138         (fmaf): Define using libm_alias_float.
8139         * math/w_acosf_compat.c: Include <libm-alias-float.h>.
8140         (acosf): Define using libm_alias_float.
8141         * math/w_acoshf_compat.c: Include <libm-alias-float.h>.
8142         (acoshf): Define using libm_alias_float.
8143         * math/w_asinf_compat.c: Include <libm-alias-float.h>.
8144         (asinf): Define using libm_alias_float.
8145         * math/w_atan2f_compat.c: Include <libm-alias-float.h>.
8146         (atan2f): Define using libm_alias_float.
8147         * math/w_atanhf_compat.c: Include <libm-alias-float.h>.
8148         (atanhf): Define using libm_alias_float.
8149         * math/w_coshf_compat.c: Include <libm-alias-float.h>.
8150         (coshf): Define using libm_alias_float.
8151         * math/w_exp10f_compat.c: Include <libm-alias-float.h>.
8152         (exp10f): Define using libm_alias_float.
8153         * math/w_fmodf_compat.c: Include <libm-alias-float.h>.
8154         (fmodf): Define using libm_alias_float.
8155         * math/w_hypotf_compat.c: Include <libm-alias-float.h>.
8156         (hypotf): Define using libm_alias_float.
8157         * math/w_j0f_compat.c: Include <libm-alias-float.h>.
8158         (j0f): Define using libm_alias_float.
8159         (y0f): Likewise.
8160         * math/w_j1f_compat.c: Include <libm-alias-float.h>.
8161         (j1f): Define using libm_alias_float.
8162         (y1f): Likewise.
8163         * math/w_jnf_compat.c: Include <libm-alias-float.h>.
8164         (jnf): Define using libm_alias_float.
8165         (ynf): Likewise.
8166         * math/w_log10f_compat.c: Include <libm-alias-float.h>.
8167         (log10f): Define using libm_alias_float.
8168         * math/w_log2f_compat.c: Include <libm-alias-float.h>.
8169         (log2f): Define using libm_alias_float.
8170         * math/w_logf_compat.c: Include <libm-alias-float.h>.
8171         (logf): Define using libm_alias_float.
8172         * math/w_powf_compat.c: Include <libm-alias-float.h>.
8173         (powf): Define using libm_alias_float.
8174         * math/w_remainderf_compat.c: Include <libm-alias-float.h>.
8175         (remainderf): Define using libm_alias_float.
8176         * math/w_sinhf_compat.c: Include <libm-alias-float.h>.
8177         (sinhf): Define using libm_alias_float.
8178         * math/w_sqrtf_compat.c: Include <libm-alias-float.h>.
8179         (sqrtf): Define using libm_alias_float.
8180         * math/w_tgammaf_compat.c: Include <libm-alias-float.h>.
8181         (tgammaf): Define using libm_alias_float.
8183 2017-09-14  Joseph Myers  <joseph@codesourcery.com>
8185         * include/math.h (roundeven): Change hidden_proto call to
8186         __roundeven.
8187         * math/w_j0_compat.c (j0): Rename to __j0 and define as weak
8188         alias.
8189         [NO_LONG_DOUBLE] (__j0l): New strong alias.
8190         (y0): Rename to __y0 and define as weak alias.
8191         [NO_LONG_DOUBLE] (__y0l): New strong alias.
8192         * math/w_j0f_compat.c (j0f): Rename to __j0f and define as weak
8193         alias.
8194         (y0f): Rename to __y0f and define as weak alias.
8195         * math/w_j1_compat.c (j1): Rename to __j1 and define as weak
8196         alias.
8197         [NO_LONG_DOUBLE] (__j1l): New strong alias.
8198         (y1): Rename to __y1 and define as weak alias.
8199         [NO_LONG_DOUBLE] (__y1l): New strong alias.
8200         * math/w_j1f_compat.c (j1f): Rename to __j1f and define as weak
8201         alias.
8202         (y1f): Rename to __y1f and define as weak alias.
8203         * math/w_jn_compat.c (jn): Rename to __jn and define as weak
8204         alias.
8205         [NO_LONG_DOUBLE] (__jnl): New strong alias.
8206         (yn): Rename to __yn and define as weak alias.
8207         [NO_LONG_DOUBLE] (__ynl): New strong alias.
8208         * math/w_jnf_compat.c (jnf): Rename to __jnf and define as weak
8209         alias.
8210         (ynf): Rename to __ynf and define as weak alias.
8211         * sysdeps/ieee754/dbl-64/s_fromfp.c (FUNC): Define to __fromfp.
8212         (fromfp): Define as weak alias.
8213         [NO_LONG_DOUBLE] (__fromfpl): New strong alias.
8214         * sysdeps/ieee754/dbl-64/s_fromfpx.c (FUNC): Define to __fromfpx.
8215         (fromfpx): Define as weak alias.
8216         [NO_LONG_DOUBLE] (__fromfpxl): New strong alias.
8217         * sysdeps/ieee754/dbl-64/s_getpayload.c (getpayload): Rename to
8218         __getpayload and define as weak alias.
8219         [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
8220         * sysdeps/ieee754/dbl-64/s_roundeven.c (roundeven): Rename to
8221         __roundeven and define as weak alias.
8222         [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
8223         * sysdeps/ieee754/dbl-64/s_setpayload.c (FUNC): Define to
8224         __setpayload.
8225         (setpayload): Define as weak alias.
8226         [NO_LONG_DOUBLE] (__setpayloadl): New strong alias.
8227         * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (FUNC): Define to
8228         __setpayloadsig.
8229         (setpayloadsig): Define as weak alias.
8230         [NO_LONG_DOUBLE] (__setpayloadsigl): New strong alias.
8231         * sysdeps/ieee754/dbl-64/s_totalorder.c (totalorder): Rename to
8232         __totalorder and define as weak alias.
8233         [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
8234         * sysdeps/ieee754/dbl-64/s_totalordermag.c (totalordermag): Rename
8235         to __totalordermag and define as weak alias.
8236         [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
8237         * sysdeps/ieee754/dbl-64/s_ufromfp.c (FUNC): Define to __ufromfp.
8238         (ufromfp): Define as weak alias.
8239         [NO_LONG_DOUBLE] (__ufromfpl): New strong alias.
8240         * sysdeps/ieee754/dbl-64/s_ufromfpx.c (FUNC): Define to
8241         __ufromfpx.
8242         (ufromfpx): Define as weak alias.
8243         [NO_LONG_DOUBLE] (__ufromfpxl): New strong alias.
8244         * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c (getpayload):
8245         Rename to __getpayload and define as weak alias.
8246         [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
8247         * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c (roundeven):
8248         Rename to __roundeven and define as weak alias.
8249         [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
8250         * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c (totalorder):
8251         Rename to __totalorder and define as weak alias.
8252         [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
8253         * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c
8254         (totalordermag): Rename to __totalordermag and define as weak
8255         alias.
8256         [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
8257         * sysdeps/ieee754/float128/float128_private.h (__getpayloadl): New
8258         macro.
8259         (__roundevenl): Likewise.
8260         (__totalorderl): Likewise.
8261         (__totalordermagl): Likewise
8262         * sysdeps/ieee754/float128/s_fromfpf128.c (FUNC): Define to
8263         __fromfpf128.
8264         (fromfpf128): Define as weak alias.
8265         * sysdeps/ieee754/float128/s_fromfpxf128.c (FUNC): Define to
8266         __fromfpxf128.
8267         (fromfpxf128): Define as weak alias.
8268         * sysdeps/ieee754/float128/s_setpayloadf128.c (FUNC): Define to
8269         __setpayloadf128.
8270         (setpayloadf128): Define as weak alias.
8271         * sysdeps/ieee754/float128/s_setpayloadsigf128.c (FUNC): Define to
8272         __setpayloadsigf128.
8273         (setpayloadsigf128): Define as weak alias.
8274         * sysdeps/ieee754/float128/s_ufromfpf128.c (FUNC): Define to
8275         __ufromfpf128.
8276         (ufromfpf128): Define as weak alias.
8277         * sysdeps/ieee754/float128/s_ufromfpxf128.c (FUNC): Define to
8278         __ufromfpxf128.
8279         (ufromfpxf128): Define as weak alias.
8280         * sysdeps/ieee754/flt-32/s_fromfpf.c (FUNC): Define to __fromfpf.
8281         (fromfpf): Define as weak alias.
8282         * sysdeps/ieee754/flt-32/s_fromfpxf.c (FUNC): Define to
8283         __fromfpxf.
8284         (fromfpxf): Define as weak alias.
8285         * sysdeps/ieee754/flt-32/s_getpayloadf.c (getpayloadf): Rename to
8286         __getpayloadf and define as weak alias.
8287         * sysdeps/ieee754/flt-32/s_roundevenf.c (roundevenf): Rename to
8288         __roundevenf and define as weak alias.
8289         * sysdeps/ieee754/flt-32/s_setpayloadf.c (FUNC): Define to
8290         __setpayloadf.
8291         (setpayloadf): Define as weak alias.
8292         * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (FUNC): Define to
8293         __setpayloadsigf.
8294         (setpayloadsigf): Define as weak alias.
8295         * sysdeps/ieee754/flt-32/s_totalorderf.c (totalorderf): Rename to
8296         __totalorderf and define as weak alias.
8297         * sysdeps/ieee754/flt-32/s_totalordermagf.c (totalordermagf):
8298         Rename to __totalordermagf and define as weak alias.
8299         * sysdeps/ieee754/flt-32/s_ufromfpf.c (FUNC): Define to
8300         __ufromfpf.
8301         (ufromfpf): Define as weak alias.
8302         * sysdeps/ieee754/flt-32/s_ufromfpxf.c (FUNC): Define to
8303         __ufromfpxf.
8304         (ufromfpxf): Define as weak alias.
8305         * sysdeps/ieee754/ldbl-128/s_fromfpl.c (FUNC): Define to
8306         __fromfpl.
8307         (fromfpl): Define as weak alias.
8308         * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (FUNC): Define to
8309         __fromfpxl.
8310         (fromfpxl): Define as weak alias.
8311         * sysdeps/ieee754/ldbl-128/s_getpayloadl.c (getpayloadl): Rename
8312         to __getpayloadl and define as weak alias.
8313         * sysdeps/ieee754/ldbl-128/s_roundevenl.c (roundevenl): Rename to
8314         __roundevenl and define as weak alias.
8315         * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (FUNC): Define to
8316         __setpayloadl.
8317         (setpayloadl): Define as weak alias.
8318         * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (FUNC): Define to
8319         __setpayloadsigl.
8320         (setpayloadsigl): Define as weak alias.
8321         * sysdeps/ieee754/ldbl-128/s_totalorderl.c (totalorderl): Rename
8322         to __totalorderl and define as weak alias.
8323         * sysdeps/ieee754/ldbl-128/s_totalordermagl.c (totalordermagl):
8324         Rename to __totalordermagl and define as weak alias.
8325         * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (FUNC): Define to
8326         __ufromfpl.
8327         (ufromfpl): Define as weak alias.
8328         * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (FUNC): Define to
8329         __ufromfpxl.
8330         (ufromfpxl): Define as weak alias.
8331         * sysdeps/ieee754/ldbl-128ibm/s_fromfpl.c (FUNC): Define to
8332         __fromfpl.
8333         (fromfpl): Define as weak alias.
8334         * sysdeps/ieee754/ldbl-128ibm/s_fromfpxl.c (FUNC): Define to
8335         __fromfpxl.
8336         (fromfpxl): Define as weak alias.
8337         * sysdeps/ieee754/ldbl-128ibm/s_getpayloadl.c (getpayloadl):
8338         Rename to __getpayloadl and define as weak alias.
8339         * sysdeps/ieee754/ldbl-128ibm/s_roundevenl.c (roundevenl): Rename
8340         to __roundevenl and define as weak alias.  Call __roundeven
8341         instead of roundeven.
8342         * sysdeps/ieee754/ldbl-128ibm/s_setpayloadl.c (FUNC): Define to
8343         __setpayloadl.
8344         (setpayloadl): Define as weak alias.
8345         * sysdeps/ieee754/ldbl-128ibm/s_setpayloadsigl.c (FUNC): Define to
8346         __setpayloadsigl.
8347         (setpayloadsigl): Define as weak alias.
8348         * sysdeps/ieee754/ldbl-128ibm/s_totalorderl.c (totalorderl):
8349         Rename to __totalorderl and define as weak alias.
8350         * sysdeps/ieee754/ldbl-128ibm/s_totalordermagl.c (totalordermagl):
8351         Rename to __totalordermagl and define as weak alias.
8352         * sysdeps/ieee754/ldbl-128ibm/s_ufromfpl.c (FUNC): Define to
8353         __ufromfpl.
8354         (ufromfpl): Define as weak alias.
8355         * sysdeps/ieee754/ldbl-128ibm/s_ufromfpxl.c (FUNC): Define to
8356         __ufromfpxl.
8357         (ufromfpxl): Define as weak alias.
8358         * sysdeps/ieee754/ldbl-96/s_fromfpl.c (FUNC): Define to
8359         __fromfpl.
8360         (fromfpl): Define as weak alias.
8361         * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (FUNC): Define to
8362         __fromfpxl.
8363         (fromfpxl): Define as weak alias.
8364         * sysdeps/ieee754/ldbl-96/s_getpayloadl.c (getpayloadl): Rename to
8365         __getpayloadl and define as weak alias.
8366         * sysdeps/ieee754/ldbl-96/s_roundevenl.c (roundevenl): Rename to
8367         __roundevenl and define as weak alias.
8368         * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (FUNC): Define to
8369         __setpayloadl.
8370         (setpayloadl): Define as weak alias.
8371         * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c (FUNC): Define to
8372         __setpayloadsigl.
8373         (setpayloadsigl): Define as weak alias.
8374         * sysdeps/ieee754/ldbl-96/s_totalorderl.c (totalorderl): Rename to
8375         __totalorderl and define as weak alias.
8376         * sysdeps/ieee754/ldbl-96/s_totalordermagl.c (totalordermagl):
8377         Rename to __totalordermagl and define as weak alias.
8378         * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (FUNC): Define to
8379         __ufromfpl.
8380         (ufromfpl): Define as weak alias.
8381         * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (FUNC): Define to
8382         __ufromfpxl.
8383         (ufromfpxl): Define as weak alias.
8385 2017-09-14  Siddhesh Poyarekar  <siddhesh@sourceware.org>
8387         * benchtests/bench-string.h (realloc_bufs): New function.
8388         (test_init): Call it.
8389         * benchtests/bench-memset-large.c (do_test): Likewise.
8390         * benchtests/bench-memset.c (do_test): Likewise.
8392         * benchtests/bench-memset-large.c: Print output in JSON
8393         format.
8394         * benchtests/bench-memset.c: Likewise.
8396 2017-09-14  Mike FABIAN  <mfabian@redhat.com>
8398         [BZ #21084]
8399         * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Add IBM858 and ibm858.c.
8400         * iconvdata/Makefile: Add IBM858.
8401         * iconvdata/gconv-modules: Likewise.
8402         * iconvdata/tst-tables.sh: Likewise.
8403         * iconvdata/ibm858.c: New file.
8404         * localedata/charmaps/IBM858: Likewise.
8406 2017-09-14  Akhilesh Kumar  <akhilesh.k@samsung.com>
8408         [BZ #22023]
8409         * locales/niu_NZ (LC_TIME): copy "niu_NU".
8410         * locales/niu_NZ (LC_MESSAGES): copy "niu_NU".
8412 2017-09-14  Mike FABIAN  <mfabian@redhat.com>
8414         [BZ #22112]
8415         * localedata/locales/az_AZ(LC_TELEPHONE): Fix int_select
8416         and add tel_int_fmt.
8418 2017-09-14  Joseph Myers  <joseph@codesourcery.com>
8420         * sysdeps/generic/libm-alias-float128.h: New file.
8421         * sysdeps/generic/math-type-macros-float128.h: Include
8422         <libm-alias-float128.h>.
8423         [!declare_mgen_alias] (declare_mgen_alias): Define macro.
8425 2017-09-13  Joseph Myers  <joseph@codesourcery.com>
8427         * sysdeps/generic/libm-alias-ldouble.h: New file.
8428         * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Likewise.
8429         * sysdeps/ieee754/ldbl-opt/math-type-macros-ldouble.h: Remove.
8430         * sysdeps/generic/math-type-macros-ldouble.h: Include
8431         <libm-alias-ldouble.h>.
8432         [!declare_mgen_alias] (declare_mgen_alias): Define to use
8433         libm_alias_ldouble.
8435 2017-09-13  Szabolcs Nagy  <szabolcs.nagy@arm.com>
8437         * sysdeps/ieee754/dbl-64/w_exp_compat.c: Move to...
8438         * math/w_exp_compat.c: ... here.
8439         * sysdeps/ieee754/flt-32/w_expf_compat.c: Move to...
8440         * math/w_expf_compat.c: ... here.
8441         * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Move to...
8442         * math/w_expl_compat.c: ... here.
8443         * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Remove.
8444         * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Remove.
8445         * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Use the new path.
8446         * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
8448 2017-09-13  Joseph Myers  <joseph@codesourcery.com>
8450         * math/w_scalbln_template.c (strong_alias): Do not undefine and
8451         redefine.
8452         * sysdeps/ieee754/ldbl-opt/s_ldexp.c (declare_mgen_alias): Remove
8453         macro.
8454         (ldexpl): Only define as compat symbol for libc, not libm.
8455         (scalbnl): Define as compat symbol for libc here.
8456         * sysdeps/ieee754/ldbl-opt/s_ldexpl.c (declare_mgen_alias): Only
8457         define for [IS_IN (libc)].
8458         (__ldexpl_2): Remove alias.
8459         (ldexpl): Only define with long_double_symbol if [IS_IN (libc)].
8460         (scalbnl): Likewise.  Use __wrap_scalbnl not __ldexpl_2 as base
8461         name in long_double_symbol call.
8462         * sysdeps/ieee754/ldbl-opt/s_log1p.c: Remove file.
8463         * sysdeps/ieee754/ldbl-opt/s_scalbln.c: Likewise.
8464         * sysdeps/ieee754/ldbl-opt/s_scalbn.c: Likewise.
8465         * sysdeps/ieee754/ldbl-opt/w_log1p.c: Likewise.
8466         * sysdeps/ieee754/ldbl-opt/w_scalbln.c (declare_mgen_alias):
8467         Remove macro.
8468         [IS_IN (libc) && LONG_DOUBLE_COMPAT (libc, GLIBC_2_1)] (scalblnl):
8469         Define as compat symbol.
8471 2017-09-13  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
8473         * sysdeps/unix/sysv/linux/s390/s390-32/oldglob.c: New file.
8474         * sysdeps/unix/sysv/linux/alpha/Makefile
8475         [$(subdir) = csu] (sysdep_routines): Remove rule.
8477 2017-09-13  Joseph Myers  <joseph@codesourcery.com>
8479         * sysdeps/generic/libm-alias-double.h: New file.
8480         * sysdeps/ieee754/ldbl-opt/libm-alias-double.h: Likewise.
8481         * sysdeps/generic/math-type-macros-double.h: Include
8482         <libm-alias-double.h>.
8483         [declare_mgen_alias] (declare_mgen_alias): Define to use
8484         libm_alias_double.
8485         * sysdeps/generic/math-type-macros.h [!M_LIBM_NEED_COMPAT]
8486         (M_LIBM_NEED_COMPAT): Remove macro.
8487         [!M_LIBM_NEED_COMPAT] (declare_mgen_libm_compat): Likewise.
8488         * sysdeps/ieee754/ldbl-opt/math-type-macros-double.h: Remove.
8489         * math/cabs_template.c [M_LIBM_NEED_COMPAT]: Remove conditional
8490         code.
8491         * math/carg_template.c [M_LIBM_NEED_COMPAT]: Likewise.
8492         * math/cimag_template.c [M_LIBM_NEED_COMPAT]: Likewise.
8493         * math/conj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
8494         * math/creal_template.c [M_LIBM_NEED_COMPAT]: Likewise.
8495         * math/s_cacos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
8496         * math/s_cacosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
8497         * math/s_casin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
8498         * math/s_casinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
8499         * math/s_catan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
8500         * math/s_catanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
8501         * math/s_ccos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
8502         * math/s_ccosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
8503         * math/s_cexp_template.c [M_LIBM_NEED_COMPAT]: Likewise.
8504         * math/s_clog10_template.c [M_LIBM_NEED_COMPAT]: Likewise.
8505         * math/s_clog_template.c [M_LIBM_NEED_COMPAT]: Likewise.
8506         * math/s_cpow_template.c [M_LIBM_NEED_COMPAT]: Likewise.
8507         * math/s_cproj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
8508         * math/s_csin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
8509         * math/s_csinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
8510         * math/s_csqrt_template.c [M_LIBM_NEED_COMPAT]: Likewise.
8511         * math/s_ctan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
8512         * math/s_ctanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
8513         * math/s_fdim_template.c [M_LIBM_NEED_COMPAT]: Likewise.
8514         * math/s_fmax_template.c [M_LIBM_NEED_COMPAT]: Likewise.
8515         * math/s_fmin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
8516         * math/s_nan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
8517         * math/w_ilogb_template.c [M_LIBM_NEED_COMPAT]: Likewise.
8518         * sysdeps/ieee754/ldbl-opt/s_clog10.c: New file.
8519         * sysdeps/ieee754/ldbl-opt/s_ldexp.c (M_LIBM_NEED_COMPAT): Remove
8520         macro.
8521         (declare_mgen_alias): New macro.
8522         * sysdeps/ieee754/ldbl-opt/w_log1p.c: New file.
8523         * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Likewise.
8524         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.c
8525         (M_LIBM_NEED_COMPAT): Remove macro.
8526         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c
8527         [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h> and
8528         <first-versions.h>.
8529         [HAVE_AS_VIS3_SUPPORT && LONG_DOUBLE_COMPAT (libm,
8530         FIRST_VERSION_libm_fdiml)]: Define fdiml as compat symbol.
8532 2017-09-12  Joseph Myers  <joseph@codesourcery.com>
8534         * sysdeps/generic/math-type-macros.h [!declare_mgen_alias_2]
8535         (declare_mgen_alias_2): Remove.
8536         * sysdeps/generic/math-type-macros-double.h
8537         [NO_LONG_DOUBLE && !declare_mgen_alias_2] (declare_mgen_alias_2):
8538         Likewise.
8539         * math/s_ldexp_template.c (M_SUF (__wrap_scalbn)): Define strong
8540         alias.
8541         (ldexp): Define with declare_mgen_alias.
8542         (scalbn): Likewise.
8544 2017-09-12  Steve Ellcey  <sellcey@cavium.com>
8546         * grp/initgroups.c: Include config.h.
8547         (DEFAULT_CONFIG): New macro.
8548         (internal_getgrouplist): Use DEFAULT_CONFIG.
8549         * nscd/initgrcache.c (addinitgroupsX): Likewise.
8550         * nss/nsswitch.c (__nss_disable_nscd): Likewise.
8551         (DEFAULT_DEFCONFIG): New macro.
8552         (__nss_database_lookup): Use DEFAULT_DEFCONFIG.
8553         * nss/grp-lookup.c: Include config.h
8554         (DEFAULT_CONFIG): Set definition based on LINK_OBSOLETE_NSL.
8555         * nss/pwd-lookup.c (DEFAULT_CONFIG): Likewise.
8556         * nss/spwd-lookup.c (DEFAULT_CONFIG): Likewise.
8557         * manual/nss.texi: Update default values section.
8559 2017-09-12  H.J. Lu  <hongjiu.lu@intel.com>
8561         [BZ #21967]
8562         * sysdeps/x86/cpu-features.h (bit_arch_MathVec_Prefer_No_AVX512):
8563         New.
8564         (index_arch_MathVec_Prefer_No_AVX512): Likewise.
8565         * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
8566         Handle MathVec_Prefer_No_AVX512.
8567         * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h
8568         (IFUNC_SELECTOR): Return AVX2 version if MathVec_Prefer_No_AVX512
8569         is set.
8571 2017-09-12  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8573         * posix/sched_primax.c (__sched_get_priority_max): Add
8574         libc_hidden_def.
8575         * posix/sched_primin.c (__sched_get_priority_min): Likewise.
8576         * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
8577         * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
8578         * sysdeps/mach/hurd/mprotect.c (__mprotect): Likewise.
8579         * sysdeps/mach/hurd/munmap.c (__munmap): Likewise.
8580         * sysdeps/mach/hurd/dl-sysdep.c (__GI___getpid,
8581         __GI___strtoul_internal, __GI_____strtoul_internal, __GI___chk_fail,
8582         __GI___fortify_fail, __GI___assert_fail, __GI___assert_perror_fail):
8583         Add aliases.
8585 2017-09-11  Joseph Myers  <joseph@codesourcery.com>
8587         * sysdeps/generic/libm-alias-float.h: New file.
8588         * sysdeps/generic/math-type-macros-float.h: Include
8589         <libm-alias-float.h>.
8590         [!declare_mgen_alias] (declare_mgen_alias): Define macro.
8592 2017-09-11  H.J. Lu  <hongjiu.lu@intel.com>
8594         [BZ #22093]
8595         * sysdeps/x86/cpu-features.c (init_cpu_features): Initialize
8596         GLRO(dl_hwcap) to HWCAP_X86_64 for x86-64.
8597         * sysdeps/x86/dl-hwcap.h (HWCAP_COUNT): Updated.
8598         (HWCAP_IMPORTANT): Likewise.
8599         (HWCAP_X86_64): New enum.
8600         (HWCAP_X86_AVX512_1): Updated.
8601         * sysdeps/x86/dl-procinfo.c (_dl_x86_hwcap_flags): Add "x86_64".
8602         * sysdeps/x86_64/Makefile (tests): Add tst-x86_64-1.
8603         (modules-names): Add x86_64/tst-x86_64mod-1.
8604         (LDFLAGS-tst-x86_64mod-1.so): New.
8605         ($(objpfx)tst-x86_64-1): Likewise.
8606         ($(objpfx)x86_64/tst-x86_64mod-1.os): Likewise.
8607         (tst-x86_64-1-clean): Likewise.
8608         * sysdeps/x86_64/tst-x86_64-1.c: New file.
8609         * sysdeps/x86_64/tst-x86_64mod-1.c: Likewise.
8611 2017-09-11  Siddhesh Poyarekar  <siddhesh@sourceware.org>
8613         * po/sv.po: Update translations.
8614         * po/fr.po: Likewise.
8616 2017-09-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8618         * sunrpc/tst-udp-timeout.c (test_udp_server): Increase timeout to 2.5
8619         seconds.
8620         * sunrpc/tst-udp-nonblocking.c (do_test): Increase timeout to 0.75
8621         seconds.
8622         * elf/rtld-Rules: Fix $(error) use.
8624 2017-09-09  Mike FABIAN  <mfabian@redhat.com>
8626         [BZ #14925]
8627         * libio/tst-widetext.input: Change “Bengali” to “Bangla”.
8628         * locale/iso-639.def: Change “Bengali” to “Bangla”.
8629         * localedata/locales/bn_BD: “Bengali” was still used in some
8630         comments. Change it to “Bangla”.
8632 2017-09-08  Markus Trippelsdorf  <markus@trippelsdorf.de>
8634         * sysdeps/x86_64/fpu/libm-test-ulps: Update for AMD Ryzen.
8636 2017-09-08  Steve Ellcey  <sellcey@cavium.com>
8638         * manual/tunables.texi (glibc.tune.cpu): Add thunderx2t99 and
8639         thunderx2t99p1 to list of cpu names.
8640         * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
8641         Add thunderx2t99 and thunderx2t99p1 entries to cpu_list.
8643 2017-09-08  Steve Ellcey  <sellcey@cavium.com>
8645         * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (get_midr_from_mcpu):
8646         Use strcmp instead of tunable_is_name.
8648 2017-09-08  Joseph Myers  <joseph@codesourcery.com>
8650         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
8651         (F_GET_RW_HINT): New macro.
8652         [__USE_GNU] (F_SET_RW_HINT): Likewise.
8653         [__USE_GNU] (F_GET_FILE_RW_HINT): Likewise.
8654         [__USE_GNU] (F_SET_FILE_RW_HINT): Likewise.
8655         [__USE_GNU] (RWF_WRITE_LIFE_NOT_SET): Likewise.
8656         [__USE_GNU] (RWH_WRITE_LIFE_NONE): Likewise.
8657         [__USE_GNU] (RWH_WRITE_LIFE_SHORT): Likewise.
8658         [__USE_GNU] (RWH_WRITE_LIFE_MEDIUM): Likewise.
8659         [__USE_GNU] (RWH_WRITE_LIFE_LONG): Likewise.
8660         [__USE_GNU] (RWH_WRITE_LIFE_EXTREME): Likewise.
8662         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
8663         (F_ADD_SEALS): New macro.
8664         [__USE_GNU] (F_GET_SEALS): Likewise.
8665         [__USE_GNU] (F_SEAL_SEAL): Likewise.
8666         [__USE_GNU] (F_SEAL_SHRINK): Likewise.
8667         [__USE_GNU] (F_SEAL_GROW): Likewise.
8668         [__USE_GNU] (F_SEAL_WRITE): Likewise.
8670 2017-09-08  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
8672         * posix/glob_internal.h (GLOBPAT_NONE, GLOBPAT_SPECIAL)
8673         (GLOBPAT_BACKSLASH, GLOBPAT_BRACKET): New constants.
8674         * posix/glob_internal.h (__glob_pattern_type):
8675         * posix/glob.c (glob):
8676         * posix/glob_pattern_p.c (__glob_pattern_p):
8677         Use them.
8679         * sysdeps/unix/sysv/linux/arm/glob64.c: Remove file.
8680         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
8681         * sysdeps/unix/sysv/linux/m68k/glob64.c: Likewise.
8682         * sysdeps/unix/sysv/linux/mips/mips64/n64/glob64.c: Likewise.
8683         * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
8684         * sysdeps/unix/sysv/linux/powerpc/powerpc32/glob64.c: Likewise.
8685         * sysdeps/unix/sysv/linux/sparc/sparc32/glob64.c: Likewise.
8686         * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: Likewise.
8687         * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
8688         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
8689         * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
8690         * sysdeps/wordsize-64/glob.c: Likewise.
8691         * sysdeps/wordsize-64/glob64.c: Likewise.
8692         * sysdeps/wordsize-64/globfree.c: Likewise.
8693         * sysdeps/wordsize-64/globfree64.c: Likewise.
8694         * sysdeps/unix/sysv/linux/glob.c: New file.
8695         * sysdeps/unix/sysv/linux/glob64.c: Likewise.
8696         * sysdeps/unix/sysv/linux/globfree.c: Likewise.
8697         * sysdeps/unix/sysv/linux/globfree64.c: Likewise.
8698         * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
8699         * sysdeps/unix/sysv/linux/oldglob.c [SHLIB_COMPAT]: Also
8700         adds !GLOB_NO_OLD_VERSION as an extra condition.
8701         * sysdeps/unix/sysv/linux/i386/alphasort64.c: Include olddirent.h
8702         using relative path instead of absolute one.
8703         * sysdeps/unix/sysv/linux/i386/getdents64.c: Likewise.
8704         * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
8705         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
8706         * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
8707         * sysdeps/unix/sysv/linux/i386/olddirent.h: Move to ...
8708         * sysdeps/unix/sysv/linux//olddirent.h: ... here.
8710         [BZ #1062]
8711         * posix/glob.c (GET_LOGIN_NAME_MAX): Remove.
8712         (glob): Use the same scratch buffer for both getlogin_r and
8713         getpwnam_r.  Don’t require preallocation of the login name.  This
8714         simplifies storage allocation, and corrects the handling of
8715         long login names.
8717         [BZ #1062]
8718         * posix/glob.c (glob): Port recent patches to platforms
8719         lacking getpwnam_r.
8720         (glob): Fix longstanding misuse of errno after getpwnam_r, which
8721         returns an error number rather than setting errno.
8723         * include/scratch_buffer.h (scratch_buffer): Use a C99 align method
8724         instead of GCC extension.
8725         * malloc/scratch_buffer_grow.c [!_LIBC]: Include libc-config.h.
8726         * malloc/scratch_buffer_grow_preserve.c [!_LIBC]: Likewise.
8727         * malloc/scratch_buffer_set_array_size.c [!_LIBC]: Likewise.
8729         [BZ #866]
8730         [BZ #1062]
8731         * posix/Makefile (tests): Remove bug-glob1 and tst-glob_symlinks.
8732         * posix/bug-glob1.c: Remove file.
8733         * posix/tst-glob_symlinks.c: New file.
8734         * posix/glob.c (__lstat64): New macro.
8735         (is_dir): New function.
8736         (glob, glob_in_dir): Match symlinks even if they are dangling.
8737         (link_stat, link_exists_p): Remove.  All uses removed.
8739         [BZ #1062]
8740         [BZ #19971]
8741         * posix/glob.c (struct readdir_result): Remove skip_entry member.
8742         (readdir_result_skip_entry, D_INO_TO_RESULT): Remove.
8743         All uses removed.
8745         [BZ #1062]
8746         CVE-2017-15671
8747         * posix/Makefile (routines): Add globfree, globfree64, and
8748         glob_pattern_p.
8749         * posix/flexmember.h: New file.
8750         * posix/glob_internal.h: Likewise.
8751         * posix/glob_pattern_p.c: Likewise.
8752         * posix/globfree.c: Likewise.
8753         * posix/globfree64.c: Likewise.
8754         * sysdeps/gnu/globfree64.c: Likewise.
8755         * sysdeps/unix/sysv/linux/alpha/globfree.c: Likewise.
8756         * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
8757         * sysdeps/unix/sysv/linux/oldglob.c: Likewise.
8758         * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
8759         * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
8760         * sysdeps/wordsize-64/globfree.c: Likewise.
8761         * sysdeps/wordsize-64/globfree64.c: Likewise.
8762         * posix/glob.c (HAVE_CONFIG_H): Use !_LIBC instead.
8763         [NDEBUG): Remove comments.
8764         (GLOB_ONLY_P, _AMIGA, VMS): Remove define.
8765         (dirent_type): New type.  Use uint_fast8_t not
8766         uint8_t, as C99 does not require uint8_t.
8767         (DT_UNKNOWN, DT_DIR, DT_LNK): New macros.
8768         (struct readdir_result): Use dirent_type.  Do not define skip_entry
8769         unless it is needed; this saves a byte on platforms lacking d_ino.
8770         (readdir_result_type, readdir_result_skip_entry):
8771         New functions, replacing ...
8772         (readdir_result_might_be_symlink, readdir_result_might_be_dir):
8773          these functions, which were removed.  This makes the callers
8774         easier to read.  All callers changed.
8775         (D_INO_TO_RESULT): Now empty if there is no d_ino.
8776         (size_add_wrapv, glob_use_alloca): New static functions.
8777         (glob, glob_in_dir): Check for size_t overflow in several places,
8778         and fix some size_t checks that were not quite right.
8779         Remove old code using SHELL since Bash no longer
8780         uses this.
8781         (glob, prefix_array): Separate MS code better.
8782         (glob_in_dir): Remove old Amiga and VMS code.
8783         (globfree, __glob_pattern_type, __glob_pattern_p): Move to
8784         separate files.
8785         (glob_in_dir): Do not rely on undefined behavior in accessing
8786         struct members beyond their bounds.  Use a flexible array member
8787         instead
8788         (link_stat): Rename from link_exists2_p and return -1/0 instead of
8789         0/1.  Caller changed.
8790         (glob): Fix memory leaks.
8791         * posix/glob64 (globfree64): Move to separate file.
8792         * sysdeps/gnu/glob64.c (NO_GLOB_PATTERN_P): Remove define.
8793         (globfree64): Remove hidden alias.
8794         * sysdeps/unix/sysv/linux/Makefile (sysdeps_routines): Add
8795         oldglob.
8796         * sysdeps/unix/sysv/linux/alpha/glob.c (__new_globfree): Move to
8797         separate file.
8798         * sysdeps/unix/sysv/linux/i386/glob64.c (NO_GLOB_PATTERN_P): Remove
8799         define.
8800         Move compat code to separate file.
8801         * sysdeps/wordsize-64/glob.c (globfree): Move definitions to
8802         separate file.
8804 2017-09-07  H.J. Lu  <hongjiu.lu@intel.com>
8806         * resolv/tst-resolv-qtypes.c (domain): Changed to
8807         "const char domain[] =".
8809 2017-09-07  Joseph Myers  <joseph@codesourcery.com>
8811         * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
8812         version to 3.1.6.
8814         * sysdeps/gnu/netinet/tcp.h (TCP_ULP): New macro.
8815         (TCP_MD5SIG_EXT): Likewise.
8816         (TCP_MD5SIG_FLAG_PREFIX): Likewise.
8817         (struct tcp_md5sig): Replace __tcpm_pad1 by tcpm_flags and
8818         tcpm_prefixlen.  Rename __tcpm_pad2 to __tcpm_pad.
8820         * sysdeps/unix/sysv/linux/bits/socket.h (SOL_TLS): New macro.
8822 2017-09-07  Mike FABIAN  <mfabian@redhat.com>
8824         * localedata/locales/om_ET (LC_TIME): use ASCII for better readability.
8826 2017-09-07  Akhilesh Kumar  <akhilesh.k@samsung.com>
8828         [BZ #22100]
8829         * localedata/locales/om_KE (LC_TIME): copy "om_ET".
8831 2017-09-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8833         * hurd/get-host.c (_hurd_get_host_config): Also check that more == 0
8834         before assuming that the file is empty.  Avoid testing buffer content
8835         when nread == 0.
8837 2017-09-06  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
8839         [BZ #18858]
8840         * sysdeps/i386/i686/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
8841         Remove define.
8842         * sysdeps/x86_64/multiarch/stpcpy.c (_HAVE_STRING_ARCH_stpcpy):
8843         Likewise.
8844         * sysdeps/x86_64/multiarch/strcspn.c (_HAVE_STRING_ARCH_strcspn):
8845         Likewise.
8846         * sysdeps/x86_64/multiarch/strncat.c (_HAVE_STRING_ARCH_strncat):
8847         Likewise.
8848         * sysdeps/x86_64/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
8849         Likewise.
8850         * sysdeps/x86_64/multiarch/strpbrk.c (_HAVE_STRING_ARCH_strpbrk):
8851         Likewise.
8852         * sysdeps/x86_64/multiarch/strspn.c (_HAVE_STRING_ARCH_strspn):
8853         Likewise.
8855 2017-09-06  Florian Weimer  <fweimer@redhat.com>
8857         * malloc/dynarray_emplace_enlarge.c
8858         (__libc_dynarray_emplace_enlarge): Add missing else.
8860 2017-09-06  Florian Weimer  <fweimer@redhat.com>
8862         [BZ #22096]
8863         * resolv/resolv_conf.c (__resolv_conf_attach): Do not free conf in
8864         case of failure to obtain the global conf object.
8866 2017-09-06  Florian Weimer  <fweimer@redhat.com>
8868         [BZ #22095]
8869         * resolv/res_init.c (res_vinit_1): Avoid memory leak in case of
8870         dynarray allocation failure.
8872 2017-09-06  Florian Weimer  <fweimer@redhat.com>
8874         Remove dead PTR IPv4-to-IPv6 mapping code from nss_dns.
8875         * resolv/nss_dns/dns-host.c (getanswer_r): Remove dead code.
8876         * resolv/tst-res_use_inet6.c (response_ptr_v4, response_ptr_v6):
8877         New functions.
8878         (response): Call them.  Add 'p', '6' flag processing.
8879         (test_reverse): New function.
8880         (test_get2_any): Call it.
8881         (test_no_inet6): Add 'p' test.
8882         (test_inet6): Likewise.
8884 2017-09-06  Florian Weimer  <fweimer@redhat.com>
8886         Enhance tst-res_use_inet6 to test IPv4-to-IPv6 address mapping.
8887         * resolv/tst-res_use_inet6.c (response): Process flags embedded in
8888         the QNAME.
8889         (test_gai): Adjust query names.  Add additional tests.
8890         (test_get2_any, test_get2_no_inet6, test_get2_inet6): Split from
8891         test_get2.  Adjust query names.  Add additional tests.
8892         (test_no_inet6): New function, extracted from threadfunc.
8893         (threadfunc): Call test_get2_any, test_get2_inet6, test_no_inet6.
8894         Add additional tests.
8896 2017-09-06  Mike FABIAN  <mfabian@redhat.com>
8898         [BZ #22070]
8899         * localedata/unicode-gen/utf8_gen.py: Set the width for
8900         characters with Prepended_Concatenation_Mark property to 1
8901         * localedata/charmaps/UTF-8: Updated using the improved script.
8903 2017-09-06  Mike FABIAN  <mfabian@redhat.com>
8905         [BZ #21750]
8906         * localedata/unicode-gen/utf8_gen.py: Improve the script to
8907         use the range notation for all ranges of neighbouring characters
8908         with the same width.
8910 2017-09-05  Joseph Myers  <joseph@codesourcery.com>
8912         * sysdeps/generic/math-type-macros-double.h: Include
8913         <math-svid-compat.h>.
8914         (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
8915         * sysdeps/generic/math-type-macros-float.h: Include
8916         <math-svid-compat.h>.
8917         (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
8918         * sysdeps/generic/math-type-macros-ldouble.h: Include
8919         <math-svid-compat.h>.
8920         (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
8921         * math/lgamma-compat.h (BUILD_LGAMMA): Include LIBM_SVID_COMPAT
8922         condition.
8923         * math/w_acos_compat.c: Condition contents on [LIBM_SVID_COMPAT].
8924         * math/w_acosf_compat.c: Likewise.
8925         * math/w_acosh_compat.c: Likewise.
8926         * math/w_acoshf_compat.c: Likewise.
8927         * math/w_acoshl_compat.c: Likewise.
8928         * math/w_acosl_compat.c: Likewise.
8929         * math/w_asin_compat.c: Likewise.
8930         * math/w_asinf_compat.c: Likewise.
8931         * math/w_asinl_compat.c: Likewise.
8932         * math/w_atan2_compat.c: Likewise.
8933         * math/w_atan2f_compat.c: Likewise.
8934         * math/w_atan2l_compat.c: Likewise.
8935         * math/w_atanh_compat.c: Likewise.
8936         * math/w_atanhf_compat.c: Likewise.
8937         * math/w_atanhl_compat.c: Likewise.
8938         * math/w_cosh_compat.c: Likewise.
8939         * math/w_coshf_compat.c: Likewise.
8940         * math/w_coshl_compat.c: Likewise.
8941         * math/w_exp10_compat.c: Likewise.
8942         * math/w_exp10f_compat.c: Likewise.
8943         * math/w_exp10l_compat.c: Likewise.
8944         * math/w_exp2_compat.c: Likewise.
8945         * math/w_exp2f_compat.c: Likewise.
8946         * math/w_exp2l_compat.c: Likewise.
8947         * math/w_fmod_compat.c: Likewise.
8948         * math/w_fmodf_compat.c: Likewise.
8949         * math/w_fmodl_compat.c: Likewise.
8950         * math/w_hypot_compat.c: Likewise.
8951         * math/w_hypotf_compat.c: Likewise.
8952         * math/w_hypotl_compat.c: Likewise.
8953         * math/w_j0_compat.c: Likewise.
8954         * math/w_j0f_compat.c: Likewise.
8955         * math/w_j0l_compat.c: Likewise.
8956         * math/w_j1_compat.c: Likewise.
8957         * math/w_j1f_compat.c: Likewise.
8958         * math/w_j1l_compat.c: Likewise.
8959         * math/w_jn_compat.c: Likewise.
8960         * math/w_jnf_compat.c: Likewise.
8961         * math/w_jnl_compat.c: Likewise.
8962         * math/w_lgamma_r_compat.c: Likewise.
8963         * math/w_lgammaf_r_compat.c: Likewise.
8964         * math/w_lgammal_r_compat.c: Likewise.
8965         * math/w_log10_compat.c: Likewise.
8966         * math/w_log10f_compat.c: Likewise.
8967         * math/w_log10l_compat.c: Likewise.
8968         * math/w_log2_compat.c: Likewise.
8969         * math/w_log2f_compat.c: Likewise.
8970         * math/w_log2l_compat.c: Likewise.
8971         * math/w_log_compat.c: Likewise.
8972         * math/w_logf_compat.c: Likewise.
8973         * math/w_logl_compat.c: Likewise.
8974         * math/w_pow_compat.c: Likewise.
8975         * math/w_powf_compat.c: Likewise.
8976         * math/w_powl_compat.c: Likewise.
8977         * math/w_remainder_compat.c: Likewise.
8978         * math/w_remainderf_compat.c: Likewise.
8979         * math/w_remainderl_compat.c: Likewise.
8980         * math/w_sinh_compat.c: Likewise.
8981         * math/w_sinhf_compat.c: Likewise.
8982         * math/w_sinhl_compat.c: Likewise.
8983         * math/w_sqrt_compat.c: Likewise.
8984         * math/w_sqrtf_compat.c: Likewise.
8985         * math/w_sqrtl_compat.c: Likewise.
8986         * math/w_tgamma_compat.c: Likewise.
8987         * math/w_tgammaf_compat.c: Likewise.
8988         * math/w_tgammal_compat.c: Likewise.
8989         * math/w_scalb_compat.c (sysv_scalb): Condition definition on
8990         [LIBM_SVID_COMPAT].
8991         (__scalb): Condition call to sysv_scalb on [LIBM_SVID_COMPAT].
8992         * math/w_scalbf_compat.c (sysv_scalbf): Condition definition on
8993         [LIBM_SVID_COMPAT].
8994         (__scalbf): Condition call to sysv_scalbf on [LIBM_SVID_COMPAT].
8995         * math/w_scalbl_compat.c (sysv_scalbl): Condition definition on
8996         [LIBM_SVID_COMPAT].
8997         (__scalbl): Condition call to sysv_scalbl on [LIBM_SVID_COMPAT].
8998         * sysdeps/i386/fpu/w_sqrt.c: New file.
8999         * sysdeps/ia64/fpu/w_acos.c: Likewise.
9000         * sysdeps/ia64/fpu/w_acosf.c: Likewise.
9001         * sysdeps/ia64/fpu/w_acosh.c: Likewise.
9002         * sysdeps/ia64/fpu/w_acoshf.c: Likewise.
9003         * sysdeps/ia64/fpu/w_acoshl.c: Likewise.
9004         * sysdeps/ia64/fpu/w_acosl.c: Likewise.
9005         * sysdeps/ia64/fpu/w_asin.c: Likewise.
9006         * sysdeps/ia64/fpu/w_asinf.c: Likewise.
9007         * sysdeps/ia64/fpu/w_asinl.c: Likewise.
9008         * sysdeps/ia64/fpu/w_atan2.c: Likewise.
9009         * sysdeps/ia64/fpu/w_atan2f.c: Likewise.
9010         * sysdeps/ia64/fpu/w_atan2l.c: Likewise.
9011         * sysdeps/ia64/fpu/w_atanh.c: Likewise.
9012         * sysdeps/ia64/fpu/w_atanhf.c: Likewise.
9013         * sysdeps/ia64/fpu/w_atanhl.c: Likewise.
9014         * sysdeps/ia64/fpu/w_cosh.c: Likewise.
9015         * sysdeps/ia64/fpu/w_coshf.c: Likewise.
9016         * sysdeps/ia64/fpu/w_coshl.c: Likewise.
9017         * sysdeps/ia64/fpu/w_exp.c: Likewise.
9018         * sysdeps/ia64/fpu/w_exp10.c: Likewise.
9019         * sysdeps/ia64/fpu/w_exp10f.c: Likewise.
9020         * sysdeps/ia64/fpu/w_exp10l.c: Likewise.
9021         * sysdeps/ia64/fpu/w_exp2.c: Likewise.
9022         * sysdeps/ia64/fpu/w_exp2f.c: Likewise.
9023         * sysdeps/ia64/fpu/w_exp2l.c: Likewise.
9024         * sysdeps/ia64/fpu/w_expf.c: Likewise.
9025         * sysdeps/ia64/fpu/w_expl.c: Likewise.
9026         * sysdeps/ia64/fpu/w_fmod.c: Likewise.
9027         * sysdeps/ia64/fpu/w_fmodf.c: Likewise.
9028         * sysdeps/ia64/fpu/w_fmodl.c: Likewise.
9029         * sysdeps/ia64/fpu/w_hypot.c: Likewise.
9030         * sysdeps/ia64/fpu/w_hypotf.c: Likewise.
9031         * sysdeps/ia64/fpu/w_hypotl.c: Likewise.
9032         * sysdeps/ia64/fpu/w_lgamma_r.c: Likewise.
9033         * sysdeps/ia64/fpu/w_lgammaf_r.c: Likewise.
9034         * sysdeps/ia64/fpu/w_lgammal_r.c: Likewise.
9035         * sysdeps/ia64/fpu/w_log.c: Likewise.
9036         * sysdeps/ia64/fpu/w_log10.c: Likewise.
9037         * sysdeps/ia64/fpu/w_log10f.c: Likewise.
9038         * sysdeps/ia64/fpu/w_log10l.c: Likewise.
9039         * sysdeps/ia64/fpu/w_log2.c: Likewise.
9040         * sysdeps/ia64/fpu/w_log2f.c: Likewise.
9041         * sysdeps/ia64/fpu/w_log2l.c: Likewise.
9042         * sysdeps/ia64/fpu/w_logf.c: Likewise.
9043         * sysdeps/ia64/fpu/w_logl.c: Likewise.
9044         * sysdeps/ia64/fpu/w_pow.c: Likewise.
9045         * sysdeps/ia64/fpu/w_powf.c: Likewise.
9046         * sysdeps/ia64/fpu/w_powl.c: Likewise.
9047         * sysdeps/ia64/fpu/w_remainder.c: Likewise.
9048         * sysdeps/ia64/fpu/w_remainderf.c: Likewise.
9049         * sysdeps/ia64/fpu/w_remainderl.c: Likewise.
9050         * sysdeps/ia64/fpu/w_sinh.c: Likewise.
9051         * sysdeps/ia64/fpu/w_sinhf.c: Likewise.
9052         * sysdeps/ia64/fpu/w_sinhl.c: Likewise.
9053         * sysdeps/ia64/fpu/w_sqrt.c: Likewise.
9054         * sysdeps/ia64/fpu/w_sqrtf.c: Likewise.
9055         * sysdeps/ia64/fpu/w_sqrtl.c: Likewise.
9056         * sysdeps/ia64/fpu/w_tgamma.c: Likewise.
9057         * sysdeps/ia64/fpu/w_tgammaf.c: Likewise.
9058         * sysdeps/ia64/fpu/w_tgammal.c: Likewise.
9059         * sysdeps/ieee754/dbl-64/w_exp_compat.c: Condition contents on
9060         [LIBM_SVID_COMPAT].
9061         * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
9062         * sysdeps/ieee754/k_standard.c: Likewise.
9063         * sysdeps/ieee754/k_standardf.c: Likewise.
9064         * sysdeps/ieee754/k_standardl.c: Likewise.
9065         * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
9066         * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
9067         * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
9068         * sysdeps/ieee754/ldbl-64-128/w_expl_compat.c: Condition
9069         long_double_symbol call on [LIBM_SVID_COMPAT].
9070         * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
9071         * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
9072         * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
9073         * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
9074         * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
9075         * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
9076         * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
9077         * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
9078         * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
9079         * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
9080         * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
9081         * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
9082         * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
9083         * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
9084         * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
9085         * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
9086         * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c: Likewise.
9087         * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
9088         * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
9089         * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
9090         * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c: Condition
9091         long_double_symbol and compat_symbol calls on [LIBM_SVID_COMPAT].
9093 2017-09-05  Steve Ellcey  <sellcey@cavium.com>
9095         * include/shlib-compat.h (TEST_COMPAT): New Macro.
9096         * malloc/tst-mallocstate.c: Convert from test-skeleton
9097         to test-driver.  Ifdef code using TEST_COMPAT macro.
9098         * math/test-matherr-2.c: Ifdef test using TEST_COMPAT macro.
9099         * math/test-matherr.c: Likewise.
9101 2017-09-05  Joseph Myers  <joseph@codesourcery.com>
9103         [BZ #22086]
9104         * debug/pcprofiledump.c (main): Use byte-swapped mask when
9105         comparing word with byte-swapped constant.
9107 2017-09-05  Chris Leonard  <cjlhomeaddress@gmail.com>
9109         [BZ #20498]
9110         * locale/iso-639.def: add Miskito.
9111         * localedata/SUPPORTED: Add miq_NI/UTF-8.
9112         * localedata/locales/miq_NI: New file.
9114 2017-09-04  H.J. Lu  <hongjiu.lu@intel.com>
9116         [BZ #18822]
9117         * include/sys/stat.h (__chmod): Add libc_hidden_proto.
9118         (__mkdir): Likewise.
9119         * io/chmod.c (__chmod): Add libc_hidden_def.
9120         * io/mkdir.c (__mkdir): Likewise.
9121         * sysdeps/mach/hurd/chmod.c (__chmod): Likewise.
9122         * sysdeps/mach/hurd/mkdir.c (__mkdir): Likewise.
9123         * sysdeps/unix/sysv/linux/generic/chmod.c (__chmod): Likewise.
9124         * sysdeps/unix/sysv/linux/generic/mkdir.c (__mkdir): Likewise.
9126 2017-09-04  Joseph Myers  <joseph@codesourcery.com>
9128         * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
9129         version to 4.13.
9131         [BZ #22082]
9132         * math/bits/math-finite.h (exp10): Redirect if [__GLIBC_USE
9133         (IEC_60559_FUNCS_EXT)], not [__USE_GNU].
9135 2017-09-04  Florian Weimer  <fweimer@redhat.com>
9137         * math/math.h: Issue warning if log is defined.
9139 2017-09-04  Joseph Myers  <joseph@codesourcery.com>
9141         * scripts/build-many-glibcs.py (Context.checkout): Default Linux
9142         kernel version to 4.13.
9144 2017-09-03  Samuel Thibault  <samuel.thibault@ens-lyon.org>
9146         * sysdeps/generic/sigsetops.h: Remove spurious #endif.
9147         (__sigismember, __sigaddset, __sigdelset): Fix referencing set
9148         parameter.
9149         * sysdeps/mach/hurd/bits/socket.h: Include <sys/types.h> instead of
9150         just <bits/types.h>.
9151         * sysdeps/posix/preadv2.c: Use off_t instead of OFF_T.
9152         * sysdeps/posix/preadv64v2.c: Use off64_t instead of OFF_T.
9153         * sysdeps/posix/pwritev2.c: Use off_t instead of OFF_T.
9154         * sysdeps/posix/pwritev64v2.c: Use off64_t instead of OFF_T.
9155         * misc/preadv2.c: Include <errno.h>.
9156         * misc/preadv64v2.c: Include <errno.h>.
9157         * misc/pwritev2.c: Include <errno.h>.
9158         * misc/pwritev64v2.c: Include <errno.h>.
9159         * sysdeps/posix/preadv2.c: Include <errno.h>.
9160         * sysdeps/posix/preadv64v2.c: Include <errno.h>.
9161         Fix <unistd.h> inclusion.
9162         * sysdeps/posix/pwritev2.c: Include <errno.h>.
9163         * sysdeps/posix/pwritev64v2.c: Include <errno.h>.
9164         * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno, __sbrk,
9165         __strtoul_internal): New functions.
9166         * sysdeps/posix/pause.c: Include <sigsetops.h>.
9167         * sysdeps/posix/system.c: Include <sigsetops.h>.
9168         * sysdeps/mach/hurd/i386/Makefile
9169         [$(subdir) = csu] (sysdep_routines): New rule: divdi3 object.
9170         [$(subdir) = csu] (sysdep-only-routines): Likewise.
9171         [$(subdir) = csu] (CFLAGS-divdi3.c): Likewise.
9172         * sysdeps/x86/fpu/include/bits/fenv.h [NO_HIDDEN]: Redirect
9173         __feraiseexcept_renamed to feraiseexcept instead of
9174         __GI_feraiseexcept.
9175         * sysdeps/mach/hurd/i386/Implies: Add mach/hurd/x86.
9176         * sysdeps/mach/hurd/x86/dl-sysdep.c: New file.
9177         * misc/tst-preadvwritev2-common.c (RWF_HIPRI, RWF_DSYNC, RWF_SYNC,
9178         RWF_NOWAIT): Define to 0 if undefined already.
9179         (do_test_with_invalid_flags): Set invalid_flag to 2 if RWF_SUPPORTED
9180         boils down to 0.
9181         * resolv/tst-resolv-res_init-skeleton.c (run_res_init)
9182         [!CLONE_NEWUTS]: Fail as unsupported if hostname is not NULL.
9184 2017-09-01  Joseph Myers  <joseph@codesourcery.com>
9186         * manual/math.texi (pow10): Do not document.
9187         (pow10f): Likewise.
9188         (pow10l): Likewise.
9189         * math/bits/mathcalls.h [__USE_GNU] (pow10): Do not declare.
9190         * math/bits/math-finite.h [__USE_GNU] (pow10): Likewise.
9191         * math/libm-test-exp10.inc (pow10_test): Remove.
9192         (do_test): Do not call pow10.
9193         * math/w_exp10_compat.c (pow10): Make into compat symbol.
9194         [NO_LONG_DOUBLE] (pow10l): Likewise.
9195         * math/w_exp10f_compat.c (pow10f): Likewise.
9196         * math/w_exp10l_compat.c (pow10l): Likewise.
9197         * sysdeps/ia64/fpu/e_exp10.S: Include <shlib-compat.h>.
9198         (pow10): Make into compat symbol.
9199         * sysdeps/ia64/fpu/e_exp10f.S: Include <shlib-compat.h>.
9200         (pow10f): Make into compat symbol.
9201         * sysdeps/ia64/fpu/e_exp10l.S: Include <shlib-compat.h>.
9202         (pow10l): Make into compat symbol.
9203         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Remove
9204         pow10.
9205         (CFLAGS-nldbl-pow10.c): Remove variable..
9206         * sysdeps/ieee754/ldbl-opt/nldbl-pow10.c: Remove file.
9207         * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c (pow10l): Condition on
9208         [SHLIB_COMPAT (libm, GLIBC_2_1, GLIBC_2_27)].
9209         * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (compat_symbol):
9210         Undefine and redefine.
9211         (pow10l): Make into compat symbol.
9212         * sysdeps/aarch64/libm-test-ulps: Remove pow10 ulps.
9213         * sysdeps/alpha/fpu/libm-test-ulps: Likewise.
9214         * sysdeps/arm/libm-test-ulps: Likewise.
9215         * sysdeps/hppa/fpu/libm-test-ulps: Likewise.
9216         * sysdeps/i386/fpu/libm-test-ulps: Likewise.
9217         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
9218         * sysdeps/microblaze/libm-test-ulps: Likewise.
9219         * sysdeps/mips/mips32/libm-test-ulps: Likewise.
9220         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
9221         * sysdeps/nios2/libm-test-ulps: Likewise.
9222         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
9223         * sysdeps/powerpc/nofpu/libm-test-ulps: Likewise.
9224         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
9225         * sysdeps/sh/libm-test-ulps: Likewise.
9226         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
9227         * sysdeps/tile/libm-test-ulps: Likewise.
9228         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9230 2017-09-01  Paul Pluzhnikov  <ppluzhnikov@google.com>
9232         * stdlib/tst-atexit-common.c (crumbs): Ensure correct size.
9234 2017-09-01  H.J. Lu  <hongjiu.lu@intel.com>
9236         * posix/tst-regex.c (do_test): Replace "../ChangeLog.8" with
9237         "../ChangeLog.old/ChangeLog.8".
9238         * posix/tst-regex2.c (do_test): Replace "../ChangeLog.14" with
9239         "../ChangeLog.old/ChangeLog.14".
9241 2017-09-01  H.J. Lu  <hongjiu.lu@intel.com>
9243         * manual/contrib.texi: Credit Ulrich Drepper for the POSIX
9244         Threads Library.
9246 2017-09-01  Joseph Myers  <joseph@codesourcery.com>
9248         * sysdeps/unix/sysv/linux/gentempfd.c: Include <string.h>.
9250 2017-09-01  H.J. Lu  <hongjiu.lu@intel.com>
9252         * csu/version.c (banner): Remove "by Roland McGrath et al.".
9253         * nptl/Banner: Remove "by Ulrich Drepper et al.".
9255 2017-09-01  Paul Pluzhnikov  <ppluzhnikov@google.com>
9257         * stdlib/tst-atexit-common.c (do_test): Test support for at least
9258         32 atexit handlers.
9260 2017-09-01  Zack Weinberg  <zackw@panix.com>
9262         * math/math.h (HUGE_VAL): Improve commentary.
9264 2017-09-01  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
9265             Andreas Schwab  <schwab@suse.de>
9267         [BZ #21530]
9268         * include/stdio.h (__gen_tempfd): New function.
9269         * stdio-common/Makefile (routines): Add gentempfd.
9270         * stdio-common/gentempfd.c: New file.
9271         * sysdeps/unix/sysv/linux/gentempfd.c: Likewise.
9272         * stdio-common/tmpfile.c (tmpfile): First try to use a system specific
9273         unnamed file first.
9275 2017-09-01  Florian Weimer  <fweimer@redhat.com>
9277         [BZ #21915]
9278         [BZ #21922]
9279         * sysdeps/posix/getaddrinfo.c (gethosts): Look at NSS function
9280         result to determine success or failure, not the errno value.
9281         * nss/Makefile (tests): Add tst-nss-files-hosts-erange.
9282         (tst-nss-files-hosts-erange): Link with -ldl.
9283         * nss/tst-nss-files-hosts-erange.c: New file.
9284         * nss/tst-resolv-basic.c (response): Handle nodata.example.
9285         (do_test): Add NO_DATA tests.
9286         * resolv/tst-resolv-basic.c (test_nodata_nxdomain): New function.
9287         (do_test): Call it.
9289 2017-09-01  Florian Weimer  <fweimer@redhat.com>
9291         [BZ #21922]
9292         * sysdeps/posix/getaddrinfo.c (gaih_inet): Report EAI_NODATA error
9293         coming from gethostbyname2_r.
9295 2017-09-01  Florian Weimer  <fweimer@redhat.com>
9297         * support/namespace.h (struct support_chroot_configuration): Add
9298         hosts, host_conf.
9299         (struct support_chroot): Add path_hosts, path_host_conf.
9300         * support/support_chroot.c (write_file): New function.
9301         (support_chroot_create): Call it to process /etc/resolv.conf,
9302         /etc/hosts, /etc/host.conf.
9303         (support_chroot_free): Update.
9305 2017-09-01  Florian Weimer  <fweimer@redhat.com>
9307         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use h_errno if
9308         status indicates it is set.
9310 2017-09-01  Florian Weimer  <fweimer@redhat.com>
9312         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make reporting of NSS
9313         function lookup failures more reliable.
9315 2017-09-01  Florian Weimer  <fweimer@redhat.com>
9317         * sysdeps/posix/getaddrinfo.c (gethosts): Use h_errno directly.
9318         (getcanonname): Likewise.
9319         (gaih_inet): Likewise.
9321 2017-09-01  Florian Weimer  <fweimer@redhat.com>
9323         * sysdeps/posix/getaddrinfo.c (gethosts): Use errno directly.
9324         (getcanonname): Likewise.
9325         (gaih_inet): Likewise.
9327 2017-08-31  Steve Ellcey  <sellcey@cavium.com>
9328             Richard Henderson <rth@twiddle.net>
9330         * sysdeps/aarch64/fpu/s_llrint.c (OREG_SIZE): New macro.
9331         * sysdeps/aarch64/fpu/s_llround.c (OREG_SIZE): Likewise.
9332         * sysdeps/aarch64/fpu/s_llrintf.c (OREGS, IREGS): Remove.
9333         (IREG_SIZE, OREG_SIZE): New macros.
9334         * sysdeps/aarch64/fpu/s_llroundf.c: (OREGS, IREGS): Remove.
9335         (IREG_SIZE, OREG_SIZE): New macros.
9336         * sysdeps/aarch64/fpu/s_lrintf.c (IREGS): Remove.
9337         (IREG_SIZE): New macro.
9338         * sysdeps/aarch64/fpu/s_lroundf.c (IREGS): Remove.
9339         (IREG_SIZE): New macro.
9340         * sysdeps/aarch64/fpu/s_lrint.c (get-rounding-mode.h, stdint.h):
9341         New includes.
9342         (IREG_SIZE, OREG_SIZE): Initialize if not already set.
9343         (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
9344         (__CONCATX): Handle exceptions correctly on large values that may
9345         set FE_INVALID.
9346         * sysdeps/aarch64/fpu/s_lround.c (IREG_SIZE, OREG_SIZE):
9347         Initialize if not already set.
9348         (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
9350 2017-08-31  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
9352         * sysdeps/generic/not-cancel.h (NO_CANCELLATION): Remove macro.
9353         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (NO_CANCELLATION):
9354         Likewise.
9355         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (NO_CANCELLATION):
9356         Likewise.
9357         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (NO_CANCELLATION):
9358         Likewise.
9359         * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (NO_CANCELLATION):
9360         Likewise.
9361         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (NO_CANCELLATION):
9362         Likewise.
9363         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (NO_CANCELLATION):
9364         Likewise.
9365         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (NO_CANCELLATION):
9366         Likewise.
9367         * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h
9368         (NO_CANCELLATION): Likewise.
9369         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (NO_CANCELLATION):
9370         Likewise.
9371         * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (NO_CANCELLATION):
9372         Likewise.
9373         * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h (NO_CANCELLATION):
9374         Likewise.
9375         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h
9376         (NO_CANCELLATION): Likewise.
9377         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h
9378         (NO_CANCELLATION): Likewise.
9379         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (NO_CANCELLATION):
9380         Likewise
9381         * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h (NO_CANCELLATION):
9382         Likewise.
9383         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (NO_CANCELLATION):
9384         Likewise.
9385         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (NO_CANCELLATION):
9386         Likewise.
9387         * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): Add
9388         hidden prototype.
9389         * sysdeps/unix/sysv/linux/fcntl.c (__fcntl_nocancel): Define only
9390         for !IS_IN (rtld) and remove NO_CANCELLATION usage.
9392 2017-08-31  Steve Ellcey  <sellcey@cavium.com>
9394         * sysdeps/aarch64/dl-irel.h: (elf_ifunc_invoke): Change argument type
9395         in resolver call.
9397 2017-08-31  Florian Weimer  <fweimer@redhat.com>
9399         * include/libc-symbols.h (internal_function): Remove.
9401 2017-08-31  Florian Weimer  <fweimer@redhat.com>
9403         * stdlib/fmtmsg.c (internal_addseverity): Remove
9404         internal_function.
9406 2017-08-31  Florian Weimer  <fweimer@redhat.com>
9408         * stdio-common/printf_fp.c (group_number): Remove
9409         internal_function.
9410         * stdio-common/vfprintf.c (buffered_vfprintf): Likewise.
9412 2017-08-31  Florian Weimer  <fweimer@redhat.com>
9414         * posix/fnmatch.c (internal_function): Remove definition.
9415         * posix/fnmatch_loop.c (FCT, EXT, END): Remove internal_function.
9416         * posix/regcomp.c (peek_token, init_word_char)
9417         (duplicate_node_closure, fetch_token, peek_token)
9418         (peek_token_bracket, build_range_exp, build_collating_symbol):
9419         Likewise.
9420         * posix/regex_internal.c (re_string_construct_common)
9421         (create_ci_newstate, create_cd_newstate, re_string_allocate)
9422         (re_string_construct, re_string_realloc_buffers, build_wcs_buffer)
9423         (build_wcs_upper_buffer, re_string_skip_chars, build_upper_buffer)
9424         (re_string_translate_buffer, re_string_reconstruct)
9425         (re_string_peek_byte_case, re_string_fetch_byte_case)
9426         (re_string_destruct, re_string_context_at, re_node_set_alloc)
9427         (re_node_set_init_1, re_node_set_init_2, re_node_set_init_copy)
9428         (re_node_set_add_intersect, re_node_set_init_union)
9429         (re_node_set_merge, re_node_set_insert, re_node_set_insert_last)
9430         (re_node_set_compare, re_node_set_contains, re_node_set_remove_at)
9431         (re_dfa_add_node, calc_state_hash, re_acquire_state)
9432         (re_acquire_state_context): Likewise.
9433         * posix/regex_internal.h (internal_function): Remove definition.
9434         (re_string_realloc_buffers, build_wcs_buffer)
9435         (build_wcs_upper_buffer, build_upper_buffer)
9436         (re_string_translate_buffer, re_string_context_at)
9437         (re_string_char_size_at, re_string_wchar_at)
9438         (re_string_elem_size_at): Likewise.
9439         * posix/regexec.c (match_ctx_init, match_ctx_clean)
9440         (match_ctx_free, match_ctx_add_entry, search_cur_bkref_entry)
9441         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init)
9442         (re_search_internal, re_search_2_stub, re_search_stub)
9443         (re_copy_regs, prune_impossible_nodes, check_matching)
9444         (check_halt_state_context, update_regs, push_fail_stack, set_regs)
9445         (free_fail_stack_return, sift_states_iter_mb)
9446         (sift_states_backward, build_sifted_states)
9447         (update_cur_sifted_state, add_epsilon_src_nodes, check_dst_limits)
9448         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos)
9449         (check_subexp_limits, sift_states_bkref, merge_state_array)
9450         (find_recover_state, transit_state, merge_state_with_log)
9451         (check_subexp_matching_top, transit_state_sb, transit_state_sb)
9452         (transit_state_mb, transit_state_bkref, get_subexp)
9453         (get_subexp_sub, find_subexp_node, check_arrival)
9454         (check_arrival_add_next_nodes, check_arrival_expand_ecl)
9455         (check_arrival_expand_ecl_sub, expand_bkref_cache, build_trtable)
9456         (check_node_accept_bytes, find_collation_sequence_value)
9457         (group_nodes_into_DFAstates, check_node_accept, extend_buffers)
9458         (acquire_init_state_context, check_halt_node_context)
9459         (proceed_next_node, pop_fail_stack, clean_state_log_if_needed)
9460         (sub_epsilon_src_nodes): Likewise.
9461         * posix/spawn_int.h (__spawn_valid_fd): Likewise.
9462         * posix/spawn_valid_fd (__spawn_valid_fd): Likewise.
9463         * posix/wordexp.c (parse_dollars, parse_backtick, parse_dquote)
9464         (eval_expr, w_addmem, w_addstr, w_addword, parse_backslash)
9465         (parse_qtd_backslash, parse_tilde, do_parse_glob, parse_glob)
9466         (parse_squote, eval_expr_val, eval_expr_multdiv, parse_arith)
9467         (exec_comm_child, exec_comm, parse_comm, parse_param): Likewise.
9468         * sysdeps/posix/ttyname.c (getttyname): Likewise.
9469         * sysdeps/posix/ttyname_r.c (getttyname_r): Likewise.
9470         * sysdeps/unix/sysv/linux/preadv.c (__atomic_preadv_replacement)
9471         (PREADV): Likewise.
9472         * sysdeps/unix/sysv/linux/preadv64.c (__atomic_preadv64_replacement)
9473         (PREADV): Likewise.
9474         * sysdeps/unix/sysv/linux/pwritev.c (__atomic_pwritev_replacement)
9475         (PWRITEV): Likewise.
9476         * sysdeps/unix/sysv/linux/pwritev64.c (__atomic_pwritev64_replacement)
9477         (PWRITEV): Likewise.
9478         * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Likewise.
9479         * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
9481 2017-08-31  Florian Weimer  <fweimer@redhat.com>
9483         * nptl/allocatestack.c (change_stack_perm, __deallocate_stack)
9484         (setxid_mark_thread, setxid_unmark_thread, setxid_signal_thread):
9485         Remove internal_function.
9486         * nptl/cancellation.c (__pthread_disable_asynccancel): Likewise.
9487         * nptl/libc_pthread_init.c (__libc_pthread_init): Likewise.
9488         * nptl/pthreadP.h (__find_in_stack_list, __free_tcb)
9489         (__deallocate_stack, __libc_pthread_init)
9490         (__pthread_mutex_cond_lock, __pthread_mutex_cond_lock_adjust)
9491         (__pthread_mutex_unlock_usercnt, __pthread_disable_asynccancel)
9492         (__libc_disable_asynccancel, __librt_disable_asynccancel):
9493         Likewise.
9494         * nptl/pthread_create.c (__find_in_stack_list, __free_tcb): Likewise.
9495         * nptl/pthread_mutex_cond_lock.c (__pthread_mutex_lock): Likewise.
9496         * nptl/pthread_mutex_lock.c (__pthread_mutex_cond_lock_adjust):
9497         Likewise.
9498         * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full)
9499         (__pthread_mutex_unlock_usercnt): Likewise.
9501 2017-08-31  Florian Weimer  <fweimer@redhat.com>
9503         * io/fts.c (fts_alloc, fts_build, fts_lfree, fts_load)
9504         (fts_maxarglen, fts_padjust, fts_palloc, fts_sort, fts_stat)
9505         (fts_safe_changedir): Remove internal_function.
9506         * io/ftw.c (internal_function): Remove definition.
9507         (ftw_dir, process_entry, ftw_startup): Remove internal_function.
9509 2017-08-31  Florian Weimer  <fweimer@redhat.com>
9511         * inet/deadline.c (__deadline_current_time)
9512         (__deadline_from_timeval, __deadline_to_ms): Remove
9513         internal_function.
9514         * inet/getnameinfo.c (nrl_domainname): Likewise.
9515         * inet/getnetgrent_r.c (__internal_setnetgrent_reuse): Likewise.
9516         * inet/inet6_option.c (add_pad): Likewise.
9517         * inet/net-internal.h (__deadline_current_time)
9518         (__deadline_from_timeval, __deadline_to_ms): Likewise.
9519         * inet/rcmd.c (__checkhost_sa, __icheckuser): Likewise.
9520         * sysdeps/mach/hurd/if_index.c (__protocol_available): Likewise.
9521         * sysdeps/unix/sysv/linux/ifaddrs.c (map_newlink): Likewise.
9523 2017-08-31  Joseph Myers  <joseph@codesourcery.com>
9525         *  math/math.h [__USE_ISOC99] (NAN): Define directly here.  Do not
9526         include <bits/nan.h>.
9527         * math/Makefile (headers): Remove bits/nan.h.
9528         * bits/nan.h: Remove.
9529         * sysdeps/ieee754/bits/nan.h: Likewise.
9530         * sysdeps/mips/bits/nan.h: Likewise.
9532         * math/math.h [__USE_ISOC99] (INFINITY): Define directly here.  Do
9533         not include <bits/inf.h>.
9534         * math/Makefile (headers): Remove bits/inf.h.
9535         * bits/inf.h: Remove.
9536         * sysdeps/ieee754/bits/inf.h: Likewise.
9538         * math/math.h: Do not include bits/huge_val.h, bits/huge_valf.h,
9539         bits/huge_vall.h or bits/huge_val_flt128.h.
9540         (HUGE_VAL): Define directly here.
9541         [__USE_ISOC99] (HUGE_VALF): Likewise.
9542         [__USE_ISOC99] (HUGE_VALL): Likewise.
9543         [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
9544         (HUGE_VAL_F128): Likewise.
9545         * math/Makefile (headers): Remove bits/huge_val.h,
9546         bits/huge_valf.h, bits/huge_vall.h and bits/huge_val_flt128.h.
9547         * bits/huge_val.h: Remove.
9548         * bits/huge_val_flt128.h: Likewise.
9549         * bits/huge_valf.h: Likewise.
9550         * bits/huge_vall.h: Likewise.
9551         * sysdeps/ia64/bits/huge_vall.h: Likewise.
9552         * sysdeps/ieee754/bits/huge_val.h: Likewise.
9553         * sysdeps/ieee754/bits/huge_valf.h: Likewise.
9554         * sysdeps/m68k/m680x0/bits/huge_vall.h: Likewise.
9555         * sysdeps/sh/bits/huge_val.h: Likewise.
9556         * sysdeps/sparc/bits/huge_vall.h: Likewise.
9557         * sysdeps/x86/bits/huge_vall.h: Likewise.
9559 2017-08-31  Florian Weimer  <fweimer@redhat.com>
9561         * elf/dl-addr-obj.c (_dl_addr_inside_object): Remove
9562         internal_function.
9563         * elf/dl-cache.c (_dl_cache_libcmp, _dl_load_cache_lookup):
9564         Likewise.
9565         * elf/dl-debug.c (_dl_debug_initialize): Likewise.
9566         * elf/dl-deps.c (_dl_build_local_scope, _dl_map_object_deps): Likewise.
9567         * elf/dl-environ.c (_dl_next_ld_env_entry): Likewise.
9568         * elf/dl-execstack.c (_dl_make_stack_executable): Likewise.
9569         * elf/dl-fini.c (_dl_sort_fini): Likewise.
9570         * elf/dl-hwcaps.c (_dl_important_hwcaps): Likewise.
9571         * elf/dl-libc.c (dlerror_run): Likewise.
9572         * elf/dl-load.c (add_name_to_object, decompose_rpath)
9573         (_dl_init_paths, _dl_map_object, _dl_rtld_di_serinfo): Likewise.
9574         * elf/dl-lookup.c (add_dependency, _dl_debug_bindings)
9575         (_dl_lookup_symbol_x, _dl_setup_hash, _dl_debug_bindings):
9576         Likewise.
9577         * elf/dl-misc.c (_dl_sysdep_read_whole_file, _dl_name_match_p)
9578         (_dl_higher_prime_number, _dl_strtoul): Likewise.
9579         * elf/dl-object.c (_dl_add_to_namespace_list, _dl_new_object): Likewise.
9580         * elf/dl-profile.c (_dl_start_profile): Likewise.
9581         * elf/dl-reloc.c (_dl_try_allocate_static_tls)
9582         (_dl_allocate_static_tls, _dl_protect_relro, _dl_reloc_bad_type):
9583         Likewise.
9584         * elf/dl-support.c (_dl_aux_init, _dl_non_dynamic_init): Likewise.
9585         * elf/dl-sym.c (_dl_tls_symaddr, do_sym): Likewise.
9586         * elf/dl-sysdep.c (_dl_sysdep_start_cleanup, _dl_show_auxv): Likewise.
9587         * elf/dl-tls.c (_dl_next_tls_modid, _dl_count_modids)
9588         (_dl_determine_tlsoffset, allocate_dtv, _dl_get_tls_static_info)
9589         (_dl_allocate_tls_storage): Likewise.
9590         * elf/dl-version.c (match_symbol, _dl_check_map_versions)
9591         (_dl_check_all_versions): Likewise.
9592         * elf/dynamic-link.h (_dl_try_allocate_static_tls): Likewise.
9593         * elf/tlsdeschtab.h (_dl_make_tlsdesc_dynamic): Likewise.
9594         * elf/tst-_dl_addr_inside_object.c (_dl_addr_inside_object): Likewise.
9595         * sysdeps/aarch64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
9596         * sysdeps/aarch64/tlsdesc.c (_dl_unmap): Likewise.
9597         * sysdeps/arm/dl-lookupcfg.h (_dl_unmap): Likewise.
9598         * sysdeps/arm/dl-machine.h (elf_machine_load_address): Remove
9599         internal_function from __dl_start.
9600         * sysdeps/arm/dl-tlsdesc.h (_dl_unmap): Remove internal_function.
9601         * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): Likewise.
9602         * sysdeps/generic/ldsodefs.h (_dl_name_match_p)
9603         (_dl_higher_prime_number, _dl_strtoul, _dl_map_object)
9604         (_dl_map_object_deps, _dl_setup_hash, _dl_rtld_di_serinfo)
9605         (_dl_lookup_symbol_x, _dl_add_to_namespace_list, _dl_new_object)
9606         (_dl_protect_relro, _dl_reloc_bad_type, _dl_check_all_versions)
9607         (_dl_check_map_versions, _dl_sort_fini, _dl_debug_initialize)
9608         (_dl_init_paths, _dl_start_profile, _dl_show_auxv)
9609         (_dl_next_ld_env_entry, _dl_important_hwcaps)
9610         (_dl_load_cache_lookup, _dl_sysdep_read_whole_file)
9611         (_dl_sysdep_start_cleanup, _dl_next_tls_modid, _dl_count_modids)
9612         (_dl_determine_tlsoffset, _dl_get_tls_static_info)
9613         (_dl_allocate_static_tls, _dl_allocate_tls_storage)
9614         (_dl_addr_inside_object, _dl_non_dynamic_init, _dl_aux_init):
9615         Likewise.
9616         (struct rtld_global_ro): Remove internal_function from the
9617         _dl_lookup_symbol_x member.
9618         (_dl_symbol_value): Remove.  No longer defined anywhere.
9619         * sysdeps/i386/dl-lookupcfg.h (_dl_unmap): Remove
9620         internal_function.
9621         * sysdeps/i386/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
9622         * sysdeps/i386/tlsdesc.c (_dl_unmap): Likewise.
9623         * sysdeps/mach/hurd/dl-sysdep.c (_dl_show_auxv): Likewise.
9624         * sysdeps/nios2/dl-init.c (_dl_nios2_get_gp_value): Likewise.
9625         * sysdeps/tile/dl-lookupcfg.h (_dl_unmap): Likewise.
9626         * sysdeps/tile/dl-machine.h (_dl_after_load): Likewise.
9627         * sysdeps/tile/dl-runtime.c (_dl_after_load, _dl_unmap): Likewise.
9628         * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Likewise.
9629         * sysdeps/unix/sysv/linux/dl-vdso.h (_dl_vdso_vsym): Likewise.
9630         * sysdeps/x86_64/dl-lookupcfg.h (_dl_unmap): Likewise.
9631         * sysdeps/x86_64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
9632         * sysdeps/x86_64/tlsdesc.c (_dl_unmap): Likewise.
9634 2017-08-31  Florian Weimer  <fweimer@redhat.com>
9636         * gmon/gmon.c (write_hist, write_call_graph, write_bb_counts):
9637         Remove internal_function.
9638         * sysdeps/arm/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
9639         Likewise.
9640         * sysdeps/sparc/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
9641         Likewise.
9643 2017-08-31  Florian Weimer  <fweimer@redhat.com>
9645         * dlfcn/dlerror.c (_dlerror_run): Remove internal_function.
9646         * elf/dl-sym.c (_dl_vsym, _dl_sym): Likewise.
9647         * include/dlfcn.h (_dl_sym, _dl_vsym, _dlerror_run): Likewise.
9649 2017-08-31  Florian Weimer  <fweimer@redhat.com>
9651         * resolv/gai_misc.c (__gai_find_request, __gai_remove_request)
9652         (__gai_enqueue_request): Remove internal_function.
9653         * resolv/gai_misc.h (__gai_enqueue_request, __gai_find_request)
9654         (__gai_remove_request, __gai_notify, __gai_notify_only)
9655         (__gai_sigqueue): Likewise.
9656         * resolv/gai_notify.c (__gai_notify_only, __gai_notify): Likewise.
9657         * resolv/gai_sigqueue.c (__gai_sigqueue): Likewise.
9658         * resolv/inet_ntop.c (inet_ntop4, inet_ntop6): Likewise.
9659         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
9660         Likewise.
9662 2017-08-31  Florian Weimer  <fweimer@redhat.com>
9664         * dirent/scandir-tail.c (SCANDIR_TAIL): Remove internal_function.
9665         * include/dirent.h (__opendirat, __getdents, __getdents64)
9666         (__alloc_dir, __scandir_tail, __scandir64_tail): Likewise.
9667         * sysdeps/posix/opendir.c (__opendirat, __alloc_dir): Likewise.
9668         * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
9669         * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
9670         Likewise.
9671         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Likewise.
9673 2017-08-31  Florian Weimer  <fweimer@redhat.com>
9675         * sysdeps/unix/sysv/linux/getcwd.c (generic_getcwd): Remove
9676         internal_function.
9677         (GETCWD_RETURN_TYPE): Likewise.
9679 2017-08-31  Florian Weimer  <fweimer@redhat.com>
9681         * include/time.h (__tz_compute, __strptime_internal): Remove
9682         internal_function.
9683         * time/strptime_l.c (__strptime_internal): Likewise.
9684         * time/tzset.c (compute_change, update_vars, __tz_compute): Likewise.
9686 2017-08-31  Florian Weimer  <fweimer@redhat.com>
9688         * iconv/gconv.c (__gconv): Remove internal_function.
9689         * iconv/gconv_builtin.c (__gconv_get_builtin_trans): Likewise.
9690         * iconv/gconv_cache.c (__gconv_load_cache, find_module_idx)
9691         (find_module, __gconv_compare_alias_cache, __gconv_lookup_cache)
9692         (__gconv_release_cache): Likewise.
9693         * iconv/gconv_close.c (__gconv_close): Likewise.
9694         * iconv/gconv_conf.c (detect_conflict, insert_module, add_module)
9695         (read_conf_file, __gconv_get_path): Likewise.
9696         * iconv/gconv_db.c (derivation_lookup, add_derivation)
9697         (__gconv_release_step, gen_steps, increment_counter)
9698         (find_derivation, __gconv_compare_alias, __gconv_find_transform)
9699         (__gconv_close_transform, free_modules_db): Likewise.
9700         * iconv/gconv_dl.c (__gconv_find_shlib, __gconv_release_shlib):
9701         Likewise.
9702         * iconv/gconv_int.h (__gconv_open, __gconv_close, __gconv)
9703         (__gconv_find_transform, __gconv_lookup_cache)
9704         (__gconv_release_step, __gconv_load_cache, __gconv_get_path)
9705         (__gconv_close_transform, __gconv_release_cache)
9706         (__gconv_loaded_object, __gconv_release_shlib)
9707         (__gconv_compare_alias): Likewise.
9708         * iconv/gconv_open.c (__gconv_open): Likewise.
9709         * iconv/iconv_prog.c (print_known_names, add_known_names): Likewise.
9710         * iconv/iconvconfig.c (add_module): Likewise.
9711         * intl/dcigettext.c (plural_lookup, guess_category_value)
9712         (category_to_name, get_output_charset, _nl_find_msg): Likewise.
9713         * intl/eval-plural.h (plural_eval): Likewise.
9714         * intl/finddomain.c (_nl_find_domain): Likewise.
9715         * intl/gettextP.h (_nl_unload_domain, _nl_find_domain)
9716         (_nl_load_domain, _nl_find_msg): Likewise.
9717         (internal_function): Remove definition.
9718         * intl/loadinfo.h (internal_function): Likewise.
9719         * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Remove
9720         internal_function.
9721         * intl/localealias.c (internal_function): Remove definition.
9722         (read_alias_file): Remove internal_function.
9723         * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Likewise.
9724         * intl/plural-exp.h (internal_function): Remove definition.
9725         (FREE_EXPRESSION, EXTRACT_PLURAL_EXPRESSION): Remove
9726         internal_function.
9727         * intl/plural.c: Regenerate.
9728         * intl/plural.y (FREE_EXPRESSION): Remove internal_function.
9729         * locale/coll-lookup.c (__collidx_table_lookup)
9730         (__collseq_table_lookup): Likewise.
9731         * locale/coll-lookup.h (__collidx_table_lookup)
9732         (__collseq_table_lookup): Likewise.
9733         * locale/findlocale.c (_nl_find_locale, _nl_remove_locale): Likewise.
9734         * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
9735         * locale/loadlocale.c (_nl_intern_locale_data, _nl_load_locale)
9736         (_nl_unload_locale): Likewise.
9737         * locale/localeinfo.h (struct __locale_data): Remove
9738         internal_function from cleanup member.
9739         (_nl_find_locale, _nl_load_locale, _nl_unload_locale)
9740         (_nl_remove_locale, _nl_load_locale_from_archive)
9741         (_nl_intern_locale_data, _nl_get_era_entry, _nl_select_era_entry)
9742         (_nl_get_alt_digit, _nl_get_walt_digit, _nl_parse_alt_digit)
9743         (_nl_cleanup_time): Remove internal_function.
9744         * time/alt_digit.c (_nl_get_alt_digit, _nl_get_walt_digit)
9745         (_nl_parse_alt_digit): Likewise.
9746         * time/era.c (_nl_init_era_entries, _nl_get_era_entry)
9747         (_nl_select_era_entry): Likewise.
9748         * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
9749         * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv, __wcsmbs_clone_conv)
9750         (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
9751         * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv, __wcsmbs_clone_conv)
9752         (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
9754 2017-08-31  Florian Weimer  <fweimer@redhat.com>
9756         * rt/aio_sigqueue.c (__aio_sigqueue): Remove internal_function.
9757         * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
9758         * sysdeps/pthread/aio_misc.c (__aio_free_request, __aio_find_req)
9759         (__aio_find_req_fd, __aio_remove_request, __aio_enqueue_request):
9760         Likewise.
9761         * sysdeps/pthread/aio_misc.h (__aio_enqueue_request)
9762         (__aio_find_req, __aio_find_req_fd, __aio_free_request)
9763         (__aio_notify, __aio_notify_only, __aio_sigqueue): Likewise.
9764         * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
9765         Likewise.
9766         * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue): Likewise.
9768 2017-08-31  Florian Weimer  <fweimer@redhat.com>
9770         * misc/getttyent.c (skip, value): Remove internal_function.
9771         * misc/syslog.c (openlog_internal): Likewise.
9772         * misc/tsearch.c (trecurse, tdestroy_recurse): Likewise.
9774 2017-08-31  Florian Weimer  <fweimer@redhat.com>
9776         * include/nss.h (__nss_valid_field, __nss_valid_list_field)
9777         (__nss_rewrite_field): Remove internal_function.
9778         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
9779         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
9780         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
9781         * nss/nsswitch.c (nss_parse_file, nss_getline)
9782         (nss_parse_service_list, nss_new_service): Likewise.
9783         * nss/rewrite_field.c (__nss_rewrite_field): Likewise.
9784         * nss/valid_field.c (__nss_valid_field): Likewise.
9785         * nss/valid_list_field.c (__nss_valid_list_field): Likewise.
9787 2017-08-31  Florian Weimer  <fweimer@redhat.com>
9789         * malloc/arena.c (__malloc_fork_lock_parent)
9790         (__malloc_fork_unlock_parent, __malloc_fork_unlock_child)
9791         (next_env_entry, new_heap, heap_trim, arena_get2): Remove
9792         internal_function from defintions.
9793         * malloc/hooks.c (mem2mem_check, mem2chunk_check): Likewise.
9794         * malloc/malloc-internal.h (__malloc_fork_lock_parent)
9795         (__malloc_fork_unlock_parent, __malloc_fork_unlock_child): Remove
9796         internal_function from declarations.
9797         * malloc/malloc.c (internal_function): Do not define.
9798         (mem2mem_check): Remove internal_function from declaration.
9799         (munmap_chunk, mremap_chunk): Remove internal_function.
9800         * malloc/mtrace.c (tr_where): Likewise.
9802 2017-08-31  Florian Weimer  <fweimer@redhat.com>
9804         * include/rpc/pmap_clnt.h (__get_socket): Remove
9805         internal_function.
9806         * sunrpc/auth_des.c (synchronize): Likewise.
9807         * sunrpc/auth_unix.c (marshal_new_auth): Likewise.
9808         * sunrpc/clnt_perr.c (auth_errmsg): Likewise.
9809         * sunrpc/des_impl.c (des_encrypt, des_set_key): Likewise.
9810         * sunrpc/key_call.c (key_call_keyenvoy, key_call_socket)
9811         (key_call): Likewise.
9812         * sunrpc/pm_getport.c (__get_socket): Likewise.
9813         * sunrpc/pmap_rmt.c (getbroadcastnets): Likewise.
9814         * sunrpc/svc_unix.c (makefd_xprt): Likewise.
9815         * sunrpc/svc_tcp.c (makefd_xprt): Likewise.
9816         * sunrpc/svcauth_des.c (cache_init, cache_spot, cache_ref)
9817         (invalidate): Likewise.
9818         * sunrpc/xcrypt.c (hexval, hex2bin, bin2hex): Likewise.
9819         * sunrpc/xdr_rec.c (fix_buf_size, skip_input_bytes, flush_out)
9820         (set_input_fragment, get_input_bytes): Likewise.
9822 2017-08-31  Florian Weimer  <fweimer@redhat.com>
9824         * malloc/malloc.c (_int_free): Remove locked variable and related
9825         asserts.
9827 2017-08-31  H.J. Lu  <hongjiu.lu@intel.com>
9829         [BZ #22051]
9830         * Makerules (build-module-helper-objlist): Filter out
9831         $(elf-objpfx)sofini.os.
9832         (build-shlib-objlist): Append $(elf-objpfx)sofini.os if it is
9833         needed.
9835 2017-08-31  Florian Weimer  <fweimer@redhat.com>
9837         * libio/fcloseall.c: Assume weak_alias is defined.
9838         * libio/feof.c: Likewise.
9839         * libio/fileno.c: Likewise.
9840         * libio/fileops.c: Assume _LIBC, errno, __set_errno are defined.
9841         (_POSIX_SOURCE, open, lseek, read, write): Remove macro
9842         definitions.
9843         (_IO_file_open): Call __open directly.
9844         (_IO_new_file_sync): Assume ESPIPE is defined.
9845         (_IO_file_seekoff_maybe_mmap): Call __read directly.
9846         (_IO_new_file_write): Call __write directly.
9847         * libio/ftello.c (__ftello): Assume EIO, EOVERFLOW are defined.
9848         * libio/ftello64.c (__ftello64): Assume EIO is defined.
9849         * libio/genops.c: Assume _LIBC is defined.
9850         (save_for_backup): Remove internal_function.
9851         * libio/getc.c: Assume weak_alias is defined.
9852         * libio/getwc.c: Likewise.
9853         * libio/iofclose.c: Assume _LIBC is defined.
9854         * libio/iofdopen.c: Likewise.
9855         (_IO_fcntl): Remove macro definition.
9856         (_IO_new_fdopen): Assume F_GETFL, F_SETFL, O_ACCMODE are defined.
9857         Call __fcntl directly.
9858         * libio/iofflush.c: Assume weak_alias is defined.
9859         * libio/iofgetpos.c (_IO_new_fgetpos): Assume EIO, EOVERFLOW are
9860         defined.
9861         * libio/iofgetpos64.c (_IO_new_fgetpos64): Assume EIO is defined.
9862         * libio/iofgets.c: Likewise.
9863         * libio/iofopen.c: Assume _LIBC is defined.
9864         * libio/iofopen64.c: Assume _LIBC, weak_alias are defined.
9865         * libio/iofputs.c: Assume weak_alias is defined.
9866         * libio/iofread.c: Likewise.
9867         * libio/iofsetpos.c (_IO_new_fsetpos): Assume EIO is defined.
9868         * libio/iofsetpos64.c (_IO_new_fsetpos64): Likewise.
9869         * libio/ioftell.c: Assume weak_alias is defined.
9870         (_IO_ftell): Assume EIO, EOVERFLOW are defined.
9871         * libio/iofwide.c: Assume _LIBC is defined.
9872         (_IO_fwide): Drop SHARED conditional because it is implied by
9873         SHLIB_COMPAT.
9874         * libio/iofwrite.c: Assume weak_alias is defined.
9875         * libio/iogetdelim.c: Likewise.
9876         * libio/iogets.c: Assume _LIBC, weak_alias are defined.
9877         * libio/iogetwline.c (wmemcpy): Remove macro definition.
9878         (_IO_getwline): Call __wmemcpy directly.
9879         * libio/iopopen.c: Assume _LIBC is defined.
9880         (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
9881         (_IO_close): Remove macro definitions.
9882         (_IO_new_proc_open): Call __fork, __dup2, __close_nocancel, execl,
9883         _exit directly.
9884         (_IO_new_proc_close): Call __close_nocancel, __waitpid_nocancel
9885         directly.
9886         * libio/ioputs.c: Assume weak_alias is defined.
9887         * libio/ioseekoff.c: Assume errno, __set_errno are defined.
9888         * libio/iosetbuffer.c: Assume weak_alias is defined.
9889         * libio/iosetvbuf.c: Likewise.
9890         * libio/ioungetc.c: Likewise.
9891         * libio/libioP.h: Assume _LIBC, __GLIBC__, libc_hidden_proto,
9892         libc_hidden_def, libc_hidden_weak, NULL are defined.
9893         (mmap, munmap, ftruncate, OS_FSTAT): Remove macro definitions.
9894         * libio/oldfilepos.c: Assume _LIBC, errno, __set_errno are
9895         defined.
9896         (_POSIX_SOURCE, open, lseek, read, write): Remove macro
9897         definitions.
9898         (_IO_old_file_init_internal): Drop SHARED conditional because it
9899         is implied by SHLIB_COMPAT.
9900         (_IO_old_file_fopen): Call __open directly.
9901         (_IO_old_file_sync): Assume ESPIPE is defined.
9902         (_IO_old_file_write): Call __write directly.
9903         * libio/oldfdopen.c (_IO_fcntl): Remove macro definition.
9904         (_IO_old_fdopen): Assume F_GETFL, O_ACCMODE, F_SETFL are defined.
9905         Call __fcntl directly.
9906         * libio/oldiofgetpos.c: Assume weak_alias is defined.
9907         (_IO_old_fgetpos): Assume EIO is defined.
9908         * libio/oldiofgetpos64.c: Assume weak_alias is defined.
9909         (_IO_old_fgetpos64): Assume EIO is defined.
9910         * libio/oldiofsetpos.c: Assume weak_alias is defined.
9911         (_IO_old_fsetpos): Assume EIO is defined.
9912         * libio/oldiofsetpos64.c: Assume weak_alias is defined.
9913         (_IO_old_fsetpos64): Assume EIO is defined.
9914         * libio/oldiopopen.c:  Assume _LIBC is defined.
9915         (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
9916         (_IO_close): Remove macro definitions.
9917         (_IO_old_proc_open): Call __pipe, __close, __dup2, execl, _exit
9918         directly.
9919         (_IO_old_proc_close): Call __close, __waitpid directly.
9920         * libio/put.c: Assume weak_alias is defined.
9921         * libio/stdfiles.c: Assume _LIBC is defined.
9922         * libio/stdio.c: Likewise.
9923         * libio/wfileops.c: Likewise.
9924         (_IO_wfile_sync): Assume ESPIPE is defined.
9925         * libio/wgenops.c: Assume _LIBC is defined.
9926         (save_for_wbackup): Remove internal_function.
9928 2017-08-31  Florian Weimer  <fweimer@redhat.com>
9930         * malloc/malloc.c (top_check): Change return type to void.  Remove
9931         internal_function.
9932         * malloc/hooks.c (top_check): Likewise.
9933         (malloc_check, realloc_check, memalign_check): Adjust.
9935 2017-08-30  Joseph Myers  <joseph@codesourcery.com>
9937         [BZ #21457]
9938         * sysdeps/arm/sys/ucontext.h: Do not include <bits/sigcontext.h>.
9939         * sysdeps/generic/sys/ucontext.h: Add comment about use of struct
9940         sigcontext and namespace requirements.
9941         * sysdeps/i386/sys/ucontext.h: Do not include <bits/sigcontext.h>.
9942         * sysdeps/m68k/sys/ucontext.h: Likewise.
9943         * sysdeps/mips/sys/ucontext.h: Likewise.  Include <bits/types.h>.
9944         * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h: Do not include
9945         <bits/sigcontext.h>.
9946         (__ctx): Define earlier.
9947         (mcontext_t): Define structure contents rather than using struct
9948         sigcontext.
9949         * sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym (oEXTENSION): Use
9950         __glibc_reserved1 instead of __reserved.
9951         * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h: Do not include
9952         <bits/sigcontext.h>.
9953         (__ctx): Define earlier.
9954         (mcontext_t): Define structure contents rather than using struct
9955         sigcontext.
9956         * sysdeps/unix/sysv/linux/alpha/ucontext-offsets.sym: Use
9957         mcontext_t instead of struct sigcontext.
9958         * sysdeps/unix/sysv/linux/arm/sys/ucontext.h: Do not include
9959         <bits/sigcontext.h>.
9960         (__ctx): Define earlier.
9961         (mcontext_t): Define structure contents rather than using struct
9962         sigcontext.
9963         * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h: Do not include
9964         <bits/sigcontext.h>.
9965         (__ctx): Define earlier.
9966         (mcontext_t): Define structure contents rather than using struct
9967         sigcontext.
9968         * sysdeps/unix/sysv/linux/ia64/makecontext.c (__makecontext): Use
9969         mcontext_t instead of struct sigcontext.
9970         * sysdeps/unix/sysv/linux/ia64/sigcontext-offsets.sym: Use
9971         mcontext_t instead of struct sigcontext.
9972         * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: Do not include
9973         <bits/sigcontext.h>.
9974         (__ctx): New macro.
9975         (struct __ia64_fpreg_mcontext): New type.
9976         (mcontext_t): Define structure contents rather than using struct
9977         sigcontext.
9978         (_SC_GR0_OFFSET): Use mcontext_t instead of struct sigcontext.
9979         (uc_sigmask): Define using __ctx.
9980         (uc_stack): Likewise.
9981         * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Include
9982         <bits/sigcontext.h>.
9983         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
9984         * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h: Do not include
9985         <bits/sigcontext.h>.
9986         * sysdeps/unix/sysv/linux/microblaze/sys/ucontext.h: New file.
9987         * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Do not include
9988         <bits/sigcontext.h>.
9989         * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h: Do not include
9990         <bits/sigcontext.h>.
9991         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Do not include
9992         <bits/sigcontext.h>.
9993         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Do not include
9994         <bits/sigcontext.h>.
9995         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: Do not include
9996         <bits/sigcontext.h>.
9997         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h: Do not include
9998         <bits/sigcontext.h>.
9999         * sysdeps/unix/sysv/linux/tile/sys/ucontext.h: Do not include
10000         <bits/sigcontext.h>.
10001         (__ctx): Define earlier.
10002         (mcontext_t): Define structure contents rather than using struct
10003         sigcontext.
10004         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: Do not include
10005         <bits/sigcontext.h>.  Include <bits/types.h>.
10006         * conform/Makefile (test-xfail-XPG42/signal.h/conform): Remove.
10007         (test-xfail-XPG42/sys/wait.h/conform): Likewise.
10008         (test-xfail-XPG42/ucontext.h/conform): Likewise.
10009         (test-xfail-UNIX98/signal.h/conform): Likewise.
10010         (test-xfail-UNIX98/sys/wait.h/conform): Likewise.
10011         (test-xfail-UNIX98/ucontext.h/conform): Likewise.
10012         (test-xfail-XOPEN2K/signal.h/conform): Likewise.
10013         (test-xfail-XOPEN2K/sys/wait.h/conform): Likewise.
10014         (test-xfail-XOPEN2K/ucontext.h/conform): Likewise.
10015         (test-xfail-POSIX2008/signal.h/conform): Likewise.
10016         (test-xfail-POSIX2008/sys/wait.h/conform): Likewise.
10017         (test-xfail-XOPEN2K8/signal.h/conform): Likewise.
10018         (test-xfail-XOPEN2K8/sys/wait.h/conform): Likewise.
10020 2017-08-30  Florian Weimer  <fweimer@redhat.com>
10022         * malloc/dynarray_emplace_enlarge.c
10023         (__libc_dynarray_emplace_enlarge): Set errno on overflow.
10024         * malloc/dynarray_resize.c (__libc_dynarray_resize): Likewise.
10025         * malloc/tst-dynarray.c (test_long_overflow): New function.
10026         (do_test): Call it.
10028 2017-08-30  Florian Weimer  <fweimer@redhat.com>
10030         * malloc/malloc.c (ARENA_CORRUPTION_BIT, arena_is_corrupt)
10031         (set_arena_corrupt): Remove definitions.
10032         (mtrim): Do not check for corrupt arena.
10033         * malloc/arena.c (arena_lock, reused_arena, arena_get_retry):
10034         Likewise.
10036 2017-08-30  Florian Weimer  <fweimer@redhat.com>
10038         [BZ #21754]
10039         * malloc/arena.c (TUNABLE_CALLBACK set_mallopt_check): Do not set
10040         check_action.
10041         (ptmalloc_init): Do not set or use check_action.
10042         * malloc/hooks.c (malloc_check_get_size, realloc_check): Adjust
10043         call to malloc_printerr.  Remove return statement.
10044         (free_check): Likewise.  Remove arena unlock.
10045         (top_check): Update comment.  Adjust call to malloc_printerr.
10046         Remove heap repair code.
10047         * malloc/malloc.c (unlink): Adjust calls to malloc_printerr.
10048         (DEFAULT_CHECK_ACTION, check_action): Remove definitions.
10049         (sysmalloc): Adjust call to malloc_printerr.
10050         (munmap_chunk, __libc_realloc): Likewise.  Remove return
10051         statement.
10052         (_int_malloc, int_realloc): Likewise.  Remove errstr variable.
10053         Remove errout label and corresponding gotos.
10054         (_int_free): Likewise.  Remove arena unlock.
10055         (do_set_mallopt_check): Do not set check_action.
10056         (malloc_printerr): Adjust parameter list.  Do not mark arena as
10057         corrupt.
10058         * manual/memory.texi (Malloc Tunable Parameters): Remove TODO
10059         comment.
10060         * manual/probes.texi (Memory Allocation Probes): Remove
10061         memory_mallopt_check_action.
10063 2017-08-30  Steve Ellcey  <sellcey@cavium.com>
10065         * sysdeps/unix/sysv/linux/aarch64/makecontext.c (__makecontext):
10066         Use pointer to uint64_t instead of long int for sp.
10068 2017-08-30  Florian Weimer  <fweimer@redhat.com>
10070         [BZ #21754]
10071         * malloc/malloc.c (malloc_printerr): Always terminate the process,
10072         without printing a backtrace.  Do not leak any information in the
10073         error message.
10074         * manual/memory.texi (Heap Consistency Checking): Update.
10075         * manual/tunables.texi (Memory Allocation Tunables): Likewise.
10077 2017-08-30  Florian Weimer  <fweimer@redhat.com>
10079         Do not scale NPTL tests with available number of CPUs.
10080         * nptl/tst-cond16.c (count): Set to constant value of 8.
10081         * nptl/tst-cond18.c (count): Likewise.
10083 2017-08-29  Joseph Myers  <joseph@codesourcery.com>
10085         [BZ #22035]
10086         * sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__inline_functions):
10087         Define to take a second argument that is a macro that
10088         concatentates a suffix, not the suffix itself.
10089         (__CONCAT_d): New macro.
10090         (__CONCAT_f): Likewise.
10091         (__CONCAT_l): Likewise.
10093 2017-08-29  Paul Pluzhnikov  <ppluzhnikov@google.com>
10095         * stdlib/tst-atexit-common.c (do_test): Test handler inheritance
10096         by child.
10098 2017-08-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
10099             Aurelien Jarno  <aurelien@aurel32.net>
10100             Maciej W. Rozycki  <macro@imgtec.com>
10102         [BZ #21956]
10103         * sysdeps/unix/sysv/linux/mips/mips32/mips16/Makefile
10104         [subdir = misc] (sysdep_routines): Remove `mips16-syscall5',
10105         `mips16-syscall6' and `mips16-syscall7'.
10106         (CFLAGS-mips16-syscall5.c, CFLAGS-mips16-syscall6.c)
10107         (CFLAGS-mips16-syscall7.c): Remove.
10108         * sysdeps/unix/sysv/linux/mips/mips32/mips16/Versions (libc):
10109         Remove `__mips16_syscall5', `__mips16_syscall6' and
10110         `__mips16_syscall7'.
10111         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall0.c
10112         (__mips16_syscall0): Rename `__mips16_syscall_return' to
10113         `__mips_syscall_return'.
10114         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall1.c
10115         (__mips16_syscall1): Likewise.
10116         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall2.c
10117         (__mips16_syscall2): Likewise.
10118         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall3.c
10119         (__mips16_syscall3): Likewise.
10120         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall4.c
10121         (__mips16_syscall4): Likewise.
10122         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall5.c:
10123         Remove.
10124         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall6.c:
10125         Remove.
10126         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall7.c:
10127         Remove.
10128         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall.h
10129         (__mips16_syscall5): Expand to `__mips_syscall5' rather than
10130         `__mips16_syscall5'.  Remove prototype.
10131         (__mips16_syscall6): Expand to `__mips_syscall6' rather than
10132         `__mips16_syscall6'.  Remove prototype.
10133         (__mips16_syscall7): Expand to `__mips_syscall7' rather than
10134         `__mips16_syscall7'.  Remove prototype.
10135         (__nomips16, __mips16_syscall_return): Move to...
10136         * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h
10137         (__nomips16, __mips_syscall_return): ... here.
10138         [__mips16] (INTERNAL_SYSCALL_NCS): Rename
10139         `__mips16_syscall_return' to `__mips_syscall_return'.
10140         [__mips16] (INTERNAL_SYSCALL_MIPS16): Pass `number' to
10141         `internal_syscall##nr'.
10142         [!__mips16] (INTERNAL_SYSCALL): Pass `SYS_ify (name)' to
10143         `internal_syscall##nr'.
10144         (FORCE_FRAME_POINTER): Remove.
10145         (__mips_syscall5): New prototype.
10146         (internal_syscall5): Rewrite to call `__mips_syscall5'.
10147         (__mips_syscall6): New prototype.
10148         (internal_syscall6): Rewrite to call `__mips_syscall6'.
10149         (__mips_syscall7): New prototype.
10150         (internal_syscall7): Rewrite to call `__mips_syscall7'.
10151         * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall5.S: New file.
10152         * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall6.S: New file.
10153         * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall7.S: New file.
10154         * sysdeps/unix/sysv/linux/mips/mips32/Makefile [subdir = misc]
10155         (sysdep_routines): Add libc-do-syscall.
10156         * sysdeps/unix/sysv/linux/mips/mips32/Versions (libc): Add
10157         `__mips_syscall5', `__mips_syscall6' and `__mips_syscall7'.
10159 2017-08-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
10161         [BZ #21672]
10162         * nptl/allocatestack.c [_STACK_GROWS_DOWN] (setup_stack_prot):
10163         Set to use !NEED_SEPARATE_REGISTER_STACK as well.
10164         (advise_stack_range): New function.
10165         * nptl/pthread_create.c (START_THREAD_DEFN): Move logic to mark
10166         stack non required to advise_stack_range at allocatestack.c
10168 2017-08-29  Szabolcs Nagy  <szabolcs.nagy@arm.com>
10170         * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Use __uint64_t.
10172 2017-08-29  Florian Weimer  <fweimer@redhat.com>
10174         [BZ #22026]
10175         * iconv/gconv_db.c (gen_steps): Decrement step_cnt after resetting
10176         __end_fct.  Mangle __end_fct after setting it to NULL.
10177         * iconv/Makefile (tests): Add tst-gconv-init-failure.
10178         (modules-names, modules-names-tests): Add
10179         tst-gconv-init-failure-mod.
10180         (gconv-modules): New target.
10181         (tst-gconv-init-failure-mod.so): Link against libsupport.
10182         (tst-gconv-init-failure): Depend on gconv-modules,
10183         tst-gconv-init-failure-mod.so.
10184         * iconv/tst-gconv-init-failure-mod.c: New file.
10185         * iconv/tst-gconv-init-failure.c: Likewise.
10186         * iconv/test-gconv-modules: Likewise.
10188 2017-08-29  Florian Weimer  <fweimer@redhat.com>
10190         [BZ #22025]
10191         * iconv/gconv_db.c (free_derivation): Remove redundant
10192         parentheses.
10193         (gen_steps): Unconditionally mangle __btowc_fct after
10194         initialization.
10195         (increment_counter): Likewise.  Do not call init_fct for internal
10196         modules.
10198 2017-08-29  Joseph Myers  <joseph@codesourcery.com>
10200         [BZ #22028]
10201         * math/math.h [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
10202         (_MSUF_): Remove macro.
10203         [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (_MSUFTO_):
10204         Likewise.
10205         [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
10206         (__REDIRFROM_X): New macro.
10207         [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (__REDIRTO_X):
10208         Likewise.
10209         * math/bits/math-finite.h (__REDIRFROM_X): Remove macro.
10210         (__REDIRTO_X): Likewise.
10211         (__MATH_REDIRCALL): Do not pass _MSUF_ or _MSUFTO_ macro
10212         arguments.
10213         (__MATH_REDIRCALL_2): Likewise.
10214         (__MATH_REDIRCALL_INTERNAL): Likewise.
10215         (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
10216         (__REDIRFROM (gamma, , _MSUF_)): Likweise.
10217         (__REDIRFROM (__gamma, _r_finite, _MSUF_)): Likewise.
10218         (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
10219         * math/test-finite-macros.c: New file.
10220         * math/Makefile (tests): Add test-finite-macros.
10221         (CFLAGS-test-finite-macros.c): New variable.
10223 2017-08-29  Patsy Franklin  <pfrankli@redhat.com>
10224             Jeff Law  <law@redhat.com>
10226         [BZ #22025]
10227         Mangle NULL pointers in iconv/gconv.
10228         * iconv/gconv_cache.c (find_module): Demangle init_fct before
10229         checking for NULL. Mangle __btowc_fct if init_fct is non-NULL.
10230         * iconv/gconv_db.c (free_derivation): Check that __shlib_handle
10231         is non-NULL before demangling the end_fct.  Check for NULL
10232         end_fct after demangling.
10233         (__gconv_release_step): Demangle the end_fct before checking
10234         it for NULL.   Remove assert on __shlibc_handle != NULL.
10235         (gen_steps): Don't check btowc_fct for NULL before mangling.
10236         Demangle init_fct before checking for NULL.
10237         (increment_counter): Likewise.
10238         * gconv_dl.c (__gconv_find_shlib): Don't check init_fct or
10239         end_fct for NULL before mangling.
10240         * wcsmbs/btowc.c (__btowc): Demangle btowc_fct before checking
10241         for NULL.
10243 2017-08-29  Akhilesh Kumar  <akhilesh.k@samsung.com>
10245         [BZ #21971]
10246         * locale/iso-639.def: add Morisyen.
10248 2017-08-28  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
10250         [BZ #21930]
10251         * math/math.h [defined __cplusplus && defined __SUPPORT_SNAN__]
10252         (iszero): New C++ implementation that does not use
10253         fpclassify/__MATH_TG/__builtin_types_compatible_p, when
10254         signaling nans are enabled, since __builtin_types_compatible_p
10255         is a C-only feature.
10256         * math/test-math-iszero.cc: When __HAVE_DISTINCT_FLOAT128 is
10257         defined, include ieee754_float128.h for access to the union and
10258         member ieee854_float128.ieee.
10259         [__HAVE_DISTINCT_FLOAT128] (do_test): Call check_float128.
10260         [__HAVE_DISTINCT_FLOAT128] (check_float128): New function.
10261         * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
10262         (CXXFLAGS-test-math-iszero.cc): Add -mfloat128 to the build
10263         options of test-math-zero on powerpc64le.
10265 2017-08-28  H.J. Lu  <hongjiu.lu@intel.com>
10267         * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
10268         Change double to float.
10270 2017-08-28  Joseph Myers  <joseph@codesourcery.com>
10272         * math/math-svid-compat.h [!__ASSEMBLER__]: Make code
10273         unconditional.
10274         * sysdeps/ieee754/s_lib_version.c [!defined SHARED]: Remove
10275         conditional code; define contents only for [LIBM_SVID_COMPAT].
10277 2017-08-28  Florian Weimer  <fweimer@redhat.com>
10279         * sysdeps/unix/sysv/linux/aarch64/Makefile (abi-lp64-options)
10280         (abi-lp64_be-options): Remove.
10281         * sysdeps/unix/sysv/linux/arm/Makefile (abi-soft-options)
10282         (abi-hard-options): Likewise.
10283         * sysdeps/unix/sysv/linux/mips/Makefile(abi-o32_soft-options)
10284         (abi-o32_hard-options, abi-o32_soft_2008-options)
10285         (abi-o32_hard_2008-options, abi-n32_soft-options)
10286         (abi-n32_hard-options, abi-n32_soft_2008-options)
10287         (abi-n32_hard_2008-options, abi-n64_soft-options)
10288         (abi-n64_hard-options, abi-n64_soft_2008-options)
10289         (abi-n64_hard_2008-options): Likewise.
10290         * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-32-options)
10291         (abi-64-v1-options, abi-64-v2-options): Likewise.
10292         * sysdeps/unix/sysv/linux/s390/Makefile (abi-32-options)
10293         (abi-64-options): Likewise.
10294         * sysdeps/unix/sysv/linux/sparc/Makefile (abi-32-options)
10295         (abi-64-options): Likewise.
10296         * sysdeps/unix/sysv/linux/tile/tilegx/Makefile (abi-32-options)
10297         (abi-64-options): Likewise.
10298         * sysdeps/unix/sysv/linux/x86/Makefile (abi-32-options)
10299         (abi-64-options, abi-x32-options): Likewise.
10301 2017-08-28  Florian Weimer  <fweimer@redhat.com>
10303         Store supported list of SYS_* system calls in the source tree.
10304         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
10305         (bits/syscall.h): Generate from list file.
10306         [$(subdir) = misc] (before-compile): Add bits/syscall.h.
10307         [$(subdir) = misc] (tests): Add tst-syscall-list.
10308         [$(subdir) = misc] (tests-special): Add tst-syscall-list.out
10309         [$(subdir) = misc] (tst-syscall-list-macros.list)
10310         [$(subdir) = misc] (tst-syscall-list-nr.list)
10311         (tst-syscall-list-sys.list): Helper targets for new
10312         tst-syscall-list test.
10313         [$(subdir) = misc] (tst-syscall-list.out): Run test script
10314         tst-syscall-list.sh.
10315         [$(subdir) = misc] (bits/syscall%h, bits/syscall%d): Remove
10316         target. Do not include bits/syscall.d.
10317         [$(subdir) = misc] (generated): Do not update.
10318         * sysdeps/unix/sysv/linux/syscall-names.list: New file.
10319         * sysdeps/unix/sysv/linux/gen-syscall-h.awk: Likewise.
10320         * sysdeps/unix/sysv/linux/filter-nr-syscalls.awk: Likewise.
10321         * sysdeps/unix/sysv/linux/tst-syscall-list.sh: Likewise.
10323 2017-08-27  Paul Pluzhnikov  <ppluzhnikov@google.com>
10325         * stdlib/Makefile (tst-atexit, tst-at_quick_exit): New tests.
10326         (tst-cxa_atexit, tst-on_exit): Likewise.
10327         * stdlib/Makefile (tests): Add tst-atexit, tst-at_quick_exit,
10328         tst-cxa_atexit, and tst-on_exit.
10329         * stdlib/tst-atexit-common.c: New file.
10330         * stdlib/tst-atexit.c: New file.
10331         * stdlib/tst-at_quick_exit.c: New file.
10332         * stdlib/tst-cxa_atexit.c: New file.
10333         * stdlib/tst-on_exit.c: New file.
10335 2017-08-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
10337         * sysdeps/mach/hurd/bits/sysmacros.h: New file.
10338         * mach/stack_chk_fail_local.c: New file.
10339         * hurd/stack_chk_fail_local.c: New file.
10340         * mach/Machrules ($(interface-library)-routines): Add
10341         stack_chk_fail_local.
10342         * mach/Makefile (CFLAGS-mach_init.o, CFLAGS-RPC_vm_statistics.o,
10343         CFLAGS-RPC_vm_map.o, CFLAGS-RPC_vm_protect.o,
10344         CFLAGS-RPC_i386_set_gdt.o, CFLAGS-RPC_i386_set_ldt.o,
10345         CFLAGS-RPC_task_get_special_port.o): Add $(no-stack-protector).
10346         * hurd/Makefile (CFLAGS-hurdstartup.o,
10347         CFLAGS-RPC_exec_startup_get_info.o): Add $(no-stack-protector).
10349 2017-08-25  H.J. Lu  <hongjiu.lu@intel.com>
10351         * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
10352         (index_cpu_*, index_arch_*): Removed.
10354 2017-08-25  Szabolcs Nagy  <szabolcs.nagy@arm.com>
10356         * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h (elf_greg_t):
10357         Use uint64_t instead of unsigned long.
10359 2017-08-25  Joseph Myers  <joseph@codesourcery.com>
10361         * math/tgmath.h [__HAVE_FLOAT128]: Change conditional to
10362         [__HAVE_DISTINCT_FLOAT128].
10364         * math/math.h (_MSUFTO_): Define and undefine for each inclusion
10365         of <bits/math-finite.h>.
10366         (__MATH_DECLARING_LDOUBLE): Do not define and undefine for each
10367         inclusion of <bits/math-finite.h>.
10368         * math/bits/math-finite.h (__REDIRTO_X): Do not define
10369         conditionally on [__MATH_DECLARING_LDOUBLE && defined
10370         __NO_LONG_DOUBLE_MATH].
10371         (__MATH_REDIRCALL): Use _MSUFTO_ in __REDIRTO call.
10372         (__MATH_REDIRCALL_2): Likewise.
10373         (__MATH_REDIRCALL_INTERNAL): Likewise.
10374         (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
10375         (__REDIRFROM (gamma, , _MSUF_)): Likewise.
10376         (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
10378         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-power5.S:
10379         Remove file.
10380         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-ppc32.S:
10381         Likewise.
10382         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat.c:
10383         Likewise.
10384         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-power5.S:
10385         Likewise.
10386         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-ppc32.S:
10387         Likewise.
10388         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat.c:
10389         Likewise.
10390         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
10391         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
10392         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
10393         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
10394         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
10395         (libm-sysdep-routines): Remove w_sqrt_compat-power5,
10396         w_sqrt_compat-ppc32, w_sqrtf_compat-power5 and
10397         w_sqrtf_compat-ppc32.
10399 2017-08-24  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
10401         * math/math.h [defined __cplusplus] (issignaling): In the long
10402         double case, call __issignalingl only if __NO_LONG_DOUBLE_MATH
10403         is not defined.  Call __issignaling, otherwise.
10405 2017-08-24  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
10407         * sysdeps/unix/make-syscalls.sh: Remove cancellable tagging for
10408         syscall definitions and replace __builtin_expect with __glibc_likely.
10409         * sysdeps/unix/syscall-template.S: Update comment about cancellable
10410         syscall.
10411          (SYSCALL_CANCELLABLE): Removedefinition
10412         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (PSEUDO): Remove
10413         definition.
10414         (PSEUDO_END): Likewise.
10415         [IS_IN (libpthread)] (CENABLE): Likewise.
10416         [IS_IN (libpthread)] (CDISABLE): Likewise.
10417         [IS_IN (libc)] (CENABLE): Likewise.
10418         [IS_IN (libc)] (CENABLE): Likewise.
10419         [IS_IN (librt)] (CDISABLE): Likewise.
10420         [IS_IN (librt)] (CDISABLE): Likewise.
10421         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
10422         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (PSEUDO): Remove
10423         definition.
10424         (PSEUDO_END): Likewise.
10425         [IS_IN (libpthread)] (__local_enable_asynccancel): Likewise.
10426         [IS_IN (libpthread)] (__local_disable_asynccancel): Likewise.
10427         [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
10428         [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
10429         [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
10430         [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
10431         (CENABLE): Likewise.
10432         (CDISABLE): Likewise.
10433         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
10434         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (PSEUDO): Remove
10435         defintion.
10436         (PSEUDO_END): Likewise.
10437         [IS_IN (libpthread)] (CENABLE): Likewise.
10438         [IS_IN (libpthread)] (CDISABLE): Likewise.
10439         [IS_IN (libc)] (CENABLE): Likewise.
10440         [IS_IN (libc)] (CENABLE): Likewise.
10441         [IS_IN (librt)] (CDISABLE): Likewise.
10442         [IS_IN (librt)] (CDISABLE): Likewise.
10443         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
10444         * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (PSEUDO): Remove
10445         definition.
10446         (PSEUDO_END): Likewise.
10447         [IS_IN (libpthread)] (CENABLE): Likewise.
10448         [IS_IN (libpthread)] (CDISABLE): Likewise.
10449         [IS_IN (libc)] (CENABLE): Likewise.
10450         [IS_IN (libc)] (CENABLE): Likewise.
10451         [IS_IN (librt)] (CDISABLE): Likewise.
10452         [IS_IN (librt)] (CDISABLE): Likewise.
10453         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
10454         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (PSEUDO): Remove
10455         definition.
10456         (PSEUDO_END): Likewise.
10457         [IS_IN (libpthread)] (CENABLE): Likewise.
10458         [IS_IN (libpthread)] (CDISABLE): Likewise.
10459         [IS_IN (libc)] (CENABLE): Likewise.
10460         [IS_IN (libc)] (CENABLE): Likewise.
10461         [IS_IN (librt)] (CDISABLE): Likewise.
10462         [IS_IN (librt)] (CDISABLE): Likewise.
10463         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
10464         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (PSEUDO): Remove
10465         definition.
10466         (PSEUDO_END): Likewise.
10467         [IS_IN (libpthread)] (CENABLE): Likewise.
10468         [IS_IN (libpthread)] (CDISABLE): Likewise.
10469         [IS_IN (libc)] (CENABLE): Likewise.
10470         [IS_IN (libc)] (CENABLE): Likewise.
10471         [IS_IN (librt)] (CDISABLE): Likewise.
10472         [IS_IN (librt)] (CDISABLE): Likewise.
10473         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
10474         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (PSEUDO): Remove
10475         definition.
10476         (PSEUDO_END): Likewise.
10477         [IS_IN (libpthread)] (CENABLE): Likewise.
10478         [IS_IN (libpthread)] (CDISABLE): Likewise.
10479         [IS_IN (libc)] (CENABLE): Likewise.
10480         [IS_IN (libc)] (CENABLE): Likewise.
10481         [IS_IN (librt)] (CDISABLE): Likewise.
10482         [IS_IN (librt)] (CDISABLE): Likewise.
10483         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
10484         * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h (PSEUDO): Remove
10485         definition.
10486         (PSEUDO_END): Likewise.
10487         [IS_IN (libpthread)] (CENABLE): Likewise.
10488         [IS_IN (libpthread)] (CDISABLE): Likewise.
10489         [IS_IN (libc)] (CENABLE): Likewise.
10490         [IS_IN (libc)] (CENABLE): Likewise.
10491         [IS_IN (librt)] (CDISABLE): Likewise.
10492         [IS_IN (librt)] (CDISABLE): Likewise.
10493         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
10494         * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h (PSEUDO):
10495         Remove definition.
10496         (PSEUDO_END): Likewise.
10497         [IS_IN (libpthread)] (CENABLE): Likewise.
10498         [IS_IN (libpthread)] (CDISABLE): Likewise.
10499         [IS_IN (libc)] (CENABLE): Likewise.
10500         [IS_IN (libc)] (CENABLE): Likewise.
10501         [IS_IN (librt)] (CDISABLE): Likewise.
10502         [IS_IN (librt)] (CDISABLE): Likewise.
10503         (SINGLE_THREAD_P): Likewise.
10504         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (PSEUDO): Remove
10505         definition.
10506         (PSEUDO_END): Likewise.
10507         [IS_IN (libpthread)] (CENABLE): Likewise.
10508         [IS_IN (libpthread)] (CDISABLE): Likewise.
10509         [IS_IN (libc)] (CENABLE): Likewise.
10510         [IS_IN (libc)] (CENABLE): Likewise.
10511         [IS_IN (librt)] (CDISABLE): Likewise.
10512         [IS_IN (librt)] (CDISABLE): Likewise.
10513         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
10514         * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (PSEUDO): Remove
10515         definition.
10516         (PSEUDO_END): Likewise.
10517         [IS_IN (libpthread)] (CENABLE): Likewise.
10518         [IS_IN (libpthread)] (CDISABLE): Likewise.
10519         [IS_IN (libc)] (CENABLE): Likewise.
10520         [IS_IN (libc)] (CENABLE): Likewise.
10521         [IS_IN (librt)] (CDISABLE): Likewise.
10522         [IS_IN (librt)] (CDISABLE): Likewise.
10523         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
10524         * sysdeps/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Remove file.
10525         * sysdeps/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
10526         * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: New file.
10527         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h (PSEUDO): Remove
10528         definition.
10529         (PSEUDO_END): Likewise.
10530         [IS_IN (libpthread)] (CENABLE): Likewise.
10531         [IS_IN (libpthread)] (CDISABLE): Likewise.
10532         [IS_IN (libc)] (CENABLE): Likewise.
10533         [IS_IN (libc)] (CENABLE): Likewise.
10534         [IS_IN (librt)] (CDISABLE): Likewise.
10535         [IS_IN (librt)] (CDISABLE): Likewise.
10536         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
10537         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h (PSEUDO): Remove
10538         definition.
10539         (PSEUDO_END): Likewise.
10540         [IS_IN (libpthread)] (CENABLE): Likewise.
10541         [IS_IN (libpthread)] (CDISABLE): Likewise.
10542         [IS_IN (libc)] (CENABLE): Likewise.
10543         [IS_IN (libc)] (CENABLE): Likewise.
10544         [IS_IN (librt)] (CDISABLE): Likewise.
10545         [IS_IN (librt)] (CDISABLE): Likewise.
10546         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
10547         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (PSEUDO): Remove
10548         definition.
10549         (PSEUDO_END): Likewise.
10550         [IS_IN (libpthread)] (CENABLE): Likewise.
10551         [IS_IN (libpthread)] (CDISABLE): Likewise.
10552         [IS_IN (libc)] (CENABLE): Likewise.
10553         [IS_IN (libc)] (CENABLE): Likewise.
10554         [IS_IN (librt)] (CDISABLE): Likewise.
10555         [IS_IN (librt)] (CDISABLE): Likewise.
10556         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
10557         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Remove file.
10558         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
10559         * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: New file.
10560         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (PSEUDO): Remove
10561         definition.
10562         (PSEUDO_END): Likewise.
10563         [IS_IN (libpthread)] (CENABLE): Likewise.
10564         [IS_IN (libpthread)] (CDISABLE): Likewise.
10565         [IS_IN (libc)] (CENABLE): Likewise.
10566         [IS_IN (libc)] (CENABLE): Likewise.
10567         [IS_IN (librt)] (CDISABLE): Likewise.
10568         [IS_IN (librt)] (CDISABLE): Likewise.
10569         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
10570         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (PSEUDO): Remove
10571         definition.
10572         (PSEUDO_END): Likewise.
10573         [IS_IN (libpthread)] (CENABLE): Likewise.
10574         [IS_IN (libpthread)] (CDISABLE): Likewise.
10575         [IS_IN (libc)] (CENABLE): Likewise.
10576         [IS_IN (libc)] (CENABLE): Likewise.
10577         [IS_IN (librt)] (CDISABLE): Likewise.
10578         [IS_IN (librt)] (CDISABLE): Likewise.
10579         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
10581 2017-08-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
10583         * sysdeps/ieee754/dbl-64/Makefile: Don't override CFLAGS.
10585 2017-08-23  H.J. Lu  <hongjiu.lu@intel.com>
10587         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
10589 2017-08-23  H.J. Lu  <hongjiu.lu@intel.com>
10591         [BZ #21982]
10592         * string/stratcliff.c (do_test): Declare size, nchars, inner,
10593         middle and outer with size_t instead of int.  Repleace %d and
10594         %Zd with %zu in printf.  Update "MAX (0, nchars - 128)" and
10595         "MAX (outer, nchars - 64)" to support unsigned outer and
10596         nchars.  Also exit loop when outer == 0.
10598 2017-08-23  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
10600         * include/fcntl.h (__fcntl_nocancel): Remove definition.
10601         * include/signal.h (__sigsuspend_nocancel): Likewise.
10602         * include/time.h (__nanosleep_nocancel): Likewise.
10603         * sysdeps/generic/not-cancel.h (__fcntl_nocancel): New macro.
10604         * login/utmp_file.c: Include non cancellable syscall header.
10605         * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): New
10606         prototype.
10608 2017-08-23  H.J. Lu  <hongjiu.lu@intel.com>
10610         * sysdeps/x86_64/fpu/svml_d_sincos8_core.S: Replace AVX512F
10611         .byte sequences with AVX512F instructions.
10612         * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Likewise.
10613         * sysdeps/x86_64/fpu/svml_s_sincosf16_core.S: Likewise.
10614         * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Likewise.
10615         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S:
10616         Likewise.
10617         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
10618         Likewise.
10620 2017-08-22  Szabolcs Nagy  <szabolcs.nagy@arm.com>
10621             Steve Ellcey  <sellcey@cavium.com>
10623         * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic):
10624         Use PTR_REG macro in cmp instruction.
10626 2017-08-22  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
10628         * include/libc-symbols.h: [!defined HAVE_GCC_IFUNC] (__ifunc):
10629         Change the return type of the ifunc resolver to match the return
10630         type of the target function.
10632 2017-08-22  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
10634         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (pread64): Remove.
10635         (preadv64): Likewise.
10636         (pwrite64(: Likewise.
10637         (pwritev64): Likewise.
10639         * sysdeps/unix/sysv/linux/x86_64/sysdep.h
10640         (INTERNAL_SYSCALL_NCS_TYPES): Remove define.
10641         (LOAD_ARGS_0): Likewise.
10642         (LOAD_ARGS_1): Likewise.
10643         (LOAD_ARGS_2): Likewise.
10644         (LOAD_ARGS_3): Likewise.
10645         (LOAD_ARGS_4): Likewise.
10646         (LOAD_ARGS_5): Likewise.
10647         (LOAD_ARGS_6): Likewise.
10648         (LOAD_REGS_0): Likewise.
10649         (LOAD_REGS_1): Likewise.
10650         (LOAD_REGS_2): Likewise.
10651         (LOAD_REGS_3): Likewise.
10652         (LOAD_REGS_4): Likewise.
10653         (LOAD_REGS_5): Likewise.
10654         (LOAD_REGS_6): Likewise.
10655         (ASM_ARGS_0): Likewise.
10656         (ASM_ARGS_1): Likewise.
10657         (ASM_ARGS_2): Likewise.
10658         (ASM_ARGS_3): Likewise.
10659         (ASM_ARGS_4): Likewise.
10660         (ASM_ARGS_5): Likewise.
10661         (ASM_ARGS_6): Likewise.
10662         (LOAD_ARGS_TYPES_1): Likewise.
10663         (LOAD_ARGS_TYPES_2): Likewise.
10664         (LOAD_ARGS_TYPES_3): Likewise.
10665         (LOAD_ARGS_TYPES_4): Likewise.
10666         (LOAD_ARGS_TYPES_5): Likewise.
10667         (LOAD_ARGS_TYPES_6): Likewise.
10668         (LOAD_REGS_TYPES_1): Likewise.
10669         (LOAD_REGS_TYPES_2): Likewise.
10670         (LOAD_REGS_TYPES_3): Likewise.
10671         (LOAD_REGS_TYPES_4): Likewise.
10672         (LOAD_REGS_TYPES_5): Likewise.
10673         (LOAD_REGS_TYPES_6): Likewise.
10674         (TYPEFY): New define.
10675         (ARGIFY): Likewise.
10676         (internal_syscall0): Likewise.
10677         (internal_syscall1): Likewise.
10678         (internal_syscall2): Likewise.
10679         (internal_syscall3): Likewise.
10680         (internal_syscall4): Likewise.
10681         (internal_syscall5): Likewise.
10682         (internal_syscall6): Likewise.
10683         * sysdeps/unix/sysv/linux/x86_64/x32/times.c
10684         (INTERNAL_SYSCALL_NCS): Remove define.
10685         (internal_syscall1): Add define.
10687 2017-08-22  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
10689         * math/w_remainder_compat.c: Remove duplicate inclusion of
10690         math-svid-compat.h.
10691         * math/w_remainderf_compat.c: Likewise.
10692         * math/w_remainderl_compat.c: Likewise.
10694 2017-08-22  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
10696         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10698 2017-08-22  Joseph Myers  <joseph@codesourcery.com>
10700         [BZ #21684]
10701         * math/tgmath.h (__floating_type): Simplify definitions.
10702         (__real_integer_type): New macro.
10703         (__complex_integer_type): Likewise.
10704         (__expr_is_real): Likewise.
10705         (__tgmath_real_type_sub): Update comment to describe handling of
10706         complex types.
10707         (__tgmath_complex_type_sub): New macro.
10708         (__tgmath_complex_type): Likewise.
10709         [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
10710         (__TGMATH_CF128): Use __expr_is_real.
10711         (__TGMATH_UNARY_REAL_IMAG): Use __tgmath_complex_type and
10712         __expr_is_real.
10713         (__TGMATH_BINARY_REAL_IMAG): Likewise.
10714         (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Use __expr_is_real.
10715         * math/gen-tgmath-tests.py (Type.create_type): Create complex
10716         integer types.
10718 2017-08-22  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
10720         * sysdeps/generic/not-cancel.h (sigsuspend_not_cancel): Remove
10721         macro.
10722         * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Remove
10723         alias.
10724         * sysdeps/unix/sysv/linux/not-cancel.h (sigsuspend_not_cancel):
10725         Likewise.
10727         * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Replace
10728         nanosleep_not_cancel with __nanosleep_nocancel.
10729         * sysdeps/generic/not-cancel.h (nanosleep_not_cancel): Remove macro.
10730         (__nanosleep_nocancel): New macro.
10731         * sysdeps/unix/sysv/linux/nanosleep.c (__nanosleep_nocancel): New
10732         function.
10733         * sysdeps/unix/sysv/linux/not-cancel.h (nanosleep_not_cancel): Remove
10734         macro.
10735         (__nanosleep_nocancel): New prototype.
10737         * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full): Replace
10738         pause_not_cancel with __pause_nocancel.
10739         * sysdeps/generic/not-cancel.h (pause_not_cancel): Remove macro.
10740         (__pause_nocancel): New macro.
10741         * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): Remove
10742         macro.
10743         (__pause_nocancel): New prototype.
10744         * sysdeps/unix/sysv/linux/pause.c (__pause_nocancel): New function.
10746 2017-08-22  Martin Sebor  <msebor@redhat.com>
10748         * include/libc-symbols.h (__ifunc_resolver): Declare resolver
10749         to return a pointer to the same type as the target function.
10751 2017-08-22  H.J. Lu  <hongjiu.lu@intel.com>
10753         [BZ #18822]
10754         [BZ #21986]
10755         * include/printf.h (__printf_fphex): Add attribute_hidden.
10756         (__guess_grouping): New prototype.
10757         * stdio-common/printf_fp.c (__guess_grouping): Removed.
10758         * stdio-common/reg-printf.c (__register_printf_specifier): Add
10759         libc_hidden_proto and libc_hidden_def.
10760         * stdlib/strfmon_l.c (__guess_grouping): Removed.
10761         (__vstrfmon_l): Remove the third argument passed to
10762         __guess_grouping.
10764 2017-08-22  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
10766         * math/math.h [defined __cplusplus] (issignaling): Provide a C++
10767         definition for issignaling that does not rely on __MATH_TG,
10768         since __MATH_TG uses __builtin_types_compatible_p, which is only
10769         available in C mode.
10770         (CFLAGS-test-math-issignaling.cc): New variable.
10771         * math/Makefile [CXX] (tests): Add test-math-issignaling.
10772         * math/test-math-issignaling.cc: New test for C++ implementation
10773         of type-generic issignaling.
10774         * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
10775         (CXXFLAGS-test-math-issignaling.cc): Add -mfloat128 to the build
10776         options of test-math-issignaling on powerpc64le.
10778 2017-08-22  H.J. Lu  <hongjiu.lu@intel.com>
10780         * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
10781         building libc.a.
10782         (hidden_proto): Likewise.
10783         (hidden_tls_proto): Likewise.
10784         (__hidden_proto): Likewise.
10786 2017-08-22  Florian Weimer  <fweimer@redhat.com>
10788         math: Statically link tests of internal functionality.
10789         * math/Makefile (tests): Remove atest-exp, atest-sincos,
10790         atest-exp2.
10791         (tests-static): Add atest-exp, atest-sincos, atest-exp2.
10792         (gmp-objs): Remove assignment.
10793         (atest-exp, atest-sincos, atest-exp2): Remove targets.
10795 2017-08-22  Joseph Myers  <joseph@codesourcery.com>
10797         [BZ #21987]
10798         * sysdeps/unix/sysv/linux/sparc/bits/long-double.h: Remove file
10799         and copy to ...
10800         * sysdeps/unix/sysv/linux/sparc/sparc32/bits/long-double.h:
10801         ... here.
10802         * sysdeps/unix/sysv/linux/sparc/sparc64/bits/long-double.h:
10803         ... and here.
10805         * assert/Makefile [$(have-cxx-thread_local)]: Move conditional
10806         variable definitions above inclusion of ../Rules.
10808 2017-08-21  Joseph Myers  <joseph@codesourcery.com>
10810         * sysdeps/ieee754/k_standard.c (__kernel_standard): Add default
10811         case calling __builtin_unreachable.
10813 2017-08-21  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
10815         * libio/ioopen.c (_IO_waitpid): Replace waitpid_not_cancel with
10816         __waitpid_nocancel.
10817         * sysdeps/generic/not-cancel.h (waitpid_not_cancel): Remove macro.
10818         (__waitpid_nocancel): New macro.
10819         * sysdeps/unix/sysv/linux/not-cancel.h (waitpid_not_cancel): Remove
10820         macro.
10821         (__waitpid_nocancel): Replace macro with a function.
10822         * sysdeps/unix/sysv/linux/waitpid.c (__waitpid_nocancel): New
10823         function.
10825         * login/utmp_file.c (timeout_handler): Replace fcntl_not_cancel with
10826         __fcntl_nocancel.
10827         * sysdeps/generic/not-cancel.h (fcntl_not_cancel): Remove macro.
10828         * sysdeps/unix/sysv/linux/not-cancel.h (fcntl_not_cancel): Likewise.
10830         * gmon/gmon.c (write_hist): Replace writev_not_cancel_no_status with
10831         __writev_nocancel_nostatus.
10832         (write_call_graph): Likewise.
10833         (write_bb_counts): Likewise.
10834         * resolv/herror.c (herror): Likewise.
10835         * sysdeps/generic/not-cancel.h (writev_not_cancel_no_status): Remove
10836         macro.
10837         (__writev_nocancel_nostatus): New macro.
10838         * sysdeps/unix/sysv/linux/not-cancel.h (writev_not_cancel_no_status):
10839         Remove macro.
10840         (__writev_nocancel_nostatus): New function.
10842 2017-08-21  Joseph Myers  <joseph@codesourcery.com>
10844         Revert:
10845         2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
10847         * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
10848         building libc.a.
10849         (hidden_proto): Likewise.
10850         (hidden_tls_proto): Likewise.
10851         (__hidden_proto): Likewise.
10853         [BZ #21973]
10854         * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Remove file.
10855         * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
10856         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
10857         Likewise.
10858         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat.S:
10859         Likewise.
10860         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
10861         Likewise.
10862         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat.S:
10863         Likewise.
10864         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S : Likewise.
10865         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
10866         * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
10867         * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
10868         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
10869         GLIBC_2.0 sqrtl symbol.
10871         * math/math.h [__USE_MISC] (_LIB_VERSION_TYPE): Remove.
10872         [__USE_MISC] (_LIB_VERSION): Likewise.
10873         [__USE_MISC] (struct exception): Likewise.
10874         [__USE_MISC] (matherr): Likewise.
10875         [__USE_MISC] (DOMAIN): Likewise.
10876         [__USE_MISC] (SING): Likewise.
10877         [__USE_MISC] (OVERFLOW): Likewise.
10878         [__USE_MISC] (UNDERFLOW): Likewise.
10879         [__USE_MISC] (TLOSS): Likewise.
10880         [__USE_MISC] (PLOSS): Likewise.
10881         [__USE_MISC] (HUGE): Likewise.
10882         [__USE_XOPEN] (MAXFLOAT): Define even if [__USE_MISC].
10883         * math/math-svid-compat.h: New file.
10884         * conform/linknamespace.pl (@whitelist): Remove matherr, matherrf
10885         and matherrl.
10886         * include/math.h [!_ISOMAC] (__matherr): Remove.
10887         * manual/arith.texi (FP Exceptions): Do not document matherr.
10888         * math/Makefile (tests): Change test-matherr to test-matherr-3.
10889         (tests-internal): New variable.
10890         (install-lib): Do not add libieee.a.
10891         (non-lib.a): Likewise.
10892         (extra-objs): Do not add libieee.a and ieee-math.o.
10893         (CPPFLAGS-s_lib_version.c): Remove variable.
10894         ($(objpfx)libieee.a): Remove rule.
10895         ($(addprefix $(objpfx), $(tests-internal)): Depend on $(libm).
10896         * math/ieee-math.c: Remove.
10897         * math/libm-test-support.c (matherr): Remove.
10898         * math/test-matherr.c: Use <support/test-driver.c>.  Add copyright
10899         and license notices.  Include <math-svid-compat.h> and
10900         <shlib-compat.h>.
10901         (matherr): Undefine as macro.  Use compat_symbol_reference.
10902         (_LIB_VERSION): Likewise.
10903         * math/test-matherr-2.c: New file.
10904         * math/test-matherr-3.c: Likewise.
10905         * sysdeps/generic/math_private.h (__kernel_standard): Remove
10906         declaration.
10907         (__kernel_standard_f): Likewise.
10908         (__kernel_standard_l): Likewise.
10909         * sysdeps/ieee754/s_lib_version.c: Do not include <math.h> or
10910         <math_private.h>.  Include <math-svid-compat.h>.
10911         (_LIB_VERSION): Undefine as macro.
10912         (_LIB_VERSION_INTERNAL): Always initialize to _POSIX_.  Define
10913         only if [LIBM_SVID_COMPAT || !defined SHARED].  If
10914         [LIBM_SVID_COMPAT], use compat_symbol.
10915         * sysdeps/ieee754/s_matherr.c: Do not include <math.h> or
10916         <math_private.h>.  Include <math-svid-compat.h>.
10917         (matherr): Undefine as macro.
10918         (__matherr): Define only if [LIBM_SVID_COMPAT].  Use
10919         compat_symbol.
10920         * sysdeps/ia64/fpu/libm_error.c: Include <math-svid-compat.h>.
10921         [_LIBC && LIBM_SVID_COMPAT] (matherrf): Use
10922         compat_symbol_reference.
10923         [_LIBC && LIBM_SVID_COMPAT] (matherrl): Likewise.
10924         [_LIBC && !LIBM_SVID_COMPAT] (matherrf): Define as macro.
10925         [_LIBC && !LIBM_SVID_COMPAT] (matherrl): Likewise.
10926         * sysdeps/ia64/fpu/libm_support.h: Include <math-svid-compat.h>.
10927         (MATHERR_D): Remove declaration.
10928         [!_LIBC] (_LIB_VERSION_TYPE): Likewise
10929         [!LIBM_BUILD] (_LIB_VERSIONIMF): Likewise.
10930         [LIBM_BUILD] (pmatherrf): Likewise.
10931         [LIBM_BUILD] (pmatherr): Likewise.
10932         [LIBM_BUILD] (pmatherrl): Likewise.
10933         (DOMAIN): Likewise.
10934         (SING): Likewise.
10935         (OVERFLOW): Likewise.
10936         (UNDERFLOW): Likewise.
10937         (TLOSS): Likewise.
10938         (PLOSS): Likewise.
10939         * sysdeps/ia64/fpu/s_matherrf.c: Include <math-svid-compat.h>.
10940         (__matherrf): Define only if [LIBM_SVID_COMPAT].  Use
10941         compat_symbol.
10942         * sysdeps/ia64/fpu/s_matherrl.c: Include <math-svid-compat.h>.
10943         (__matherrl): Define only if [LIBM_SVID_COMPAT].  Use
10944         compat_symbol.
10945         * math/lgamma-compat.h: Include <math-svid-compat.h>.
10946         * math/w_acos_compat.c: Likewise.
10947         * math/w_acosf_compat.c: Likewise.
10948         * math/w_acosh_compat.c: Likewise.
10949         * math/w_acoshf_compat.c: Likewise.
10950         * math/w_acoshl_compat.c: Likewise.
10951         * math/w_acosl_compat.c: Likewise.
10952         * math/w_asin_compat.c: Likewise.
10953         * math/w_asinf_compat.c: Likewise.
10954         * math/w_asinl_compat.c: Likewise.
10955         * math/w_atan2_compat.c: Likewise.
10956         * math/w_atan2f_compat.c: Likewise.
10957         * math/w_atan2l_compat.c: Likewise.
10958         * math/w_atanh_compat.c: Likewise.
10959         * math/w_atanhf_compat.c: Likewise.
10960         * math/w_atanhl_compat.c: Likewise.
10961         * math/w_cosh_compat.c: Likewise.
10962         * math/w_coshf_compat.c: Likewise.
10963         * math/w_coshl_compat.c: Likewise.
10964         * math/w_exp10_compat.c: Likewise.
10965         * math/w_exp10f_compat.c: Likewise.
10966         * math/w_exp10l_compat.c: Likewise.
10967         * math/w_exp2_compat.c: Likewise.
10968         * math/w_exp2f_compat.c: Likewise.
10969         * math/w_exp2l_compat.c: Likewise.
10970         * math/w_fmod_compat.c: Likewise.
10971         * math/w_fmodf_compat.c: Likewise.
10972         * math/w_fmodl_compat.c: Likewise.
10973         * math/w_hypot_compat.c: Likewise.
10974         * math/w_hypotf_compat.c: Likewise.
10975         * math/w_hypotl_compat.c: Likewise.
10976         * math/w_j0_compat.c: Likewise.
10977         * math/w_j0f_compat.c: Likewise.
10978         * math/w_j0l_compat.c: Likewise.
10979         * math/w_j1_compat.c: Likewise.
10980         * math/w_j1f_compat.c: Likewise.
10981         * math/w_j1l_compat.c: Likewise.
10982         * math/w_jn_compat.c: Likewise.
10983         * math/w_jnf_compat.c: Likewise.
10984         * math/w_jnl_compat.c: Likewise.
10985         * math/w_lgamma_main.c: Likewise.
10986         * math/w_lgamma_r_compat.c: Likewise.
10987         * math/w_lgammaf_main.c: Likewise.
10988         * math/w_lgammaf_r_compat.c: Likewise.
10989         * math/w_lgammal_main.c: Likewise.
10990         * math/w_lgammal_r_compat.c: Likewise.
10991         * math/w_log10_compat.c: Likewise.
10992         * math/w_log10f_compat.c: Likewise.
10993         * math/w_log10l_compat.c: Likewise.
10994         * math/w_log2_compat.c: Likewise.
10995         * math/w_log2f_compat.c: Likewise.
10996         * math/w_log2l_compat.c: Likewise.
10997         * math/w_log_compat.c: Likewise.
10998         * math/w_logf_compat.c: Likewise.
10999         * math/w_logl_compat.c: Likewise.
11000         * math/w_pow_compat.c: Likewise.
11001         * math/w_powf_compat.c: Likewise.
11002         * math/w_powl_compat.c: Likewise.
11003         * math/w_remainder_compat.c: Likewise.
11004         * math/w_remainderf_compat.c: Likewise.
11005         * math/w_remainderl_compat.c: Likewise.
11006         * math/w_scalb_compat.c: Likewise.
11007         * math/w_scalbf_compat.c: Likewise.
11008         * math/w_scalbl_compat.c: Likewise.
11009         * math/w_sinh_compat.c: Likewise.
11010         * math/w_sinhf_compat.c: Likewise.
11011         * math/w_sinhl_compat.c: Likewise.
11012         * math/w_sqrt_compat.c: Likewise.
11013         * math/w_sqrtf_compat.c: Likewise.
11014         * math/w_sqrtl_compat.c: Likewise.
11015         * math/w_tgamma_compat.c: Likewise.
11016         * math/w_tgammaf_compat.c: Likewise.
11017         * math/w_tgammal_compat.c: Likewise.
11018         * sysdeps/ieee754/dbl-64/w_exp_compat.c: Likewise.
11019         * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
11020         * sysdeps/ieee754/k_standard.c: Likewise.
11021         * sysdeps/ieee754/k_standardf.c: Likewise.
11022         * sysdeps/ieee754/k_standardl.c: Likewise.
11023         * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
11024         * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
11025         * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
11026         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
11027         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
11028         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
11029         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
11030         * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Likewise.
11031         * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
11032         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
11033         Likewise.
11034         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
11035         Likewise.
11036         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S: Likewise.
11037         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
11038         * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
11039         * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
11041 2017-08-21  Florian Weimer  <fweimer@redhat.com>
11043         [BZ #21864]
11044         Do not compile benchmark helper objects with -DMODULE_NAME=libc.
11045         * benchtests/Makefile (others-extras): Set to $(bench-extra-objs).
11046         Move before inclusion of ../Rules.
11048 2017-08-21  Florian Weimer  <fweimer@redhat.com>
11050         [BZ #21972]
11051         * assert/assert.h (assert): Use static_cast (bool) for C++.
11052         Use the ternary operator in the warning branch for GNU C.
11053         * assert/Makefile (tests): Add tst-assert-c++, tst-assert-g++.
11054         (CFLAGS-tst-assert-c++.o): Compile in C++11 mode.
11055         (CFLAGS-tst-assert-g++.o): Compile in GnU C++11 mode.
11056         (LDLIBS-tst-assert-c++, LDLIBS-tst-assert-g++): Link with libstdc++.
11057         * assert/tst-assert-c++.cc, assert/tst-assert-g++.cc: New files.
11059 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
11061         [BZ #18822]
11062         * sysdeps/unix/sysv/linux/x86_64/init-first.c
11063         (__syscall_clock_gettime): Add attribute_hidden.
11064         * sysdeps/unix/sysv/linux/x86_64/makecontext.c
11065         (__start_context): Likewise.
11067 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
11069         * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
11070         building libc.a.
11071         (hidden_proto): Likewise.
11072         (hidden_tls_proto): Likewise.
11073         (__hidden_proto): Likewise.
11075 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
11077         * include/libc-symbols.h (attribute_hidden): Enable hidden
11078         visibility in libc.a compiled with PIE.
11080 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
11082         [BZ #18822]
11083         * sysdeps/unix/sysv/linux/x86/libc-vdso.h (VDSO_SYMBOL(getcpu)):
11084         Add attribute_hidden.
11086 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
11088         [BZ #21864]
11089         * Makerules (all-nonlib): Add $(others-extras).
11090         * catgets/Makefile (others-extras): New.
11091         * elf/Makefile (others-extras): Likewise.
11092         * nss/Makefile (others-extras): Likewise.
11094 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
11096         [BZ #18822]
11097         * csu/libc-start.c (__libc_multiple_libcs): Removed.
11098         * elf/dl-open.c: Include <libc-internal.h>.
11099         (__libc_multiple_libcs): Removed.
11100         * elf/dl-sysdep.c: Include <libc-internal.h> instead of
11101         <hp-timing.h>.
11102         * include/libc-internal.h (__libc_multiple_libcs): New.
11103         * misc/sbrk.c: Include <libc-internal.h>.
11104         (__libc_multiple_libcs): Removed.
11106 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
11108         [BZ #18822]
11109         * grp/initgroups.c (__nss_group_database): Removed.
11110         (__nss_initgroups_database): Likewise.
11111         * nscd/gai.c (__nss_hosts_database): Likewise.
11112         * nss/XXX-lookup.c (DATABASE_NAME_SYMBOL): Likewise.
11113         * posix/tst-rfc3484-2.c (__nss_hosts_database): Likewise.
11114         * posix/tst-rfc3484-3.c (__nss_hosts_database): Likewise.
11115         * posix/tst-rfc3484.c (__nss_hosts_database): Likewise.
11116         * sysdeps/posix/getaddrinfo.c (__nss_hosts_database): Likewise.
11117         * nss/getXXent.c (INTERNAL (REENTRANT_GETNAME)): Add
11118         attribute_hidden.
11119         * nss/nsswitch.c (__nss_database_custom): Define only if
11120         USE_NSCD is defined.
11121         (__nss_configure_lookup): Use __nss_database_custom only if
11122         USE_NSCD is defined.
11123         * nss/nsswitch.h (__nss_database_custom): Declare only if
11124         USE_NSCD is defined.  Add attribute_hidden.
11125         (__nss_setent): Add attribute_hidden.
11126         (__nss_endent): Likewise.
11127         (__nss_getent_r): Likewise.
11128         (__nss_getent): Likewise.
11129         (DEFINE_DATABASE): Declare __nss_##arg##_database.
11131 2017-08-20  H.J. Lu  <hongjiu.lu@intel.com>
11133         [BZ #18822]
11134         * sysdeps/unix/sysv/linux/i386/glob64.c (__old_glob64): Add
11135         libc_hidden_proto and libc_hidden_def.
11137 2017-08-20  H.J. Lu  <hongjiu.lu@intel.com>
11139         [BZ #18822]
11140         * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_readdir64):
11141         Add libc_hidden_proto.
11142         * sysdeps/unix/sysv/linux/i386/readdir64.c (__old_readdir64):
11143         Add libc_hidden_def.
11145 2017-08-20  H.J. Lu  <hongjiu.lu@intel.com>
11147         [BZ #21974]
11148         * gmon/Makefile (routines): Remove bb_init_func and
11149         bb_exit_func.
11150         (elide-routines.os): Removed.
11151         * gmon/bb_exit_func.c: Likewise.
11152         * gmon/bb_init_func.c: Likewise.
11153         * include/sys/gmon.h (__bb): Likewise.
11154         (__bb_init_func): Likewise.
11155         (__bb_exit_func): Likewise.
11156         * sysdeps/alpha/bb_init_func.S: Likewise.
11158 2017-08-20  H.J. Lu  <hongjiu.lu@intel.com>
11160         * debug/longjmp_chk.c (____longjmp_chk): Moved to ...
11161         * include/setjmp.h (____longjmp_chk): Here.  Add
11162         attribute_hidden.
11164 2017-08-19  H.J. Lu  <hongjiu.lu@intel.com>
11166         [BZ #18822]
11167         * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE2): Add
11168         attribute_hidden.
11169         (__strspn_sse2): Likewise.
11171 2017-08-18  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
11173         * sysdeps/generic/not-cancel.h (close_not_cancel): Remove macro.
11174         (close_not_cancel_no_status): Likewise.
11175         (__close_nocancel): New macro.
11176         (__close_nocancel_nostatus): Likewise.
11177         * sysdeps/unix/sysv/linux/not-cancel.h (__close_nocancel): Remove
11178         macro.
11179         (close_not_cancel): Likewise.
11180         (close_not_cancel_no_status): Likewise.
11181         (__close_nocancel): New prototype.
11182         (__close_nocancel_nostatus): New function.
11183         * sysdeps/unix/sysv/linux/close.c (__close_nocancel): New function.
11184         * catgets/open_catalog.c (__open_catalog): Replace
11185         close_not_cancel{_no_status) with __close_nocancel{_nostatus}.
11186         * gmon/gmon.c (write_gmon): Likewise.
11187         * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
11188         * intl/loadmsgcat.c (close): Likewise.
11189         * io/ftw.c (open_dir_stream): Likewise.
11190         (ftw_startup): Likewise.
11191         * libio/fileops.c (_IO_file_open): Likewise.
11192         (_IO_file_close_mmap): Likewise.
11193         (_IO_file_close): Likewise.
11194         * libio/iopopen.c (_IO_dup2): Likewise.
11195         * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
11196         * locale/loadlocale.c (_nl_load_locale): Likewise.
11197         * login/utmp_file.c (pututline_file): Likewise.
11198         (endutent_file): Likewise.
11199         * misc/daemon.c (daemon): Likewise.
11200         * nscd/nscd_getai.c (__nscd_getai): Likewise.
11201         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
11202         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
11203         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
11204         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
11205         * nscd/nscd_helper.c (open_socket): Likewise.
11206         (__nscd_open_socket): Likewise.
11207         * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
11208         * nscd/nscd_netgroup.c (__nscd_setnetgrent): Likewise.
11209         (__nscd_innetgr): Likewise.
11210         * nss/nss_db/db-open.c (internal_setent): Likewise.
11211         * resolv/res-close.c (__res_iclose): Likewise.
11212         * sunrpc/pm_getmaps.c (pmap_getmaps): Likewise.
11213         * sysdeps/posix/closedir.c (__closedir): Likewise.
11214         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Likewise.
11215         * sysdeps/posix/getcwd.c (__getcwd): Likewise.
11216         * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
11217         (opendir_tail): Likewise.
11218         * sysdeps/posix/spawni.c (__spawni_child): Likewise.
11219         * sysdeps/unix/sysv/linux/check_native.c (__check_native): Likewise.
11220         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Likewise.
11221         * sysdeps/unix/sysv/linux/fips-private.h (fips_enabled_p): Likewise.
11222         * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
11223         (gethostid): Likewise.
11224         * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
11225         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
11226         Likewise.
11227         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
11228         * sysdeps/unix/sysv/linux/grantpt.c (close_all_fds): Likewise.
11229         * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
11230         * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
11231         Likewise.
11232         * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex): Likewise.
11233         * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps): Likewise.
11234         * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
11235         Likewise.
11236         * sysdeps/unix/sysv/linux/mq_notify.c (init_mq_netlink): Likewise.
11237         * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
11238         Likewise.
11239         * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
11240         Likewise.
11241         * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
11242         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
11243         * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
11244         __close_nocancel.
11246         * sysdeps/generic/not-cancel.h (openat_not_cancel): Remove macro.
11247         (openat_not_cancel_3): Likewise.
11248         (openat64_not_cancel_3): Likewise).
11249         (openat_not_cancel_3): Likewise).
11250         * sysdeps/unix/sysv/linux/not-cancel.h (openat_not_cancel): Remove
11251         macro.
11252         (openat_not_cancel_3): Likewise.
11253         (openat64_not_cancel): Likewise.
11254         (openat64_not_cancel_3): Likewise.
11255         * sysdeps/unix/sysv/linux/openat.c (__openat_nocancel): New function.
11256         * sysdeps/unix/sysv/linux/openat64.c (__openat64_nocancel): Likewise.
11257         * io/ftw.c (open_dir_stream): Replace openat{64}_not_cancel{_3} with
11258         __open{64}_nocancel.
11259         * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
11260         * sysdeps/posix/getcwd.c (__getcwd): Likewise.
11261         * sysdeps/posix/opendir.c (__opendirat): Likewise.
11263 2017-08-18  H.J. Lu  <hongjiu.lu@intel.com>
11265         [BZ #18822]
11266         * include/argz.h (__argz_create_sep): New function prototype.
11267         (__argz_append): Likewise.
11268         (__argz_add): Likewise.
11269         (__argz_add_sep): Likewise.
11270         (__argz_delete): Likewise.
11271         (__argz_insert): Likewise.
11272         (__argz_replace): Likewise.
11273         * string/argz.h (__argz_create_sep): Removed.
11274         (__argz_append): Likewise.
11275         (__argz_add): Likewise.
11276         (__argz_add_sep): Likewise.
11277         (__argz_delete): Likewise.
11278         (__argz_insert): Likewise.
11279         (__argz_replace): Likewise.
11281 2017-08-18  H.J. Lu  <hongjiu.lu@intel.com>
11283         * elf/elf.h (NT_GNU_PROPERTY_TYPE_0): New.
11284         (NOTE_GNU_PROPERTY_SECTION_NAME): Likewise.
11285         (GNU_PROPERTY_STACK_SIZE): Likewie.
11286         (GNU_PROPERTY_NO_COPY_ON_PROTECTED): Likewie.
11287         (GNU_PROPERTY_LOPROC): Likewise.
11288         (GNU_PROPERTY_HIPROC): Likewise.
11289         (GNU_PROPERTY_LOUSER): Likewise.
11290         (GNU_PROPERTY_HIUSER): Likewise.
11291         (GNU_PROPERTY_X86_ISA_1_USED): Likwise.
11292         (GNU_PROPERTY_X86_ISA_1_NEEDED): Likwise.
11293         (GNU_PROPERTY_X86_FEATURE_1_AND): Likwise.
11294         (GNU_PROPERTY_X86_ISA_1_486): Likwise.
11295         (GNU_PROPERTY_X86_ISA_1_586): Likwise.
11296         (GNU_PROPERTY_X86_ISA_1_686): Likwise.
11297         (GNU_PROPERTY_X86_ISA_1_SSE): Likwise.
11298         (GNU_PROPERTY_X86_ISA_1_SSE2): Likwise.
11299         (GNU_PROPERTY_X86_ISA_1_SSE3): Likwise.
11300         (GNU_PROPERTY_X86_ISA_1_SSSE3): Likwise.
11301         (GNU_PROPERTY_X86_ISA_1_SSE4_1): Likwise.
11302         (GNU_PROPERTY_X86_ISA_1_SSE4_2): Likwise.
11303         (GNU_PROPERTY_X86_ISA_1_AVX): Likwise.
11304         (GNU_PROPERTY_X86_ISA_1_AVX2): Likwise.
11305         (GNU_PROPERTY_X86_ISA_1_AVX512F): Likwise.
11306         (GNU_PROPERTY_X86_ISA_1_AVX512CD): Likwise.
11307         (GNU_PROPERTY_X86_ISA_1_AVX512ER): Likwise.
11308         (GNU_PROPERTY_X86_ISA_1_AVX512PF): Likwise.
11309         (GNU_PROPERTY_X86_ISA_1_AVX512VL): Likwise.
11310         (GNU_PROPERTY_X86_ISA_1_AVX512DQ): Likwise.
11311         (GNU_PROPERTY_X86_ISA_1_AVX512BW): Likwise.
11312         (GNU_PROPERTY_X86_FEATURE_1_IBT): Likwise.
11313         (GNU_PROPERTY_X86_FEATURE_1_SHSTK): Likwise.
11315 2017-08-18  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
11317         * misc/sys/cdefs.h (__HAVE_GENERIC_SELECTION): Define to 0, if
11318         in C++ mode.
11320 2017-08-18  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
11322         [BZ #21930]
11323         * math/math.h (isinf): Check if in C or C++ mode before using
11324         __builtin_types_compatible_p, since this is a C mode feature.
11326 2017-08-18  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
11328         * sysdeps/generic/not-cancel.h (write_not_cancel): Remove macro.
11329         (__write_nocancel): New macro.
11330         * sysdeps/unix/sysv/linux/not-cancel.h (__write_nocancel):
11331         Rewrite as a function prototype.
11332         (write_not_cancel): Remove macro.
11333         * sysdeps/unix/sysv/linux/write.c (__write_nocancel): New function.
11334         * gmon/gmon.c (ERR): Replace write_not_cancel with __write_nocancel.
11335         (write_gmon): Likewise.
11336         * libio/fileops.c (_IO_new_file_write): Likewise.
11337         * login/utmp_file.c (pututline_file): Likewise.
11338         (updwtmp_file): Likewise.
11339         * stdio-common/psiginfo.c (psiginfo): Likewise.
11340         * sysdeps/posix/spawni.c (__spawni_child): Likewise.
11341         * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
11342         * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
11343         Likewise.
11344         * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
11345         Likewise.
11347         * sysdeps/generic/not-cancel.h (read_not_cancel): Remove macro.
11348         (__read_nocancel): New macro.
11349         * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
11350         __read_nocancel.
11351         * sysdeps/unix/sysv/linux/not-cancel.h (__read_nocancel): Remove
11352         macro.
11353         (__read_nocancel): New prototype.
11354         * sysdeps/unix/sysv/linux/read.c (__read_nocancel): New function.
11355         * catgets/open_catalog.c (__open_catalog): Replace read_not_cancel
11356         with __read_nocancel.
11357         * intl/loadmsgcat.c (read): Likewise.
11358         * libio/fileops.c (_IO_file_read): Likewise.
11359         * locale/loadlocale.c (_nl_load_locale): Likewise.
11360         * login/utmp_file.c (getutent_r_file): Likewise.
11361         (internal_getut_r): Likewise.
11362         (getutline_r_file): Likewise.
11363         * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
11364         * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
11365         * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
11366         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
11367         Likewise.
11368         * sysdeps/unix/sysv/linux/getsysstats.c (next_line): Likewise.
11369         * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
11370         * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
11371         Likewise.
11372         * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
11373         Likewise.
11374         * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
11375         Likewise.
11376         * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
11377         Likewise.
11378         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
11380 2017-08-18  H.J. Lu  <hongjiu.lu@intel.com>
11382         [BZ #21966]
11383         * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h
11384         (IFUNC_SELECTOR): Don't use the AVX2 version if FMA isn't
11385         usable.
11387 2017-08-17  DJ Delorie  <dj@redhat.com>
11389         * bug17079.c: Update to new test harness.
11390         * test-digits-dots.c: Likewise.
11391         * test-netdb.c: Likewise.
11392         * tst-field.c: Likewise.
11393         * tst-nss-getpwent.c: Likewise.
11394         * tst-nss-static.c: Likewise.
11395         * tst-nss-test1.c: Likewise.
11396         * tst-nss-test2.c: Likewise.
11397         * tst-nss-test3.c: Likewise.
11398         * tst-nss-test4.c: Likewise.
11399         * tst-nss-test5.c: Likewise.
11401 2017-08-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
11403         * sysdeps/generic/not-cancel.h (open_not_cancel): Remove macro.
11404         (open_not_cancel_2): Likewise.
11405         (open_nocancel): New macro.
11406         (open64_nocancel): Likewise.
11407         * sysdeps/unix/sysv/linux/not-cancel.h (open_not_cancel): Remove macro.
11408         (open_not_cancel_2): Likewise.
11409         (__open_nocancel): New prototype.
11410         (__open64_nocancel): Likewise.
11411         * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
11412         __open_nocancel.
11413         * sysdeps/unix/sysv/linux/open.c (__open_nocancel): New function.
11414         * sysdeps/unix/sysv/linux/open64.c (__open64_nocancel): Likewise.
11415         * catgets/open_catalog.c (__open_catalog): Replace open_not_cancel{_2}
11416         with __open_nocancel.
11417         * csu/check_fds.c (check_one_fd): Likewise.
11418         * gmon/gmon.c (write_gmon): Likewise.
11419         * iconv/gconv_cache.c (__gconv_load_cached): Likewise.
11420         * intl/loadmsgcat.c (open): Likewise.
11421         * libio/fileops.c (_IO_file_open): Likewise.
11422         * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
11423         * locale/loadlocale.c (_nl_load_locale): Likewise.
11424         * login/utmp_file.c (setutent_file): Likewise.
11425         * misc/daemon.c (daemon): Likewise.
11426         * nss/nss_db/db-open.c (internal_setent): Likewise.
11427         * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
11428         * sysdeps/posix/libc_fatal.c (__libc_message): Likewise.
11429         * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
11430         (__opendir): Likewise.
11431         * sysdeps/posix/spawni.c (__spawni_child): Likewise.
11432         * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
11433         * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
11434         (gethostid): Likewise.
11435         * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
11436         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
11437         Likewise.
11438         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
11439         * sysdeps/unix/sysv/linux/grantpt.c (__close_all_fds): Likewise.
11440         * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
11441         * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
11442         Likewise.
11443         * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
11444         Likewise.
11445         * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
11446         Likewise.
11447         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c (__get_clockfreq):
11448         Likewise.
11449         * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
11450         Likewise.
11451         * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
11452         Likewise.
11453         * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
11454         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
11456 2017-08-17  Wilco Dijkstra  <wdijkstr@arm.com>
11458         * benchtests/bench-skeleton.c (main): Add support for
11459         latency benchmarking.
11460         * benchtests/scripts/bench.py: Add support for latency benchmarking.
11462 2017-08-17  H.J. Lu  <hongjiu.lu@intel.com>
11464         * Makeconfig (+link-pie-before-libc): Add CRT-* hook to override
11465         the startup object.
11467 2017-08-17  Florian Weimer  <fweimer@redhat.com>
11469         * include/sys/socket.h (__opensock): Remove internal_function.
11470         * socket/opensock.c (__opensock): Likewise.
11471         * sysdeps/unix/sysv/linux/opensock.c (__opensock): Likewise.
11473 2017-08-16  Joseph Myers  <joseph@codesourcery.com>
11475         [BZ #21944]
11476         * signal/bits/types/__sigval_t.h: New file.
11477         * signal/Makefile (headers): Add bits/types/__sigval_t.h.
11478         * signal/bits/types/sigval_t.h: Include <bits/types/__sigval_t.h>
11479         and define sigval_t using __sigval_t.
11480         * include/bits/types/__sigval_t.h: New file.
11481         * bits/types/sigevent_t.h: Include <bits/types/__sigval_t.h>
11482         instead of <bits/types/__sigval_t.h>.
11483         (struct sigevent): Use __sigval_t instead of sigval_t.
11484         * bits/types/siginfo_t.h: Include <bits/types/__sigval_t.h>
11485         instead of <bits/types/__sigval_t.h>.
11486         (siginfo_t): Use __sigval_t instead of sigval_t.
11487         * sysdeps/unix/sysv/linux/bits/types/sigevent_t.h: Include
11488         <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
11489         (struct sigevent): Use __sigval_t instead of sigval_t.
11490         * sysdeps/unix/sysv/linux/bits/types/siginfo_t.h: Include
11491         <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
11492         (siginfo_t): Use __sigval_t instead of sigval_t.
11493         * signal/signal.h [__USE_MISC]: Include <bits/types/sigval_t.h>.
11495 2017-08-16  H.J. Lu  <hongjiu.lu@intel.com>
11497         * NEWS: Remove "[Add new features here]" for 2.27.
11499 2017-08-16  Joseph Myers  <joseph@codesourcery.com>
11501         * sysdeps/unix/sysv/linux/sh/localplt.data: Allow abort in
11502         libc.so.
11504 2017-08-16  H.J. Lu  <hongjiu.lu@intel.com>
11506         * NEWS: Mention x86-64 FMA optimization.
11508 2017-08-16  H.J. Lu  <hongjiu.lu@intel.com>
11510         [BZ #21912]
11511         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
11512         Add e_expf-fma.
11513         * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: New file.
11514         * sysdeps/x86_64/fpu/multiarch/e_expf.c: Likewise.
11515         * sysdeps/x86_64/fpu/multiarch/ifunc-fma.h: Likewise.
11517 2017-08-16  Andreas Schwab  <schwab@suse.de>
11519         [BZ #16750]
11520         CVE-2009-5064
11521         * elf/ldd.bash.in: Never run file directly.
11523 2017-08-15  H.J. Lu  <hongjiu.lu@intel.com>
11525         [BZ #21955]
11526         * sysdeps/x86_64/fpu/e_expf.S (L(SP_RANGE)): Aligned to 8 bytes.
11527         (L(SP_INF_0)): Likewise.
11529 2017-08-15  Florian Weimer  <fweimer@redhat.com>
11531         * gmon/Makefile (tests-special): Add tst-gmon-prof only if
11532         run-built-tests.
11534 2017-08-15  Florian Weimer  <fweimer@redhat.com>
11536         Remove BROKEN_THREAD_SIGNALS support for LinuxThreads.
11537         * sysdeps/pthread/aio_misc.c (__aio_enqueue_request): Remove
11538         BROKEN_THREAD_SIGNALS code.
11539         * sysdeps/ppthread/aio_misc.h (struct waitlist, struct
11540         request_list): Remove caller_pid member used for
11541         BROKEN_THREAD_SIGNALS.
11542         [BROKEN_THREAD_SIGNALS] (__aio_notify_only): Remove declaration.
11543         * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
11544         Remove BROKEN_THREAD_SIGNALS support.
11545         * sysdeps/pthread/aio_suspend.c (aio_suspend): Likewise.
11546         * sysdeps/pthread/lio_listio.c (lio_listio_internal): Likewise.
11548 2017-08-15  Florian Weimer  <fweimer@redhat.com>
11550         * gmon/Makefile (tests): Add tst-gmon.
11551         (CFLAGS-tst-gmon.c, LDFLAGS-tst-gmon, CRT-tst-gmon, tst-gmon-ENV):
11552         Set.
11553         (tests-special): Add tst-gmon-prof.out.
11554         (tst-gmon.out): Depend on clean-tst-gmon-data.
11555         (clean-tst-gmon-data, tst-gmon-gprof.out): New targets.
11556         * gmon/tst-gmon.c, gmon/tst-gmon-gprof.sh: New files.
11557         * Makeconfig (+link-before-libc): Add CRT-* hook to override the
11558         startup object.
11559         * aclocal.m4 (GPROF): Set and substitute.
11560         * config.amke.in (GPROF): Set.
11561         * configure: Regenerate.
11563 2017-08-15  Gustavo Romero  <gromero@linux.vnet.ibm.com>
11565         * elf/elf.h A (NT_PPC_TAR): New macro.
11566         (NT_PPC_PPR): Likewise.
11567         (NT_PPC_DSCR): Likewise.
11568         (NT_PPC_EBB): Likewise.
11569         (NT_PPC_PMU): Likewise.
11570         (NT_PPC_TM_CGPR): Likewise.
11571         (NT_PPC_TM_CFPR): Likewise.
11572         (NT_PPC_TM_CVMX): Likewise.
11573         (NT_PPC_TM_CVSX): Likewise.
11574         (NT_PPC_TM_SPR): Likewise.
11575         (NT_PPC_TM_CTAR): Likewise.
11576         (NT_PPC_TM_CPPR): Likewise.
11577         (NT_PPC_TM_CDSCR): Likewise.
11579 2017-08-15  Florian Weimer  <fweimer@redhat.com>
11581         * sysdeps/i386/machine-gmon.h (mcount_internal): Declare with
11582         regparm (2) instead of internal_function.
11583         (_MCOUNT_DECL): Adjust.
11585 2017-08-15  Stefan Liebler  <stli@linux.vnet.ibm.com>
11587         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add z14.
11588         * sysdeps/s390/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increased.
11590 2017-08-14  Joseph Myers  <joseph@codesourcery.com>
11592         * conform/data/sys/wait.h-data (si_value): Do not expect for
11593         XPG42.
11595 2017-08-14  Florian Weimer  <fweimer@redhat.com>
11597         [BZ #21962]
11598         NSS: Create stubs for accidentally exported lookup functions.
11599         * grp/initgroups.c (__nss_group_lookup, __nss_lookup_function):
11600         Remove declaration.
11601         * inet/ether_hton.c (__nss_ethers_lookup): Likewise.
11602         (ether_hostton): Call __nss_ethers_lookup2 instead.
11603         * inet/ether_ntoh.c (__nss_ethers_lookup): Remove declaration.
11604         (ether_ntohost): Call __nss_ethers_lookup2 instead.
11605         * inet/getnetgrent_r.c (__nss_netgroup_lookup): Remove declaration.
11606         (setup): Call __nss_netgroup_lookup2 instead.
11607         * nss/Makefile (routines): Add compat-lookup.
11608         * nss/Versions (GLIBC_2.27): Add symbol version.
11609         * nss/XXX-lookup (DB_LOOKUP_FCT): Remove declaration.  Now provided by <nsswitch.h>.
11610         (DB_COMPAT_FCT): Remove.
11611         * nss/compat-lookup.c: New file.
11612         * nss/nsswitch.h: Generate __nss_*_lookup2 function prototypes
11613         from databases.def.
11614         * nss/service-lookup.c (NO_COMPAT): Remove definition.
11615         * sunrpc/netname.c (__nss_publickey_lookup): Remove declaration.
11616         (netname2user): Call __nss_publickey_lookup2 instead.
11617         * sunrpc/publickey.c (__nss_publickey_lookup): Remove declaration.
11618         (getpublickey, getsecretkey): Call __nss_publickey_lookup2
11619         instead.
11621 2017-08-14  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
11622             Sergei Trofimovich  <slyfox@inbox.ru>
11624         [BZ #21908]
11625         * sysdeps/unix/sysv/linux/m68k/mmap_internal.h (MMAP2_PAGE_SHIFT):
11626         Rename to MMAP2_PAGE_UNIT.
11627         * sysdeps/unix/sysv/linux/mmap.c: Include mmap_internal iff
11628         __OFF_T_MATCHES_OFF64_T is not defined.
11629         * sysdeps/unix/sysv/linux/mmap_internal.h (page_unit): Declare as
11630         uint64_t.
11631         (MMAP2_PAGE_UNIT) [MMAP2_PAGE_UNIT == -1]: Redefine to page_unit.
11632         (page_unit) [MMAP2_PAGE_UNIT != -1]: Remove definition.
11634 2017-08-14  Florian Weimer  <fweimer@redhat.com>
11636         i386: Do not set internal_function.
11637         * config.h.in (USE_REGPARMS, internal_function): Remove.
11638         * sysdeps/i386/configure.ac (USE_REGPARMS): Likewise.
11639         * sysdeps/i386/configure (USE_REGPARMS): Likewise.
11641 2017-08-14  Florian Weimer  <fweimer@redhat.com>
11643         * elf/dl-init.c (_dl_init): Remove internal_function.
11644         * sysdeps/generic/ldsodefs.h (_dl_init): Likewise.
11645         * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to _dl_init.
11647 2017-08-14  Florian Weimer  <fweimer@redhat.com>
11649         * elf/rtld.c (_dl_start): Remove internal_function.
11650         * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to
11651         _dl_start.
11653 2017-08-14  Florian Weimer  <fweimer@redhat.com>
11655         * elf/dl-fini.c (_dl_fini): Remove internal_function
11656         * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
11658 2017-08-14  H.J. Lu  <hongjiu.lu@intel.com>
11660         * sysdeps/x86/cpu-features.h (bit_cpu_BIT): New.
11661         (bit_cpu_SHSTK): Likewise.
11662         (index_cpu_IBT): Likewise.
11663         (index_cpu_SHSTK): Likewise.
11664         (reg_IBT): Likewise.
11665         (reg_SHSTK): Likewise.
11666         * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
11667         Handle index_cpu_IBT and index_cpu_SHSTK.
11669 2017-08-14  Mike FABIAN  <mfabian@redhat.com>
11671         [BZ #19982]
11672         * po/fr.po: Fix spelling mistake.
11674 2017-08-13  Florian Weimer  <fweimer@redhat.com>
11676         * elf/dl-addr.c (_dl_addr): Remove internal_function.
11677         * elf/dl-error-skeleton.c (_dl_signal_error, _dl_signal_cerror)
11678         (_dl_catch_error, _dl_receive_error): Likewise.
11679         * elf/dl-open.c (_dl_find_dso_for_object): Likewise.
11680         * elf/dl-tls.c (_dl_allocate_tls_init, _dl_allocate_tls)
11681         (_dl_deallocate_tls): Likewise.
11682         * include/dlfcn.h (_dl_addr): Likewise.
11683         * sysdeps/generic/ldsodefs.h (_dl_signal_error, _dl_signal_cerror)
11684         (_dl_catch_error, _dl_receive_error, _dl_find_dso_for_object)
11685         (_dl_allocate_tls_init, _dl_allocate_tls, _dl_deallocate_tls):
11686         Likewise.
11688 2017-08-13  Florian Weimer  <fweimer@redhat.com>
11690         * include/stdlib.h: (__strtof_nan, __strtod_nan, __strtold_nan)
11691         (__wcstof_nan, __wcstod_nan, __wcstold_nan): Remove
11692         internal_function.
11693         * stdlib/sttod_nan_main.c (STRTOD_NAN): Likewise.
11695 2017-08-13  Florian Weimer  <fweimer@redhat.com>
11697         * elf/dl-support.c (_dl_make_stack_executable_hook): Remove
11698         internal_function.
11699         * nptl/allocatestack.c (__make_stacks_executable): Likewise.
11700         * nptl/pthreadP.h (__make_stacks_executable): Likewise.
11701         * sysdeps/generic/ldsodefs.h (_rtld_global): Remove
11702         internal_function from _dl_make_stack_executable_hook member.
11703         (_dl_make_stack_executable): Remove internal_function.
11704         * sysdeps/mach/hurd/dl-execstack.c (_dl_make_stack_executable):
11705         Likewise.
11706         * sysdeps/unix/sysv/linux/dl-execstack.c
11707         (_dl_make_stack_executable): Likewise.
11709 2017-08-13  Florian Weimer  <fweimer@redhat.com>
11711         * sysdeps/unix/sysv/linux/netlinkaccess.h
11712         (__netlink_assert_response): Remove internal_function.
11713         * sysdeps/unix/sysv/linux/netlink_assert_response.c
11714         (__netlink_assert_response): Likewise.
11716 2017-08-13  Florian Weimer  <fweimer@redhat.com>
11718         * include/rpc/pmap_clnt.h (__libc_rpc_getport): Remove
11719         internal_function.
11720         * sunrpoc/pm_getport.c (__libc_rpc_getport): Likewise.
11722 2017-08-13  Florian Weimer  <fweimer@redhat.com>
11724         * grp/grp-merge.h (__copy_grp, __merge_grp): Remove
11725         internal_function.
11726         * grp/grp-merge.c (__copy_grp, __merge_grp): Likewise.
11727         * inet/netgroup.h (__internal_setnetgrent)
11728         (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
11729         * inet/getnetgrent_r.c (__internal_setnetgrent)
11730         (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
11731         * nss/XXX-lookup.c (DB_LOOKUP_FCT, DB_COMPAT_FCT): Likewise.
11732         * nss/getXXbyYY_r.c (DB_LOOKUP_FCT): Likewise.
11733         * nss/getXXent_r.c (DB_LOOKUP_FCT): Likewise.
11734         * nss/nsswitch.h (db_lookup_function): Likewise.
11736 2017-08-13  Florian Weimer  <fweimer@redhat.com>
11738         * debug/fortify_fail.c (__fortify_fail, __fortify_fail_abort):
11739         Remove internal_function.
11740         * include/stdio.h (__fortify_fail, __fortify_fail_abort): Likewise.
11741         * sysdeps/mach/hurd/i386/____longjmp_chk.S (CALL_FAIL): Pass
11742         message argument on the stack.
11743         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S (CALL_FAIL):
11744         Likeweise.
11746 2017-08-12  Mike FABIAN  <mfabian@redhat.com>
11748         Adapt test case data to the changes in the thousands
11749         separators.
11751         [BZ #20756]
11752         * localedata/tst-langinfo.sh: Adapt test case data.
11753         * stdlib/tst-strfmon_l.c: Likewise.
11754         * stdlib/tst-strtod4.c: Likewise.
11755         * stdlib/tst-strtod5i.c: Likewise.
11757 2017-08-11  Florian Weimer  <fweimer@redhat.com>
11759         [BZ #21242]
11760         * assert/assert.h [__GNUC__ && !__STRICT_ANSI__] (assert):
11761         Suppress pedantic warning resulting from statement expression.
11762         (__ASSERT_FUNCTION): Add missing __extension__.
11764 2017-08-11  Siddhesh Poyarekar  <siddhesh@sourceware.org>
11766         * benchtests/bench-memmove-large.c: Print output in JSON
11767         format.
11768         * benchtests/bench-memmove.c: Likewise.
11770         * benchtests/bench-memccpy.c (do_one_test): Remove checks.
11771         * benchtests/bench-memchr.c (do_one_test): Likewise.
11772         * benchtests/bench-memcpy-large.c (do_one_test): Likewise.
11773         * benchtests/bench-memcpy.c (do_one_test): Likewise.
11774         * benchtests/bench-memmove-large.c (do_one_test): Likewise.
11775         * benchtests/bench-memmove.c (do_one_test): Likewise.
11776         * benchtests/bench-memset-large.c (do_one_test): Likewise.
11777         * benchtests/bench-memset.c (do_one_test): Likewise.
11778         * benchtests/bench-string.h (test_init): Remove memsets.
11780 2017-08-10  Rical Jasan  <ricaljasan@pacific.net>
11782         * manual/lang.texi
11783         (Computing the Width of an Integer Data Type): Rename section to
11784         "Width of an Integer Type".  Remove inaccurate statement regarding
11785         lack of C language facilities for determining width of integer
11786         types, and reorder content to improve flow and context of
11787         discussion.
11789 2017-08-10  Rical Jasan  <ricaljasan@pacific.net>
11791         * lang.texi (va_copy): Change standard from ISO to C99.
11792         (__va_copy): Add standard and header annotation.
11793         Update description for clarity of origins and current use.
11795 2017-08-10  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
11797         [BZ #21941]
11798         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrtf128): Since
11799         xssqrtqp requires operands to be in Vector Registers
11800         (Altivec/VMX), replace the register constraint 'wq' with 'v'.
11801         * sysdeps/powerpc/powerpc64le/power9/fpu/e_sqrtf128.c
11802         (__ieee754_sqrtf128): Likewise.
11804 2017-08-10  Wilco Dijkstra  <wdijkstr@arm.com>
11806         * sysdeps/aarch64/memcmp.S (memcmp):
11807         Rewrite of optimized memcmp.
11809 2017-08-10  Florian Weimer  <fweimer@redhat.com>
11811         Introduce ld.so exceptions.
11812         * sysdeps/generic/ldsodefs.h (struct dl_exception): Define.
11813         (_dl_exception_create, _dl_exception_create_format)
11814         (_dl_exception_free, _dl_signal_exception, _dl_signal_cexception)
11815         (_dl_catch_exception): Declare.
11816         (_dl_catch_error): Update comment.
11817         * elf/dl-error-skeleton.c (struct catch): Replace objname,
11818         errstring, malloced members with exception member.
11819         (_dl_out_of_memory): Remove.
11820         (fatal_error): New function, extracted from _dl_signal_error.
11821         (_dl_signal_exception, _dl_signal_cexception): New functions.
11822         (_dl_signal_error): Call _dl_exception_create to allocate an
11823         exception object.
11824         (_dl_catch_exception): New function, based on _dl_catch_error.
11825         (_dl_catch_error): Implement using _dl_catch_exception.
11826         * elf/dl-exception.c: New file.
11827         * elf/Makefile (dl-routines): Add dl-exception.
11828         (elide-routines.os): Likewise.
11829         * elf/Version (ld/GLIBC_PRIVATE): Add _dl_exception_create,
11830         _dl_exception_create_format, _dl_exception_free.
11831         * elf/dl-deps.c (_dl_map_object_deps): Use _dl_catch_exception and
11832         _dl_signal_exception.
11833         * elf/dl-lookup.c (make_string): Remove.
11834         (_dl_lookup_symbol_x): Use _dl_exception_create_format,
11835         _dl_signal_cexception, _dl_exception_free.
11836         * elf/dl-open.c (_dl_open): Use _dl_catch_exception and
11837         _dl_signal_exception.
11838         * elf/dl-sym.c (do_sym): Likewise.
11839         * elf/dl-version.c (make_string): Remove.
11840         (match_symbol): Use _dl_exception_create_format,
11841         _dl_signal_cexception, _dl_exception_free.
11842         (_dl_check_map_versions): Likewise.
11843         * sysdeps/generic/localplt.data (ld.so): Add _dl_signal_exception,
11844         _dl_catch_exception.
11845         * sysdeps/unix/sysv/linux/aarch64/localplt.data (ld.so): Likewise.
11846         * sysdeps/unix/sysv/linux/alpha/localplt.data (ld.so): Likewise.
11847         * sysdeps/unix/sysv/linux/arm/localplt.data (ld.so): Likewise.
11848         * sysdeps/unix/sysv/linux/hppa/localplt.data (ld.so): Likewise.
11849         * sysdeps/unix/sysv/linux/i386/localplt.data (ld.so): Likewise.
11850         * sysdeps/unix/sysv/linux/ia64/localplt.data (ld.so): Likewise.
11851         * sysdeps/unix/sysv/linux/m68k/localplt.data (ld.so): Likewise.
11852         * sysdeps/unix/sysv/linux/microblaze/localplt.data (ld.so):
11853         Likewise.
11854         * sysdeps/unix/sysv/linux/nios2/localplt.data (ld.so): Likewise.
11855         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data
11856         (ld.so): Likewise.
11857         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data
11858         (ld.so): Likewise.
11859         * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data (ld.so):
11860         Likewise.
11861         * sysdeps/unix/sysv/linux/s390/localplt.data (ld.so): Likewise.
11862         * sysdeps/unix/sysv/linux/sh/localplt.data (ld.so): Likewise.
11863         * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data (ld.so):
11864         Likewise.
11865         * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data (ld.so):
11866         Likewise.
11867         * sysdeps/x86_64/localplt.data (ld.so): Likewise.
11869 2017-08-10  Florian Weimer  <fweimer@redhat.com>
11871         * inet/net-internal.h (__inet6_scopeid_pton): Remove
11872         attribute_hidden, internal_function.
11873         * inet/inet6_scopeid_pton.c (__inet6_scopeid_pton): Remove
11874         internal_function.
11876 2017-08-10  Florian Weimer  <fweimer@redhat.com>
11878         * malloc/malloc.c (get_max_fast): Reimplement as an inline
11879         function which calls __builtin_unreachable.
11881 2017-08-10  Mike FABIAN  <mfabian@redhat.com>
11883         * stdlib/tst-strfmon_l.c: Fix test cases to agree with the changes in
11884         Indian monetary formatting
11885         * stdlib/Makefile: Adapt list of locales needed for the tst-strfmon_l.c
11886         test cases.
11888 2017-08-09  Dmitry V. Levin  <ldv@altlinux.org>
11890         * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (enum __ptrace_request):
11891         Fix typo in comment.
11893         [BZ #21928]
11894         * sysdeps/unix/sysv/linux/sys/ptrace.h (enum __ptrace_flags,
11895         PTRACE_SEIZE_DEVEL): Remove.
11896         * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Likewise.
11897         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
11898         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
11899         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
11900         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
11902 2017-08-09  Joseph Myers  <joseph@codesourcery.com>
11904         * posix/bits/types.h (__qaddr_t): Remove.
11906         [BZ #21457]
11907         * sysdeps/arm/sys/ucontext.h (__ctx): Move undefine further down.
11908         (ucontext_t): Use __ctx with uc_flags.  Rename uc_filler to
11909         __glibc_reserved1.
11910         * sysdeps/generic/sys/ucontext.h (__ctx): New macro.
11911         (ucontext_t): Use __ctx with uc_flags.
11912         * sysdeps/i386/sys/ucontext.h (__ctx): Move undefine further down.
11913         (__ctxt): Likewise.
11914         (ucontext_t): Use __ctx with uc_flags.  Rename uc_filler to
11915         __glibc_reserved1.
11916         * sysdeps/m68k/sys/ucontext.h (__ctx): Move undefine further down.
11917         (ucontext_t): Use __ctx with uc_flags.  Rename uc_filler to
11918         __glibc_reserved1.
11919         * sysdeps/mips/sys/ucontext.h (__ctx): Move undefine further down.
11920         (ucontext_t): Use __ctx with uc_flags.  Rename uc_filler to
11921         __glibc_reserved1.
11922         * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (__ctx): New
11923         macro.
11924         (ucontext_t): Use __ctx with uc_flags.
11925         * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h (__ctx): New macro.
11926         (ucontext_t): Use __ctx with uc_flags.
11927         * sysdeps/unix/sysv/linux/arm/sys/ucontext.h (__ctx): New macro.
11928         (ucontext_t): Use __ctx with uc_flags and uc_regspace.
11929         * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h (__ctx): New macro.
11930         (ucontext_t): Use __ctx with uc_flags.
11931         * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h (__ctx): Move
11932         undefine further down.
11933         (ucontext_t): Use __ctx with uc_flags.  Rename uc_filler to
11934         __glibc_reserved1.
11935         * sysdeps/unix/sysv/linux/mips/sys/ucontext.h (__ctx): Move
11936         undefine further down.
11937         (ucontext_t): Use __ctx with uc_flags.
11938         * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h (__ctx): Move
11939         undefine further down.
11940         (ucontext_t): Use __ctx with uc_flags.
11941         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (ucontext_t): Use
11942         __ctx with uc_flags, uc_regs_ptr, uc_regs and uc_reg_space.
11943         Rename uc_pad to __glibc_reserved1.
11944         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__ctx): Move
11945         undefine further down.
11946         (ucontext_t): Use __ctx with uc_flags.
11947         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h (__ctx): Move undefine
11948         further down.
11949         (ucontext_t): Use __ctx with uc_flags.
11950         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (ucontext_t): Use
11951         __ctx with uc_flags.
11952         * sysdeps/unix/sysv/linux/tile/sys/ucontext.h (__ctx): New macro.
11953         (ucontext_t): Use __ctx with uc_flags.
11954         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h (ucontext_t): Use
11955         __ctx with uc_flags.
11957 2017-08-09  Florian Weimer  <fweimer@redhat.com>
11959         [BZ #21932]
11960         * nss/getXXbyYY_r.c (REENTRANT_NAME): Call __resolv_context_put
11961         before early return.
11963 2017-08-09  Andreas Schwab  <schwab@suse.de>
11965         [BZ #21041]
11966         * sysdeps/unix/sysv/linux/s390/pt-longjmp.c: Update reference to
11967         renamed alias.
11969         [BZ #21041]
11970         * nptl/Makefile (tests) [$(build-shared) = yes]: Add
11971         tst-compat-forwarder.
11972         (modules-names): Add tst-compat-forwarder-mod.
11973         ($(objpfx)tst-compat-forwarder): Depend on
11974         $(objpfx)tst-compat-forwarder-mod.so.
11975         * nptl/tst-compat-forwarder.c: New file.
11976         * nptl/tst-compat-forwarder-mod.c: New file.
11978 2017-08-09  Siddhesh Poyarekar  <siddhesh@sourceware.org>
11980         * sysdeps/aarch64/multiarch/memcpy_falkor.S: Fix code style in
11981         comments.
11983         * manual/tunables.texi (Tunable glibc.tune.cpu): Add falkor.
11984         * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
11985         memcpy_falkor.
11986         * sysdeps/aarch64/multiarch/ifunc-impl-list.c (MAX_IFUNC):
11987         Bump.
11988         (__libc_ifunc_impl_list): Add __memcpy_falkor.
11989         * sysdeps/aarch64/multiarch/memcpy.c: Likewise.
11990         * sysdeps/aarch64/multiarch/memcpy_falkor.S: New file.
11991         * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
11992         Add falkor.
11993         * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_FALKOR):
11994         New macro.
11996 2017-08-08  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
11998         [BZ #759]
11999         * manual/setjmp.texi (getcontex): Document uc_stack value
12000         compatibility differences.
12002 2017-08-08  Joseph Myers  <joseph@codesourcery.com>
12004         * malloc/mcheck.c (old_free_hook): Use void * instead of __ptr_t.
12005         (old_malloc_hook): Likewise.
12006         (old_memalign_hook): Likewise.
12007         (old_realloc_hook): Likewise.
12008         (struct hdr): Likewise.
12009         (flood): Likewise.
12010         (freehook): Likewise.
12011         (mallochook): Likewise.
12012         (memalignhook): Likewise.
12013         (reallochook): Likewise.
12014         (mprobe): Likewise.
12015         * malloc/mtrace.c (mallwatch): Likewise.
12016         (tr_old_free_hook): Likewise.
12017         (tr_old_malloc_hook): Likewise.
12018         (tr_old_realloc_hook): Likewise.
12019         (tr_old_memalign_hook): Likewise.
12020         (tr_where): Likewise.
12021         (lock_and_info): Likewise.
12022         (tr_freehook): Likewise.
12023         (tr_mallochook): Likewise.
12024         (tr_reallochook): Likewise.
12025         (tr_memalignhook): Likewise.
12026         * misc/err.h [!__GNUC_VA_LIST] (__gnuc_va_list): Likewise.
12027         * misc/mmap.c (__mmap): Likewise.
12028         * misc/mmap64.c (__mmap64): Likewise.
12029         * misc/mprotect.c (__mprotect): Likewise.
12030         * misc/msync.c (msync): Likewise.
12031         * misc/munmap.c (__munmap): Likewise.
12032         * posix/posix_madvise.c (posix_madvise): Likewise.
12033         * socket/send.c (__send): Likewise.
12034         * socket/sendto.c (__sendto): Likewise.
12035         * socket/setsockopt.c (__setsockopt): Likewise.
12036         * string/memcmp.c (__ptr_t): Remove macro.
12037         (MEMCMP): Use void * instead of ptr_t.
12038         * string/memrchr.c (__ptr_t): Remove macro.
12039         (__memrchr): Use void * instead of ptr_t.
12040         * sysdeps/mach/hurd/dl-sysdep.c (__mmap): Likewise.
12041         * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
12042         * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
12043         * sysdeps/mach/mprotect.c (__mprotect): Likewise.
12044         * sysdeps/mach/msync.c (msync): Likewise.
12045         * sysdeps/mach/munmap.c (__munmap): Likewise.
12046         * sysdeps/mips/bits/setjmp.h (struct __jmp_buf_internal_tag):
12047         Likewise.
12048         * sysdeps/posix/getcwd.c (__getcwd): Likewise.
12049         * sysdeps/powerpc/powerpc32/memset.S (memset): Likewise.
12050         * sysdeps/powerpc/powerpc32/power4/memcpy.S (memcpy): Likewise.
12051         * sysdeps/powerpc/powerpc32/power4/memset.S (memset): Likewise.
12052         * sysdeps/powerpc/powerpc32/power6/memcpy.S (memcpy): Likewise.
12053         * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
12054         * sysdeps/powerpc/powerpc32/power7/memcpy.S (memcpy): Likewise.
12055         * sysdeps/powerpc/powerpc32/power7/mempcpy.S (__mempcpy):
12056         Likewise.
12057         * sysdeps/powerpc/powerpc32/power7/memset.S (memset): Likewise.
12058         * sysdeps/powerpc/powerpc64/memcpy.S (memcpy): Likewise.
12059         * sysdeps/powerpc/powerpc64/memset.S (memset): Likewise.
12060         * sysdeps/powerpc/powerpc64/power4/memcpy.S (memcpy): Likewise.
12061         * sysdeps/powerpc/powerpc64/power4/memset.S (memset): Likewise.
12062         * sysdeps/powerpc/powerpc64/power6/memcpy.S (memcpy): Likewise.
12063         * sysdeps/powerpc/powerpc64/power6/memset.S (memset): Likewise.
12064         * sysdeps/powerpc/powerpc64/power7/memcpy.S (memcpy): Likewise.
12065         * sysdeps/powerpc/powerpc64/power7/mempcpy.S (__mempcpy):
12066         Likewise.
12067         * sysdeps/powerpc/powerpc64/power7/memset.S (memset): Likewise.
12068         * sysdeps/powerpc/powerpc64/power8/memset.S (memset): Likewise.
12069         * sysdeps/tile/memcmp.c (__ptr_t): Remove macro.
12070         (MEMCMP): Use void * instead of ptr_t.
12071         * sysdeps/unix/sysv/linux/alpha/oldglob.c (old_glob_t): Likewise.
12072         * sysdeps/unix/sysv/linux/mmap.c (__mmap): Likewise.
12074 2017-08-08  Florian Weimer  <fweimer@redhat.com>
12076         * sysdeps/posix/getaddrinfo.c (gaih_inet): Remove unreachable
12077         return statement.
12079 2017-08-08  H.J. Lu  <hongjiu.lu@intel.com>
12081         [BZ #21913]
12082         * csu/libc-tls.c: Include <startup.h> first.
12083         (__libc_setup_tls): Call _startup_fatal instead of __libc_fatal.
12084         * elf/dl-tunables.c: Include <startup.h> first.
12085         * include/libc-symbols.h (BUILD_PIE_DEFAULT): New.
12086         * sysdeps/generic/startup.h: New file.
12087         * sysdeps/unix/sysv/linux/i386/startup.h: Likewise.
12088         * sysdeps/unix/sysv/linux/i386/brk.c [BUILD_PIE_DEFAULT != 0]
12089         (I386_USE_SYSENTER): New.  Defined to 0.
12091 2017-08-08  Andreas Schwab  <schwab@suse.de>
12093         [BZ #21041]
12094         * nptl/pt-longjmp.c (longjmp, siglongjmp): Don't use IFUNC resolver.
12095         * nptl/pt-system.c (system): Likewise.
12097 2017-08-07  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
12099         [BZ #21780]
12100         * sysdeps/posix/preadv2.c (preadv2): Use ENOTSUP instead of
12101         EOPNOTSUPP.
12102         * sysdeps/posix/preadv64v2.c (preadv64v2): Likewise.
12103         * sysdeps/posix/pwritev2.c (pwritev2): Likewise.
12104         * sysdeps/posix/pwritev64v2.c (pwritev64v2): Likewise.
12105         * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Likewise.
12106         * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
12107         * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
12108         * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likewise.
12110 2017-08-07  Joseph Myers  <joseph@codesourcery.com>
12112         [BZ #21899]
12113         * bits/sigaction.h (struct sigaction): Define sa_handler and
12114         sa_sigaction using union also for [__USE_XOPEN_EXTENDED].
12115         (SA_ONSTACK): Change [__USE_UNIX98] condition to
12116         [__USE_XOPEN_EXTENDED].
12117         (SA_RESTART): Likewise.
12118         (SA_NODEFER): Likewise.
12119         (SA_RESETHAND): Likewise.
12120         * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h
12121         (struct sigaction): Define sa_handler and sa_sigaction using union
12122         also for [__USE_XOPEN_EXTENDED].
12123         (SA_ONSTACK): Change [__USE_UNIX98] condition to
12124         [__USE_XOPEN_EXTENDED].
12125         (SA_RESTART): Likewise.
12126         (SA_NODEFER): Likewise.
12127         (SA_RESETHAND): Likewise.
12128         * sysdeps/unix/sysv/linux/bits/sigaction.h
12129         (struct sigaction): Define sa_handler and sa_sigaction using union
12130         also for [__USE_XOPEN_EXTENDED].
12131         (SA_ONSTACK): Change [__USE_UNIX98] condition to
12132         [__USE_XOPEN_EXTENDED].
12133         (SA_RESTART): Likewise.
12134         (SA_NODEFER): Likewise.
12135         (SA_RESETHAND): Likewise.
12136         * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h
12137         (struct sigaction): Define sa_handler and sa_sigaction using union
12138         also for [__USE_XOPEN_EXTENDED].
12139         (SA_ONSTACK): Change [__USE_UNIX98] condition to
12140         [__USE_XOPEN_EXTENDED].
12141         (SA_RESTART): Likewise.
12142         (SA_NODEFER): Likewise.
12143         (SA_RESETHAND): Likewise.
12144         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h
12145         (struct sigaction): Define sa_handler and sa_sigaction using union
12146         also for [__USE_XOPEN_EXTENDED].
12147         (SA_ONSTACK): Change [__USE_UNIX98] condition to
12148         [__USE_XOPEN_EXTENDED].
12149         (SA_RESTART): Likewise.
12150         (SA_NODEFER): Likewise.
12151         (SA_RESETHAND): Likewise.
12152         * sysdeps/unix/sysv/linux/mips/bits/sigaction.h
12153         (struct sigaction): Define sa_handler and sa_sigaction using union
12154         also for [__USE_XOPEN_EXTENDED].
12155         (SA_ONSTACK): Change [__USE_UNIX98] condition to
12156         [__USE_XOPEN_EXTENDED].
12157         (SA_RESTART): Likewise.
12158         (SA_NODEFER): Likewise.
12159         (SA_RESETHAND): Likewise.
12160         * sysdeps/unix/sysv/linux/s390/bits/sigaction.h
12161         (struct sigaction): Define sa_handler and sa_sigaction using union
12162         also for [__USE_XOPEN_EXTENDED].
12163         (SA_ONSTACK): Change [__USE_UNIX98] condition to
12164         [__USE_XOPEN_EXTENDED].
12165         (SA_RESTART): Likewise.
12166         (SA_NODEFER): Likewise.
12167         (SA_RESETHAND): Likewise.
12168         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h
12169         (struct sigaction): Define sa_handler and sa_sigaction using union
12170         also for [__USE_XOPEN_EXTENDED].
12171         (SA_ONSTACK): Change [__USE_UNIX98] condition to
12172         [__USE_XOPEN_EXTENDED].
12173         (SA_RESTART): Likewise.
12174         (SA_NODEFER): Likewise.  Define directly rather than as alias.
12175         (SA_RESETHAND): Likewise.
12176         (SA_INTERRUPT): Define only for [__USE_MISC].
12177         (SA_NOMASK): Define as alias of SA_NODEFER, only for [__USE_MISC].
12178         (SA_ONESHOT): Define as alias of SA_RESETHAND, only for
12179         [__USE_MISC].
12180         (SA_STACK): Define only for [__USE_MISC].
12181         * sysdeps/unix/sysv/linux/tile/bits/sigaction.h
12182         (struct sigaction): Define sa_handler and sa_sigaction using union
12183         also for [__USE_XOPEN_EXTENDED].
12184         (SA_ONSTACK): Change [__USE_UNIX98] condition to
12185         [__USE_XOPEN_EXTENDED].
12186         (SA_RESTART): Likewise.
12187         (SA_NODEFER): Likewise.
12188         (SA_RESETHAND): Likewise.
12189         (SA_NOPTRACE): Define only for [__USE_MISC].
12191         * catgets/catgets.c (catgets): Use uintN_t instead of u_intN_t.
12192         * catgets/catgetsinfo.h (struct catalog_obj): Likewise.
12193         (struct catalog_info): Likewise.
12194         * inet/htontest.c (lo): Likewise.
12195         (foo): Likewise.
12196         * inet/inet_lnaof.c (inet_lnaof): Likewise.
12197         * inet/inet_net.c (inet_network): Likewise.
12198         * inet/inet_netof.c (inet_netof): Likewise.
12199         * inet/rcmd.c (__ivaliduser): Likewise.
12200         (iruserok): Likewise.
12201         * locale/loadlocale.c (_nl_intern_locale_data): Likewise.
12202         * locale/programs/locale-spec.c (locale_special): Likewise.
12203         * nis/nis_findserv.c (struct findserv_req): Likewise.
12204         (__nis_findfastest_with_timeout): Likewise.
12205         * nss/test-netdb.c (test_network): Likewise.
12206         * resolv/inet_neta.c (inet_neta): Likewise.
12207         * resolv/ns_date.c (ns_datetosecs): Likewise.
12208         (SECS_PER_DAY): Likewise.
12209         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r):
12210         Likewise.
12211         * resolv/res_comp.c (__putlong): Likewise.
12212         (__putshort): Likewise.
12213         (_getlong): Likewise.
12214         (_getshort): Likewise.
12215         * resolv/res_debug.c (p_time): Likewise.
12216         (precsize_ntoa): Likewise.
12217         (precsize_aton): Likewise.
12218         (latlon2ul): Likewise.
12219         (loc_aton): Likewise.
12220         (loc_ntoa): Likewise.
12221         * resolv/res_hconf.c (struct netaddr): Likewise.
12222         (_res_hconf_reorder_addrs): Likewise.
12223         * sunrpc/clnt_tcp.c (clnttcp_call): Likewise.
12224         (clnttcp_control): Likewise.
12225         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
12226         (clntudp_control): Likewise.
12227         * sunrpc/clnt_unix.c (clntunix_call): Likewise.
12228         (clntunix_control): Likewise.
12229         * sunrpc/pmap_rmt.c (clnt_broadcast): Likewise.
12230         * sunrpc/rpc/auth.h (union des_block): Likewise.
12231         * sunrpc/tst-udp-nonblocking.c (do_test): Likewise.
12232         * sunrpc/xdr_rec.c (struct rec_strm): Likewise.
12233         (xdrrec_create): Likewise.
12234         (xdrrec_endofrecord): Likewise.
12235         (flush_out): Likewise.
12236         * sunrpc/xdr_stdio.c (xdrstdio_getlong): Likewise.
12237         (xdrstdio_putlong): Likewise.
12238         * sysdeps/unix/sysv/linux/errqueue.h (struct sock_extended_err):
12239         Likewise.
12241         * misc/sys/cdefs.h (__long_double_t): Remove.
12242         * stdio-common/printf_fp.c (__printf_fp_l): Use long double
12243         instead of __long_double_t,
12244         * stdlib/strfmon_l.c (__vstrfmon_l): Likewise.
12246 2017-08-07  Siddhesh Poyarekar  <siddhesh@sourceware.org>
12248         * benchtests/scripts/compare_strings.py: Avoid display error when
12249         running on a text terminal.
12251         * benchtests/scripts/compare_strings.py (main): Add an
12252         optional -base option.
12253         (process_results): New argument base_func.
12255         * benchtests/bench-memcpy.c (test_main): Use TEST_NAME instead of
12256         hardcoding memcpy.
12257         * benchtests/bench-memcpy-large.c (test_name): Likewise.
12258         * benchtests/bench-memcpy-random.c (test_name): Likewise.
12260 2017-08-07  Andreas Schwab  <schwab@suse.de>
12262         * elf/Makefile ($(objpfx)tst-pathopt.out): Redirect output to target.
12263         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Likewise.
12264         * intl/Makefile ($(objpfx)tst-gettext.out)
12265         ($(objpfx)tst-translit.out, $(objpfx)tst-gettext2.out)
12266         ($(objpfx)tst-gettext4.out, $(objpfx)tst-gettext6.out): Likewise.
12267         * libio/Makefile ($(objpfx)test-freopen.out): Likewise.
12268         * malloc/Makefile ($(objpfx)tst-mtrace.out): Likewise.
12269         * nptl/Makefile ($(objpfx)tst-tls6.out): Likewise.
12270         * posix/Makefile ($(objpfx)globtest.out)
12271         ($(objpfx)wordexp-tst.out, $(objpfx)tst-getconf.out): Likewise.
12272         * stdio-common/Makefile ($(objpfx)tst-unbputc.out)
12273         ($(objpfx)tst-printf.out): Likewise.
12274         * stdlib/Makefile ($(objpfx)tst-fmtmsg.out)
12275         ($(objpfx)tst-setcontext3.out): Likewise.
12277 2017-08-07  H.J. Lu  <hongjiu.lu@intel.com>
12279         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
12280         Add e_exp-fma, e_log-fma, e_pow-fma, s_atan-fma, e_asin-fma,
12281         e_atan2-fma, s_sin-fma, s_tan-fma, mplog-fma, mpa-fma,
12282         slowexp-fma, slowpow-fma, sincos32-fma, doasin-fma, dosincos-fma,
12283         halfulp-fma, mpexp-fma, mpatan2-fma, mpatan-fma, mpsqrt-fma,
12284         and mptan-fma.
12285         (CFLAGS-doasin-fma.c): New.
12286         (CFLAGS-dosincos-fma.c): Likewise.
12287         (CFLAGS-e_asin-fma.c): Likewise.
12288         (CFLAGS-e_atan2-fma.c): Likewise.
12289         (CFLAGS-e_exp-fma.c): Likewise.
12290         (CFLAGS-e_log-fma.c): Likewise.
12291         (CFLAGS-e_pow-fma.c): Likewise.
12292         (CFLAGS-halfulp-fma.c): Likewise.
12293         (CFLAGS-mpa-fma.c): Likewise.
12294         (CFLAGS-mpatan-fma.c): Likewise.
12295         (CFLAGS-mpatan2-fma.c): Likewise.
12296         (CFLAGS-mpexp-fma.c): Likewise.
12297         (CFLAGS-mplog-fma.c): Likewise.
12298         (CFLAGS-mpsqrt-fma.c): Likewise.
12299         (CFLAGS-mptan-fma.c): Likewise.
12300         (CFLAGS-s_atan-fma.c): Likewise.
12301         (CFLAGS-sincos32-fma.c): Likewise.
12302         (CFLAGS-slowexp-fma.c): Likewise.
12303         (CFLAGS-slowpow-fma.c): Likewise.
12304         (CFLAGS-s_sin-fma.c): Likewise.
12305         (CFLAGS-s_tan-fma.c): Likewise.
12306         * sysdeps/x86_64/fpu/multiarch/doasin-fma.c: New file.
12307         * sysdeps/x86_64/fpu/multiarch/dosincos-fma.c: Likewise.
12308         * sysdeps/x86_64/fpu/multiarch/e_asin-fma.c: Likewise.
12309         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma.c: Likewise.
12310         * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c: Likewise.
12311         * sysdeps/x86_64/fpu/multiarch/e_log-fma.c: Likewise.
12312         * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c: Likewise.
12313         * sysdeps/x86_64/fpu/multiarch/halfulp-fma.c: Likewise.
12314         * sysdeps/x86_64/fpu/multiarch/ifunc-avx-fma4.h: Likewise.
12315         * sysdeps/x86_64/fpu/multiarch/ifunc-fma4.h: Likewise.
12316         * sysdeps/x86_64/fpu/multiarch/mpa-fma.c: Likewise.
12317         * sysdeps/x86_64/fpu/multiarch/mpatan-fma.c: Likewise.
12318         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma.c: Likewise.
12319         * sysdeps/x86_64/fpu/multiarch/mpexp-fma.c: Likewise.
12320         * sysdeps/x86_64/fpu/multiarch/mplog-fma.c: Likewise.
12321         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma.c: Likewise.
12322         * sysdeps/x86_64/fpu/multiarch/mptan-fma.c: Likewise.
12323         * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c: Likewise.
12324         * sysdeps/x86_64/fpu/multiarch/s_sin-fma.c: Likewise.
12325         * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c: Likewise.
12326         * sysdeps/x86_64/fpu/multiarch/sincos32-fma.c: Likewise.
12327         * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
12328         * sysdeps/x86_64/fpu/multiarch/slowpow-fma.c: Likewise.
12329         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Rewrite.
12330         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
12331         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
12332         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
12333         * sysdeps/x86_64/fpu/multiarch/e_pow.c: Likewise.
12334         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
12335         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
12336         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
12338 2017-08-04  Joseph Myers  <joseph@codesourcery.com>
12340         * sysdeps/generic/math_private.h (__EXPR_FLT128): Remove macro.
12341         (min_of_type_f): New macro.
12342         (min_of_type_): Likewise.
12343         (min_of_type_l): Likewise.
12344         (min_of_type_f128): Likewise.
12345         (min_of_type): Define using __MATH_TG and taking an expression
12346         argument.
12347         (math_check_force_underflow): Pass expression instead of type to
12348         min_of_type.
12349         (math_check_force_underflow_nonneg): Likewise.
12351 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
12353         * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
12354         (LOAD_RTLD_GLOBAL_RO_RDX, HAS_FEATURE, LOAD_FUNC_GOT_EAX,
12355         HAS_CPU_FEATURE, HAS_ARCH_FEATURE): Removed.
12357 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
12359         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
12360         bcopy-ia32, bzero-ia32, rawmemchr-ia32 memchr-ia32,
12361         memcmp-ia32, memcpy-ia32, memmove-ia32, mempcpy-ia32,
12362         memset-ia32, strcat-ia32, strchr-ia32, strrchr-ia32,
12363         strcpy-ia32, strcmp-ia32, strcspn-ia32, strpbrk-ia32,
12364         strspn-ia32, strlen-ia32, stpcpy-ia32, stpncpy-ia32,
12365         memcpy_chk-nonshared, mempcpy_chk-nonshared,
12366         memmove_chk-nonshared and memset_chk-nonshared
12367         * sysdeps/i386/i686/multiarch/bcopy-ia32.S: New file.
12368         * sysdeps/i386/i686/multiarch/bcopy.c: Likewise.
12369         * sysdeps/i386/i686/multiarch/bzero-ia32.S: Likewise.
12370         * sysdeps/i386/i686/multiarch/bzero.c: Likewise.
12371         * sysdeps/i386/i686/multiarch/ifunc-memmove.h: Likewise.
12372         * sysdeps/i386/i686/multiarch/ifunc-memset.h: Likewise.
12373         * sysdeps/i386/i686/multiarch/ifunc-sse2-bsf.h: Likewise.
12374         * sysdeps/i386/i686/multiarch/ifunc-sse2-ssse3.h: Likewise.
12375         * sysdeps/i386/i686/multiarch/ifunc-sse2.h: Likewise.
12376         * sysdeps/i386/i686/multiarch/ifunc-sse4_2.h: Likewise.
12377         * sysdeps/i386/i686/multiarch/ifunc-ssse3-sse4_2.h: Likewise.
12378         * sysdeps/i386/i686/multiarch/memchr-ia32.S: Likewise.
12379         * sysdeps/i386/i686/multiarch/memchr.c: Likewise.
12380         * sysdeps/i386/i686/multiarch/memcmp-ia32.S: Likewise.
12381         * sysdeps/i386/i686/multiarch/memcmp.c: Likewise.
12382         * sysdeps/i386/i686/multiarch/memcpy-ia32.S: Likewise.
12383         * sysdeps/i386/i686/multiarch/memcpy.c: Likewise.
12384         * sysdeps/i386/i686/multiarch/memcpy_chk-nonshared.S: Likewise.
12385         * sysdeps/i386/i686/multiarch/memcpy_chk.c: Likewise.
12386         * sysdeps/i386/i686/multiarch/memmove-ia32.S: Likewise.
12387         * sysdeps/i386/i686/multiarch/memmove.c: Likewise.
12388         * sysdeps/i386/i686/multiarch/memmove_chk-nonshared.S: Likewise.
12389         * sysdeps/i386/i686/multiarch/memmove_chk.c: Likewise.
12390         * sysdeps/i386/i686/multiarch/mempcpy-ia32.S: Likewise.
12391         * sysdeps/i386/i686/multiarch/mempcpy.c: Likewise.
12392         * sysdeps/i386/i686/multiarch/mempcpy_chk-nonshared.S: Likewise.
12393         * sysdeps/i386/i686/multiarch/mempcpy_chk.c: Likewise.
12394         * sysdeps/i386/i686/multiarch/memrchr.c: Likewise.
12395         * sysdeps/i386/i686/multiarch/memset-ia32.S: Likewise.
12396         * sysdeps/i386/i686/multiarch/memset.c: Likewise.
12397         * sysdeps/i386/i686/multiarch/memset_chk-nonshared.S: Likewise.
12398         * sysdeps/i386/i686/multiarch/rawmemchr-ia32.S: Likewise.
12399         * sysdeps/i386/i686/multiarch/rawmemchr.c: Likewise.
12400         * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
12401         * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
12402         * sysdeps/i386/i686/multiarch/stpcpy.c: Likewise.
12403         * sysdeps/i386/i686/multiarch/stpncpy-ia32.S: Likewise.
12404         * sysdeps/i386/i686/multiarch/stpncpy.c: Likewise.
12405         * sysdeps/i386/i686/multiarch/strcasecmp.c: Likewise.
12406         * sysdeps/i386/i686/multiarch/strcasecmp_l.c: Likewise.
12407         * sysdeps/i386/i686/multiarch/strcat-ia32.S: Likewise.
12408         * sysdeps/i386/i686/multiarch/strcat.c: Likewise.
12409         * sysdeps/i386/i686/multiarch/strchr-ia32.S: Likewise.
12410         * sysdeps/i386/i686/multiarch/strchr.c: Likewise.
12411         * sysdeps/i386/i686/multiarch/strcmp-ia32.S: Likewise.
12412         * sysdeps/i386/i686/multiarch/strcmp.c: Likewise.
12413         * sysdeps/i386/i686/multiarch/strcpy-ia32.S: Likewise.
12414         * sysdeps/i386/i686/multiarch/strcpy.c: Likewise.
12415         * sysdeps/i386/i686/multiarch/strcspn-ia32.S: Likewise.
12416         * sysdeps/i386/i686/multiarch/strcspn.c: Likewise.
12417         * sysdeps/i386/i686/multiarch/strlen-ia32.S: Likewise.
12418         * sysdeps/i386/i686/multiarch/strlen.c: Likewise.
12419         * sysdeps/i386/i686/multiarch/strncase.c: Likewise.
12420         * sysdeps/i386/i686/multiarch/strncase_l.c: Likewise.
12421         * sysdeps/i386/i686/multiarch/strncat.c: Likewise.
12422         * sysdeps/i386/i686/multiarch/strncmp.c: Likewise.
12423         * sysdeps/i386/i686/multiarch/strncpy.c: Likewise.
12424         * sysdeps/i386/i686/multiarch/strnlen.c: Likewise.
12425         * sysdeps/i386/i686/multiarch/strpbrk-ia32.S: Likewise.
12426         * sysdeps/i386/i686/multiarch/strpbrk.c: Likewise.
12427         * sysdeps/i386/i686/multiarch/strrchr-ia32.S: Likewise.
12428         * sysdeps/i386/i686/multiarch/strrchr.c: Likewise.
12429         * sysdeps/i386/i686/multiarch/strspn-ia32.S: Likewise.
12430         * sysdeps/i386/i686/multiarch/strspn.c: Likewise.
12431         * sysdeps/i386/i686/multiarch/wcschr.c: Likewise.
12432         * sysdeps/i386/i686/multiarch/wcscmp.c: Likewise.
12433         * sysdeps/i386/i686/multiarch/wcscpy.c: Likewise.
12434         * sysdeps/i386/i686/multiarch/wcslen.c: Likewise.
12435         * sysdeps/i386/i686/multiarch/wcsrchr.c: Likewise.
12436         * sysdeps/i386/i686/multiarch/wmemcmp.c: Likewise.
12437         * sysdeps/i386/i686/multiarch/bcopy.S: Removed.
12438         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
12439         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
12440         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
12441         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
12442         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
12443         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
12444         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
12445         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
12446         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
12447         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
12448         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
12449         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
12450         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
12451         * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
12452         * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
12453         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
12454         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
12455         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
12456         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
12457         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
12458         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
12459         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
12460         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
12461         * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
12462         * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
12463         * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
12464         * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
12465         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
12466         * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
12467         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
12468         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
12469         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
12470         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
12471         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
12472         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
12473         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
12474         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
12476 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
12478         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines)
12479         Add svml_d_cos2_core-sse2, svml_d_cos4_core-sse,
12480         svml_d_cos8_core-avx2, svml_d_exp2_core-sse2,
12481         svml_d_exp4_core-sse, svml_d_exp8_core-avx2,
12482         svml_d_log2_core-sse2, svml_d_log4_core-sse,
12483         svml_d_log8_core-avx2, svml_d_pow2_core-sse2,
12484         svml_d_pow4_core-sse, svml_d_pow8_core-avx2
12485         svml_d_sin2_core-sse2, svml_d_sin4_core-sse,
12486         svml_d_sin8_core-avx2, svml_d_sincos2_core-sse2,
12487         svml_d_sincos4_core-sse, svml_d_sincos8_core-avx2,
12488         svml_s_cosf16_core-avx2, svml_s_cosf4_core-sse2,
12489         svml_s_cosf8_core-sse, svml_s_expf16_core-avx2,
12490         svml_s_expf4_core-sse2, svml_s_expf8_core-sse,
12491         svml_s_logf16_core-avx2, svml_s_logf4_core-sse2,
12492         svml_s_logf8_core-sse, svml_s_powf16_core-avx2,
12493         svml_s_powf4_core-sse2, svml_s_powf8_core-sse,
12494         svml_s_sincosf16_core-avx2, svml_s_sincosf4_core-sse2,
12495         svml_s_sincosf8_core-sse, svml_s_sinf16_core-avx2,
12496         svml_s_sinf4_core-sse2 and svml_s_sinf8_core-sse.
12497         * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h: New file.
12498         * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h: Likewise.
12499         * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-sse4_1.h: Likewise.
12500         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.c: Likewise.
12501         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.c: Likewise.
12502         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.c: Likewise.
12503         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.c: Likewise.
12504         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.c: Likewise.
12505         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.c: Likewise.
12506         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.c: Likewise.
12507         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.c: Likewise.
12508         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.c: Likewise.
12509         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.c: Likewise.
12510         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.c: Likewise.
12511         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.c: Likewise.
12512         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.c: Likewise.
12513         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.c: Likewise.
12514         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.c: Likewise.
12515         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.c: Likewise.
12516         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.c: Likewise.
12517         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.c: Likewise.
12518         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.c: Likewise.
12519         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.c: Likewise.
12520         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.c: Likewise.
12521         * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.c: Likewise.
12522         * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.c: Likewise.
12523         * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.c: Likewise.
12524         * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.c: Likewise.
12525         * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.c: Likewise.
12526         * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.c: Likewise.
12527         * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.c: Likewise.
12528         * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.c: Likewise.
12529         * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.c: Likewise.
12530         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.c: Likewise.
12531         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.c: Likewise.
12532         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.c: Likewise.
12533         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.c: Likewise.
12534         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.c: Likewise.
12535         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.c: Likewise.
12536         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.S:  Renamed to
12537         ...
12538         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core-sse2.S: This.
12539         Don't include <sysdep.h> nor <init-arch.h>.
12540         (_ZGVbN2v_cos): Removed.
12541         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.S:  Renamed to
12542         ...
12543         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core-sse.S: This.
12544         Don't include <sysdep.h> nor <init-arch.h>.
12545         (_ZGVdN4v_cos): Removed.
12546         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S:  Renamed to
12547         ...
12548         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core-avx2.S: This.
12549         Don't include <sysdep.h> nor <init-arch.h>.
12550         (_ZGVeN8v_cos): Removed.
12551         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.S:  Renamed to
12552         ...
12553         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core-sse2.S: This.
12554         Don't include <sysdep.h> nor <init-arch.h>.
12555         (_ZGVbN2v_exp): Removed.
12556         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.S:  Renamed to
12557         ...
12558         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core-sse.S: This.
12559         Don't include <sysdep.h> nor <init-arch.h>.
12560         (_ZGVdN4v_exp): Removed.
12561         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S:  Renamed to
12562         ...
12563         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core-avx2.S: This.
12564         Don't include <sysdep.h> nor <init-arch.h>.
12565         (_ZGVeN8v_exp): Removed.
12566         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.S:  Renamed to
12567         ...
12568         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core-sse2.S: This.
12569         Don't include <sysdep.h> nor <init-arch.h>.
12570         (_ZGVbN2v_log): Removed.
12571         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.S:  Renamed to
12572         ...
12573         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core-sse.S: This.
12574         Don't include <sysdep.h> nor <init-arch.h>.
12575         (_ZGVdN4v_log): Removed.
12576         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S:  Renamed to
12577         ...
12578         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core-avx2.S: This.
12579         Don't include <sysdep.h> nor <init-arch.h>.
12580         (_ZGVeN8v_log): Removed.
12581         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.S:  Renamed to
12582         ...
12583         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core-sse2.S: This.
12584         Don't include <sysdep.h> nor <init-arch.h>.
12585         (_ZGVbN2vv_pow): Removed.
12586         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.S:  Renamed to
12587         ...
12588         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core-sse.S: This.
12589         Don't include <sysdep.h> nor <init-arch.h>.
12590         (_ZGVdN4vv_pow): Removed.
12591         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S:  Renamed to
12592         ...
12593         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core-avx2.S: This.
12594         Don't include <sysdep.h> nor <init-arch.h>.
12595         (_ZGVeN8vv_pow): Removed.
12596         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.S:  Renamed to
12597         ...
12598         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core-sse2.S: This.
12599         Don't include <sysdep.h> nor <init-arch.h>.
12600         (_ZGVbN2v_sin): Removed.
12601         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.S:  Renamed to
12602         ...
12603         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core-sse.S: This.
12604         Don't include <sysdep.h> nor <init-arch.h>.
12605         (_ZGVbN4v_sin): Removed.
12606         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S:  Renamed to
12607         ...
12608         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core-avx2.S: This.
12609         Don't include <sysdep.h> nor <init-arch.h>.
12610         (_ZGVbN8v_sin): Removed.
12611         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.S:  Renamed to
12612         ...
12613         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core-sse2.S: This.
12614         Don't include <sysdep.h> nor <init-arch.h>.
12615         (_ZGVbN2vvv_sincos): Removed.
12616         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.S:  Renamed to
12617         ...
12618         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core-sse.S: This.
12619         Don't include <sysdep.h> nor <init-arch.h>.
12620         (_ZGVdN4vvv_sincos): Removed.
12621         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S:  Renamed to
12622         ...
12623         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core-avx2.S: This.
12624         Don't include <sysdep.h> nor <init-arch.h>.
12625         (_ZGVeN8vvv_sincos): Removed.
12626         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.S:  Renamed to
12627         ...
12628         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core-avx2.S: This.
12629         Don't include <sysdep.h> nor <init-arch.h>.
12630         (_ZGVeN16v_cosf): Removed.
12631         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.S:  Renamed to
12632         ...
12633         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core-sse2.S: This.
12634         Don't include <sysdep.h> nor <init-arch.h>.
12635         (_ZGVbN4v_cosf): Removed.
12636         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.S:  Renamed to
12637         ...
12638         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core-sse.S: This.
12639         Don't include <sysdep.h> nor <init-arch.h>.
12640         (_ZGVdN8v_cosf): Removed.
12641         * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.S:  Renamed to
12642         ...
12643         * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core-avx2.S: This.
12644         Don't include <sysdep.h> nor <init-arch.h>.
12645         (_ZGVeN16v_expf): Removed.
12646         * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.S:  Renamed to
12647         ...
12648         * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core-sse2.S: This.
12649         Don't include <sysdep.h> nor <init-arch.h>.
12650         (_ZGVbN4v_expf): Removed.
12651         * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.S:  Renamed to
12652         ...
12653         * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core-sse.S: This.
12654         Don't include <sysdep.h> nor <init-arch.h>.
12655         (_ZGVdN8v_expf): Removed.
12656         * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.S:  Renamed to
12657         ...
12658         * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core-avx2.S: This.
12659         Don't include <sysdep.h> nor <init-arch.h>.
12660         (_ZGVeN16v_logf): Removed.
12661         * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.S:  Renamed to
12662         ...
12663         * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core-sse2.S: This.
12664         Don't include <sysdep.h> nor <init-arch.h>.
12665         (_ZGVbN4v_logf): Removed.
12666         * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.S:  Renamed to
12667         ...
12668         * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core-sse.S: This.
12669         Don't include <sysdep.h> nor <init-arch.h>.
12670         (_ZGVdN8v_logf): Removed.
12671         * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.S:  Renamed to
12672         ...
12673         * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core-avx2.S: This.
12674         Don't include <sysdep.h> nor <init-arch.h>.
12675         (_ZGVeN16vv_powf): Removed.
12676         * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.S:  Renamed to
12677         ...
12678         * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core-sse2.S: This.
12679         Don't include <sysdep.h> nor <init-arch.h>.
12680         (_ZGVbN4vv_powf): Removed.
12681         * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.S:  Renamed to
12682         ...
12683         * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core-sse.S: This.
12684         Don't include <sysdep.h> nor <init-arch.h>.
12685         (_ZGVdN8vv_powf): Removed.
12686         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.S:  Renamed to
12687         ...
12688         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core-avx2.S: This.
12689         Don't include <sysdep.h> nor <init-arch.h>.
12690         (_ZGVeN16vvv_sincosf): Removed.
12691         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.S:  Renamed to
12692         ...
12693         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core-sse2.S: This.
12694         Don't include <sysdep.h> nor <init-arch.h>.
12695         (_ZGVbN4vvv_sincosf): Removed.
12696         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.S:  Renamed to
12697         ...
12698         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core-sse.S: This.
12699         Don't include <sysdep.h> nor <init-arch.h>.
12700         (_ZGVdN8vvv_sincosf): Removed.
12701         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.S:  Renamed to
12702         ...
12703         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core-avx2.S: This.
12704         Don't include <sysdep.h> nor <init-arch.h>.
12705         (_ZGVeN16v_sinf): Removed.
12706         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.S:  Renamed to
12707         ...
12708         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core-sse2.S: This.
12709         Don't include <sysdep.h> nor <init-arch.h>.
12710         (_ZGVbN4v_sinf): Removed.
12711         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.S:  Renamed to
12712         ...
12713         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core-sse.S: This.
12714         Don't include <sysdep.h> nor <init-arch.h>.
12715         (_ZGVdN8v_sinf): Removed.
12717 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
12719         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
12720         Add s_ceil-sse4_1, s_ceilf-sse4_1, s_floor-sse4_1,
12721         s_floorf-sse4_1, s_nearbyint-sse4_1, s_nearbyintf-sse4_1,
12722         s_rint-sse4_1 and s_rintf-sse4_1.
12723         * sysdeps/x86_64/fpu/multiarch/ifunc-sse4_1.h: New file.
12724         * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Likewise.
12725         * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Likewise.
12726         * sysdeps/x86_64/fpu/multiarch/s_floor.c: Likewise.
12727         * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Likewise.
12728         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Likewise.
12729         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Likewise.
12730         * sysdeps/x86_64/fpu/multiarch/s_rint.c: Likewise.
12731         * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Likewise.
12732         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: Renamed to ...
12733         * sysdeps/x86_64/fpu/multiarch/s_ceil-sse4_1.S: This.  Don't
12734         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
12735         (__ceil): Removed.
12736         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: Renamed to ...
12737         * sysdeps/x86_64/fpu/multiarch/s_ceilf-sse4_1.S: This.  Don't
12738         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
12739         (__ceilf): Removed.
12740         * sysdeps/x86_64/fpu/multiarch/s_floor.S: Renamed to ...
12741         * sysdeps/x86_64/fpu/multiarch/s_floor-sse4_1.S: This.  Don't
12742         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
12743         (__floor): Removed.
12744         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: Renamed to ...
12745         * sysdeps/x86_64/fpu/multiarch/s_floorf-sse4_1.S: This.  Don't
12746         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
12747         (__floorf): Removed.
12748         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: Renamed to ...
12749         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-sse4_1.S: This.  Don't
12750         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
12751         (__nearbyint): Removed.
12752         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: Renamed to ...
12753         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-sse4_1.S: This.  Don't
12754         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
12755         (__nearbyintf): Removed.
12756         * sysdeps/x86_64/fpu/multiarch/s_rint.S: Renamed to ...
12757         * sysdeps/x86_64/fpu/multiarch/s_rint-sse4_1.S: This.  Don't
12758         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
12759         (__rint): Removed.
12760         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: Renamed to ...
12761         * sysdeps/x86_64/fpu/multiarch/s_rintf-sse4_1.S: This.  Don't
12762         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
12763         (__rintf): Removed.
12765 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
12767         * sysdeps/i386/start.S (_start): Check Check PIC instead of
12768         SHARED.  Avoid dynamic relocation against main in static PIE.
12770 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
12772         [BZ #21815]
12773         * elf/Makefile (CFLAGS-tst-prelink.c): New.
12774         (LDFLAGS-tst-prelink): Likewise.
12776 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
12778         * sysdeps/unix/sysv/linux/i386/sysdep.h (I386_USE_SYSENTER):
12779         Define to I386_USE_SYSENTER to 0 or 1 if not defined.
12780         (ENTER_KERNEL): Check if I386_USE_SYSENTER is 1 and check PIC.
12781         (INTERNAL_SYSCALL_MAIN_INLINE): Likewise.
12782         (INTERNAL_SYSCALL_NCS): Likewise.
12783         (LOADARGS_1): Likewise.
12784         (LOADARGS_5): Likewise.
12785         (RESTOREARGS_1): Likewise.
12786         (RESTOREARGS_5): Likewise.
12788 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
12790         * sysdeps/x86_64/memmove.S (MEMCPY_SYMBOL): Don't check SHARED.
12791         (MEMPCPY_SYMBOL): Likewise.
12792         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
12793         (__libc_ifunc_impl_list): Test memcpy and mempcpy in libc.a.
12794         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Also include
12795         in libc.a.
12796         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
12797         * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
12798         Likewise.
12799         * sysdeps/x86_64/multiarch/memcpy.c: Also include in libc.a.
12800         (__hidden_ver1): Don't use in libc.a.
12801         * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S
12802         (__mempcpy): Don't create a weak alias in libc.a.
12803         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S: Support
12804         libc.a.
12805         * sysdeps/x86_64/multiarch/mempcpy.c: Also include in libc.a.
12806         (__hidden_ver1): Don't use in libc.a.
12808 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
12810         * config.make.in (have-insert): New.
12811         * configure.ac (libc_cv_insert): New.  Set to yes if linker
12812         supports INSERT in linker script.
12813         (AC_SUBST(libc_cv_insert): New.
12814         * configure: Regenerated.
12815         * sysdeps/x86_64/Makefile (tests): Add tst-split-dynreloc only
12816         if $(have-insert) == yes.
12818 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
12820         * elf/Makefile (tests): Add vismain only if
12821         $(have-protected-data) == yes.
12822         (tests-pie): Likewise.
12824 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
12826         [BZ #21871]
12827         * sysdeps/x86/cpu-features.c (init_cpu_features): Set
12828         bit_arch_Use_dl_runtime_resolve_opt only with AVX512F.
12830 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
12832         [BZ #21790]
12833         * sysdeps/i386/i586/memset.S
12834         (__memset_zero_constant_len_parameter): Removed.
12835         * sysdeps/i386/i686/memset.S
12836         (__memset_zero_constant_len_parameter): Likewise.
12837         * sysdeps/i386/i686/multiarch/memset_chk.S
12838         (__memset_zero_constant_len_parameter): Likewise.
12839         * sysdeps/x86_64/memset.S (__memset_zero_constant_len_parameter):
12840         Likewise.
12842 2017-08-03  Aurelien Jarno  <aurelien@aurel32.net>
12844         * stdlib/getentropy.c (getentropy): Change return type to int.
12846 2017-08-03  Aurelien Jarno  <aurelien@aurel32.net>
12848         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Regenerated.
12850 2017-08-03  Joseph Myers  <joseph@codesourcery.com>
12852         * math/s_nextafter.c (__nextafter): Use uintN_t instead of
12853         u_intN_t.
12854         * math/s_nexttowardf.c (__nexttowardf): Likewise.
12855         * sysdeps/generic/math_private.h (ieee_double_shape_type):
12856         Likewise.
12857         (ieee_float_shape_type): Likewise.
12858         * sysdeps/i386/fpu/s_fpclassifyl.c (__fpclassifyl): Likewise.
12859         * sysdeps/i386/fpu/s_isnanl.c (__isnanl): Likewise.
12860         * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Likewise.
12861         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
12862         * sysdeps/i386/fpu/s_nexttowardf.c (__nexttowardf): Likewise.
12863         * sysdeps/ieee754/dbl-64/e_acosh.c (__ieee754_acosh): Likewise.
12864         * sysdeps/ieee754/dbl-64/e_cosh.c (__ieee754_cosh): Likewise.
12865         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Likewise.
12866         * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
12867         Likewise.
12868         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
12869         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
12870         (__ieee754_yn): Likewise.
12871         * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
12872         * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
12873         * sysdeps/ieee754/dbl-64/e_rem_pio2.c (__ieee754_rem_pio2):
12874         Likewise.
12875         * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
12876         * sysdeps/ieee754/dbl-64/s_ceil.c (__ceil): Likewise.
12877         * sysdeps/ieee754/dbl-64/s_copysign.c (__copysign): Likewise.
12878         * sysdeps/ieee754/dbl-64/s_erf.c (__erf): Likewise.
12879         (__erfc): Likewise.
12880         * sysdeps/ieee754/dbl-64/s_expm1.c (__expm1): Likewise.
12881         * sysdeps/ieee754/dbl-64/s_finite.c (FINITE): Likewise.
12882         * sysdeps/ieee754/dbl-64/s_floor.c (__floor): Likewise.
12883         * sysdeps/ieee754/dbl-64/s_fpclassify.c (__fpclassify): Likewise.
12884         * sysdeps/ieee754/dbl-64/s_isnan.c (__isnan): Likewise.
12885         * sysdeps/ieee754/dbl-64/s_issignaling.c (__issignaling):
12886         Likewise.
12887         * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Likewise.
12888         * sysdeps/ieee754/dbl-64/s_llround.c (__llround): Likewise.
12889         * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
12890         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Likewise.
12891         * sysdeps/ieee754/dbl-64/s_modf.c (__modf): Likewise.
12892         * sysdeps/ieee754/dbl-64/s_nextup.c (__nextup): Likewise.
12893         * sysdeps/ieee754/dbl-64/s_remquo.c (__remquo): Likewise.
12894         * sysdeps/ieee754/dbl-64/s_round.c (__round): Likewise.
12895         * sysdeps/ieee754/dbl-64/s_trunc.c (__trunc): Likewise.
12896         * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c
12897         (__issignaling): Likewise.
12898         * sysdeps/ieee754/flt-32/e_atan2f.c (__ieee754_atan2f): Likewise.
12899         * sysdeps/ieee754/flt-32/e_fmodf.c (__ieee754_fmodf): Likewise.
12900         * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
12901         Likewise.
12902         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
12903         * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
12904         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Likewise.
12905         * sysdeps/ieee754/flt-32/e_rem_pio2f.c (__ieee754_rem_pio2f):
12906         Likewise.
12907         * sysdeps/ieee754/flt-32/e_remainderf.c (__ieee754_remainderf):
12908         Likewise.
12909         * sysdeps/ieee754/flt-32/e_sqrtf.c (__ieee754_sqrtf): Likewise.
12910         * sysdeps/ieee754/flt-32/s_ceilf.c (__ceilf): Likewise.
12911         * sysdeps/ieee754/flt-32/s_copysignf.c (__copysignf): Likewise.
12912         * sysdeps/ieee754/flt-32/s_erff.c (__erff): Likewise.
12913         (__erfcf): Likewise.
12914         * sysdeps/ieee754/flt-32/s_expm1f.c (__expm1f): Likewise.
12915         * sysdeps/ieee754/flt-32/s_finitef.c (FINITEF): Likewise.
12916         * sysdeps/ieee754/flt-32/s_floorf.c (__floorf): Likewise.
12917         * sysdeps/ieee754/flt-32/s_fpclassifyf.c (__fpclassifyf):
12918         Likewise.
12919         * sysdeps/ieee754/flt-32/s_isnanf.c (__isnanf): Likewise.
12920         * sysdeps/ieee754/flt-32/s_issignalingf.c (__issignalingf):
12921         Likewise.
12922         * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
12923         * sysdeps/ieee754/flt-32/s_llroundf.c (__llroundf): Likewise.
12924         * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
12925         * sysdeps/ieee754/flt-32/s_lroundf.c (__lroundf): Likewise.
12926         * sysdeps/ieee754/flt-32/s_modff.c (__modff): Likewise.
12927         * sysdeps/ieee754/flt-32/s_remquof.c (__remquof): Likewise.
12928         * sysdeps/ieee754/flt-32/s_roundf.c (__roundf): Likewise.
12929         * sysdeps/ieee754/ldbl-128/e_acoshl.c (__ieee754_acoshl):
12930         Likewise.
12931         * sysdeps/ieee754/ldbl-128/e_atan2l.c (__ieee754_atan2l):
12932         Likewise.
12933         * sysdeps/ieee754/ldbl-128/e_atanhl.c (__ieee754_atanhl):
12934         Likewise.
12935         * sysdeps/ieee754/ldbl-128/e_fmodl.c (__ieee754_fmodl): Likewise.
12936         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
12937         Likewise.
12938         * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
12939         Likewise.
12940         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
12941         (__ieee754_ynl): Likewise.
12942         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
12943         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c (__ieee754_rem_pio2l):
12944         Likewise.
12945         * sysdeps/ieee754/ldbl-128/e_remainderl.c (__ieee754_remainderl):
12946         Likewise.
12947         * sysdeps/ieee754/ldbl-128/e_sinhl.c (__ieee754_sinhl): Likewise.
12948         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Likewise.
12949         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
12950         Likewise.
12951         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Likewise.
12952         * sysdeps/ieee754/ldbl-128/s_ceill.c (__ceill): Likewise.
12953         * sysdeps/ieee754/ldbl-128/s_copysignl.c (__copysignl): Likewise.
12954         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Likewise.
12955         * sysdeps/ieee754/ldbl-128/s_fabsl.c (__fabsl): Likewise.
12956         * sysdeps/ieee754/ldbl-128/s_finitel.c (__finitel): Likewise.
12957         * sysdeps/ieee754/ldbl-128/s_floorl.c (__floorl): Likewise.
12958         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c (__fpclassifyl):
12959         Likewise.
12960         * sysdeps/ieee754/ldbl-128/s_frexpl.c (__frexpl): Likewise.
12961         * sysdeps/ieee754/ldbl-128/s_isnanl.c (__isnanl): Likewise.
12962         * sysdeps/ieee754/ldbl-128/s_issignalingl.c (__issignalingl):
12963         Likewise.
12964         * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
12965         * sysdeps/ieee754/ldbl-128/s_llroundl.c (__llroundl): Likewise.
12966         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
12967         * sysdeps/ieee754/ldbl-128/s_lroundl.c (__lroundl): Likewise.
12968         * sysdeps/ieee754/ldbl-128/s_modfl.c (__modfl): Likewise.
12969         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
12970         Likewise.
12971         * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl):
12972         Likewise.
12973         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
12974         Likewise.
12975         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
12976         Likewise.
12977         * sysdeps/ieee754/ldbl-128/s_nextupl.c (__nextupl): Likewise.
12978         * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Likewise.
12979         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
12980         * sysdeps/ieee754/ldbl-128/s_roundl.c (__roundl): Likewise.
12981         * sysdeps/ieee754/ldbl-128/s_tanhl.c (__tanhl): Likewise.
12982         * sysdeps/ieee754/ldbl-128/s_truncl.c (__truncl): Likewise.
12983         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl):
12984         Likewise.
12985         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
12986         Likewise.
12987         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
12988         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
12989         Likewise.
12990         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c
12991         (__ieee754_remainderl): Likewise.
12992         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
12993         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
12994         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Likewise.
12995         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c (___fpclassifyl):
12996         Likewise.
12997         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c (__modfl): Likewise.
12998         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
12999         Likewise.
13000         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
13001         * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Likewise.
13002         * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
13003         * sysdeps/ieee754/ldbl-96/e_atanhl.c (__ieee754_atanhl): Likewise.
13004         * sysdeps/ieee754/ldbl-96/e_coshl.c (__ieee754_coshl): Likewise.
13005         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
13006         Likewise.
13007         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
13008         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Likewise.
13009         (__ieee754_y0l): Likewise.
13010         (pzero): Likewise.
13011         (qzero): Likewise.
13012         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
13013         (__ieee754_y1l): Likewise.
13014         (pone): Likewise.
13015         (qone): Likewise.
13016         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
13017         (__ieee754_ynl): Likewise.
13018         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Likewise.
13019         (__ieee754_lgammal_r): Likewise.
13020         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c (__ieee754_rem_pio2l):
13021         Likewise.
13022         * sysdeps/ieee754/ldbl-96/e_sinhl.c (__ieee754_sinhl): Likewise.
13023         * sysdeps/ieee754/ldbl-96/s_copysignl.c (__copysignl): Likewise.
13024         * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfl): Likewise.
13025         (__erfcl): Likewise.
13026         * sysdeps/ieee754/ldbl-96/s_frexpl.c (__frexpl): Likewise.
13027         * sysdeps/ieee754/ldbl-96/s_issignalingl.c (__issignalingl):
13028         Likewise.
13029         * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
13030         * sysdeps/ieee754/ldbl-96/s_llroundl.c (__llroundl): Likewise.
13031         * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
13032         * sysdeps/ieee754/ldbl-96/s_lroundl.c (__lroundl): Likewise.
13033         * sysdeps/ieee754/ldbl-96/s_modfl.c (__modfl): Likewise.
13034         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
13035         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
13036         Likewise.
13037         * sysdeps/ieee754/ldbl-96/s_nextupl.c (__nextupl): Likewise.
13038         * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Likewise.
13039         * sysdeps/ieee754/ldbl-96/s_roundl.c (__roundl): Likewise.
13040         * sysdeps/ieee754/ldbl-96/s_tanhl.c (__tanhl): Likewise.
13041         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
13042         Likewise.
13043         * sysdeps/m68k/m680x0/fpu/e_pow.c (s(__ieee754_pow)): Likewise.
13044         * sysdeps/m68k/m680x0/fpu/s_fpclassifyl.c (__fpclassifyl):
13045         Likewise.
13046         * sysdeps/m68k/m680x0/fpu/s_llrint.c (__llrint): Likewise.
13047         * sysdeps/m68k/m680x0/fpu/s_llrintf.c (__llrintf): Likewise.
13048         * sysdeps/m68k/m680x0/fpu/s_llrintl.c (__llrintl): Likewise.
13049         * sysdeps/m68k/m680x0/fpu/s_nextafterl.c (__nextafterl): Likewise.
13050         * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Likewise.
13052 2017-08-03  Florian Weimer  <fweimer@redhat.com>
13054         [BZ #21885]
13055         * sysdeps/posix/getaddrinfo.c (gethosts): Release resolver context
13056         on memory allocation failure.
13058 2017-08-03  Alan Modra  <amodra@gmail.com>
13060         * sysdeps/powerpc/mod-tlsopt-powerpc.c: Extract from
13061         tst-tlsopt-powerpc.c with function name change and no test harness.
13062         * sysdeps/powerpc/tst-tlsopt-powerpc.c: Remove body of test.
13063         Call tls_get_addr_opt_test.
13064         * sysdeps/powerpc/Makefile (LDFLAGS-tst-tlsopt-powerpc): Don't define.
13065         (modules-names): Add mod-tlsopt-powerpc.
13066         (mod-tlsopt-powerpc.so-no-z-defs): Define.
13067         (tst-tlsopt-powerpc): Depend on .so.
13068         * sysdeps/powerpc/powerpc64/tls-macros.h (__TLS_GET_ADDR): Don't
13069         define.  Expand use in TLS_GD and TLS_LD.
13071 2017-08-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
13073         * sysdeps/mach/hurd/enbl-secure.c (__libc_init_secure): Define
13074         function.
13075         * sysdeps/posix/shm_open.c: Include <pthread.h>.
13077 2017-08-02  Joseph Myers  <joseph@codesourcery.com>
13079         [BZ #21686]
13080         * math/tgmath.h (__TGMATH_BINARY_REAL_ONLY): Add arguments before
13081         comparing size with that of double.
13082         (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
13083         (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
13084         (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
13085         (__TGMATH_TERNARY_REAL_ONLY): Likewise.
13086         (__TGMATH_BINARY_REAL_IMAG): Likewise.
13087         * math/gen-tgmath-tests.py (Type.init_types): Create __int128 and
13088         unsigned __int128 types.
13090 2017-08-02  Steve Ellcey  <sellcey@cavium.com>
13092         * localedata/Makefile (CFLAGS-tst_iswalnum.c, CFLAGS-tst_iswalpha.c
13093         CFLAGS-tst_iswcntrl.c, CFLAGS-tst_iswdigit.c, CFLAGS-tst_iswgraph.c,
13094         CFLAGS-tst_iswlower.c, CFLAGS-tst_iswprint.c, CFLAGS-tst_iswpunct.c,
13095         CFLAGS-tst_iswspace.c, CFLAGS-tst_iswupper.c, CFLAGS-tst_iswxdigit.c,
13096         CFLAGS-tst_towlower.c, CFLAGS-tst_towupper.c): Remove.
13098 2017-08-02  H.J. Lu  <hongjiu.lu@intel.com>
13100         * sysdeps/x86_64/start.S (_start): Check PIC instead of SHARED.
13102 2017-08-02  H.J. Lu  <hongjiu.lu@intel.com>
13104         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Check PIC instead
13105         of SHARED.
13106         * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Likewise.
13107         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
13108         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
13109         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
13110         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
13111         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
13112         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
13114 2017-08-02  Joseph Myers  <joseph@codesourcery.com>
13116         [BZ #21685]
13117         * math/tgmath.h (__tgmath_real_type): Use unary + on potentially
13118         bit-field expressions passed to sizeof or typeof.
13119         [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
13120         (__TGMATH_F128): Likewise.
13121         [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
13122         (__TGMATH_CF128): Likewise.
13123         (__TGMATH_UNARY_REAL_ONLY): Likewise.
13124         (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
13125         (__TGMATH_BINARY_FIRST_REAL_ONLY): Likewise.
13126         (__TGMATH_BINARY_FIRST_REAL_STD_ONLY): Likewise.
13127         (__TGMATH_BINARY_REAL_ONLY): Likewise.
13128         (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
13129         (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
13130         (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
13131         (__TGMATH_TERNARY_REAL_ONLY): Likewise.
13132         (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY): Likewise.
13133         (__TGMATH_UNARY_REAL_IMAG): Likewise.
13134         (__TGMATH_UNARY_IMAG): Likewise.
13135         (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
13136         (__TGMATH_BINARY_REAL_IMAG): Likewise.
13137         * math/gen-tgmath-tests.py (Type.init_types): Create bit_field
13138         type.
13139         (define_vars_for_type): Handle bit_field type specially.
13140         (Tests.__init__): Declare structure with bit-field element.
13142 2017-08-02  H.J. Lu  <hongjiu.lu@intel.com>
13144         [BZ #21791]
13145         * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S
13146         (MEMCPY_CHK): Define only if SHARED is defined.
13147         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S (MEMCPY_CHK):
13148         Likewise.
13149         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S (MEMCPY_CHK):
13150         Likewise.
13152 See ChangeLog.18 for earlier changes.