c1ff22b1912ce8c17dde976d97a3738f86ab1c2a
[platform/upstream/glibc.git] / ChangeLog
1 2018-06-12  H.J. Lu  <hongjiu.lu@intel.com>
2
3         [BZ #23250]
4         [BZ #10686]
5         * sysdeps/i386/nptl/tls.h (tcbhead_t): Change __private_tm[4]
6         to _private_tm[3] and add __glibc_reserved2.
7         Add _Static_assert of offset of __private_ss == 0x30.
8         * sysdeps/x86_64/nptl/tls.h: Add _Static_assert of offset of
9         __private_ss == 0x40 for ILP32 and == 0x70 for LP64.
10
11 2018-06-12  Florian Weimer  <fweimer@redhat.com>
12
13         x86: Make strncmp usable from rtld.
14         * sysdeps/i386/i686/multiarch/strncmp-c.c: Only rename strncmp to
15         __strncmp_ia32 if in libc (and not in rtld).
16         * sysdeps/x86_64/multiarch/strncmp-sse2.S: Rename strcmp to
17         strncmp if not in libc (and not to __strncmp_sse2).
18
19 2018-06-12  Rafal Luzynski  <digitalfreak@lingonborough.com>
20
21         [BZ #23140]
22         * localedata/locales/gd_GB (mon): Rename to...
23         (alt_mon): This.
24         (mon): Import from CLDR (genitive case).
25         * localedata/locales/hsb_DE (mon): Rename to...
26         (alt_mon): This.
27         (mon): Import from CLDR (genitive case).
28         * localedata/locales/wa_BE (mon): Rename to...
29         (alt_mon): This.
30         (mon): Add, fill with the proper genitive forms, but CLDR data
31         is incomplete; completed according to the comments in this file.
32         (d_t_fmt): Do not use "di" before the month name, no longer needed.
33
34         * localedata/locales/wa_BE (country_name): Reword
35         "Beljike" -> "Beldjike".
36
37 2018-06-11  Joseph Myers  <joseph@codesourcery.com>
38
39         [BZ #23272]
40         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Start by handling all
41         cases of non-finite arguments.
42         * math/libm-test-fma.inc (fma_test_data): Add more tests.
43
44 2018-06-10  John David Anglin  <danglin@gcc.gnu.org>
45
46         [BZ #23174]
47         * sysdeps/unix/sysv/linux/hppa/Makefile: xfail check-execstack.
48
49 2018-06-08  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
50
51         [BZ #23264]
52         * include/unistd.h (__execvpex): New prototype.
53         * posix/Makefile (tests): Add tst-spawn4.
54         (tests-internal): Add tst-spawn4-compat.
55         * posix/execvpe.c (__execvpe_common, __execvpex): New functions.
56         * posix/tst-spawn4-compat.c: New file.
57         * posix/tst-spawn4.c: Likewise.
58         * sysdeps/unix/sysv/linux/spawni.c (__spawni): Do not interpret invalid
59         binaries as shell scripts.
60         * sysdeps/posix/spawni.c (__spawni): Likewise.
61
62 2018-06-08  H.J. Lu  <hongjiu.lu@intel.com>
63
64         [BZ #23145]
65         * elf/Makefile (tests-special): Add $(objpfx)check-initfini.out.
66         ($(all-built-dso:=.dynsym): New target.
67         (common-generated): Add $(all-built-dso:$(common-objpfx)%=%.dynsym).
68         ($(objpfx)check-initfini.out): New target.
69         (generated): Add check-initfini.out.
70         * scripts/check-initfini.awk: New file.
71         * sysdeps/aarch64/crti.S (_init): Mark as hidden.
72         (_fini): Likewise.
73         * sysdeps/alpha/crti.S (_init): Mark as hidden.
74         (_fini): Likewise.
75         * sysdeps/arm/crti.S (_init): Mark as hidden.
76         (_fini): Likewise.
77         * sysdeps/hppa/crti.S (_init): Mark as hidden.
78         (_fini): Likewise.
79         * sysdeps/i386/crti.S (_init): Mark as hidden.
80         (_fini): Likewise.
81         * sysdeps/ia64/crti.S (_init): Mark as hidden.
82         (_fini): Likewise.
83         * sysdeps/m68k/crti.S (_init): Mark as hidden.
84         (_fini): Likewise.
85         * sysdeps/microblaze/crti.S (_init): Mark as hidden.
86         (_fini): Likewise.
87         * sysdeps/mips/mips32/crti.S (_init): Mark as hidden.
88         (_fini): Likewise.
89         * sysdeps/mips/mips64/n32/crti.S (_init): Mark as hidden.
90         (_fini): Likewise.
91         * sysdeps/mips/mips64/n64/crti.S (_init): Mark as hidden.
92         (_fini): Likewise.
93         * sysdeps/nios2/crti.S (_init): Mark as hidden.
94         (_fini): Likewise.
95         * sysdeps/powerpc/powerpc32/crti.S (_init): Mark as hidden.
96         (_fini): Likewise.
97         * sysdeps/powerpc/powerpc64/crti.S (_init): Mark as hidden.
98         (_fini): Likewise.
99         * sysdeps/s390/s390-32/crti.S (_init): Mark as hidden.
100         (_fini): Likewise.
101         * sysdeps/s390/s390-64/crti.S (_init): Mark as hidden.
102         (_fini): Likewise.
103         * sysdeps/sh/crti.S (_init): Mark as hidden.
104         (_fini): Likewise.
105         * sysdeps/sparc/crti.S (_init): Mark as hidden.
106         (_fini): Likewise.
107         * sysdeps/x86_64/crti.S (_init): Mark as hidden.
108         (_fini): Likewise.
109
110 2018-06-06  Tulio Magno Quites Machado Filho  <tuliom@linux.ibm.com>
111
112         * sysdeps/powerpc/powerpc64/le/fpu/e_sqrtf128.c
113         [__HAVE_FLOAT128_UNLIKE_LDBL] (TFtype, TF): Restrict TFtype
114         and TF redirection to KFtype and KF only when the default
115         long double type is not the IEEE 128-bit floating point type.
116
117 2018-06-05  Joseph Myers  <joseph@codesourcery.com>
118
119         * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_DIT): New
120         macro.
121         (HWCAP_USCAT): Likewise.
122         (HWCAP_ILRCPC): Likewise.
123         (HWCAP_FLAGM): Likewise.
124         * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
125         Increase to 28.
126         (_dl_aarch64_cap_flags): Add new flag names.
127
128         * sysdeps/unix/sysv/linux/aarch64/bits/mman.h [__USE_MISC]
129         (MAP_FIXED_NOREPLACE): New macro.
130         * sysdeps/unix/sysv/linux/alpha/bits/mman.h [__USE_MISC]
131         (MAP_FIXED_NOREPLACE): Likewise.
132         * sysdeps/unix/sysv/linux/arm/bits/mman.h [__USE_MISC]
133         (MAP_FIXED_NOREPLACE): Likewise.
134         * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
135         (MAP_FIXED_NOREPLACE): Likewise.
136         * sysdeps/unix/sysv/linux/ia64/bits/mman.h [__USE_MISC]
137         (MAP_FIXED_NOREPLACE): Likewise.
138         * sysdeps/unix/sysv/linux/m68k/bits/mman.h [__USE_MISC]
139         (MAP_FIXED_NOREPLACE): Likewise.
140         * sysdeps/unix/sysv/linux/microblaze/bits/mman.h [__USE_MISC]
141         (MAP_FIXED_NOREPLACE): Likewise.
142         * sysdeps/unix/sysv/linux/mips/bits/mman.h [__USE_MISC]
143         (MAP_FIXED_NOREPLACE): Likewise.
144         * sysdeps/unix/sysv/linux/nios2/bits/mman.h [__USE_MISC]
145         (MAP_FIXED_NOREPLACE): Likewise.
146         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h [__USE_MISC]
147         (MAP_FIXED_NOREPLACE): Likewise.
148         * sysdeps/unix/sysv/linux/riscv/bits/mman.h [__USE_MISC]
149         (MAP_FIXED_NOREPLACE): Likewise.
150         * sysdeps/unix/sysv/linux/s390/bits/mman.h [__USE_MISC]
151         (MAP_FIXED_NOREPLACE): Likewise.
152         * sysdeps/unix/sysv/linux/sh/bits/mman.h [__USE_MISC]
153         (MAP_FIXED_NOREPLACE): Likewise.
154         * sysdeps/unix/sysv/linux/sparc/bits/mman.h [__USE_MISC]
155         (MAP_FIXED_NOREPLACE): Likewise.
156         * sysdeps/unix/sysv/linux/x86/bits/mman.h [__USE_MISC]
157         (MAP_FIXED_NOREPLACE): Likewise.
158
159         * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
160         version to 4.17.
161
162 2018-06-04  Joseph Myers  <joseph@codesourcery.com>
163
164         * scripts/build-many-glibcs.py (Context.checkout): Default Linux
165         version to 4.17
166
167 2018-06-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
168
169         * bits/shm.h (struct shmid_ds): Make shm_segsz field size_t instead of
170         int.
171         * sysdeps/gnu/bits/shm.h (struct shmid_ds): Likewise.
172
173 2018-06-01  Leonardo Sandoval  <leonardo.sandoval.gonzalez@intel.com>
174
175         * benchtests/scripts/compare_string.py: (process_results) Catch
176         exception in non-existent base_func and catch exception in
177         non-existent attribute.
178         (parse_file) Catch exception if input file does not exist.
179
180 2018-06-01  Leonardo Sandoval  <leonardo.sandoval.gonzalez@intel.com>
181
182         * benchtests/scripts/compare_string.py: Add --no-diff and --no-header
183         options to avoid diff calculation and omit header, respectively.
184         (main): process --no-diff and --no-header
185
186 2018-06-01  Leonardo Sandoval  <leonardo.sandoval.gonzalez@intel.com>
187             H.J. Lu  <hongjiu.lu@intel.com>
188
189         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
190         strcmp-avx2, strncmp-avx2, wcscmp-avx2, wcscmp-sse2, wcsncmp-avx2 and
191         wcsncmp-sse2.
192         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
193         (__libc_ifunc_impl_list): Add tests for __strcmp_avx2,
194         __strncmp_avx2, __wcscmp_avx2, __wcsncmp_avx2, __wcscmp_sse2
195         and __wcsncmp_sse2.
196         * sysdeps/x86_64/multiarch/strcmp.c (OPTIMIZE (avx2)):
197         (IFUNC_SELECTOR): Return OPTIMIZE (avx2) on AVX 2 machines if
198         AVX unaligned load is fast and vzeroupper is preferred.
199         * sysdeps/x86_64/multiarch/strncmp.c: Likewise.
200         * sysdeps/x86_64/multiarch/strcmp-avx2.S: New file.
201         * sysdeps/x86_64/multiarch/strncmp-avx2.S: Likewise.
202         * sysdeps/x86_64/multiarch/wcscmp-avx2.S: Likewise.
203         * sysdeps/x86_64/multiarch/wcscmp-sse2.S: Likewise.
204         * sysdeps/x86_64/multiarch/wcscmp.c: Likewise.
205         * sysdeps/x86_64/multiarch/wcsncmp-avx2.S: Likewise.
206         * sysdeps/x86_64/multiarch/wcsncmp-sse2.c: Likewise.
207         * sysdeps/x86_64/multiarch/wcsncmp.c: Likewise.
208         * sysdeps/x86_64/wcscmp.S (__wcscmp): Add alias only if __wcscmp
209         is undefined.
210
211 2018-06-01  Florian Weimer  <fweimer@redhat.com>
212
213         * sysdeps/i386/fpu/libm-test-ulps: Update with results from
214         configuring with --disable-multi-arch, building with
215         “-march=x86-64 -mtune=generic -mfpmath=sse” and running on a
216         Haswell-era CPU.
217
218 2018-06-01  Florian Weimer  <fweimer@redhat.com>
219
220         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Update with
221         results from building with “-march=x86-64 -mtune=generic
222         -mfpmath=sse” and running on a Haswell-era CPU.
223
224 2018-06-01  Joseph Myers  <joseph@codesourcery.com>
225
226         [BZ #18473]
227         * soft-fp/sqrttf2.c: Remove file.
228         * soft-fp/sqrtdf2.c: Move to ....
229         * sysdeps/powerpc/nofpu/sqrtdf2.c: ... here.  Include
230         <shlib-compat.h>.
231         (__sqrtdf2): Make conditional on
232         [SHLIB_COMPAT (libc, GLIBC_2_3_2, GLIBC_2_28)].  Define as compat
233         symbol.
234         * soft-fp/sqrtsf2.c: Move to ....
235         * sysdeps/powerpc/nofpu/sqrtsf2.c: ... here.  Include
236         <shlib-compat.h>.
237         (__sqrtsf2): Make conditional on
238         [SHLIB_COMPAT (libc, GLIBC_2_3_2, GLIBC_2_28)].  Define as compat
239         symbol.
240         * soft-fp/Makefile (gcc-single-routines): Remove sqrtsf2.
241         (gcc-double-routines): Remove sqrtdf2.
242         (gcc-quad-routines): Remove sqrttf2.
243         * sysdeps/nios2/Makefile [$(subdir) = soft-fp] (sysdep_routines):
244         Do not filter out sqrtsf2 and sqrtdf2.
245         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = soft-fp]
246         (sysdep_routines): Add sqrtsf2 and sqrtdf2.
247
248 2018-06-01  Florian Weimer  <fweimer@redhat.com>
249
250         * sysdeps/generic/libcidn.abilist: Remove file.
251
252 2018-06-01  Florian Weimer  <fweimer@redhat.com>
253
254         [BZ #23236]
255         * libio/strfile.h (struct _IO_str_fields): Rename members to
256         discourage their use and add comment.
257         (_IO_STR_DYNAMIC): Remove unused macro.
258         * libio/strops.c (_IO_str_init_static_internal): Do not use
259         callback pointers.  Call malloc and free.
260         (_IO_str_overflow): Do not use callback pointers.  Call malloc
261         and free.
262         (enlarge_userbuf): Likewise.
263         (_IO_str_finish): Call free.
264         * libio/wstrops.c (_IO_wstr_init_static): Initialize
265         _allocate_buffer_unused.
266         (_IO_wstr_overflow): Do not use callback pointers.  Call malloc
267         and free.
268         (enlarge_userbuf): Likewise.
269         (_IO_wstr_finish): Call free.
270         * debug/vasprintf_chk.c (__vasprintf_chk): Initialize
271         _allocate_buffer_unused, _free_buffer_unused.
272         * libio/memstream.c (__open_memstream): Likewise.
273         * libio/vasprintf.c (_IO_vasprintf): Likewise.
274         * libio/wmemstream.c (open_wmemstream): Likewise.
275
276 2018-05-30  Paul Pluzhnikov  <ppluzhnikov@google.com>
277
278         * sysdeps/x86_64/fpu/libm-test-ulps (log_vlen8_avx2): Update for
279         AMD Ryzen 7 1800X.
280
281 2018-05-30  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
282
283         * sysdeps/powerpc/powerpc64/le/fpu/multiarch/Makefile: New file to
284         add w_sqrtf128-power9 and w_sqrtf128-ppc64le to libm-sysdep_routines.
285         * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128-power9.c:
286         New file.
287         * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128-ppc64le.c:
288         Likewise.
289         * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128.c: Likewise.
290
291 2018-05-29  Florian Weimer  <fweimer@redhat.com>
292
293         * support/Makefile (libsupport-routines): Add
294         xpthread_barrierattr_destroy, xpthread_barrierattr_init,
295         xpthread_barrierattr_setpshared.
296         * support/xpthread_barrierattr_destroy.c: New file.
297         * support/xpthread_barrierattr_init.c: Likewise.
298         * support/xpthread_barrierattr_setpshared.c: Likewise.
299
300 2018-05-29  H.J. Lu  <hongjiu.lu@intel.com>
301
302         [BZ #23206]
303         * elf/dl-reloc-static-pie.c (_dl_relocate_static_pie): Initialize
304         _r_debug and update DT_DEBUG for debugger.
305
306 2018-05-29  Florian Weimer  <fweimer@redhat.com>
307
308         * stdlib/Makefile (tst-strtod1i.out): Depend on generated locales.
309         (tst-strtod5i.out): Likewise.
310
311 2018-05-25  Joseph Myers  <joseph@codesourcery.com>
312
313         * sysdeps/sparc/sparc64/Implies: Remove sparc/sparc64/soft-fp.
314         * sysdeps/sparc/sparc64/Makefile [$(subdir) = soft-fp]
315         (sparc64-quad-routines): New variable.  Moved from ....
316         [$(subdir) = soft-fp] (sysdep_routines): Add
317         $(sparc64-quad-routines).  Moved from ....
318         [$(subdir) = math] (CPPFLAGS): Add -I../soft-fp/.  Moved from ....
319         * sysdeps/sparc/sparc64/soft-fp/Makefile: ... here.  Remove file.
320         * sysdeps/sparc/sparc64/Versions (libc): Add GLIBC_2.2 symbols
321         moved from ....
322         * sysdeps/sparc/sparc64/soft-fp/Versions: ... here.  Remove file.
323         * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: Remove file.
324         * sysdeps/sparc/sparc64/soft-fp/qp_add.c: Move to ....
325         * sysdeps/sparc/sparc64/qp_add.c: ... here.
326         * sysdeps/sparc/sparc64/soft-fp/qp_cmp.c: Move to ....
327         * sysdeps/sparc/sparc64/qp_cmp.c: ... here.
328         * sysdeps/sparc/sparc64/soft-fp/qp_cmpe.c: Move to ....
329         * sysdeps/sparc/sparc64/qp_cmpe.c: ... here.
330         * sysdeps/sparc/sparc64/soft-fp/qp_div.c: Move to ....
331         * sysdeps/sparc/sparc64/qp_div.c: ... here.
332         * sysdeps/sparc/sparc64/soft-fp/qp_dtoq.c: Move to ....
333         * sysdeps/sparc/sparc64/qp_dtoq.c: ... here.
334         * sysdeps/sparc/sparc64/soft-fp/qp_feq.c: Move to ....
335         * sysdeps/sparc/sparc64/qp_feq.c: ... here.
336         * sysdeps/sparc/sparc64/soft-fp/qp_fge.c: Move to ....
337         * sysdeps/sparc/sparc64/qp_fge.c: ... here.
338         * sysdeps/sparc/sparc64/soft-fp/qp_fgt.c: Move to ....
339         * sysdeps/sparc/sparc64/qp_fgt.c: ... here.
340         * sysdeps/sparc/sparc64/soft-fp/qp_fle.c: Move to ....
341         * sysdeps/sparc/sparc64/qp_fle.c: ... here.
342         * sysdeps/sparc/sparc64/soft-fp/qp_flt.c: Move to ....
343         * sysdeps/sparc/sparc64/qp_flt.c: ... here.
344         * sysdeps/sparc/sparc64/soft-fp/qp_fne.c: Move to ....
345         * sysdeps/sparc/sparc64/qp_fne.c: ... here.
346         * sysdeps/sparc/sparc64/soft-fp/qp_itoq.c: Move to ....
347         * sysdeps/sparc/sparc64/qp_itoq.c: ... here.
348         * sysdeps/sparc/sparc64/soft-fp/qp_mul.c: Move to ....
349         * sysdeps/sparc/sparc64/qp_mul.c: ... here.
350         * sysdeps/sparc/sparc64/soft-fp/qp_neg.S: Move to ....
351         * sysdeps/sparc/sparc64/qp_neg.S: ... here.
352         * sysdeps/sparc/sparc64/soft-fp/qp_qtod.c: Move to ....
353         * sysdeps/sparc/sparc64/qp_qtod.c: ... here.
354         * sysdeps/sparc/sparc64/soft-fp/qp_qtoi.c: Move to ....
355         * sysdeps/sparc/sparc64/qp_qtoi.c: ... here.
356         * sysdeps/sparc/sparc64/soft-fp/qp_qtos.c: Move to ....
357         * sysdeps/sparc/sparc64/qp_qtos.c: ... here.
358         * sysdeps/sparc/sparc64/soft-fp/qp_qtoui.c: Move to ....
359         * sysdeps/sparc/sparc64/qp_qtoui.c: ... here.
360         * sysdeps/sparc/sparc64/soft-fp/qp_qtoux.c: Move to ....
361         * sysdeps/sparc/sparc64/qp_qtoux.c: ... here.
362         * sysdeps/sparc/sparc64/soft-fp/qp_qtox.c: Move to ....
363         * sysdeps/sparc/sparc64/qp_qtox.c: ... here.
364         * sysdeps/sparc/sparc64/soft-fp/qp_sqrt.c: Move to ....
365         * sysdeps/sparc/sparc64/qp_sqrt.c: ... here.
366         * sysdeps/sparc/sparc64/soft-fp/qp_stoq.c: Move to ....
367         * sysdeps/sparc/sparc64/qp_stoq.c: ... here.
368         * sysdeps/sparc/sparc64/soft-fp/qp_sub.c: Move to ....
369         * sysdeps/sparc/sparc64/qp_sub.c: ... here.
370         * sysdeps/sparc/sparc64/soft-fp/qp_uitoq.c: Move to ....
371         * sysdeps/sparc/sparc64/qp_uitoq.c: ... here.
372         * sysdeps/sparc/sparc64/soft-fp/qp_util.c: Move to ....
373         * sysdeps/sparc/sparc64/qp_util.c: ... here.
374         * sysdeps/sparc/sparc64/soft-fp/qp_uxtoq.c: Move to ....
375         * sysdeps/sparc/sparc64/qp_uxtoq.c: ... here.
376         * sysdeps/sparc/sparc64/soft-fp/qp_xtoq.c: Move to ....
377         * sysdeps/sparc/sparc64/qp_xtoq.c: ... here.
378         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h: Move to ....
379         * sysdeps/sparc/sparc64/sfp-machine.h: ... here.
380
381         * sysdeps/sparc/sparc32/Implies: Remove sparc/sparc32/soft-fp.
382         * sysdeps/sparc/sparc32/Makefile [$(subdir) = soft-fp]
383         (sparc32-quad-routines): New variable.  Moved from ....
384         [$(subdir) = soft-fp] (sysdep_routines): Add
385         $(sparc32-quad-routines).  Moved from ....
386         * sysdeps/sparc/sparc32/soft-fp/Makefile: ... here.  Remove file.
387         * sysdeps/sparc/sparc32/Versions (libc): Add GLIBC_2.4 symbols
388         moved from ....
389         * sysdeps/sparc/sparc32/soft-fp/Versions: ... here.  Remove file.
390         * sysdeps/sparc/sparc32/soft-fp/q_add.c: Move to ....
391         * sysdeps/sparc/sparc32/q_add.c: ... here.
392         * sysdeps/sparc/sparc32/soft-fp/q_cmp.c: Move to ....
393         * sysdeps/sparc/sparc32/q_cmp.c: ... here.
394         * sysdeps/sparc/sparc32/soft-fp/q_cmpe.c: Move to ....
395         * sysdeps/sparc/sparc32/q_cmpe.c: ... here.
396         * sysdeps/sparc/sparc32/soft-fp/q_div.c: Move to ....
397         * sysdeps/sparc/sparc32/q_div.c: ... here.
398         * sysdeps/sparc/sparc32/soft-fp/q_dtoq.c: Move to ....
399         * sysdeps/sparc/sparc32/q_dtoq.c: ... here.
400         * sysdeps/sparc/sparc32/soft-fp/q_feq.c: Move to ....
401         * sysdeps/sparc/sparc32/q_feq.c: ... here.
402         * sysdeps/sparc/sparc32/soft-fp/q_fge.c: Move to ....
403         * sysdeps/sparc/sparc32/q_fge.c: ... here.
404         * sysdeps/sparc/sparc32/soft-fp/q_fgt.c: Move to ....
405         * sysdeps/sparc/sparc32/q_fgt.c: ... here.
406         * sysdeps/sparc/sparc32/soft-fp/q_fle.c: Move to ....
407         * sysdeps/sparc/sparc32/q_fle.c: ... here.
408         * sysdeps/sparc/sparc32/soft-fp/q_flt.c: Move to ....
409         * sysdeps/sparc/sparc32/q_flt.c: ... here.
410         * sysdeps/sparc/sparc32/soft-fp/q_fne.c: Move to ....
411         * sysdeps/sparc/sparc32/q_fne.c: ... here.
412         * sysdeps/sparc/sparc32/soft-fp/q_itoq.c: Move to ....
413         * sysdeps/sparc/sparc32/q_itoq.c: ... here.
414         * sysdeps/sparc/sparc32/soft-fp/q_lltoq.c: Move to ....
415         * sysdeps/sparc/sparc32/q_lltoq.c: ... here.
416         * sysdeps/sparc/sparc32/soft-fp/q_mul.c: Move to ....
417         * sysdeps/sparc/sparc32/q_mul.c: ... here.
418         * sysdeps/sparc/sparc32/soft-fp/q_neg.c: Move to ....
419         * sysdeps/sparc/sparc32/q_neg.c: ... here.
420         * sysdeps/sparc/sparc32/soft-fp/q_qtod.c: Move to ....
421         * sysdeps/sparc/sparc32/q_qtod.c: ... here.
422         * sysdeps/sparc/sparc32/soft-fp/q_qtoi.c: Move to ....
423         * sysdeps/sparc/sparc32/q_qtoi.c: ... here.
424         * sysdeps/sparc/sparc32/soft-fp/q_qtoll.c: Move to ....
425         * sysdeps/sparc/sparc32/q_qtoll.c: ... here.
426         * sysdeps/sparc/sparc32/soft-fp/q_qtos.c: Move to ....
427         * sysdeps/sparc/sparc32/q_qtos.c: ... here.
428         * sysdeps/sparc/sparc32/soft-fp/q_qtou.c: Move to ....
429         * sysdeps/sparc/sparc32/q_qtou.c: ... here.
430         * sysdeps/sparc/sparc32/soft-fp/q_qtoull.c: Move to ....
431         * sysdeps/sparc/sparc32/q_qtoull.c: ... here.
432         * sysdeps/sparc/sparc32/soft-fp/q_sqrt.c: Move to ....
433         * sysdeps/sparc/sparc32/q_sqrt.c: ... here.
434         * sysdeps/sparc/sparc32/soft-fp/q_stoq.c: Move to ....
435         * sysdeps/sparc/sparc32/q_stoq.c: ... here.
436         * sysdeps/sparc/sparc32/soft-fp/q_sub.c: Move to ....
437         * sysdeps/sparc/sparc32/q_sub.c: ... here.
438         * sysdeps/sparc/sparc32/soft-fp/q_ulltoq.c: Move to ....
439         * sysdeps/sparc/sparc32/q_ulltoq.c: ... here.
440         * sysdeps/sparc/sparc32/soft-fp/q_util.c: Move to ....
441         * sysdeps/sparc/sparc32/q_util.c: ... here.
442         * sysdeps/sparc/sparc32/soft-fp/q_utoq.c: Move to ....
443         * sysdeps/sparc/sparc32/q_utoq.c: ... here.
444         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h: Move to ....
445         * sysdeps/sparc/sparc32/sfp-machine.h: ... here.
446
447 2018-05-24  Tulio Magno Quites Machado Filho  <tuliom@linux.ibm.com>
448             Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
449
450         * sysdeps/powerpc/Implies: Removed.  Previous contents copied to...
451         * sysdeps/powerpc/powerpc32/Implies-after: ... here.
452         * sysdeps/powerpc/powerpc64/be/Implies-after: ... here.
453         * sysdeps/powerpc/powerpc64/le/Implies-before: ... and here.
454
455 2018-05-24  Joseph Myers  <joseph@codesourcery.com>
456
457         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/Implies: Remove
458         powerpc/soft-fp.
459         * sysdeps/unix/sysv/linux/powerpc/powerpc32/e500/nofpu/Implies:
460         Likewise.
461         * sysdeps/powerpc/soft-fp/sfp-machine.h: Move to ....
462         * sysdeps/powerpc/nofpu/sfp-machine.h: ... here.
463
464 2018-05-24  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
465
466         [BZ #23171]
467         * math/math.h [C++] (iseqsig): Fix parameter type for the long
468         double version.
469
470 2018-05-23  Joseph Myers  <joseph@codesourcery.com>
471
472         * sysdeps/sh/Implies: Remove sh/soft-fp.
473         * sysdeps/sh/soft-fp/sfp-machine.h: Move to ....
474         * sysdeps/sh/sfp-machine.h: ... here.
475
476 2018-05-23  H.J. Lu  <hongjiu.lu@intel.com>
477
478         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
479         (__mempcpy_erms): Skip zero length.
480         (__memmove_erms): Likewise.
481         * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
482         (__memset_erms): Likewise.
483
484 2018-05-23  Joseph Myers  <joseph@codesourcery.com>
485
486         * sysdeps/alpha/Implies: Remove alpha/soft-fp.
487         * sysdeps/alpha/Makefile [$(subdir) = soft-fp] (sysdep_routines):
488         Add functions moved from ....
489         [$(subdir) = math] (CPPFLAGS): Add -I../soft-fp.  Moved from ....
490         * sysdeps/alpha/soft-fp/Makefile: ... here.  Remove file.
491         * sysdeps/alpha/Versions (libc): Add GLIBC_2.3.4 symbols moved
492         from ....
493         * sysdeps/alpha/soft-fp/Versions: ... here.  Remove file.
494         * sysdeps/alpha/soft-fp/e_sqrtl.c: Move to ....
495         * sysdeps/alpha/e_sqrtl.c: ... here.
496         * sysdeps/alpha/soft-fp/local-soft-fp.h: Move to ....
497         * sysdeps/alpha/local-soft-fp.h: ... here.
498         * sysdeps/alpha/soft-fp/ots_add.c: Move to ....
499         * sysdeps/alpha/ots_add.c: ... here.
500         * sysdeps/alpha/soft-fp/ots_cmp.c: Move to ....
501         * sysdeps/alpha/ots_cmp.c: ... here.
502         * sysdeps/alpha/soft-fp/ots_cmpe.c: Move to ....
503         * sysdeps/alpha/ots_cmpe.c: ... here.
504         * sysdeps/alpha/soft-fp/ots_cvtqux.c: Move to ....
505         * sysdeps/alpha/ots_cvtqux.c: ... here.
506         * sysdeps/alpha/soft-fp/ots_cvtqx.c: Move to ....
507         * sysdeps/alpha/ots_cvtqx.c: ... here.
508         * sysdeps/alpha/soft-fp/ots_cvttx.c: Move to ....
509         * sysdeps/alpha/ots_cvttx.c: ... here.
510         * sysdeps/alpha/soft-fp/ots_cvtxq.c: Move to ....
511         * sysdeps/alpha/ots_cvtxq.c: ... here.
512         * sysdeps/alpha/soft-fp/ots_cvtxt.c: Move to ....
513         * sysdeps/alpha/ots_cvtxt.c: ... here.
514         * sysdeps/alpha/soft-fp/ots_div.c: Move to ....
515         * sysdeps/alpha/ots_div.c: ... here.
516         * sysdeps/alpha/soft-fp/ots_mul.c: Move to ....
517         * sysdeps/alpha/ots_mul.c: ... here.
518         * sysdeps/alpha/soft-fp/ots_nintxq.c: Move to ....
519         * sysdeps/alpha/ots_nintxq.c: ... here.
520         * sysdeps/alpha/soft-fp/ots_sub.c: Move to ....
521         * sysdeps/alpha/ots_sub.c: ... here.
522         * sysdeps/alpha/soft-fp/sfp-machine.h: Move to ....
523         * sysdeps/alpha/sfp-machine.h: ... here.
524
525 2018-05-23  Florian Weimer  <fweimer@redhat.com>
526
527         [BZ #19728]
528         [BZ #19729]
529         [BZ #22247]
530         CVE-2016-6261
531         CVE-2016-6263
532         CVE-2017-14062
533         Switch to extern IDNA implementation (libidn2).
534         * libidn: Remove subdirectory.
535         * LICENSES: Do not mention licensing conditions for the removed
536         libidn code.
537         * config.h.in (HAVE_LIBIDN): Remove.
538         * include/dlfcn.h (__libc_dlopen): Update comment.
539         * include/idna.h: Remove file.
540         * inet/Makefile (routines): Add idna.
541         (tests-static, tests-internal): Add tst-idna_name_classify.
542         (LOCALES): Generate locales for tests.
543         (tst-idna_name_classify.out): Depend on generated locales.
544         * inet/idna_name_classify.c: New file.
545         * inet/tst-idna_name_classify.c: Likewise.
546         * inet/net-internal.h (__idna_to_dns_encoding)
547         (__idna_from_dns_encoding): Declare.
548         * inet/net-internal.h (enum idna_name_classification): Define.
549         (__idna_name_classify): Declare.
550         * inet/Versions (GLIBC_PRIVATE): Add __idna_to_dns_encoding,
551         __idna_from_dns_encoding.
552         * inet/getnameinfo.c (DEPRECATED_NI_IDN): Define.
553         (gni_host_inet_name): Call __idna_from_dns_encoding.  Use punycode
554         name as a fallback in case of encoding errors.
555         (getnameinfo): Use DEPRECATED_NI_IDN.
556         * inet/idna.c: New file.
557         * nscd/gai.c: Do not include <libidn/idn-stub.c>.
558         * resolv/Makefile (tests): Add tst-resolv-ai_idn,
559         tst-resolv-ai_idn-latin1, tst-resolv-ai_idn-nolibidn2.
560         (modules-names): Add tst-no-libidn2.
561         (extra-test-objs): Add tst-no-libidn2.os.
562         (LDFLAGS-tst-no-libidn2.so): Set soname.
563         (LOCALES): Set, and generate locales.
564         (tst-resolv-ai_idn): Link with -ldl -lresolv -lpthread.
565         (tst-resolv-ai_idn-latin1): Likewise.
566         (tst-resolv-ai_idn-nolibidn2): Likewise.
567         (tst-resolv-ai_idn.out): Depend on locales.
568         (tst-resolv-ai_idn-latin1.out): Depend on locales.
569         (tst-resolv-ai_idn-nolibidn2.out): Depend on locales and
570         tst-no-libidn2.so.
571         * resolv/netdb.h (AI_IDN_ALLOW_UNASSIGNED)
572         (AI_IDN_USE_STD3_ASCII_RULES, NI_IDN_ALLOW_UNASSIGNED)
573         (NI_IDN_USE_STD3_ASCII_RULES): Deprecate.
574         * resolv/tst-resolv-ai_idn.c: New file.
575         * resolv/tst-resolv-ai_idn-latin1.c: Likewise.
576         * resolv/tst-resolv-ai_idn-nolibidn2.c: Likewise.
577         * resolv/tst-no-libidn2.c: Likewise.
578         * support/support_format_addrinfo.c (format_ai_flags): Do not
579         handle AI_IDN_ALLOW_UNASSIGNED, AI_IDN_USE_STD3_ASCII_RULES.
580         * sysdeps/posix/getaddrinfo.c (DEPRECATED_AI_IDN): Define.
581         (gaih_inet): Call __idna_to_dns_encoding and
582         __idna_from_dns_encoding, and use the original (punycode) name if
583         __idna_from_dns_encoding fails due to an encoding error.
584         (getaddrinfo): Use DEPRECATED_AI_IDN.
585         * sysdeps/unix/inet/Subdirs (libidn): Remove.
586         * sysdeps/unix/inet/configure: Remove file.
587         * sysdeps/unix/inet/configure.ac: Likewise.
588
589 2018-05-23  Florian Weimer  <fweimer@redhat.com>
590
591         Implement allocate_once.
592         * include/allocate_once.h: New file.
593         * misc/allocate_once.c: Likewise.
594         * misc/tst-allocate_once.c: Likewise.
595         * misc/Makefile (routines): Add allocate_once.
596         (tests-internal): Add tst-allocate_once.
597         (generated): Add tst-allocate_once.mtrace,
598         tst-allocate_once-mem.out.
599         (tests-special): Add tst-allocate_once-mem.out.
600         (tst-allocate_once-ENV): Set MALLOC_TRACE.
601         (tst-allocate_once-mem.out): Call mtrace.
602         * misc/Versions (GLIBC_PRIVATE): Add __libc_allocate_once_slow.
603
604 2018-05-23  H.J. Lu  <hongjiu.lu@intel.com>
605
606         [BZ #23196]
607         * string/test-memcpy.c (do_test1): New function.
608         (test_main): Call it.
609
610 2018-05-23  Andreas Schwab  <schwab@suse.de>
611
612         [BZ #23196]
613         CVE-2018-11237
614         * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S
615         (L(preloop_large)): Save initial destination pointer in %r11 and
616         use it instead of %rax after the loop.
617         * string/test-mempcpy.c (MIN_PAGE_SIZE): Define.
618
619 2018-05-22  Joseph Myers  <joseph@codesourcery.com>
620
621         * sysdeps/aarch64/Implies: Remove aarch64/soft-fp.
622         * sysdeps/aarch64/Makefile [$(subdir) = math] (CPPFLAGS): Add
623         -I../soft-fp.  Moved from ....
624         * sysdeps/aarch64/soft-fp/Makefile: ... here.  Remove file.
625         * sysdeps/aarch64/soft-fp/e_sqrtl.c: Move to ....
626         * sysdeps/aarch64/e_sqrtl.c: ... here.
627         * sysdeps/aarch64/soft-fp/sfp-machine.h: Move to ....
628         * sysdeps/aarch64/sfp-machine.h: ... here.
629
630         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Ignore
631         -Wmaybe-uninitialized around access to fq[0].
632         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f):
633         Likewise.
634
635         [BZ #18471]
636         * sysdeps/unix/make-syscalls.sh (emit_weak_aliases): Use weak
637         aliases for non-libc case of versioned symbols.
638         * sysdeps/unix/sysv/linux/lseek64.c: Include <shlib-compat.h>.
639         (llseek): Define as compat symbol if
640         [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_28)], not as weak alias
641         with link warning.
642         * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (llseek):
643         Make into a compat symbol, disabled for minimum symbol version
644         GLIBC_2.28 and later.
645         * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Remove file.
646
647 2018-05-22  Florian Weimer  <fweimer@redhat.com>
648
649         * sysdeps/i386/Makefile [$(subdir) == math] (sysdep-CFLAGS): Do
650         not add -mpreferred-stack-boundary=4.
651         [$(subdir) == csu] (sysdep-CFLAGS): Likewise.
652         (stack-align-test-flags): Likewise.
653         [$(subdir) == stdlib] (CFLAGS-exit.c, CFLAGS-cxa_finalize.c):
654         Likewise.
655         [$(subdir) == elf] (CFLAGS-dl-init.c, CFLAGS-dl-fini.c)
656         (CFLAGS-dl-open.c, CFLAGS-dl-close.c, CFLAGS-dl-error.c): Likewise.
657         [$(subdir) == dlfcn] (CFLAGS-dlopen.c, CFLAGS-dlopenold.c)
658         (CFLAGS-dlclose.c, CFLAGS-dlerror.c): Likewise.
659         * sysdeps/i386/nptl/Makefile [$(subdir) == nptl]
660         (CFLAGS-pthread_create.c, CFLAGS-tst-align.c)
661         (CFLAGS-tst-align2.c): Likewise.
662
663 2018-05-21  H.J. Lu  <hongjiu.lu@intel.com>
664
665         * sysdeps/x86/cpu-features.h (bit_arch_Prefer_FSRM): New.
666         (index_arch_Prefer_FSRM): Likewise.
667         * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
668         Also check Prefer_FSRM.
669         * sysdeps/x86_64/multiarch/ifunc-memmove.h (IFUNC_SELECTOR):
670         Also return OPTIMIZE (erms) for Prefer_FSRM.
671
672 2018-05-21  H.J. Lu  <hongjiu.lu@intel.com>
673
674         * sysdeps/x86/cpu-features.h (bit_cpu_FSRM): New.
675         (index_cpu_FSRM): Likewise.
676         (reg_FSRM): Likewise.
677
678 2018-05-18  Joseph Myers  <joseph@codesourcery.com>
679
680         * math/gen-tgmath-tests.py: Import sys.
681         (Tests.__init__): Initialize macros_seen.
682         (Tests.add_tests): Add macro to macros_seen.  Only generate tests
683         if requested to do so for this macro.
684         (Tests.add_all_tests): Take argument for macro for which to
685         generate tests.
686         (Tests.check_macro_list): New function.
687         (main): Handle check-list argument and argument specifying macro
688         for which to generate tests.
689         * math/Makefile [PYTHON] (tgmath3-macros): New variable.
690         [PYTHON] (tgmath3-macro-tests): Likewise.
691         [PYTHON] (tests): Add $(tgmath3-macro-tests) not test-tgmath3.
692         [PYTHON] (generated): Add $(addsuffix .c,$(tgmath3-macro-tests))
693         not test-tgmath3.c.
694         [PYTHON] (CFLAGS-test-tgmath3.c): Remove.
695         [PYTHON] ($(tgmath3-macro-tests:%=$(objpfx)%.o): Add -fno-builtin
696         to CFLAGS.
697         [PYTHON] ($(objpfx)test-tgmath3.c): Replace rule by....
698         [PYTHON] ($(foreach
699         m,$(tgmath3-macros),$(objpfx)test-tgmath3-$(m).c): ... this.  New
700         rule.
701         [PYTHON] (tests-special): Add
702         $(objpfx)test-tgmath3-macro-list.out.
703         [PYTHON] ($(objpfx)test-tgmath3-macro-list.out): New rule.
704
705         * sysdeps/unix/sysv/linux/syscalls.list (nfsservctl): Make into a
706         compat symbol, disabled for minimum symbol version GLIBC_2.28 and
707         later.
708
709         [BZ #22639]
710         * time/tzset.c (SECSPERDAY): Cast to time_t.
711         * time/tst-y2039.c: New file.
712         * time/Makefile (tests): Add tst-y2039.
713
714 2018-05-17  Leonardo Sandoval  <leonardo.sandoval.gonzalez@intel.com>
715
716         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
717         (PREFETCH_ONE_SET): Remove duplicate line.
718
719 2018-05-17  Florian Weimer  <fweimer@redhat.com>
720
721         * sysdeps/generic/math-type-macros-double.h: Include
722         <math-nan-payload-double.h> after <libm-alias-double.h>.
723         * sysdeps/generic/math-type-macros-float.h: Include
724         <math-nan-payload-float.h> after <libm-alias-float.h>.
725         * sysdeps/generic/math-type-macros-float128.h: Include
726         <math-nan-payload-float128.h> after <libm-alias-float128.h>.
727         * sysdeps/generic/math-type-macros-ldouble.h: Include
728         <math-nan-payload-ldouble.h> after <libm-alias-ldouble.h>.
729
730 2018-05-17  Andreas Schwab  <schwab@suse.de>
731
732         * resolv/res_send.c (__res_context_send): Don't set errno when
733         returing error after malloc failure.
734
735 2018-05-17  H.J. Lu  <hongjiu.lu@intel.com>
736
737         * nptl/allocatestack.c (allocate_stack): Remove the
738         !__ASSUME_PRIVATE_FUTEX paths.
739         * nptl/descr.h (header): Remove the !__ASSUME_PRIVATE_FUTEX path.
740         * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
741         Likewise.
742         * sysdeps/i386/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Removed.
743         * sysdeps/powerpc/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
744         * sysdeps/sh/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
745         * sysdeps/x86_64/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
746         * sysdeps/i386/nptl/tls.h: (tcbhead_t): Remve the
747         !__ASSUME_PRIVATE_FUTEX path.
748         * sysdeps/s390/nptl/tls.h (tcbhead_t): Likewise.
749         * sysdeps/sparc/nptl/tls.h (tcbhead_t): Likewise.
750         * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Likewise.
751         * sysdeps/unix/sysv/linux/i386/lowlevellock.S: Remove the
752         !__ASSUME_PRIVATE_FUTEX macros.
753         * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Likewise.
754         * sysdeps/unix/sysv/linux/x86_64/cancellation.S: Likewise.
755         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
756         * sysdeps/unix/sysv/linux/kernel-features.h
757         (__ASSUME_PRIVATE_FUTEX): Removed.
758
759 2018-05-17  Joseph Myers  <joseph@codesourcery.com>
760
761         * math/Makefile (libm-narrow-fns): Add div.
762         (libm-test-funcs-narrow): Likewise.
763         * math/Versions (GLIBC_2.28): Add narrowing divide functions.
764         * math/bits/mathcalls-narrow.h (div): Use __MATHCALL_NARROW.
765         * math/gen-auto-libm-tests.c (test_functions): Add div.
766         * math/math-narrow.h (CHECK_NARROW_DIV): New macro.
767         (NARROW_DIV_ROUND_TO_ODD): Likewise.
768         (NARROW_DIV_TRIVIAL): Likewise.
769         * sysdeps/ieee754/float128/float128_private.h (__fdivl): New
770         macro.
771         (__ddivl): Likewise.
772         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fdiv and
773         ddiv.
774         (CFLAGS-nldbl-ddiv.c): New variable.
775         (CFLAGS-nldbl-fdiv.c): Likewise.
776         * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
777         __nldbl_ddivl.
778         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_ddivl): New
779         prototype.
780         * manual/arith.texi (Misc FP Arithmetic): Document fdiv, fdivl,
781         ddivl, fMdivfN, fMdivfNx, fMxdivfN and fMxdivfNx.
782         * math/auto-libm-test-in: Add tests of div.
783         * math/auto-libm-test-out-narrow-div: New generated file.
784         * math/libm-test-narrow-div.inc: New file.
785         * sysdeps/i386/fpu/s_f32xdivf64.c: Likewise.
786         * sysdeps/ieee754/dbl-64/s_f32xdivf64.c: Likewise.
787         * sysdeps/ieee754/dbl-64/s_fdiv.c: Likewise.
788         * sysdeps/ieee754/float128/s_f32divf128.c: Likewise.
789         * sysdeps/ieee754/float128/s_f64divf128.c: Likewise.
790         * sysdeps/ieee754/float128/s_f64xdivf128.c: Likewise.
791         * sysdeps/ieee754/ldbl-128/s_ddivl.c: Likewise.
792         * sysdeps/ieee754/ldbl-128/s_f64xdivf128.c: Likewise.
793         * sysdeps/ieee754/ldbl-128/s_fdivl.c: Likewise.
794         * sysdeps/ieee754/ldbl-128ibm/s_ddivl.c: Likewise.
795         * sysdeps/ieee754/ldbl-128ibm/s_fdivl.c: Likewise.
796         * sysdeps/ieee754/ldbl-96/s_ddivl.c: Likewise.
797         * sysdeps/ieee754/ldbl-96/s_fdivl.c: Likewise.
798         * sysdeps/ieee754/ldbl-opt/nldbl-ddiv.c: Likewise.
799         * sysdeps/ieee754/ldbl-opt/nldbl-fdiv.c: Likewise.
800         * sysdeps/ieee754/soft-fp/s_ddivl.c: Likewise.
801         * sysdeps/ieee754/soft-fp/s_fdiv.c: Likewise.
802         * sysdeps/ieee754/soft-fp/s_fdivl.c: Likewise.
803         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
804         * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
805         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
806         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
807         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
808         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
809         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
810         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
811         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
812         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
813         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
814         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
815         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
816         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
817         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
818         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
819         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
820         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
821         * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
822         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
823         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
824         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
825         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
826         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
827         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
828         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
829
830 2018-05-16  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
831
832         [BZ #23178]
833         * nscd/nscd-client.h (sendfileall): Remove prototype.
834         * nscd/connections.c [HAVE_SENDFILE] (sendfileall): Remove function.
835         (handle_request): Use writeall instead of sendfileall.
836         * nscd/aicache.c (addhstaiX): Likewise.
837         * nscd/grpcache.c (cache_addgr): Likewise.
838         * nscd/hstcache.c (cache_addhst): Likewise.
839         * nscd/initgrcache.c (addinitgroupsX): Likewise.
840         * nscd/netgroupcache.c (addgetnetgrentX, addinnetgrX): Likewise.
841         * nscd/pwdcache.c (cache_addpw): Likewise.
842         * nscd/servicescache.c (cache_addserv): Likewise.
843         * sysdeps/unix/sysv/linux/Makefile [$(subdir) == nscd]
844         (sysdep-CFLAGS): Remove -DHAVE_SENDFILE.
845         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_SENDFILE):
846         Remove define.
847
848 2018-05-16  H.J. Lu  <hongjiu.lu@intel.com>
849
850         * sysdeps/x86_64/multiarch/strncat-c.c (STRNCAT_PRIMARY): Removed.
851         Include <string/strncat.c>.
852         * sysdeps/x86_64/multiarch/strncat.c (__strncat): New strong
853         alias.
854         (__GI___strncat): New hidden alias.
855
856 2018-05-16  Joseph Myers  <joseph@codesourcery.com>
857
858         * sysdeps/mips/mips32/libm-test-ulps: Update.
859         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
860
861 2018-05-16  Florian Weimer  <fweimer@redhat.com>
862
863         * support/Makefile (libsupport-routines): Add support_quote_blob,
864         support_test_compare_blob.
865         (tests): Add tst-support_quote_blob, tst-test_compare_blob.
866         * support/check.h (TEST_COMPARE_BLOB): Define.
867         (support_test_compare_blob): Declare.
868         * support/support.h (support_quote_blob): Declare.
869         * support/support_quote_blob.c: New file.
870         * support/support_test_compare_blob.c: Likewise.
871         * support/tst-support_quote_blob.c: Likewise.
872         * support/tst-test_compare_blob.c: Likewise.
873
874 2018-05-16  Florian Weimer  <fweimer@redhat.com>
875
876         * stdlib/strtod_nan.c: Include <math-type-macros-double.h> instead
877         of <strtod_nan_double.h>.
878         * stdlib/strtod_nan_main.c (STRTOD_NAN): Use SET_NAN_PAYLOAD
879         instead of SET_MANTISSA.
880         * stdlib/strtof_nan.c: Include <math-type-macros-float.h> instead
881         of include <strtod_nan_float.h>.
882         * stdlib/strtold_nan.c: Include <math-type-macros-ldouble.h>
883         instead of <strtod_nan_ldouble.h>.
884         * stdlib/strtod_nan_double.h: Move to ...
885         * sysdeps/generic/math-nan-payload-double.h: ... here.
886         (FLOAT): Remove definition.
887         (SET_MANTISSA): Rename to ...
888         (SET_NAN_PAYLOAD): ... this.
889         * stdlib/strtod_nan_float.h: Move to ...
890         * sysdeps/generic/math-nan-payload-float.h: ... here.
891         (FLOAT): Remove definition.
892         (SET_MANTISSA): Rename to ...
893         (SET_NAN_PAYLOAD): ... this.
894         * sysdeps/generic/math-type-macros-double.h: Include
895         <math-nan-payload-double.h>.  Include <math/math-svid-compat.h>
896         instead of <math-svid-compat.h>.
897         * sysdeps/generic/math-type-macros-float.h: Include
898         <math-nan-payload-float.h>.  Include <math/math-svid-compat.h>
899         instead of <math-svid-compat.h>.
900         * sysdeps/generic/math-type-macros-float128.h: Include
901         <math-nan-payload-float128.h>.
902         * sysdeps/generic/math-type-macros-ldouble.h: Include
903         <math-nan-payload-ldouble.h>.  Include <math/math-svid-compat.h>
904         instead of <math-svid-compat.h>.
905         * sysdeps/generic/math-type-macros.h: Document SET_NAN_PAYLOAD and
906         check for definition.
907         * sysdeps/ieee754/float128/strtod_nan_float128.h: Move to ...
908         * sysdeps/ieee754/float128/math-nan-payload-float128.h: ... here.
909         Include <ieee754_float128.h>.
910         (FLOAT): Remove definition.
911         (SET_MANTISSA): Rename to ...
912         (SET_NAN_PAYLOAD): ... this.
913         * sysdeps/ieee754/float128/strtof128_nan.c: Include
914         <math-type-macros-float128.h> instead of <strtod_nan_float128.h>.
915         Do not include <float128_private.h>.
916         * sysdeps/ieee754/float128/wcstof128_nan.c: Likewise.
917         * sysdeps/ieee754/ldbl-128/strtod_nan_ldouble.h: Move to ...
918         * sysdeps/ieee754/ldbl-128/math-nan-payload-ldouble.h: ... here.
919         (FLOAT): Remove definition.
920         (SET_MANTISSA): Rename to ...
921         (SET_NAN_PAYLOAD): ... this.
922         * sysdeps/ieee754/ldbl-128ibm/strtod_nan_ldouble.h: Move to ...
923         * sysdeps/ieee754/ldbl-128ibm/math-nan-payload-ldouble.h: ... here.
924         (FLOAT): Remove definition.
925         (SET_MANTISSA): Rename to ...
926         (SET_NAN_PAYLOAD): ... this.
927         * sysdeps/ieee754/ldbl-96/strtod_nan_ldouble.h: Move to ...
928         * sysdeps/ieee754/ldbl-96/math-nan-payload-ldouble.h: ... here.
929         (FLOAT): Remove definition.
930         (SET_MANTISSA): Rename to ...
931         (SET_NAN_PAYLOAD): ... this.
932         * wcsmbs/wcstod_nan.c: Include <math-type-macros-double.h> instead
933         of "../stdlib/strtod_nan_double.h".
934         * wcsmbs/wcstof_nan.c: Include <math-type-macros-float.h> instead
935         of "../stdlib/strtod_nan_float.h".
936         * wcsmbs/wcstold_nan.c: Include <math-type-macros-ldouble.h>
937         instead of "../stdlib/strtod_nan_ldouble.h".
938         * manual/arith.texi (Parsing of Floats): Adjust comment.
939
940 2018-05-16  Joseph Myers  <joseph@codesourcery.com>
941
942         * math/Makefile (libm-narrow-fns): Add mul.
943         (libm-test-funcs-narrow): Likewise.
944         * math/Versions (GLIBC_2.28): Add narrowing multiply functions.
945         * math/bits/mathcalls-narrow.h (mul): Use __MATHCALL_NARROW.
946         * math/gen-auto-libm-tests.c (test_functions): Add mul.
947         * math/math-narrow.h (CHECK_NARROW_MUL): New macro.
948         (NARROW_MUL_ROUND_TO_ODD): Likewise.
949         (NARROW_MUL_TRIVIAL): Likewise.
950         * soft-fp/op-common.h (FP_TRUNC_COOKED): Likewise.
951         * sysdeps/ieee754/float128/float128_private.h (__fmull): New
952         macro.
953         (__dmull): Likewise.
954         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fmul and
955         dmul.
956         (CFLAGS-nldbl-dmul.c): New variable.
957         (CFLAGS-nldbl-fmul.c): Likewise.
958         * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
959         __nldbl_dmull.
960         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_dmull): New
961         prototype.
962         * manual/arith.texi (Misc FP Arithmetic): Document fmul, fmull,
963         dmull, fMmulfN, fMmulfNx, fMxmulfN and fMxmulfNx.
964         * math/auto-libm-test-in: Add tests of mul.
965         * math/auto-libm-test-out-narrow-mul: New generated file.
966         * math/libm-test-narrow-mul.inc: New file.
967         * sysdeps/i386/fpu/s_f32xmulf64.c: Likewise.
968         * sysdeps/ieee754/dbl-64/s_f32xmulf64.c: Likewise.
969         * sysdeps/ieee754/dbl-64/s_fmul.c: Likewise.
970         * sysdeps/ieee754/float128/s_f32mulf128.c: Likewise.
971         * sysdeps/ieee754/float128/s_f64mulf128.c: Likewise.
972         * sysdeps/ieee754/float128/s_f64xmulf128.c: Likewise.
973         * sysdeps/ieee754/ldbl-128/s_dmull.c: Likewise.
974         * sysdeps/ieee754/ldbl-128/s_f64xmulf128.c: Likewise.
975         * sysdeps/ieee754/ldbl-128/s_fmull.c: Likewise.
976         * sysdeps/ieee754/ldbl-128ibm/s_dmull.c: Likewise.
977         * sysdeps/ieee754/ldbl-128ibm/s_fmull.c: Likewise.
978         * sysdeps/ieee754/ldbl-96/s_dmull.c: Likewise.
979         * sysdeps/ieee754/ldbl-96/s_fmull.c: Likewise.
980         * sysdeps/ieee754/ldbl-opt/nldbl-dmul.c: Likewise.
981         * sysdeps/ieee754/ldbl-opt/nldbl-fmul.c: Likewise.
982         * sysdeps/ieee754/soft-fp/s_dmull.c: Likewise.
983         * sysdeps/ieee754/soft-fp/s_fmul.c: Likewise.
984         * sysdeps/ieee754/soft-fp/s_fmull.c: Likewise.
985         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
986         * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
987         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
988         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
989         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
990         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
991         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
992         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
993         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
994         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
995         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
996         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
997         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
998         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
999         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
1000         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
1001         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
1002         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
1003         * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
1004         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
1005         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
1006         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
1007         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
1008         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
1009         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
1010         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
1011
1012 2018-05-14  H.J. Lu  <hongjiu.lu@intel.com>
1013
1014         * sysdeps/i386/crti.S (_init): Replace PREINIT_FUNCTION@PLT
1015         with *%eax in call.
1016
1017 2018-05-14  H.J. Lu  <hongjiu.lu@intel.com>
1018
1019         * sysdeps/i386/ldsodefs.h: Removed.
1020         * sysdeps/x86_64/ldsodefs.h: Moved to ...
1021         * sysdeps/x86/ldsodefs.h: This.
1022         (La_i86_regs): New.
1023         (La_i86_retval): Likewise.
1024         (ARCH_PLTENTER_MEMBERS): Add i86_gnu_pltenter.
1025         (ARCH_PLTEXIT_MEMBERS): i86_gnu_pltexit.
1026
1027 2018-05-14  H.J. Lu  <hongjiu.lu@intel.com>
1028
1029         * sysdeps/x86_64/multiarch/strlen-avx2.S (STRLEN): Remove the
1030         unnecessary testl.
1031
1032 2018-05-13  Alan Modra  <amodra@gmail.com>
1033
1034         * sysdeps/hppa/dl-machine.h (elf_machine_rela): Add
1035         R_PARISC_TLS_DTPOFF32 reloc addend.
1036
1037 2018-05-11  Tulio Magno Quites Machado Filho  <tuliom@linux.ibm.com>
1038
1039         * bits/floatn-common.h: Define __HAVE_FLOAT128_UNLIKE_LDBL.
1040         * math/math.h: Restrict the prototype definition for the functions
1041         issignaling(_Float128) and iszero(_Float128); and template
1042         __iseqsig_type<_Float128>, from __HAVE_DISTINCT_FLOAT128 to
1043         __HAVE_FLOAT128_UNLIKE_LDBL.
1044         * sysdeps/powerpc/bits/floatn.h [__HAVE_FLOAT128
1045         && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
1046         && __LDBL_MANT_DIG__ == 113]: Use long double suffix for
1047         __f128() constants; define the type _Float128 as long double;
1048         and reuse long double in __CFLOAT128.
1049
1050 2018-05-11  Joseph Myers  <joseph@codesourcery.com>
1051
1052         * sysdeps/generic/math_private.h: Do not include
1053         <math-barriers.h>.
1054         * stdlib/strtod_l.c: Include <math-barriers.h> instead of
1055         <math_private.h>.
1056         * math/fromfp.h: Include <math-barriers.h>.
1057         * math/math-narrow.h: Likewise.
1058         * math/s_nextafter.c: Likewise.
1059         * math/s_nexttowardf.c: Likewise.
1060         * sysdeps/aarch64/fpu/s_llrint.c: Likewise.
1061         * sysdeps/aarch64/fpu/s_llrintf.c: Likewise.
1062         * sysdeps/aarch64/fpu/s_lrint.c: Likewise.
1063         * sysdeps/aarch64/fpu/s_lrintf.c: Likewise.
1064         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
1065         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
1066         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
1067         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
1068         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
1069         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
1070         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
1071         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
1072         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
1073         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
1074         * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
1075         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
1076         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
1077         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
1078         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
1079         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
1080         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
1081         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
1082         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
1083         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
1084         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
1085         * sysdeps/ieee754/k_standardl.c: Likewise.
1086         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
1087         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
1088         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
1089         * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
1090         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
1091         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
1092         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
1093         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
1094         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
1095         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
1096         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
1097         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
1098         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
1099         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
1100         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
1101         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
1102         * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
1103         * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
1104         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
1105         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
1106         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Likewise.
1107         * sysdeps/m68k/m680x0/fpu/s_nextafterl.c: Likewise.
1108
1109 2018-05-11  Florian Weimer  <fweimer@redhat.com>
1110
1111         Use 64-bit epoch values in the time zone file parser.
1112         * include/time.h (internal_time_t): Define.
1113         (__tzfile_compute): Use it.
1114         * time/tzfile.c (struct leap): Use internal_time_t for epoch
1115         member.
1116         (transitions): Switch to internal_time_t.
1117         (__tzfile_read): Likewise.  Remove code dealing with 4-byte time_t
1118         types.
1119         (__tzfile_compute): Use internal_time_t for timer argument.  Check
1120         for truncation before calling __offtime.
1121
1122 2018-05-11  Florian Weimer  <fweimer@redhat.com>
1123
1124         [BZ #23166]
1125         * include/rpc/clnt.h (rpc_createerr): Declare hidden alias.
1126         * include/rpc/svc.h (svc_pollfd, svc_max_pollfd, svc_fdset):
1127         Likewise.
1128         * sunrpc/rpc_common.c (svc_fdset, rpc_createerr, svc_pollfd)
1129         (svc_max_pollfd): Add nocommon attribute and hidden alias.  Do not
1130         export without --enable-obsolete-rpc.
1131         * sunrpc/svcauth_des.c (svcauthdes_stats): Turn into compatibility
1132         symbol.  This should not have been exported, ever.
1133
1134 2018-05-11  Rafal Luzynski  <digitalfreak@lingonborough.com>
1135
1136         [BZ #23152]
1137         * localedata/locales/gd_GB (abmon): Fix typo in May:
1138         "Mhàrt" -> "Cèit".  Adjust the comment according to the change.
1139
1140 2018-05-11  Siddhesh Poyarekar  <siddhesh@sourceware.org>
1141
1142         * sysdeps/aarch64/multiarch/memcpy_falkor.S (__memcpy_falkor):
1143         Use multiple registers to copy data in loop tail.
1144
1145         * sysdeps/aarch64/multiarch/memmove_falkor.S
1146         (__memmove_falkor): Use multiple registers to move data in
1147         loop tail.
1148
1149 2018-05-10  Joseph Myers  <joseph@codesourcery.com>
1150
1151         * math/math-underflow.h: New file.
1152         * sysdeps/generic/math_private.h: Do not include <float.h>.
1153         (fabs_tg): Remove macro.  Moved to math-underflow.h.
1154         (min_of_type_f): Likewise.
1155         (min_of_type_): Likewise.
1156         (min_of_type_l): Likewise.
1157         (min_of_type_f128): Likewise.
1158         (min_of_type): Likewise.
1159         (math_check_force_underflow): Likewise.
1160         (math_check_force_underflow_nonneg): Likewise.
1161         (math_check_force_underflow_complex): Likewise.
1162         * math/e_exp2_template.c: Include <math-underflow.h>.
1163         * math/k_casinh_template.c: Likewise.
1164         * math/s_catan_template.c: Likewise.
1165         * math/s_catanh_template.c: Likewise.
1166         * math/s_ccosh_template.c: Likewise.
1167         * math/s_cexp_template.c: Likewise.
1168         * math/s_clog10_template.c: Likewise.
1169         * math/s_clog_template.c: Likewise.
1170         * math/s_csin_template.c: Likewise.
1171         * math/s_csinh_template.c: Likewise.
1172         * math/s_csqrt_template.c: Likewise.
1173         * math/s_ctan_template.c: Likewise.
1174         * math/s_ctanh_template.c: Likewise.
1175         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
1176         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
1177         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
1178         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
1179         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
1180         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
1181         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
1182         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
1183         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
1184         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
1185         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
1186         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
1187         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
1188         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
1189         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
1190         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
1191         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
1192         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
1193         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
1194         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
1195         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
1196         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
1197         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
1198         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
1199         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
1200         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
1201         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
1202         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
1203         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
1204         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
1205         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
1206         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
1207         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
1208         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
1209         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
1210         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
1211         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
1212         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
1213         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
1214         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
1215         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
1216         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
1217         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
1218         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
1219         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
1220         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
1221         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
1222         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
1223         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
1224         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
1225         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
1226         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
1227         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
1228         * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
1229         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
1230         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
1231         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
1232         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
1233         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
1234         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
1235         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
1236         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
1237         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
1238         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
1239         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
1240         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
1241         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
1242         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
1243         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
1244         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
1245         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
1246         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
1247         * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
1248         * sysdeps/ieee754/ldbl-96/k_tanl.c: Likewise.
1249         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
1250         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
1251         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
1252         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
1253         * sysdeps/x86/fpu/powl_helper.c: Likewise.
1254         * sysdeps/ieee754/dbl-64/s_nextup.c: Include <float.h>.
1255         * sysdeps/ieee754/flt-32/s_nextupf.c: Likewise.
1256         * sysdeps/ieee754/ldbl-128/s_nextupl.c: Likewise.
1257         * sysdeps/ieee754/ldbl-128ibm/s_nextupl.c: Likewise.
1258         * sysdeps/ieee754/ldbl-96/s_nextupl.c: Likewise.
1259
1260 2018-05-09  Joseph Myers  <joseph@codesourcery.com>
1261
1262         * sysdeps/generic/math-barriers.h: New file.
1263         * sysdeps/generic/math_private.h [!math_opt_barrier]
1264         (math_opt_barrier): Move to math-barriers.h.
1265         [!math_opt_barrier] (math_force_eval): Likewise.
1266         * sysdeps/aarch64/fpu/math-barriers.h: New file.
1267         * sysdeps/aarch64/fpu/math_private.h (math_opt_barrier): Move to
1268         math-barriers.h.
1269         (math_force_eval): Likewise.
1270         * sysdeps/alpha/fpu/math-barriers.h: New file.
1271         * sysdeps/alpha/fpu/math_private.h (math_opt_barrier): Move to
1272         math-barriers.h.
1273         (math_force_eval): Likewise.
1274         * sysdeps/x86/fpu/math-barriers.h: New file.
1275         * sysdeps/i386/fpu/fenv_private.h (math_opt_barrier): Move to
1276         math-barriers.h.
1277         (math_force_eval): Likewise.
1278         * sysdeps/m68k/m680x0/fpu/math_private.h: Move to....
1279         * sysdeps/m68k/m680x0/fpu/math-barriers.h: ... here.  Adjust
1280         multiple-include guard for rename.
1281         * sysdeps/powerpc/fpu/math-barriers.h: New file.
1282         * sysdeps/powerpc/fpu/math_private.h (math_opt_barrier): Move to
1283         math-barriers.h.
1284         (math_force_eval): Likewise.
1285
1286 2018-05-09  Paul Pluzhnikov  <ppluzhnikov@google.com>
1287
1288         [BZ #22786]
1289         CVE-2018-11236
1290         * stdlib/canonicalize.c (__realpath): Fix overflow in path length
1291         computation.
1292         * stdlib/Makefile (test-bz22786): New test.
1293         * stdlib/test-bz22786.c: New test.
1294
1295 2018-05-09  Joseph Myers  <joseph@codesourcery.com>
1296
1297         * include/math-narrow-eval.h: New file.  Contents moved from ....
1298         * sysdeps/generic/math_private.h: ... here.
1299         (math_narrow_eval): Remove macro.  Moved to math-narrow-eval.h.
1300         [FLT_EVAL_METHOD != 0] (excess_precision): Likewise.
1301         * math/s_fdim_template.c: Include <math-narrow-eval.h>.
1302         * stdlib/strtod_l.c: Likewise.
1303         * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
1304         * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
1305         * sysdeps/i386/fpu/s_fdim.c: Likewise.
1306         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
1307         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
1308         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
1309         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
1310         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
1311         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
1312         * sysdeps/ieee754/dbl-64/gamma_productf.c: Likewise.
1313         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
1314         * sysdeps/ieee754/dbl-64/lgamma_neg.c: Likewise.
1315         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
1316         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
1317         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
1318         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
1319         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
1320         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
1321         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
1322         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
1323         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
1324         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
1325         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
1326         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
1327         * sysdeps/ieee754/flt-32/lgamma_negf.c: Likewise.
1328         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
1329         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
1330         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
1331         * sysdeps/ieee754/ldbl-96/gamma_product.c: Likewise.
1332
1333 2018-05-08  Andreas Schwab  <schwab@suse.de>
1334
1335         * sysdeps/nptl/internaltypes.h: Fix comment.
1336
1337 2018-05-07  H.J. Lu  <hongjiu.lu@intel.com>
1338
1339         * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
1340         (MEMSET_SYMBOL (__memset, erms)): Mark the debugger symbol as
1341         hidden.
1342
1343 2018-05-07  Siddhesh Poyarekar  <siddhesh@sourceware.org>
1344
1345         * benchtests/bench-memcpy-walk.c (test_main): Move declaration
1346         of I into loop header.
1347         * benchtests/bench-memmove-walk.c
1348         (test_main): Likewise.
1349
1350 2018-05-07  Alexandre Oliva  <oliva@gnu.org>
1351
1352         Revert:
1353         2018-04-30  Raymond Nicholson <rain1@airmail.cc>
1354         * manual/startup.texi (Aborting a Program): Remove inappropriate joke.
1355
1356 2018-05-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
1357
1358         [BZ #20419]
1359         * elf/dl-load.c (open_verify): Fix stack overflow.
1360         * elf/Makefile (tst-big-note): New test.
1361         * elf/tst-big-note-lib.S: New.
1362         * elf/tst-big-note.c: New.
1363
1364 2018-05-04  Joseph Myers  <joseph@codesourcery.com>
1365
1366         * scripts/abilist.awk: Ignore absolute symbols.
1367         * sysdeps/mach/hurd/i386/ld.abilist: Remove absolute symbols.
1368         * sysdeps/mach/hurd/i386/libBrokenLocale.abilist: Likewise.
1369         * sysdeps/mach/hurd/i386/libanl.abilist: Likewise.
1370         * sysdeps/mach/hurd/i386/libc.abilist: Likewise.
1371         * sysdeps/mach/hurd/i386/libcrypt.abilist: Likewise.
1372         * sysdeps/mach/hurd/i386/libdl.abilist: Likewise.
1373         * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
1374         * sysdeps/mach/hurd/i386/libnsl.abilist: Likewise.
1375         * sysdeps/mach/hurd/i386/libpthread.abilist: Likewise.
1376         * sysdeps/mach/hurd/i386/libresolv.abilist: Likewise.
1377         * sysdeps/mach/hurd/i386/librt.abilist: Likewise.
1378         * sysdeps/mach/hurd/i386/libutil.abilist: Likewise.
1379         * sysdeps/unix/sysv/linux/aarch64/ld.abilist: Likewise.
1380         * sysdeps/unix/sysv/linux/aarch64/libBrokenLocale.abilist: Likewise.
1381         * sysdeps/unix/sysv/linux/aarch64/libanl.abilist: Likewise.
1382         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Likewise.
1383         * sysdeps/unix/sysv/linux/aarch64/libcrypt.abilist: Likewise.
1384         * sysdeps/unix/sysv/linux/aarch64/libdl.abilist: Likewise.
1385         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
1386         * sysdeps/unix/sysv/linux/aarch64/libnsl.abilist: Likewise.
1387         * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist: Likewise.
1388         * sysdeps/unix/sysv/linux/aarch64/libresolv.abilist: Likewise.
1389         * sysdeps/unix/sysv/linux/aarch64/librt.abilist: Likewise.
1390         * sysdeps/unix/sysv/linux/aarch64/libthread_db.abilist: Likewise.
1391         * sysdeps/unix/sysv/linux/aarch64/libutil.abilist: Likewise.
1392         * sysdeps/unix/sysv/linux/alpha/ld.abilist: Likewise.
1393         * sysdeps/unix/sysv/linux/alpha/libBrokenLocale.abilist: Likewise.
1394         * sysdeps/unix/sysv/linux/alpha/libanl.abilist: Likewise.
1395         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
1396         * sysdeps/unix/sysv/linux/alpha/libcrypt.abilist: Likewise.
1397         * sysdeps/unix/sysv/linux/alpha/libdl.abilist: Likewise.
1398         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
1399         * sysdeps/unix/sysv/linux/alpha/libnsl.abilist: Likewise.
1400         * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: Likewise.
1401         * sysdeps/unix/sysv/linux/alpha/libresolv.abilist: Likewise.
1402         * sysdeps/unix/sysv/linux/alpha/librt.abilist: Likewise.
1403         * sysdeps/unix/sysv/linux/alpha/libthread_db.abilist: Likewise.
1404         * sysdeps/unix/sysv/linux/alpha/libutil.abilist: Likewise.
1405         * sysdeps/unix/sysv/linux/arm/ld.abilist: Likewise.
1406         * sysdeps/unix/sysv/linux/arm/libBrokenLocale.abilist: Likewise.
1407         * sysdeps/unix/sysv/linux/arm/libanl.abilist: Likewise.
1408         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
1409         * sysdeps/unix/sysv/linux/arm/libcrypt.abilist: Likewise.
1410         * sysdeps/unix/sysv/linux/arm/libdl.abilist: Likewise.
1411         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
1412         * sysdeps/unix/sysv/linux/arm/libnsl.abilist: Likewise.
1413         * sysdeps/unix/sysv/linux/arm/libpthread.abilist: Likewise.
1414         * sysdeps/unix/sysv/linux/arm/libresolv.abilist: Likewise.
1415         * sysdeps/unix/sysv/linux/arm/librt.abilist: Likewise.
1416         * sysdeps/unix/sysv/linux/arm/libthread_db.abilist: Likewise.
1417         * sysdeps/unix/sysv/linux/arm/libutil.abilist: Likewise.
1418         * sysdeps/unix/sysv/linux/hppa/ld.abilist: Likewise.
1419         * sysdeps/unix/sysv/linux/hppa/libBrokenLocale.abilist: Likewise.
1420         * sysdeps/unix/sysv/linux/hppa/libanl.abilist: Likewise.
1421         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
1422         * sysdeps/unix/sysv/linux/hppa/libcrypt.abilist: Likewise.
1423         * sysdeps/unix/sysv/linux/hppa/libdl.abilist: Likewise.
1424         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
1425         * sysdeps/unix/sysv/linux/hppa/libnsl.abilist: Likewise.
1426         * sysdeps/unix/sysv/linux/hppa/libpthread.abilist: Likewise.
1427         * sysdeps/unix/sysv/linux/hppa/libresolv.abilist: Likewise.
1428         * sysdeps/unix/sysv/linux/hppa/librt.abilist: Likewise.
1429         * sysdeps/unix/sysv/linux/hppa/libthread_db.abilist: Likewise.
1430         * sysdeps/unix/sysv/linux/hppa/libutil.abilist: Likewise.
1431         * sysdeps/unix/sysv/linux/i386/ld.abilist: Likewise.
1432         * sysdeps/unix/sysv/linux/i386/libBrokenLocale.abilist: Likewise.
1433         * sysdeps/unix/sysv/linux/i386/libanl.abilist: Likewise.
1434         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
1435         * sysdeps/unix/sysv/linux/i386/libcrypt.abilist: Likewise.
1436         * sysdeps/unix/sysv/linux/i386/libdl.abilist: Likewise.
1437         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
1438         * sysdeps/unix/sysv/linux/i386/libnsl.abilist: Likewise.
1439         * sysdeps/unix/sysv/linux/i386/libpthread.abilist: Likewise.
1440         * sysdeps/unix/sysv/linux/i386/libresolv.abilist: Likewise.
1441         * sysdeps/unix/sysv/linux/i386/librt.abilist: Likewise.
1442         * sysdeps/unix/sysv/linux/i386/libthread_db.abilist: Likewise.
1443         * sysdeps/unix/sysv/linux/i386/libutil.abilist: Likewise.
1444         * sysdeps/unix/sysv/linux/ia64/ld.abilist: Likewise.
1445         * sysdeps/unix/sysv/linux/ia64/libBrokenLocale.abilist: Likewise.
1446         * sysdeps/unix/sysv/linux/ia64/libanl.abilist: Likewise.
1447         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
1448         * sysdeps/unix/sysv/linux/ia64/libcrypt.abilist: Likewise.
1449         * sysdeps/unix/sysv/linux/ia64/libdl.abilist: Likewise.
1450         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
1451         * sysdeps/unix/sysv/linux/ia64/libnsl.abilist: Likewise.
1452         * sysdeps/unix/sysv/linux/ia64/libpthread.abilist: Likewise.
1453         * sysdeps/unix/sysv/linux/ia64/libresolv.abilist: Likewise.
1454         * sysdeps/unix/sysv/linux/ia64/librt.abilist: Likewise.
1455         * sysdeps/unix/sysv/linux/ia64/libthread_db.abilist: Likewise.
1456         * sysdeps/unix/sysv/linux/ia64/libutil.abilist: Likewise.
1457         * sysdeps/unix/sysv/linux/m68k/coldfire/ld.abilist: Likewise.
1458         * sysdeps/unix/sysv/linux/m68k/coldfire/libBrokenLocale.abilist:
1459         Likewise.
1460         * sysdeps/unix/sysv/linux/m68k/coldfire/libanl.abilist: Likewise.
1461         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
1462         * sysdeps/unix/sysv/linux/m68k/coldfire/libcrypt.abilist: Likewise.
1463         * sysdeps/unix/sysv/linux/m68k/coldfire/libdl.abilist: Likewise.
1464         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
1465         * sysdeps/unix/sysv/linux/m68k/coldfire/libnsl.abilist: Likewise.
1466         * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist: Likewise.
1467         * sysdeps/unix/sysv/linux/m68k/coldfire/libresolv.abilist: Likewise.
1468         * sysdeps/unix/sysv/linux/m68k/coldfire/librt.abilist: Likewise.
1469         * sysdeps/unix/sysv/linux/m68k/coldfire/libthread_db.abilist: Likewise.
1470         * sysdeps/unix/sysv/linux/m68k/coldfire/libutil.abilist: Likewise.
1471         * sysdeps/unix/sysv/linux/m68k/m680x0/ld.abilist: Likewise.
1472         * sysdeps/unix/sysv/linux/m68k/m680x0/libBrokenLocale.abilist:
1473         Likewise.
1474         * sysdeps/unix/sysv/linux/m68k/m680x0/libanl.abilist: Likewise.
1475         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
1476         * sysdeps/unix/sysv/linux/m68k/m680x0/libcrypt.abilist: Likewise.
1477         * sysdeps/unix/sysv/linux/m68k/m680x0/libdl.abilist: Likewise.
1478         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
1479         * sysdeps/unix/sysv/linux/m68k/m680x0/libnsl.abilist: Likewise.
1480         * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist: Likewise.
1481         * sysdeps/unix/sysv/linux/m68k/m680x0/libresolv.abilist: Likewise.
1482         * sysdeps/unix/sysv/linux/m68k/m680x0/librt.abilist: Likewise.
1483         * sysdeps/unix/sysv/linux/m68k/m680x0/libthread_db.abilist: Likewise.
1484         * sysdeps/unix/sysv/linux/m68k/m680x0/libutil.abilist: Likewise.
1485         * sysdeps/unix/sysv/linux/microblaze/ld.abilist: Likewise.
1486         * sysdeps/unix/sysv/linux/microblaze/libBrokenLocale.abilist: Likewise.
1487         * sysdeps/unix/sysv/linux/microblaze/libanl.abilist: Likewise.
1488         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
1489         * sysdeps/unix/sysv/linux/microblaze/libcrypt.abilist: Likewise.
1490         * sysdeps/unix/sysv/linux/microblaze/libdl.abilist: Likewise.
1491         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
1492         * sysdeps/unix/sysv/linux/microblaze/libnsl.abilist: Likewise.
1493         * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist: Likewise.
1494         * sysdeps/unix/sysv/linux/microblaze/libresolv.abilist: Likewise.
1495         * sysdeps/unix/sysv/linux/microblaze/librt.abilist: Likewise.
1496         * sysdeps/unix/sysv/linux/microblaze/libthread_db.abilist: Likewise.
1497         * sysdeps/unix/sysv/linux/microblaze/libutil.abilist: Likewise.
1498         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
1499         * sysdeps/unix/sysv/linux/mips/mips32/ld.abilist: Likewise.
1500         * sysdeps/unix/sysv/linux/mips/mips32/libBrokenLocale.abilist:
1501         Likewise.
1502         * sysdeps/unix/sysv/linux/mips/mips32/libanl.abilist: Likewise.
1503         * sysdeps/unix/sysv/linux/mips/mips32/libcidn.abilist: Likewise.
1504         * sysdeps/unix/sysv/linux/mips/mips32/libcrypt.abilist: Likewise.
1505         * sysdeps/unix/sysv/linux/mips/mips32/libdl.abilist: Likewise.
1506         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
1507         * sysdeps/unix/sysv/linux/mips/mips32/libnsl.abilist: Likewise.
1508         * sysdeps/unix/sysv/linux/mips/mips32/libnss_compat.abilist: Likewise.
1509         * sysdeps/unix/sysv/linux/mips/mips32/libnss_db.abilist: Likewise.
1510         * sysdeps/unix/sysv/linux/mips/mips32/libnss_dns.abilist: Likewise.
1511         * sysdeps/unix/sysv/linux/mips/mips32/libnss_files.abilist: Likewise.
1512         * sysdeps/unix/sysv/linux/mips/mips32/libnss_hesiod.abilist: Likewise.
1513         * sysdeps/unix/sysv/linux/mips/mips32/libnss_nis.abilist: Likewise.
1514         * sysdeps/unix/sysv/linux/mips/mips32/libnss_nisplus.abilist: Likewise.
1515         * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist: Likewise.
1516         * sysdeps/unix/sysv/linux/mips/mips32/libresolv.abilist: Likewise.
1517         * sysdeps/unix/sysv/linux/mips/mips32/librt.abilist: Likewise.
1518         * sysdeps/unix/sysv/linux/mips/mips32/libthread_db.abilist: Likewise.
1519         * sysdeps/unix/sysv/linux/mips/mips32/libutil.abilist: Likewise.
1520         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
1521         * sysdeps/unix/sysv/linux/mips/mips64/libBrokenLocale.abilist:
1522         Likewise.
1523         * sysdeps/unix/sysv/linux/mips/mips64/libanl.abilist: Likewise.
1524         * sysdeps/unix/sysv/linux/mips/mips64/libcrypt.abilist: Likewise.
1525         * sysdeps/unix/sysv/linux/mips/mips64/libdl.abilist: Likewise.
1526         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
1527         * sysdeps/unix/sysv/linux/mips/mips64/libnsl.abilist: Likewise.
1528         * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist: Likewise.
1529         * sysdeps/unix/sysv/linux/mips/mips64/librt.abilist: Likewise.
1530         * sysdeps/unix/sysv/linux/mips/mips64/libthread_db.abilist: Likewise.
1531         * sysdeps/unix/sysv/linux/mips/mips64/libutil.abilist: Likewise.
1532         * sysdeps/unix/sysv/linux/mips/mips64/n32/ld.abilist: Likewise.
1533         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
1534         * sysdeps/unix/sysv/linux/mips/mips64/n32/libresolv.abilist: Likewise.
1535         * sysdeps/unix/sysv/linux/mips/mips64/n64/ld.abilist: Likewise.
1536         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
1537         * sysdeps/unix/sysv/linux/mips/mips64/n64/libresolv.abilist: Likewise.
1538         * sysdeps/unix/sysv/linux/nios2/ld.abilist: Likewise.
1539         * sysdeps/unix/sysv/linux/nios2/libBrokenLocale.abilist: Likewise.
1540         * sysdeps/unix/sysv/linux/nios2/libanl.abilist: Likewise.
1541         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
1542         * sysdeps/unix/sysv/linux/nios2/libcrypt.abilist: Likewise.
1543         * sysdeps/unix/sysv/linux/nios2/libdl.abilist: Likewise.
1544         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
1545         * sysdeps/unix/sysv/linux/nios2/libnsl.abilist: Likewise.
1546         * sysdeps/unix/sysv/linux/nios2/libpthread.abilist: Likewise.
1547         * sysdeps/unix/sysv/linux/nios2/libresolv.abilist: Likewise.
1548         * sysdeps/unix/sysv/linux/nios2/librt.abilist: Likewise.
1549         * sysdeps/unix/sysv/linux/nios2/libthread_db.abilist: Likewise.
1550         * sysdeps/unix/sysv/linux/nios2/libutil.abilist: Likewise.
1551         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist: Likewise.
1552         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
1553         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ld.abilist: Likewise.
1554         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libBrokenLocale.abilist:
1555         Likewise.
1556         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libanl.abilist: Likewise.
1557         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libcrypt.abilist: Likewise.
1558         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libdl.abilist: Likewise.
1559         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libnsl.abilist: Likewise.
1560         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist:
1561         Likewise.
1562         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libresolv.abilist:
1563         Likewise.
1564         * sysdeps/unix/sysv/linux/powerpc/powerpc32/librt.abilist: Likewise.
1565         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libthread_db.abilist:
1566         Likewise.
1567         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libutil.abilist: Likewise.
1568         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
1569         Likewise.
1570         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
1571         Likewise.
1572         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld-le.abilist: Likewise.
1573         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld.abilist: Likewise.
1574         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale-le.abilist:
1575         Likewise.
1576         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale.abilist:
1577         Likewise.
1578         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl-le.abilist:
1579         Likewise.
1580         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl.abilist: Likewise.
1581         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
1582         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
1583         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt-le.abilist:
1584         Likewise.
1585         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt.abilist: Likewise.
1586         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl-le.abilist: Likewise.
1587         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl.abilist: Likewise.
1588         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
1589         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
1590         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl-le.abilist:
1591         Likewise.
1592         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl.abilist: Likewise.
1593         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread-le.abilist:
1594         Likewise.
1595         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread.abilist:
1596         Likewise.
1597         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv-le.abilist:
1598         Likewise.
1599         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv.abilist:
1600         Likewise.
1601         * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt-le.abilist: Likewise.
1602         * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt.abilist: Likewise.
1603         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db-le.abilist:
1604         Likewise.
1605         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db.abilist:
1606         Likewise.
1607         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil-le.abilist:
1608         Likewise.
1609         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil.abilist: Likewise.
1610         * sysdeps/unix/sysv/linux/riscv/rv64/ld.abilist: Likewise.
1611         * sysdeps/unix/sysv/linux/riscv/rv64/libBrokenLocale.abilist:
1612         Likewise.
1613         * sysdeps/unix/sysv/linux/riscv/rv64/libanl.abilist: Likewise.
1614         * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
1615         * sysdeps/unix/sysv/linux/riscv/rv64/libcrypt.abilist: Likewise.
1616         * sysdeps/unix/sysv/linux/riscv/rv64/libdl.abilist: Likewise.
1617         * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
1618         * sysdeps/unix/sysv/linux/riscv/rv64/libnsl.abilist: Likewise.
1619         * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist: Likewise.
1620         * sysdeps/unix/sysv/linux/riscv/rv64/libresolv.abilist: Likewise.
1621         * sysdeps/unix/sysv/linux/riscv/rv64/librt.abilist: Likewise.
1622         * sysdeps/unix/sysv/linux/riscv/rv64/libthread_db.abilist: Likewise.
1623         * sysdeps/unix/sysv/linux/riscv/rv64/libutil.abilist: Likewise.
1624         * sysdeps/unix/sysv/linux/s390/libanl.abilist: Likewise.
1625         * sysdeps/unix/sysv/linux/s390/s390-32/ld.abilist: Likewise.
1626         * sysdeps/unix/sysv/linux/s390/s390-32/libBrokenLocale.abilist:
1627         Likewise.
1628         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
1629         * sysdeps/unix/sysv/linux/s390/s390-32/libcrypt.abilist: Likewise.
1630         * sysdeps/unix/sysv/linux/s390/s390-32/libdl.abilist: Likewise.
1631         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
1632         * sysdeps/unix/sysv/linux/s390/s390-32/libnsl.abilist: Likewise.
1633         * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist: Likewise.
1634         * sysdeps/unix/sysv/linux/s390/s390-32/libresolv.abilist: Likewise.
1635         * sysdeps/unix/sysv/linux/s390/s390-32/librt.abilist: Likewise.
1636         * sysdeps/unix/sysv/linux/s390/s390-32/libthread_db.abilist: Likewise.
1637         * sysdeps/unix/sysv/linux/s390/s390-32/libutil.abilist: Likewise.
1638         * sysdeps/unix/sysv/linux/s390/s390-64/ld.abilist: Likewise.
1639         * sysdeps/unix/sysv/linux/s390/s390-64/libBrokenLocale.abilist:
1640         Likewise.
1641         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
1642         * sysdeps/unix/sysv/linux/s390/s390-64/libcrypt.abilist: Likewise.
1643         * sysdeps/unix/sysv/linux/s390/s390-64/libdl.abilist: Likewise.
1644         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
1645         * sysdeps/unix/sysv/linux/s390/s390-64/libnsl.abilist: Likewise.
1646         * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist: Likewise.
1647         * sysdeps/unix/sysv/linux/s390/s390-64/libresolv.abilist: Likewise.
1648         * sysdeps/unix/sysv/linux/s390/s390-64/librt.abilist: Likewise.
1649         * sysdeps/unix/sysv/linux/s390/s390-64/libthread_db.abilist: Likewise.
1650         * sysdeps/unix/sysv/linux/s390/s390-64/libutil.abilist: Likewise.
1651         * sysdeps/unix/sysv/linux/sh/ld.abilist: Likewise.
1652         * sysdeps/unix/sysv/linux/sh/libBrokenLocale.abilist: Likewise.
1653         * sysdeps/unix/sysv/linux/sh/libanl.abilist: Likewise.
1654         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
1655         * sysdeps/unix/sysv/linux/sh/libcrypt.abilist: Likewise.
1656         * sysdeps/unix/sysv/linux/sh/libdl.abilist: Likewise.
1657         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
1658         * sysdeps/unix/sysv/linux/sh/libnsl.abilist: Likewise.
1659         * sysdeps/unix/sysv/linux/sh/libpthread.abilist: Likewise.
1660         * sysdeps/unix/sysv/linux/sh/libresolv.abilist: Likewise.
1661         * sysdeps/unix/sysv/linux/sh/librt.abilist: Likewise.
1662         * sysdeps/unix/sysv/linux/sh/libthread_db.abilist: Likewise.
1663         * sysdeps/unix/sysv/linux/sh/libutil.abilist: Likewise.
1664         * sysdeps/unix/sysv/linux/sparc/sparc32/ld.abilist: Likewise.
1665         * sysdeps/unix/sysv/linux/sparc/sparc32/libBrokenLocale.abilist:
1666         Likewise.
1667         * sysdeps/unix/sysv/linux/sparc/sparc32/libanl.abilist: Likewise.
1668         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
1669         * sysdeps/unix/sysv/linux/sparc/sparc32/libcrypt.abilist: Likewise.
1670         * sysdeps/unix/sysv/linux/sparc/sparc32/libdl.abilist: Likewise.
1671         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
1672         * sysdeps/unix/sysv/linux/sparc/sparc32/libnsl.abilist: Likewise.
1673         * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist: Likewise.
1674         * sysdeps/unix/sysv/linux/sparc/sparc32/libresolv.abilist: Likewise.
1675         * sysdeps/unix/sysv/linux/sparc/sparc32/librt.abilist: Likewise.
1676         * sysdeps/unix/sysv/linux/sparc/sparc32/libthread_db.abilist: Likewise.
1677         * sysdeps/unix/sysv/linux/sparc/sparc32/libutil.abilist: Likewise.
1678         * sysdeps/unix/sysv/linux/sparc/sparc64/ld.abilist: Likewise.
1679         * sysdeps/unix/sysv/linux/sparc/sparc64/libBrokenLocale.abilist:
1680         Likewise.
1681         * sysdeps/unix/sysv/linux/sparc/sparc64/libanl.abilist: Likewise.
1682         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
1683         * sysdeps/unix/sysv/linux/sparc/sparc64/libcrypt.abilist: Likewise.
1684         * sysdeps/unix/sysv/linux/sparc/sparc64/libdl.abilist: Likewise.
1685         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
1686         * sysdeps/unix/sysv/linux/sparc/sparc64/libnsl.abilist: Likewise.
1687         * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist: Likewise.
1688         * sysdeps/unix/sysv/linux/sparc/sparc64/libresolv.abilist: Likewise.
1689         * sysdeps/unix/sysv/linux/sparc/sparc64/librt.abilist: Likewise.
1690         * sysdeps/unix/sysv/linux/sparc/sparc64/libthread_db.abilist: Likewise.
1691         * sysdeps/unix/sysv/linux/sparc/sparc64/libutil.abilist: Likewise.
1692         * sysdeps/unix/sysv/linux/x86_64/64/ld.abilist: Likewise.
1693         * sysdeps/unix/sysv/linux/x86_64/64/libBrokenLocale.abilist: Likewise.
1694         * sysdeps/unix/sysv/linux/x86_64/64/libanl.abilist: Likewise.
1695         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
1696         * sysdeps/unix/sysv/linux/x86_64/64/libcrypt.abilist: Likewise.
1697         * sysdeps/unix/sysv/linux/x86_64/64/libdl.abilist: Likewise.
1698         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
1699         * sysdeps/unix/sysv/linux/x86_64/64/libnsl.abilist: Likewise.
1700         * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: Likewise.
1701         * sysdeps/unix/sysv/linux/x86_64/64/libresolv.abilist: Likewise.
1702         * sysdeps/unix/sysv/linux/x86_64/64/librt.abilist: Likewise.
1703         * sysdeps/unix/sysv/linux/x86_64/64/libthread_db.abilist: Likewise.
1704         * sysdeps/unix/sysv/linux/x86_64/64/libutil.abilist: Likewise.
1705         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: Likewise.
1706         * sysdeps/unix/sysv/linux/x86_64/x32/ld.abilist: Likewise.
1707         * sysdeps/unix/sysv/linux/x86_64/x32/libBrokenLocale.abilist: Likewise.
1708         * sysdeps/unix/sysv/linux/x86_64/x32/libanl.abilist: Likewise.
1709         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
1710         * sysdeps/unix/sysv/linux/x86_64/x32/libcrypt.abilist: Likewise.
1711         * sysdeps/unix/sysv/linux/x86_64/x32/libdl.abilist: Likewise.
1712         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
1713         * sysdeps/unix/sysv/linux/x86_64/x32/libnsl.abilist: Likewise.
1714         * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: Likewise.
1715         * sysdeps/unix/sysv/linux/x86_64/x32/libresolv.abilist: Likewise.
1716         * sysdeps/unix/sysv/linux/x86_64/x32/librt.abilist: Likewise.
1717         * sysdeps/unix/sysv/linux/x86_64/x32/libthread_db.abilist: Likewise.
1718         * sysdeps/unix/sysv/linux/x86_64/x32/libutil.abilist: Likewise.
1719
1720 2018-05-04  Stefan Liebler  <stli@linux.vnet.ibm.com>
1721
1722         [BZ #23137]
1723         * sysdeps/nptl/lowlevellock.h (lll_wait_tid):
1724         Use atomic_load_acquire to load __tid.
1725
1726 2018-05-02  H.J. Lu  <hongjiu.lu@intel.com>
1727
1728         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S (__swapcontext):
1729         Restore the pointer into %rdx, after syscall and use %rdx,
1730         instead of %rsi, to restore context.
1731
1732 2018-05-02  H.J. Lu  <hongjiu.lu@intel.com>
1733
1734         * sysdeps/unix/sysv/linux/x86_64/setcontext.S (__setcontext):
1735         Pop the pointer into %rdx after syscall and use %rdx, instead
1736         of %rsi, to restore context.
1737
1738 2018-05-02  H.J. Lu  <hongjiu.lu@intel.com>
1739
1740         * nptl/pthread_create.c (START_THREAD_DEFN): Clear previous
1741         handlers after setjmp.
1742         * setjmp/longjmp.c (__libc_longjmp): Don't define alias if
1743         defined.
1744         * sysdeps/unix/sysv/linux/x86/setjmpP.h: Include
1745         <libc-pointer-arith.h>.
1746         (_JUMP_BUF_SIGSET_BITS_PER_WORD): New.
1747         (_JUMP_BUF_SIGSET_NSIG): Changed to 96.
1748         (_JUMP_BUF_SIGSET_NWORDS): Changed to use ALIGN_UP and
1749         _JUMP_BUF_SIGSET_BITS_PER_WORD.
1750         * sysdeps/x86/Makefile (sysdep_routines): Add __longjmp_cancel.
1751         * sysdeps/x86/__longjmp_cancel.S: New file.
1752         * sysdeps/x86/longjmp.c: Likewise.
1753         * sysdeps/x86/nptl/pt-longjmp.c: Likewise.
1754
1755 2018-05-02  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1756
1757         * NEWS: Add ustat.h deprecation entry.
1758         * bits/ustat.h: Remove file.
1759         * misc/sys/ustat.h: Likewise.
1760         * misc/ustat.h: Likewise.
1761         * sysdeps/unix/sysv/linux/generic/ustat.c: Likewise.
1762         * misc/Makefile (headers): Remove ustat.h and sys/ustat.h.
1763         * misc/ustat.c (__ustat): Rename to __old_ustat and export only in
1764         compatibility mode.
1765         * sysdeps/unix/sysv/linux/ustat.c (__ustat): Likewise.
1766         * sysdeps/unix/sysv/linux/mips/ustat.c: Define DEV_TO_KDEV and use
1767         generic Linux implementation.
1768
1769 2018-04-30  Tulio Magno Quites Machado Filho  <tuliom@linux.ibm.com>
1770
1771         * math/w_exp_compat.c: Replace hidden_def with libm_hidden_def..
1772         * math/w_expl_compat.c: Likewise.
1773         * math/w_exp_template.c: Likewise.  Remove hidden_def_x.
1774
1775 2018-04-30  Raymond Nicholson <rain1@airmail.cc>
1776
1777         * manual/startup.texi (Aborting a Program): Remove inappropriate joke.
1778
1779 2018-04-27  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1780
1781         * sysdeps/unix/sysv/linux/arm/readahead.c: Remove file.
1782         * sysdeps/unix/sysv/linux/mips/mips32/readahead.c: Likewise.
1783         * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (readahead):
1784         Remove.
1785         * sysdeps/unix/sysv/linux/mips/mips64/n64/syscalls.list: Likewise.
1786         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
1787         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
1788         * sysdeps/unix/sysv/linux/readahead.c (__readahead): Assume
1789         __NR_readahead existence, and use INLINE_SYSCALL_CALL, __ALIGNMENT_ARG,
1790         and SYSCALL_LL64.
1791
1792 2018-04-27  Tulio Magno Quites Machado Filho  <tuliom@linux.ibm.com>
1793
1794         * math/e_exp2_template.c: Replace M_SUF (M_LN2) with M_MLIT (M_LN2).
1795
1796         * math/w_acos_template.c: Replace M_SUF (fabs) with M_FABS.
1797         * math/w_asin_template.c: Likewise.
1798         * math/w_atanh_template.c: Likewise.
1799
1800 2018-04-27  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
1801
1802         * sysdeps/powerpc/preconfigure [machine == powerpc64] (machine): Define
1803         to powerpc/powerpc64/be for big-endian.
1804         [machine == powerpc64le]: Define to powerpc/powerpc64/le for
1805         little-endian.
1806
1807         * sysdeps/powerpc/powerpc64/power4/Implies: Move to powerpc64/be.
1808         * sysdeps/powerpc/powerpc64/power4/fpu/Implies: Likewise.
1809         * sysdeps/powerpc/powerpc64/power4/fpu/multiarch/Implies: Likewise.
1810         * sysdeps/powerpc/powerpc64/power4/multiarch/Implies: Likewise.
1811         * sysdeps/powerpc/powerpc64/power5+/Implies: Likewise.
1812         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Likewise.
1813         * sysdeps/powerpc/powerpc64/power5+/fpu/multiarch/Implies: Likewise.
1814         * sysdeps/powerpc/powerpc64/power5+/multiarch/Implies: Likewise.
1815         * sysdeps/powerpc/powerpc64/power5/Implies: Likewise.
1816         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Likewise.
1817         * sysdeps/powerpc/powerpc64/power5/fpu/multiarch/Implies: Likewise.
1818         * sysdeps/powerpc/powerpc64/power5/multiarch/Implies: Likewise.
1819         * sysdeps/powerpc/powerpc64/power6/Implies: Likewise.
1820         * sysdeps/powerpc/powerpc64/power6/fpu/Implies: Likewise.
1821         * sysdeps/powerpc/powerpc64/power6/fpu/multiarch/Implies: Likewise.
1822         * sysdeps/powerpc/powerpc64/power6/multiarch/Implies: Likewise.
1823         * sysdeps/powerpc/powerpc64/power6x/Implies: Likewise.
1824         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Likewise.
1825         * sysdeps/powerpc/powerpc64/power6x/fpu/multiarch/Implies: Likewise.
1826         * sysdeps/powerpc/powerpc64/power6x/multiarch/Implies: Likewise.
1827         * sysdeps/powerpc/powerpc64/power7/Implies: Likewise.
1828         * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Likewise.
1829         * sysdeps/powerpc/powerpc64/power7/fpu/multiarch/Implies: Likewise.
1830         * sysdeps/powerpc/powerpc64/power7/multiarch/Implies: Likewise.
1831         * sysdeps/powerpc/powerpc64/power8/Implies: Likewise.
1832         * sysdeps/powerpc/powerpc64/power8/fpu/Implies: Likewise.
1833         * sysdeps/powerpc/powerpc64/power8/fpu/multiarch/Implies: Likewise.
1834         * sysdeps/powerpc/powerpc64/power8/multiarch/Implies: Likewise.
1835         * sysdeps/powerpc/powerpc64/power9/Implies: Likewise.
1836         * sysdeps/powerpc/powerpc64/power9/fpu/Implies: Likewise.
1837         * sysdeps/powerpc/powerpc64/power9/fpu/multiarch/Implies: Likewise.
1838         * sysdeps/powerpc/powerpc64/power9/multiarch/Implies: Likewise.
1839
1840         * sysdeps/powerpc/powerpc64/be/power4/Implies: Move from powerpc64 and
1841         adjusted to imply powerpc64 and older processors on powerpc64/be.
1842         * sysdeps/powerpc/powerpc64/be/power4/fpu/Implies: Likewise.
1843         * sysdeps/powerpc/powerpc64/be/power4/fpu/multiarch/Implies: Likewise.
1844         * sysdeps/powerpc/powerpc64/be/power4/multiarch/Implies: Likewise.
1845         * sysdeps/powerpc/powerpc64/be/power5+/Implies: Likewise.
1846         * sysdeps/powerpc/powerpc64/be/power5+/fpu/Implies: Likewise.
1847         * sysdeps/powerpc/powerpc64/be/power5+/fpu/multiarch/Implies: Likewise.
1848         * sysdeps/powerpc/powerpc64/be/power5+/multiarch/Implies: Likewise.
1849         * sysdeps/powerpc/powerpc64/be/power5/Implies: Likewise.
1850         * sysdeps/powerpc/powerpc64/be/power5/fpu/Implies: Likewise.
1851         * sysdeps/powerpc/powerpc64/be/power5/fpu/multiarch/Implies: Likewise.
1852         * sysdeps/powerpc/powerpc64/be/power5/multiarch/Implies: Likewise.
1853         * sysdeps/powerpc/powerpc64/be/power6/Implies: Likewise.
1854         * sysdeps/powerpc/powerpc64/be/power6/fpu/Implies: Likewise.
1855         * sysdeps/powerpc/powerpc64/be/power6/fpu/multiarch/Implies: Likewise.
1856         * sysdeps/powerpc/powerpc64/be/power6/multiarch/Implies: Likewise.
1857         * sysdeps/powerpc/powerpc64/be/power6x/Implies: Likewise.
1858         * sysdeps/powerpc/powerpc64/be/power6x/fpu/Implies: Likewise.
1859         * sysdeps/powerpc/powerpc64/be/power6x/fpu/multiarch/Implies: Likewise.
1860         * sysdeps/powerpc/powerpc64/be/power6x/multiarch/Implies: Likewise.
1861         * sysdeps/powerpc/powerpc64/be/power7/Implies: Likewise.
1862         * sysdeps/powerpc/powerpc64/be/power7/fpu/Implies: Likewise.
1863         * sysdeps/powerpc/powerpc64/be/power7/fpu/multiarch/Implies: Likewise.
1864         * sysdeps/powerpc/powerpc64/be/power7/multiarch/Implies: Likewise.
1865         * sysdeps/powerpc/powerpc64/be/power8/Implies: Likewise.
1866         * sysdeps/powerpc/powerpc64/be/power8/fpu/Implies: Likewise.
1867         * sysdeps/powerpc/powerpc64/be/power8/fpu/multiarch/Implies: Likewise.
1868         * sysdeps/powerpc/powerpc64/be/power8/multiarch/Implies: Likewise.
1869         * sysdeps/powerpc/powerpc64/be/power9/Implies: Likewise.
1870         * sysdeps/powerpc/powerpc64/be/power9/fpu/Implies: Likewise.
1871         * sysdeps/powerpc/powerpc64/be/power9/fpu/multiarch/Implies: Likewise.
1872         * sysdeps/powerpc/powerpc64/be/power9/multiarch/Implies: Likewise.
1873
1874         * sysdeps/powerpc/powerpc64/970/Implies: Move to powerpc64/be.
1875         * sysdeps/powerpc/powerpc64/be/970/Implies: Move from powerpc64/be.
1876         * sysdeps/powerpc/powerpc64/be/a2/Implies: New file.
1877         * sysdeps/powerpc/powerpc64/be/cell/Implies: Likewise.
1878
1879         * sysdeps/powerpc/powerpc64/be/Implies: New file.
1880         * sysdeps/powerpc/powerpc64/be/fpu/Implies: Likewise.
1881         * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Implies: Likewise.
1882         * sysdeps/powerpc/powerpc64/be/multiarch/Implies: Likewise.
1883
1884         * sysdeps/powerpc/powerpc64le/Implies: Move to powerpc64/le.
1885         * sysdeps/powerpc/powerpc64le/Implies-before: Likewise.
1886         * sysdeps/powerpc/powerpc64le/Makefile: Likewise.
1887         * sysdeps/powerpc/powerpc64le/configure: Likewise.
1888         * sysdeps/powerpc/powerpc64le/configure.ac: Likewise.
1889         * sysdeps/powerpc/powerpc64le/fpu/Implies: Likewise.
1890         * sysdeps/powerpc/powerpc64le/fpu/e_sqrtf128.c: Likewise.
1891         * sysdeps/powerpc/powerpc64le/fpu/multiarch/Implies: Likewise.
1892         * sysdeps/powerpc/powerpc64le/fpu/sfp-machine.h: Likewise.
1893         * sysdeps/powerpc/powerpc64le/multiarch/Implies: Likewise.
1894         * sysdeps/powerpc/powerpc64le/power9/fpu/e_sqrtf128.c: Likewise.
1895
1896         * sysdeps/powerpc/powerpc64/le/Implies: Move from powerpc64le.
1897         * sysdeps/powerpc/powerpc64/le/Implies-before: Likewise.
1898         * sysdeps/powerpc/powerpc64/le/Makefile: Likewise.
1899         * sysdeps/powerpc/powerpc64/le/configure: Likewise.
1900         * sysdeps/powerpc/powerpc64/le/configure.ac: Likewise.
1901         * sysdeps/powerpc/powerpc64/le/fpu/Implies: Likewise.
1902         * sysdeps/powerpc/powerpc64/le/fpu/e_sqrtf128.c: Likewise.
1903         * sysdeps/powerpc/powerpc64/le/fpu/multiarch/Implies: Likewise.
1904         * sysdeps/powerpc/powerpc64/le/fpu/sfp-machine.h: Likewise.
1905         * sysdeps/powerpc/powerpc64/le/multiarch/Implies: Likewise.
1906         * sysdeps/powerpc/powerpc64/le/power9/fpu/e_sqrtf128.c: Likewise.
1907
1908         * sysdeps/powerpc/powerpc64le/power7/Implies: Move to powerpc64/le.
1909         * sysdeps/powerpc/powerpc64le/power7/fpu/Implies: Likewise.
1910         * sysdeps/powerpc/powerpc64le/power7/fpu/multiarch/Implies: Likewise.
1911         * sysdeps/powerpc/powerpc64le/power7/multiarch/Implies: Likewise.
1912         * sysdeps/powerpc/powerpc64le/power8/Implies: Likewise.
1913         * sysdeps/powerpc/powerpc64le/power8/fpu/Implies: Likewise.
1914         * sysdeps/powerpc/powerpc64le/power8/fpu/multiarch/Implies: Likewise.
1915         * sysdeps/powerpc/powerpc64le/power8/multiarch/Implies: Likewise.
1916         * sysdeps/powerpc/powerpc64le/power9/Implies: Likewise.
1917         * sysdeps/powerpc/powerpc64le/power9/fpu/Implies: Likewise.
1918         * sysdeps/powerpc/powerpc64le/power9/fpu/multiarch/Implies: Likewise.
1919         * sysdeps/powerpc/powerpc64le/power9/multiarch/Implies: Likewise.
1920
1921         * sysdeps/powerpc/powerpc64/le/power7/Implies: Move from powerpc64le
1922         and adjusted to imply olders processors.
1923         * sysdeps/powerpc/powerpc64/le/power7/fpu/Implies: Likewise.
1924         * sysdeps/powerpc/powerpc64/le/power7/fpu/multiarch/Implies: Likewise.
1925         * sysdeps/powerpc/powerpc64/le/power7/multiarch/Implies: Likewise.
1926         * sysdeps/powerpc/powerpc64/le/power8/Implies: Likewise.
1927         * sysdeps/powerpc/powerpc64/le/power8/fpu/Implies: Likewise.
1928         * sysdeps/powerpc/powerpc64/le/power8/fpu/multiarch/Implies: Likewise.
1929         * sysdeps/powerpc/powerpc64/le/power8/multiarch/Implies: Likewise.
1930         * sysdeps/powerpc/powerpc64/le/power9/Implies: Likewise.
1931         * sysdeps/powerpc/powerpc64/le/power9/fpu/Implies: Likewise.
1932         * sysdeps/powerpc/powerpc64/le/power9/fpu/multiarch/Implies: Likewise.
1933         * sysdeps/powerpc/powerpc64/le/power9/multiarch/Implies: Likewise.
1934
1935         * sysdeps/unix/sysv/linux/powerpc/powerpc64le/Implies: Move to
1936         powerpc64/le.
1937         * sysdeps/unix/sysv/linux/powerpc/powerpc64le/float128-abi.h: Likewise.
1938         * sysdeps/unix/sysv/linux/powerpc/powerpc64le/fpu/Implies: Likewise.
1939
1940         * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/Implies: Move from
1941         powerpc64le.
1942         * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/float128-abi.h: Likewise.
1943         * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/fpu/Implies: Likewise.
1944
1945         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: Move to
1946         powerpc64/be.
1947         * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
1948         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: Likewise.
1949         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/fpu/Implies: Likewise.
1950
1951         * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/970/Implies: Move from
1952         powerpc64 and adjusted.
1953         * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/a2/Implies: Likewise.
1954         * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/cell/Implies: Likewise.
1955         * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/cell/fpu/Implies:
1956         Likewise.
1957
1958 2018-04-27  Joseph Myers  <joseph@codesourcery.com>
1959
1960         * sysdeps/tile: Remove.
1961         * sysdeps/unix/sysv/linux/tile: Likewise.
1962         * README (tilegx-*-linux-gnu): Remove from list of supported
1963         configurations.
1964         * manual/contrib.texi (Contributors): Mention Chris Metcalf's
1965         contribution of support for generic Linux kernel syscall
1966         interface.
1967         * scripts/build-many-glibcs.py (Context.add_all_configs): Remove
1968         tilegx configurations.
1969         (Config.install_linux_headers): Do not handle tile.
1970         * sysdeps/unix/sysv/linux/aarch64/ldsodefs.h: Do not mention Tile
1971         in comment.
1972         * sysdeps/unix/sysv/linux/nios2/Makefile: Likewise.
1973         * sysdeps/unix/sysv/linux/posix_fadvise.c: Likewise.
1974         [__ASSUME_FADVISE64_64_NO_ALIGN] (__ALIGNMENT_ARG): Remove
1975         conditional undefine and redefine.
1976         * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not mention Tile
1977         in comment.
1978         [__ASSUME_FADVISE64_64_NO_ALIGN] (__ALIGNMENT_ARG): Remove
1979         conditional undefine and redefine.
1980
1981 2018-04-26  Aurelien Jarno  <aurelien@aurel32.net>
1982
1983         * signal/tst-sigaction.c: New file to test BZ #23069.
1984         * signal/Makefile (tests): Fix indentation. Add tst-sigaction.
1985
1986 2018-04-26  Tulio Magno Quites Machado Filho  <tuliom@linux.ibm.com>
1987
1988         [BZ #22766]
1989         * include/dlfcn.h [__libc_dl_open]: Replace RTLD_LAZY with RTLD_NOW.
1990         * sysdeps/gnu/unwind-resume.c (__lib_gcc_s_init): Replace
1991         __libc_dlopen_mode() using RTLD_NOW with __libc_dlopen.
1992         * sysdeps/nptl/unwind-forcedunwind.c: Likewise.
1993
1994 2018-04-25  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1995
1996         * sysdeps/unix/sysv/linux/getdirentries.c (getdirentries): Build iff
1997         _DIRENT_MATCHES_DIRENT64 is not defined.
1998         * sysdeps/unix/sysv/linux/getdirentries64.c (getdirentries64): Open
1999         implementation and alias to getdirentries if _DIRENT_MATCHES_DIRENT64
2000         is defined.
2001         * sysdeps/unix/sysv/linux/wordsize-64/getdirentries.c: Remove file.
2002         * sysdeps/unix/sysv/linux/wordsize-64/getdirentries64.c: Remove file.
2003
2004 2018-04-25  Joseph Myers  <joseph@codesourcery.com>
2005
2006         * scripts/build-many-glibcs.py (Context.checkout): Default GCC
2007         version to GCC 8 branch.
2008
2009 2018-04-24  Joseph Myers  <joseph@codesourcery.com>
2010
2011         * sysdeps/mach/hurd/dl-sysdep.c: Include <not-errno.h>.
2012         (check_no_hidden): Use type of original function when declaring
2013         alias.
2014
2015         * sysdeps/unix/sysv/linux/sys/ptrace.h
2016         (PTRACE_SECCOMP_GET_METADATA): New enum value and macro.
2017         * sysdeps/unix/sysv/linux/bits/ptrace-shared.h
2018         (struct __ptrace_seccomp_metadata): New type.
2019         * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h
2020         (PTRACE_SECCOMP_GET_METADATA): Likewise.
2021         * sysdeps/unix/sysv/linux/arm/sys/ptrace.h
2022         (PTRACE_SECCOMP_GET_METADATA): Likewise.
2023         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h
2024         (PTRACE_SECCOMP_GET_METADATA): Likewise.
2025         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h
2026         (PTRACE_SECCOMP_GET_METADATA): Likewise.
2027         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h
2028         (PTRACE_SECCOMP_GET_METADATA): Likewise.
2029         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h
2030         (PTRACE_SECCOMP_GET_METADATA): Likewise.
2031         * sysdeps/unix/sysv/linux/tile/sys/ptrace.h
2032         (PTRACE_SECCOMP_GET_METADATA): Likewise.
2033         * sysdeps/unix/sysv/linux/x86/sys/ptrace.h
2034         (PTRACE_SECCOMP_GET_METADATA): Likewise.
2035
2036 2018-04-23  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2037
2038         * dirent/alphasort.c (alphasort): Build iff _DIRENT_MATCHES_DIRENT64 is
2039         defined.
2040         * dirent/versionsort.c (versionsort): Likewise.
2041         * dirent/alphasort64.c (alphasort64): Build regardless and alias to
2042         alphasort if _DIRENT_MATCHES_DIRENT64 is defined.
2043         * dirent/versionsort64.c (versionsort64): Likewise.
2044         * sysdeps/unix/sysv/linux/i386/alphasort64.c: Remove file.
2045         * sysdeps/unix/sysv/linux/arm/alphasort64.c: Likewise.
2046         * sysdeps/unix/sysv/linux/arm/versionsort64.c: Likewise.
2047         * sysdeps/unix/sysv/linux/m68k/alphasort64.c: Likewise.
2048         * sysdeps/unix/sysv/linux/m68k/versionsort64.c: Likewise.
2049         * sysdeps/unix/sysv/linux/s390/s390-32/alphasort64.c: Likewise.
2050         * sysdeps/unix/sysv/linux/s390/s390-32/versionsort64.c: Likewise.
2051         * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
2052         * sysdeps/unix/sysv/linux/alphasort64.c: New file.
2053         * sysdeps/unix/sysv/linux/versionsort64.c: Likewise.
2054         * sysdeps/unix/sysv/linux/powerpc/powerpc32/alphasort64.c: Likewise.
2055         * sysdeps/unix/sysv/linux/powerpc/powerpc32/versionsort64.c: Likewise.
2056         * sysdeps/unix/sysv/linux/sparc/sparc32/alphasort64.c: Likewise.
2057         * sysdeps/unix/sysv/linux/sparc/sparc32/versionsort64.c: Likewise.
2058
2059 2018-04-23  Joseph Myers  <joseph@codesourcery.com>
2060
2061         * elf/elf.h (NT_PPC_PKEY): New macro.
2062
2063 2018-04-23  Dragan Stanojevic - Nevidljivi <invisible@hidden-city.net>
2064
2065         [BZ #23094]
2066         * localedata/locales/hr_HR: fix thousands_sep and
2067         mon_thousands_sep
2068
2069 2018-04-20  Joseph Myers  <joseph@codesourcery.com>
2070
2071         * sysdeps/unix/sysv/linux/alpha/bits/termios.h [__USE_MISC]
2072         (XTABS): Define to TAB3.
2073
2074 2018-04-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2075
2076         * sysdeps/hppa/fpu/libm-test-ulps: Update.
2077
2078         * dirent/scandir-tail-common.c: New file.
2079         * dirent/scandir-tail.c: Use scandir-tail-common.c.
2080         (__scandir_tail): Build iff _DIRENT_MATCHES_DIRENT64 is not defined.
2081         * dirent/scandir.c: Use scandir-tail-common.c.
2082         * dirent/scandirat.c: Likewise.
2083         * dirent/scandir64-tail.c: Use scandir-tail-common.c.
2084         * dirent/scandir64.c (scandir64): Always build and alias to scandir
2085         if _DIRENT_MATCHES_DIRENT64 is defined.
2086         * dirent/scandirat64.c (scandirat64): Likewise.
2087         * include/dirent.h (__scandir_tail): Only define iff
2088         _DIRENT_MATCHES_DIRENT64 is not defined.
2089         (__scandir64_tail): Define regardless.
2090         (__scandirat, scandirat64): Remove libc_hidden_proto.
2091         * sysdeps/unix/sysv/linux/arm/scandir64.c: Remove file.
2092         * sysdeps/unix/sysv/linux/m68k/scandir64.c: Likewise.
2093         * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Likewise.
2094         * sysdeps/unix/sysv/linux/s390/s390-32/scandir64.c: Likewise.
2095         * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
2096         * sysdeps/unix/sysv/linux/sparc/sparc32/scandir64.c: Likewise.
2097         * sysdeps/unix/sysv/linux/scandir64.c: New file.
2098
2099 2018-04-20  Joseph Myers  <joseph@codesourcery.com>
2100
2101         * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_ASIMDFHM):
2102         New macro.
2103         * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
2104         Increase to 24.
2105         (_dl_aarch64_cap_flags): Add asimdfhm.
2106
2107 2018-04-19  Chung-Lin Tang  <cltang@codesourcery.com>
2108
2109         * sysdeps/nios2/libm-test-ulps: Update.
2110
2111 2018-04-19  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2112
2113         * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c (__getdents64):
2114         Only alias to __getdents for _DIRENT_MATCHES_DIRENT64.
2115
2116         * sysdeps/unix/sysv/linux/alpha/getdents.c: Add comments with alpha
2117         requirements.
2118          (_DIRENT_MATCHES_DIRENT64): Undef
2119         * sysdeps/unix/sysv/linux/alpha/getdents64.c: Likewise.
2120         * sysdeps/unix/sysv/linux/arm/getdents64.c: Remove file.
2121         * sysdeps/unix/sysv/linux/generic/getdents.c: Likewise.
2122         * sysdeps/unix/sysv/linux/generic/getdents64.c: Likewise.
2123         * sysdeps/unix/sysv/linux/generic/wordsize-32/getdents.c: Likewise.
2124         * sysdeps/unix/sysv/linux/getdents.c: Simplify implementation by
2125         use getdents64 syscalls as base.
2126         * sysdeps/unix/sysv/linux/getdents64.c: Likewise and add compatibility
2127         symbol if required.
2128         * sysdeps/unix/sysv/linux/hppa/getdents64.c: Likewise.
2129         * sysdeps/unix/sysv/linux/i386/getdents64.c: Likewise.
2130         * sysdeps/unix/sysv/linux/m68k/getdents64.c: Likewise.
2131         * sysdeps/unix/sysv/linux/powerpc/getdents64.c: Likewise.
2132         * sysdeps/unix/sysv/linux/s390/s390-32/getdents64.c: Likewise.
2133         * sysdeps/unix/sysv/linux/sparc/sparc32/getdents64.c: Likewise.
2134         * sysdeps/unix/sysv/linux/wordsize-64/getdents.c: Likewise.
2135         * sysdeps/unix/sysv/linux/wordsize-64/getdents64.c: Likewise.
2136         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
2137         (__get_clockfreq_via_proc_openprom): Use __getdents64.
2138         * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c: New file.
2139
2140 2018-04-19  Stefan Liebler  <stli@linux.vnet.ibm.com>
2141
2142         * scripts/test_printers_common.py (init_test): Disable lock elision.
2143
2144 2018-04-19  Stefan Liebler  <stli@linux.vnet.ibm.com>
2145
2146         * math/test-tgmath.c (count_double, count_float,
2147         count_ldouble, count_cdouble, count_cfloat,
2148         count_cldouble): Use volatile int.
2149
2150 2018-04-19  Samuel Thibault  <samuel.thibault@ens-lyon.org>
2151
2152         * sysdeps/mach/hurd/i386/Makefile [$(subdir) = conform]
2153         (conformtest-xfail-conds): Add i386-gnu.
2154         * conform/data/fcntl.h-data (flock.l_type, flock.l_whence): XFAIL on
2155         i386-gnu.
2156         * conform/data/sys/ipc.h-data (ipc_perm.uid, ipc_perm.gid,
2157         ipc_perm.cuid, ipc_perm.cgid): Likewise.
2158         * conform/data/sys/msg.h-data (msqid_ds.msg_lspid,
2159         msqid_ds.msg_lrpid): Likewise.
2160         * conform/data/sys/shm.h-data (shmid_ds.shm_lpid, shmid_ds.shm_cpid):
2161         Likewise.
2162         * conform/data/sys/stat.h-data (stat.st_dev): Likewise.
2163         * conform/data/sys/statvfs.h-data (statvfs.f_fsid): Likewise.
2164         * sysdeps/mach/hurd/bits/statvfs.h (struct statvfs): Make f_bsize,
2165         f_namemax, f_frsize, and f_flag fields unsigned long int instead of
2166         unsigned int.
2167         (struct statvfs64): Likewise.
2168         * sysdeps/mach/hurd/bits/statfs.h (struct statfs, struct statfs64):
2169         Likewise.
2170         * bits/in.h [!__USE_MISC]: Do not define struct ip_opts.
2171         * conform/data/netinet/in.h-data: Allow sin_ and sin6_ prefix.
2172         * sysdeps/gnu/bits/msq.h (struct msqid_ds): Use __wait_queue struct
2173         instead of wait_queue.
2174         * sysdeps/gnu/bits/shm.h (struct shmid_ds): Use __vm_area_struct
2175         instead of vm_area_struct.
2176         * bits/sched.h: Include <bits/types/struct_sched_param.h> and move
2177         struct sched_param definition to it.
2178         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
2179         * bits/types/struct_sched_param.h: New file.
2180         * sysdeps/htl/bits/types/struct___pthread_attr.h: Include
2181         <bits/types/struct_sched_param.h> instead of <sched.h>.
2182         * posix/Makefile (headers): Add bits/types/struct_sched_param.h.
2183         * sysdeps/pthread/bits/types/sigevent_t.h: New file, based on the
2184         generic version but include <bits/pthreadtypes.h> to make struct
2185         sigevent's sigev_notify_attributes field a pthread_attr_t*.
2186         * bits/types/siginfo_t.h: Remove siginfo struct name, unused and
2187         non-compliant.
2188         * bits/termios.h [__USE_XOPEN || __USE_XOPEN2K8] (IXANY): Define.
2189         [__USE_XOPEN && !__USE_XOPEN2K] (IUCLC, OLCUC): Define.
2190         [__USE_XOPEN] (OFDEL): New macro.
2191         [__USE_XOPEN && !__USE_XOPEN2K] (XCASE): New macro.
2192         * bits/resource.h (RLIM_SAVED_MAX, RLIM_SAVED_CUR): New macros.
2193         * sysdeps/hurd/include/hurd.h [!_ISOMAC]: Do not declare libc hidden
2194         prototypes.
2195         * sysdeps/hurd/include/hurd/fd.h [!_ISOMAC]: Likewise.
2196         * sysdeps/hurd/include/hurd/signal.h [!_ISOMAC]: Likewise.
2197         * sysdeps/arm/sys/ucontext.h: Remove fpregset struct name, unused and
2198         non-compliant.
2199         * sysdeps/i386/sys/ucontext.h: Likewise.
2200         * sysdeps/m68k/sys/ucontext.h: Likewise.
2201         * sysdeps/mips/sys/ucontext.h: Likewise.
2202         * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h: Likewise.
2203         * sysdeps/mach/hurd/i386/Makefile
2204         (test-xfail-POSIX/fcntl.h/conform): Add.
2205         (test-xfail-POSIX/signal.h/conform): Add.
2206         (test-xfail-POSIX/semaphore.h/conform): Add.
2207         (test-xfail-POSIX/regex.h/conform): Add.
2208         (test-xfail-POSIX/aio.h/conform): Add.
2209         (test-xfail-POSIX/mqueue.h/conform): Add.
2210         (test-xfail-POSIX/sys/types.h/conform): Add.
2211         (test-xfail-UNIX98/fcntl.h/conform): Add.
2212         (test-xfail-UNIX98/netdb.h/conform): Add.
2213         (test-xfail-UNIX98/signal.h/conform): Add.
2214         (test-xfail-UNIX98/semaphore.h/conform): Add.
2215         (test-xfail-UNIX98/regex.h/conform): Add.
2216         (test-xfail-UNIX98/aio.h/conform): Add.
2217         (test-xfail-UNIX98/ftw.h/conform): Add.
2218         (test-xfail-UNIX98/mqueue.h/conform): Add.
2219         (test-xfail-UNIX98/netinet/in.h/conform): Add.
2220         (test-xfail-UNIX98/sys/wait.h/conform): Add.
2221         (test-xfail-UNIX98/sys/sem.h/conform): Add.
2222         (test-xfail-UNIX98/sys/uio.h/conform): Add.
2223         (test-xfail-UNIX98/sys/socket.h/conform): Add.
2224         (test-xfail-UNIX98/sys/types.h/conform): Add.
2225         (test-xfail-UNIX98/stdlib.h/conform): Add.
2226         (test-xfail-UNIX98/arpa/inet.h/conform): Add.
2227         (test-xfail-POSIX2008/fcntl.h/conform): Add.
2228         (test-xfail-POSIX2008/netdb.h/conform): Add.
2229         (test-xfail-POSIX2008/signal.h/conform): Add.
2230         (test-xfail-POSIX2008/semaphore.h/conform): Add.
2231         (test-xfail-POSIX2008/regex.h/conform): Add.
2232         (test-xfail-POSIX2008/aio.h/conform): Add.
2233         (test-xfail-POSIX2008/mqueue.h/conform): Add.
2234         (test-xfail-POSIX2008/netinet/in.h/conform): Add.
2235         (test-xfail-POSIX2008/sys/wait.h/conform): Add.
2236         (test-xfail-POSIX2008/sys/socket.h/conform): Add.
2237         (test-xfail-POSIX2008/sys/types.h/conform): Add.
2238         (test-xfail-POSIX2008/arpa/inet.h/conform): Add.
2239         (test-xfail-XOPEN2K/fcntl.h/conform): Add.
2240         (test-xfail-XOPEN2K/netdb.h/conform): Add.
2241         (test-xfail-XOPEN2K/signal.h/conform): Add.
2242         (test-xfail-XOPEN2K/semaphore.h/conform): Add.
2243         (test-xfail-XOPEN2K/regex.h/conform): Add.
2244         (test-xfail-XOPEN2K/aio.h/conform): Add.
2245         (test-xfail-XOPEN2K/ftw.h/conform): Add.
2246         (test-xfail-XOPEN2K/mqueue.h/conform): Add.
2247         (test-xfail-XOPEN2K/netinet/in.h/conform): Add.
2248         (test-xfail-XOPEN2K/sys/wait.h/conform): Add.
2249         (test-xfail-XOPEN2K/sys/sem.h/conform): Add.
2250         (test-xfail-XOPEN2K/sys/uio.h/conform): Add.
2251         (test-xfail-XOPEN2K/sys/socket.h/conform): Add.
2252         (test-xfail-XOPEN2K/sys/types.h/conform): Add.
2253         (test-xfail-XOPEN2K/stdlib.h/conform): Add.
2254         (test-xfail-XOPEN2K/arpa/inet.h/conform): Add.
2255         (test-xfail-XOPEN2K8/fcntl.h/conform): Add.
2256         (test-xfail-XOPEN2K8/netdb.h/conform): Add.
2257         (test-xfail-XOPEN2K8/signal.h/conform): Add.
2258         (test-xfail-XOPEN2K8/semaphore.h/conform): Add.
2259         (test-xfail-XOPEN2K8/regex.h/conform): Add.
2260         (test-xfail-XOPEN2K8/aio.h/conform): Add.
2261         (test-xfail-XOPEN2K8/ftw.h/conform): Add.
2262         (test-xfail-XOPEN2K8/mqueue.h/conform): Add.
2263         (test-xfail-XOPEN2K8/netinet/in.h/conform): Add.
2264         (test-xfail-XOPEN2K8/sys/wait.h/conform): Add.
2265         (test-xfail-XOPEN2K8/sys/sem.h/conform): Add.
2266         (test-xfail-XOPEN2K8/sys/uio.h/conform): Add.
2267         (test-xfail-XOPEN2K8/sys/socket.h/conform): Add.
2268         (test-xfail-XOPEN2K8/sys/types.h/conform): Add.
2269         (test-xfail-XOPEN2K8/stdlib.h/conform): Add.
2270         (test-xfail-XOPEN2K8/arpa/inet.h/conform): Add.
2271         * conform/data/signal.h-data (SA_SIGINFO, SA_NOCLDWAIT): XFAIL on
2272         i386-gnu.
2273         * conform/data/sys/wait.h-data (WIFCONTINUED, WEXITED, WSTOPPED,
2274         WCONTINUED, WNOWAIT): XFAIL on i386-gnu.
2275
2276 2018-04-18  Joseph Myers  <joseph@codesourcery.com>
2277
2278         * scripts/build-many-glibcs.py (Context.add_all_configs): Use
2279         --enable-obsolete for powerpc-linux-gnuspe.
2280
2281 2018-04-18  Samuel Thibault  <samuel.thibault@ens-lyon.org>
2282
2283         * conform/data/sys/un.h-data: Allow sun_ prefix.
2284         * sysdeps/mach/include/lock-intern.h: Do not declare libc hidden
2285         prototypes.
2286         * sysdeps/mach/include/mach.h: Likewise.
2287         * sysdeps/mach/include/mach/mig_support.h: Likewise.
2288         * sysdeps/mach/include/mach_error.h: Likewise.
2289
2290 2018-04-16  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2291
2292         * sysdeps/arm/armv6t2/memchr.S (memchr): Remove ARM code path.
2293         * sysdeps/arm/armv6t2/strlen.S (memchr): Likewise.
2294         * sysdeps/arm/armv7/multiarch/memchr_neon.S (memchr): Likewise.
2295         * sysdeps/arm/armv7/strcmp.S (strcmp): Likewise.
2296
2297 2018-04-16  Andreas Schwab  <schwab@suse.de>
2298
2299         [BZ #19527]
2300         * iconvdata/gconv-modules (ARMSCII8//, ShiftJISX0213//): New aliases.
2301
2302 2018-04-15  Patrick McGehearty <patrick.mcgehearty@oracle.com>
2303
2304         * sysdeps/ieee754/dbl-64/e_exp.c: faster __ieee754_exp()
2305         * sysdeps/ieee754/dbl-64/eexp.tbl: New file for e_exp.c
2306
2307 2018-04-12  DJ Delorie  <dj@redhat.com>
2308
2309         * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
2310         version to 4.16.
2311
2312 2018-04-12  Stefan Liebler  <stli@linux.vnet.ibm.com>
2313
2314         * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h
2315         (struct kernel_sigaction): Use the same definition on 31bit as is used
2316         on 64bit.
2317
2318 2018-04-09  Florian Weimer  <fweimer@redhat.com>
2319
2320         [BZ #23037]
2321         * resolv/res_send.c (send_dg): Use designated initializers instead
2322         of assignment to zero-initialize other fields of struct mmsghdr.
2323
2324 2018-04-06  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2325
2326         * sysdeps/posix/readdir.c (__READDIR, __GETDENTS, DIRENTY_TYPE,
2327         __READDIR_ALIAS): Undefine after usage.
2328         * sysdeps/posix/readdir_r.c (__READDIR_R, __GETDENTS, DIRENT_TYPE,
2329         __READDIR_R_ALIAS): Likewise.
2330         * sysdeps/unix/sysv/linux/arm/readdir64.c: Remove file.
2331         * sysdeps/unix/sysv/linux/arm/readdir64_r.c: Likewise.
2332         * sysdeps/unix/sysv/linux/m68k/readdir64.c: Likewise.
2333         * sysdeps/unix/sysv/linux/m68k/readdir64_r.c: Likewise.
2334         * sysdeps/unix/sysv/linux/powerpc/readdir64.c: Likewise.
2335         * sysdeps/unix/sysv/linux/powerpc/readdir64_r.c: Likewise.
2336         * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
2337         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
2338         * sysdeps/unix/sysv/linux/s390/s390-32/readdir64.c: Likewise.
2339         * sysdeps/unix/sysv/linux/s390/s390-32/readdir64_r.c: Likewise.
2340         * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64.c: Likewise.
2341         * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64_r.c: Likewise.
2342         * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
2343         * sysdeps/unix/sysv/linux/wordsize-64/readdir64.c: Likewise.
2344         * sysdeps/unix/sysv/linux/wordsize-64/readdir64_r.c: Likewise.
2345         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Likewise.
2346         * sysdeps/unix/sysv/linux/readdir.c: New file.
2347         * sysdeps/unix/sysv/linux/readdir_r.c: Likewise.
2348         * sysdeps/unix/sysv/linux/readdir64.c: Add compat symbol if required.
2349         * sysdeps/unix/sysv/linux/readdir64_r.c: Likewise.
2350
2351         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Update.
2352
2353 2018-04-06  Andreas Schwab  <schwab@linux-m68k.org>
2354
2355         * manual/charset.texi (Converting a Character): Fix typo.
2356
2357 2018-04-05 Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2358
2359         * sysdeps/sparc/fpu/libm-test-ulps: Update.
2360
2361         * sysdeps/arm/libm-test-ulps: Update.
2362
2363         * sysdeps/unix/sysv/linux/aarch64/sigaction.c: Use default Linux version
2364         as base implementation.
2365         * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
2366         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
2367         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
2368         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
2369         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
2370         * sysdeps/unix/sysv/linux/alpha/kernel_sigaction.h: Add include guards,
2371         remove unrequired definitions and update comments.
2372         * sysdeps/unix/sysv/linux/kernel_sigaction.h: Likewise.
2373         * sysdeps/unix/sysv/linux/mips/kernel_sigaction.h: Likewise.
2374         * sysdeps/unix/sysv/linux/ia64/kernel_sigaction.h: New file.
2375         * sysdeps/unix/sysv/linux/m68k/kernel_sigaction.h: Likewise.
2376         * sysdeps/unix/sysv/linux/nios2/kernel_sigaction.h: Likewise.
2377         * sysdeps/unix/sysv/linux/powerpc/kernel_sigaction: Likewise.
2378         * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Likewise.
2379         * sysdeps/unix/sysv/linux/sh/kernel_sigaction.h: Likewise.
2380         * sysdeps/unix/sysv/linux/sparc/kernel_sigaction.h: Likewise.
2381         * sysdeps/unix/sysv/linux/tile/kernel_sigaction.h: Likewise.
2382         * sysdeps/unix/sysv/linux/ia64/sigaction.c: Remove file.
2383         * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
2384         * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c: Likewise.
2385         * sysdeps/unix/sysv/linux/sigaction.c: Add STUB, SET_SA_RESTORER,
2386         and RESET_SA_RESTORER hooks.
2387
2388 2018-04-05  Stefan Liebler  <stli@linux.vnet.ibm.com>
2389
2390         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
2391
2392 2018-04-05  Florian Weimer  <fweimer@redhat.com>
2393
2394         * manual/examples/mbstouwcs.c (mbstouwcs): Fix loop termination,
2395         integer overflow, memory leak on error, and indeterminate errno
2396         value.  Add a null wide character to terminate the result string.
2397         * manual/charset.texi (Converting a Character): Mention embedded
2398         null bytes in the mbrtowc input string.  Explain what happens in
2399         the -2 result case.  Do not claim that mbrtowc is simple or
2400         obvious to use.  Adjust the description of the code example.  Use
2401         @code, not @var, for concrete variables.
2402
2403 2018-04-05  Florian Weimer  <fweimer@redhat.com>
2404
2405         * manual/examples/mbstouwcs.c: New file.
2406         * manual/charset.texi (Converting a Character): Include it.
2407
2408 2018-04-05  Samuel Thibault  <samuel.thibault@ens-lyon.org>
2409
2410         * include/dirent.h (dirfd): Add hidden proto.
2411         * dirent/dirfd.c (dirfd): Add hidden def.
2412         * sysdeps/mach/hurd/dirfd.c (dirfd): Add hidden def.
2413         * sysdeps/posix/dirfd.c (dirfd): Add hidden def.
2414
2415 2018-04-04  Tulio Magno Quites Machado Filho  <tuliom@linux.ibm.com>
2416
2417         * sysdeps/powerpc/fpu/libm-test-ulps: Increase double-precision
2418         sin, cos and sincos to 1 ULP.
2419
2420 2018-04-04  Maciej W. Rozycki  <macro@mips.com>
2421
2422         [BZ #19818]
2423         * sysdeps/generic/ldsodefs.h (SYMBOL_ADDRESS): Handle SHN_ABS
2424         symbols.
2425         * elf/dl-addr.c (determine_info): Ignore SHN_ABS symbols.
2426         * elf/tst-absolute-sym.c: New file.
2427         * elf/tst-absolute-sym-lib.c: New file.
2428         * elf/tst-absolute-sym-lib.lds: New file.
2429         * elf/Makefile (tests): Add `tst-absolute-sym'.
2430         (modules-names): Add `tst-absolute-sym-lib'.
2431         (LDLIBS-tst-absolute-sym-lib.so): New variable.
2432         ($(objpfx)tst-absolute-sym-lib.so): New dependency.
2433         ($(objpfx)tst-absolute-sym): New dependency.
2434
2435         [BZ #19818]
2436         * sysdeps/generic/ldsodefs.h (LOOKUP_VALUE_ADDRESS): Add `set'
2437         parameter.
2438         (SYMBOL_ADDRESS): New macro.
2439         [!ELF_FUNCTION_PTR_IS_SPECIAL] (DL_SYMBOL_ADDRESS): Use
2440         SYMBOL_ADDRESS for symbol address calculation.
2441         * elf/dl-runtime.c (_dl_fixup): Likewise.
2442         (_dl_profile_fixup): Likewise.
2443         * elf/dl-symaddr.c (_dl_symbol_address): Likewise.
2444         * elf/rtld.c (dl_main): Likewise.
2445         * sysdeps/aarch64/dl-machine.h (elf_machine_rela): Likewise.
2446         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Likewise.
2447         * sysdeps/arm/dl-machine.h (elf_machine_rel): Likewise.
2448         (elf_machine_rela): Likewise.
2449         * sysdeps/hppa/dl-machine.h (elf_machine_rela): Likewise.
2450         * sysdeps/hppa/dl-symaddr.c (_dl_symbol_address): Likewise.
2451         * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
2452         (elf_machine_rela): Likewise.
2453         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
2454         * sysdeps/m68k/dl-machine.h (elf_machine_rela): Likewise.
2455         * sysdeps/microblaze/dl-machine.h (elf_machine_rela): Likewise.
2456         * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
2457         Likewise.
2458         (elf_machine_reloc): Likewise.
2459         (elf_machine_got_rel): Likewise.
2460         * sysdeps/mips/dl-trampoline.c (__dl_runtime_resolve): Likewise.
2461         * sysdeps/nios2/dl-machine.h (elf_machine_rela): Likewise.
2462         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
2463         Likewise.
2464         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
2465         Likewise.
2466         * sysdeps/riscv/dl-machine.h (elf_machine_rela): Likewise.
2467         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
2468         Likewise.
2469         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela):
2470         Likewise.
2471         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
2472         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela):
2473         Likewise.
2474         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
2475         Likewise.
2476         * sysdeps/tile/dl-machine.h (elf_machine_rela): Likewise.
2477         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
2478
2479 2018-04-04  Zack Weinberg  <zackw@panix.com>
2480
2481         * sysdeps/generic/internal-signals.h: Include signal.h,
2482         sigsetops.h, and stdbool.h.
2483         (__libc_signal_block_all): Actually block all signals.
2484         (__libc_signal_block_app): Likewise.
2485         (__libc_signal_restore_set): Actually restore the signal mask.
2486
2487 2018-04-04  Florian Weimer  <fweimer@redhat.com>
2488
2489         inet: Actually build and run tst-deadline.
2490         * inet/Makefile (tests-internal): Add tst-deadline and do not
2491         overwrite the variable.
2492         (tests-static-internal): Remove variable.
2493
2494 2018-04-03  H.J. Lu  <hongjiu.lu@intel.com>
2495
2496         [BZ #22947]
2497         * bits/uio-ext.h (RWF_APPEND): New.
2498         * sysdeps/unix/sysv/linux/bits/uio-ext.h (RWF_APPEND): Likewise.
2499         * manual/llio.texi: Document RWF_APPEND.
2500         * misc/tst-preadvwritev2-common.c (RWF_APPEND): New.
2501         (RWF_SUPPORTED): Add RWF_APPEND.
2502
2503 2018-04-03 Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2504
2505         [BZ #22391]
2506         * nptl/sigaction.c (__sigaction): Use __is_internal_signal to
2507         check for internal nptl signals.
2508         * nptl/sigaction.c (__sigaction): Likewise.
2509         * signal/sigaddset.c (sigaddset): Likewise.
2510         * signal/sigdelset.c (sigdelset): Likewise.
2511         * sysdeps/posix/signal.c (__bsd_signal): Likewise.
2512         * sysdeps/posix/sigset.c (sigset): Call and check sigaddset return
2513         value.
2514         * signal/sigfillset.c (sigfillset): User __clear_internal_signals
2515         to filter out internal nptl signals.
2516         * signal/tst-sigset.c (do_test): Check ech signal indidually and
2517         also check realtime signals using standard macros.
2518         * sysdeps/generic/internal-signals.h (__clear_internal_signals,
2519         __is_internal_signal, __libc_signal_block_all,
2520         __libc_signal_block_app, __libc_signal_restore_set): New functions.
2521         * sysdeps/nptl/sigfillset.c: Remove file.
2522         * sysdeps/unix/sysv/linux/internal-signals.h (__is_internal_signal):
2523         Change return to bool.
2524         (__clear_internal_signals): Remove SIGTIMER clean since it is
2525         equal to SIGCANEL on Linux.
2526         * sysdeps/unix/sysv/linux/sigtimedwait.c (__sigtimedwait): Assume
2527         signal set was constructed using standard functions.
2528
2529 2018-04-03  Samuel Thibault  <samuel.thibault@ens-lyon.org>
2530
2531         * sysdeps/mach/hurd/if_index.c (__if_nametoindex): Return ENODEV if
2532         ifname is too long.
2533         * hurd/hurdsig.c (interrupted_reply_port_location): Use
2534         DIAG_IGNORE_NEEDS_COMMENT to silence warning with GCC 6 and before.
2535         * sysdeps/mach/hurd/i386/exc2signal.c (_hurd_exception2signal): Add
2536         hidden def.
2537         * mach/spin-lock.c (__mutex_unlock): Add hidden def.
2538         * signal/sigaddset.c: Include <sigsetopts.h>.
2539         * signal/sigdelset.c: Likewise.
2540
2541 2018-04-03  Wilco Dijkstra  <wdijkstr@arm.com>
2542
2543         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Cleanup ifdefs.
2544         (__cos): Likewise.
2545         * sysdeps/ieee754/dbl-64/s_sin.c (__sincos): Refactor using the same
2546         logic as sin and cos.
2547
2548 2018-04-03  Wilco Dijkstra  <wdijkstr@arm.com>
2549
2550         * sysdeps/ieee754/dbl-64/s_sin.c (do_sin): Use TAYLOR_SIN for small
2551         inputs.  Return correct sign.
2552         (do_sincos): Remove small input check before do_sin, let do_sin set
2553         the sign.
2554         (__sin): Likewise.
2555         (__cos): Likewise.
2556
2557 2018-04-03  Wilco Dijkstra  <wdijkstr@arm.com>
2558
2559         * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SLOW): Remove.
2560         (do_cos_slow): Likewise.
2561         (do_sin_slow): Likewise.
2562         (reduce_and_compute): Likewise.
2563         (slow): Likewise.
2564         (slow1): Likewise.
2565         (slow2): Likewise.
2566         (sloww): Likewise.
2567         (sloww1): Likewise.
2568         (sloww2): Likewise.
2569         (bslow): Likewise.
2570         (bslow1): Likewise.
2571         (bslow2): Likewise.
2572         (cslow2): Likewise.
2573
2574 2018-04-03  Wilco Dijkstra  <wdijkstr@arm.com>
2575
2576         * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SIN): Remove cor parameter.
2577         (do_cos): Remove corp parameter and calculations.
2578         (do_sin): Likewise.
2579         (do_sincos): Remove cor variable.
2580         (__sin): Use do_sincos for huge inputs.
2581         (__cos): Likewise.
2582         * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
2583         (reduce_and_compute_sincos): Remove unused function.
2584
2585 2018-04-03  Wilco Dijkstra  <wdijkstr@arm.com>
2586
2587         * sysdeps/ieee754/dbl-64/s_sin.c (reduce_sincos_1): Rename to
2588         reduce_sincos, improve accuracy to 136 bits.
2589         (do_sincos_1): Rename to do_sincos, remove fallbacks to slow functions.
2590         (__sin): Use improved reduction and simplified do_sincos calculation.
2591         (__cos): Likewise.
2592         * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
2593
2594 2018-04-03  Wilco Dijkstra  <wdijkstr@arm.com>
2595
2596         * sysdeps/ieee754/dbl-64/s_sin.c (reduce_sincos_2): Remove function.
2597         (do_sincos_2): Likewise.
2598         (__sin): Remove middle range reduction case.
2599         (__cos): Likewise.
2600         * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Remove middle range
2601         reduction case.
2602
2603 2018-04-03  Wilco Dijkstra  <wdijkstr@arm.com>
2604
2605         * sysdeps/aarch64/libm-test-ulps: Update ULP for sin, cos, sincos.
2606         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Remove slow paths for small
2607         inputs.
2608         (__cos): Likewise.
2609         * sysdeps/x86_64/fpu/libm-test-ulps: Update ULP for sin, cos, sincos.
2610
2611 2018-04-03  Joseph Myers  <joseph@codesourcery.com>
2612
2613         * scripts/build-many-glibcs.py (Context.checkout): Default Linux
2614         version to 4.16
2615
2616 2018-04-03  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2617
2618         * sysdeps/posix/opendir.c (o_directory_works, tryopen_o_directory):
2619         Remove definitions.
2620         (opendir_oflags): Use O_DIRECTORY regardless.
2621         (__opendir, __opendirat): Remove need_isdir_precheck usage.
2622         * sysdeps/unix/sysv/linux/opendir.c: Remove file.
2623
2624 2018-04-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
2625
2626         * sysdeps/mach/hurd/bits/local_lim.h (_POSIX_THREAD_KEYS_MAX,
2627         _POSIX_THREAD_DESTRUCTOR_ITERATIONS, _POSIX_THREAD_THREADS_MAX): Define
2628         macros.
2629         * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_THREADS,
2630         _POSIX_THREAD_ATTR_STACKSIZE, _POSIX_THREAD_ATTR_STACKADDR,
2631         _POSIX_SEMAPHORES, _POSIX_READER_WRITER_LOCKS, _POSIX_TIMEOUTS,
2632         _POSIX_SPIN_LOCKS, _POSIX_BARRIERS): Define macros to 200809L.
2633         * sysdeps/mach/hurd/net/if_ppp.h: Remove file.
2634         * sysdeps/mach/hurd/Makefile (sysdep_headers): Remove net/if_ppp.h.
2635
2636         * htl/Makefile: Bump licence to LGPL 2.1+.
2637         * htl/alloca_cutoff.c: Likewise.
2638         * htl/cthreads-compat.c: Likewise.
2639         * htl/lockfile.c: Likewise.
2640         * htl/pt-alloc.c: Likewise.
2641         * htl/pt-cancel.c: Likewise.
2642         * htl/pt-cleanup.c: Likewise.
2643         * htl/pt-create.c: Likewise.
2644         * htl/pt-dealloc.c: Likewise.
2645         * htl/pt-detach.c: Likewise.
2646         * htl/pt-exit.c: Likewise.
2647         * htl/pt-getattr.c: Likewise.
2648         * htl/pt-initialize.c: Likewise.
2649         * htl/pt-internal.h: Likewise.
2650         * htl/pt-join.c: Likewise.
2651         * htl/pt-self.c: Likewise.
2652         * htl/pt-setcancelstate.c: Likewise.
2653         * htl/pt-setcanceltype.c: Likewise.
2654         * htl/pt-sigmask.c: Likewise.
2655         * htl/pt-spin-inlines.c: Likewise.
2656         * htl/pt-testcancel.c: Likewise.
2657         * htl/pt-yield.c: Likewise.
2658         * htl/tests/test-1.c: Likewise.
2659         * htl/tests/test-10.c: Likewise.
2660         * htl/tests/test-11.c: Likewise.
2661         * htl/tests/test-12.c: Likewise.
2662         * htl/tests/test-13.c: Likewise.
2663         * htl/tests/test-14.c: Likewise.
2664         * htl/tests/test-15.c: Likewise.
2665         * htl/tests/test-16.c: Likewise.
2666         * htl/tests/test-17.c: Likewise.
2667         * htl/tests/test-2.c: Likewise.
2668         * htl/tests/test-3.c: Likewise.
2669         * htl/tests/test-4.c: Likewise.
2670         * htl/tests/test-5.c: Likewise.
2671         * htl/tests/test-6.c: Likewise.
2672         * htl/tests/test-7.c: Likewise.
2673         * htl/tests/test-8.c: Likewise.
2674         * htl/tests/test-9.c: Likewise.
2675         * htl/tests/test-__pthread_destroy_specific-skip.c: Likewise.
2676         * sysdeps/htl/bits/cancelation.h: Likewise.
2677         * sysdeps/htl/bits/pthread-np.h: Likewise.
2678         * sysdeps/htl/bits/pthread.h: Likewise.
2679         * sysdeps/htl/bits/pthreadtypes.h: Likewise.
2680         * sysdeps/htl/bits/semaphore.h: Likewise.
2681         * sysdeps/htl/bits/types/__pthread_key.h: Likewise.
2682         * sysdeps/htl/bits/types/struct___pthread_attr.h: Likewise.
2683         * sysdeps/htl/bits/types/struct___pthread_barrier.h: Likewise.
2684         * sysdeps/htl/bits/types/struct___pthread_barrierattr.h: Likewise.
2685         * sysdeps/htl/bits/types/struct___pthread_cond.h: Likewise.
2686         * sysdeps/htl/bits/types/struct___pthread_condattr.h: Likewise.
2687         * sysdeps/htl/bits/types/struct___pthread_mutex.h: Likewise.
2688         * sysdeps/htl/bits/types/struct___pthread_mutexattr.h: Likewise.
2689         * sysdeps/htl/bits/types/struct___pthread_once.h: Likewise.
2690         * sysdeps/htl/bits/types/struct___pthread_rwlock.h: Likewise.
2691         * sysdeps/htl/bits/types/struct___pthread_rwlockattr.h: Likewise.
2692         * sysdeps/htl/old_pt-atfork.c: Likewise.
2693         * sysdeps/htl/pt-atfork.c: Likewise.
2694         * sysdeps/htl/pt-attr-destroy.c: Likewise.
2695         * sysdeps/htl/pt-attr-getdetachstate.c: Likewise.
2696         * sysdeps/htl/pt-attr-getguardsize.c: Likewise.
2697         * sysdeps/htl/pt-attr-getinheritsched.c: Likewise.
2698         * sysdeps/htl/pt-attr-getschedparam.c: Likewise.
2699         * sysdeps/htl/pt-attr-getschedpolicy.c: Likewise.
2700         * sysdeps/htl/pt-attr-getscope.c: Likewise.
2701         * sysdeps/htl/pt-attr-getstack.c: Likewise.
2702         * sysdeps/htl/pt-attr-getstackaddr.c: Likewise.
2703         * sysdeps/htl/pt-attr-getstacksize.c: Likewise.
2704         * sysdeps/htl/pt-attr-init.c: Likewise.
2705         * sysdeps/htl/pt-attr-setdetachstate.c: Likewise.
2706         * sysdeps/htl/pt-attr-setguardsize.c: Likewise.
2707         * sysdeps/htl/pt-attr-setinheritsched.c: Likewise.
2708         * sysdeps/htl/pt-attr-setschedparam.c: Likewise.
2709         * sysdeps/htl/pt-attr-setschedpolicy.c: Likewise.
2710         * sysdeps/htl/pt-attr-setscope.c: Likewise.
2711         * sysdeps/htl/pt-attr-setstack.c: Likewise.
2712         * sysdeps/htl/pt-attr-setstackaddr.c: Likewise.
2713         * sysdeps/htl/pt-attr-setstacksize.c: Likewise.
2714         * sysdeps/htl/pt-attr.c: Likewise.
2715         * sysdeps/htl/pt-barrier-destroy.c: Likewise.
2716         * sysdeps/htl/pt-barrier-init.c: Likewise.
2717         * sysdeps/htl/pt-barrier-wait.c: Likewise.
2718         * sysdeps/htl/pt-barrier.c: Likewise.
2719         * sysdeps/htl/pt-barrierattr-destroy.c: Likewise.
2720         * sysdeps/htl/pt-barrierattr-getpshared.c: Likewise.
2721         * sysdeps/htl/pt-barrierattr-init.c: Likewise.
2722         * sysdeps/htl/pt-barrierattr-setpshared.c: Likewise.
2723         * sysdeps/htl/pt-cond-brdcast.c: Likewise.
2724         * sysdeps/htl/pt-cond-destroy.c: Likewise.
2725         * sysdeps/htl/pt-cond-init.c: Likewise.
2726         * sysdeps/htl/pt-cond-signal.c: Likewise.
2727         * sysdeps/htl/pt-cond-timedwait.c: Likewise.
2728         * sysdeps/htl/pt-cond-wait.c: Likewise.
2729         * sysdeps/htl/pt-cond.c: Likewise.
2730         * sysdeps/htl/pt-condattr-destroy.c: Likewise.
2731         * sysdeps/htl/pt-condattr-getclock.c: Likewise.
2732         * sysdeps/htl/pt-condattr-getpshared.c: Likewise.
2733         * sysdeps/htl/pt-condattr-init.c: Likewise.
2734         * sysdeps/htl/pt-condattr-setclock.c: Likewise.
2735         * sysdeps/htl/pt-condattr-setpshared.c: Likewise.
2736         * sysdeps/htl/pt-destroy-specific.c: Likewise.
2737         * sysdeps/htl/pt-equal.c: Likewise.
2738         * sysdeps/htl/pt-getconcurrency.c: Likewise.
2739         * sysdeps/htl/pt-getcpuclockid.c: Likewise.
2740         * sysdeps/htl/pt-getschedparam.c: Likewise.
2741         * sysdeps/htl/pt-getspecific.c: Likewise.
2742         * sysdeps/htl/pt-init-specific.c: Likewise.
2743         * sysdeps/htl/pt-key-create.c: Likewise.
2744         * sysdeps/htl/pt-key-delete.c: Likewise.
2745         * sysdeps/htl/pt-key.h: Likewise.
2746         * sysdeps/htl/pt-mutex-destroy.c: Likewise.
2747         * sysdeps/htl/pt-mutex-getprioceiling.c: Likewise.
2748         * sysdeps/htl/pt-mutex-init.c: Likewise.
2749         * sysdeps/htl/pt-mutex-lock.c: Likewise.
2750         * sysdeps/htl/pt-mutex-setprioceiling.c: Likewise.
2751         * sysdeps/htl/pt-mutex-timedlock.c: Likewise.
2752         * sysdeps/htl/pt-mutex-trylock.c: Likewise.
2753         * sysdeps/htl/pt-mutex-unlock.c: Likewise.
2754         * sysdeps/htl/pt-mutexattr-destroy.c: Likewise.
2755         * sysdeps/htl/pt-mutexattr-getprioceiling.c: Likewise.
2756         * sysdeps/htl/pt-mutexattr-getprotocol.c: Likewise.
2757         * sysdeps/htl/pt-mutexattr-getpshared.c: Likewise.
2758         * sysdeps/htl/pt-mutexattr-gettype.c: Likewise.
2759         * sysdeps/htl/pt-mutexattr-init.c: Likewise.
2760         * sysdeps/htl/pt-mutexattr-setprioceiling.c: Likewise.
2761         * sysdeps/htl/pt-mutexattr-setprotocol.c: Likewise.
2762         * sysdeps/htl/pt-mutexattr-setpshared.c: Likewise.
2763         * sysdeps/htl/pt-mutexattr-settype.c: Likewise.
2764         * sysdeps/htl/pt-mutexattr.c: Likewise.
2765         * sysdeps/htl/pt-once.c: Likewise.
2766         * sysdeps/htl/pt-rwlock-attr.c: Likewise.
2767         * sysdeps/htl/pt-rwlock-destroy.c: Likewise.
2768         * sysdeps/htl/pt-rwlock-init.c: Likewise.
2769         * sysdeps/htl/pt-rwlock-rdlock.c: Likewise.
2770         * sysdeps/htl/pt-rwlock-timedrdlock.c: Likewise.
2771         * sysdeps/htl/pt-rwlock-timedwrlock.c: Likewise.
2772         * sysdeps/htl/pt-rwlock-tryrdlock.c: Likewise.
2773         * sysdeps/htl/pt-rwlock-trywrlock.c: Likewise.
2774         * sysdeps/htl/pt-rwlock-unlock.c: Likewise.
2775         * sysdeps/htl/pt-rwlock-wrlock.c: Likewise.
2776         * sysdeps/htl/pt-rwlockattr-destroy.c: Likewise.
2777         * sysdeps/htl/pt-rwlockattr-getpshared.c: Likewise.
2778         * sysdeps/htl/pt-rwlockattr-init.c: Likewise.
2779         * sysdeps/htl/pt-rwlockattr-setpshared.c: Likewise.
2780         * sysdeps/htl/pt-setconcurrency.c: Likewise.
2781         * sysdeps/htl/pt-setschedparam.c: Likewise.
2782         * sysdeps/htl/pt-setschedprio.c: Likewise.
2783         * sysdeps/htl/pt-setspecific.c: Likewise.
2784         * sysdeps/htl/pt-spin.c: Likewise.
2785         * sysdeps/htl/pt-startup.c: Likewise.
2786         * sysdeps/htl/pthread.h: Likewise.
2787         * sysdeps/htl/sem-close.c: Likewise.
2788         * sysdeps/htl/sem-destroy.c: Likewise.
2789         * sysdeps/htl/sem-getvalue.c: Likewise.
2790         * sysdeps/htl/sem-init.c: Likewise.
2791         * sysdeps/htl/sem-open.c: Likewise.
2792         * sysdeps/htl/sem-post.c: Likewise.
2793         * sysdeps/htl/sem-timedwait.c: Likewise.
2794         * sysdeps/htl/sem-trywait.c: Likewise.
2795         * sysdeps/htl/sem-unlink.c: Likewise.
2796         * sysdeps/htl/sem-wait.c: Likewise.
2797         * sysdeps/hurd/htl/pt-kill.c: Likewise.
2798         * sysdeps/i386/htl/pt-machdep.h: Likewise.
2799         * sysdeps/mach/htl/pt-block.c: Likewise.
2800         * sysdeps/mach/htl/pt-spin.c: Likewise.
2801         * sysdeps/mach/htl/pt-stack-alloc.c: Likewise.
2802         * sysdeps/mach/htl/pt-thread-alloc.c: Likewise.
2803         * sysdeps/mach/htl/pt-thread-start.c: Likewise.
2804         * sysdeps/mach/htl/pt-thread-terminate.c: Likewise.
2805         * sysdeps/mach/htl/pt-timedblock.c: Likewise.
2806         * sysdeps/mach/htl/pt-wakeup.c: Likewise.
2807         * sysdeps/mach/hurd/htl/bits/pthread-np.h: Likewise.
2808         * sysdeps/mach/hurd/htl/bits/types/struct___pthread_mutex.h: Likewise.
2809         * sysdeps/mach/hurd/htl/pt-attr-setstackaddr.c: Likewise.
2810         * sysdeps/mach/hurd/htl/pt-attr-setstacksize.c: Likewise.
2811         * sysdeps/mach/hurd/htl/pt-docancel.c: Likewise.
2812         * sysdeps/mach/hurd/htl/pt-hurd-cond-timedwait.c: Likewise.
2813         * sysdeps/mach/hurd/htl/pt-hurd-cond-wait.c: Likewise.
2814         * sysdeps/mach/hurd/htl/pt-mutex-consistent.c: Likewise.
2815         * sysdeps/mach/hurd/htl/pt-mutex-destroy.c: Likewise.
2816         * sysdeps/mach/hurd/htl/pt-mutex-getprioceiling.c: Likewise.
2817         * sysdeps/mach/hurd/htl/pt-mutex-init.c: Likewise.
2818         * sysdeps/mach/hurd/htl/pt-mutex-lock.c: Likewise.
2819         * sysdeps/mach/hurd/htl/pt-mutex-setprioceiling.c: Likewise.
2820         * sysdeps/mach/hurd/htl/pt-mutex-timedlock.c: Likewise.
2821         * sysdeps/mach/hurd/htl/pt-mutex-transfer-np.c: Likewise.
2822         * sysdeps/mach/hurd/htl/pt-mutex-trylock.c: Likewise.
2823         * sysdeps/mach/hurd/htl/pt-mutex-unlock.c: Likewise.
2824         * sysdeps/mach/hurd/htl/pt-mutex.h: Likewise.
2825         * sysdeps/mach/hurd/htl/pt-mutexattr-destroy.c: Likewise.
2826         * sysdeps/mach/hurd/htl/pt-mutexattr-getprioceiling.c: Likewise.
2827         * sysdeps/mach/hurd/htl/pt-mutexattr-getprotocol.c: Likewise.
2828         * sysdeps/mach/hurd/htl/pt-mutexattr-getpshared.c: Likewise.
2829         * sysdeps/mach/hurd/htl/pt-mutexattr-getrobust.c: Likewise.
2830         * sysdeps/mach/hurd/htl/pt-mutexattr-gettype.c: Likewise.
2831         * sysdeps/mach/hurd/htl/pt-mutexattr-init.c: Likewise.
2832         * sysdeps/mach/hurd/htl/pt-mutexattr-setprioceiling.c: Likewise.
2833         * sysdeps/mach/hurd/htl/pt-mutexattr-setprotocol.c: Likewise.
2834         * sysdeps/mach/hurd/htl/pt-mutexattr-setpshared.c: Likewise.
2835         * sysdeps/mach/hurd/htl/pt-mutexattr-setrobust.c: Likewise.
2836         * sysdeps/mach/hurd/htl/pt-mutexattr-settype.c: Likewise.
2837         * sysdeps/mach/hurd/htl/pt-sigstate-destroy.c: Likewise.
2838         * sysdeps/mach/hurd/htl/pt-sigstate-init.c: Likewise.
2839         * sysdeps/mach/hurd/htl/pt-sigstate.c: Likewise.
2840         * sysdeps/mach/hurd/htl/pt-sysdep.c: Likewise.
2841         * sysdeps/mach/hurd/htl/pt-sysdep.h: Likewise.
2842         * sysdeps/mach/hurd/i386/htl/pt-machdep.c: Likewise.
2843         * sysdeps/mach/hurd/i386/htl/pt-setup.c: Likewise.
2844
2845         * NEWS: Announce that glibc now builds unpatched on GNU/Hurd.
2846         * README: Remove the mention of out-of-tree patches needed for
2847         GNU/Hurd.
2848
2849         * sysdeps/mach/hurd/bits/stat.h [!__USE_MISC && __USE_ATFILE]
2850         (UTIME_NOW, UTIME_OMIT): Define macros.
2851
2852         * htl/cthreads-compat.c (__cthread_detach): Call __pthread_detach
2853         instead of pthread_detach.
2854         (__cthread_fork): Call __pthread_create instead of pthread_create.
2855         (__cthread_keycreate): Call __pthread_key_create instead of
2856         pthread_key_create.
2857         (__cthread_getspecific): Call __pthread_getspecific instead of
2858         pthread_getspecific.
2859         (__cthread_setspecific): Call __pthread_setspecific instead of
2860         pthread_setspecific.
2861         * htl/pt-alloc.c (__pthread_alloc): Call __pthread_mutex_lock and
2862         __pthread_mutex_unlock instead of pthread_mutex_lock and
2863         pthread_mutex_unlock.
2864         * htl/pt-cleanup.c (__pthread_get_cleanup_stack): Rename to
2865         ___pthread_get_cleanup_stack.
2866         (__pthread_get_cleanup_stack): New strong alias.
2867         * htl/pt-create.c: Include <pthreadP.h>.
2868         (entry_point): Call __pthread_exit instead of pthread_exit.
2869         (pthread_create): Rename to __pthread_create.
2870         (pthread_create): New strong alias.
2871         * htl/pt-detach.c (pthread_detach): Rename to __pthread_detach.
2872         (pthread_detach): New strong alias.
2873         (__pthread_detach): Call __pthread_cond_broadcast instead of
2874         pthread_cond_broadcast.
2875         * htl/pt-exit.c: Include <pthreadP.h>.
2876         (__pthread_exit): Call __pthread_setcancelstate and
2877         ___pthread_get_cleanup_stack instead of pthread_setcancelstate and
2878         __pthread_get_cleanup_stack.
2879         * htl/pt-testcancel.c: Include <pthreadP.h>.
2880         (pthread_testcancel): Call __pthread_exit instead of pthread_exit.
2881         * sysdeps/htl/pt-attr-getstack.c: Include <pthreadP.h>
2882         (__pthread_attr_getstack): Call __pthread_attr_getstackaddr and
2883         __pthread_attr_getstacksize instead of pthread_attr_getstackaddr and
2884         pthread_attr_getstacksize.
2885         * sysdeps/htl/pt-attr-getstackaddr.c (pthread_attr_getstackaddr):
2886         Rename to __pthread_attr_getstackaddr.
2887         (pthread_attr_getstackaddr): New strong alias.
2888         * sysdeps/htl/pt-attr-getstacksize.c (pthread_attr_getstacksize):
2889         Rename to __pthread_attr_getstacksize.
2890         (pthread_attr_getstacksize): New strong alias.
2891         * sysdeps/htl/pt-attr-setstack.c: Include <pthreadP.h>.
2892         (pthread_attr_setstack): Rename to __pthread_attr_setstack.
2893         (pthread_attr_setstack): New strong alias.
2894         (__pthread_attr_setstack): Call __pthread_attr_getstacksize,
2895         __pthread_attr_setstacksize and __pthread_attr_setstackaddr instead of
2896         pthread_attr_getstacksize, pthread_attr_setstacksize and
2897         pthread_attr_setstackaddr.
2898         * sysdeps/htl/pt-attr-setstackaddr.c (pthread_attr_setstackaddr):
2899         Rename to __pthread_attr_setstackaddr.
2900         (pthread_attr_setstackaddr): New strong alias.
2901         * sysdeps/htl/pt-attr-setstacksize.c (pthread_attr_setstacksize):
2902         Rename to __pthread_attr_setstacksize.
2903         (pthread_attr_setstacksize): New strong alias.
2904         * sysdeps/htl/pt-cond-timedwait.c: Include <pthreadP.h>.
2905         (__pthread_cond_timedwait_internal): Use __pthread_exit instead of
2906         pthread_exit.
2907         * sysdeps/htl/pt-key-create.c: Include <pthreadP.h>.
2908         (__pthread_key_create): New hidden def.
2909         * sysdeps/htl/pt-key.h: Include <pthreadP.h>.
2910         * sysdeps/htl/pthreadP.h (_pthread_mutex_init,
2911         __pthread_cond_broadcast, __pthread_create, __pthread_detach,
2912         __pthread_exit, __pthread_key_create, __pthread_getspecific,
2913         __pthread_setspecific, __pthread_setcancelstate,
2914         __pthread_attr_getstackaddr, __pthread_attr_setstackaddr,
2915         __pthread_attr_getstacksize, __pthread_attr_setstacksize,
2916         __pthread_attr_setstack, ___pthread_get_cleanup_stack): New
2917         declarations.
2918         (__pthread_key_create, _pthread_mutex_init): New hidden declarations.
2919         * sysdeps/mach/hurd/htl/pt-attr-setstackaddr.c
2920         (pthread_attr_setstackaddr): Rename to __pthread_attr_setstackaddr.
2921         (pthread_attr_setstackaddr): New strong alias.
2922         * sysdeps/mach/hurd/htl/pt-attr-setstacksize.c
2923         (pthread_attr_setstacksize): Rename to __pthread_attr_setstacksize.
2924         (pthread_attr_setstacksize): New strong alias.
2925         * sysdeps/mach/hurd/htl/pt-docancel.c: Include <pthreadP.h>.
2926         (call_exit): Call __pthread_exit instead of pthread_exit.
2927         * sysdeps/mach/hurd/htl/pt-mutex-init.c: Include <pthreadP.h>.
2928         (_pthread_mutex_init): New hidden definition.
2929         * sysdeps/mach/hurd/htl/pt-sysdep.c: Include <pthreadP.h>.
2930         (_init_routine): Call __pthread_attr_init and __pthread_attr_setstack
2931         instead of pthread_attr_init and pthread_attr_setstack.
2932
2933         * hurd/hurdauth.c (_S_msg_add_auth): Call __vm_allocate and
2934         __vm_deallocate instead of vm_allocate and vm_deallocate.
2935         * hurd/hurdmsg.c (_S_msg_set_env_variable): Call __setenv instead of
2936         setenv.
2937         * hurd/hurdprio.c (_hurd_priority_which_map): Call __geteuid instead
2938         of geteuid.
2939         * hurd/path-lookup.c (file_name_path_scan): Call __strdup instead of
2940         strdup.
2941         * hurd/siginfo.c: Include <libioP.h>.
2942         (_hurd_siginfo_handler): Call _IO_puts instead of puts.
2943         * hurd/xattr.c (_hurd_xattr_get, _hurd_xattr_set): Call __munmap instead of
2944         munmap.
2945         * mach/devstream.c: Include <libioP.h>.
2946         (dealloc_ref): Call __mach_port_deallocate instead of
2947         mach_port_deallocate.
2948         (mach_open_devstream): Call _IO_fopencookie instead of fopencookie.
2949         Call __mach_port_deallocate instead of mach_port_deallocate.
2950         * stdlib/canonicalize.c (__realpath): Call __pathconf instead of
2951         pathconf.
2952         * sysdeps/mach/hurd/ifreq.c (__ifreq): Call __munmap instead of
2953         munmap.
2954         * sysdeps/mach/hurd/ifreq.h (__if_freereq): Likewise.
2955         * sysdeps/mach/hurd/ptrace.c (ptrace): Call __kill instead of kill.
2956         * sysdeps/mach/hurd/sendfile64.c (sendfile64): Call __munmap instead
2957         of munmap.
2958         * sysdeps/mach/hurd/socketpair.c (__socketpair): Call __close instead
2959         of close.
2960         * sysdeps/posix/clock_getres.c (realtime_getres): Call __sysconf
2961         instead of sysconf.
2962         * sysdeps/pthread/timer_gettime.c (timer_gettime): Call
2963         __clock_gettime instead of clock_gettime.
2964         * sysdeps/pthread/timer_routines.c (thread_func): Likewise.
2965         * sysdeps/pthread/timer_settime.c (timer_settime): Likewise.
2966         * sysdeps/unix/bsd/gtty.c (gtty): Call __ioctl instead of ioctl.
2967         * sysdeps/unix/bsd/stty.c (stty): Likewise.
2968         * sysdeps/unix/bsd/tcflow.c (tcflow): Call __tcgetattr instead of
2969         tcgetattr.
2970         * sysdeps/unix/clock_nanosleep.c (__clock_nanosleep): Call
2971         __clock_gettime and __nanosleep instead of clock_gettime and
2972         nanosleep.
2973         * hurd/catch-signal.c (hurd_catch_signal): Rename to
2974         __hurd_catch_signal.
2975         (hurd_catch_signal): New strong alias.
2976         (hurd_safe_memset, hurd_safe_copyout, hurd_safe_copyin): Call
2977         __hurd_catch_signal instead of hurd_catch_signal.
2978         * hurd/exc2signal.c (_hurd_exception2signal): Add hidden def.
2979         * hurd/hurdexec.c (_hurd_init): Add hidden def.
2980         * hurd/hurdinit.c (_hurd_init): Add hidden def.
2981         * hurd/hurdsig.c: Include <mach/mig_support.h>.
2982         (_hurd_thread_sigstate): Add hidden def.
2983         (_hurd_internal_post_signal): Use __mutex_unlock instead of
2984         mutex_unlock.
2985         * hurd/intern-fd.c (_hurd_intern_fd): Add hidden def.
2986         * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Add hidden def.
2987         * hurd/path-lookup.c (hurd_file_name_path_lookup): Rename to
2988         __hurd_file_name_path_lookup.
2989         (hurd_file_name_path_lookup): New strong alias.
2990         (file_name_path_lookup): Call __hurd_file_name_path_lookup instead of
2991         hurd_file_name_path_lookup.
2992         * mach/errstring.c (mach_error_type): Add hidden def.
2993         * mach/msg-destroy.c (__mach_msg_destroy): Add hidden def.
2994         * mach/mutex-init.c (__mutex_init): Add hidden def.
2995         * mach/spin-lock.c (__spin_lock_locked, __spin_lock, __spin_unlock,
2996         __spin_try_lock, __mutex_lock, __mutex_trylock): Add hidden defs.
2997         * mach/spin-solid.c (__spin_lock_solid): Add hidden def.
2998         * sysdeps/mach/hurd/getcwd.c
2999         (_hurd_canonicalize_directory_name_internal): Rename to
3000         __hurd_canonicalize_directory_name_internal.
3001         (_hurd_canonicalize_directory_name_internal): New strong alias.
3002         (__canonicalize_directory_name_internal, __getcwd): Call
3003         __hurd_canonicalize_directory_name_internal instead of
3004         _hurd_canonicalize_directory_name_internal.
3005         * sysdeps/mach/hurd/mig-reply.c: Include <mach/mig_support.h>.
3006         (__mig_get_reply_port, __mig_dealloc_reply_port, __mig_init): Add
3007         hidden defs.
3008         * sysdeps/hurd/include/hurd.h: New file.
3009         * sysdeps/hurd/include/hurd/fd.h: New file.
3010         * sysdeps/hurd/include/hurd/signal.h: New file.
3011         * sysdeps/mach/include/lock-intern.h: New file.
3012         * sysdeps/mach/include/mach.h: New file.
3013         * sysdeps/mach/include/mach/mig_support.h: New file.
3014         * sysdeps/mach/include/mach_error.h: New file.
3015         * sysdeps/hurd/include/hurd/signal.h (_hurd_raise_signal): Add hidden
3016         prototype.
3017         * hurd/hurd-raise.c (_hurd_raise_signal): Add hidden def.
3018         * hurd/Makefile ($(inlines:%=$(objpfx)%.c): Define
3019         _HEADER_H_HIDDEN_DEF macro.
3020         * sysdeps/hurd/include/hurd/fd.h (_hurd_fd_error,
3021         _hurd_fd_error_signal): Add hidden prototype.
3022         [_HURD_FD_H_HIDDEN_DEF] (_hurd_fd_error, _hurd_fd_error_signal): Add
3023         hidden def.
3024         * libio/iolibio.h (_IO_puts): New hidden prototype.
3025         * libio/ioputs.c (_IO_puts): New hidden def.
3026         * sysdeps/mach/hurd/localplt.data: New file.
3027
3028 2018-04-02  Agustina Arzille  <avarzille@riseup.net>
3029             Amos Jeffries  <squid3@treenet.co.nz>
3030             David Michael  <fedora.dm0@gmail.com>
3031             Marco Gerards  <marco@gnu.org>
3032             Marcus Brinkmann  <marcus@gnu.org>
3033             Neal H. Walfield  <neal@gnu.org>
3034             Pino Toscano  <toscano.pino@tiscali.it>
3035             Richard Braun  <rbraun@sceen.net>
3036             Roland McGrath  <roland@gnu.org>
3037             Samuel Thibault  <samuel.thibault@ens-lyon.org>
3038             Thomas DiModica  <ricinwich@yahoo.com>
3039             Thomas Schwinge  <tschwinge@gnu.org>
3040
3041         * htl: New directory.
3042         * sysdeps/htl: New directory.
3043         * sysdeps/hurd/htl: New directory.
3044         * sysdeps/i386/htl: New directory.
3045         * sysdeps/mach/htl: New directory.
3046         * sysdeps/mach/hurd/htl: New directory.
3047         * sysdeps/mach/hurd/i386/htl: New directory.
3048         * nscd/Depend, resolv/Depend, rt/Depend: Add htl dependency.
3049         * sysdeps/mach/hurd/i386/Implies: Add mach/hurd/i386/htl imply.
3050         * sysdeps/mach/hurd/i386/libpthread.abilist: New file.
3051
3052 2018-04-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3053
3054         * sysdeps/pthread/timer_routines.c (__timer_thread_start): Block all
3055         signals in thread created for runing timers.
3056
3057 2018-04-01  Florian Weimer  <fweimer@redhat.com>
3058
3059         * support/support_format_addrinfo.c (support_format_addrinfo):
3060         Include unknown error number in formatted result.
3061
3062 2018-03-29  Florian Weimer  <fweimer@redhat.com>
3063
3064         * sysdeps/unix/sysv/linux/i386/tst-bz21269.c (do_test): Also
3065         capture SIGBUS.
3066
3067 2018-03-27  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3068
3069         * sysdeps/unix/sysv/linux/arch-fork.h [__ASSUME_CLONE_BACKWARDS]
3070         (arch_fork): Issue INLINE_CLONE_SYSCALL if defined.
3071         * sysdeps/unix/sysv/linux/sparc/kernel-features.h
3072         (__ASSUME_CLONE_BACKWARDS): Define.
3073
3074 2018-03-27  Jesse Hathaway  <jesse@mbuki-mvuki.org>
3075
3076         [BZ #23024]
3077         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Return
3078         early when linux sentinel value is set.
3079
3080 2018-03-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3081
3082         * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_MEMLOCK): Define.
3083
3084 2018-03-27  Andreas Schwab  <schwab@suse.de>
3085
3086         [BZ #23005]
3087         * resolv/res_send.c (__res_context_send): Return ENOMEM if
3088         allocation of private copy of nsaddr_list fails.
3089
3090 2018-03-26  Joseph Myers  <joseph@codesourcery.com>
3091
3092         [BZ #16552]
3093         * sysdeps/unix/sysv/linux/generic/umount.c: Move to ....
3094         * sysdeps/unix/sysv/linux/umount.c: ... here.
3095         * sysdeps/unix/sysv/linux/arm/umount.c: Remove file.
3096         * sysdeps/unix/sysv/linux/hppa/umount.c: Likewise.
3097         * sysdeps/unix/sysv/linux/ia64/umount.c: Likewise.
3098         * sysdeps/unix/sysv/linux/mips/mips64/umount.c: Likewise.
3099         * sysdeps/unix/sysv/linux/powerpc/powerpc64/umount.c: Likewise.
3100         * sysdeps/unix/sysv/linux/umount.S: Likewise.
3101         * sysdeps/unix/sysv/linux/x86_64/umount.c: Likewise.
3102
3103 2018-03-26  Andreas Schwab  <schwab@suse.de>
3104
3105         * elf/elf.h (R_RISCV_BRANCH, R_RISCV_JAL, R_RISCV_CALL)
3106         (R_RISCV_CALL_PLT, R_RISCV_GOT_HI20, R_RISCV_TLS_GOT_HI20)
3107         (R_RISCV_TLS_GD_HI20, R_RISCV_PCREL_HI20, R_RISCV_PCREL_LO12_I)
3108         (R_RISCV_PCREL_LO12_S, R_RISCV_HI20, R_RISCV_LO12_I)
3109         (R_RISCV_LO12_S, R_RISCV_TPREL_HI20, R_RISCV_TPREL_LO12_I)
3110         (R_RISCV_TPREL_LO12_S, R_RISCV_TPREL_ADD, R_RISCV_ADD8)
3111         (R_RISCV_ADD16, R_RISCV_ADD32, R_RISCV_ADD64, R_RISCV_SUB8)
3112         (R_RISCV_SUB16, R_RISCV_SUB32, R_RISCV_SUB64)
3113         (R_RISCV_GNU_VTINHERIT, R_RISCV_GNU_VTENTRY, R_RISCV_ALIGN)
3114         (R_RISCV_RVC_BRANCH, R_RISCV_RVC_JUMP, R_RISCV_RVC_LUI)
3115         (R_RISCV_GPREL_I, R_RISCV_GPREL_S, R_RISCV_TPREL_I)
3116         (R_RISCV_TPREL_S, R_RISCV_RELAX, R_RISCV_SUB6, R_RISCV_SET6)
3117         (R_RISCV_SET8, R_RISCV_SET16, R_RISCV_SET32, R_RISCV_32_PCREL)
3118         (R_RISCV_NUM): Define.
3119
3120 2018-03-25  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3121
3122         * include/errno.h [IS_IN(rtld) && !RTLD_PRIVATE_ERRNO]: Do not use the
3123         TLS declaration of errno.
3124         * sysdeps/generic/libc-start.h [!SHARED] (ARCH_SETUP_TLS): Define to
3125         __libc_setup_tls.
3126         * sysdeps/unix/sysv/linux/powerpc/libc-start.h [!SHARED]
3127         (ARCH_SETUP_TLS): Likewise.
3128         * sysdeps/mach/hurd/libc-start.h: New file copied from
3129         sysdeps/generic/libc-start.h, but define ARCH_SETUP_TLS to empty.
3130         * csu/libc-start.c [!SHARED] (LIBC_START_MAIN): Call ARCH_SETUP_TLS
3131         instead of __libc_setup_tls.
3132         * sysdeps/mach/hurd/i386/init-first.c [!SHARED] (init1): Call
3133         __libc_setup_tls before initializing libpthread and running _hurd_init
3134         which starts the signal thread.
3135         * sysdeps/generic/ldsodefs.h [SHARED] (__pthread_initialize_minimal):
3136         Declare function.
3137         * sysdeps/mach/hurd/bits/errno.h: Regenerate.
3138
3139 2018-03-24  H.J. Lu  <hongjiu.lu@intel.com>
3140
3141         [BZ #22998]
3142         * elf/Makefile (tests): Add $(tests-execstack-$(have-z-execstack))
3143         after it is defined.
3144
3145 2018-03-23  Andrew Senkevich  <andrew.senkevich@intel.com>
3146             Max Horn  <max@quendi.de>
3147
3148         [BZ #22644]
3149         CVE-2017-18269
3150         * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Fixed
3151         branch conditions.
3152         * string/test-memmove.c (do_test2): New testcase.
3153
3154 2018-03-22  Joseph Myers  <joseph@codesourcery.com>
3155
3156         * sysdeps/generic/frame.h: Remove file.
3157         * sysdeps/arm/frame.h: Likewise.
3158         * sysdeps/hppa/frame.h: Likewise.
3159         * sysdeps/generic/sigcontextinfo.h (SIGCONTEXT_EXTRA_ARGS): Remove
3160         macro.
3161         (GET_FRAME): Likewise.
3162         (GET_STACK): Likewise.
3163         (CALL_SIGHANDLER): Likewise.
3164         * sysdeps/mach/hurd/i386/sigcontextinfo.h (SIGCONTEXT_EXTRA_ARGS):
3165         Likewise.
3166         (GET_FRAME): Likewise.
3167         (GET_STACK): Likewise.
3168         (CALL_SIGHANDLER): Likewise.
3169         * sysdeps/unix/sysv/linux/alpha/sigcontextinfo.h
3170         (SIGCONTEXT_EXTRA_ARGS): Likewise.
3171         (GET_FRAME): Likewise.
3172         (GET_STACK): Likewise.
3173         (CALL_SIGHANDLER): Likewise.
3174         * sysdeps/unix/sysv/linux/arm/sigcontextinfo.h
3175         (SIGCONTEXT_EXTRA_ARGS): Likewise.
3176         (GET_FRAME): Likewise.
3177         (GET_STACK): Likewise.
3178         (ADVANCE_STACK_FRAME): Likewise.
3179         (CALL_SIGHANDLER): Likewise.
3180         * sysdeps/unix/sysv/linux/i386/sigcontextinfo.h
3181         (SIGCONTEXT_EXTRA_ARGS): Likewise.
3182         (GET_FRAME): Likewise.
3183         (GET_STACK): Likewise.
3184         (CALL_SIGHANDLER): Likewise.
3185         * sysdeps/unix/sysv/linux/ia64/sigcontextinfo.h
3186         (SIGCONTEXT_EXTRA_ARGS): Likewise.
3187         (GET_FRAME): Likewise.
3188         (GET_STACK): Likewise.
3189         (CALL_SIGHANDLER): Likewise.
3190         * sysdeps/unix/sysv/linux/m68k/sigcontextinfo.h
3191         (SIGCONTEXT_EXTRA_ARGS): Likewise.
3192         (GET_FRAME): Likewise.
3193         (GET_STACK): Likewise.
3194         (CALL_SIGHANDLER): Likewise.
3195         * sysdeps/unix/sysv/linux/microblaze/sigcontextinfo.h
3196         (SIGCONTEXT_EXTRA_ARGS): Likewise.
3197         (GET_FRAME): Likewise.
3198         (GET_STACK): Likewise.
3199         (CALL_SIGHANDLER): Likewise.
3200         * sysdeps/unix/sysv/linux/mips/sigcontextinfo.h
3201         (SIGCONTEXT_EXTRA_ARGS): Likewise.
3202         (GET_FRAME): Likewise.
3203         (GET_STACK): Likewise.
3204         (CALL_SIGHANDLER): Likewise.
3205         * sysdeps/unix/sysv/linux/powerpc/sigcontextinfo.h
3206         (SIGCONTEXT_EXTRA_ARGS): Likewise.
3207         (GET_FRAME): Likewise.
3208         (GET_STACK): Likewise.
3209         (CALL_SIGHANDLER): Likewise.
3210         * sysdeps/unix/sysv/linux/riscv/sigcontextinfo.h
3211         (SIGCONTEXT_EXTRA_ARGS): Likewise.
3212         (GET_FRAME): Likewise.
3213         (GET_STACK): Likewise.
3214         (CALL_SIGHANDLER): Likewise.
3215         * sysdeps/unix/sysv/linux/s390/sigcontextinfo.h
3216         (SIGCONTEXT_EXTRA_ARGS): Likewise.
3217         (GET_FRAME): Likewise.
3218         (GET_STACK): Likewise.
3219         (CALL_SIGHANDLER): Likewise.
3220         * sysdeps/unix/sysv/linux/sh/sigcontextinfo.h
3221         (SIGCONTEXT_EXTRA_ARGS): Likewise.
3222         (GET_FRAME): Likewise.
3223         (GET_STACK): Likewise.
3224         (CALL_SIGHANDLER): Likewise.
3225         * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h
3226         (SIGCONTEXT_EXTRA_ARGS): Likewise.
3227         (FIRST_FRAME_POINTER): Likewise.
3228         (ADVANCE_STACK_FRAME): Likewise.
3229         (GET_STACK): Likewise.
3230         (GET_FRAME): Likewise.
3231         (CALL_SIGHANDLER): Likewise.
3232         * sysdeps/unix/sysv/linux/sparc/sparc64/sigcontextinfo.h
3233         (SIGCONTEXT_EXTRA_ARGS): Likewise.
3234         (ADVANCE_STACK_FRAME): Likewise.
3235         (GET_STACK): Likewise.
3236         (GET_FRAME): Likewise.
3237         (CALL_SIGHANDLER): Likewise.
3238         * sysdeps/unix/sysv/linux/tile/sigcontextinfo.h
3239         (SIGCONTEXT_EXTRA_ARGS): Likewise.
3240         (GET_FRAME): Likewise.
3241         (GET_STACK): Likewise.
3242         (CALL_SIGHANDLER): Likewise.
3243         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h
3244         (SIGCONTEXT_EXTRA_ARGS): Likewise.
3245         (GET_FRAME): Likewise.
3246         (GET_STACK): Likewise.
3247         (CALL_SIGHANDLER): Likewise.
3248
3249 2018-03-21  Joseph Myers  <joseph@codesourcery.com>
3250
3251         * sysdeps/x86_64/backtrace.c: Move to ....
3252         * debug/backtrace.c: ... here.
3253         * sysdeps/aarch64/backtrace.c: Remove file.
3254         * sysdeps/alpha/backtrace.c: Likewise.
3255         * sysdeps/hppa/backtrace.c: Likewise.
3256         * sysdeps/ia64/backtrace.c: Likewise.
3257         * sysdeps/mips/backtrace.c: Likewise.
3258         * sysdeps/nios2/backtrace.c: Likewise.
3259         * sysdeps/riscv/backtrace.c: Likewise.
3260         * sysdeps/sh/backtrace.c: Likewise.
3261         * sysdeps/tile/backtrace.c: Likewise.
3262
3263 2018-03-20  Joseph Myers  <joseph@codesourcery.com>
3264
3265         [BZ #22987]
3266         * sysdeps/powerpc/bits/mathinline.h (fdim): Remove inline
3267         function.
3268         (fdimf): Likewise.
3269         * sysdeps/sparc/fpu/bits/mathinline.h: Remove file.
3270
3271         [BZ #17343]
3272         * stdlib/random_r.c (__random_r): Use unsigned arithmetic for
3273         possibly overflowing computations.
3274
3275 2018-03-20  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3276
3277         * manual/errno.texi (EOWNERDEAD, ENOTRECOVERABLE): Remove errno
3278         values from Linux-specific section now that it is in the GNU section.
3279         * sysdeps/gnu/errlist.c: Regenerate.
3280
3281 2018-03-20  Joseph Myers  <joseph@codesourcery.com>
3282
3283         * math/Makefile (libm-narrow-fns): Add sub.
3284         (libm-test-funcs-narrow): Likewise.
3285         * math/Versions (GLIBC_2.28): Add narrowing subtract functions.
3286         * math/bits/mathcalls-narrow.h (sub): Use __MATHCALL_NARROW.
3287         * math/gen-auto-libm-tests.c (test_functions): Add sub.
3288         * math/math-narrow.h (CHECK_NARROW_SUB): New macro.
3289         (NARROW_SUB_ROUND_TO_ODD): Likewise.
3290         (NARROW_SUB_TRIVIAL): Likewise.
3291         * sysdeps/ieee754/float128/float128_private.h (__fsubl): New
3292         macro.
3293         (__dsubl): Likewise.
3294         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fsub and
3295         dsub.
3296         (CFLAGS-nldbl-dsub.c): New variable.
3297         (CFLAGS-nldbl-fsub.c): Likewise.
3298         * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
3299         __nldbl_dsubl.
3300         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_dsubl): New
3301         prototype.
3302         * manual/arith.texi (Misc FP Arithmetic): Document fsub, fsubl,
3303         dsubl, fMsubfN, fMsubfNx, fMxsubfN and fMxsubfNx.
3304         * math/auto-libm-test-in: Add tests of sub.
3305         * math/auto-libm-test-out-narrow-sub: New generated file.
3306         * math/libm-test-narrow-sub.inc: New file.
3307         * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
3308         * sysdeps/ieee754/dbl-64/s_f32xsubf64.c: Likewise.
3309         * sysdeps/ieee754/dbl-64/s_fsub.c: Likewise.
3310         * sysdeps/ieee754/float128/s_f32subf128.c: Likewise.
3311         * sysdeps/ieee754/float128/s_f64subf128.c: Likewise.
3312         * sysdeps/ieee754/float128/s_f64xsubf128.c: Likewise.
3313         * sysdeps/ieee754/ldbl-128/s_dsubl.c: Likewise.
3314         * sysdeps/ieee754/ldbl-128/s_f64xsubf128.c: Likewise.
3315         * sysdeps/ieee754/ldbl-128/s_fsubl.c: Likewise.
3316         * sysdeps/ieee754/ldbl-128ibm/s_dsubl.c: Likewise.
3317         * sysdeps/ieee754/ldbl-128ibm/s_fsubl.c: Likewise.
3318         * sysdeps/ieee754/ldbl-96/s_dsubl.c: Likewise.
3319         * sysdeps/ieee754/ldbl-96/s_fsubl.c: Likewise.
3320         * sysdeps/ieee754/ldbl-opt/nldbl-dsub.c: Likewise.
3321         * sysdeps/ieee754/ldbl-opt/nldbl-fsub.c: Likewise.
3322         * sysdeps/ieee754/soft-fp/s_dsubl.c: Likewise.
3323         * sysdeps/ieee754/soft-fp/s_fsub.c: Likewise.
3324         * sysdeps/ieee754/soft-fp/s_fsubl.c: Likewise.
3325         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
3326         * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
3327         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
3328         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
3329         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
3330         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
3331         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
3332         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
3333         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
3334         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
3335         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
3336         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
3337         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
3338         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
3339         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
3340         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
3341         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
3342         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
3343         * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
3344         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
3345         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
3346         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
3347         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
3348         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
3349         * sysdeps/unix/sysv/linux/tile/tilegx32/libm.abilist: Likewise.
3350         * sysdeps/unix/sysv/linux/tile/tilegx64/libm.abilist: Likewise.
3351         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
3352         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
3353
3354 2018-03-19  Joseph Myers  <joseph@codesourcery.com>
3355
3356         [BZ #20079]
3357         * elf/elf.h (SHT_X86_64_UNWIND): New macro.
3358
3359 2018-03-19  Wilco Dijkstra  <wdijkstr@arm.com>
3360
3361         * benchtests/bench-timing.h (attribute_hidden): Undefine.
3362
3363 2018-03-18  Richard Braun  <rbraun@sceen.net>
3364
3365         * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Use a temporary
3366         thread reference.
3367
3368 2018-03-18  Agustina Arzille  <avarzille@riseup.net>
3369
3370         * sysdeps/mach/libc-lock.h (__libc_cleanup_frame): Define structure.
3371         (__libc_cleanup_fct): Define function.
3372         (__libc_cleanup_region_start, __libc_cleanup_region_end,
3373         __libc_cleanup_end): Rewrite implementation using
3374         __attribute__ ((__cleanup__)).
3375         (__libc_cleanup_push, __libc_cleanup_pop): New macros.
3376         * hurd/Makefile (routines): Add hurdlock.
3377         * hurd/Versions (GLIBC_PRIVATE): Added new entry to export the above
3378         interface.
3379         (HURD_CTHREADS_0.3): Remove __libc_getspecific.
3380         * hurd/hurdpid.c: Include <lowlevellock.h>
3381         (_S_msg_proc_newids): Use lll_wait to synchronize.
3382         * hurd/hurdsig.c: (reauth_proc): Use __mutex_lock and __mutex_unlock.
3383         * hurd/setauth.c: Include <hurdlock.h>, use integer for synchronization.
3384         * mach/Makefile (lock-headers): Remove machine-lock.h.
3385         * mach/lock-intern.h: Include <lowlevellock.h> instead of
3386         <machine-lock.h>.
3387         (__spin_lock_t): New type.
3388         (__SPIN_LOCK_INITIALIZER): New macro.
3389         (__spin_lock, __spin_unlock, __spin_try_lock, __spin_lock_locked,
3390         __mutex_init, __mutex_lock_solid, __mutex_unlock_solid, __mutex_lock,
3391         __mutex_unlock, __mutex_trylock): Use lll to implement locks.
3392         * mach/mutex-init.c: Include <lowlevellock.h> instead of <cthreads.h>.
3393         (__mutex_init): Initialize with lll.
3394         * manual/errno.texi (EOWNERDEAD, ENOTRECOVERABLE): New errno values.
3395         * sysdeps/mach/Makefile: Add libmachuser as dependencies for libs
3396         needing lll.
3397         * sysdeps/mach/hurd/bits/errno.h: Regenerate.
3398         * sysdeps/mach/hurd/cthreads.c (__libc_getspecific): Remove function.
3399         * sysdeps/mach/hurd/bits/libc-lock.h: Remove file.
3400         * sysdeps/mach/hurd/setpgid.c: Include <lowlevellock.h>.
3401         (__setpgid): Use lll for synchronization.
3402         * sysdeps/mach/hurd/setsid.c: Likewise with __setsid.
3403         * sysdeps/mach/bits/libc-lock.h: Include <tls.h> and <lowlevellock.h>
3404         instead of <cthreads.h>.
3405         (_IO_lock_inexpensive): New macro
3406         (__libc_lock_recursive_t, __rtld_lock_recursive_t): New structures.
3407         (__libc_lock_self0): New declaration.
3408         (__libc_lock_owner_self): New macro.
3409         (__libc_key_t): Remove type.
3410         (_LIBC_LOCK_INITIALIZER): New macro.
3411         (__libc_lock_define_initialized, __libc_lock_init, __libc_lock_fini,
3412         __libc_lock_fini_recursive, __rtld_lock_fini_recursive,
3413         __libc_lock_lock, __libc_lock_trylock, __libc_lock_unlock,
3414         __libc_lock_define_initialized_recursive,
3415         __rtld_lock_define_initialized_recursive,
3416         __libc_lock_init_recursive, __libc_lock_trylock_recursive,
3417         __libc_lock_lock_recursive, __libc_lock_unlock_recursive,
3418         __rtld_lock_initialize, __rtld_lock_trylock_recursive,
3419         __rtld_lock_lock_recursive, __rtld_lock_unlock_recursive
3420         __libc_once_define, __libc_mutex_unlock): Reimplement with lll.
3421         (__libc_lock_define_recursive, __rtld_lock_define_recursive,
3422         _LIBC_LOCK_RECURSIVE_INITIALIZER, _RTLD_LOCK_RECURSIVE_INITIALIZER):
3423         New macros.
3424         Include <libc-lockP.h> to reimplement libc_key* with pthread_key*.
3425         * hurd/hurdlock.c: New file.
3426         * hurd/hurdlock.h: New file.
3427         * mach/lowlevellock.h: New file
3428
3429 2018-03-18  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3430
3431         * sysdeps/mach/hurd/cthreads.c: Include <cthreads.h>.
3432         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Return ELOOP
3433         when opening a symlink with O_NOFOLLOW.
3434         * hurd/hurdlookup.c (__hurd_file_name_lookup): Do not append '/' to
3435         path when flags contains O_NOFOLLOW.
3436         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Return ENOTDIR
3437         if flags contains O_DIRECTORY and the result is a directory.
3438         * sysdeps/mach/hurd/i386/init-first.c (init): Also find ELF headers by
3439         oneself when the pointer given in D is nul (as set by ext2fs).
3440         * sysdeps/mach/hurd/mlockall.c: New file.
3441         * sysdeps/mach/hurd/munlockall.c: New file.
3442
3443 2018-03-17  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3444
3445         * hurd/hurdsig.c: Include <pthread.h>.
3446         (_hurdsig_init): Call pthread_getattr_np and pthread_attr_getstack to
3447         get the signal thread stack layout.
3448         * hurd/Makefile (headers): Remove threadvar.h.
3449         (inline-headers): Remove threadvar.h.
3450         * hurd/Versions (GLIBC_2.0: Remove __hurd_sigthread_stack_base,
3451         __hurd_sigthread_stack_end, __hurd_sigthread_variables,
3452         __hurd_threadvar_max, __hurd_errno_location.
3453         (HURD_CTHREADS_0.3): Add pthread_getattr_np, pthread_attr_getstack.
3454         * hurd/hurd/signal.h: Do not include <hurd/threadvar.h>.
3455         (_hurd_self_sigstate): Use THREAD_SELF to get _hurd_sigstate.
3456         (_HURD_SIGNAL_H_EXTERN_INLINE): Use THREAD_SELF to get _hurd_sigstate,
3457         unless TLS is not initialized yet, in which case we do not need a
3458         critical section yet anyway.
3459         * hurd/hurd/threadvar.h: Include <tls.h>, do not include
3460         <machine-sp.h>.
3461         (__hurd_sigthread_variables, __hurd_threadvar_max): Remove variables
3462         declarations.
3463         (__hurd_threadvar_index): Remove enum.
3464         (_HURD_THREADVAR_H_EXTERN_INLINE): Remove macro.
3465         (__hurd_threadvar_location_from_sp,__hurd_threadvar_location): Remove
3466         inlines.
3467         (__hurd_reply_port0): New variable declaration.
3468         (__hurd_local_reply_port): New macro.
3469         * hurd/hurdsig.c (__hurd_sigthread_variables): Remove variable.
3470         (interrupted_reply_port_location): Add thread_t parameter.  Use it
3471         with THREAD_TCB to access thread-local variables.
3472         (_hurdsig_abort_rpcs): Pass ss->thread to
3473         interrupted_reply_port_location.
3474         (_hurd_internal_post_signal): Likewise.
3475         (_hurdsig_init): Use presence of cthread_fork instead of
3476         __hurd_threadvar_stack_mask to start signal thread by hand.
3477         Remove signal thread threadvar initialization.
3478         * hurd/hurdstartup.c: Do not include <hurd/threadvar.h>
3479         * hurd/sigunwind.c: Include <hurd/threadvar.h>
3480         (_hurdsig_longjmp_from_handler): Use __hurd_local_reply_port instead
3481         of threadvar.
3482         * sysdeps/mach/hurd/Versions (libc.GLIBC_PRIVATE): Add
3483         __libc_lock_self0.
3484         (ld.GLIBC_2.0): Remove __hurd_sigthread_stack_base,
3485         __hurd_sigthread_stack_end, __hurd_sigthread_variables.
3486         (ld.GLIBC_PRIVATE): Add __libc_lock_self0.
3487         * sysdeps/mach/hurd/cthreads.c: Add __libc_lock_self0.
3488         * sysdeps/mach/hurd/dl-sysdep.c (errno, __hurd_sigthread_stack_base,
3489         __hurd_sigthread_stack_end, __hurd_sigthread_variables, threadvars,
3490         __hurd_threadvar_stack_offset, __hurd_threadvar_stack_mask): Do not
3491         define variables.
3492         * sysdeps/mach/hurd/errno-loc.c: Do not include <errno.h> and
3493         <hurd/threadvar.h>.
3494         [IS_IN(rtld)] (rtld_errno): New variable.
3495         [IS_IN(rtld)] (__errno_location): New weak function.
3496         [!IS_IN(rtld)]: Include "../../../csu/errno-loc.c".
3497         * sysdeps/mach/hurd/errno.c: Remove file.
3498         * sysdeps/mach/hurd/fork.c: Include <hurd/threadvar.h>
3499         (__fork): Remove THREADVAR_SPACE macro and its use.
3500         * sysdeps/mach/hurd/i386/init-first.c (__hurd_threadvar_max): Remove
3501         variable.
3502         (init): Do not initialize threadvar.
3503         * sysdeps/mach/hurd/i386/libc.abilist (__hurd_threadvar_max): Remove
3504         symbol.
3505         * sysdeps/mach/hurd/i386/sigreturn.c (__sigreturn): Use
3506         __hurd_local_reply_port instead of threadvar.
3507         * sysdeps/mach/hurd/i386/tls.h (tcbhead_t): Add reply_port and
3508         _hurd_sigstate fields.
3509         (HURD_DESC_TLS, __LIBC_NO_TLS, THREAD_TCB): New macro.
3510         * sysdeps/mach/hurd/i386/trampoline.c: Remove outdated comment.
3511         * sysdeps/mach/hurd/libc-lock.h: Do not include <hurd/threadvar.h>.
3512         (__libc_lock_owner_self): Use &__libc_lock_self0 and THREAD_SELF
3513         instead of threadvar.
3514         * sysdeps/mach/hurd/libc-tsd.h: Remove file.
3515         * sysdeps/mach/hurd/mig-reply.c (GETPORT, reply_port): Remove macros.
3516         (use_threadvar, global_reply_port): Remove variables.
3517         (__hurd_reply_port0): New variable.
3518         (__mig_get_reply_port): Use __hurd_local_reply_port and
3519         __hurd_reply_port0 instead of threadvar.
3520         (__mig_dealloc_reply_port): Likewise.
3521         (__mig_init): Do not initialize threadvar.
3522         * sysdeps/mach/hurd/profil.c: Fix comment.
3523         * hurd/Versions (HURD_CTHREADS_0.3): Rename weak refs cthread_fork,
3524         cthread_detach, pthread_getattr_np, pthread_attr_getstack,
3525         cthread_keycreate, cthread_getspecific, cthread_setspecific to
3526         __cthread_fork, __cthread_detach, __pthread_getattr_np,
3527         __pthread_attr_getstack, __cthread_keycreate, __cthread_getspecific,
3528         __cthread_setspecific.
3529         * hurd/hurdsig.c (_hurdsig_init): Use __cthread_fork,
3530         __cthread_detach, __pthread_getattr_np, __pthread_attr_getstack,
3531         __cthread_t instead of cthread_fork, cthread_detach,
3532         pthread_getattr_np, pthread_attr_getstack.
3533         * sysdeps/mach/hurd/cthreads.c (cthread_keycreate): Rename to
3534         __cthread_keycreate.
3535         (cthread_getspecific): Rename to __cthread_getspecific.
3536         (cthread_setspecific): Rename to __cthread_setspecific.
3537         (__libc_getspecific): Use __cthread_getspecific instead of
3538         cthread_getspecific.
3539         * sysdeps/mach/hurd/libc-lock.h (__libc_key_create): Use
3540         __cthread_keycreate instead of cthread_keycreate.
3541         (__libc_setspecific): Use __cthread_setspecific instead of
3542         cthread_setspecific.
3543         * sysdeps/mach/libc-lock.h (__libc_key_create, __libc_setspecific):
3544         Likewise.
3545         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Always include
3546         <dl-sysdep.h>.  Test for value of RTLD_PRIVATE_ERRNO instead of
3547         testing whether it is defined.
3548
3549 2018-03-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3550
3551         * sysdeps/generic/thread_state.h (MACHINE_NEW_THREAD_STATE_FLAVOR):
3552         Define macro.
3553         * sysdeps/mach/thread_state.h (MACHINE_THREAD_STATE_FIX_NEW): New macro.
3554         * sysdeps/mach/i386/thread_state.h
3555         (MACHINE_NEW_THREAD_STATE_FLAVOR): New macro, defined to
3556         i386_THREAD_STATE.
3557         (MACHINE_THREAD_STATE_FLAVOR): Define to i386_REGS_SEGS_STATE instead of
3558         i386_THREAD_STATE.
3559         (MACHINE_THREAD_STATE_FIX_NEW): New macro, reads segments.
3560
3561         * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler): Use
3562         i386_REGS_SEGS_STATE instead of i386_THREAD_STATE.
3563
3564         * sysdeps/mach/hurd/i386/tls.h (TCB_ALIGNMENT, HURD_SEL_LDT): New
3565         macros.
3566         (_hurd_tls_fork): Add original thread parameter, Duplicate existing LDT
3567         descriptor instead of creating a new one.
3568         (_hurd_tls_new): New function, creates a new descriptor and updates tcb.
3569
3570         * mach/setup-thread.c: Include <ldsodefs.h>.
3571         (__mach_setup_thread): Call _dl_allocate_tls, pass
3572         MACHINE_NEW_THREAD_STATE_FLAVOR to __thread_set_state instead of
3573         MACHINE_THREAD_STATE_FLAVOR, before getting
3574         MACHINE_THREAD_STATE_FLAVOR, calling _hurd_tls_new, and setting
3575         MACHINE_THREAD_STATE_FLAVOR with the result.
3576         * hurd/hurdfault.c (_hurdsig_fault_init): Call
3577         MACHINE_THREAD_STATE_FIX_NEW.
3578         * sysdeps/mach/hurd/fork.c (__fork): Call _hurd_tls_fork for sigthread
3579         too.  Add original thread parameter.
3580
3581 2018-03-16  Joseph Myers  <joseph@codesourcery.com>
3582
3583         * sysdeps/x86/fpu/bits/mathinline.h [__USE_MISC] (__finite):
3584         Remove inline function.
3585
3586         * sysdeps/i386/fpu/libm-test-ulps: Update.
3587         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
3588
3589 2018-03-16  Wilco Dijkstra  <wdijkstr@arm.com>
3590
3591         * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Revert previous
3592         commit.
3593
3594 2018-03-15  Joseph Myers  <joseph@codesourcery.com>
3595
3596         * sysdeps/x86/fpu/bits/mathinline.h [__FAST_MATH__]
3597         (__sincos_code): Remove define and undefine.
3598         [__FAST_MATH__] (__sincos): Remove inline function.
3599         [__FAST_MATH__] (__sincosf): Remove inline function.
3600         [__FAST_MATH__] (__sincosl): Remove inline function.
3601         (__atan2l): Remove inline functions.
3602         [!__GNUC_PREREQ (3, 4)] (__atan2_code): Remove macro.
3603         [!__GNUC_PREREQ (3, 4) && __FAST_MATH__] (atan2): Remove inline
3604         function.
3605         (floor): Remove inline function.
3606         (ceil): Likewise.
3607         [__FAST_MATH__] (__ldexp_code): Remove macro.
3608         [__FAST_MATH__] (ldexp): Remove inline function.
3609         [__FAST_MATH__ && __USE_ISOC99] (ldexpf): Likewise.
3610         [__FAST_MATH__ && __USE_ISOC99] (ldexpl): Likewise.
3611         [__FAST_MATH__ && __USE_ISOC99] (rint): Likewise.
3612         [__USE_ISOC99] (__lrint_code): Remove macro.
3613         [__USE_ISOC99] (__llrint_code): Likewise.
3614         [__USE_ISOC99] (lrintf): Remove inline function.
3615         [__USE_ISOC99] (lrint): Likewise.
3616         [__USE_ISOC99] (lrintl): Likewise.
3617         [__USE_ISOC99] (llrint): Likewise.
3618         [__USE_ISOC99] (llrintf): Likewise.
3619         [__USE_ISOC99] (llrintl): Likewise.
3620
3621 2018-03-15  Wilco Dijkstra  <wdijkstr@arm.com>
3622
3623         * sysdeps/aarch64/fpu/math_private.h (__ieee754_sqrt): Remove.
3624         (__ieee754_sqrtf): Remove.
3625         * sysdeps/alpha/fpu/math_private.h (__ieee754_sqrt): Remove.
3626         (__ieee754_sqrtf): Remove.
3627         * sysdeps/generic/math-type-macros.h (M_SQRT): Use sqrt.
3628         * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Remove.
3629         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Remove.
3630         (__ieee754_sqrtf): Remove.
3631         * sysdeps/s390/fpu/bits/mathinline.h: Remove file.
3632         * sysdeps/sparc/fpu/bits/mathinline.h (sqrt) Remove.
3633         (sqrtf): Remove.
3634         (sqrtl): Remove.
3635         (__ieee754_sqrt): Remove.
3636         (__ieee754_sqrtf): Remove.
3637         (__ieee754_sqrtl): Remove.
3638         * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Remove.
3639         * sysdeps/x86/fpu/math_private.h (__ieee754_sqrt): Remove.
3640         * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Remove.
3641         (__ieee754_sqrtf): Remove.
3642         (__ieee754_sqrtl): Remove.
3643
3644 2018-03-15  Wilco Dijkstra  <wdijkstr@arm.com>
3645
3646         * sysdeps/ieee754/dbl-64/e_acosh.c (__ieee754_acosh): Use sqrt.
3647         * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Likewise.
3648         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
3649         * sysdeps/ieee754/dbl-64/e_j0.c (__ieee754_j0): Likewise.
3650         * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_j1): Likewise.
3651         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
3652         * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
3653         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c (__ieee754_acosh):
3654         Likewise.
3655         * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Likewise.
3656         * sysdeps/ieee754/flt-32/e_acoshf.c (__ieee754_acoshf): Likewise.
3657         * sysdeps/ieee754/flt-32/e_asinf.c (__ieee754_asinf): Likewise.
3658         * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
3659         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Likewise.
3660         * sysdeps/ieee754/flt-32/e_j0f.c (__ieee754_j0f): Likewise.
3661         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_j1f): Likewise.
3662         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Likewise.
3663         * sysdeps/ieee754/flt-32/s_asinhf.c (__asinhf): Likewise.
3664         * sysdeps/ieee754/ldbl-128/e_acoshl.c (__ieee754_acoshl): Use sqrtl.
3665         * sysdeps/ieee754/ldbl-128/e_acosl.c (__ieee754_acosl): Likewise.
3666         * sysdeps/ieee754/ldbl-128/e_asinl.c (__ieee754_asinl): Likewise.
3667         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive): Likewise.
3668         * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl): Likewise.
3669         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Likewise.
3670         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
3671         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
3672         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
3673         * sysdeps/ieee754/ldbl-128/s_asinhl.c (__ieee754_asinhl): Likewise.
3674         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Likewise.
3675         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Likewise.
3676         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
3677         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive): Likewise.
3678         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Likewise.
3679         * sysdeps/ieee754/ldbl-128ibm/e_j0l.c (__ieee754_j0l): Likewise.
3680         * sysdeps/ieee754/ldbl-128ibm/e_j1l.c (__ieee754_j1l): Likewise
3681         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
3682         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
3683         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__ieee754_asinhl): Likewise.
3684         * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Use sqrtl.
3685         * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
3686         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive): Likewise.
3687         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
3688         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Likewise.
3689         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
3690         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
3691         * sysdeps/ieee754/ldbl-96/s_asinhl.c (__ieee754_asinhl): Likewise.
3692         * sysdeps/m68k/m680x0/fpu/e_pow.c (__ieee754_pow): Likewise.
3693         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Likewise.
3694         * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Likewise.
3695
3696 2018-03-15  Wilco Dijkstra  <wdijkstr@arm.com>
3697
3698         * include/math.h (sqrt): Declare with asm redirect.
3699         (sqrtf): Likewise.
3700         (sqrtl): Likewise.
3701         (sqrtf128): Likewise.
3702         * Makeconfig: Add -fno-math-errno for libc/libm, but build testsuite,
3703         nonlib and libnldbl with -fmath-errno.
3704         * math/w_sqrt_compat.c: Define NO_MATH_REDIRECT.
3705         * math/w_sqrt_template.c: Likewise.
3706         * math/w_sqrtf_compat.c: Likewise.
3707         * math/w_sqrtl_compat.c: Likewise.
3708         * sysdeps/i386/fpu/w_sqrt.c: Likewise.
3709         * sysdeps/i386/fpu/w_sqrt_compat.c: Likewise.
3710         * sysdeps/generic/math-type-macros-float128.h: Remove math.h and
3711         complex.h.
3712
3713 2018-03-15  Wilco Dijkstra  <wdijkstr@arm.com>
3714
3715         * benchtests/Makefile: Define _ISOMAC.
3716         * benchtests/bench-strcoll.c: Add missing sys/stat.h include.
3717         * benchtests/bench-string.h: Define inhibit_loop_to_libcall macro.
3718         * benchtests/bench-strstr.c: Define empty libc_hidden_builtin_def.
3719         * benchtests/bench-strtok.c (oldstrtok): Use rawmemchr.
3720         * benchtests/bench-timing.h: Define attribute_hidden.
3721
3722 2018-03-15  Siddhesh Poyarekar  <siddhesh@sourceware.org>
3723
3724         * sysdeps/aarch64/strncmp.S (strncmp): Use lsr instead of
3725         mov + lsr.
3726
3727 2018-03-15  Rafal Luzynski  <digitalfreak@lingonborough.com>
3728
3729         [BZ #22963]
3730         * localedata/locales/cs_CZ (mon): Rename to...
3731         (alt_mon): This.
3732         (mon): Import from CLDR (genitive case).
3733
3734 2018-03-15  Rafal Luzynski  <digitalfreak@lingonborough.com>
3735
3736         [BZ #22937]
3737         * localedata/locales/el_CY (abmon): Rename to...
3738         (ab_alt_mon): This.
3739         (abmon): Import from CLDR (abbreviated genitive case).
3740         * localedata/locales/el_GR (abmon): Rename to...
3741         (ab_alt_mon): This.
3742         (abmon): Import from CLDR (abbreviated genitive case).
3743
3744 2018-03-15  Rafal Luzynski  <digitalfreak@lingonborough.com>
3745
3746         [BZ #22932]
3747         * localedata/locales/lt_LT (abmon): Synchronize with CLDR.
3748
3749 2018-03-15  Robert Buj  <robert.buj@gmail.com>
3750
3751         [BZ #22848]
3752         * localedata/locales/ca_ES (abmon): Rename to...
3753         (ab_alt_mon): This, then synchronize with CLDR (nominative case).
3754         (mon): Rename to...
3755         (alt_mon): This.
3756         (abmon): Import from CLDR (genitive case, month names preceded by
3757         "de" or "d’").
3758         (mon): Likewise.
3759         (abday): Synchronize with CLDR.
3760         (d_t_fmt): Likewise.
3761         (d_fmt): Likewise.
3762         (am_pm): Likewise.
3763
3764         (LC_TIME): Improve indentation.
3765         (LC_TELEPHONE): Likewise.
3766         (LC_NAME): Likewise.
3767         (LC_ADDRESS): Likewise.
3768
3769 2018-03-14  Joseph Myers  <joseph@codesourcery.com>
3770
3771         * sysdeps/x86/fpu/bits/mathinline.h [!__GNUC_PREREQ (3, 4)]
3772         (lrintf): Remove definitions used only with old GCC.
3773         [!__GNUC_PREREQ (3, 4)] (lrint): Likewise.
3774         [!__GNUC_PREREQ (3, 4)] (llrintf): Likewise.
3775         [!__GNUC_PREREQ (3, 4)] (llrint): Likewise.
3776         [!__GNUC_PREREQ (3, 4)] (fmaxf): Likewise.
3777         [!__GNUC_PREREQ (3, 4)] (fmax): Likewise.
3778         [!__GNUC_PREREQ (3, 4)] (fminf): Likewise.
3779         [!__GNUC_PREREQ (3, 4)] (fmin): Likewise.
3780         [!__GNUC_PREREQ (3, 4)] (rint): Likewise.
3781         [!__GNUC_PREREQ (3, 4)] (rintf): Likewise.
3782         [!__GNUC_PREREQ (3, 4)] (nearbyint): Likewise.
3783         [!__GNUC_PREREQ (3, 4)] (nearbyintf): Likewise.
3784         [!__GNUC_PREREQ (3, 4)] (ceil): Likewise.
3785         [!__GNUC_PREREQ (3, 4)] (ceilf): Likewise.
3786         [!__GNUC_PREREQ (3, 4)] (floor): Likewise.
3787         [!__GNUC_PREREQ (3, 4)] (floorf): Likewise.
3788         [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (tan): Likewise.
3789         [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (fmod): Likewise.
3790         [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (sin): Likewise.
3791         [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (cos): Likewise.
3792         [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log10): Likewise.
3793         [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (asin): Likewise.
3794         [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (acos): Likewise.
3795         [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (atan): Likewise.
3796         [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log1p): Likewise.
3797         [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (logb): Likewise.
3798         [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log2): Likewise.
3799         [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (drem): Likewise.
3800         [__FAST_MATH__] (__M_SQRT2): Remove macro.
3801
3802 2018-03-14  Siddhesh Poyarekar  <siddhesh@sourceware.org>
3803
3804         * sysdeps/aarch64/strncmp.S (strncmp): Use a separate shift
3805         instruction to unbreak builds with binutils 2.26 and older.
3806
3807 2018-03-13  Siddhesh Poyarekar  <siddhesh@sourceware.org>
3808
3809         * sysdeps/aarch64/strncmp.S (count): New macro.
3810         (strncmp): Store misaligned length in SRC1 in COUNT.
3811         (mutual_align): Adjust.
3812         (misaligned8): Load dword at a time when it is safe.
3813
3814 2018-03-12  Zack Weinberg  <zackw@panix.com>
3815
3816         [BZ #1190]
3817         [BZ #19476]
3818         * libio/fileops.c (_IO_new_file_underflow): Return EOF immediately
3819         if the _IO_EOF_SEEN bit is already set; update commentary.
3820         * libio/oldfileops.c (_IO_old_file_underflow): Likewise.
3821         * libio/wfileops.c (_IO_wfile_underflow): Likewise.
3822
3823         * support/support_openpty.c, support/tty.h: New files.
3824         * support/Makefile (libsupport-routines): Add support_openpty.
3825
3826         * libio/tst-fgetc-after-eof.c, wcsmbs/test-fgetwc-after-eof.c:
3827         New test cases.
3828         * libio/Makefile (tests): Add tst-fgetc-after-eof.
3829         * wcsmbs/Makefile (tests): Add tst-fgetwc-after-eof.
3830
3831 2018-03-12  Dmitry V. Levin  <ldv@altlinux.org>
3832
3833         * po/pt_BR.po: Update translations.
3834
3835 2018-03-12  David Michael <fedora.dm0@gmail.com>
3836
3837         * sysdeps/mach/hurd/reboot.c: Include <hurd/paths.h>
3838         (reboot): Lookup _SERVERS_STARTUP instead of calling proc_getmsgport to
3839         get a port to the startup server.
3840
3841 2018-03-11  Zack Weinberg  <zackw@panix.com>
3842
3843         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include math.h
3844         before nldbl-compat.h.
3845
3846 2018-03-10  Zack Weinberg  <zackw@panix.com>
3847
3848         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Don't include
3849         math.h or math_private.h.
3850
3851         * sysdeps/alpha/fpu/s_isnan.c
3852         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c
3853         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c
3854         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c
3855         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c
3856         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c
3857         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c
3858         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c
3859         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c
3860         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c
3861         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot.c
3862         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf.c:
3863         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf.c
3864         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot.c
3865         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c:
3866         Include math_private.h.
3867
3868         * sysdeps/ieee754/ldbl-64-128/s_finitel.c
3869         * sysdeps/ieee754/ldbl-64-128/s_fpclassifyl.c
3870         * sysdeps/ieee754/ldbl-64-128/s_isinfl.c
3871         * sysdeps/ieee754/ldbl-64-128/s_isnanl.c
3872         * sysdeps/ieee754/ldbl-64-128/s_signbitl.c
3873         * sysdeps/powerpc/power7/fpu/s_logb.c:
3874         Include math.h and math_private.h.
3875
3876         * sysdeps/unix/sysv/linux/alpha/clone.S (__clone): Wrap manual
3877         uses of $at in .set noat / .set at.
3878
3879 2018-03-10  H.J. Lu  <hongjiu.lu@intel.com>
3880
3881         * include/setjmp.h (__libc_longjmp): Remove libc_hidden_proto.
3882         * setjmp/longjmp.c (__libc_longjmp): Remove libc_hidden_def.
3883         * sysdeps/s390/longjmp.c (__libc_longjmp): Likewise.
3884         * sysdeps/unix/sysv/linux/sparc/sparc64/longjmp.S (__libc_longjmp):
3885         Likewise.
3886
3887 2018-03-09  Florian Weimer  <fweimer@redhat.com>
3888
3889         * malloc/malloc.c (prev_size, set_prev_size, prev_chunk): Fix typo
3890         in comment.
3891
3892 2018-03-09  Aurelien Jarno  <aurelien@aurel32.net>
3893
3894         [BZ #22919]
3895         * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S (__startcontext):
3896         Add nop before __startcontext, add explaining comments.
3897
3898 2018-03-07  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3899
3900         [BZ #22926]
3901         * sysdeps/powerpc/powerpc32/sysdep.h (ABORT_TRANSACTION_IMPL): Define
3902         empty for __SPE__.
3903         * sysdeps/powerpc/sysdep.h (ABORT_TRANSACTION): Likewise.
3904         * sysdeps/unix/sysv/linux/powerpc/elision-lock.c (__lll_lock_elision):
3905         Do not build hardware transactional code for __SPE__.
3906         * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c
3907         (__lll_trylock_elision): Likewise.
3908         * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c
3909         (__lll_unlock_elision): Likewise.
3910
3911         * sysdeps/nptl/fork.c (ARCH_FORK): Replace by arch_fork.
3912         * sysdeps/unix/sysv/linux/alpha/arch-fork.h: Remove file.
3913         * sysdeps/unix/sysv/linux/riscv/arch-fork.h: Likewise.
3914         * sysdeps/unix/sysv/linux/aarch64/arch-fork.h: Likewise.
3915         * sysdeps/unix/sysv/linux/arm/arch-fork.h: Likewise.
3916         * sysdeps/unix/sysv/linux/hppa/arch-fork.h: Likewise.
3917         * sysdeps/unix/sysv/linux/i386/arch-fork.h: Likewise.
3918         * sysdeps/unix/sysv/linux/ia64/arch-fork.h: Likewise.
3919         * sysdeps/unix/sysv/linux/m68k/arch-fork.h: Likewise.
3920         * sysdeps/unix/sysv/linux/microblaze/arch-fork.h: Likewise.
3921         * sysdeps/unix/sysv/linux/mips/arch-fork.h: Likewise.
3922         * sysdeps/unix/sysv/linux/nios2/arch-fork.h: Likewise.
3923         * sysdeps/unix/sysv/linux/powerpc/arch-fork.h: Likewise.
3924         * sysdeps/unix/sysv/linux/s390/arch-fork.h: Likewise.
3925         * sysdeps/unix/sysv/linux/sh/arch-fork.h: Likewise.
3926         * sysdeps/unix/sysv/linux/sparc/arch-fork.h: Likewise.
3927         * sysdeps/unix/sysv/linux/tile/arch-fork.h: Likewise.
3928         * sysdeps/unix/sysv/linux/x86_64/arch-fork.h: Likewise.
3929         * sysdeps/unix/sysv/linux/arch-fork.h (arch_fork): New function.
3930         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h: New file.
3931         * sysdeps/unix/sysv/linux/riscv/kernel-features.h: Likewise.
3932         * sysdeps/unix/sysv/linux/arm/kernel-features.h
3933         (__ASSUME_CLONE_BACKWARDS): Define.
3934         * sysdeps/unix/sysv/linux/createthread.c (ARCH_CLONE): Define to
3935         __clone2 if __NR_clone2 is defined.
3936         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
3937         (__ASSUME_CLONE_BACKWARDS): Likewise.
3938         * sysdeps/unix/sysv/linux/i386/kernel-features.h
3939         (__ASSUME_CLONE_BACKWARDS): Likewise.
3940         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
3941         (__ASSUME_CLONE2): Likewise.
3942         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
3943         (__ASSUME_CLONE_BACKWARDS3): Likewise.
3944         * sysdeps/unix/sysv/linux/kernel-features.h: Document possible clone
3945         variants and the define architecture can use.
3946         (__ASSUME_CLONE_DEFAULT): Define as default.
3947         * sysdeps/unix/sysv/linux/mips/kernel-features.h
3948         (__ASSUME_CLONE_BACKWARDS): Likewise.
3949         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
3950         (__ASSUME_CLONE_BACKWARDS): Likewise.
3951         * sysdeps/unix/sysv/linux/s390/kernel-features.h
3952         (__ASSUME_CLONE_BACKWARDS2): Likewise.
3953
3954 2018-03-06  Siddhesh Poyarekar  <siddhesh@sourceware.org>
3955
3956         * sysdeps/aarch64/memcmp.S (more16): Fix loop16 branch target.
3957
3958         * sysdeps/aarch64/memcmp.S: Widen comparison to 16 bytes at a
3959         time.
3960
3961         * benchtests/bench-strncmp.c (test_main): Remove 0 length tests.
3962         (do_test_limit): Likewise.
3963
3964         * benchtests/bench-strncmp.c (do_test_limit): Reallocate buffers
3965         for every implementation.
3966         (do_test): Likewise.
3967
3968         * benchtests/bench-strncmp.c: Convert output to json.
3969
3970 2018-03-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3971
3972         * io/futimens.c: Add missing start-of-file descriptive comment.
3973         * io/utime.c: Likewise.
3974         * misc/futimesat.c: Likewise.
3975         * misc/utimes.c: Likewise.
3976         * sysdeps/mach/hurd/futimesat.c: Likewise.
3977         * sysdeps/mach/hurd/utimes.c: Likewise.
3978         * sysdeps/posix/utime.c: Likewise.
3979         * sysdeps/posix/utimes.c: Likewise.
3980         * sysdeps/unix/sysv/linux/futimesat.c: Likewise.
3981         * sysdeps/unix/sysv/linux/generic/futimesat.c: Likewise.
3982         * sysdeps/unix/sysv/linux/generic/utimes.c: Likewise.
3983         * sysdeps/unix/sysv/linux/utimes.c: Likewise.
3984
3985 2018-03-05  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3986
3987         * sysdeps/mach/hurd/utime-helper.c (hurd_futimens): Rename function to
3988         hurd_futimes.
3989         * sysdeps/mach/hurd/utimes.c (__utimes): Update call accordingly.
3990         * sysdeps/mach/hurd/lutimes.c (__lutimes): Likewise.
3991         * sysdeps/mach/hurd/futimens.c: Include "utime-helper.c".
3992         (__futimens): Move implementation to...
3993         * sysdeps/mach/hurd/utime-helper.c (utime_ts_from_tspec,
3994         utime_tvalue_from_tspec): ... new helper functions.
3995         (hurd_futimens): New function.
3996         * sysdeps/mach/hurd/futimesat.c: New file.
3997         * sysdeps/mach/hurd/utimensat.c: New file.
3998
3999 2018-03-05  Flávio Cruz  <flaviocruz@gmail.com>
4000
4001         * sysdeps/mach/hurd/bits/stat.h [__USE_ATFILE] (UTIME_NOW,
4002         UTIME_OMIT): New macros.
4003         * sysdeps/mach/hurd/futimens.c (__futimens): Try to use __file_utimens
4004         before reverting to converting time spec to time value and calling
4005         __file_utimes.
4006         * sysdeps/mach/hurd/utime-helper.c: New file.
4007         * sysdeps/mach/hurd/futimes.c: Include "utime-helper.c".
4008         (__futimes): Try to use utime_ts_from_tval and __file_utimens before
4009         reverting to utime_tvalue_from_tval and __file_utimes.
4010         * sysdeps/mach/hurd/lutimes.c: Include "utime-helper.c".
4011         (__lutimes): Just call hurd_futimens after lookup.
4012         * sysdeps/mach/hurd/utimes.c: Likewise.
4013
4014 2018-03-05  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4015
4016         * bits/sigaction.h: Add include guard.
4017         * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h: Likewise.
4018         * sysdeps/unix/sysv/linux/bits/sigaction.h: Likewise.
4019         * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h: Likewise.
4020         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h: Likewise.
4021         * sysdeps/unix/sysv/linux/mips/bits/sigaction.h: Likewise.
4022         * sysdeps/unix/sysv/linux/s390/bits/sigaction.h: Likewise.
4023         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h: Likewise.
4024         * sysdeps/unix/sysv/linux/tile/bits/sigaction.h: Likewise.
4025         * hurd/hurd/signal.h: Include <bits/sigaction.h>.
4026
4027 2018-03-05  Joseph Myers  <joseph@codesourcery.com>
4028
4029         * iconv/loop.c (UNICODE_TAG_HANDLER): Disable
4030         -Wmaybe-uninitialized for -Os.
4031         * sysdeps/s390/multiarch/8bit-generic.c (BODY): Add comment about
4032         this disabling.
4033
4034 2018-03-03  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4035
4036         * bits/dirent.h (__INO_T_MATCHES_INO64_T): Define regardless whether
4037         __INO_T_MATCHES_INO64_T is defined.
4038         * sysdeps/unix/sysv/linux/bits/dirent.h: Likewise.
4039         * dirent/alphasort.c: Check _DIRENT_MATCHES_DIRENT64 value instead
4040         of definition.
4041         * dirent/alphasort64.c: Likewise.
4042         * dirent/scandir.c: Likewise.
4043         * dirent/scandir64-tail.c: Likewise.
4044         * dirent/scandir64.c: Likewise.
4045         * dirent/scandirat.c: Likewise.
4046         * dirent/scandirat64.c: Likewise.
4047         * dirent/versionsort.c: Likewise.
4048         * dirent/versionsort64.c: Likewise.
4049         * include/dirent.h: Likewise.
4050
4051         * nptl/tst-cancel4-common.h (set_socket_buffer): New function.
4052         * nptl/tst-cancel4-common.c (do_test): Call set_socket_buffer
4053         for socketpair endpoint.
4054         * nptl/tst-cancel4.c (tf_send): Call set_socket_buffer and use
4055         WRITE_BUFFER_SIZE as buffer size for sending socket.
4056         (tf_sendto): Use SOCK_STREAM instead of SOCK_DGRAM and fix an
4057         issue on system where send is implemented with sendto syscall.
4058         * sysdeps/unix/sysv/linux/mips/mips64/Makefile [$(subdir) = socket]
4059         (CFLAGS-recv.c, CFLAGS-send.c): Remove rules.
4060         [$(subdir) = nptl] (CFLAGS-recv.c, CFLAGS-send.c): Likewise.
4061         * sysdeps/unix/sysv/linux/riscv/rv64/Makefile: Remove file.
4062
4063         [BZ #21269]
4064         * sysdeps/unix/sysv/linux/i386/Makefile (tests): Add tst-bz21269.
4065         * sysdeps/unix/sysv/linux/i386/sigaction.c (SET_SA_RESTORER): Clear
4066         sa_restorer for vDSO case.
4067         * sysdeps/unix/sysv/linux/i386/tst-bz21269.c: New file.
4068
4069 2018-03-03  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4070
4071         * scripts/check-installed-headers.sh: Ignore Hurd and Mach headers.
4072         * hurd/hurd/id.h: Include <hurd/hurd_types.h>
4073         * hurd/hurd/ioctl.h: Include <mach/port.h>
4074         * hurd/hurd/lookup.h: Include <hurd/hurd_types.h>
4075         * mach/Makefile ($(objpfx)mach-shortcuts.h): Make it include
4076         <mach/mach_types.h> and <mach/message.h>.
4077         (headers): Move mach/param.h to bits/mach/param.h.
4078         * sysdeps/mach/i386/mach/param.h: Move file to ...
4079         * sysdeps/mach/i386/bits/mach/param.h: ... here.  Update path in #error.
4080         * sysdeps/mach/hurd/bits/param.h: Include <bits/mach/param.h> instead
4081         of <mach/param.h>.
4082         * hurd/hurd/port.h: Do not include <hurd/signal.h>.
4083         * hurd/hurd/userlink.h [!defined __USE_EXTERN_INLINES ||
4084         !defined _LIBC || !IS_IN (libc)]: Do not include <hurd/signal.h>.
4085         * hurd/hurd/fd.h (_hurd_fd_error): Fix struct initializer to be
4086         trivial, for C++ conformity.
4087         * sysdeps/mach/hurd/dl-sysdep.c: Include <mach/machine/vm_param.h>.
4088         * mach/Machrules ($(patsubst %,$(objpfx)%.h,$(user-interfaces)):
4089         Process mig output through $(migheadersed).
4090         * hurd/Makefile (migheadersed): Define variable.
4091         * mach/mach/mig_support.h [defined __USE_GNU]: Do not #error out.
4092         * scripts/check-installed-headers.sh: Do not ignore Hurd and Mach
4093         headers.
4094         * hurd/hurd.h: Include <bits/types/sigset_t.h>
4095         * hurd/hurd/fd.h: Include <sys/select.h> and <bits/types/sigset_t.h>
4096         (_hurd_fd_read, _hurd_fd_write): Use __loff_t instead of loff_t.
4097         * hurd/hurd/signal.h: Include <bits/types/stack_t.h> and
4098         <bits/types/sigset_t.h>.
4099         [!defined __USE_GNU]: Do not #error out.
4100         (struct hurd_sigstate): Use _NSIG instead of NSIG.
4101         * hurd/hurd/sigpreempt.h (__need_size_t): Define.
4102         Include <stddef.h> and <bits/types/sigset_t.h>
4103         (struct hurd_signal_preemptor, hurd_catch_signal): Use __sighandler_t
4104         instead of sighandler_t.
4105         * stdlib/errno.h (error_t): Move definition to...
4106         * bits/types/error_t.h: ... new header.
4107         * stdlib/Makefile (headers): Add bits/types/error_t.h.
4108         * sysdeps/mach/hurd/bits/errno.h (error_t): Move definition to...
4109         * sysdeps/mach/hurd/bits/types/error_t.h: ... new header.
4110         * sysdeps/mach/hurd/errnos.awk (error_t): Likewise.
4111         * hurd/hurd.h: Include <bits/types/error_t.h>
4112         * hurd/hurd/fd.h: Include <bits/types/error_t.h>
4113         * hurd/hurd/id.h: Include <errno.h> and <bits/types/error_t.h>
4114         * hurd/hurd/lookup.h: Include <errno.h> and <bits/types/error_t.h>
4115         * hurd/hurd/resource.h: Include <bits/types/error_t.h>
4116         * hurd/hurd/signal.h: Include <bits/types/error_t.h>
4117         * hurd/hurd/sigpreempt.h: Include <bits/types/error_t.h>
4118         * sysdeps/mach/hurd/futimens.c: New file.
4119
4120 2018-03-03  Andreas Schwab  <schwab@linux-m68k.org>
4121
4122         [BZ #22918]
4123         * nss/nsswitch.h (DEFINE_DATABASE): Don't define __nss_*_database.
4124         * nss/nsswitch.c (DEFINE_DATABASE): Define __nss_*_database here.
4125         * nscd/gai.c (__nss_hosts_database): Readd definition.
4126         * posix/tst-rfc3484.c (__nss_hosts_database): Likewise.
4127         * posix/tst-rfc3484-3.c (__nss_hosts_database): Likewise.
4128         * posix/tst-rfc3484-2.c (__nss_hosts_database): Likewise.
4129
4130 2018-03-02  Joseph Myers  <joseph@codesourcery.com>
4131
4132         * sysdeps/powerpc/ifunc-sel.h (ifunc_sel): Make always_inline.
4133         (ifunc_one): Likewise.
4134
4135 2018-03-01  DJ Delorie  <dj@delorie.com>
4136
4137         [BZ #22342]
4138         * nscd/netgroupcache.c (addinnetgrX): Include trailing NUL in
4139         key value.
4140
4141 2018-03-01  Maciej W. Rozycki  <macro@mips.com>
4142
4143         * nptl_db/td_ta_thr_iter.c (iterate_thread_list): Remove
4144         `match_pid' parameter.
4145         (td_ta_thr_iter): Update accordingly.
4146
4147 2018-03-01  Florian Weimer  <fweimer@redhat.com>
4148
4149         * nptl/Makefile (install-lib-ldscripts): Remove.
4150         (install): Remove rule.
4151         ($(inst_libdir)/libpthread.so): Likewise.
4152
4153 2018-03-01  Mike FABIAN  <mfabian@redhat.com>
4154
4155         [BZ #22896]
4156         * localedata/locales/an_ES: update month and day names,
4157         improve d_fmt, improve postal_fmt, add country_post,
4158         add country_isbn
4159
4160 2018-03-01  Mike FABIAN  <mfabian@redhat.com>
4161
4162         * localedata/locales/bg_BG (LC_COLLATE): The comment mentioned
4163         Ukrainian instead of Bulgarian.
4164
4165 2018-03-01  Florian Weimer  <fweimer@redhat.com>
4166
4167         * nptl/Makefile (libpthread.so): Drop libpthread_nonshared.a
4168         reference.
4169
4170 2018-03-01  Florian Weimer  <fweimer@redhat.com>
4171
4172         Move pthread_atfork to libc.  Remove libpthread_nonshared.a.
4173         * nptl/Makefile (routines): Add pthread_atfork.
4174         (static-only-routines): Set to pthread_atfork.
4175         (libpthread-routines): Remove pthread_atfork.
4176         (libpthread-static-only-routines): Remove.
4177         (install): Update comment.
4178         (libpthread.so): Do not install libpthread_nonshared.a.
4179         (tests): Do not link with libpthread_nonshared.a.
4180         (generated): Remove libpthread_nonshared.a.
4181         * nptl/pthread_atfork.c (pthread_atfork): Turn into weak alias.
4182         * sysdeps/nptl/Makeconfig (shared-thread-library): Do not link
4183         with libpthread_nonshared.a.
4184
4185 2018-02-28  Joseph Myers  <joseph@codesourcery.com>
4186
4187         [BZ #22902]
4188         * sysdeps/i386/fpu/fenv_private.h [!__x86_64__]
4189         (libc_feholdexcept_setroundf128): New macro.
4190         [!__x86_64__] (libc_feupdateenv_testf128): Likewise.
4191
4192         [BZ #15105]
4193         * sysdeps/wordsize-32/strtoumax.c (strtoumax): Use
4194         libc_hidden_def.
4195         * sysdeps/wordsize-64/strtoumax.c (strtoumax): Likewise.
4196         * include/inttypes.h: New file.
4197
4198 2018-02-27  Joseph Myers  <joseph@codesourcery.com>
4199
4200         * locale/weightwc.h (findidx): Ignore -Wmaybe-uninitialized for
4201         -Os in two more places.
4202
4203 2018-02-27  Mike FABIAN  <mfabian@redhat.com>
4204
4205         See this bug https://sourceware.org/bugzilla/show_bug.cgi?id=22898
4206         * localedata/cmn_TW.UTF-8.in: Remove the lines which cannot
4207         be sorted correctly at the moment because of a bug.
4208
4209 2018-02-27  Mike FABIAN  <mfabian@redhat.com>
4210
4211         [BZ #22550] - es_ES locale (and other es_* locales): collation should
4212         treat ñ as a primary different character, sync the collation
4213         for Spanish with CLDR.
4214         [BZ #21547] - Tibetan script collation broken (Dzongkha and Tibetan).
4215         * localedata/Makefile: Add new test files.
4216         * localedata/lv_LV.UTF-8.in: Adapt test file to new collation order.
4217         * localedata/sv_SE.ISO-8859-1.in: Adapt test file to new
4218         collation order.
4219         * localedata/uk_UA.UTF-8.in: Adapt test file to new collation order.
4220         * localedata/am_ET.UTF-8.in: New test file.
4221         * localedata/az_AZ.UTF-8.in: Likewise.
4222         * localedata/be_BY.UTF-8.in: Likewise.
4223         * localedata/ber_DZ.UTF-8.in: Likewise.
4224         * localedata/ber_MA.UTF-8.in: Likewise.
4225         * localedata/bg_BG.UTF-8.in: Likewise.
4226         * localedata/br_FR.UTF-8.in: Likewise.
4227         * localedata/cmn_TW.UTF-8.in: Likewise.
4228         * localedata/crh_UA.UTF-8.in: Likewise.
4229         * localedata/csb_PL.UTF-8.in: Likewise.
4230         * localedata/cv_RU.UTF-8.in: Likewise.
4231         * localedata/cy_GB.UTF-8.in: Likewise.
4232         * localedata/dz_BT.UTF-8.in: Likewise.
4233         * localedata/eo.UTF-8.in: Likewise.
4234         * localedata/es_ES.UTF-8.in: Likewise.
4235         * localedata/fa_IR.UTF-8.in: Likewise.
4236         * localedata/fi_FI.UTF-8.in: Likewise.
4237         * localedata/fil_PH.UTF-8.in: Likewise.
4238         * localedata/fur_IT.UTF-8.in: Likewise.
4239         * localedata/gez_ER.UTF-8@abegede.in: Likewise.
4240         * localedata/ha_NG.UTF-8.in: Likewise.
4241         * localedata/ig_NG.UTF-8.in: Likewise.
4242         * localedata/ik_CA.UTF-8.in: Likewise.
4243         * localedata/kk_KZ.UTF-8.in: Likewise.
4244         * localedata/ku_TR.UTF-8.in: Likewise.
4245         * localedata/ky_KG.UTF-8.in: Likewise.
4246         * localedata/ln_CD.UTF-8.in: Likewise.
4247         * localedata/mi_NZ.UTF-8.in: Likewise.
4248         * localedata/ml_IN.UTF-8.in: Likewise.
4249         * localedata/mn_MN.UTF-8.in: Likewise.
4250         * localedata/mr_IN.UTF-8.in: Likewise.
4251         * localedata/mt_MT.UTF-8.in: Likewise.
4252         * localedata/nb_NO.UTF-8.in: Likewise.
4253         * localedata/om_KE.UTF-8.in: Likewise.
4254         * localedata/os_RU.UTF-8.in: Likewise.
4255         * localedata/ps_AF.UTF-8.in: Likewise.
4256         * localedata/ro_RO.UTF-8.in: Likewise.
4257         * localedata/ru_RU.UTF-8.in: Likewise.
4258         * localedata/sc_IT.UTF-8.in: Likewise.
4259         * localedata/se_NO.UTF-8.in: Likewise.
4260         * localedata/sq_AL.UTF-8.in: Likewise.
4261         * localedata/sv_SE.UTF-8.in: Likewise.
4262         * localedata/szl_PL.UTF-8.in: Likewise.
4263         * localedata/tg_TJ.UTF-8.in: Likewise.
4264         * localedata/tk_TM.UTF-8.in: Likewise.
4265         * localedata/tt_RU.UTF-8.in: Likewise.
4266         * localedata/tt_RU.UTF-8@iqtelif.in: Likewise.
4267         * localedata/ug_CN.UTF-8.in: Likewise.
4268         * localedata/uz_UZ.UTF-8.in: Likewise.
4269         * localedata/vi_VN.UTF-8.in: Likewise.
4270         * localedata/yi_US.UTF-8.in: Likewise.
4271         * localedata/yo_NG.UTF-8.in: Likewise.
4272         * localedata/zh_CN.UTF-8.in: Likewise.
4273         * localedata/locales/am_ET: Adapt collation rules to new iso14651_t1_common
4274         file and fix bugs in the collation.
4275         * localedata/locales/az_AZ: Likewise.
4276         * localedata/locales/be_BY: Likewise.
4277         * localedata/locales/ber_DZ: Likewise.
4278         * localedata/locales/ber_MA: Likewise.
4279         * localedata/locales/bg_BG: Likewise.
4280         * localedata/locales/br_FR: Likewise.
4281         * localedata/locales/br_FR@euro: Likewise.
4282         * localedata/locales/ca_ES: Likewise.
4283         * localedata/locales/cns11643_stroke: Likewise.
4284         * localedata/locales/crh_UA: Likewise.
4285         * localedata/locales/cs_CZ: Likewise.
4286         * localedata/locales/csb_PL: Likewise.
4287         * localedata/locales/cv_RU: Likewise.
4288         * localedata/locales/cy_GB: Likewise.
4289         * localedata/locales/da_DK: Likewise.
4290         * localedata/locales/dz_BT: Likewise.
4291         * localedata/locales/en_CA: Likewise.
4292         * localedata/locales/eo: Likewise.
4293         * localedata/locales/es_CU: Likewise.
4294         * localedata/locales/es_EC: Likewise.
4295         * localedata/locales/es_ES: Likewise.
4296         * localedata/locales/es_US: Likewise.
4297         * localedata/locales/et_EE: Likewise.
4298         * localedata/locales/fa_IR: Likewise.
4299         * localedata/locales/fi_FI: Likewise.
4300         * localedata/locales/fil_PH: Likewise.
4301         * localedata/locales/fur_IT: Likewise.
4302         * localedata/locales/gez_ER@abegede: Likewise.
4303         * localedata/locales/ha_NG: Likewise.
4304         * localedata/locales/hr_HR: Likewise.
4305         * localedata/locales/hsb_DE: Likewise.
4306         * localedata/locales/hu_HU: Likewise.
4307         * localedata/locales/ig_NG: Likewise.
4308         * localedata/locales/ik_CA: Likewise.
4309         * localedata/locales/is_IS: Likewise.
4310         * localedata/locales/iso14651_t1_pinyin: Likewise.
4311         * localedata/locales/kk_KZ: Likewise.
4312         * localedata/locales/ku_TR: Likewise.
4313         * localedata/locales/ky_KG: Likewise.
4314         * localedata/locales/ln_CD: Likewise.
4315         * localedata/locales/lt_LT: Likewise.
4316         * localedata/locales/lv_LV: Likewise.
4317         * localedata/locales/mi_NZ: Likewise.
4318         * localedata/locales/ml_IN: Likewise.
4319         * localedata/locales/mn_MN: Likewise.
4320         * localedata/locales/mr_IN: Likewise.
4321         * localedata/locales/mt_MT: Likewise.
4322         * localedata/locales/nb_NO: Likewise.
4323         * localedata/locales/om_KE: Likewise.
4324         * localedata/locales/os_RU: Likewise.
4325         * localedata/locales/pl_PL: Likewise.
4326         * localedata/locales/ps_AF: Likewise.
4327         * localedata/locales/ro_RO: Likewise.
4328         * localedata/locales/ru_RU: Likewise.
4329         * localedata/locales/ru_UA: Likewise.
4330         * localedata/locales/sc_IT: Likewise.
4331         * localedata/locales/se_NO: Likewise.
4332         * localedata/locales/si_LK: Likewise.
4333         * localedata/locales/sq_AL: Likewise.
4334         * localedata/locales/sv_FI: Likewise.
4335         * localedata/locales/sv_FI@euro: Likewise.
4336         * localedata/locales/sv_SE: Likewise.
4337         * localedata/locales/szl_PL: Likewise.
4338         * localedata/locales/tg_TJ: Likewise.
4339         * localedata/locales/ti_ER: Likewise.
4340         * localedata/locales/tk_TM: Likewise.
4341         * localedata/locales/tl_PH: Likewise.
4342         * localedata/locales/tr_TR: Likewise.
4343         * localedata/locales/tt_RU: Likewise.
4344         * localedata/locales/tt_RU@iqtelif: Likewise.
4345         * localedata/locales/ug_CN: Likewise.
4346         * localedata/locales/uk_UA: Likewise.
4347         * localedata/locales/uz_UZ: Likewise.
4348         * localedata/locales/uz_UZ@cyrillic: Likewise.
4349         * localedata/locales/vi_VN: Likewise.
4350         * localedata/locales/yi_US: Likewise.
4351         * localedata/locales/yo_NG: Likewise.
4352
4353 2018-02-27  Mike FABIAN  <mfabian@redhat.com>
4354
4355         * gen-locales.mk: Make test files which contain @ modifiers in their
4356         name work.
4357         * localedata/gen-locale.sh: Likewise.
4358
4359 2018-02-27  Mike FABIAN  <mfabian@redhat.com>
4360
4361         * posix/tst-fnmatch.input: Fix results for range expressions
4362         for non C locales.
4363         * posix/tst-regexloc.c: Do not use a range expression for
4364         de_DE.ISO-8859-1 locale.
4365
4366 2018-02-27  Mike FABIAN  <mfabian@redhat.com>
4367
4368         * posix/bug-regex5.c: Fix test case because with the new
4369         iso14651_t1_common file, the da_DK locale now has 6 collating elements
4370         in the ISO-8859-1 range instead of 4 with the old iso14651_t1_common
4371         file.
4372
4373 2018-02-27  Mike FABIAN  <mfabian@redhat.com>
4374
4375         * localedata/da_DK.ISO-8859-1.in: In the new iso14651_t1_common file
4376         downloaded from ISO, the collation order of @-. and space has changed.
4377         Therefore, this test file needed to be adapted.
4378         * localedata/fr_CA.UTF-8.in: Likewise.
4379         * localedata/fr_FR.UTF-8.in: Likewise.
4380         * localedata/uk_UA.UTF-8.in: Likewise.
4381
4382 2018-02-27  Mike FABIAN  <mfabian@redhat.com>
4383
4384         * localedata/cs_CZ.UTF-8.in: adapt this test file to the collation
4385         order of ȥ in the new iso14651_t1_common file.
4386         * localedata/pl_PL.UTF-8.in: Likewise.
4387
4388 2018-02-27  Mike FABIAN  <mfabian@redhat.com>
4389
4390         * localedata/locales/iso14651_t1_common: Add sections for various
4391         scripts to the iso14651_t1_common file.
4392
4393 2018-02-27  Mike FABIAN  <mfabian@redhat.com>
4394
4395         * localedata/locales/iso14651_t1_common: Use the code point of a
4396         character in the fourth collation level instead of IGNORE for all
4397         entries which have IGNORE on all 4 levels.
4398
4399 2018-02-27  Mike FABIAN  <mfabian@redhat.com>
4400
4401         * localedata/locales/iso14651_t1_common: Add some convenient collation
4402         symbols like <AFTER-A>, <BEFORE-A> to make tailoring easier using
4403         rules similar to those in CLDR.
4404
4405 2018-02-27  Mike FABIAN  <mfabian@redhat.com>
4406
4407         * localedata/locales/iso14651_t1_common: The new version of this
4408         file downloaded from ISO contained several syntax errors which
4409         are fixed by this patch.
4410
4411 2018-02-27  Mike FABIAN  <mfabian@redhat.com>
4412
4413         * localedata/locales/iso14651_t1_common: replace all <U.....>
4414         with <U000.....> because glibc understands only 4 digit or 8 digit
4415
4416 2018-02-27  Mike FABIAN  <mfabian@redhat.com>
4417
4418         * localedata/locales/iso14651_t1_common: Necessary changes
4419         to make the file downloaded from ISO usable by glibc.
4420
4421 2018-02-27  Mike FABIAN  <mfabian@redhat.com>
4422
4423         [BZ #14095]
4424         * localedata/locales/iso14651_t1_common: Update file to
4425         latest version from ISO (ISO14651_2016_TABLE1_en.txt).
4426
4427 2018-02-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4428
4429         * sysdeps/pthread/timer_routines.c: Include <timer_routines.h> instead
4430         of <nptl/pthreadP.h>
4431         (thread_attr_compare): Move function to...
4432         [!defined DELAYTIMER_MAX] (DELAYTIMER_MAX): Define to INT_MAX.
4433         * sysdeps/nptl/timer_routines.h: ... new header.
4434         * sysdeps/mach/hurd/gai_misc.h: New file.
4435
4436 2018-02-26  Joseph Myers  <joseph@codesourcery.com>
4437
4438         * string/strcoll_l.c: Include <libc-diag.h>.
4439         (STRCOLL): Ignore -Wmaybe-uninitialized for -Os around
4440         declarations of seq1 and seq2.
4441
4442         [BZ #15105]
4443         * stdlib/atoi.c (atoi): Use libc_hidden_def.
4444         * include/stdlib.h [!_ISOMAC] (atoi): Use libc_hidden_proto.
4445
4446 2018-02-26  Dmitry V. Levin  <ldv@altlinux.org>
4447
4448         [BZ #22433]
4449         [BZ #22807]
4450         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (__ptrace_request): Add
4451         PTRACE_GETREGS, PTRACE_SETREGS, PTRACE_GETFPREGS, PTRACE_SETFPREGS,
4452         PTRACE_GETVRREGS, PTRACE_SETVRREGS, PTRACE_GETEVRREGS,
4453         PTRACE_SETEVRREGS, PTRACE_GETREGS64, PTRACE_SETREGS64,
4454         PTRACE_GET_DEBUGREG, PTRACE_SET_DEBUGREG, PTRACE_GETVSRREGS,
4455         PTRACE_SETVSRREGS, and PTRACE_SINGLEBLOCK.
4456
4457 2018-02-26  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
4458
4459         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Undefine Linux
4460         macros used in __ptrace_request.
4461
4462 2018-02-23  H.J. Lu  <hongjiu.lu@intel.com>
4463
4464         [BZ #22792]
4465         * Makerules ($(common-objpfx)%.h): Pass -DGEN_AS_CONST_HEADERS
4466         to $(CC).
4467         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Include
4468         <tcb-offsets.h> only if GEN_AS_CONST_HEADERS isn't defined.
4469         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Don't include
4470         <tcb-offsets.h>.
4471
4472 2018-02-23  Joseph Myers  <joseph@codesourcery.com>
4473
4474         [BZ #15105]
4475         * ctype/ctype.c (tolower): Use libc_hidden_def.
4476         (toupper): Likewise.
4477         * include/ctype.h [!_ISOMAC] (tolower): Use libc_hidden_proto.
4478         [!_ISOMAC] (toupper): Likewise.
4479
4480 2018-02-23  Mike FABIAN  <mfabian@redhat.com>
4481
4482         * localedata/Makefile: Remove --quiet argument when
4483         installing locales
4484
4485 2018-02-23  Mike FABIAN  <mfabian@redhat.com>
4486
4487         [BZ #17438]
4488         * localedata/locales/pt_BR (LC_TIME): use / instead of -
4489         in d_fmt.
4490         * localedata/locales/pt_PT (LC_TIME): likewise
4491
4492 2018-02-23  Mike FABIAN  <mfabian@redhat.com>
4493
4494         [BZ #22646]
4495         * localedata/locales/es_CL (LC_TIME): copy "es_BO".
4496         * localedata/locales/es_CU (LC_TIME): copy "es_BO".
4497         * localedata/locales/es_EC (LC_TIME): copy "es_BO".
4498
4499 2018-02-22  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4500
4501         * sysdeps/sparc/fpu/libm-test-ulps: Update.
4502
4503         * nptl/Makefile (routines): Remove unregister-atfork.
4504         * nptl/register-atfork.c (fork_handler_pool): Remove variable.
4505         (fork_handler_alloc): Remove function.
4506         (fork_handlers, fork_handler_init): New variables.
4507         (__fork_lock): Rename to atfork_lock.
4508         (__register_atfork, __unregister_atfork, libc_freeres_fn): Rewrite
4509         to use a dynamic array to add/remove atfork handlers.
4510         * sysdeps/nptl/fork.c (__libc_fork): Likewise.
4511         * sysdeps/nptl/fork.h (__fork_lock, __fork_handlers, __linkin_atfork):
4512         Remove declaration.
4513         (fork_handler): Remove next, refcntr, and need_signal member.
4514         (__run_fork_handler_type): New enum.
4515         (__run_fork_handlers): New prototype.
4516         * nptl/register-atfork.c: Remove file.
4517         * sysdeps/nptl/libc-lockP.h (__libc_atfork): Remove declaration.
4518
4519         * sysdeps/nptl/nptl-signals.h: Move to ...
4520         * sysdeps/generic/internal-signals.h: ... here.  Adjust internal
4521         comments.
4522         * sysdeps/unix/sysv/linux/internal-signals.h: Add include guards.
4523         (__nptl_is_internal_signal): Rename to __is_internal_signal and remove
4524         unnecessary check for SIGTIMER.
4525         (__nptl_clear_internal_signals): Rename to __clear_internal_signals and
4526         remove unnecessary removal of SIGTIMER.
4527         * sysdeps/unix/sysv/linux/raise.c: Adjust nptl-signal.h to
4528         include-signals.h rename.
4529         * nptl/pthreadP.h: Likewise.
4530         * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Call
4531         __is_internal_signal instead of __nptl_is_internal_signal.
4532
4533 2018-02-22  Andrew Waterman <andrew@sifive.com>
4534
4535         [BZ # 22884]
4536         * sysdeps/riscv/rvd/s_fmax.c (__fmax): Handle sNaNs correctly.
4537         * sysdeps/riscv/rvd/s_fmin.c (__fmin): Likewise.
4538         * sysdeps/riscv/rvf/s_fmaxf.c (__fmaxf): Likewise.
4539         * sysdeps/riscv/rvf/s_fminf.c (__fminf): Likewise.
4540
4541 2018-02-22  DJ Delorie  <dj@delorie.com>
4542
4543         * sysdeps/riscv/tls-macros.h: Do not initialize $gp.
4544
4545 2018-02-22  Siddhesh Poyarekar  <siddhesh@sourceware.org>
4546
4547         * sysdeps/aarch64/strcmp.S (do_misaligned): Jump back to
4548         do_misaligned, not misaligned8.
4549
4550 2018-02-22  Steve Ellcey  <sellcey@cavium.com>
4551
4552         * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
4553         Add memcpy_thunderx2.
4554         * sysdeps/aarch64/multiarch/ifunc-impl-list.c (MAX_IFUNC):
4555         Increment to 4.
4556         (__libc_ifunc_impl_list): Add __memcpy_thunderx2.
4557         * sysdeps/aarch64/multiarch/memcpy.c (libc_ifunc): Add IS_THUNDERX2
4558         and IS_THUNDERX2PA checks.
4559         * sysdeps/aarch64/multiarch/memcpy_thunderx.S (USE_THUNDERX2):
4560         Use macro to set name appropriately.
4561         (memcpy): Use USE_THUNDERX2 macro to modify prefetches.
4562         * sysdeps/aarch64/multiarch/memcpy_thunderx2.S: New file.
4563         * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_THUNDERX2PA):
4564         New macro.
4565         (IS_THUNDERX2): New macro.
4566
4567 2018-02-22  Stefan Liebler  <stli@linux.vnet.ibm.com>
4568
4569         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
4570
4571 2018-02-21  Zack Weinberg  <zackw@panix.com>
4572
4573         * libio/libio.h (_IO_pos_BAD, _IO_pos_0, _IO_pos_adjust):
4574         Define here, unconditionally.
4575         * libio/iolibio.h (_IO_pos_BAD): Don't define here.
4576         * libio/libioP.h: Remove #if 0 blocks.
4577         (_IO_pos_BAD, _IO_pos_0, _IO_pos_adjust): Don't define here.
4578         (_IO_va_start, COERCE_FILE, MAYBE_SET_EINVAL): Don't define.
4579         (CHECK_FILE): Don't use MAYBE_SET_EINVAL or COERCE_FILE.  Fix style.
4580
4581         * libio/clearerr.c, libio/fputc.c, libio/getchar.c:
4582         Assume weak_alias is always defined.
4583
4584         * libio/fileops.c, libio/genops.c, libio/oldfileops.c
4585         * libio/oldpclose.c, libio/pclose.c, libio/wfileops.c:
4586         Remove #if 0 and #ifdef TODO blocks.
4587         Assume text_set_element is always defined.
4588
4589         * libio/iofdopen.c, libio/iogetdelim.c, libio/oldiofdopen.c
4590         Use __set_errno (EINVAL) instead of MAYBE_SET_EINVAL.
4591         * libio/tst-mmap-eofsync.c: Make #if 1 block unconditional.
4592
4593         * libio/libio.h (_IOS_ATEND, _IOS_APPEND, _IOS_TRUNC)
4594         (_IOS_NOCREATE, _IOS_NOREPLACE, _IOS_BIN, _OLD_STDIO_MAGIC)
4595         (_IO_SKIPWS, _IO_LEFT, _IO_RIGHT, _IO_INTERNAL, _IO_DEC)
4596         (_IO_OCT, _IO_HEX, _IO_SHOWBASE, _IO_SHOWPOINT, _IO_UPPERCASE)
4597         (_IO_SHOWPOS, _IO_SCIENTIFIC, _IO_FIXED, _IO_UNITBUF, _IO_STDIO)
4598         (_IO_DONT_CLOSE, _IO_BOOLALPHA, _IO_BAD_SEEN): Remove, unused.
4599         Reformat bit flags for _flags field to make occupancy clearer.
4600         Update commentary.
4601         * libio/bits/types/struct_FILE.h (_IO_EOF_SEEN, _IO_ERR_SEEN):
4602         Keep definitions consistent with those in libio/libio.h.
4603
4604         * libio/libio.h (_IO_file_flags): Remove macro.
4605         All uses changed to _flags.
4606
4607         * libio/libio.h (_IO_UNIFIED_JUMPTABLES, _STDIO_USES_IOSTREAM)
4608         (__HAVE_COLUMN, _IO_BE): Don't define.
4609         (_IO_peekc_unlocked, _IO_getwc_unlocked, _IO_putwc_unlocked)
4610         (_IO_fwide_maybe_incompatible): Use __glibc_unlikely.
4611         * libio/libioP.h (EOF): Don't define.
4612         * libio/iofdopen.c, libio/iofopen.c, libio/iopopen.c
4613         * libio/iovdprintf.c, libio/oldiofdopen.c, libio/oldiofopen.c
4614         * libio/oldiopopen.c, debug/vdprintf_chk.c: Remove #if block
4615         testing _IO_UNIFIED_JUMPTABLES.
4616
4617         * libio/libio.h (_IO_FILE): Delete; all uses changed to FILE.
4618         (_IO_fpos_t): Delete; all uses changed to __fpos_t.
4619         (_IO_fpos64_t): Delete; all uses changed to __fpos64_t.
4620         (_IO_size_t): Delete; all uses changed to size_t.
4621         (_IO_ssize_t): Delete; all uses changed to ssize_t or __ssize_t.
4622         (_IO_off_t): Delete; all uses changed to off_t.
4623         (_IO_off64_t): Delete; all uses changed to off64_t.
4624         (_IO_pid_t): Delete; all uses changed to pid_t.
4625         (_IO_uid_t): Delete; all uses changed to uid_t.
4626         (_IO_wint_t): Delete; all uses changed to wint_t.
4627         (_IO_va_list): Delete; all uses changed to va_list or __gnuc_va_list.
4628         (_IO_BUFSIZ): Delete; all uses changed to BUFSIZ.
4629         (_IO_cookie_io_functions_t): Delete; all uses changed to
4630         cookie_io_functions_t.
4631         (__io_read_fn): Delete; all uses changed to cookie_read_function_t.
4632         (__io_write_fn): Delete; all uses changed to cookie_write_function_t.
4633         (__io_seek_fn): Delete; all uses changed to cookie_seek_function_t.
4634         (__io_close_fn): Delete: all uses changed to cookie_close_function_t.
4635
4636         * libio/iofopncook.c: Remove unnecessary forward declarations.
4637         * libio/iolibio.h: Correct outdated commentary.
4638         * malloc/malloc.c (__malloc_stats): Remove unnecessary casts.
4639         * stdio-common/fxprintf.c (__fxprintf_nocancel):
4640         Remove unnecessary casts.
4641         * stdio-common/getline.c: Use _IO_getdelim directly.
4642         Don't redefine ssize_t.
4643         * stdio-common/printf_fp.c, stdio_common/printf_fphex.c
4644         * stdio-common/printf_size.c: Don't redefine size_t or FILE.
4645         Remove outdated comments.
4646         * stdio-common/vfscanf.c: Don't redefine va_list.
4647
4648         * libio/iolibio.h, libio/libioP.h: Remove extern "C".
4649         * libio/libio.h: Remove __BEGIN_DECLS and __END_DECLS.
4650         Remove preprocessor conditionals on _LIBC and __USE_GNU,
4651         which are always true, and __cplusplus, which is always false.
4652
4653 2018-02-21  Joseph Myers  <joseph@codesourcery.com>
4654
4655         [BZ #15105]
4656         [BZ #19463]
4657         * libio/fputc_u.c (fputc_unlocked): Use libc_hidden_def.
4658         * libio/putc_u.c (putc_unlocked): Rename to __putc_unlocked and
4659         define as weak alias of __putc_unlocked.  Use libc_hidden_weak.
4660         * include/stdio.h [!_ISOMAC] (fputc_unlocked): Use
4661         libc_hidden_proto.
4662         [!_ISOMAC] (putc_unlocked): Likewise.
4663         [!_ISOMAC] (__putc_unlocked): Declare as hidden function, and
4664         define inline if [__USE_EXTERN_INLINES].
4665         * misc/syslog.c (__vsyslog_chk): Call __putc_unlocked instead of
4666         putc_unlocked.
4667
4668         [BZ #15105]
4669         [BZ #19463]
4670         * libio/getc_u.c (getc_unlocked): Use libc_hidden_weak.
4671         * include/stdio.h [!_ISOMAC] (__getc_unlocked): Use
4672         attribute_hidden, and define inline if [__USE_EXTERN_INLINES].
4673         [!_ISOMAC] (getc_unlocked): Use libc_hidden_proto.
4674         * misc/getttyent.c (__getttyent): Call __getc_unlocked instead of
4675         getc_unlocked.
4676         * time/tzfile.c (__tzfile_read): Likewise.
4677
4678 2018-02-21  Mike FABIAN  <mfabian@redhat.com>
4679
4680         [BZ #22517]
4681         * localedata/locales/et_EE (LC_COLLATE): add missing “reorder-end”
4682
4683 2018-02-21  Rical Jasan  <ricaljasan@pacific.net>
4684
4685         * io/fcntl.h: Fix a typo in a comment.
4686
4687 2018-02-21  Rical Jasan  <ricaljasan@pacific.net>
4688
4689         [BZ #22862]
4690         * include/features.h: Add _ISOC11_SOURCE to test for whether to
4691         define _DEFAULT_SOURCE.
4692         * manual/creature.texi (_DEFAULT_SOURCE): Improve documentation.
4693
4694 2018-02-21  Florian Weimer  <fweimer@redhat.com>
4695
4696         [BZ #20890]
4697         * elf/cache.c (save_cache): Call fsync on temporary file before
4698         renaming it.
4699         (save_aux_cache): Call fdatasync on temporary file before renaming
4700         it.
4701
4702 2018-02-21  Florian Weimer  <fweimer@redhat.com>
4703
4704         [BZ #22787]
4705         * include/caller.h: Remove file.
4706         * elf/dl-caller.c: Likewise.
4707         * elf/Makefile (dl-routines): Remove dl-caller.
4708         (shared-only-routines): Do not add dl-caller.
4709         * elf/dl-load.c (_dl_map_object_from_fd): Do not call
4710         __check_caller.
4711         * elf/dl-open.c (struct dl_open_args): Remove caller_dl_open
4712         member.
4713         (dl_open_worker): Do not call __check_caller.
4714         (_dl_open): Do not set caller_dl_open member.
4715         * elf/rtld.c (_rtld_global_ro): Do not initialize
4716         _dl_check_caller member.
4717         * sysdeps/generic/ldsodefs.h (rtld_global): Remove
4718         _dl_check_caller member.
4719         (_dl_check_caller): Remove declaration.
4720         * sysdeps/unix/sysv/linux/dl-execstack.c
4721         (_dl_make_stack_executable): Do not call __check_caller.
4722
4723 2018-02-21  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4724
4725         * sysdeps/mach/hurd/dl-sysdep.c (_dl_random): New variable.
4726         * sysdeps/mach/hurd/sysdep-cancel.h: New file.
4727
4728 2018-02-20  Rical Jasan  <ricaljasan@pacific.net>
4729
4730         * manual/creature.texi (_ISOC99_SOURCE): Update the dated
4731         description.
4732
4733 2018-02-20  Rical Jasan  <ricaljasan@pacific.net>
4734
4735         [BZ #16335]
4736         * manual/creature.texi (_POSIX_C_SOURCE): Document special values
4737         of 199606L, 200112L, and 200809L.
4738         (_XOPEN_SOURCE): Document special values of 600 and 700.
4739         (_ISOC11_SOURCE): Document macro.
4740         (_ATFILE_SOURCE): Likewise.
4741         (_FORTIFY_SOURCE): Likewise.
4742
4743 2018-02-19  Joseph Myers  <joseph@codesourcery.com>
4744
4745         [BZ #15105]
4746         [BZ #19463]
4747         * libio/ferror_u.c (ferror_unlocked): Rename to __ferror_unlocked
4748         and define as weak alias of __ferror_unlocked.  Use
4749         libc_hidden_weak.
4750         * include/stdio.h [!_ISOMAC] (ferror_unlocked): Use
4751         libc_hidden_proto.
4752         [!_ISOMAC] (__ferror_unlocked) New declaration, and inline
4753         function if [__USE_EXTERN_INLINES].
4754         * time/getdate.c (__getdate_r): Call __ferror_unlocked instead of
4755         ferror_unlocked.
4756
4757 2018-02-19  Rical Jasan  <ricaljasan@pacific.net>
4758
4759         [BZ #6889]
4760         * manual/filesys.texi (get_current_dir_name): Clarify behaviour.
4761
4762 2018-02-18  Aurelien Jarno  <aurelien@aurel32.net>
4763
4764         [BZ #22818]
4765         * posix/tst-glob_lstat_compat.c [__alpha__] (glob): Access
4766         the GLIBC_2.1 version.
4767
4768 2018-02-18  Aurelien Jarno  <aurelien@aurel32.net>
4769
4770         [BZ #21508]
4771         * catgets/xopen-msg.awk: Ignore POT-Creation-Date line.
4772         * intl/Makefile ($(objpfx)tst-gettext-de.po): Generate
4773         intl/tst-gettext-de.po from po/de.po by removing the
4774         POT-Creation-Date line.
4775         ($(objpfx)msgs.h): Depend on $(objpfx)tst-gettext-de.po instead of
4776         ../po/de.po.
4777         * intl/tst-gettext.sh: Use ${objpfx}tst-gettext-de.po instead of
4778         ../po/de.po.
4779
4780 2018-02-17  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4781
4782         * mach/Makefile (headers): Add mach/param.h.
4783         * sysdeps/mach/hurd/bits/param.h: Include <mach/param.h>.
4784         * sysdeps/mach/i386/mach/param.h: New file, defines EXEC_PAGESIZE
4785         * sysdeps/mach/hurd/ptsname.c: Include <sys/stat.h>.
4786         (__ptsname_r): Move implementation to...
4787         (__ptsname_internal): ... new function.  Add filling the STP
4788         structure.
4789
4790 2018-02-17  John David Anglin  <danglin@gcc.gnu.org>
4791
4792         * sysdeps/hppa/fpu/libm-test-ulps (pow): Increase double and
4793         idouble to 1 ULP.
4794
4795 2018-02-16  Rical Jasan  <ricaljasan@pacific.net>
4796
4797         * manual/platform.texi (__riscv_flush_icache): Fix @deftypefun
4798         syntax.
4799
4800 2018-02-16  Stefan Liebler  <stli@linux.vnet.ibm.com>
4801
4802         * nptl/Makefile (tst-mutex8-ENV): Delete.
4803         * nptl/tst-mutex8.c (check_type):
4804         Add runtime check if mutex will be elided.
4805
4806 2018-02-15  Joseph Myers  <joseph@codesourcery.com>
4807
4808         [BZ #20980]
4809         [BZ #21234]
4810         * manual/install.texi (Configuring and compiling): Describe
4811         passing CC and CFLAGS on configure command line, not as
4812         environment variables.  Use @code markup on those variables.
4813         Specify what options go in CC and what go in CFLAGS.  Note the
4814         requirement to compile with optimization.
4815         * INSTALL: Regenerated.
4816
4817         [BZ #18124]
4818         * sysdeps/hppa/bsd-setjmp.S: Include <sysdep.h>.
4819         (setjmp): Use HIDDEN_JUMPTARGET with __sigsetjmp.
4820         * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Call
4821         __sigprocmask instead of sigprocmask.
4822         * sysdeps/unix/sysv/linux/hppa/setcontext.S (__setcontext):
4823         Likewise.
4824         * sysdeps/unix/sysv/linux/hppa/localplt.data: Remove entries for
4825         __sigsetjmp and sigprocmask.
4826
4827         [BZ #15105]
4828         * include/argz.h (argz_next): Use libc_hidden_proto.
4829         (__argz_next): Likewise.
4830         * string-argz-next.c (__argz_next): Use libc_hidden_def.
4831         (argz_next): Use libc_hidden_weak.
4832
4833         [BZ #15105]
4834         * include/sys/socket.h [!_ISOMAC] (__cmsg_nxthdr): Use
4835         libc_hidden_proto.
4836         * sysdeps/unix/sysv/linux/cmsg_nxthdr.c (__cmsg_nxthdr): Use
4837         libc_hidden_def.
4838
4839         [BZ #15105]
4840         * include/stdio.h [!_ISOMAC && IS_IN (libc)] (fputs): Use
4841         libc_hidden_proto.
4842         * libio/iofputs.c (fputs): Use libc_hidden_weak.
4843
4844         [BZ #15105]
4845         [BZ #19463]
4846         * libio/feof_u.c (feof_unlocked): Rename to __feof_unlocked and
4847         define as weak alias of __feof_unlocked.  Use libc_hidden_weak.
4848         * include/stdio.h (feof_unlocked): Use libc_hidden_proto.
4849         (__feof_unlocked): New declaration, and inline function if
4850         [__USE_EXTERN_INLINES].
4851         * iconv/gconv_conf.c (read_conf_file): Call __feof_unlocked
4852         instead of feof_unlocked.
4853         * intl/localealias.c [_LIBC] (FEOF): Likewise.
4854         * nss/nsswitch.c (nss_parse_file): Likewise.
4855         * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area):
4856         Likewise.
4857         * time/getdate.c (__getdate_r): Likewise.
4858         * sysdeps/posix/getaddrinfo.c [IS_IN (libc)] (feof_unlocked):
4859         Define as macro to call __feof_unlocked.
4860
4861 2018-02-15  Wilco Dijkstra  <wdijkstr@arm.com>
4862
4863         * sysdeps/aarch64/fpu/fpu_control.h: Use <> in include.
4864
4865 2018-02-15  Wilco Dijkstra  <wdijkstr@arm.com>
4866
4867         * math/Makefile: Remove mpexp.c and mplog.c
4868         * sysdeps/i386/fpu/mpexp.c: Delete file.
4869         * sysdeps/i386/fpu/mplog.c: Likewise.
4870         * sysdeps/ia64/fpu/mpexp.c: Likewise.
4871         * sysdeps/ia64/fpu/mplog.c: Likewise.
4872         * sysdeps/ieee754/dbl-64/e_exp.c: Remove mention of mpexp and mplog.
4873         * sysdeps/ieee754/dbl-64/mpa.h (__pow_mp): Remove unused function.
4874         * sysdeps/ieee754/dbl-64/mpexp.c: Delete file.
4875         * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
4876         * sysdeps/m68k/m680x0/fpu/mpexp.c: Likewise.
4877         * sysdeps/m68k/m680x0/fpu/mplog.c: Likewise.
4878         * sysdeps/x86_64/fpu/multiarch/Makefile: Remove mpexp* and mplog*.
4879         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: Remove unused defines.
4880         * sysdeps/x86_64/fpu/multiarch/e_log-fma.c: Likewise.
4881         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
4882         * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: Delete file.
4883         * sysdeps/x86_64/fpu/multiarch/mpexp-fma.c: Likewise.
4884         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
4885         * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: Likewise.
4886         * sysdeps/x86_64/fpu/multiarch/mplog-fma.c: Likewise.
4887         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
4888
4889 2018-02-15  Stefan Liebler  <stli@linux.vnet.ibm.com>
4890
4891         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
4892
4893 2018-02-14  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4894
4895         * sysdeps/sh/libm-test-ulps: Update.
4896
4897 2018-02-12  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
4898
4899         * sysdeps/powerpc/fpu/libm-test-ulps (pow): Increase double and
4900         idouble to 1 ULP.
4901
4902 2018-02-12  Zack Weinberg  <zackw@panix.com>
4903
4904         [BZ #19239]
4905         * posix/sys/types.h: Don't include sys/sysmacros.h.
4906         * misc/sys/sysmacros.h: Remove the conditional deprecation
4907         warnings for the macros defined by this header.
4908
4909 2018-02-12  Szabolcs Nagy  <szabolcs.nagy@arm.com>
4910
4911         * manual/probes.texi: Remove slowexp probes.
4912         * math/Makefile: Remove slowexp.
4913         * sysdeps/generic/math_private.h (__slowexp): Remove.
4914         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Remove __slowexp and
4915         document error bounds.
4916         * sysdeps/i386/fpu/slowexp.c: Remove.
4917         * sysdeps/ia64/fpu/slowexp.c: Remove.
4918         * sysdeps/ieee754/dbl-64/slowexp.c: Remove.
4919         * sysdeps/ieee754/dbl-64/uexp.h (err_0): Remove.
4920         * sysdeps/m68k/m680x0/fpu/slowexp.c: Remove.
4921         * sysdeps/powerpc/power4/fpu/Makefile (CPPFLAGS-slowexp.c): Remove.
4922         * sysdeps/x86_64/fpu/multiarch/Makefile: Remove slowexp-fma.
4923         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Remove.
4924         * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Remove.
4925         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Remove.
4926         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Remove.
4927         * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Remove.
4928         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Remove.
4929
4930 2018-02-12  Wilco Dijkstra  <wdijkstr@arm.com>
4931
4932         [BZ #13932]
4933         * sysdeps/ieee754/dbl-64/uexp.h (err_1): Remove.
4934         * benchtests/pow-inputs: Update comment for slow path cases.
4935         * manual/probes.texi (slowpow_p10): Delete removed probe.
4936         (slowpow_p10): Likewise.
4937         * math/Makefile: Remove halfulp.c and slowpow.c.
4938         * sysdeps/aarch64/libm-test-ulps: Set ULP of pow to 1.
4939         * sysdeps/generic/math_private.h (__exp1): Remove error argument.
4940         (__halfulp): Remove.
4941         (__slowpow): Remove.
4942         * sysdeps/i386/fpu/halfulp.c: Delete file.
4943         * sysdeps/i386/fpu/slowpow.c: Likewise.
4944         * sysdeps/ia64/fpu/halfulp.c: Likewise.
4945         * sysdeps/ia64/fpu/slowpow.c: Likewise.
4946         * sysdeps/ieee754/dbl-64/e_exp.c (__exp1): Remove error argument,
4947         improve comments and add error analysis.
4948         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Add error analysis.
4949         (power1): Remove function:
4950         (log1): Remove error argument, add error analysis.
4951         (my_log2): Remove function.
4952         * sysdeps/ieee754/dbl-64/halfulp.c: Delete file.
4953         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
4954         * sysdeps/m68k/m680x0/fpu/halfulp.c: Likewise.
4955         * sysdeps/m68k/m680x0/fpu/slowpow.c: Likewise.
4956         * sysdeps/powerpc/power4/fpu/Makefile: Remove CPPFLAGS-slowpow.c.
4957         * sysdeps/x86_64/fpu/libm-test-ulps: Set ULP of pow to 1.
4958         * sysdeps/x86_64/fpu/multiarch/Makefile: Remove slowpow-fma.c,
4959         slowpow-fma4.c, halfulp-fma.c, halfulp-fma4.c.
4960         * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c (__slowpow): Remove define.
4961         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c (__slowpow): Likewise.
4962         * sysdeps/x86_64/fpu/multiarch/halfulp-fma.c: Delete file.
4963         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
4964         * sysdeps/x86_64/fpu/multiarch/slowpow-fma.c: Likewise.
4965         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
4966
4967 2018-02-11  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4968
4969         * nscd/connections.c (RWLOCK_INITIALIZER): Define to
4970         PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP or
4971
4972 2018-02-10  Dmitry V. Levin  <ldv@altlinux.org>
4973
4974         [BZ #22433]
4975         * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (__ptrace_request):
4976         Remove arm-specific PTRACE_GET_THREAD_AREA, PTRACE_GETHBPREGS,
4977         and PTRACE_SETHBPREGS.
4978
4979 2018-02-10  Zack Weinberg  <zackw@panix.com>
4980
4981         [BZ #22830]
4982         * malloc/malloc.c (__malloc_stats): Restore stderr->_flags2
4983         correctly.
4984         * malloc/tst-malloc-stats-cancellation.c: New test case.
4985         * malloc/Makefile: Add new test case.
4986
4987 2018-02-10  Wilco Dijkstra  <wdijkstr@arm.com>
4988
4989         * sysdeps/aarch64/fpu/fpu_control.h: Add features.h to fix build error.
4990
4991 2018-02-10  Joseph Myers  <joseph@codesourcery.com>
4992
4993         * math/Makefile (libm-narrow-fns): Add add.
4994         (libm-test-funcs-narrow): Likewise.
4995         * math/Versions (GLIBC_2.28): Add narrowing add functions.
4996         * math/bits/mathcalls-narrow.h (add): Use __MATHCALL_NARROW .
4997         * math/gen-auto-libm-tests.c (test_functions): Add add.
4998         * math/math-narrow.h (CHECK_NARROW_ADD): New macro.
4999         (NARROW_ADD_ROUND_TO_ODD): Likewise.
5000         (NARROW_ADD_TRIVIAL): Likewise.
5001         * sysdeps/ieee754/float128/float128_private.h (__faddl): New
5002         macro.
5003         (__daddl): Likewise.
5004         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fadd and
5005         dadd.
5006         (CFLAGS-nldbl-dadd.c): New variable.
5007         (CFLAGS-nldbl-fadd.c): Likewise.
5008         * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
5009         __nldbl_daddl.
5010         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_daddl): New
5011         prototype.
5012         * manual/arith.texi (Misc FP Arithmetic): Document fadd, faddl,
5013         daddl, fMaddfN, fMaddfNx, fMxaddfN and fMxaddfNx.
5014         * math/auto-libm-test-in: Add tests of add.
5015         * math/auto-libm-test-out-narrow-add: New generated file.
5016         * math/libm-test-narrow-add.inc: New file.
5017         * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
5018         * sysdeps/ieee754/dbl-64/s_f32xaddf64.c: Likewise.
5019         * sysdeps/ieee754/dbl-64/s_fadd.c: Likewise.
5020         * sysdeps/ieee754/float128/s_f32addf128.c: Likewise.
5021         * sysdeps/ieee754/float128/s_f64addf128.c: Likewise.
5022         * sysdeps/ieee754/float128/s_f64xaddf128.c: Likewise.
5023         * sysdeps/ieee754/ldbl-128/s_daddl.c: Likewise.
5024         * sysdeps/ieee754/ldbl-128/s_f64xaddf128.c: Likewise.
5025         * sysdeps/ieee754/ldbl-128/s_faddl.c: Likewise.
5026         * sysdeps/ieee754/ldbl-128ibm/s_daddl.c: Likewise.
5027         * sysdeps/ieee754/ldbl-128ibm/s_faddl.c: Likewise.
5028         * sysdeps/ieee754/ldbl-96/s_daddl.c: Likewise.
5029         * sysdeps/ieee754/ldbl-96/s_faddl.c: Likewise.
5030         * sysdeps/ieee754/ldbl-opt/nldbl-dadd.c: Likewise.
5031         * sysdeps/ieee754/ldbl-opt/nldbl-fadd.c: Likewise.
5032         * sysdeps/ieee754/soft-fp/s_daddl.c: Likewise.
5033         * sysdeps/ieee754/soft-fp/s_fadd.c: Likewise.
5034         * sysdeps/ieee754/soft-fp/s_faddl.c: Likewise.
5035         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
5036         * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
5037         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
5038         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
5039         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
5040         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
5041         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
5042         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
5043         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
5044         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
5045         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
5046         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
5047         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
5048         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
5049         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
5050         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
5051         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
5052         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
5053         * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
5054         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
5055         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
5056         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
5057         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
5058         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
5059         * sysdeps/unix/sysv/linux/tile/tilegx32/libm.abilist: Likewise.
5060         * sysdeps/unix/sysv/linux/tile/tilegx64/libm.abilist: Likewise.
5061         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
5062         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
5063
5064         * sysdeps/powerpc/powerpc64le/Makefile [$(subdir) = math]
5065         (f128-pairs): New variable.
5066         [$(subdir) = math] ($(foreach suf,$(all-object-suffixes),$(foreach
5067         pair,$(f128-pairs),$(objpfx)test-$(pair)%$(suf)))): Add -mfloat128
5068         to CFLAGS.
5069         [$(subdir) = math] ($(foreach pair,$(f128-pairs),test-$(pair)%)):
5070         Also make tests add $(f128-loader-link) to gnulib-tests.
5071
5072 2018-02-09  DJ Delorie  <dj@redhat.com>
5073
5074         [BZ #22827]
5075         * sysdeps/unix/sysv/linux/riscv/readelflib.c (process_elf_file): Use
5076         64-bit ELF type for 64-bit ELF objects.
5077
5078 2018-02-09  Joseph Myers  <joseph@codesourcery.com>
5079
5080         * math/libm-test-driver.c (snan_tests_arg): New variable.
5081         * math/libm-test-support.h (snan_tests_arg): New declaration.
5082         * math/libm-test-support.c (enable_test): Check snan_tests_arg.
5083
5084         * math/Makefile (test-type-pairs): New variable.
5085         (test-type-pairs-f64xf128-yes): Likewise.
5086         (tests): Add test-narrow-macros.
5087         (libm-test-funcs-narrow): New variable.
5088         (libm-test-c-narrow): Likewise.
5089         (generated): Add $(libm-test-c-narrow).
5090         (libm-tests-base-narrow): New variable.
5091         (libm-tests-narrow): Likewise.
5092         (libm-tests): Add $(libm-tests-narrow).
5093         (libm-tests-for-type): Handle $(libm-tests-narrow).
5094         (libm-test-c-narrow-obj): New variable.
5095         ($(libm-test-c-narrow-obj)): New rule.
5096         ($(foreach t,$(libm-tests-narrow),$(objpfx)$(t).c)): Likewise.
5097         ($(foreach f,$(libm-test-funcs-narrow),$(objpfx)$(o)-$(f).o)): Use
5098         $(o-iterator) to set dependencies and CFLAGS.
5099         * math/gen-auto-libm-tests.c: Document use for narrowing
5100         functions.
5101         (output_for_one_input_case): Take argument NARROW.
5102         (generate_output): Likewise.  Update call to
5103         output_for_one_input_case.
5104         (main): Take --narrow option.  Update call to generate_output.
5105         * math/gen-libm-test.pl (_apply_lit): Take macro name as argument.
5106         (apply_lit): Update call to _apply_lit.
5107         (apply_arglit): New function.
5108         (parse_args): Handle "a" arguments.
5109         (parse_auto_input): Handle format names using ":".
5110         * math/README.libm-test: Document "a" parameter type.
5111         * math/libm-test-support.h (ARG_TYPE_MIN): New macro.
5112         (ARG_TYPE_TRUE_MIN): Likewise.
5113         (ARG_TYPE_MAX): Likwise.
5114         (ARG_MIN_EXP): Likewise.
5115         (ARG_MAX_EXP): Likewise.
5116         (ARG_MANT_DIG): Likewise.
5117         (TEST_COND_arg_ibm128): Likewise.
5118         (TEST_COND_ibm128_libgcc): Define conditional on [ARG_FLOAT].
5119         (TEST_COND_arg_fmt): New macro.
5120         (init_max_error): Update prototype.
5121         * math/libm-test-support.c (test_ibm128): New variable.
5122         (init_max_error): Take argument testing_ibm128 and set test_ibm128
5123         instead of using [TEST_COND_ibm128] conditional.
5124         (test_exceptions): Use test_ibm128 instead of TEST_COND_ibm128.
5125         * math/libm-test-driver.c (STR_ARG_FLOAT): New macro.
5126         [TEST_NARROW] (TEST_MSG): New definition.
5127         (arg_plus_zero): New macro.
5128         (arg_minus_zero): Likewise.
5129         (arg_plus_infty): Likewise.
5130         (arg_minus_infty): Likewise.
5131         (arg_qnan_value_pl): Likewise.
5132         (arg_qnan_value): Likewise.
5133         (arg_snan_value_pl): Likewise.
5134         (arg_snan_value): Likewise.
5135         (arg_max_value): Likewise.
5136         (arg_min_value): Likewise.
5137         (arg_min_subnorm_value): Likewise.
5138         [ARG_FLOAT] (struct test_aa_f_data): New struct type.
5139         (RUN_TEST_LOOP_aa_f): New macro.
5140         (TEST_SUFF): New macro.
5141         (TEST_SUFF_STR): Likewise.
5142         [!TEST_MATHVEC] (VEC_SUFF): Don't define.
5143         (TEST_COND_any_ibm128): New macro.
5144         (START): Use TEST_SUFF and TEST_SUFF_STR in initializer for
5145         this_func.  Update call to init_max_error.
5146         * math/test-double.h (FUNC_NARROW_PREFIX): New macro.
5147         * math/test-float.h (FUNC_NARROW_PREFIX): Likewise.
5148         * math/test-float128.h (FUNC_NARROW_PREFIX): Likewise.
5149         * math/test-float32.h (FUNC_NARROW_PREFIX): Likewise.
5150         * math/test-float32x.h (FUNC_NARROW_PREFIX): Likewise.
5151         * math/test-float64.h (FUNC_NARROW_PREFIX): Likewise.
5152         * math/test-float64x.h (FUNC_NARROW_PREFIX): Likewise.
5153         * math/test-math-scalar.h (TEST_NARROW): Likewise.
5154         * math/test-math-vector.h (TEST_NARROW): Likewise.
5155         * math/test-arg-double.h: New file.
5156         * math/test-arg-float128.h: Likewise.
5157         * math/test-arg-float32x.h: Likewise.
5158         * math/test-arg-float64.h: Likewise.
5159         * math/test-arg-float64x.h: Likewise.
5160         * math/test-arg-ldouble.h: Likewise.
5161         * math/test-math-narrow.h: Likewise.
5162         * math/test-narrow-macros.c: Likewise.
5163         * sysdeps/ieee754/ldbl-opt/test-narrow-macros-ldbl-64.c: Likewise.
5164         * sysdeps/ieee754/ldbl-opt/Makefile (tests): Add
5165         test-narrow-macros-ldbl-64.
5166         (CFLAGS-test-narrow-macros-ldbl-64.c): New variable.
5167
5168         * math/bits/mathcalls-narrow.h: New file.
5169         * include/bits/mathcalls-narrow.h: Likewise.
5170         * math/math-narrow.h: Likewise.
5171         * math/math.h (__MATHCALL_NARROW_ARGS_1): New macro.
5172         (__MATHCALL_NARROW_ARGS_2): Likewise.
5173         (__MATHCALL_NARROW_ARGS_3): Likewise.
5174         (__MATHCALL_NARROW_NORMAL): Likewise.
5175         (__MATHCALL_NARROW_REDIR): Likewise.
5176         (__MATHCALL_NARROW): Likewise.
5177         [__GLIBC_USE (IEC_60559_BFP_EXT)]: Repeatedly include
5178         <bits/mathcalls-narrow.h> with _Mret_, _Marg_ and __MATHCALL_NAME
5179         defined.
5180         [__GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
5181         * math/Makefile (headers): Add bits/mathcalls-narrow.h.
5182         (libm-narrow-fns): New variable.
5183         (libm-narrow-types-basic): Likewise.
5184         (libm-narrow-types-ldouble-yes): Likewise.
5185         (libm-narrow-types-float128-yes): Likewise.
5186         (libm-narrow-types-float128-alias-yes): Likewise.
5187         (libm-narrow-types): Likewise.
5188         (libm-routines): Add narrowing functions.
5189         * sysdeps/i386/fpu/fenv_private.h [__x86_64__]
5190         (libc_feholdexcept_setroundf128): New macro.
5191         [__x86_64__] (libc_feupdateenv_testf128): Likewise.
5192         * sysdeps/ieee754/float128/float128_private.h: Include
5193         <math/math-narrow.h>.
5194         [libc_feholdexcept_setroundf128] (libc_feholdexcept_setroundl):
5195         Undefine and redefine.
5196         [libc_feupdateenv_testf128] (libc_feupdateenv_testl): Likewise.
5197         (libm_alias_float_ldouble): Undefine and redefine.
5198         (libm_alias_double_ldouble): Likewise.
5199
5200         * math/Makefile [$(PERL) != no] (libm-test-incs): Remove variable.
5201
5202 2018-02-09  Wilco Dijkstra  <wdijkstr@arm.com>
5203
5204         * sysdeps/aarch64/fpu/fpu_control.h: Use builtins for accessing
5205         FPCR/FPSR.
5206
5207 2018-02-09  Rical Jasan  <ricaljasan@pacific.net>
5208
5209         * manual/creature.texi: Convert references to gcc.info to gcc.
5210         * manual/stdio.texi: Likewise.
5211         * manual/string.texi: Likewise.
5212
5213 2018-02-07  Joseph Myers  <joseph@codesourcery.com>
5214
5215         [BZ #17979]
5216         * posix/bits/types.h (__int_least8_t): New typedef.
5217         (__uint_least8_t): Likewise.
5218         (__int_least16_t): Likewise.
5219         (__uint_least16_t): Likewise.
5220         (__int_least32_t): Likewise.
5221         (__uint_least32_t): Likewise.
5222         (__int_least64_t): Likewise.
5223         (__uint_least64_t): Likewise.
5224         * sysdeps/generic/stdint.h (int_least8_t): Define using
5225         __int_least8_t.
5226         (int_least16_t): Define using __int_least16_t.
5227         (int_least32_t): Define using __int_least32_t.
5228         (int_least64_t): Define using __int_least64_t.
5229         (uint_least8_t): Define using __uint_least8_t.
5230         (uint_least16_t): Define using __uint_least16_t.
5231         (uint_least32_t): Define using __uint_least32_t.
5232         (uint_least64_t): Define using __uint_least64_t.
5233         * wcsmbs/uchar.h: Include <bits/types.h>.
5234         (char16_t): Define using __uint_least16_t conditional only on
5235         [!__USE_ISOCXX11].
5236         (char32_t): Define using __uint_least32_t conditional only on
5237         [!__USE_ISOCXX11].
5238         * wcsmbs/test-char-types.c: New file.
5239         * wcsmbs/Makefile (tests): Add test-char-types.
5240
5241         * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
5242         version to 4.0.1.
5243
5244 2018-02-07  Zack Weinberg  <zackw@panix.com>
5245
5246         * bits/_G_config.h: Move back to sysdeps/generic/_G_config.h.
5247         Delete all contents except for definitions of _G_HAVE_MMAP and
5248         _G_HAVE_MREMAP.  Add commentary explaining those two symbols.
5249         * sysdeps/unix/sysv/linux/bits/_G_config.h: Move back to
5250         sysdeps/unix/sysv/linux/_G_config.h.  Make same content
5251         change as above.
5252
5253         * libio/libio.h: Don't include bits/_G_config.h here.
5254         Include stddef.h with __need_wchar_t defined.  Include
5255         bits/types/__mbstate_t.h, bits/types/wint_t.h, and gconv.h.
5256         Define _IO_iconv_t here, directly.
5257         Don't define _IO_HAVE_ST_BLKSIZE.
5258         * libio/libioP.h: Include _G_config.h here.  Move include of
5259         shlib-compat.h up with rest of includes.  Simplify conditionals
5260         controlling definition of _IO_JUMPS_OFFSET.
5261
5262         * csu/init.c: Remove always-true #if around entire file.
5263         Don't include stdio.h.  Set _IO_stdin_used to hardwired
5264         constant 0x20001, and update commentary.
5265         * include/stdio.h, sysdeps/ieee754/ldbl-opt/nldbl-compat.h:
5266         Replace all uses of _G_va_list with __gnuc_va_list.
5267         * libio/filedoalloc.c: Use #if defined _STATBUF_ST_BLKSIZE
5268         instead of #if _IO_HAVE_ST_BLKSIZE.
5269         * libio/fileops.c: Test _G_HAVE_MREMAP with #if, not #ifdef.
5270         * libio/iofdopen.c, libio/iofopen.c: Test _G_HAVE_MMAP with #if,
5271         not #ifdef.
5272
5273         * libio/bits/libio.h: Move back to libio/libio.h and adjust
5274         multiple-include guard to match.
5275         Merge contents of libio/bits/libio-ldbl.h and include/libio.h
5276         into this file.
5277         Remove preprocessor conditionals that are always true and/or
5278         redundant to other preprocessor conditionals in the same nest.
5279         Include shlib-compat.h unconditionally.
5280         Error out if _LIBC is not defined, or if _ISOMAC is defined,
5281         or if _IO_MTSAFE_IO is defined but _IO_lock_t_defined is not
5282         defined after including stdio.h.
5283         Use __BEGIN_DECLS/__END_DECLS.
5284
5285         * libio/bits/libio-ldbl.h, include/bits/libio.h: Delete file.
5286         * include/stdio.h, libio/iolibio.h, libio/libioP.h: Include
5287         libio.h as <libio/libio.h> rather than as <bits/libio.h>.
5288
5289 2018-02-07  Zack Weinberg  <zackw@panix.com>
5290
5291         * libio/bits/types/__fpos_t.h, libio/bits/types/__fpos64_t.h:
5292         New single-type headers split from _G_config.h.
5293         * libio/bits/types/cookie_io_functions_t.h
5294         * libio/bits/types/struct_FILE.h
5295         New single-type headers split from libio.h.
5296
5297         * libio/Makefile: Install the above new headers.  Don't install
5298         libio.h, _G_config.h, bits/libio.h, bits/_G_config.h, or
5299         bits/libio-ldbl.h.
5300         * libio/_G_config.h, libio/libio.h: Delete file.
5301
5302         * libio/bits/libio.h: Remove improper-inclusion guard.
5303         Include stdio.h and don't repeat anything that it does.
5304         Define _IO_fpos_t as __fpos_t, _IO_fpos64_t as __fpos64_t,
5305         _IO_BUFSIZ as BUFSIZ, _IO_va_list as __gnuc_va_list,
5306         __io_read_fn as cookie_read_function_t,
5307         __io_write_fn as cookie_write_function_t,
5308         __io_seek_fn as cookie_seek_function_t,
5309         __io_close_fn as cookie_close_function_t,
5310         and _IO_cookie_io_functions_t as cookie_io_functions_t.
5311         Define _STDIO_USES_IOSTREAM, __HAVE_COLUMN, and _IO_file_flags
5312         here, in the "compatibility defines" section.  Remove an #if 0
5313         block.  Use the "body" macros from bits/types/struct_FILE.h to
5314         define _IO_getc_unlocked, _IO_putc_unlocked, _IO_feof_unlocked,
5315         and _IO_ferror_unlocked.
5316         Move prototypes of __uflow and __overflow...
5317
5318         * libio/stdio.h: ...here.  Don't include bits/libio.h.
5319         Don't define _STDIO_USES_IOSTREAM.  Get __gnuc_va_list
5320         directly from stdarg.h.  Include bits/types/__fpos_t.h,
5321         bits/types/__fpos64_t.h, bits/types/struct_FILE.h,
5322         and, when __USE_GNU, bits/types/cookie_io_functions_t.h.
5323         Use __gnuc_va_list, not _G_va_list; __fpos_t, not _G_fpos_t;
5324         __fpos64_t, not _G_fpos64_t; FILE, not struct _IO_FILE;
5325         cookie_io_functions_t, not _IO_cookie_io_functions_t;
5326         __ssize_t, not _IO_ssize_t.  Unconditionally define
5327         BUFSIZ as 8192 and EOF as (-1).
5328
5329         * libio/bits/stdio.h: Add multiple-include guard.  Use the "body"
5330         macros from bits/types/struct_FILE.h instead of _IO_* macros
5331         from libio.h; use __gnuc_va_list instead of va_list and __ssize_t
5332         instead of _IO_ssize_t.
5333         * libio/bits/stdio2.h: Similarly.
5334
5335         * libio/iolibio.h: Add multiple-include guard.
5336         Include bits/libio.h after stdio.h.
5337         * libio/libioP.h: Add multiple-include guard.
5338         Include stdio.h and bits/libio.h before iolibio.h.
5339
5340         * include/bits/types/__fpos_t.h, include/bits/types/__fpos64_t.h
5341         * include/bits/types/cookie_io_functions_t.h
5342         * include/bits/types/struct_FILE.h: New wrappers.
5343
5344         * bits/_G_config.h, sysdeps/unix/sysv/linux/_G_config.h:
5345         Get definitions of _G_fpos_t and _G_fpos64_t from
5346         bits/types/__fpos_t.h and bits/types/__fpos64_t.h
5347         respectively.  Remove improper-inclusion guards.
5348
5349         * conform/data/stdio.h-data: Update expectations of va_list.
5350         * scripts/check-installed-headers.sh: Remove special case for
5351         libio.h and _G_config.h.
5352
5353 2018-02-07  Joseph Myers  <joseph@codesourcery.com>
5354
5355         [BZ #15105]
5356         [BZ #19463]
5357         * include/sys/sysmacros.h [!_ISOMAC]
5358         (__SYSMACROS_NEED_IMPLEMENTATION): Define macro.
5359         [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC]
5360         (_SYS_SYSMACROS_H_WRAPPER): Likewise.
5361         [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_major): Use
5362         libc_hidden_proto.
5363         [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_minor): Likewise.
5364         [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_makedev):
5365         Likewise.
5366         [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__SYSMACROS_DECL_TEMPL):
5367         Undefine and redefine to add use __gnu_dev_ prefix.
5368         [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__SYSMACROS_IMPL_TEMPL):
5369         Likewise.
5370         [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_major): Declare
5371         and define as hidden inline function.
5372         [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_minor):
5373         Likewise.
5374         [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_makedev):
5375         Likewise.
5376         * misc/makedev.c (OUT_OF_LINE_IMPL_TEMPL): Use __gnu_dev_ prefix.
5377         (gnu_dev_major): Use weak_alias and libc_hidden_weak.
5378         (gnu_dev_minor): Likewise.
5379         (gnu_dev_makedev): Likewise.
5380         * csu/check_fds.c (check_one_fd): Use __gnu_dev_makedev instead of
5381         makedev.
5382         * posix/wordexp.c (exec_comm_child): Likewise.
5383         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Use __gnu_dev_minor
5384         instead of minor and __gnu_dev_major instead of major.
5385         * sysdeps/unix/sysv/linux/device-nrs.h (DEV_TTY_P): Use
5386         __gnu_dev_major instead of major.
5387         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): Use
5388         __gnu_dev_major instead of gnu_dev_major and __gnu_dev_minor
5389         instead of gnu_dev_minor.
5390         * sysdeps/unix/sysv/linux/ptsname.c (MASTER_P): Likewise.
5391         (SLAVE_P): Likewise.
5392         (__ptsname_internal): Use __gnu_dev_minor instead of minor.
5393         * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Use __gnu_dev_major
5394         instead of major.
5395
5396         [BZ #21313]
5397         * locale/weight.h (findidx): Disable -Wmaybe-uninitialized for -Os
5398         in another place.
5399         * locale/weightwc.h (findidx): Likewise.
5400
5401 2018-02-07  Wilco Dijkstra  <wdijkstr@arm.com>
5402
5403         * manual/probes.texi (slowlog): Delete documentation of removed probe.
5404         (slowlog_inexact): Likewise
5405         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Remove slow paths.
5406         * sysdeps/ieee754/dbl-64/ulog.h: Remove unused declarations.
5407
5408 2018-02-07  Igor Gnatenko  <ignatenko@redhat.com>
5409
5410         [BZ #22797]
5411         * sysdeps/unix/sysv/linux/bits/mman-shared.h (pkey_get): Add
5412         missing second underscore to parameter name.
5413
5414 2018-02-06  Joseph Myers  <joseph@codesourcery.com>
5415
5416         [BZ #14508]
5417         [BZ #15512]
5418         [BZ #17082]
5419         [BZ #20530]
5420         * bits/byteswap.h: Update file comment.  Do not include
5421         <bits/byteswap-16.h>.
5422         (__bswap_constant_16): Cast result to __uint16_t.  Use signed 0xff
5423         constant.
5424         (__bswap_16): Define as inline function.
5425         (__bswap_constant_32): Reformat definition.
5426         (__bswap_32): Always define as inline function, not macro, using
5427         __uint32_t.  Use __builtin_bswap32 if [__GNUC_PREREQ (4, 3)],
5428         otherwise __bswap_constant_32.
5429         (__bswap_constant_64): Reformat definition.  Do not use
5430         __extension__ here.
5431         (__bswap_64): Always define as inline function, not macro.  Use
5432         __extension__ on function definition.  Use __builtin_bswap64 if
5433         [__GNUC_PREREQ (4, 3)], otherwise __bswap_constant_64.
5434         * string/test-endian-file-scope.c: New file.
5435         * string/test-endian-sign-conversion.c: Likewise.
5436         * string/Makefile (headers): Remove bits/byteswap-16.h.
5437         (tests): Add test-endian-file-scope and
5438         test-endian-sign-conversion.
5439         (CFLAGS-test-endian-sign-conversion.c): New variable.
5440         * bits/byteswap-16.h: Remove file.
5441         * sysdeps/ia64/bits/byteswap-16.h: Likewise.
5442         * sysdeps/ia64/bits/byteswap.h: Likewise.
5443         * sysdeps/m68k/bits/byteswap.h: Likewise.
5444         * sysdeps/s390/bits/byteswap-16.h: Likewise.
5445         * sysdeps/s390/bits/byteswap.h: Likewise.
5446         * sysdeps/tile/bits/byteswap.h: Likewise.
5447         * sysdeps/x86/bits/byteswap-16.h: Likewise.
5448         * sysdeps/x86/bits/byteswap.h: Likewise.
5449
5450         [BZ #17721]
5451         * misc/sys/cdefs.h [!__GNUC__ && (__cplusplus || (__STDC_VERSION__
5452         && __STDC_VERSION__ >= 199901L))] (__inline): Define to inline.
5453         [!__GNUC_PREREQ (2,92) && __STDC_VERSION__ && __STDC_VERSION__ >=
5454         199901L] (__restrict): Define to restrict.
5455
5456         [BZ #19667]
5457         * string/testcopy.c: Include <support/support.h>.  Do not include
5458         <malloc.h>.  Use <support/test-driver.c>.
5459         (main): Rename to do_test.  Make static.  Use xmalloc instead of
5460         malloc.
5461
5462         [BZ #13575]
5463         * posix/bits/posix1_lim.h: Include <bits/wordsize.h>.
5464         [!SSIZE_MAX && !(__WORDSIZE == 64 || __WORDSIZE32_SIZE_ULONG)]
5465         (SSIZE_MAX): Define to INT_MAX.
5466         * posix/test-ssize-max.c: New file.
5467         * posix/Makefile (tests): Add test-ssize-max.
5468
5469         [BZ #19668]
5470         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c: Include
5471         <support/support.h>.  Do not include <malloc.h>.
5472         (query_auxv): Use xmalloc instead of malloc.
5473
5474         [BZ #14553]
5475         * posix/sys/types.h (loff_t): Only define for [__USE_MISC].
5476         * sysdeps/unix/sysv/linux/sys/quota.h (dqoff): Use __loff_t
5477         instead of loff_t.
5478
5479 2018-02-06  Florian Weimer <fweimer@redhat.com>
5480
5481         [BZ #18023]
5482         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
5483         Use scratch_buffer instead of extend_alloca.
5484
5485 2018-02-06  Zack Weinberg  <zackw@panix.com>
5486
5487         * libio/stdio.h: Don't define getc or putc as macros.
5488         * libio/bits/stdio.h (getchar, putchar): Use getc and putc,
5489         not _IO_getc and _IO_putc.
5490
5491         * stdio-common/tstgetln.c: Don't redefine FILE, va_list, or BUFSIZ.
5492         * stdio-common/tstgetln.c: Don't redefine ssize_t.
5493
5494 2018-02-06  Joseph Myers  <joseph@codesourcery.com>
5495
5496         * sysdeps/gnu/netinet/tcp.h (TCP_FASTOPEN_KEY): New macro.
5497         (TCP_FASTOPEN_NO_COOKIE): Likewise.
5498
5499         * sysdeps/unix/sysv/linux/bits/in.h (IPV6_FREEBIND): New macro.
5500
5501         [BZ #14890]
5502         * elf/elf.h (NT_PRFPREG): New macro.
5503         (NT_S390_VXRS_LOW): Likewise.
5504         (NT_S390_VXRS_HIGH): Likewise.
5505         (NT_S390_GS_CB): Likewise.
5506         (NT_S390_GS_BC): Likewise.
5507         (NT_S390_RI_CB): Likewise.
5508
5509         * sysdeps/unix/sysv/linux/aarch64/bits/mman.h [__USE_MISC]
5510         (MAP_SYNC): New macro.
5511         * sysdeps/unix/sysv/linux/arm/bits/mman.h [__USE_MISC] (MAP_SYNC):
5512         Likewise.
5513         * sysdeps/unix/sysv/linux/ia64/bits/mman.h [__USE_MISC]
5514         (MAP_SYNC): Likewise.
5515         * sysdeps/unix/sysv/linux/m68k/bits/mman.h [__USE_MISC]
5516         (MAP_SYNC): Likewise.
5517         * sysdeps/unix/sysv/linux/microblaze/bits/mman.h [__USE_MISC]
5518         (MAP_SYNC): Likewise.
5519         * sysdeps/unix/sysv/linux/nios2/bits/mman.h [__USE_MISC]
5520         (MAP_SYNC): Likewise.
5521         * sysdeps/unix/sysv/linux/riscv/bits/mman.h [__USE_MISC]
5522         (MAP_SYNC): Likewise.
5523         * sysdeps/unix/sysv/linux/s390/bits/mman.h [__USE_MISC]
5524         (MAP_SYNC): Likewise.
5525         * sysdeps/unix/sysv/linux/sh/bits/mman.h [__USE_MISC] (MAP_SYNC):
5526         Likewise.
5527         * sysdeps/unix/sysv/linux/x86/bits/mman.h [__USE_MISC] (MAP_SYNC):
5528         Likewise.
5529
5530         * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_MISC]
5531         (MAP_SHARED_VALIDATE): New macro.
5532         * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
5533         (MAP_SHARED_VALIDATE): Likewise.
5534
5535 2018-02-05  H.J. Lu  <hongjiu.lu@intel.com>
5536
5537         * elf/dl-addr.c (determine_info): Use ADDRIDX with DT_GNU_HASH.
5538         * elf/dl-lookup.c (_dl_setup_hash): Likewise.
5539         * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
5540
5541 2018-02-05  H.J. Lu  <hongjiu.lu@intel.com>
5542
5543         * elf/elf.h (DT_SYMTAB_SHNDX): New.  Set to 34.
5544         (DT_NUM): Updated to 35.
5545
5546 2018-02-05  H.J. Lu  <hongjiu.lu@intel.com>
5547
5548         * sysdeps/i386/dl-machine.h (elf_machine_rel): Replace
5549         __builtin_expect with __glibc_likely and __glibc_unlikely.
5550         (elf_machine_rela): Likewise.
5551         (elf_machine_lazy_rel): Likewise.
5552
5553 2018-02-05  H.J. Lu  <hongjiu.lu@intel.com>
5554
5555         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Replace
5556         __builtin_expect with __glibc_likely and __glibc_unlikely.
5557         (elf_machine_lazy_rel): Likewise.
5558
5559 2018-02-05  H.J. Lu  <hongjiu.lu@intel.com>
5560
5561         [BZ #22638]
5562         * sysdeps/sparc/sparc32/start.S (_start): Check PIC instead of
5563         SHARED.
5564         * sysdeps/sparc/sparc64/start.S (_start): Likewise.
5565
5566 2018-02-05  Andreas Schwab  <schwab@suse.de>
5567
5568         [BZ #22761]
5569         * assert/assert-perr.c (__assert_perror_fail): Append %n to format
5570         string.
5571
5572 2018-02-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5573
5574         * stdlib/test-atexit-race-common.c [!defined PTHREAD_STACK_MIN]: Do
5575         not check against PTHREAD_STACK_MIN.
5576
5577 2018-02-02  Sean McKean  <smckean83@gmail.com>
5578
5579         [BZ #22735]
5580         * time/time.h (clock): Reference CLOCKS_PER_SEC in comment.
5581
5582 2018-02-02  Florian Weimer  <fweimer@redhat.com>
5583
5584         [BZ #22753]
5585         * sysdeps/posix/preadv2.c (preadv2): Handle offset == -1.
5586         * sysdeps/posix/preadv64v2.c (preadv64v2): Likewise.
5587         * sysdeps/posix/pwritev2.c (pwritev2): Likewise.
5588         * sysdeps/posix/pwritev64v2.c (pwritev64v2): Likweise.
5589         * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Likewise.
5590         * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
5591         * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
5592         * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likweise.
5593         * manual/llio.texi (Scatter-Gather): Mention offset -1.
5594         * misc/tst-preadvwritev-common.c (do_test_without_offset): New.
5595         * misc/tst-preadvwritev2.c (do_test): Call it.
5596         * misc/tst-preadvwritev64v2.c (do_test): Likewise.
5597
5598 2018-02-02  Siddhesh Poyarekar  <siddhesh@sourceware.org>
5599
5600         * sysdeps/aarch64/memcmp.S: Use L() macro for labels.
5601
5602         * benchtests/bench-memcmp.c: Print json instead of plain text.
5603
5604         * benchtests/bench-memcmp.c (do_test): Call realloc_buf for
5605         every test run.
5606
5607 2018-02-01  Joseph Myers  <joseph@codesourcery.com>
5608
5609         * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
5610         version to 4.15.
5611         (s390_sthyi): New syscall.
5612
5613         * sysdeps/generic/ldbl-classify-compat.h: New file.
5614         * sysdeps/arm/ldbl-classify-compat.h: Likewise.
5615         * sysdeps/m68k/coldfire/ldbl-classify-compat.h: Likewise.
5616         * sysdeps/microblaze/ldbl-classify-compat.h: Likewise.
5617         * sysdeps/mips/ldbl-classify-compat.h: Likewise.
5618         * sysdeps/nios2/ldbl-classify-compat.h: Likewise.
5619         * sysdeps/sh/ldbl-classify-compat.h: Likewise.
5620         * sysdeps/ieee754/dbl-64/s_finite.c: Include
5621         <ldbl-classify-compat.h>.
5622         [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
5623         * sysdeps/ieee754/dbl-64/s_isinf.c: Include
5624         <ldbl-classify-compat.h>.
5625         [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
5626         * sysdeps/ieee754/dbl-64/s_isnan.c: Include
5627         <ldbl-classify-compat.h>.
5628         [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
5629         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Include
5630         <ldbl-classify-compat.h>.
5631         [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
5632         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Include
5633         <ldbl-classify-compat.h>.
5634         [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
5635         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Include
5636         <ldbl-classify-compat.h>.
5637         [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
5638         * sysdeps/arm/math_private.h (LDBL_CLASSIFY_COMPAT): Remove macro.
5639         * sysdeps/mips/math_private.h (LDBL_CLASSIFY_COMPAT): Likewise.
5640         * sysdeps/m68k/coldfire/math_private.h: Remove file.
5641         * sysdeps/microblaze/math_private.h: Likewise.
5642         * sysdeps/nios2/math_private.h: Likewise.
5643         * sysdeps/sh/math_private.h: Likewise.
5644
5645         * sysdeps/m68k/coldfire/fpu/math_private.h: Move to ....
5646         * sysdeps/m68k/coldfire/math_private.h: ... here.
5647         * sysdeps/m68k/coldfire/nofpu/math_private.h: Remove file.
5648         * sysdeps/tile/math_private.h: Likewise.
5649         * sysdeps/microblaze/math_private.h (libc_feholdexcept_setround):
5650         Remove macro.
5651         * sysdeps/nios2/math_private.h (libc_feholdexcept_setround):
5652         Likewise.
5653
5654         * sysdeps/m68k/coldfire/nofpu/math_private.h (libc_fesetround):
5655         Remove macro.
5656         (libc_fetestexcept): Likewise.
5657         (libc_feupdateenv_test): Likewise.
5658         * sysdeps/microblaze/math_private.h (libc_fesetround): Likewise.
5659         (libc_fetestexcept): Likewise.
5660         (libc_feupdateenv_test): Likewise.
5661         * sysdeps/nios2/math_private.h (libc_fesetround): Likewise.
5662         (libc_fetestexcept): Likewise.
5663         (libc_feupdateenv_test): Likewise.
5664         * sysdeps/tile/math_private.h (libc_fesetround): Likewise.
5665         (libc_fetestexcept): Likewise.
5666         (libc_feupdateenv_test): Likewise.
5667
5668         * sysdeps/generic/math_private.h
5669         [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (feholdexcept):
5670         New inline function.
5671         [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__feholdexcept):
5672         Likewise.
5673
5674         * include/fenv.h [!_ISOMAC && !FE_TONEAREST]: Give #error.
5675         [!_ISOMAC] (FE_HAVE_ROUNDING_MODES): New macro.
5676         * sysdeps/generic/math_private.h
5677         [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (fegetenv): New
5678         inline function.
5679         [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__fegetenv):
5680         Likewise.
5681         [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (fesetenv):
5682         Likewise.
5683         [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__fesetenv):
5684         Likewise.
5685         [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (feupdateenv):
5686         Likewise.
5687         [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__feupdateenv):
5688         Likewise.
5689         [!FE_HAVE_ROUNDING_MODES] (fegetround): Likewise.
5690         [!FE_HAVE_ROUNDING_MODES] (__fegetround): Likewise.
5691         [!FE_HAVE_ROUNDING_MODES] (fesetround): Likewise.
5692         [!FE_HAVE_ROUNDING_MODES] (__fesetround): Likewise.
5693         * sysdeps/tile/math_private.h (fegetenv): Remove inline function.
5694         (__fegetenv): Likewise.
5695         (fesetenv): Likewise.
5696         (__fesetenv): Likewise.
5697         (feupdateenv): Likewise.
5698         (__feupdateenv): Likewise.
5699         (fegetround): Likewise.
5700         (__fegetround): Likewise.
5701         (fesetround): Likewise.
5702         (__fesetround): Likewise.
5703
5704         * sysdeps/generic/math_private.h [FE_ALL_EXCEPT == 0]
5705         (feraiseexcept): New macro.
5706         [FE_ALL_EXCEPT == 0] (__feraiseexcept): Likewise.
5707         * sysdeps/m68k/coldfire/nofpu/math_private.h (feraiseexcept):
5708         Remove macro.
5709         (__feraiseexcept): Likewise.
5710         (feclearexcept): Likewise.
5711         * sysdeps/microblaze/math_private.h (feraiseexcept): Likewise.
5712         (__feraiseexcept): Likewise.
5713         (feclearexcept): Likewise.
5714         * sysdeps/nios2/math_private.h (feraiseexcept): Likewise.
5715         (__feraiseexcept): Likewise.
5716         (feclearexcept): Likewise.
5717         * sysdeps/tile/math_private.h (feraiseexcept): Likewise.
5718         (__feraiseexcept): Likewise.
5719         (feclearexcept): Likewise.
5720         (fetestexcept): Likewise.
5721
5722         * sysdeps/m68k/coldfire/math-tests.h: New file.
5723
5724         * sysdeps/m68k/fpu/bits/fenv.h: Move to ....
5725         * sysdeps/m68k/bits/fenv.h: ... here.
5726         [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_INEXACT): Do
5727         not define.
5728         [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_DIVBYZERO):
5729         Likewise.
5730         [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_UNDERFLOW):
5731         Likewise.
5732         [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_OVERFLOW):
5733         Likewise.
5734         [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_INVALID):
5735         Likewise.
5736         [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_ALL_EXCEPT):
5737         Define to 0.
5738         [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__]
5739         (__FE_UNDEFINED): New enum constant.
5740         [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_TOWARDZERO):
5741         Do not define.
5742         [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_DOWNWARD):
5743         Likewise.
5744         [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_UPWARD):
5745         Likewise.
5746         [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (fenv_t): Define
5747         to match generic bits/fenv.h.
5748         [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_NOMASK_ENV):
5749         Do not define.
5750
5751         * soft-fp/double.h (union _FP_UNION_D): Do not use attribute
5752         packed on bits.
5753         * soft-fp/extended.h (union _FP_UNION_E): Likewise.
5754         * soft-fp/half.h (union _FP_UNION_H): Likewise.
5755         * soft-fp/quad.h (union _FP_UNION_Q): Likewise.
5756         * soft-fp/single.h (union _FP_UNION_S): Likewise.
5757
5758 2018-02-01  Carlos O'Donell  <carlos@redhat.com>
5759             Ramin Seyed-Moussavi  <lordrasmus@gmail.com>
5760             Joseph Myers  <joseph@codesourcery.com>
5761
5762         [BZ #21314]
5763         * sysdeps/ieee754/dbl-64/s_log1p.c: Include <libc-diag.h>.
5764         (__log1p): Disable -Wmaybe-uninitialized for -Os around
5765         computation using c.
5766         * sysdeps/ieee754/flt-32/s_log1pf.c: Include <libc-diag.h>.
5767         (__log1pf): Disable -Wmaybe-uninitialized for -Os around
5768         computation using c.
5769
5770 2018-02-01  Dmitry V. Levin  <ldv@altlinux.org>
5771
5772         * version.h (RELEASE): Set to "development".
5773         (VERSION): Set to "2.27.9000".
5774         * NEWS (2.28): New section.
5775
5776         * version.h (RELEASE): Set to "stable".
5777         (VERSION): Set to "2.27".
5778         * include/features.h (__GLIBC_MINOR__): Set to 2.27.
5779
5780         * NEWS: Add the list of bugs fixed in 2.27.
5781
5782 2018-02-01  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
5783
5784         * stdlib/test-atexit-race-common.c (do_test): Check stack size
5785         against PTHREAD_STACK_MIN.
5786
5787 2018-02-01  Dmitry V. Levin  <ldv@altlinux.org>
5788
5789         * manual/contrib.texi (Palmer Dabbelt, Arjun Shankar, Florian Weimer):
5790         New entries.
5791         (Rafal Luzynski, Andreas Schwab): Update.
5792
5793 2018-02-01  Rafal Luzynski  <digitalfreak@lingonborough.com>
5794
5795         [BZ #10871]
5796         * NEWS: List the languages which actually use the alternative
5797         months feature in this release.  Also explain that "alt_mon" and
5798         "ab_alt_mon" are optional.
5799
5800 2018-01-31  Il'ya Malakhov  <ilmalakhov@yandex.ru>
5801
5802         [BZ #22765]
5803         * crypt/badsalttest.c (do_test): Set cd.initialized to 0.
5804
5805 2018-01-31  Dmitry V. Levin  <ldv@altlinux.org>
5806
5807         * manual/install.texi (Tools for Compilation): Update the newest
5808         versions of gcc, binutils, texinfo, gawk, bison, and sed.
5809         * INSTALL: Regenerated.
5810
5811 2018-01-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5812
5813         * sysdeps/pthread/allocalim.h (__libc_use_alloca): Use __glibc_likely
5814         instead of __builtin_expect.
5815
5816 2018-01-30  Florian Weimer  <fweimer@redhat.com>
5817
5818         * nss/bug17079.c (do_test): Use nss_files only for reading passwd
5819         data.
5820         * nss/tst-nss-getpwent.c (do_test): Likewise.
5821
5822 2018-01-30  Rafal Luzynski  <digitalfreak@lingonborough.com>
5823
5824         [BZ #10871]
5825         * localedata/locales/hr_HR (mon): Rename to...
5826         (alt_mon): This.
5827         (mon): Import from CLDR (genitive case).
5828         (d_t_fmt): Update the comment.
5829
5830 2018-01-29  Andreas Schwab  <schwab@linux-m68k.org>
5831
5832         * sysdeps/posix/fpathconf.c (__fpathconf): Verify the values of
5833         _POSIX_CHOWN_RESTRICTED, _POSIX_NO_TRUNC, _POSIX_VDISABLE.
5834         * sysdeps/posix/pathconf.c (__pathconf): Likewise.
5835
5836 2018-01-29  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5837
5838         * mach/Versions: Fix version when __mach_host_self_ was added.
5839         * hurd/Versions: Fix version when _hurd_exec_paths was added.
5840         * sysdeps/mach/hurd/i386/ld.abilist: New file.
5841         * sysdeps/mach/hurd/i386/libBrokenLocale.abilist: New file.
5842         * sysdeps/mach/hurd/i386/libanl.abilist: New file.
5843         * sysdeps/mach/hurd/i386/libc.abilist: New file.
5844         * sysdeps/mach/hurd/i386/libcrypt.abilist: New file.
5845         * sysdeps/mach/hurd/i386/libdl.abilist: New file.
5846         * sysdeps/mach/hurd/i386/libm.abilist: New file.
5847         * sysdeps/mach/hurd/i386/libnsl.abilist: New file.
5848         * sysdeps/mach/hurd/i386/libresolv.abilist: New file.
5849         * sysdeps/mach/hurd/i386/librt.abilist: New file.
5850         * sysdeps/mach/hurd/i386/libutil.abilist: New file.
5851         * sysdeps/pthread/allocalim.h (__libc_use_alloca): Commute operands of
5852         || to respect codestyle.
5853         * libio/tst-memstream3.c (_FWRITE): Rename to FWRITE_FUNC.
5854         (do_test_bz20181): Rename accordingly.
5855         * malloc/malloc.c: Include <assert.h>.
5856         (assert): Do not define.
5857         [!defined NDEBUG] (__assert_fail): Define to __malloc_assert.
5858         * bits/fcntl.h: Fix comment for FREAD and FWRITE.
5859         * sysdeps/mach/hurd/bits/fcntl.h: Likewise.
5860         * sysdeps/mach/hurd/hp-timing.h: New file.
5861         * sysdeps/mach/hurd/i386/tlsdesc.sym: New file.
5862
5863 2018-01-29  Darius Rad  <darius@bluespec.com>
5864
5865         * sysdeps/unix/sysv/linux/riscv/ipc_priv.h: New file.
5866
5867 2018-01-29  Palmer Dabbelt  <palmer@sifive.com>
5868
5869         * sysdeps/init_array/crti.S (.section .init_array): Add
5870         PREINIT_FUNCTION when defined.
5871         * manual/math.texi: RISC-V supports _Float128 and _Float64x.
5872         * config.h.in: Regenerate.
5873         * manual/platform.texi: Add RISC-V documenation for
5874         __riscv_flush_icache.
5875         * sysdeps/riscv/__longjmp.S: New file.
5876         * sysdeps/riscv/backtrace.c: Likewise.
5877         * sysdeps/riscv/bits/endian.h: Likewise.
5878         * sysdeps/riscv/bits/setjmp.h: Likewise.
5879         * sysdeps/riscv/bits/wordsize.h: Likewise.
5880         * sysdeps/riscv/bsd-_setjmp.c: Likewise.
5881         * sysdeps/riscv/bsd-setjmp.c: Likewise.
5882         * sysdeps/riscv/dl-trampoline.S: Likewise.
5883         * sysdeps/riscv/gccframe.h: Likewise.
5884         * sysdeps/riscv/jmpbuf-offsets.h: Likewise.
5885         * sysdeps/riscv/jmpbuf-unwind.h: Likewise.
5886         * sysdeps/riscv/machine-gmon.h: Likewise.
5887         * sysdeps/riscv/memusage.h: Likewise.
5888         * sysdeps/riscv/setjmp.S: Likewise.
5889         * sysdeps/riscv/sys/asm.h: Likewise.
5890         * sysdeps/riscv/tls-macros.h: Likewise.
5891         * sysdeps/riscv/dl-tls.h: New file.
5892         * sysdeps/riscv/libc-tls.c: Likewise.
5893         * sysdeps/riscv/nptl/tcb-offsets.sym: Likewise.
5894         * sysdeps/riscv/nptl/tls.h: Likewise.
5895         * sysdeps/riscv/stackinfo.h: Likewise.
5896         * sysdeps/riscv/bits/fenv.h: New file.
5897         * sysdeps/riscv/e_sqrtl.c: Likewise.
5898         * sysdeps/riscv/fpu_control.h: Likewise.
5899         * sysdeps/riscv/math-tests.h: Likewise.
5900         * sysdeps/riscv/nofpu/Implies: Likewise.
5901         * sysdeps/riscv/sfp-machine.h: Likewise.
5902         * sysdeps/riscv/tininess.h: Likewise.
5903         * sysdeps/riscv/rv64/rvd/s_ceil.c: New file.
5904         * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
5905         * sysdeps/riscv/rv64/rvd/s_llrint.c: Likewise.
5906         * sysdeps/riscv/rv64/rvd/s_llround.c: Likewise.
5907         * sysdeps/riscv/rv64/rvd/s_lrint.c: Likewise.
5908         * sysdeps/riscv/rv64/rvd/s_lround.c: Likewise.
5909         * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
5910         * sysdeps/riscv/rv64/rvd/s_rint.c: Likewise.
5911         * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
5912         * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
5913         * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
5914         * sysdeps/riscv/rv64/rvf/s_llrintf.c: Likewise.
5915         * sysdeps/riscv/rv64/rvf/s_llroundf.c: Likewise.
5916         * sysdeps/riscv/rv64/rvf/s_lrintf.c: Likewise.
5917         * sysdeps/riscv/rv64/rvf/s_lroundf.c: Likewise.
5918         * sysdeps/riscv/rvd/e_sqrt.c: Likewise.
5919         * sysdeps/riscv/rvd/s_copysign.c: Likewise.
5920         * sysdeps/riscv/rvd/s_finite.c: Likewise.
5921         * sysdeps/riscv/rvd/s_fma.c: Likewise.
5922         * sysdeps/riscv/rvd/s_fmax.c: Likewise.
5923         * sysdeps/riscv/rvd/s_fmin.c: Likewise.
5924         * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
5925         * sysdeps/riscv/rvd/s_isinf.c: Likewise.
5926         * sysdeps/riscv/rvd/s_isnan.c: Likewise.
5927         * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
5928         * sysdeps/riscv/rvf/e_sqrtf.c: Likewise.
5929         * sysdeps/riscv/rvf/fclrexcpt.c: Likewise.
5930         * sysdeps/riscv/rvf/fegetenv.c: Likewise.
5931         * sysdeps/riscv/rvf/fegetmode.c: Likewise.
5932         * sysdeps/riscv/rvf/fegetround.c: Likewise.
5933         * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
5934         * sysdeps/riscv/rvf/fesetenv.c: Likewise.
5935         * sysdeps/riscv/rvf/fesetexcept.c: Likewise.
5936         * sysdeps/riscv/rvf/fesetmode.c: Likewise.
5937         * sysdeps/riscv/rvf/fesetround.c: Likewise.
5938         * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
5939         * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
5940         * sysdeps/riscv/rvf/fraiseexcpt.c: Likewise.
5941         * sysdeps/riscv/rvf/fsetexcptflg.c: Likewise.
5942         * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
5943         * sysdeps/riscv/rvf/get-rounding-mode.h: Likewise.
5944         * sysdeps/riscv/rvf/math_private.h: Likewise.
5945         * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
5946         * sysdeps/riscv/rvf/s_copysignf.c: Likewise.
5947         * sysdeps/riscv/rvf/s_finitef.c: Likewise.
5948         * sysdeps/riscv/rvf/s_floorf.c: Likewise.
5949         * sysdeps/riscv/rvf/s_fmaf.c: Likewise.
5950         * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
5951         * sysdeps/riscv/rvf/s_fminf.c: Likewise.
5952         * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
5953         * sysdeps/riscv/rvf/s_isinff.c: Likewise.
5954         * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
5955         * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
5956         * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
5957         * sysdeps/riscv/rvf/s_rintf.c: Likewise.
5958         * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
5959         * sysdeps/riscv/rvf/s_roundf.c: Likewise.
5960         * sysdeps/riscv/rvf/s_truncf.c: Likewise.
5961         * sysdeps/riscv/nptl/bits/pthreadtypes-arch.h: New file.
5962         * sysdeps/riscv/nptl/bits/semaphore.h: Likewise.
5963         * sysdeps/riscv/nptl/libc-lowlevellock.c: Likewise.
5964         * sysdeps/unix/sysv/linux/riscv/atomic-machine.h: Likewise.
5965         * sysdeps/riscv/nptl/nptl-sysdep.S: New file.
5966         * sysdeps/unix/sysv/linux/riscv/arch-fork.h: Likewise.
5967         * sysdeps/unix/sysv/linux/riscv/clone.S: Likewise.
5968         * sysdeps/unix/sysv/linux/riscv/profil-counter.h: Likewise.
5969         * sysdeps/unix/sysv/linux/riscv/pt-vfork.S: Likewise.
5970         * sysdeps/unix/sysv/linux/riscv/syscall.c: Likewise.
5971         * sysdeps/unix/sysv/linux/riscv/sysdep.S: Likewise.
5972         * sysdeps/unix/sysv/linux/riscv/sysdep.h: Likewise.
5973         * sysdeps/unix/sysv/linux/riscv/vfork.S: Likewise.
5974         * sysdeps/riscv/nptl/pthread-offsets.h: New file.
5975         * sysdeps/riscv/nptl/pthreaddef.h: Likewise.
5976         * sysdeps/unix/sysv/linux/riscv/bits/fcntl.h: Likewise.
5977         * sysdeps/unix/sysv/linux/riscv/bits/mman.h: Likewise.
5978         * sysdeps/unix/sysv/linux/riscv/bits/sigcontext.h: Likewise.
5979         * sysdeps/unix/sysv/linux/riscv/dl-cache.h: Likewise.
5980         * sysdeps/unix/sysv/linux/riscv/flush-icache.c: Likewise.
5981         * sysdeps/unix/sysv/linux/riscv/getcontext.S: Likewise.
5982         * sysdeps/unix/sysv/linux/riscv/init-first.c: Likewise.
5983         * sysdeps/unix/sysv/linux/riscv/libc-vdso.h: Likewise.
5984         * sysdeps/unix/sysv/linux/riscv/makecontext.c: Likewise.
5985         * sysdeps/unix/sysv/linux/riscv/readelflib.c: Likewise.
5986         * sysdeps/unix/sysv/linux/riscv/register-dump.h: Likewise.
5987         * sysdeps/unix/sysv/linux/riscv/setcontext.S: Likewise.
5988         * sysdeps/unix/sysv/linux/riscv/sigcontextinfo.h: Likewise.
5989         * sysdeps/unix/sysv/linux/riscv/swapcontext.S: Likewise.
5990         * sysdeps/unix/sysv/linux/riscv/sys/cachectl.h: Likewise.
5991         * sysdeps/unix/sysv/linux/riscv/sys/procfs.h: Likewise.
5992         * sysdeps/unix/sysv/linux/riscv/sys/ucontext.h: Likewise.
5993         * sysdeps/unix/sysv/linux/riscv/sys/user.h: Likewise.
5994         * sysdeps/unix/sysv/linux/riscv/ucontext-macros.h: Likewise.
5995         * sysdeps/unix/sysv/linux/riscv/ucontext_i.sym: Likewise.
5996         * sysdeps/unix/sysv/linux/riscv/dl-static.c: New file.
5997         * sysdeps/unix/sysv/linux/riscv/ldconfig.h: Likewise.
5998         * sysdeps/unix/sysv/linux/riscv/ldsodefs.h: Likewise.
5999         * sysdeps/riscv/nofpu/libm-test-ulps: New file.
6000         * sysdeps/riscv/nofpu/libm-test-ulps-name: Likewise.
6001         * sysdeps/riscv/rv64/rvd/libm-test-ulps: Likewise.
6002         * sysdeps/riscv/rv64/rvd/libm-test-ulps-name: Likewise.
6003         * sysdeps/unix/sysv/linux/riscv/localplt.data: Likewise.
6004         * sysdeps/unix/sysv/linux/riscv/rv64/c++-types.data: Likewise.
6005         * sysdeps/unix/sysv/linux/riscv/rv64/ld.abilist: Likewise.
6006         * sysdeps/unix/sysv/linux/riscv/rv64/libanl.abilist: Likewise.
6007         * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
6008         * sysdeps/unix/sysv/linux/riscv/rv64/libdl.abilist: Likewise.
6009         * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
6010         * sysdeps/unix/sysv/linux/riscv/rv64/libnsl.abilist: Likewise.
6011         * sysdeps/unix/sysv/linux/riscv/rv64/librt.abilist: Likewise.
6012         * sysdeps/unix/sysv/linux/riscv/rv64/libutil.abilist: Likewise.
6013         * sysdeps/riscv/Implies: New file.
6014         * sysdeps/riscv/Makefile: Likewise.
6015         * sysdeps/riscv/configure: Likewise.
6016         * sysdeps/riscv/configure.ac: Likewise.
6017         * sysdeps/riscv/nptl/Makefile: Likewise.
6018         * sysdeps/riscv/preconfigure: Likewise.
6019         * sysdeps/riscv/rv64/Implies-after: Likewise.
6020         * sysdeps/riscv/rv64/rvd/Implies: Likewise.
6021         * sysdeps/riscv/rv64/rvf/Implies: Likewise.
6022         * sysdeps/unix/sysv/linux/riscv/Implies: Likewise.
6023         * sysdeps/unix/sysv/linux/riscv/Makefile: Likewise.
6024         * sysdeps/unix/sysv/linux/riscv/Versions: Likewise.
6025         * sysdeps/unix/sysv/linux/riscv/configure: Likewise.
6026         * sysdeps/unix/sysv/linux/riscv/configure.ac: Likewise.
6027         * sysdeps/unix/sysv/linux/riscv/ldd-rewrite.sed: Likewise.
6028         * sysdeps/unix/sysv/linux/riscv/rv64/Implies: Likewise.
6029         * sysdeps/unix/sysv/linux/riscv/rv64/Makefile: Likewise.
6030         * sysdeps/unix/sysv/linux/riscv/shlib-versions: Likewise.
6031         * scripts/build-many-glibcs.py (Context): Add RISC-V targets.
6032         (Config): Likewise.
6033
6034 2018-01-29  Florian Weimer  <fweimer@redhat.com>
6035
6036         [BZ #22701]
6037         * include/rpcsvc/nislib.h (__nis_default_ttl): Add
6038         libnsl_hidden_proto.
6039         * include/rpcsvc/yp.h (yp_xdrall): Declare with
6040         libnsl_hidden_proto.
6041         * include/rpcsvc/ypclnt.h (yp_maplist): Likewise.
6042         * nis/Makefile (libnsl-routines): Add nss-default only for
6043         build-obsolete-nsl.
6044         * nis/nis_defaults.c (__nis_default_ttl): Add
6045         libnsl_hidden_nolink_def.
6046         * nis/rpcsvc/ypclnt.h (yp_maplist): Remove #ifdef'ed-out
6047         declaration.
6048         * nis/yp_xdr.c (xdr_ypall): Add libnsl_hidden_nolink_def.
6049         * nis/ypclnt.c (yp_maplist): Likewise.
6050
6051 2018-01-29  Romain Naour  <romain.naour@gmail.com>  (tiny change)
6052
6053         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
6054         (__ASSUME_COPY_FILE_RANGE) [__LINUX_KERNEL_VERSION < 0x040A00]: Undef.
6055
6056 2018-01-29  Joseph Myers  <joseph@codesourcery.com>
6057
6058         * scripts/build-many-glibcs.py (Context.git_checkout): Use git
6059         clean -dxfq for git updates when replacing sources.
6060
6061         * scripts/build-many-glibcs.py (Config.build_gcc): Use
6062         --disable-libcilkrts unconditionally, not just for the final GCC
6063         build for Hurd.
6064
6065         * scripts/build-many-glibcs.py (Context.checkout): Default Linux
6066         version to 4.15.
6067
6068 2018-01-29  Rafal Luzynski  <digitalfreak@lingonborough.com>
6069
6070         [BZ #10871]
6071         * localedata/locales/lt_LT (alt_mon): Import from CLDR (nominative
6072         case).
6073
6074 2018-01-29  Rafal Luzynski  <digitalfreak@lingonborough.com>
6075
6076         [BZ #10871]
6077         * localedata/locales/be_BY (mon): Rename to...
6078         (alt_mon): This, then synchronize with CLDR (nominative case).
6079         (abmon): Rename to...
6080         (ab_alt_mon): This, then synchronize with CLDR (nominative case).
6081         (mon): Import from CLDR (genitive case).
6082         (abmon): Likewise.
6083         * localedata/locales/be_BY@latin (mon): Rename to...
6084         (alt_mon): This.
6085         (mon): Add, proper genitive forms provided by Viktar Siarheichyk.
6086
6087         * localedata/locales/be_BY@latin (lang_name): Reworded to
6088         "biełaruskaja mova".
6089
6090 2018-01-29  Rafal Luzynski  <digitalfreak@lingonborough.com>
6091
6092         [BZ #10871]
6093         * localedata/locales/el_CY (mon): Renamed to...
6094         (alt_mon): This.
6095         (mon): Import from CLDR (genitive case).
6096         * localedata/locales/el_GR: Likewise.
6097
6098 2018-01-29  Rafal Luzynski  <digitalfreak@lingonborough.com>
6099
6100         [BZ #10871]
6101         * localedata/locales/ru_RU (mon): Rename to...
6102         (alt_mon): This.
6103         (abmon): Rename to...
6104         (ab_alt_mon): This.
6105         (mon): Import from CLDR (genitive case).
6106         (abmon): Copy from the old content except the 5th month which is
6107         now in the genitive case, even when abbreviated.
6108         * localedata/locales/ru_UA: Likewise.
6109         * time/tst-strptime.c (day_tests): Add an actual example of
6110         a difference between %b and %Ob in Russian.
6111
6112 2018-01-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6113
6114         * sysdeps/mach/hurd/xmknodat.c: Include <sys/sysmacros.h>.
6115         * sysdeps/mach/hurd/profil.c: Reuse `a' variable instead of introducing
6116         a `c' variable.
6117         * resolv/res-close.c: Include <stdlib.h>.
6118         * sysdeps/generic/not-cancel.h: Include <fcntl.h>, <unistd.h>,
6119         <sys/wait.h>, <time.h>, <sys/uio.h>.
6120         (NOT_CANCEL_H): Add inclusion guard.
6121         * sysdeps/generic/sigset-cvt-mask.h: Include <sigsetops.h>.
6122         * sysdeps/generic/sigsetops.h (__sigemptyset, __sigfillset,
6123         __sigandset, __sigorset, __sigaddset, __sigdelset): Make them really
6124         return 0.
6125         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Cast
6126         vm_address_t * to ElfW(Addr) * for dl_main parameter.
6127         * sysdeps/pthread/posix-timer.h (timer_ptr2id): Cast to timer_t
6128         instead of void *.
6129         * sysdeps/pthread/timer_create.c (timer_create): Do not use
6130         timer_ptr2id to cast struct timer_node * to void *.
6131         * scripts/build-many-glibcs.py [os == gnu] (build_gcc): Pass
6132         --disable-libcilkrts to gcc configure.
6133         (checkout_vcs): Add mig and gnumach repository URLs, run autoreconf,
6134         and make them the default for now.
6135         * sysdeps/mach/hurd/Makefile [$(subdir)==nis]: Add
6136         -DUSE_BINDINGDIR=1 to CFLAGS-ypclnt.c.
6137         * mach/Machrules (MIGFLAGS): Do not set -DMACH_IPC_COMPAT=0.
6138         * mach/mach/mach_traps.h: Drop comment about MACH_IPC_COMPAT.
6139         * sysdeps/mach/hurd/fork.c (__fork): Drop special casing
6140         MACH_IPC_COMPAT.
6141         * sysdeps/mach/hurd/dl-sysdep.c (_exit): Call LOSE and abort() if
6142         __task_terminate would ever return successfully.
6143         * sysdeps/mach/hurd/profil.c (special_profil_failure): Move variable
6144         to global scope.
6145         * sysdeps/mach/pagecopy.h (PAGE_THRESHOLD): Rename to
6146         PAGE_COPY_THRESHOLD and set to benchmarked 16384.
6147         * sysdeps/mach/hurd/getresgid.c (__getresgid): Set result from
6148         critical section to make code simpler and avoid warning.
6149         * sysdeps/mach/hurd/getresuid.c (__getresuid): Set result from
6150         critical section to make code simpler and avoid warning.
6151         * sysdeps/mach/hurd/spawni.c (__spawni): Make relpath and abspath
6152         const char * instead of char *.
6153         * hurd/hurd/lookup.h (__hurd_file_name_lookup, hurd_file_name_lookup,
6154         __hurd_file_name_split, hurd_file_name_split,
6155         __hurd_directory_name_split, hurd_directory_name_split,
6156         __hurd_file_name_lookup_retry, hurd_file_name_lookup_retry,
6157         hurd_file_name_path_lookup): Make lookup function parameter take a
6158         const char *name instead of char *name.
6159         * hurd/hurdlookup.c (__hurd_file_name_lookup, __hurd_file_name_split,
6160         __hurd_directory_name_split): Likewise.
6161         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Likewise.
6162         * hurd/path-lookup.c (hurd_file_name_path_lookup): Likewise.
6163         * sysdeps/mach/hurd/check_native.c: New file.
6164         * sysdeps/mach/hurd/check_pf.c: New file.
6165         * nscd/gai.c (__getifaddrs): Define macro to getifaddrs.
6166         (__freeifaddrs): Define macro to freeifaddrs.
6167         * sysdeps/mach/hurd/libhurduser.abilist: New file.
6168         * sysdeps/mach/libmachuser.abilist: New file.
6169         * libio/tst-memstream3.c (FWRITE): Rename to _FWRITE.
6170         (do_test_bz20181): Rename accordingly.
6171         * libio/tst-wmemstream3.c (FWRITE): Rename accordingly.
6172         * io/tst-copy_file_range.c [!defined CLONE_NEWNS]: Do not include
6173         <sys/mount.h>.
6174         * hurd/hurd.h (__hurd_fail): Always declare function, and provide inline
6175         version only if __USE_EXTERN_INLINES is defined.
6176         * hurd/hurd/fd.h (_hurd_fd_error_signal, _hurd_fd_error, __hurd_dfail,
6177         __hurd_sockfail): Likewise.
6178         (_hurd_fd_get): Always declare functions, and provide inline versions
6179         only if __USE_EXTERN_INLINES and _LIBC are defined and IS_IN(libc).
6180         * hurd/hurd/port.h (_hurd_port_init, _hurd_port_locked_get,
6181         _hurd_port_get, _hurd_port_free, _hurd_port_locked_set,
6182         _hurd_port_set): Always declare functions, and provide inline versions
6183         only if __USE_EXTERN_INLINES and _LIBC are defined and
6184         IS_IN(libc).
6185         * hurd/hurd/signal.h (_hurd_self_sigstate, _hurd_critical_section_lock,
6186         _hurd_critical_section_unlock): Likewise.
6187         * hurd/hurd/threadvar.h (__hurd_threadvar_location_from_sp,
6188         * __hurd_threadvar_location): Likewise.
6189         * hurd/hurd/userlink.h (_hurd_userlink_link, _hurd_userlink_unlink,
6190         _hurd_userlink_clear): Likewise.
6191         * mach/lock-intern.h (__spin_lock_init, __spin_lock, __mutex_lock,
6192         __mutex_unlock, __mutex_trylock): Always declare functions, and provide
6193         inline versions only if __USE_EXTERN_INLINES and _LIBC are defined.
6194         * mach/mach/mig_support.h (__mig_strncpy): Likewise.
6195         * sysdeps/generic/machine-lock.h (__spin_unlock, __spin_try_lock,
6196         __spin_lock_locked): Likewise.
6197         * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock,
6198         __spin_lock_locked): Likewise.
6199         * mach/spin-lock.c (__USE_EXTERN_INLINES): Define to 1.
6200         * hurd/Versions (libc: GLIBC_2.27): Add _hurd_fd_error_signal,
6201         _hurd_fd_error, __hurd_dfail, __hurd_sockfail, _hurd_port_locked_set,
6202         __hurd_threadvar_location_from_sp, __hurd_threadvar_location,
6203         _hurd_userlink_link, _hurd_userlink_unlink, _hurd_userlink_clear.
6204         * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_CHOWN_RESTRICTED,
6205         _POSIX_NO_TRUNC): Define to 0.
6206         * sysdeps/pthread/allocalim.h [!defined PTHREAD_STACK_MIN]: Do not
6207         check size against PTHREAD_STACK_MIN.
6208         * hurd/hurd/signal.h [__USE_EXTERN_INLINES][_LIBC][IS_IN(libc) ||
6209         IS_IN(libpthread)]: Include <sigsetops.h>.
6210         * mach/Makefile (user-interfaces): Add mach/gnumach.
6211         * sysdeps/mach/configure.ac (mach_interface_list): Add gnumach.
6212         * sysdeps/mach/configure (mach_interface_list): Regenerate.
6213         * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_VDISABLE): Set to '\0'
6214         instead of invalid -1.
6215         * sysdeps/mach/hurd/net/ethernet.h: Include <stdint.h>.
6216         * sysdeps/mach/hurd/net/if_arp.h: Include <stdint.h>.
6217         * sysdeps/mach/hurd/net/if_ppp.h: Do not include non-existing
6218         <net/ppp_defs.h>.
6219
6220 2018-01-27  Thomas Schwinge  <tschwinge@gnu.org>
6221
6222         * hurd/fcntl-internal.h: New file.
6223
6224 2018-01-27  James Clarke  <jrtc27@jrtc27.com>
6225
6226         * sysdeps/hppa/fpu/libm-test-ulps: Update.
6227
6228         * sysdeps/alpha/fpu/libm-test-ulps: Update.
6229
6230 2018-01-26  Andreas Schwab  <schwab@linux-m68k.org>
6231
6232         [BZ #22701]
6233         * nis/Makefile (libnsl-inhibit-o) [$(build-obsolete-nsl) != yes]:
6234         Build only shared objects.
6235
6236 2018-01-26  Carlos O'Donell  <carlos@redhat.com>
6237
6238         * README: Update for hppa.
6239
6240 2018-01-26  Patrick McGehearty  <patrick.mcgehearty@oracle.com>
6241
6242         * sysdeps/sparc/fpu/libm-test-ulps: Update
6243         cpow, ctan, ctanh, j0, j1, y0, yn ulps.
6244
6245 2018-01-26  Carlos O'Donell  <carlos@redhat.com>
6246
6247         Revert:
6248
6249         2017-12-19  H.J. Lu  <hongjiu.lu@intel.com>
6250
6251         [BZ #22563]
6252         * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
6253         * sysdeps/i386/nptl/tls.h (tcbhead_t): Add feature_1.
6254         * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
6255         * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Rename __glibc_unused1
6256         to feature_1.
6257
6258         2017-12-19  H.J. Lu  <hongjiu.lu@intel.com>
6259
6260         [BZ #22563]
6261         * bits/types/__cancel_jmp_buf_tag.h: New file.
6262         * sysdeps/unix/sysv/linux/x86/bits/types/__cancel_jmp_buf_tag.h
6263         * sysdeps/unix/sysv/linux/x86/pthreaddef.h: Likewise.
6264         * sysdeps/unix/sysv/linux/x86/nptl/pthreadP.h: Likewise.
6265         * nptl/Makefile (headers): Add
6266         bits/types/__cancel_jmp_buf_tag.h.
6267         * nptl/descr.h [NEED_SAVED_MASK_IN_CANCEL_JMP_BUF]
6268         (pthread_unwind_buf): Add saved_mask to cancel_jmp_buf.
6269         * sysdeps/nptl/pthread.h: Include
6270         <bits/types/__cancel_jmp_buf_tag.h>.
6271         (__pthread_unwind_buf_t): Use struct __cancel_jmp_buf_tag with
6272         __cancel_jmp_buf.
6273         * sysdeps/unix/sysv/linux/hppa/pthread.h: Likewise.
6274
6275 2018-01-25  Rafal Luzynski  <digitalfreak@lingonborough.com>
6276
6277         [BZ #10871]
6278         * localedata/locales/uk_UA (mon): Renamed to...
6279         (alt_mon): This.
6280         (alt_digits): "0" removed and then renamed to...
6281         (mon): This.
6282         (date_fmt): Definition changed not to use the alternative
6283         digits hack.
6284
6285 2018-01-25  Palmer Dabbelt  <palmer@sifive.com>
6286
6287         * elf/cache.c (print_entry): Add FLAG_RISCV_FLOAT_ABI_SOFT and
6288         FLAG_RISCV_FLOAT_ABI_DOUBLE.
6289         * elf/elf.h (EF_RISCV_RVC): New define.
6290         (EF_RISCV_FLOAT_ABI): Likewise.
6291         (EF_RISCV_FLOAT_ABI_SOFT): Likewise.
6292         (EF_RISCV_FLOAT_ABI_SINGLE): Likewise.
6293         (EF_RISCV_FLOAT_ABI_DOUBLE): Likewise.
6294         (EF_RISCV_FLOAT_ABI_QUAD): Likewise.
6295         * sysdeps/generic/ldconfig.h (FLAG_RISCV_FLOAT_ABI_SOFT): New
6296         define.
6297         (FLAG_RISCV_FLOAT_ABI_DOUBLE): Likewise.
6298
6299 2018-01-25  Andreas Schwab  <schwab@suse.de>
6300
6301         * aclocal.m4 (LIBC_SLIBDIR_RTLDDIR): Consistently put arguments in
6302         single quotes.
6303         * sysdeps/gnu/configure: Regenerate.
6304         * sysdeps/unix/sysv/linux/aarch64/configure: Regenerate.
6305         * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
6306         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Regenerate.
6307         * sysdeps/unix/sysv/linux/s390/s390-64/configure: Regenerate.
6308         * sysdeps/unix/sysv/linux/sparc/sparc64/configure: Regenerate.
6309         * sysdeps/unix/sysv/linux/tile/configure: Regenerate.
6310         * sysdeps/unix/sysv/linux/x86_64/64/configure: Regenerate.
6311         * sysdeps/unix/sysv/linux/x86_64/x32/configure: Regenerate.
6312
6313 2018-01-25  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6314
6315         * scripts/build-many-glibcs.py (checkout_vcs): Add hurd repository
6316         URL, and run autoconf, make it the default for now.
6317
6318 2018-01-24  Joseph Myers  <joseph@codesourcery.com>
6319
6320         * scripts/build-many-glibcs.py (Context.add_all_configs): Add
6321         soft-float ColdFire configuration.
6322
6323         * sysdeps/unix/sysv/linux/m68k/localplt.data: Move to ....
6324         * sysdeps/unix/sysv/linux/m68k/m680x0/localplt.data: ... here.
6325         * sysdeps/unix/sysv/linux/m68k/coldfire/localplt.data: New file.
6326
6327         * sysdeps/m68k/coldfire/nofpu/math_private.h: New file.  Based on
6328         MicroBlaze file.
6329
6330         * sysdeps/unix/sysv/linux/m68k/coldfire/jmp_buf-macros.h: Move to
6331         ....
6332         * sysdeps/unix/sysv/linux/m68k/coldfire/fpu/jmp_buf-macros.h:
6333         ... here.
6334         * sysdeps/unix/sysv/linux/m68k/coldfire/nofpu/jmp_buf-macros.h:
6335         New file.
6336
6337         * sysdeps/unix/sysv/linux/m68k/jmp_buf-macros.h: Move to ....
6338         * sysdeps/unix/sysv/linux/m68k/m680x0/jmp_buf-macros.h: ... here.
6339         * sysdeps/unix/sysv/linux/m68k/coldfire/jmp_buf-macros.h: New
6340         file.
6341
6342 2018-01-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
6343
6344         [BZ #22742]
6345         * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (__glibc_reserved1):
6346         Rename to __reserved and add comment.
6347         * sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym (__glibc_reserved1):
6348         Rename to __reserved.
6349
6350 2018-01-24  Joseph Myers  <joseph@codesourcery.com>
6351
6352         * scripts/build-many-glibcs.py (Context.add_all_configs): Add
6353         i686-gnu configurations.
6354         (Context.run_builds): Include mig, gnumach and hurd in components
6355         considered.
6356         (Context.checkout): Add mig, gnumach and hurd to components.
6357         (Context.checkout_tar): Add URL mappings for mig, gnumach and
6358         hurd.
6359         (Context.bot_cycle): Check for changes to mig, gnumach and hurd.
6360         (Config.build): Install gnumach headers, build mig and install
6361         hurd headers for 'gnu' OS.
6362         (Config.install_gnumach_headers): New function.
6363         (Config.install_hurd_headers): Likewise.
6364         (Glibc.build_glibc): Do not use /usr for 'gnu' OS.  Specifiy MIG
6365         when building for 'gnu' OS.
6366
6367 2018-01-23  Tobias Klauser  <tklauser@distanz.ch>
6368
6369         * manual/tunables.texi (Hardware Capability Tunables): Fix
6370         spelling.
6371
6372 2018-01-22  Rical Jasan  <ricaljasan@pacific.net>
6373
6374         * manual/locale.texi (ALTMON_1, ALTMON_2, ALTMON_3, ALTMON_4)
6375         (ALTMON_5, ALTMON_6, ALTMON_7, ALTMON_8, ALTMON_9, ALTMON_10)
6376         (ALTMON_11, ALTMON_12): Improve documentation.
6377         * manual/time.texi (strftime): Likewise.
6378
6379 2018-01-22  Rafal Luzynski  <digitalfreak@lingonborough.com>
6380
6381         [BZ #10871]
6382         * localedata/locales/pl_PL: Alternative month names added,
6383         primary month names are genitive now.
6384         * time/tst-strptime.c (day_tests): Actually use a genitive case
6385         of a month name in Polish language.
6386
6387 2018-01-22  Rafal Luzynski  <digitalfreak@lingonborough.com>
6388
6389         [BZ #10871]
6390         * manual/locale.texi: Document ALTMON_1..12 constants for
6391         nl_langinfo.  Specify when to use ALTMON instead of MON.
6392         * manual/time.texi (strftime, strptime): Document GNU extension
6393         permitting O modifier with %B and %b.  Specify when to use
6394         %OB instead of %B.
6395
6396 2018-01-22  Rafal Luzynski  <digitalfreak@lingonborough.com>
6397
6398         [BZ #10871]
6399         * locale/C-time.c (_nl_C_LC_TIME): Add abbreviated alternative month
6400         names, define them as the same as abbreviated month names explicitly.
6401         * locale/categories.def (LC_TIME): Add ab_alt_mon and wide-ab_alt_mon.
6402         * locale/langinfo.h: (_NL_ABALTMON_1, _NL_ABALTMON_2, _NL_ABALTMON_3,
6403         _NL_ABALTMON_4, _NL_ABALTMON_5, _NL_ABALTMON_6, _NL_ABALTMON_7,
6404         _NL_ABALTMON_8, _NL_ABALTMON_9, _NL_ABALTMON_10, _NL_ABALTMON_11,
6405         _NL_ABALTMON_12, _NL_WABALTMON_1, _NL_WABALTMON_2, _NL_WABALTMON_3,
6406         _NL_WABALTMON_4, _NL_WABALTMON_5, _NL_WABALTMON_6, _NL_WABALTMON_7,
6407         _NL_WABALTMON_8, _NL_WABALTMON_9, _NL_WABALTMON_10, _NL_WABALTMON_11,
6408         _NL_WABALTMON_12): New enum constants.
6409         * locale/programs/ld-time.c (struct locale_time_t): Add ab_alt_mon,
6410         wab_alt_mon, and ab_alt_mon_defined members.
6411         (time_output): Output ab_alt_mon and wab_alt_mon members.
6412         (time_read): Read them, initialize them as copies of abmon and wabmon
6413         respectively if they are missing, initialize ab_alt_mon_defined.
6414         * locale/programs/locfile-kw.gperf (ab_alt_mon): Define.
6415         * locale/programs/locfile-kw.h: Regenerate.
6416         * locale/programs/locfile-token.h (tok_ab_alt_mon): New enum constant.
6417         * time/Makefile [$(run-built-tests) = yes] (LOCALES): Add es_ES.UTF-8
6418         and ru_RU.UTF-8.
6419         * time/strftime_l.c (a_altmonth, aam_len): New macros.
6420         [!COMPILE_WIDE] (ABALTMON_1): New macro.
6421         (__strftime_internal): Handle %Ob and %Oh formats.
6422         * time/strptime_l.c [_LIBC] (ab_alt_month_name): New macro.
6423         (__strptime_internal): Handle %Ob and %Oh formats.
6424         * time/tst-strptime.c (day_tests): Add more tests to parse different
6425         forms of month names including the new %Ob format specifier.
6426
6427 2018-01-22  Rafal Luzynski  <digitalfreak@lingonborough.com>
6428
6429         [BZ #10871]
6430         * locale/C-time.c (_nl_C_LC_TIME): Add alternative month names,
6431         define them as the same as primary full month names explicitly.
6432         * locale/categories.def (LC_TIME): Add alt_mon and wide-alt_mon.
6433         * locale/langinfo.h (__ALTMON_1, __ALTMON_2, __ALTMON_3, __ALTMON_4,
6434         __ALTMON_5, __ALTMON_6, __ALTMON_7, __ALTMON_8, __ALTMON_9, __ALTMON_10,
6435         __ALTMON_11, __ALTMON_12, _NL_WALTMON_1, _NL_WALTMON_2, _NL_WALTMON_3,
6436         _NL_WALTMON_4, _NL_WALTMON_5, _NL_WALTMON_6, _NL_WALTMON_7,
6437         _NL_WALTMON_8, _NL_WALTMON_9, _NL_WALTMON_10, _NL_WALTMON_11,
6438         _NL_WALTMON_12): New enum constants.
6439         [__USE_GNU] (ALTMON_1, ALTMON_2, ALTMON_3, ALTMON_4, ALTMON_5, ALTMON_6,
6440         ALTMON_7, ALTMON_8, ALTMON_9, ALTMON_10, ALTMON_11, ALTMON_12): New
6441         macros.
6442         * locale/programs/ld-time.c (struct locale_time_t): Add alt_mon,
6443         walt_mon, and alt_mon_defined members.
6444         (time_output): Output alt_mon and walt_mon members.
6445         (time_read): Read them, initialize them as copies of mon and wmon
6446         respectively if they are missing, initialize alt_mon_defined.
6447         * locale/programs/locfile-kw.gperf (alt_mon): Define.
6448         * locale/programs/locfile-kw.h: Regenerate.
6449         * locale/programs/locfile-token.h (tok_alt_mon): New enum constant.
6450         * localedata/tst-langinfo.c (map): Add tests for the new constants
6451         ALTMON_1 .. ALTMON_12.
6452         * time/Makefile [$(run-built-tests) = yes] (LOCALES): Add fr_FR.UTF-8
6453         and pl_PL.UTF-8.
6454         * time/strftime_l.c (f_altmonth): New macro.
6455         (__strftime_internal): Handle %OB format.
6456         * time/strptime_l.c [_LIBC] (alt_month_name): New macro.
6457         (__strptime_internal): Handle %OB format.
6458         * time/tst-strptime.c (day_tests): Add tests to parse different forms
6459         of month names including the new %OB format specifier.
6460
6461 2018-01-19  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
6462
6463         [BZ #22685]
6464         * sysdeps/powerpc/powerpc32/sysdep.h (ABORT_TRANSACTION_IMPL): Renamed
6465         from ABORT_TRANSACTION.
6466         (ABORT_TRANSACTION): Redirect to ABORT_TRANSACTION_IMPL.
6467         * sysdeps/powerpc/powerpc64/sysdep.h (ABORT_TRANSACTION,
6468         ABORT_TRANSACTION_IMPL): Likewise.
6469         * sysdeps/unix/sysv/linux/powerpc/not-errno.h: New file.  Reuse
6470         Linux code, but remove the code that aborts transactions.
6471
6472 2018-01-19  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6473
6474         * sysdeps/generic/netinet/if_ether.h: Include <stdint.h>.
6475
6476 2018-01-19  Rafal Luzynski  <digitalfreak@lingonborough.com>
6477
6478         * localedata/locales/gu_IN (LC_IDENTIFICATION): Fix an obvious typo
6479         in date: "2004-14-09" should be "2004-09-14".
6480         * localedata/locales/lo_LA: Fix an obvious typo in date in the header:
6481         "2003-15-09" should be "2003-09-15".
6482
6483 2018-01-18  Arjun Shankar  <arjun@redhat.com>
6484
6485         [BZ #22343]
6486         [BZ #22774]
6487         CVE-2018-6485
6488         CVE-2018-6551
6489         * malloc/malloc.c (checked_request2size): call REQUEST_OUT_OF_RANGE
6490         after padding.
6491         (_int_memalign): check for integer overflow before calling
6492         _int_malloc.
6493         * malloc/tst-malloc-too-large.c: New test.
6494         * malloc/Makefile: Add tst-malloc-too-large.
6495
6496 2018-01-18  Rafal Luzynski  <digitalfreak@lingonborough.com>
6497
6498         * localedata/locales/bho_NP (LC_IDENTIFICATION): Fix an obvious typo
6499         in date: "2017-24-07" should be "2017-07-24".
6500         * localedata/locales/mai_IN: Likewise.
6501         * localedata/locales/mai_NP: Likewise.
6502
6503 2018-01-17  Dmitry V. Levin  <ldv@altlinux.org>
6504
6505         * po/ru.po: Update translations.
6506
6507 2018-01-17  Joseph Myers  <joseph@codesourcery.com>
6508
6509         [BZ #22719]
6510         * sysdeps/hppa/backtrace.c: New file.
6511
6512 2018-01-17  H.J. Lu  <hongjiu.lu@intel.com>
6513
6514         [BZ #22715]
6515         * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_profile): Properly
6516         align La_x86_64_retval to VEC_SIZE.
6517
6518 2018-01-16  Joseph Myers  <joseph@codesourcery.com>
6519
6520         * sysdeps/x86_64/backtrace.c: Include <gnu/lib-names.h>.
6521         (init): Use LIBGCC_S_SO not hardcoded "libgcc_s.so.1".
6522
6523 2018-01-16  Florian Weimer  <fweimer@redhat.com>
6524
6525         * nptl/Makefile [$(have-cxx-thread_local)] (tests-unsupported):
6526         Move tst-thread-exit-clobber ...
6527         [$(CXX)] (tests-unsupported): ... to here.
6528
6529 2018-01-16  Szabolcs Nagy  <szabolcs.nagy@arm.com>
6530
6531         * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SHA3): Define.
6532         (HWCAP_SM3, HWCAP_SM4, HWCAP_ASIMDDP, HWCAP_SHA512, HWCAP_SVE): Define.
6533         * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c
6534         (_dl_aarch64_cap_flags): Update.
6535         (_DL_HWCAP_COUNT): Update.
6536
6537 2018-01-16  Szabolcs Nagy  <szabolcs.nagy@arm.com>
6538
6539         * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h
6540         (_DL_HWCAP_LAST): Remove.
6541         (_DL_HWCAP_COUNT): Move to ...
6542         * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c
6543         (_DL_HWCAP_COUNT): ... here.
6544
6545 2018-01-16  Florian Weimer  <fweimer@redhat.com>
6546
6547         * nptl/Makefile (CFLAGS-tst-minstack-throw.o): Compile in C++11
6548         mode with GNU extensions.
6549
6550 2018-01-15  Alan Hayward  <alan.hayward@arm.com>
6551
6552         * elf/elf.h (NT_ARM_SVE): Define.
6553
6554 2018-01-15  Florian Weimer  <fweimer@redhat.com>
6555
6556         [BZ #22636]
6557         * nptl/tst-minstack-throw.cc: New file.
6558         * nptl/Makefile (tests): Add tst-minstack-throw.
6559         (LDLIBS-tst-minstack-throw): Link with libstdc++.
6560         [!CXX] (tests-unsupported): Add tst-minstack-throw.
6561
6562 2018-01-15  Joseph Myers  <joseph@codesourcery.com>
6563
6564         * scripts/build-many-glibcs.py (Context.checkout): Default
6565         binutils version to 2.30 branch, MPFR version to 4.0.0 and MPC
6566         version to 1.1.0.
6567
6568 2018-01-13  Carlos O'Donell  <carlos@redhat.com>
6569
6570         [BZ #22707]
6571         * elf/elf.h (DF_1_STUB): Define.
6572         (DF_1_PIE): Define.
6573
6574 2018-01-12  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
6575
6576         [BZ #22697]
6577         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
6578         Do not add 0.5 to integer or out-of-range arguments.
6579
6580 2018-01-12  Dmitry V. Levin  <ldv@altlinux.org>
6581
6582         * po/bg.po: Update translations.
6583         * po/cs.po: Likewise.
6584         * po/de.po: Likewise.
6585         * po/ko.po: Likewise.
6586         * po/pl.po: Likewise.
6587         * po/sv.po: Likewise.
6588         * po/uk.po: Likewise.
6589         * po/vi.po: Likewise.
6590
6591 2018-01-12  Szabolcs Nagy  <szabolcs.nagy@arm.com>
6592
6593         * aarch64/start.S (_start): Use __wrap_main.
6594         (__wrap_main): New local symbol.
6595
6596 2018-01-12  Dmitry V. Levin  <ldv@altlinux.org>
6597
6598         [BZ #22679]
6599         CVE-2018-1000001
6600         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Fall back to
6601         generic_getcwd if the path returned by getcwd syscall is not absolute.
6602         * io/tst-getcwd-abspath.c: New test.
6603         * io/Makefile (tests): Add tst-getcwd-abspath.
6604
6605 2018-01-12  Istvan Kurucsai  <pistukem@gmail.com>
6606
6607         * malloc/malloc.c (malloc_consolidate): Add size check.
6608
6609 2018-01-12  Florian Weimer  <fweimer@redhat.com>
6610
6611         * support/write_message.c (write_message): Preserve errno.
6612         * support/check.c (print_failure): Likewise.
6613         * support/support_test_verify_impl.c (support_test_verify_impl):
6614         Likewise.
6615         * support/support_test_compare_failure.c
6616         (support_test_compare_failure): Likewise.
6617
6618 2018-01-12  Florian Weimer  <fweimer@redhat.com>
6619
6620         [BZ #22701]
6621         * nis/Makefile (install-lib-ldscripts, $(inst_libdir)/libnsl.so):
6622         Prevent installation of libnsl.so.
6623         (libnsl-inhibit-o): Do not build (or install) static libraries.
6624
6625 2018-01-12  Egmont Koblinger  <egmont@gmail.com>
6626
6627         [BZ #22657]
6628         * localedata/locales/hu_HU (d_t_fmt): Avoid a leading space
6629         before the day number which may produce a double space.
6630         (date_fmt): Likewise.
6631
6632 2018-01-12  Joseph Myers  <joseph@codesourcery.com>
6633
6634         * sysdeps/s390/fpu/feholdexcpt.c (__feholdexcept): Call __fegetenv
6635         instead of fegetenv.
6636
6637 2018-01-11  Joseph Myers  <joseph@codesourcery.com>
6638
6639         [BZ #22702]
6640         * sysdeps/generic/math_private.h (libc_feresetround_noex): Update
6641         comment to say exceptions are discarded.
6642         (libc_feholdsetround_noex_ctx): Use __feholdexcept instead of
6643         __fegetenv.
6644         (SET_RESTORE_ROUND_NOEX): Update comment to say non-stop mode must
6645         be enabled.
6646
6647 2018-01-11  Florian Weimer  <fweimer@redhat.com>
6648
6649         * sysdeps/gnu/unwind-resume.c (__libgcc_s_init): Update comment
6650         and error message.
6651
6652 2018-01-11  Florian Weimer  <fweimer@redhat.com>
6653
6654         [BZ #22636]
6655         * nptl/Makefile (tests): Add tst-minstack-cancel, tst-minstack-exit.
6656         * nptl/tst-minstack-cancel.c, nptl/tst-minstack-exit.c: New files.
6657
6658 2018-01-10  Joseph Myers  <joseph@codesourcery.com>
6659
6660         [BZ #22693]
6661         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Handle
6662         negative arguments in test for NaN or infinity argument.
6663
6664 2018-01-10  Dmitry V. Levin  <ldv@altlinux.org>
6665
6666         * po/libc.pot: Regenerate.
6667
6668 2018-01-10  Florian Weimer  <fweimer@redhat.com>
6669
6670         [BZ #22636]
6671         * sysdeps/nptl/unwind-forcedunwind.c (pthread_cancel_init): Open
6672         libgcc.so with RTLD_NOW, to avoid lazy binding during unwind.
6673
6674 2018-01-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6675
6676         * hurd/hurd/fd.h: Include <fcntl.h>
6677         (__hurd_at_flags): New function.
6678         * hurd/lookup-at.c (__file_name_lookup_at): Replace flag computation
6679         with call to __hurd_at_flags.
6680         * include/unistd.h (__faccessat, __faccessat_noerrno): Add declaration.
6681         * sysdeps/mach/hurd/access.c (access_common): Move implementation to
6682         __faccessat
6683         (hurd_fail_seterrno, hurd_fail_noerrno): Move to sysdeps/mach/hurd/faccessat.c.
6684         (__access_noerrno): Use __faccessat_common instead of access_common.
6685         (__access): Likewise.
6686         * sysdeps/mach/hurd/euidaccess.c (__euidaccess): Replace implementation
6687         with a call to __faccessat.
6688         * sysdeps/mach/hurd/faccessat.c (faccessat): Rename into...
6689         (__faccessat_common): ... this. Move implementation of __access into it when
6690         AT_FLAGS does not contain AT_EACCESS. Make it call __hurd_at_flags, add
6691         reauthenticate_cwdir_at helper to implement AT mechanism.
6692         (__faccessat_noerrno): New function, just calls __faccessat_common.
6693         (__faccessat): New function, just calls __faccessat_common.
6694         (faccessat): Define weak alias.
6695
6696 2018-01-10  Joseph Myers  <joseph@codesourcery.com>
6697
6698         [BZ #22691]
6699         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
6700         (CFLAGS-s_fmaxmagl.c): New variable.
6701         [$(subdir) = math] (CFLAGS-s_fminmagl.c: Likewise.
6702
6703         [BZ #22690]
6704         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c (__lrintl): Use unsigned
6705         long int for arguments of possibly overflowing addition or
6706         subtraction.
6707         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c (__lroundl): Likewise.
6708
6709 2018-01-09  Joseph Myers  <joseph@codesourcery.com>
6710
6711         [BZ #22688]
6712         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
6713         (CFLAGS-e_remainderl.c): New variable.
6714
6715         [BZ #22687]
6716         * sysdeps/powerpc/nofpu/Makefile (CFLAGS-s_cacosl.c): New
6717         variable.
6718         (CFLAGS-s_cacoshl.c): Likewise.
6719         (CFLAGS-s_casinhl.c): Likewise.
6720         (CFLAGS-s_catanl.c): Likewise.
6721         (CFLAGS-s_catanhl.c): Likewise.
6722         (CFLAGS-s_cexpl.c): Likewise.
6723         (CFLAGS-s_ccoshl.c): Add -fsignaling-nans.
6724         (CFLAGS-s_csinhl.c): Likewise.
6725         (CFLAGS-s_clogl.c): Likewise.
6726         (CFLAGS-s_clog10l.c): Likewise.
6727         (CFLAGS-s_csinl.c): Likewise.
6728         (CFLAGS-s_csqrtl.c): Likewise.
6729
6730 2017-01-09  Emilio Pozuelo Monfort  <pochu27@gmail.com>
6731 2017-01-09  Svante Signell  <svante.signell@gmail.com>
6732
6733         * hurd/hurdexec.c (_hurd_exec): Deprecate function.
6734         (_hurd_exec_paths): New function.
6735         * hurd/hurd.h (_hurd_exec): Deprecate function.
6736         (_hurd_exec_paths): Declare function.
6737         * hurd/Versions: Export _hurd_exec_paths.
6738         * sysdeps/mach/hurd/execve.c: Include <stdlib.h> and <stdio.h>
6739         (__execve): Use __getcwd to build absolute path, and use
6740         _hurd_exec_paths instead of _hurd_exec.
6741         * sysdeps/mach/hurd/spawni.c: Likewise.
6742         * sysdeps/mach/hurd/fexecve.c: Use _hurd_exec_paths instead of
6743         _hurd_exec.
6744
6745 2018-01-08  Dmitry V. Levin  <ldv@altlinux.org>
6746
6747         * sysdeps/unix/sysv/linux/tst-ttyname.c (do_in_chroot_1): Skip the
6748         test instead of failing in case of ENOENT returned by posix_openpt.
6749
6750 2018-01-08  Florian Weimer  <fweimer@redhat.com>
6751
6752         resolv: Support binary labels in test framework.
6753         * support/resolv_test.c (struct to_be_freed): Remove.
6754         (struct compressed_name): New.
6755         (allocate_compressed_name, ascii_tolower)
6756         (compare_compressed_name): New functions.
6757         (struct resolv_response_builder): Update type of
6758         compression_offsets for use with tsearch.  Rempve to_be_freed.
6759         (response_push_pointer_to_free): Remove function.
6760         (resolv_response_add_name): Rewrite using struct compressed_name
6761         and tsearch instead of hsearch_r.
6762         (response_builder_allocate): Remove initialization of
6763         compression_offsets.
6764         (response_builder_free): Update for removal of to_be_freed.  Use
6765         tdestroy instead of hdestroy_r.
6766         * resolv/Makefile (tests): Add tst-resolv-binary.
6767         (tst-resolv-binary): Link with -lresolv -lpthread.
6768
6769 2018-01-08  Florian Weimer  <fweimer@redhat.com>
6770
6771         * support/check.h (TEST_COMPARE): Allow sign mismatch at compile
6772         time.  Pass positive flag instead of negative flag to
6773         support_test_compare_failure.
6774         (support_test_compare_failure): Change negative parameter to
6775         positive.
6776         * support/support_test_compare_failure.c (report)
6777         (support_test_compare_failure): Likewise.
6778         * support/tst-test_compare.c (return_ssize_t, return_int): New.
6779         (do_test): Check int/size_t, ssize_t/size_t comparisons.
6780
6781 2018-01-08  Szabolcs Nagy  <szabolcs.nagy@arm.com>
6782
6783         [BZ #22637]
6784         * nptl/descr.h (stackblock, stackblock_size): Update comments.
6785         * nptl/allocatestack.c (allocate_stack): Add guardsize to stacksize.
6786         * nptl/nptl-init.c (__pthread_get_minstack): Remove guardsize from
6787         stacksize.
6788         * nptl/pthread_getattr_np.c (pthread_getattr_np): Likewise.
6789
6790 2018-01-08  H.J. Lu  <hongjiu.lu@intel.com>
6791
6792         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
6793         Add s_sincosf-sse2 and s_sincosf-fma.
6794         (CFLAGS-s_sincosf-fma.c): New.
6795         * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: New file.
6796         * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.S: Likewise.
6797         * sysdeps/x86_64/fpu/multiarch/s_sincosf.c: Likewise.
6798         * sysdeps/x86_64/fpu/s_sincosf.S: Don't add alias if
6799         __sincosf is defined.
6800
6801 2018-01-08  Florian Weimer  <fweimer@redhat.com>
6802
6803         * nptl/tst-thread-exit-clobber.cc: New file.
6804         * nptl/Makefile (CFLAGS-tst-thread-exit-clobber.o): Compile in
6805         C++11 mode.
6806         (LDLIBS-tst-thread-exit-clobber): Link with libstdc++.
6807         (tests): Add tst-thread-exit-clobber.
6808         [!CXX] (tests-unsupported): Add tst-thread-exit-clobber.
6809
6810 2018-01-08  Florian Weimer  <fweimer@redhat.com>
6811
6812         * support/check.h (support_static_assert): Define.
6813         (TEST_COMPARE): Use it.
6814
6815 2018-01-07  Aurelien Jarno  <aurelien@aurel32.net>
6816
6817         * sysdeps/unix/sysv/linux/getrlimit64 (getrlimit64)
6818         [!__RLIM_T_MATCHES_RLIM64_T]
6819         [!SHLIB_COMPAT (libc, GLIBC_2_1, GLIBC_2_2)]: Define as weak alias of
6820         __getrlimit64. Add libc_hidden_weak.
6821
6822 2018-01-06  Palmer Dabbelt  <palmer@sifive.com>
6823
6824         * elf/elf.h (R_RISCV_NONE): New define.
6825         (R_RISCV_32): Likewise.
6826         (R_RISCV_64): Likewise.
6827         (R_RISCV_RELATIVE): Likewise.
6828         (R_RISCV_COPY): Likewise.
6829         (R_RISCV_JUMP_SLOT): Likewise.
6830         (R_RISCV_TLS_DTPMOD32): Likewise.
6831         (R_RISCV_TLS_DTPMOD64): Likewise.
6832         (R_RISCV_TLS_DTPREL32): Likewise.
6833         (R_RISCV_TLS_DTPREL64): Likewise.
6834         (R_RISCV_TLS_TPREL32): Likewise.
6835         (R_RISCV_TLS_TPREL64): Likewise.
6836         * Makerules (make-link-multidir): Make directories before linking into
6837         them.
6838         * sysdeps/unix/sysv/linux/dl-vdso.h (VDSO_NAME_LINUX_4_15): New
6839         define.
6840         (VDSO_HASH_LINUX_4_15): Likewise.
6841         * scripts/build-many-glibcs.py (class Glibc): Strip shared objects
6842         in subdirectories of lib.
6843         * nptl/Makefile (/librt.so): Always depend on
6844         "$(shared-thread-library)".
6845
6846 2018-01-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6847
6848         * sysdeps/mach/hurd/i386/jmp_buf-macros.h: New file.
6849         * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic) [NO_RTLD_HIDDEN]: Call
6850         JUMPTARGET (___tls_get_addr) instead of HIDDEN_JUMPTARGET
6851         (___tls_get_addr).
6852         * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Likewise.
6853         * sysdeps/i386/fpu/libm-test-ulps: Regenerated for GCC 7 with
6854         "-O2 -march=i686".
6855         * posix/tst-glob_symlinks.c [!PATH_MAX]: Define PATH_MAX macro.
6856         * sysdeps/gnu/glob64.c (__glob): Define macro instead of glob macro.
6857         (__glob64): Define GLIBC_2_27 versioned symbol instead of glob64.
6858         * sysdeps/gnu/glob-lstat-compat.c: New file.
6859         * sysdeps/gnu/glob64-lstat-compat.c: New file.
6860         * sysdeps/posix/pwritev_common.c: Add PROT_READ to __mmap prot.
6861
6862 2018-01-05  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
6863
6864         * sysdeps/powerpc/powerpc64/dl-machine.c (_dl_reloc_overflow):
6865         Reserve 16 chars to reloc_addr before calling _itoa_word.
6866
6867 2018-01-05  Aurelien Jarno  <aurelien@aurel32.net>
6868
6869         [BZ #22678]
6870         * sysdeps/unix/sysv/linux/prlimit.c (prlimit): Translate
6871         old_rlimit from RLIM64_INFINITY to RLIM_INFINITY.
6872
6873         * sysdeps/unix/sysv/linux/tst-rlimit-infinity.c: New file.
6874         * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-rlimit-infinity.
6875
6876         * resource/tst-getrlimit.c: Add copyright header.
6877
6878 2018-01-05  Aurelien Jarno  <aurelien@aurel32.net>
6879             Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6880
6881         * sysdeps/unix/sysv/linux/getrlimit64.c [USE_VERSIONED_RLIMIT]: Do not
6882         define getrlimit and getrlimit64 as weak aliases of __getrlimit64.
6883         Define __GI_getrlimit64 as weak alias of __getrlimit64.
6884         [__RLIM_T_MATCHES_RLIM64_T]: Do not redefine SHLIB_COMPAT, use #elif
6885         instead.
6886         * sysdeps/unix/sysv/linux/setrlimit64.c [USE_VERSIONED_RLIMIT]: Do not
6887         define setrlimit and setrlimit64 as weak aliases of __setrlimit64.
6888         * sysdeps/unix/sysv/linux/alpha/bits/resource.h (RLIM_INFINITY,
6889         RLIM64_INFINITY): Fix values to match the kernel ones.
6890         * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: Define
6891         USE_VERSIONED_RLIMIT.  Rename __getrlimit64 into __old_getrlimit64 and
6892         provide it as getrlimit@@GLIBC_2_0 and getrlimit64@@GLIBC_2_1.  Add a
6893         __getrlimit64 function and provide it as getrlimit@@GLIBC_2_27 and
6894         getrlimit64@@GLIBC_2_27.
6895         * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Ditto with setrlimit
6896         and setrlimit64.
6897         * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.27): Add
6898         getrlimit, setrlimit, getrlimit64 and setrlimit64.
6899         * sysdeps/unix/sysv/linux/alpha/Versions (libc): Add getrlimit,
6900         setrlimit, getrlimit64 and setrlimit64.
6901
6902 2018-01-05  Aurelien Jarno  <aurelien@aurel32.net>
6903
6904         [BZ #22648]
6905         * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: New file.
6906         * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Ditto.
6907
6908 2018-01-04  Joseph Myers  <joseph@codesourcery.com>
6909
6910         * malloc/tst-malloc-tcache-leak.c (TIMEOUT): Define to 50.
6911         * posix/tst-glob-tilde.c (TIMEOUT): Define to 200.
6912         * resolv/tst-resolv-res_ninit.c (TIMEOUT): Define to 50.
6913
6914 2018-01-03  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6915
6916         [BZ #15479]
6917         [BZ #22666]
6918         * sysdeps/alpha/fpu/s_trunc.c: Remove file.
6919         * sysdeps/alpha/fpu/s_truncf.c: Likewise.
6920
6921         [BZ #15479]
6922         [BZ #22665]
6923         * sysdeps/alpha/fpu/s_ceil.c: Remove file.
6924         * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
6925         * sysdeps/alpha/fpu/s_floor.c: Likewise.
6926         * sysdeps/alpha/fpu/s_floorf.c: Likewise.
6927
6928 2018-01-04  Florian Weimer  <fweimer@redhat.com>
6929
6930         [BZ #22667]
6931         * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext):
6932         Align the stack before calling exit.
6933         * stdlib/tst-makecontext-align.c: New file.
6934         * stdlib/Makefile (tests): Add tst-makecontext-align.
6935
6936 2018-01-04  Florian Weimer  <fweimer@redhat.com>
6937
6938         Add support for calling dlvsym from libc.so.
6939         * include/dlfcn.h (__libc_dlvsym): Declare.
6940         * elf/Makefile (tests-static-internal): Add
6941         tst-libc_dlvsym-static.
6942         (tests-internal): Add tst-libc_dlvsym.
6943         (modules-names): Add tst-libc_dlvsym-dso.
6944         (tst-libc_dlvsym, tst-libc_dlvsym-static): Link with libdl.
6945         (tst-libc_dlvsym-dso.so): Link with libdl, libsupport.
6946         (tst-libc_dlvsym.out, tst-libc_dlvsym-static.out): The shared
6947         object tst-libc_dlvsym-dso.so needs to be built before running
6948         these tests.
6949         (tst-libc_dlvsym-static-ENV): Set LD_LIBRARY_PATH.
6950         * elf/Versions: Export __libc_dlvsym.
6951         * elf/dl-libc.c (struct do_dlvsym_args): New.
6952         (do_dlvsym, __libc_dlvsym): New functions.
6953         (struct dl_open_hook, _dl_open_hook): Add dlvsym member.
6954         (_dl_open_hook2): New variable.
6955         (__libc_register_dl_open_hook): Set it.
6956         * elf/tst-libc_dlvsym-dso.c: New file.
6957         * elf/tst-libc_dlvsym-static.c: Likewise.
6958         * elf/tst-libc_dlvsym.c: Likewise.
6959         * elf/tst-libc_dlvsym.h: Likewise.
6960
6961 2018-01-03  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6962
6963         * support/support_enter_mount_namespace.c [!CLONE_NEWNS]: Do not
6964         include <sys/mount.h>.
6965
6966 2018-01-02  Wilco Dijkstra  <wdijkstr@arm.com>
6967
6968         * math/math.h (math_errhandling): Set to 0 with __FAST_MATH__.
6969         Add __NO_MATH_ERRNO__ check.
6970
6971 2018-01-02  Joseph Myers  <joseph@codesourcery.com>
6972
6973         * sysdeps/mips/mips32/libm-test-ulps: Update.
6974         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
6975
6976 2018-01-02  Florian Weimer  <fweimer@redhat.com>
6977
6978         * misc/tst-pselect.c: Add copyright header.
6979
6980 2018-01-02  Aurelien Jarno  <aurelien@aurel32.net>
6981
6982         * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: Fix a typo in the
6983         comment.
6984         * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Fix a typo in the
6985         comment.
6986         (settrlimit): Rename into setrlimit.
6987         (__sttrlimit): Rename into __setrlimit.
6988
6989         * sysdeps/unix/sysv/linux/alpha/getrlimit64.c (__old_getrlimit64):
6990         Drop __RLIM_T_MATCHES_RLIM64_T conditional as __old_getrlimit64 is
6991         never defined in that case.
6992
6993 2018-01-02  Joseph Myers  <joseph@codesourcery.com>
6994
6995         * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
6996
6997         * sysdeps/arm/libm-test-ulps: Update.
6998
6999         * math/Makefile (run-regen-ulps): Add $(objpfx) to test name here.
7000         (regen-ulps): Use $(libm-tests) not $^ in shell loop.
7001
7002 2018-01-02  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
7003
7004         * NEWS: Add cosf and sincosf to list of optimized functions.
7005
7006 2018-01-02  Aurelien Jarno  <aurelien@aurel32.net>
7007
7008         [BZ #22660]
7009         * sysdeps/alpha/fpu/s_fmax.S: Remove file.
7010         * sysdeps/alpha/fpu/s_fmaxf.S: Likewise.
7011         * sysdeps/alpha/fpu/s_fmin.S: Likewise.
7012         * sysdeps/alpha/fpu/s_fminf.S: Likewise.
7013
7014 2018-01-01  Dmitry V. Levin  <ldv@altlinux.org>
7015
7016         [BZ #22433]
7017         * sysdeps/unix/sysv/linux/arm/sys/ptrace.h: New file.
7018
7019         * elf/dl-load.c (decompose_rpath): Check for rpath emptiness before
7020         making a copy of it.
7021
7022 2018-01-01  Joseph Myers  <joseph@codesourcery.com>
7023
7024         * manual/texinfo.tex: Update to version 2017-12-26.21 with
7025         trailing whitespace removed.
7026         * scripts/config.guess: Update to version 2018-01-01.
7027         * scripts/config.sub: Update to version 2018-01-01.
7028         * scripts/move-if-change: Update from gnulib.
7029
7030         * NEWS: Update copyright dates.
7031         * catgets/gencat.c (print_version): Likewise.
7032         * csu/version.c (banner): Likewise.
7033         * debug/catchsegv.sh: Likewise.
7034         * debug/pcprofiledump.c (print_version): Likewise.
7035         * debug/xtrace.sh (do_version): Likewise.
7036         * elf/ldconfig.c (print_version): Likewise.
7037         * elf/ldd.bash.in: Likewise.
7038         * elf/pldd.c (print_version): Likewise.
7039         * elf/sotruss.sh: Likewise.
7040         * elf/sprof.c (print_version): Likewise.
7041         * iconv/iconv_prog.c (print_version): Likewise.
7042         * iconv/iconvconfig.c (print_version): Likewise.
7043         * locale/programs/locale.c (print_version): Likewise.
7044         * locale/programs/localedef.c (print_version): Likewise.
7045         * login/programs/pt_chown.c (print_version): Likewise.
7046         * malloc/memusage.sh (do_version): Likewise.
7047         * malloc/memusagestat.c (print_version): Likewise.
7048         * malloc/mtrace.pl: Likewise.
7049         * manual/libc.texinfo: Likewise.
7050         * nptl/version.c (banner): Likewise.
7051         * nscd/nscd.c (print_version): Likewise.
7052         * nss/getent.c (print_version): Likewise.
7053         * nss/makedb.c (print_version): Likewise.
7054         * posix/getconf.c (main): Likewise.
7055         * scripts/test-installation.pl: Likewise.
7056         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
7057
7058         * All files with FSF copyright notices: Update copyright dates
7059         using scripts/update-copyrights.
7060         * locale/programs/charmap-kw.h: Regenerated.
7061         * locale/programs/locfile-kw.h: Likewise.
7062
7063 2017-12-31  Zack Weinberg  <zackw@panix.com>
7064
7065         * libio/bits/libio-ldbl.h: Correct check for improper
7066         inclusion.  Add own multiple include guard.
7067
7068 2017-12-30  Aurelien Jarno  <aurelien@aurel32.net>
7069             Dmitry V. Levin  <ldv@altlinux.org>
7070
7071         [BZ #22625]
7072         CVE-2017-16997
7073         * elf/dl-load.c (fillin_rpath): Check for empty tokens before dynamic
7074         string token expansion. Check for NULL pointer or empty string possibly
7075         returned by expand_dynamic_string_token.
7076         (decompose_rpath): Check for empty path after dynamic string
7077         token expansion.
7078
7079 2017-12-29  Dmitry V. Levin  <ldv@altlinux.org>
7080
7081         [BZ #22433]
7082         * sysdeps/unix/sysv/linux/x86/sys/ptrace.h: New file.
7083
7084         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_request): Add comments
7085         about PTRACE_PEEKSIGINFO, PTRACE_GETSIGMASK, PTRACE_SETSIGMASK, and
7086         PTRACE_SECCOMP_GET_FILTER.  Update comments about PTRACE_SINGLESTEP
7087         and PTRACE_SYSCALL.
7088         * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Likewise.
7089         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
7090         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
7091         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
7092         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
7093         * sysdeps/unix/sysv/linux/tile/sys/ptrace.h: Likewise.
7094
7095         * sysdeps/unix/sysv/linux/sys/ptrace.h: Include <bits/ptrace-shared.h>.
7096         (__ptrace_setoptions, __ptrace_eventcodes, __ptrace_peeksiginfo_args,
7097         __ptrace_peeksiginfo_flags, ptrace): Move to ...
7098         * sysdeps/unix/sysv/linux/bits/ptrace-shared.h: ... new file.
7099         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
7100         bits/ptrace-shared.h.
7101         * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Include
7102         <bits/ptrace-shared.h>.
7103         (__ptrace_setoptions, __ptrace_eventcodes, __ptrace_peeksiginfo_args,
7104         __ptrace_peeksiginfo_flags, ptrace): Remove.
7105         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
7106         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
7107         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
7108         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
7109         * sysdeps/unix/sysv/linux/tile/sys/ptrace.h: Likewise.
7110
7111 2017-12-29  Aurelien Jarno  <aurelien@aurel32.net>
7112
7113         [BZ #17804]
7114         * dirent/scandir-tail.c (SCANDIR_TAIL): Move __set_errno (0) at the
7115         end of the loop. Improve comments.
7116
7117 2017-12-29  Zack Weinberg  <zackw@panix.com>
7118
7119         [BZ #22615]
7120         * manual/errno.texi (Checking for Errors): Explicitly say that errno
7121         might be set on success.
7122
7123 2017-12-29  Aurelien Jarno  <aurelien@aurel32.net>
7124
7125         [BZ #22611]
7126         * malloc/tst-realloc.c (do_test): Remove the test checking that errno
7127         is unchanged on success.
7128
7129 2017-12-27  Dmitry V. Levin  <ldv@altlinux.org>
7130
7131         * elf/dl-dst.h (DL_DST_COUNT): Remove is_path argument, all callers
7132         updated.
7133         * elf/dl-load.c (is_dst, _dl_dst_count, _dl_dst_substitute,
7134         expand_dynamic_string_token): Likewise.
7135         * sysdeps/generic/ldsodefs.h (_dl_dst_count, _dl_dst_substitute): Remove
7136         is_path argument.
7137
7138         * elf/dl-load.c (is_dst): Remove checks that is_path is set and name
7139         contains ':'.
7140
7141         * elf/dl-load.c (_dl_dst_substitute): Remove checks that is_path
7142         is set and name contains ':', and all code depending on these checks.
7143
7144 2017-12-24  Zack Weinberg  <zackw@panix.com>
7145
7146         * libio/libio.h, libio/_G_config.h: New stub headers which issue a
7147         deprecation warning and then include <bits/libio.h>, <bits/_G_config.h>
7148         respectively.
7149         * libio/libio.h: Rename the original version of this file to
7150         libio/bits/libio.h.  Error out if not included by stdio.h or the
7151         stub libio.h.
7152         * include/libio.h: Move to include/bits.  Forward to libio/bits/libio.h.
7153         * sysdeps/generic/_G_config.h: Move to top-level bits/.  Error out
7154         if not included by bits/libio.h or the stub _G_config.h.
7155         * sysdeps/unix/sysv/linux/_G_config.h: Move to
7156         sysdeps/unix/sysv/linux/bits.  Error out if not included by
7157         bits/libio.h or the stub _G_config.h.
7158         * libio/stdio.h: Include bits/libio.h, not libio.h.
7159         * libio/Makefile: Install bits/libio.h and bits/_G_config.h as
7160         well as libio.h and _G_config.h.
7161
7162         * csu/init.c, libio/fmemopen.c, libio/iolibio.h, libio/oldfmemopen.c
7163         * libio/strfile.h, stdio-common/vfscanf.c
7164         * sysdeps/pthread/flockfile.c, sysdeps/pthread/funlockfile.c
7165         Include stdio.h, not _G_config.h nor libio.h.
7166         * libio/iofgetpos.c: Also rename fgetpos64 out of the way.
7167         * libio/iofsetpos.c: Also rename fsetpos64 out of the way.
7168
7169         * scripts/check-installed-headers.sh: Skip libio.h and _G_config.h.
7170
7171 2017-12-23  Dmitry V. Levin  <ldv@altlinux.org>
7172
7173         [BZ #22347]
7174         * stdlib/getrandom.c (getrandom): Fix comment.
7175         * sysdeps/unix/sysv/linux/getrandom.c (getrandom): Likewise.
7176
7177 2017-12-23  Aurelien Jarno  <aurelien@aurel32.net>
7178
7179         [BZ #21161]
7180         * manual/arith.texi (strtoul): Fix a typo.
7181
7182         [BZ #22596]
7183         * manual/arith.texi (finite): Fix the description of the return
7184         value.
7185
7186 2017-12-22  Eric Blake  <ebb9@byu.net>
7187
7188         Avoid gcc warnings on cygwin
7189         * posix/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
7190         * posix/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
7191         Avoid unused variable.
7192
7193 2017-12-22  Florian Weimer  <fweimer@redhat.com>
7194
7195         * io/Makefile (routines): Add copy_file_range.
7196         (tests): Add tst-copy_file_range.
7197         (tests-static, tests-internal): Add tst-copy_file_range-compat.
7198         * io/Versions (GLIBC_2.27): Export copy_file_range.
7199         * io/copy_file_range-compat.c: New file.
7200         * io/copy_file_range.c: Likewise.
7201         * io/tst-copy_file_range-compat.c: Likewise.
7202         * io/tst-copy_file_range.c: Likewise.
7203         * manual/llio.texi (Copying File Data): New section.
7204         * posix/unistd.h [__USE_GNU] (copy_file_range): Declare.
7205         * support/Makefile (libsupport-routines): Add support-xfstat,
7206         xftruncate, xlseek.
7207         * support/support-xfstat.c: New file.
7208         * support/xftruncate.c: Likewise.
7209         * support/xlseek.c: Likewise.
7210         * support/xunistd.h (xfstat, xftruncate, xlseek): Declare.
7211         * sysdeps/unix/sysv/linux/**.abilist: Update.
7212         * sysdeps/unix/sysv/linux/copy_file_range.c: New file.
7213
7214 2017-12-21  Szabolcs Nagy  <szabolcs.nagy@arm.com>
7215
7216         * scripts/build-many-glibcs.py (Context.add_all_configs): Add
7217         disable-multi-arch variant to aarch64-linux-gnu.
7218
7219 2017-12-20  Joseph Myers  <joseph@codesourcery.com>
7220
7221         * manual/texinfo.tex: Update to version 2017-12-18.20 with
7222         trailing whitespace removed.
7223         * scripts/config.guess: Update to version 2017-12-17.
7224         * scripts/config.sub: Update to version 2017-11-23.
7225         * scripts/install-sh: Update to version 2017-09-23.17.
7226         * scripts/move-if-change: Update to version 2017-09-13 06:45.
7227
7228 2017-12-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7229
7230         * sysdeps/tile/__longjmp.S (__longjmp): Use lowercase instructions.
7231         * sysdeps/tile/__tls_get_addr.S (__tls_get_addr): Likewise.
7232         * sysdeps/tile/_mcount.S (__mcount): Likewise.
7233         * sysdeps/tile/crti.S (_init, _fini): Likewise.
7234         * sysdeps/tile/crtn.S: Likewise.
7235         * sysdeps/tile/dl-start.S (_start): Likewise.
7236         * sysdeps/tile/dl-trampoline.S: Likewise.
7237         * sysdeps/tile/setjmp.S (__sigsetjmp): Likewise.
7238         * sysdeps/tile/start.S (_start): Likewise.
7239         * sysdeps/unix/sysv/linux/tile/clone.S (_clone): Likewise.
7240         * sysdeps/unix/sysv/linux/tile/getcontext.S (__getcontext): Likewise.
7241         * sysdeps/unix/sysv/linux/tile/ioctl.S (__ioctl): Likewise.
7242         * sysdeps/unix/sysv/linux/tile/setcontext.S (__setcontext): Likewise.
7243         * sysdeps/unix/sysv/linux/tile/swapcontext.S (__swapcontext): Likewise.
7244         * sysdeps/unix/sysv/linux/tile/syscall.S (syscall): Likewise.
7245         * sysdeps/unix/sysv/linux/tile/vfork.S (__vfork): Likewise.
7246
7247         * stdlib/bug-getcontext.c (do_test): Remove tilepro mention in
7248         comment.
7249         * sysdeps/tile/preconfigure: Remove tilegx folder.
7250         * sysdeps/tile/tilegx/Implies: Move definitions to ...
7251         * sysdeps/tile/Implies: ... here.
7252         * sysdeps/tile/tilegx/Makefile: Move rules to ...
7253         * sysdeps/tile/Makefile: ... here.
7254         * sysdeps/tile/tilegx/atomic-machine.h: Move definitions to ...
7255         * sysdeps/tile/atomic-machine.h: ... here.  Add include guards.
7256         * sysdeps/tile/tilegx/bits/wordsize.h: Move to ...
7257         * sysdeps/tile/bits/wordsize.h: ... here.
7258         * sysdeps/tile/tilegx/*: Move to ...
7259         * sysdeps/tile/*: ... here.
7260         * sysdeps/tile/tilegx/tilegx32/Implies: Move to ...
7261         * sysdeps/tile/tilegx32/Implies: ... here.
7262         * sysdeps/tile/tilegx/tilegx64/Implies: Move to ...
7263         * sysdeps/tile/tilegx64/Implies: ... here.
7264         * sysdeps/unix/sysv/linux/tile/tilegx/Makefile: Move definitions
7265         to ...
7266         * sysdeps/unix/sysv/linux/tile/Makefile: ... here.
7267         * sysdeps/unix/sysv/linux/tile/tilegx/*: Move to ...
7268         * sysdeps/unix/sysv/linux/tile/*: ... here.
7269         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/*: Move to ...
7270         * sysdeps/unix/sysv/linux/tile/tilegx32/*: ... here.
7271         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/*: Move to ...
7272         * sysdeps/unix/sysv/linux/tile/tilegx64/*: ... here.
7273
7274         * README: Remove tilepro-*-linux-gnu from supported architecture.
7275         * scripts/build-many-glibcs.py: Likewise.
7276         * sysdeps/tile/__tls_get_addr.S (__tls_get_addr): Likewise.
7277         * sysdeps/tile/crti.S (PREINIT_FUNCTION): Likewise.
7278         * sysdeps/tile/dl-machine.h (ELF_MACHINE_NAME,
7279         elf_machine_matches_host, elf_machine_dynamic,
7280         elf_machine_load_address, elf_machine_runtime_setup, reloc_howto
7281         howto, elf_machine_rela): Likewise.
7282         * sysdeps/tile/dl-start.S (_start): Likewise.
7283         * sysdeps/tile/memcmp.c (DBLALIGN, REVBYTES): Likewise.
7284         * sysdeps/tile/memcopy.h (MEMCPY_OK_FOR_FWD_MEMMOVE,
7285         MEMCPY_OK_FOR_FWD_MEMMOVE, op_t): Likewise.
7286         * sysdeps/tile/nptl/pthread_spin_lock.c (TNS, CMPTNS): Likewise.
7287         * sysdeps/tile/nptl/pthread_spin_trylock.c (TNS): Likewise.
7288         * sysdeps/tile/nptl/pthread_spin_unlock.c (pthread_spin_unlock):
7289         Likewise.
7290         * sysdeps/tile/nptl/tls.h (DB_THREAD_SELF): Likewise.
7291         * sysdeps/tile/preconfigure: Likewise.
7292         * sysdeps/tile/stackguard-macros.h (STACK_CHK_GUARD,
7293         POINTER_CHK_GUARD): Likewise.
7294         * sysdeps/tile/stackinfo.h (__stackinfo_sub): Likewise.
7295         * sysdeps/tile/start.S (_start): Likewise.
7296         * sysdeps/tile/tls-macros.h (TLS_GD_OFFSET, TLS_IE_OFFSET, _TLS_LE):
7297         Likewise.
7298         * sysdeps/tile/sysdep.h (REGSIZE): Likewise.
7299         (LD, LD4U, ST, ST4, BNEZ, BEQZ, BEQZT, BGTZ, CMPEQI, CMPEQ, CMOVEQZ,
7300         CMOVNEZ): Remove.
7301         * sysdeps/unix/sysv/linux/tile/bits/environments.h
7302         (__ILP32_OFF32_CFLAGS, __ILP32_OFFBIG_CFLAGS, __ILP32_OFF32_LDFLAGS,
7303         __ILP32_OFFBIG_LDFLAGS, __LP64_OFF64_CFLAGS, __LP64_OFF64_LDFLAGS):
7304         Likewise.
7305         * sysdeps/tile/wordcopy.c (DBLALIGN): Likewise.
7306         * sysdeps/tile/tilepro/Implies: Remove file.
7307         * sysdeps/tile/tilepro/atomic-machine.h: Likewise.
7308         * sysdeps/tile/tilepro/bits/wordsize.h: Likewise.
7309         * sysdeps/tile/tilepro/memchr.c: Likewise.
7310         * sysdeps/tile/tilepro/memcpy.S: Likewise.
7311         * sysdeps/tile/tilepro/memset.c: Likewise.
7312         * sysdeps/tile/tilepro/memusage.h: Likewise.
7313         * sysdeps/tile/tilepro/rawmemchr.c: Likewise.
7314         * sysdeps/tile/tilepro/strchr.c: Likewise.
7315         * sysdeps/tile/tilepro/strchrnul.c: Likewise.
7316         * sysdeps/tile/tilepro/strlen.c: Likewise.
7317         * sysdeps/tile/tilepro/strrchr.c: Likewise.
7318         * sysdeps/unix/sysv/linux/tile/tilepro/Implies: Likewise.
7319         * sysdeps/unix/sysv/linux/tile/tilepro/c++-types.data: Likewise.
7320         * sysdeps/unix/sysv/linux/tile/tilepro/jmp_buf-macros.h: Likewise.
7321         * sysdeps/unix/sysv/linux/tile/tilepro/ld.abilist: Likewise.
7322         * sysdeps/unix/sysv/linux/tile/tilepro/ldconfig.h: Likewise.
7323         * sysdeps/unix/sysv/linux/tile/tilepro/libBrokenLocale.abilist:
7324         Likewise.
7325         * sysdeps/unix/sysv/linux/tile/tilepro/libanl.abilist: Likewise.
7326         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
7327         * sysdeps/unix/sysv/linux/tile/tilepro/libcrypt.abilist: Likewise.
7328         * sysdeps/unix/sysv/linux/tile/tilepro/libdl.abilist: Likewise.
7329         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
7330         * sysdeps/unix/sysv/linux/tile/tilepro/libnsl.abilist: Likewise.
7331         * sysdeps/unix/sysv/linux/tile/tilepro/libpthread.abilist: Likewise.
7332         * sysdeps/unix/sysv/linux/tile/tilepro/libresolv.abilist: Likewise.
7333         * sysdeps/unix/sysv/linux/tile/tilepro/librt.abilist: Likewise.
7334         * sysdeps/unix/sysv/linux/tile/tilepro/libthread_db.abilist: Likewise.
7335         * sysdeps/unix/sysv/linux/tile/tilepro/libutil.abilist: Likewise.
7336         * sysdeps/unix/sysv/linux/tile/tilepro/register-dump.h: Likewise.
7337         * sysdeps/unix/sysv/linux/tile/sysconf.c (linux_sysconf): Remove
7338         tilepro mention in comment.
7339
7340         * nptl/Makefile (libpthread-routines): Add pthread_join_common.
7341         * nptl/pthreadP.h (__pthread_timedjoin_ex): New prototype.
7342         * nptl/pthread_join_common.c: New file: common function used on
7343         pthread_join, pthread_timedjoin_np, pthread_tryjoin_np.
7344         * nptl/pthread_join.c (pthread_join): Use __pthread_timedjoin_ex.
7345         * nptl/pthread_tryjoin.c (pthread_tryjoin): Likewise.
7346         * nptl/pthread_timedjoin.c (pthread_timedjoin_np): Likewise.
7347         (cleanup): Move definition to pthread_join_common.c.
7348         * sysdeps/unix/sysv/linux/i386/lowlevellock.h (__lll_timedwait_tid):
7349         Remove superflous checks.
7350         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (__lll_timedwait_tid):
7351         Likewise.
7352
7353 2017-12-20  Szabolcs Nagy  <szabolcs.nagy@arm.com>
7354
7355         * sysdeps/aarch64/libm-test-ulps: Update.
7356
7357 2017-12-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7358
7359         * sysdeps/aarch64/memset.S (MEMSET): Define.
7360
7361 2017-12-20  Florian Weimer  <fweimer@redhat.com>
7362
7363         [BZ #22635]
7364         nptl: Provide full implementation of pthread_self in libc.so.
7365         * nptl/Makefile (routines): Add pthread_self.
7366         (libpthread-routines): Replace pthread_self with
7367         compat-pthread_self.
7368         * nptl/forward.c (pthread_self): Remove.
7369         * nptl/nptl-init.c (pthread_functions): Do not initialize
7370         ptr_pthread_self.
7371         * nptl/pthread_self.c (pthread_self): Remove weak alias.
7372         * nptl/compat-pthread_self.c: New file.
7373         * sysdeps/nptl/pthread-functions.h (struct pthread_functions):
7374         Remove ptr_pthread_self.
7375
7376 2017-12-19  Arnold D. Robbins  <arnold@skeeve.com>
7377
7378         * posix/regcomp.c: Fix spelling in comments.
7379         * posix/regex.h: Likewise.
7380         * posix/regex_internal.c: Likewise.
7381         * posix/regexec.c: Likewise.
7382
7383 2017-12-19  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
7384
7385         [BZ #22377]
7386         * math/Makefile [C++] (tests): Add test for iseqsig.
7387         * math/math.h [C++] (iseqsig): New implementation, which does
7388         not rely on __MATH_TG/__builtin_types_compatible_p.
7389         * math/test-math-iseqsig.cc: New file.
7390         * sysdeps/powerpc/powerpc64le/Makefile
7391         (CFLAGS-test-math-iseqsig.cc): New variable.
7392
7393 2017-12-19  Dmitry V. Levin  <ldv@altlinux.org>
7394
7395         * elf/dl-load.c (is_trusted_path): Remove.
7396         (fillin_rpath): Remove check_trusted argument and its use,
7397         all callers changed.
7398
7399 2017-12-19  H.J. Lu  <hongjiu.lu@intel.com>
7400
7401         [BZ #22630]
7402         * Makeconfig (link-pie-before-libc): Replace -pie with
7403         $(if $($(@F)-no-pie),$(no-pie-ldflag),-pie).
7404         * elf/Makefile (LDFLAGS-tst-dlopen-aout): Removed.
7405         (tst-dlopen-aout-no-pie): New.
7406         (LDFLAGS-tst-prelink): Removed.
7407         (tst-prelink-no-pie): New.
7408         (LDFLAGS-tst-main1): Removed.
7409         (tst-main1-no-pie): New.
7410         * gmon/Makefile (LDFLAGS-tst-gmon): Removed.
7411         (tst-gmon-no-pie): New.
7412
7413 2017-12-19  H.J. Lu  <hongjiu.lu@intel.com>
7414
7415         * manual/install.texi: Document that --enable-static-pie
7416         implies PIE.
7417         * INSTALL: Regenerated.
7418
7419 2017-12-19  Bernd Edlinger  <bernd.edlinger@hotmail.de>
7420
7421         [BZ #21309]
7422         * sysdeps/ieee754/dbl-64/e_pow.c (checkint): Make m and n
7423         unsigned.
7424
7425 2017-12-19  Joseph Myers  <joseph@codesourcery.com>
7426
7427         Revert:
7428
7429         2017-12-19  Joseph Myers  <joseph@codesourcery.com>
7430
7431         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
7432
7433         2017-12-19  Patrick McGehearty  <patrick.mcgehearty@oracle.com>
7434
7435         * sysdeps/ieee754/dbl-64/e_exp.c: Include <math-svid-compat.h> and
7436         <errno.h>.  Include "eexp.tbl".
7437         (half): New constant.
7438         (one): Likewise.
7439         (__ieee754_exp): Rewrite.
7440         (__slowexp): Remove prototype.
7441         * sysdeps/ieee754/dbl-64/eexp.tbl: New file.
7442         * sysdeps/ieee754/dbl-64/slowexp.c: Remove file.
7443         * sysdeps/i386/fpu/slowexp.c: Likewise.
7444         * sysdeps/ia64/fpu/slowexp.c: Likewise.
7445         * sysdeps/m68k/m680x0/fpu/slowexp.c: Likewise.
7446         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Likewise.
7447         * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
7448         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
7449         * sysdeps/generic/math_private.h (__slowexp): Remove prototype.
7450         * sysdeps/ieee754/dbl-64/e_pow.c: Remove mention of slowexp.c in
7451         comment.
7452         * sysdeps/powerpc/power4/fpu/Makefile [$(subdir) = math]
7453         (CPPFLAGS-slowexp.c): Remove variable.
7454         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
7455         Remove slowexp-fma, slowexp-fma4 and slowexp-avx.
7456         (CFLAGS-slowexp-fma.c): Remove variable.
7457         (CFLAGS-slowexp-fma4.c): Likewise.
7458         (CFLAGS-slowexp-avx.c): Likewise.
7459         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Do not
7460         define as macro.
7461         * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Likewise.
7462         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Likewise.
7463         * math/Makefile (type-double-routines): Remove slowexp.
7464         * manual/probes.texi (slowexp_p6): Remove.
7465         (slowexp_p32): Likewise.
7466
7467 2017-12-19  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7468
7469         * lib/glob.c (glob): Use a 'char *', not a 'void *', in pointer
7470         arithmetic.
7471
7472         * lib/glob.c (glob): Do not pass NULL to mempcpy.
7473
7474 2017-12-19  Joseph Myers  <joseph@codesourcery.com>
7475
7476         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
7477
7478 2017-12-19  Patrick McGehearty  <patrick.mcgehearty@oracle.com>
7479
7480         * sysdeps/ieee754/dbl-64/e_exp.c: Include <math-svid-compat.h> and
7481         <errno.h>.  Include "eexp.tbl".
7482         (half): New constant.
7483         (one): Likewise.
7484         (__ieee754_exp): Rewrite.
7485         (__slowexp): Remove prototype.
7486         * sysdeps/ieee754/dbl-64/eexp.tbl: New file.
7487         * sysdeps/ieee754/dbl-64/slowexp.c: Remove file.
7488         * sysdeps/i386/fpu/slowexp.c: Likewise.
7489         * sysdeps/ia64/fpu/slowexp.c: Likewise.
7490         * sysdeps/m68k/m680x0/fpu/slowexp.c: Likewise.
7491         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Likewise.
7492         * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
7493         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
7494         * sysdeps/generic/math_private.h (__slowexp): Remove prototype.
7495         * sysdeps/ieee754/dbl-64/e_pow.c: Remove mention of slowexp.c in
7496         comment.
7497         * sysdeps/powerpc/power4/fpu/Makefile [$(subdir) = math]
7498         (CPPFLAGS-slowexp.c): Remove variable.
7499         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
7500         Remove slowexp-fma, slowexp-fma4 and slowexp-avx.
7501         (CFLAGS-slowexp-fma.c): Remove variable.
7502         (CFLAGS-slowexp-fma4.c): Likewise.
7503         (CFLAGS-slowexp-avx.c): Likewise.
7504         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Do not
7505         define as macro.
7506         * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Likewise.
7507         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Likewise.
7508         * math/Makefile (type-double-routines): Remove slowexp.
7509         * manual/probes.texi (slowexp_p6): Remove.
7510         (slowexp_p32): Likewise.
7511
7512 2017-12-19  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7513             James Clarke <jrtc27@jrtc27.com>
7514
7515         [BZ #22603]
7516         * sysdeps/ia64/memchr.S (__memchr): Avoid overflow in pointer
7517         addition.
7518
7519 2017-12-19  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7520
7521         [BZ #22605]
7522         * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Fix exit return
7523         code.
7524
7525 2017-12-19  H.J. Lu  <hongjiu.lu@intel.com>
7526
7527         [BZ #22563]
7528         * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
7529         * sysdeps/i386/nptl/tls.h (tcbhead_t): Add feature_1.
7530         * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
7531         * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Rename __glibc_unused1
7532         to feature_1.
7533
7534 2017-12-19  H.J. Lu  <hongjiu.lu@intel.com>
7535
7536         [BZ #22563]
7537         * bits/types/__cancel_jmp_buf_tag.h: New file.
7538         * sysdeps/unix/sysv/linux/x86/bits/types/__cancel_jmp_buf_tag.h
7539         * sysdeps/unix/sysv/linux/x86/pthreaddef.h: Likewise.
7540         * sysdeps/unix/sysv/linux/x86/nptl/pthreadP.h: Likewise.
7541         * nptl/Makefile (headers): Add
7542         bits/types/__cancel_jmp_buf_tag.h.
7543         * nptl/descr.h [NEED_SAVED_MASK_IN_CANCEL_JMP_BUF]
7544         (pthread_unwind_buf): Add saved_mask to cancel_jmp_buf.
7545         * sysdeps/nptl/pthread.h: Include
7546         <bits/types/__cancel_jmp_buf_tag.h>.
7547         (__pthread_unwind_buf_t): Use struct __cancel_jmp_buf_tag with
7548         __cancel_jmp_buf.
7549         * sysdeps/unix/sysv/linux/hppa/pthread.h: Likewise.
7550
7551 2017-12-18  H.J. Lu  <hongjiu.lu@intel.com>
7552
7553         * scripts/build-many-glibcs.py (Context.add_all_configs): Add
7554         --enable-static-pie variants to x86_64, x32 and i686.
7555
7556 2017-12-19  Joseph Myers  <joseph@codesourcery.com>
7557
7558         [BZ #22631]
7559         * sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__m81_defun): Add
7560         argument for attrubutes.  All callers changed.
7561         (__inline_mathop1): Likewise.  All callers changed.
7562         (__inline_mathop): Likewise.  All callers changed.
7563         [__USE_MISC] (scalbn): Use __inline_forward instead of
7564         __inline_forward_c.
7565         [__USE_ISOC99] (scalbln): Likewise.
7566         [__USE_ISOC99] (nearbyint): Likewise.
7567         [__USE_ISOC99] (lrint): Likewise.
7568         [__USE_MISC] (scalbnf): Likewise.
7569         [__USE_ISOC99] (scalblnf): Likewise.
7570         [__USE_ISOC99] (nearbyintf): Likewise.
7571         [__USE_ISOC99] (lrintf): Likewise.
7572         [__USE_MISC] (scalbnl): Likewise.
7573         [__USE_ISOC99] (scalblnl): Likewise.
7574         [__USE_ISOC99] (nearbyintl): Likewise.
7575         [__USE_ISOC99] (lrintl): Likewise.
7576         * sysdeps/m68k/m680x0/fpu/mathimpl.h: All callers of
7577         __inline_mathop and __m81_defun changed.
7578
7579         * scripts/build-many-glibcs.py (Context.add_all_configs): Specify
7580         CPU or FPU for ARM hard-float configurations.
7581
7582 2017-12-18  Joseph Myers  <joseph@codesourcery.com>
7583
7584         * nptl/tst-attr3.c: Include <libc-diag.h>.
7585         (do_test) [__GNUC_PREREQ (7, 0)]: Ignore -Wrestrict for two tests.
7586
7587         * posix/tst-glob_symlinks.c (do_test): Increase size of buf.
7588
7589         * string/tester.c (test_strncat): Also disable -Warray-bounds
7590         warnings for two tests.
7591
7592 2017-12-18  H.J. Lu  <hongjiu.lu@intel.com>
7593
7594         [BZ #22614]
7595         * Makeconfig (no-pie-ldflag): Set to -no-pie only if
7596         $(cc-pie-default) == yes.
7597         * config.make.in (cc-pie-default): New.
7598         * configure.ac (libc_cv_pie_default): Renamed to ...
7599         (libc_cv_cc_pie_default): This.
7600         (libc_cv_pie_default): Set to $libc_cv_cc_pie_default.
7601         * configure: Regenerated.
7602
7603 2017-12-18  Florian Weimer  <fweimer@redhat.com>
7604
7605         [BZ #20204]
7606         ld.so: Harden dl-libc/libdl hooks.
7607         * sysdeps/generic/ldsodefs.h (_dl_init_all_dirs): Update comment.
7608         (rtld_active): New function.
7609         * dlfcn/dladdr.c (__dladdr): Call it.
7610         * dlfcn/dladdr1.c (__dladdr1): Likewise.
7611         * dlfcn/dlclose.c (__dlcose): Likewise.
7612         * dlfcn/dlerror.c (__dlerror): Likewise.
7613         * dlfcn/dlinfo.c (__dlinfo): Likewise.
7614         * dlfcn/dlmopen.c (__dlmopen): Likewise.
7615         * dlfcn/dlopen.c (__dlopen): Likewise.
7616         * dlfcn/dlopenold.c (__dlopen_nocheck): Likewise.
7617         * dlfcn/dlsym.c (__dlsym): Likewise.
7618         * dlfcn/dlvsym.c (__dlvsym): Likewise.
7619         * libio/vtables.c (_IO_vtable_check): Likewise.
7620         * elf/dl-libc.c (__libc_dlopen_mode, __libc_dlsym)
7621         (__libc_dlclose): Likewise.
7622         * elf/rtld.c (dl_main): Update comment on the _dl_init_all_dirs
7623         assignment.
7624
7625 2017-12-18  Joseph Myers  <joseph@codesourcery.com>
7626
7627         [BZ #22446]
7628         * nscd/connections.c (handle_request) [SO_PEERCRED]: Use separate
7629         buffers for readlink input and output.
7630
7631 2017-12-18  Sergei Trofimovich  <slyfox@gentoo.org>
7632
7633         [BZ #22624]
7634         * sysdeps/mips/setjmp_aux.c (__sigsetjmp_aux): Use
7635         inhibit_stack_protector.
7636
7637         [BZ #22624]
7638         * sysdeps/mips/mips64/setjmp_aux.c (__sigsetjmp_aux): Use
7639         inhibit_stack_protector.
7640
7641 2017-12-18  Dmitry V. Levin  <ldv@altlinux.org>
7642
7643         [BZ #22627]
7644         * elf/dl-load.c (_dl_init_paths): Remove _dl_dst_substitute preparatory
7645         code and invocation.
7646
7647 2017-12-18  Szabolcs Nagy  <szabolcs.nagy@arm.com>
7648
7649         * sysdeps/aarch64/start.S (_start): Handle PIC && !SHARED case.
7650
7651 2017-12-16  Aurelien Jarno  <aurelien@aurel32.net>
7652
7653         [BZ #22505]
7654         * elf/ldconfig.c (main): Call setlocale to force LC_COLLATE to C.
7655
7656 2017-12-16  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
7657
7658         * sysdeps/s390/fpu/libm-test-ulps: Update.
7659
7660 2017-12-16  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
7661
7662         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
7663
7664 2017-12-16  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
7665
7666         * sysdeps/ieee754/flt-32/s_cosf.c: Move reduced() and
7667         constants to s_sincosf.h file.
7668         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
7669         * sysdeps/ieee754/flt-32/s_sincosf.c: New
7670         implementation.
7671         * sysdeps/ieee754/flt-32/s_sincosf.h:
7672         New file.
7673
7674 2017-12-12  Carlos O'Donell  <carlos@redhat.com>
7675
7676         [BZ #14681]
7677         * elf/tst-leaks1.c (do_test): Call one dlopen with $ORIGIN expansion
7678         before mtrace.
7679
7680 2017-12-15  H.J. Lu  <hongjiu.lu@intel.com>
7681
7682         [BZ #19574]
7683         * INSTALL: Regenerated.
7684         * Makeconfig (real-static-start-installed-name): New.
7685         (pic-default): Updated for --enable-static-pie.
7686         (pie-default): New for --enable-static-pie.
7687         (default-pie-ldflag): Likewise.
7688         (+link-static-before-libc): Replace $(DEFAULT-LDFLAGS-$(@F))
7689         with $(if $($(@F)-no-pie),$(no-pie-ldflag),$(default-pie-ldflag)).
7690         Replace $(static-start-installed-name) with
7691         $(real-static-start-installed-name).
7692         (+prectorT): Updated for --enable-static-pie.
7693         (+postctorT): Likewise.
7694         (CFLAGS-.o): Add $(pie-default).
7695         (CFLAGS-.op): Likewise.
7696         * NEWS: Mention --enable-static-pie.
7697         * config.h.in (ENABLE_STATIC_PIE): New.
7698         * configure.ac (--enable-static-pie): New configure option.
7699         (have-no-dynamic-linker): New LIBC_CONFIG_VAR.
7700         (have-static-pie): Likewise.
7701         Enable static PIE if linker supports --no-dynamic-linker.
7702         (ENABLE_STATIC_PIE): New AC_DEFINE.
7703         (enable-static-pie): New LIBC_CONFIG_VAR.
7704         * configure: Regenerated.
7705         * csu/Makefile (omit-deps): Add r$(start-installed-name) and
7706         gr$(start-installed-name) for --enable-static-pie.
7707         (extra-objs): Likewise.
7708         (install-lib): Likewise.
7709         (extra-objs): Add static-reloc.o and static-reloc.os
7710         ($(objpfx)$(start-installed-name)): Also depend on
7711         $(objpfx)static-reloc.o.
7712         ($(objpfx)r$(start-installed-name)): New.
7713         ($(objpfx)g$(start-installed-name)): Also depend on
7714         $(objpfx)static-reloc.os.
7715         ($(objpfx)gr$(start-installed-name)): New.
7716         * csu/libc-start.c (LIBC_START_MAIN): Call _dl_relocate_static_pie
7717         in libc.a.
7718         * csu/libc-tls.c (__libc_setup_tls): Add main_map->l_addr to
7719         initimage.
7720         * csu/static-reloc.c: New file.
7721         * elf/Makefile (routines): Add dl-reloc-static-pie.
7722         (elide-routines.os): Likewise.
7723         (DEFAULT-LDFLAGS-tst-tls1-static-non-pie): Removed.
7724         (tst-tls1-static-non-pie-no-pie): New.
7725         * elf/dl-reloc-static-pie.c: New file.
7726         * elf/dl-support.c (_dl_get_dl_main_map): New function.
7727         * elf/dynamic-link.h (ELF_DURING_STARTUP): Also check
7728         STATIC_PIE_BOOTSTRAP.
7729         * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
7730         * gmon/Makefile (tests): Add tst-gmon-static-pie.
7731         (tests-static): Likewise.
7732         (DEFAULT-LDFLAGS-tst-gmon-static): Removed.
7733         (tst-gmon-static-no-pie): New.
7734         (CFLAGS-tst-gmon-static-pie.c): Likewise.
7735         (CRT-tst-gmon-static-pie): Likewise.
7736         (tst-gmon-static-pie-ENV): Likewise.
7737         (tests-special): Likewise.
7738         ($(objpfx)tst-gmon-static-pie.out): Likewise.
7739         (clean-tst-gmon-static-pie-data): Likewise.
7740         ($(objpfx)tst-gmon-static-pie-gprof.out): Likewise.
7741         * gmon/tst-gmon-static-pie.c: New file.
7742         * manual/install.texi: Document --enable-static-pie.
7743         * sysdeps/generic/ldsodefs.h (_dl_relocate_static_pie): New.
7744         (_dl_get_dl_main_map): Likewise.
7745         * sysdeps/i386/configure.ac: Check if linker supports static PIE.
7746         * sysdeps/x86_64/configure.ac: Likewise.
7747         * sysdeps/i386/configure: Regenerated.
7748         * sysdeps/x86_64/configure: Likewise.
7749         * sysdeps/mips/Makefile (ASFLAGS-.o): Add $(pie-default).
7750         (ASFLAGS-.op): Likewise.
7751
7752 2017-12-15  Joseph Myers  <joseph@codesourcery.com>
7753
7754         * io/Makefile (tst-open-tmpfile-ARGS): New variable.
7755         * posix/tst-mmap-offset.c (fname): Use /tmp.
7756         * stdlib/tst-setcontext3.sh (tempfile): Use ${objpfx}.
7757
7758 2017-12-15  Steve Ellcey  <sellcey@cavium.com>
7759
7760         * nscd/dbg_log.c (dbg_log): Increase msg buffer size.
7761
7762 2017-12-15  Thomas Schwinge  <thomas@codesourcery.com>
7763
7764         * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno): Don't set
7765         errno.
7766
7767 2017-12-15  Joseph Myers  <joseph@codesourcery.com>
7768
7769         * scripts/build-many-glibcs.py (Context.add_all_configs): Use
7770         --with-float=hard for arm-linux-gnueabihf configurations.
7771
7772         [BZ #14121]
7773         * po/Makefile (generated): Add $(ALL_LINGUAS:%=%.mo).
7774         (%.mo): Change to $(objpfx)%.mo.  Use $(make-target-directory).
7775         ($(mo-installed)): Use $(objpfx)%.mo.
7776         (realclean): Remove rule.
7777
7778         * po/Makefile (linguas): Remove rule and dependencies.
7779         (linguas.mo): Likewise.
7780         (.PHONY): Do not depend on linguas and linguas.mo.
7781         (podir): Remove variable.
7782         (pofiles): Likewise.
7783         [$(pofiles)] (%.po): Remove rule.
7784
7785         * sysdeps/sparc/sparc32/Makefile
7786         ($(divrem:%=$(sysdep_dir)/sparc/sparc32/%.S)): Do not include
7787         start-of-line whitespace in argument of echo.
7788         * sysdeps/sparc/sparc32/divrem.m4: Avoid generating lines starting
7789         with whitespace.  Generate __wrap_.udiv alias.
7790         * sysdeps/sparc/sparc32/rem.S: Regenerated.
7791         * sysdeps/sparc/sparc32/sdiv.S: Likewise.
7792         * sysdeps/sparc/sparc32/udiv.S: Likewise.
7793         * sysdeps/sparc/sparc32/urem.S: Likewise.
7794
7795 2017-12-15  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
7796
7797         * sysdeps/powerpc/powerpc64/power8/strcpy.S: Use vectors
7798         for aligned inputs.
7799
7800 2017-12-14  Siddhesh Poyarekar  <siddhesh@sourceware.org>
7801
7802         * benchtests/bench-strcmp.c: Print output in JSON format.
7803
7804         * elf/dl-tunables.list: Remove redundant SXID_ERASE.
7805
7806 2017-12-14  Florian Weimer  <fweimer@redhat.com>
7807
7808         [BZ #22607]
7809         CVE-2017-1000409
7810         * elf/dl-load.c (_dl_init_paths): Compute number of components in
7811         the expanded path string.
7812
7813 2017-12-14  Florian Weimer  <fweimer@redhat.com>
7814
7815         [BZ #22606]
7816         CVE-2017-1000408
7817         * elf/dl-load.c (system_dirs): Update comment.
7818         (nsystem_dirs_len): Use array_length.
7819         (_dl_init_paths): Use nsystem_dirs_len to compute the array size.
7820
7821 2017-12-14  Florian Weimer  <fweimer@redhat.com>
7822
7823         Simplify compiling most of support/ outside of glibc.
7824         * support/check_addrinfo.c: Include <string.h>.
7825         * support/check_dns_packet.c: Likewise.
7826         * support/check_hostent.c: Likewise.
7827         * support/support_can_chroot.c: Include <support/xunistd.h>.
7828         * support/support_format_addrinfo.c: Include <stdlib.h>
7829         * support/support_format_dns_packet.c: Include <stdbool.h>.
7830         * support/support_format_hostent.c: Include <stdlib.h>.
7831         * support/support_format_netent.c: Likewise.
7832         * support/support_write_string.c: Include <support/xunistd.h>.
7833         * support/xdlfcn.c: Include <stddef.h>.
7834
7835 2017-12-14  H.J. Lu  <hongjiu.lu@intel.com>
7836
7837         * sysdeps/x86_64/fpu/s_cosf.S: Removed.
7838
7839 2017-12-14  Patrick McGehearty  <patrick.mcgehearty@oracle.com>
7840             Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7841
7842         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
7843         (sysdeps_routines): Add memset-niagara7.
7844         * sysdeps/sparc/sparc64/multiarch/Makefile (sysdes_rotuines):
7845         Likewise.
7846         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara7.S: New
7847         file.
7848         * sysdeps/sparc/sparc64/multiarch/memset-niagara7.S: Likewise.
7849         * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c
7850         (__libc_ifunc_impl_list): Add __bzero_niagara7 and __memset_niagara7.
7851         * sysdeps/sparc/sparc64/multiarch/ifunc-memset.h (IFUNC_SELECTOR):
7852         Add niagara7 option.
7853         * NEWS: Mention sparc m7 optimized memcpy, mempcpy, memmove, and
7854         memset.
7855
7856         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
7857         (sysdeps_routines): Add memcpy-memmove-niagara7 and memmove-ultra1.
7858         * sysdeps/sparc/sparc64/multiarch/Makefile (sysdeps_routines):
7859         Likewise.
7860         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-memmove-niagara7.S:
7861         New file.
7862         * sysdeps/sparc/sparc32/sparcv9/multiarch/memmove-ultra1.S: Likewise.
7863         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memmove.c: Likewise.
7864         * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c
7865         (__libc_ifunc_impl_list): Add __memcpy_niagara7, __mempcpy_niagara7,
7866         and __memmove_niagara7.
7867         * sysdeps/sparc/sparc64/multiarch/ifunc-memcpy.h (IFUNC_SELECTOR):
7868         Add niagara7 option.
7869         * sysdeps/sparc/sparc64/multiarch/memmove.c: New file.
7870         * sysdeps/sparc/sparc64/multiarch/ifunc-memmove.h: Likewise.
7871         * sysdeps/sparc/sparc64/multiarch/memcpy-memmove-niagara7.S: Likewise.
7872         * sysdeps/sparc/sparc64/multiarch/memmove-ultra1.S: Likewise.
7873         * sysdeps/sparc/sparc64/multiarch/rtld-memmove.c: Likewise.
7874
7875 2017-12-14  Jose E. Marchesi  <jose.marchesi@oracle.com>
7876
7877         * sysdeps/sparc/sparc32/sparcv9/memmove.S: New file.
7878         * sysdeps/sparc/sparc32/sparcv9/rtld-memmove.c: Likewise.
7879         * sysdeps/sparc/sparc64/memmove.S: Likewise.
7880         * sysdeps/sparc/sparc64/rtld-memmove.c: Likewise.
7881
7882         * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_ADP): Defined.
7883         * sysdeps/sparc/dl-procinfo.c: Added "adp" to the
7884         _dl_sparc_cap_flags array.
7885         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increment.
7886
7887 2017-12-13  Siddhesh Poyarekar  <siddhesh@sourceware.org>
7888
7889         * sysdeps/aarch64/strcmp.S (misaligned8): Compare dword at a
7890         time whenever possible.
7891
7892 2017-12-12  Carlos O'Donell  <carlos@redhat.com>
7893
7894         * elf/Makefile [$(nss-crypt)$(static-nss-crypt) == yesno]
7895         (CFLAGS-tst-linkall-static.c): Undefine USE_CRYPT first.
7896
7897 2017-12-12  Joseph Myers  <joseph@codesourcery.com>
7898
7899         * soft-fp/fmadf4.c: Move to ....
7900         * sysdeps/ieee754/soft-fp/s_fma.c: ... here.
7901         * soft-fp/fmasf4.c: Move to ....
7902         * sysdeps/ieee754/soft-fp/s_fmaf.c: ... here.
7903         * soft-fp/fmatf4.c: Move to ....
7904         * sysdeps/ieee754/soft-fp/s_fmal.c: ... here.
7905         * sysdeps/ieee754/soft-fp/Makefile: New file.
7906         * sysdeps/arm/preconfigure.ac: Define with_fp_cond.
7907         * sysdeps/arm/preconfigure: Regenerated.
7908         * sysdeps/arm/nofpu/Implies: New file.
7909         * sysdeps/arm/s_fma.c: Remove file.
7910         * sysdeps/arm/s_fmaf.c: Likewise.
7911         * sysdeps/m68k/coldfire/nofpu/Implies: New file.
7912         * sysdeps/m68k/coldfire/nofpu/s_fma.c: Remove file.
7913         * sysdeps/m68k/coldfire/nofpu/s_fmaf.c: Likewise.
7914         * sysdeps/microblaze/Implies: Add ieee754/soft-fp.
7915         * sysdeps/microblaze/s_fma.c: Remove file.
7916         * sysdeps/microblaze/s_fmaf.c: Likewise.
7917         * sysdeps/mips/mips32/nofpu/Implies: New file.
7918         * sysdeps/mips/mips64/n32/fpu/s_fma.c: Likewise.
7919         * sysdeps/mips/mips64/n32/nofpu/Implies: Likewise.
7920         * sysdeps/mips/mips64/n64/fpu/s_fma.c: Likewise.
7921         * sysdeps/mips/mips64/n64/nofpu/Implies: Likewise.
7922         * sysdeps/mips/ieee754/s_fma.c: Remove file.
7923         * sysdeps/mips/ieee754/s_fmaf.c: Likewise.
7924         * sysdeps/mips/ieee754/s_fmal.c: Update include for move of fmal
7925         implementation.
7926         * sysdeps/nios2/Implies: Add ieee754/soft-fp.
7927         * sysdeps/nios2/s_fma.c: Remove file.
7928         * sysdeps/nios2/s_fmaf.c: Likewise.
7929         * sysdeps/sh/nofpu/Implies: New file.
7930         * sysdeps/sh/s_fma.c: Remove file.
7931         * sysdeps/sh/s_fmaf.c: Likewise.
7932         * sysdeps/tile/Implies: Add ieee754/soft-fp.
7933         * sysdeps/tile/s_fma.c: Remove file.
7934         * sysdeps/tile/s_fmaf.c: Likewise.
7935
7936 2017-12-12  H.J. Lu  <hongjiu.lu@intel.com>
7937
7938         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
7939         Add s_cosf-sse2 and s_cosf-fma.
7940         (CFLAGS-s_cosf-fma.c): New.
7941         * sysdeps/x86_64/fpu/multiarch/s_cosf-fma.c: New file.
7942         * sysdeps/x86_64/fpu/multiarch/s_cosf-sse2.c: Likewise.
7943         * sysdeps/x86_64/fpu/multiarch/s_cosf.c: Likewise.
7944
7945 2017-12-12  Steve Ellcey  <sellcey@cavium.com>
7946
7947         * nscd/nscd.h (init_traced_file): Change strncpy to memcpy.
7948
7949 2017-12-12  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7950
7951         * libio/Makefile (tests): Add tst-bz22415.
7952         (tst-bz22415-ENV): New rule.
7953         (generated): Add tst-bz22415.mtrace and tst-bz22415.check.
7954         (tests-special): Add tst-bz22415-mem.out.
7955         ($(objpfx)tst-bz22415-mem.out): New rule.
7956         * libio/fileops.c (_IO_new_file_seekoff): Call _IO_free_backup_area
7957         in case of a successful seek operation.
7958         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
7959         (_IO_wfile_overflow): Call _IO_free_wbackup_area in case a write
7960         buffer is required.
7961         * libio/tst-bz22415.c: New test.
7962
7963         * sysdeps/ia64/fpu/libm-test-ulps: Update.
7964
7965 2017-12-12  James Clarke  <jrtc27@jrtc27.com>
7966
7967         * sysdeps/unix/sysv/linux/ia64/ipc_priv.h: New file defining
7968         __IPC_64 to 0 to avoid IPC_64 being set.
7969
7970 2017-12-12  Szabolcs Nagy  <szabolcs.nagy@arm.com>
7971
7972         [BZ #22593]
7973         * math/bits/mathcalls.h (nextafter): Remove const.
7974         (nexttoward): Likewise.
7975
7976 2017-12-12  Joseph Myers  <joseph@codesourcery.com>
7977
7978         * configure.ac (--with-fp): Remove configure option.
7979         (with_fp_cond): New variable.
7980         (libc_cv_with_fp): New configure test.  Use this variable instead
7981         of with_fp.
7982         * configure: Regenerated.
7983         * config.make.in (with-fp): Use @libc_cv_with_fp@.
7984         * manual/install.texi (Configuring and compiling): Remove
7985         --without-fp.
7986         * INSTALL: Regenerated.
7987         * sysdeps/m68k/preconfigure (with_fp_cond): Define for ColdFire.
7988         * sysdeps/mips/preconfigure (with_fp_cond): Define.
7989         * sysdeps/powerpc/preconfigure (with_fp_cond): Define for 32-bit.
7990         * sysdeps/sh/preconfigure (with_fp_cond): Define.
7991         * scripts/build-many-glibcs.py (Context.add_all_configs): Do not
7992         use --without-fp to configure glibc.
7993
7994 2017-12-12  Rical Jasan  <ricaljasan@pacific.net>
7995
7996         * manual/locale.texi (nl_langinfo): Fix a typo.
7997
7998 2017-12-12  Aurelien Jarno  <aurelien@aurel32.net>
7999
8000         [BZ #22588]
8001         * manual/conf.texi (SC_SSIZE_MAX): Rename into _SC_SSIZE_MAX.
8002
8003 2017-12-11  H.J. Lu  <hongjiu.lu@intel.com>
8004
8005         * argp/Makefile (CFLAGS-argp-help.c): Replace = with +=.
8006         (CFLAGS-argp-parse.c): Likewise.
8007         (CFLAGS-argp-fmtstream.c): Likewise.
8008         * crypt/Makefile (CPPFLAGS-sha256-crypt.c): Likewise.
8009         (CPPFLAGS-sha512-crypt.c): Likewise.
8010         (CPPFLAGS-md5-crypt.c): Likewise.
8011         * debug/Makefile (CFLAGS-stack_chk_fail.c): Likewise.
8012         (CFLAGS-stack_chk_fail_local.c): Likewise.
8013         (CFLAGS-backtrace.c): Likewise.
8014         (CFLAGS-sprintf_chk.c): Likewise.
8015         (CFLAGS-snprintf_chk.c): Likewise.
8016         (CFLAGS-vsprintf_chk.c): Likewise.
8017         (CFLAGS-vsnprintf_chk.c): Likewise.
8018         (CFLAGS-asprintf_chk.c): Likewise.
8019         (CFLAGS-vasprintf_chk.c): Likewise.
8020         (CFLAGS-obprintf_chk.c): Likewise.
8021         (CFLAGS-dprintf_chk.c): Likewise.
8022         (CFLAGS-vdprintf_chk.c): Likewise.
8023         (CFLAGS-printf_chk.c): Likewise.
8024         (CFLAGS-fprintf_chk.c): Likewise.
8025         (CFLAGS-vprintf_chk.c): Likewise.
8026         (CFLAGS-vfprintf_chk.c): Likewise.
8027         (CFLAGS-gets_chk.c): Likewise.
8028         (CFLAGS-fgets_chk.c): Likewise.
8029         (CFLAGS-fgets_u_chk.c): Likewise.
8030         (CFLAGS-fread_chk.c): Likewise.
8031         (CFLAGS-fread_u_chk.c): Likewise.
8032         (CFLAGS-swprintf_chk.c): Likewise.
8033         (CFLAGS-vswprintf_chk.c): Likewise.
8034         (CFLAGS-wprintf_chk.c): Likewise.
8035         (CFLAGS-fwprintf_chk.c): Likewise.
8036         (CFLAGS-vwprintf_chk.c): Likewise.
8037         (CFLAGS-vfwprintf_chk.c): Likewise.
8038         (CFLAGS-fgetws_chk.c): Likewise.
8039         (CFLAGS-fgetws_u_chk.c): Likewise.
8040         (CFLAGS-read_chk.c): Likewise.
8041         (CFLAGS-pread_chk.c): Likewise.
8042         (CFLAGS-pread64_chk.c): Likewise.
8043         (CFLAGS-recv_chk.c): Likewise.
8044         (CFLAGS-recvfrom_chk.c): Likewise.
8045         (CFLAGS-tst-longjmp_chk.c): Likewise.
8046         (CPPFLAGS-tst-longjmp_chk.c): Likewise.
8047         (CFLAGS-tst-longjmp_chk2.c): Likewise.
8048         (CPPFLAGS-tst-longjmp_chk2.c): Likewise.
8049         (CFLAGS-tst-longjmp_chk3.c): Likewise.
8050         (CPPFLAGS-tst-longjmp_chk3.c): Likewise.
8051         (CFLAGS-tst-chk1.c): Likewise.
8052         (CFLAGS-tst-chk2.c): Likewise.
8053         (CFLAGS-tst-chk3.c): Likewise.
8054         (CFLAGS-tst-chk4.cc): Likewise.
8055         (CFLAGS-tst-chk5.cc): Likewise.
8056         (CFLAGS-tst-chk6.cc): Likewise.
8057         (CFLAGS-tst-lfschk1.c): Likewise.
8058         (CFLAGS-tst-lfschk2.c): Likewise.
8059         (CFLAGS-tst-lfschk3.c): Likewise.
8060         (CFLAGS-tst-lfschk4.cc): Likewise.
8061         (CFLAGS-tst-lfschk5.cc): Likewise.
8062         (CFLAGS-tst-lfschk6.cc): Likewise.
8063         (CFLAGS-tst-ssp-1.c): Likewise.
8064         * dirent/Makefile (CFLAGS-scandir.c): Likewise.
8065         (CFLAGS-scandir64.c): Likewise.
8066         (CFLAGS-scandir-tail.c): Likewise.
8067         (CFLAGS-scandir64-tail.c): Likewise.
8068         * elf/Makefile (CPPFLAGS-dl-tunables.c): Likewise.
8069         (CFLAGS-dl-tunables.c): Likewise.
8070         (CFLAGS-dl-runtime.c): Likewise.
8071         (CFLAGS-dl-lookup.c): Likewise.
8072         (CFLAGS-dl-iterate-phdr.c): Likewise.
8073         (CFLAGS-vismain.c): Likewise.
8074         (CFLAGS-tst-linkall-static.c): Likewise.
8075         (CFLAGS-tst-linkall-static.c): Likewise.
8076         (CPPFLAGS-dl-load.c): Likewise.
8077         (CFLAGS-ldconfig.c): Likewise.
8078         (CFLAGS-dl-cache.c): Likewise.
8079         (CFLAGS-cache.c): Likewise.
8080         (CFLAGS-rtld.c): Likewise.
8081         (CFLAGS-multiload.c): Likewise.
8082         (CFLAGS-filtmod1.c): Likewise.
8083         (CFLAGS-tst-align.c): Likewise.
8084         (CFLAGS-tst-align2.c): Likewise.
8085         (CFLAGS-tst-alignmod.c): Likewise.
8086         (CFLAGS-tst-alignmod2.c): Likewise.
8087         (CPPFLAGS-tst-execstack.c): Likewise.
8088         (CFLAGS-tst-ptrguard1-static.c): Likewise.
8089         (CFLAGS-tst-latepthreadmod.c): Likewise.
8090         * grp/Makefile (CFLAGS-getgrgid_r.c): Likewise.
8091         (CFLAGS-getgrnam_r.c): Likewise.
8092         (CFLAGS-getgrent_r.c): Likewise.
8093         (CFLAGS-getgrent.c): Likewise.
8094         (CFLAGS-fgetgrent.c): Likewise.
8095         (CFLAGS-fgetgrent_r.c): Likewise.
8096         (CFLAGS-putgrent.c): Likewise.
8097         (CFLAGS-initgroups.c): Likewise.
8098         (CFLAGS-getgrgid.c): Likewise.
8099         * gshadow/Makefile (CFLAGS-getsgent_r.c): Likewise.
8100         (CFLAGS-getsgent.c): Likewise.
8101         (CFLAGS-fgetsgent.c): Likewise.
8102         (CFLAGS-fgetsgent_r.c): Likewise.
8103         (CFLAGS-putsgent.c): Likewise.
8104         (CFLAGS-getsgnam.c): Likewise.
8105         (CFLAGS-getsgnam_r.c): Likewise.
8106         * iconv/Makefile (CFLAGS-iconv_prog.c): Likewise.
8107         (CFLAGS-iconv_charmap.c): Likewise.
8108         (CFLAGS-dummy-repertoire.c): Likewise.
8109         (CFLAGS-charmap.c): Likewise.
8110         (CFLAGS-linereader.c): Likewise.
8111         (CFLAGS-simple-hash.c): Likewise.
8112         (CFLAGS-gconv_conf.c): Likewise.
8113         (CFLAGS-iconvconfig.c): Likewise.
8114         * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
8115         (CFLAGS-gethstbyad.c): Likewise.
8116         (CFLAGS-gethstbynm_r.c): Likewise.
8117         (CFLAGS-gethstbynm.c): Likewise.
8118         (CFLAGS-gethstbynm2_r.c): Likewise.
8119         (CFLAGS-gethstbynm2.c): Likewise.
8120         (CFLAGS-gethstent_r.c): Likewise.
8121         (CFLAGS-gethstent.c): Likewise.
8122         (CFLAGS-rcmd.c): Likewise.
8123         (CFLAGS-getnetbynm_r.c): Likewise.
8124         (CFLAGS-getnetbynm.c): Likewise.
8125         (CFLAGS-getnetbyad_r.c): Likewise.
8126         (CFLAGS-getnetbyad.c): Likewise.
8127         (CFLAGS-getnetent_r.c): Likewise.
8128         (CFLAGS-getnetent.c): Likewise.
8129         (CFLAGS-getaliasent_r.c): Likewise.
8130         (CFLAGS-getaliasent.c): Likewise.
8131         (CFLAGS-getrpcent_r.c): Likewise.
8132         (CFLAGS-getrpcent.c): Likewise.
8133         (CFLAGS-getservent_r.c): Likewise.
8134         (CFLAGS-getservent.c): Likewise.
8135         (CFLAGS-getprtent_r.c): Likewise.
8136         (CFLAGS-getprtent.c): Likewise.
8137         (CFLAGS-either_ntoh.c): Likewise.
8138         (CFLAGS-either_hton.c): Likewise.
8139         (CFLAGS-getnetgrent.c): Likewise.
8140         (CFLAGS-getnetgrent_r.c): Likewise.
8141         (CFLAGS-tst-checks-posix.c): Likewise.
8142         (CFLAGS-tst-sockaddr.c): Likewise.
8143         * intl/Makefile (CFLAGS-tst-gettext.c): Likewise.
8144         (CFLAGS-tst-translit.c): Likewise.
8145         (CFLAGS-tst-gettext2.c): Likewise.
8146         (CFLAGS-tst-codeset.c): Likewise.
8147         (CFLAGS-tst-gettext3.c): Likewise.
8148         (CFLAGS-tst-gettext4.c): Likewise.
8149         (CFLAGS-tst-gettext5.c): Likewise.
8150         (CFLAGS-tst-gettext6.c): Likewise.
8151         * io/Makefile (CFLAGS-open.c): Likewise.
8152         (CFLAGS-open64.c): Likewise.
8153         (CFLAGS-creat.c): Likewise.
8154         (CFLAGS-creat64.c): Likewise.
8155         (CFLAGS-fcntl.c): Likewise.
8156         (CFLAGS-poll.c): Likewise.
8157         (CFLAGS-ppoll.c): Likewise.
8158         (CFLAGS-lockf.c): Likewise.
8159         (CFLAGS-statfs.c): Likewise.
8160         (CFLAGS-fstatfs.c): Likewise.
8161         (CFLAGS-statvfs.c): Likewise.
8162         (CFLAGS-fstatvfs.c): Likewise.
8163         (CFLAGS-fts.c): Likewise.
8164         (CFLAGS-fts64.c): Likewise.
8165         (CFLAGS-ftw.c): Likewise.
8166         (CFLAGS-ftw64.c): Likewise.
8167         (CFLAGS-lockf.c): Likewise.
8168         (CFLAGS-posix_fallocate.c): Likewise.
8169         (CFLAGS-posix_fallocate64.c): Likewise.
8170         (CFLAGS-fallocate.c): Likewise.
8171         (CFLAGS-fallocate64.c): Likewise.
8172         (CFLAGS-read.c): Likewise.
8173         (CFLAGS-write.c): Likewise.
8174         (CFLAGS-test-stat.c): Likewise.
8175         (CFLAGS-test-lfs.c): Likewise.
8176         * libio/Makefile (CFLAGS-fileops.c): Likewise.
8177         (CFLAGS-fputc.c): Likewise.
8178         (CFLAGS-fputwc.c): Likewise.
8179         (CFLAGS-freopen64.c): Likewise.
8180         (CFLAGS-freopen.c): Likewise.
8181         (CFLAGS-fseek.c): Likewise.
8182         (CFLAGS-fseeko64.c): Likewise.
8183         (CFLAGS-fseeko.c): Likewise.
8184         (CFLAGS-ftello64.c): Likewise.
8185         (CFLAGS-ftello.c): Likewise.
8186         (CFLAGS-fwide.c): Likewise.
8187         (CFLAGS-genops.c): Likewise.
8188         (CFLAGS-getc.c): Likewise.
8189         (CFLAGS-getchar.c): Likewise.
8190         (CFLAGS-getwc.c): Likewise.
8191         (CFLAGS-getwchar.c): Likewise.
8192         (CFLAGS-iofclose.c): Likewise.
8193         (CFLAGS-iofflush.c): Likewise.
8194         (CFLAGS-iofgetpos64.c): Likewise.
8195         (CFLAGS-iofgetpos.c): Likewise.
8196         (CFLAGS-iofgets.c): Likewise.
8197         (CFLAGS-iofgetws.c): Likewise.
8198         (CFLAGS-iofputs.c): Likewise.
8199         (CFLAGS-iofputws.c): Likewise.
8200         (CFLAGS-iofread.c): Likewise.
8201         (CFLAGS-iofsetpos64.c): Likewise.
8202         (CFLAGS-iofsetpos.c): Likewise.
8203         (CFLAGS-ioftell.c): Likewise.
8204         (CFLAGS-iofwrite.c): Likewise.
8205         (CFLAGS-iogetdelim.c): Likewise.
8206         (CFLAGS-iogetline.c): Likewise.
8207         (CFLAGS-iogets.c): Likewise.
8208         (CFLAGS-iogetwline.c): Likewise.
8209         (CFLAGS-ioputs.c): Likewise.
8210         (CFLAGS-ioseekoff.c): Likewise.
8211         (CFLAGS-ioseekpos.c): Likewise.
8212         (CFLAGS-iosetbuffer.c): Likewise.
8213         (CFLAGS-iosetvbuf.c): Likewise.
8214         (CFLAGS-ioungetc.c): Likewise.
8215         (CFLAGS-ioungetwc.c): Likewise.
8216         (CFLAGS-oldfileops.c): Likewise.
8217         (CFLAGS-oldiofclose.c): Likewise.
8218         (CFLAGS-oldiofgetpos64.c): Likewise.
8219         (CFLAGS-oldiofgetpos.c): Likewise.
8220         (CFLAGS-oldiofsetpos64.c): Likewise.
8221         (CFLAGS-oldiofsetpos.c): Likewise.
8222         (CFLAGS-peekc.c): Likewise.
8223         (CFLAGS-putc.c): Likewise.
8224         (CFLAGS-putchar.c): Likewise.
8225         (CFLAGS-putwc.c): Likewise.
8226         (CFLAGS-putwchar.c): Likewise.
8227         (CFLAGS-rewind.c): Likewise.
8228         (CFLAGS-wfileops.c): Likewise.
8229         (CFLAGS-wgenops.c): Likewise.
8230         (CFLAGS-oldiofopen.c): Likewise.
8231         (CFLAGS-iofopen.c): Likewise.
8232         (CFLAGS-iofopen64.c): Likewise.
8233         (CFLAGS-oldtmpfile.c): Likewise.
8234         (CFLAGS-tst_putwc.c): Likewise.
8235         * locale/Makefile (CFLAGS-md5.c): Likewise.
8236         (CFLAGS-charmap.c): Likewise.
8237         (CFLAGS-locfile.c): Likewise.
8238         (CFLAGS-charmap-dir.c): Likewise.
8239         * login/Makefile (CFLAGS-grantpt.c): Likewise.
8240         (CFLAGS-getpt.c): Likewise.
8241         (CFLAGS-pt_chown.c): Likewise.
8242         * malloc/Makefile (CFLAGS-mcheck-init.c): Likewise.
8243         (CFLAGS-obstack.c): Likewise.
8244         * math/Makefile (CFLAGS-test-tgmath3.c): Likewise.
8245         (CFLAGS-test-double-vlen4-wrappers.c): Likewise.
8246         (CFLAGS-test-double-vlen8-wrappers.c): Likewise.
8247         (CFLAGS-test-float-vlen8-wrappers.c): Likewise.
8248         (CFLAGS-test-float-vlen16-wrappers.c): Likewise.
8249         (CFLAGS-test-tgmath.c): Likewise.
8250         (CFLAGS-test-tgmath2.c): Likewise.
8251         (CFLAGS-test-tgmath-ret.c): Likewise.
8252         (CFLAGS-test-powl.c): Likewise.
8253         (CFLAGS-test-snan.c): Likewise.
8254         (CFLAGS-test-signgam-finite.c): Likewise.
8255         (CFLAGS-test-signgam-finite-c99.c): Likewise.
8256         (CFLAGS-test-signgam-finite-c11.c): Likewise.
8257         (CFLAGS-test-signgam-uchar.c): Likewise.
8258         (CFLAGS-test-signgam-uchar-init.c): Likewise.
8259         (CFLAGS-test-signgam-uchar-static.c): Likewise.
8260         (CFLAGS-test-signgam-uchar-init-static.c): Likewise.
8261         (CFLAGS-test-signgam-uint.c): Likewise.
8262         (CFLAGS-test-signgam-uint-init.c): Likewise.
8263         (CFLAGS-test-signgam-uint-static.c): Likewise.
8264         (CFLAGS-test-signgam-uint-init-static.c): Likewise.
8265         (CFLAGS-test-signgam-ullong.c): Likewise.
8266         (CFLAGS-test-signgam-ullong-init.c): Likewise.
8267         (CFLAGS-test-signgam-ullong-static.c): Likewise.
8268         (CFLAGS-test-signgam-ullong-init-static.c): Likewise.
8269         (CFLAGS-test-math-cxx11.cc): Likewise.
8270         (CFLAGS-test-math-isinff.cc): Likewise.
8271         (CFLAGS-test-math-iszero.cc): Likewise.
8272         (CFLAGS-test-math-issignaling.cc): Likewise.
8273         (CFLAGS-test-math-iscanonical.cc): Likewise.
8274         (CFLAGS-test-iszero-excess-precision.c): Likewise.
8275         (CFLAGS-test-iseqsig-excess-precision.c): Likewise.
8276         (CFLAGS-test-flt-eval-method.c): Likewise.
8277         (CFLAGS-test-fe-snans-always-signal.c): Likewise.
8278         (CFLAGS-test-finite-macros.c): Likewise.
8279         * misc/Makefile (CFLAGS-select.c): Likewise.
8280         (CFLAGS-tsearch.c): Likewise.
8281         (CFLAGS-lsearch.c): Likewise.
8282         (CFLAGS-pselect.c): Likewise.
8283         (CFLAGS-readv.c): Likewise.
8284         (CFLAGS-writev.c): Likewise.
8285         (CFLAGS-preadv.c): Likewise.
8286         (CFLAGS-preadv64.c): Likewise.
8287         (CFLAGS-pwritev.c): Likewise.
8288         (CFLAGS-pwritev64.c): Likewise.
8289         (CFLAGS-preadv2.c): Likewise.
8290         (CFLAGS-preadv64v2.c): Likewise.
8291         (CFLAGS-pwritev2.c): Likewise.
8292         (CFLAGS-pwritev64v2.c): Likewise.
8293         (CFLAGS-usleep.c): Likewise.
8294         (CFLAGS-syslog.c): Likewise.
8295         (CFLAGS-error.c): Likewise.
8296         (CFLAGS-getpass.c): Likewise.
8297         (CFLAGS-mkstemp.c): Likewise.
8298         (CFLAGS-mkstemp64.c): Likewise.
8299         (CFLAGS-getsysstats.c): Likewise.
8300         (CFLAGS-getusershell.c): Likewise.
8301         (CFLAGS-err.c): Likewise.
8302         (CFLAGS-tst-tsearch.c): Likewise.
8303         (CFLAGS-msync.c): Likewise.
8304         (CFLAGS-fdatasync.c): Likewise.
8305         (CFLAGS-fsync.c): Likewise.
8306         * nptl/Makefile (CFLAGS-nptl-init.c): Likewise.
8307         (CFLAGS-unwind.c): Likewise.
8308         (CFLAGS-unwind-forcedunwind.c): Likewise.
8309         (CFLAGS-pthread_cancel.c): Likewise.
8310         (CFLAGS-pthread_setcancelstate.c): Likewise.
8311         (CFLAGS-pthread_setcanceltype.c): Likewise.
8312         (CFLAGS-cancellation.c): Likewise.
8313         (CFLAGS-libc-cancellation.c): Likewise.
8314         (CFLAGS-pthread_exit.c): Likewise.
8315         (CFLAGS-forward.c): Likewise.
8316         (CFLAGS-pthread_testcancel.c): Likewise.
8317         (CFLAGS-pthread_join.c): Likewise.
8318         (CFLAGS-pthread_timedjoin.c): Likewise.
8319         (CFLAGS-pthread_once.c): Likewise.
8320         (CFLAGS-pthread_cond_wait.c): Likewise.
8321         (CFLAGS-sem_wait.c): Likewise.
8322         (CFLAGS-sem_timedwait.c): Likewise.
8323         (CFLAGS-fcntl.c): Likewise.
8324         (CFLAGS-lockf.c): Likewise.
8325         (CFLAGS-pread.c): Likewise.
8326         (CFLAGS-pread64.c): Likewise.
8327         (CFLAGS-pwrite.c): Likewise.
8328         (CFLAGS-pwrite64.c): Likewise.
8329         (CFLAGS-wait.c): Likewise.
8330         (CFLAGS-waitpid.c): Likewise.
8331         (CFLAGS-sigwait.c): Likewise.
8332         (CFLAGS-msgrcv.c): Likewise.
8333         (CFLAGS-msgsnd.c): Likewise.
8334         (CFLAGS-tcdrain.c): Likewise.
8335         (CFLAGS-open.c): Likewise.
8336         (CFLAGS-open64.c): Likewise.
8337         (CFLAGS-pause.c): Likewise.
8338         (CFLAGS-recv.c): Likewise.
8339         (CFLAGS-send.c): Likewise.
8340         (CFLAGS-accept.c): Likewise.
8341         (CFLAGS-sendto.c): Likewise.
8342         (CFLAGS-connect.c): Likewise.
8343         (CFLAGS-recvfrom.c): Likewise.
8344         (CFLAGS-recvmsg.c): Likewise.
8345         (CFLAGS-sendmsg.c): Likewise.
8346         (CFLAGS-close.c): Likewise.
8347         (CFLAGS-read.c): Likewise.
8348         (CFLAGS-write.c): Likewise.
8349         (CFLAGS-nanosleep.c): Likewise.
8350         (CFLAGS-sigsuspend.c): Likewise.
8351         (CFLAGS-msync.c): Likewise.
8352         (CFLAGS-fdatasync.c): Likewise.
8353         (CFLAGS-fsync.c): Likewise.
8354         (CFLAGS-pt-system.c): Likewise.
8355         (CFLAGS-tst-cleanup2.c): Likewise.
8356         (CFLAGS-tst-cleanupx2.c): Likewise.
8357         (CFLAGS-flockfile.c): Likewise.
8358         (CFLAGS-ftrylockfile.c): Likewise.
8359         (CFLAGS-funlockfile.c): Likewise.
8360         (CFLAGS-tst-initializers1.c): Likewise.
8361         (CFLAGS-tst-initializers1-c89.c): Likewise.
8362         (CFLAGS-tst-initializers1-c99.c): Likewise.
8363         (CFLAGS-tst-initializers1-c11.c): Likewise.
8364         (CFLAGS-tst-initializers1-gnu89.c): Likewise.
8365         (CFLAGS-tst-initializers1-gnu99.c): Likewise.
8366         (CFLAGS-tst-initializers1-gnu11.c): Likewise.
8367         * nscd/Makefile (CFLAGS-nscd_getpw_r.c): Likewise.
8368         (CFLAGS-nscd_getgr_r.c): Likewise.
8369         (CFLAGS-nscd_gethst_r.c): Likewise.
8370         (CFLAGS-nscd_getai.c): Likewise.
8371         (CFLAGS-nscd_initgroups.c): Likewise.
8372         * posix/Makefile (CFLAGS-getaddrinfo.c): Likewise.
8373         (CFLAGS-pause.c): Likewise.
8374         (CFLAGS-pread.c): Likewise.
8375         (CFLAGS-pread64.c): Likewise.
8376         (CFLAGS-pwrite.c): Likewise.
8377         (CFLAGS-pwrite64.c): Likewise.
8378         (CFLAGS-sleep.c): Likewise.
8379         (CFLAGS-wait.c): Likewise.
8380         (CFLAGS-waitid.c): Likewise.
8381         (CFLAGS-waitpid.c): Likewise.
8382         (CFLAGS-getopt.c): Likewise.
8383         (CFLAGS-wordexp.c): Likewise.
8384         (CFLAGS-sysconf.c): Likewise.
8385         (CFLAGS-pathconf.c): Likewise.
8386         (CFLAGS-fpathconf.c): Likewise.
8387         (CFLAGS-spawn.c): Likewise.
8388         (CFLAGS-spawnp.c): Likewise.
8389         (CFLAGS-spawni.c): Likewise.
8390         (CFLAGS-glob.c): Likewise.
8391         (CFLAGS-glob64.c): Likewise.
8392         (CFLAGS-getconf.c): Likewise.
8393         (CFLAGS-nanosleep.c): Likewise.
8394         * pwd/Makefile (CFLAGS-getpwent_r.c): Likewise.
8395         (CFLAGS-getpwent.c): Likewise.
8396         (CFLAGS-getpw.c): Likewise.
8397         (CFLAGS-fgetpwent_r.c): Likewise.
8398         * resolv/Makefile (CFLAGS-res_hconf.c): Likewise.
8399         * rt/Makefile (CFLAGS-aio_suspend.c): Likewise.
8400         (CFLAGS-mq_timedreceive.c): Likewise.
8401         (CFLAGS-mq_timedsend.c): Likewise.
8402         (CFLAGS-clock_nanosleep.c): Likewise.
8403         (CFLAGS-librt-cancellation.c): Likewise.
8404         * shadow/Makefile (CFLAGS-getspent_r.c): Likewise.
8405         (CFLAGS-getspent.c): Likewise.
8406         (CFLAGS-fgetspent.c): Likewise.
8407         (CFLAGS-fgetspent_r.c): Likewise.
8408         (CFLAGS-putspent.c): Likewise.
8409         (CFLAGS-getspnam.c): Likewise.
8410         (CFLAGS-getspnam_r.c): Likewise.
8411         * signal/Makefile (CFLAGS-sigpause.c): Likewise.
8412         (CFLAGS-sigsuspend.c): Likewise.
8413         (CFLAGS-sigtimedwait.c): Likewise.
8414         (CFLAGS-sigwait.c): Likewise.
8415         (CFLAGS-sigwaitinfo.c): Likewise.
8416         (CFLAGS-sigreturn.c): Likewise.
8417         * stdio-common/Makefile (CFLAGS-vfprintf.c): Likewise.
8418         (CFLAGS-vfwprintf.c): Likewise.
8419         (CFLAGS-tmpfile.c): Likewise.
8420         (CFLAGS-tmpfile64.c): Likewise.
8421         (CFLAGS-tempname.c): Likewise.
8422         (CFLAGS-psignal.c): Likewise.
8423         (CFLAGS-vprintf.c): Likewise.
8424         (CFLAGS-cuserid.c): Likewise.
8425         (CFLAGS-errlist.c): Likewise.
8426         (CFLAGS-siglist.c): Likewise.
8427         (CFLAGS-scanf15.c): Likewise.
8428         (CFLAGS-scanf17.c): Likewise.
8429         * stdlib/Makefile (CFLAGS-bsearch.c): Likewise.
8430         (CFLAGS-msort.c): Likewise.
8431         (CFLAGS-qsort.c): Likewise.
8432         (CFLAGS-system.c): Likewise.
8433         (CFLAGS-fmtmsg.c): Likewise.
8434         (CFLAGS-strfmon.c): Likewise.
8435         (CFLAGS-strfmon_l.c): Likewise.
8436         (CFLAGS-strfromd.c): Likewise.
8437         (CFLAGS-strfromf.c): Likewise.
8438         (CFLAGS-strfroml.c): Likewise.
8439         (CFLAGS-tst-bsearch.c): Likewise.
8440         (CFLAGS-tst-qsort.c): Likewise.
8441         (CFLAGS-tst-makecontext2.c): Likewise.
8442         * sunrpc/Makefile (CFLAGS-xbootparam_prot.c): Likewise.
8443         (CFLAGS-xnlm_prot.c): Likewise.
8444         (CFLAGS-xrstat.c): Likewise.
8445         (CFLAGS-xyppasswd.c): Likewise.
8446         (CFLAGS-xklm_prot.c): Likewise.
8447         (CFLAGS-xrex.c): Likewise.
8448         (CFLAGS-xsm_inter.c): Likewise.
8449         (CFLAGS-xmount.c): Likewise.
8450         (CFLAGS-xrusers.c): Likewise.
8451         (CFLAGS-xspray.c): Likewise.
8452         (CFLAGS-xnfs_prot.c): Likewise.
8453         (CFLAGS-xrquota.c): Likewise.
8454         (CFLAGS-xkey_prot.c): Likewise.
8455         (CFLAGS-auth_unix.c): Likewise.
8456         (CFLAGS-key_call.c): Likewise.
8457         (CFLAGS-pmap_rmt.c): Likewise.
8458         (CFLAGS-clnt_perr.c): Likewise.
8459         (CFLAGS-openchild.c): Likewise.
8460         * sysvipc/Makefile (CFLAGS-msgrcv.c): Likewise.
8461         (CFLAGS-msgsnd.c): Likewise.
8462         * termios/Makefile (CFLAGS-tcdrain.c): Likewise.
8463         * time/Makefile (CFLAGS-tzfile.c): Likewise.
8464         (CFLAGS-tzset.c): Likewise.
8465         (CFLAGS-getdate.c): Likewise.
8466         (CFLAGS-test_time.c): Likewise.
8467         (CPPFLAGS-tst-tzname.c): Likewise.
8468         * timezone/Makefile (CFLAGS-zdump.c): Likewise.
8469         (CFLAGS-zic.c): Likewise.
8470         * wcsmbs/Makefile (CFLAGS-wcwidth.c): Likewise.
8471         (CFLAGS-wcswidth.c): Likewise.
8472         (CFLAGS-wcstol.c): Likewise.
8473         (CFLAGS-wcstoul.c): Likewise.
8474         (CFLAGS-wcstoll.c): Likewise.
8475         (CFLAGS-wcstoull.c): Likewise.
8476         (CFLAGS-wcstod.c): Likewise.
8477         (CFLAGS-wcstold.c): Likewise.
8478         (CFLAGS-wcstof128.c): Likewise.
8479         (CFLAGS-wcstof.c): Likewise.
8480         (CFLAGS-wcstol_l.c): Likewise.
8481         (CFLAGS-wcstoul_l.c): Likewise.
8482         (CFLAGS-wcstoll_l.c): Likewise.
8483         (CFLAGS-wcstoull_l.c): Likewise.
8484         (CFLAGS-wcstod_l.c): Likewise.
8485         (CFLAGS-wcstold_l.c): Likewise.
8486         (CFLAGS-wcstof128_l.c): Likewise.
8487         (CFLAGS-wcstof_l.c): Likewise.
8488         (CPPFLAGS-tst-wchar-h.c): Likewise.
8489         (CPPFLAGS-wcstold_l.c): Likewise.
8490 ---
8491 2017-12-11  Paul A. Clarke  <pc@us.ibm.com>
8492
8493         * sysdeps/ieee754/flt-32/s_cosf.c: New implementation.
8494
8495 2017-12-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8496             Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
8497
8498         * manual/tunables.texi (Hardware Capability Tunables): Document
8499         glibc.tune.cached_memopt.
8500         * sysdeps/powerpc/cpu-features.c: New file.
8501         * sysdeps/powerpc/cpu-features.h: New file.
8502         * sysdeps/powerpc/dl-procinfo.c [!IS_IN(ldconfig)]: Add
8503         _dl_powerpc_cpu_features.
8504         * sysdeps/powerpc/dl-tunables.list: New file.
8505         * sysdeps/powerpc/ldsodefs.h: Include cpu-features.h.
8506         * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h
8507         (INIT_ARCH): Initialize use_aligned_memopt.
8508         * sysdeps/powerpc/powerpc64/dl-machine.h [defined(SHARED &&
8509         IS_IN(rtld))]: Restrict dl_platform_init availability and
8510         initialize CPU features used by tunables.
8511         * sysdeps/powerpc/powerpc64/multiarch/Makefile (sysdep_routines):
8512         Add memcpy-power8-cached.
8513         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Add
8514         __memcpy_power8_cached.
8515         * sysdeps/powerpc/powerpc64/multiarch/memcpy.c: Likewise.
8516         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power8-cached.S:
8517         New file.
8518
8519 2017-12-11  H.J. Lu  <hongjiu.lu@intel.com>
8520
8521         * string/Makefile (CFLAGS-inl-tester.c): Replace = with +=.
8522         (CFLAGS-noinl-tester.c): Likewise.
8523         (CFLAGS-tst-strlen.c): Likewise.
8524         (CFLAGS-stratcliff.c): Likewise.
8525         (CFLAGS-test-ffs.c): Likewise.
8526         (CFLAGS-tst-inlcall.c): Likewise.
8527         (CFLAGS-tst-xbzero-opt.c): Likewise.
8528         (CFLAGS-memcpy.c): Likewise.
8529         (CFLAGS-wordcopy.c): Likewise.
8530
8531 2017-12-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
8532
8533         * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
8534         Store r15 on stack and add cfi rule.
8535         * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
8536         Likewise.
8537
8538 2017-12-10  Aurelien Jarno  <aurelien@aurel32.net>
8539
8540         [BZ #22577]
8541         * elf/rtld.c (init_tls): Add missing new line to the _dl_fatal_printf
8542         call.
8543
8544 2017-12-07  H.J. Lu  <hongjiu.lu@intel.com>
8545
8546         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
8547         Add s_sinf-sse2 and s_sinf-fma.
8548         (CFLAGS-s_sinf-fma.c): New.
8549         * sysdeps/x86_64/fpu/multiarch/s_sinf-fma.c: New file.
8550         * sysdeps/x86_64/fpu/multiarch/s_sinf-sse2.c: Likewise.
8551         * sysdeps/x86_64/fpu/multiarch/s_sinf.c: Likewise.
8552
8553 2017-12-07  H.J. Lu  <hongjiu.lu@intel.com>
8554
8555         * sysdeps/x86_64/fpu/s_sinf.S: Removed.
8556
8557 2017-12-07  Joseph Myers  <joseph@codesourcery.com>
8558
8559         [BZ #22568]
8560         * math/s_ctan_template.c (M_DECL_FUNC (__ctan)): Set imaginary
8561         part of result to imaginary part of argument if it is zero and the
8562         real part of the argument is not finite.
8563         * math/s_ctanh_template.c (M_DECL_FUNC (__ctanh)): Set real part
8564         of result to real part of argument if it is zero and the imaginary
8565         part of the argument is not finite.
8566
8567 2017-12-07  Mike FABIAN  <mfabian@redhat.com>
8568
8569         [BZ #22524]
8570         * localedata/Makefile: Add lt_LT.UTF-8 to test-input
8571         and to the list of locales to be built for testing.
8572         * localedata/lt_LT.UTF-8.in: New file for testing the collation.
8573         * localedata/locales/lt_LT (LC_COLLATE): Use “copy "iso14651_t1"”
8574         and build the collation rules upon that.
8575
8576 2017-12-07  Joseph Myers  <joseph@codesourcery.com>
8577
8578         * bits/floatn-common.h (__HAVE_FLOAT32): Define to 1.
8579         * manual/math.texi (Mathematics): Document support for _Float32.
8580         * math/Makefile (test-types): Add float32.
8581         * math/Versions (GLIBC_2.27): Add _Float32 functions.
8582         * stdlib/Versions (GLIBC_2.27): Likewise.
8583         * wcsmbs/Versions (GLIBC_2.27): Likewise.
8584         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
8585         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
8586         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
8587         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
8588         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
8589         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
8590         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
8591         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
8592         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
8593         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
8594         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
8595         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
8596         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
8597         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
8598         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
8599         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
8600         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
8601         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
8602         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
8603         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
8604         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
8605         Likewise.
8606         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
8607         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
8608         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
8609         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
8610         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
8611         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
8612         Likewise.
8613         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
8614         Likewise.
8615         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
8616         Likewise.
8617         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
8618         Likewise.
8619
8620         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
8621         Likewise.
8622         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
8623         Likewise.
8624         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
8625         Likewise.
8626         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
8627         Likewise.
8628         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
8629         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
8630         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
8631         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
8632         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
8633         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
8634         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
8635         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
8636         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
8637         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
8638         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
8639         Likewise.
8640         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
8641         Likewise.
8642         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
8643         Likewise.
8644         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
8645         Likewise.
8646         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
8647         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
8648         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
8649         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
8650         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
8651         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
8652         * sysdeps/i386/fpu/libm-test-ulps: Likewise.
8653         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
8654
8655 2017-12-06  Joseph Myers  <joseph@codesourcery.com>
8656
8657         * stdlib/strtof.c: Include <bits/floatn.h>
8658         [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strtof32): Define
8659         and later undefine as macro.  Define as weak alias if
8660         [!USE_WIDE_CHAR].
8661         [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (wcstof32): Define
8662         and later undefine as macro.  Define as weak alias if
8663         [USE_WIDE_CHAR].
8664         * stdlib/strtof_l.c: Include <bits/floatn.h>
8665         [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strtof32_l): Define
8666         and later undefine as macro.  Define as weak alias if
8667         [!USE_WIDE_CHAR].
8668         [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (wcstof32_l): Define
8669         and later undefine as macro.  Define as weak alias if
8670         [USE_WIDE_CHAR].
8671
8672         * stdlib/strfromf.c: Include <bits/floatn.h>.
8673         [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strfromf32): Define
8674         and later undefine as macro and define as weak alias.
8675
8676         * math/test-float32.h: New file.
8677
8678         * sysdeps/generic/libm-alias-float.h: Include <bits/floatn.h>.
8679         [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32]
8680         (libm_alias_float_other_r): Create f32 alias.
8681         (libm_alias_float_r): Use semicolon before call to
8682         libm_alias_float_other_r.
8683
8684         * sysdeps/ia64/fpu/e_exp2f.S (__exp2f): Use exp2 not __exp2 as
8685         second argument to libm_alias_float_other.
8686         * sysdeps/ia64/fpu/e_log2f.S (__log2f): Use log2 not __log2 as
8687         second argument to libm_alias_float_other.
8688         * sysdeps/ia64/fpu/e_powf.S (__powf): Use pow not __pow as second
8689         argument to libm_alias_float_other.
8690
8691         [BZ #22561]
8692         * math/s_cacosh_template.c (M_DECL_FUNC (__cacosh)): Use pi/2 for
8693         real part of result for argument 0 + i * NaN.
8694         * math/libm-test-cacosh.inc (cacosh_test_data): Update expected
8695         results for tests of 0 + i * NaN.
8696
8697 2017-12-06  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
8698
8699         * sysdeps/alpha/fpu/libm-test-ulps: Update.
8700
8701 2017-12-06  David S. Miller  <davem@davemloft.net>
8702
8703         * sysdeps/sparc/fpu/libm-test-ulps: Update
8704         exp_{downward,towardzero,upward} ulps.
8705
8706 2017-12-06  Joseph Myers  <joseph@codesourcery.com>
8707
8708         * sysdeps/ieee754/ldbl-96/e_j1l.c (qone): Don't make local
8709         variables static.
8710
8711         * sysdeps/ieee754/ldbl-128/e_j0l.c (Y0_2N): Make const.
8712         (Y0_2D): Likewise.
8713         * sysdeps/ieee754/ldbl-128/e_j1l.c (Y0_2N): Likewise.
8714         (Y0_2D): Likewise.
8715         * sysdeps/ieee754/ldbl-128ibm/e_j0l.c (Y0_2N): Likewise.
8716         (Y0_2D): Likewise.
8717         * sysdeps/ieee754/ldbl-128ibm/e_j1l.c (Y0_2N): Likewise.
8718         (Y0_2D): Likewise.
8719
8720 2017-12-06  Mike FABIAN  <mfabian@redhat.com>
8721
8722         [BZ #22515]
8723         * localedata/Makefile: Add hsb_DE.UTF-8 to test-input
8724         and to the list of locales to be built for testing.
8725         * localedata/hsb_DE.UTF-8.in: New file for testing the collation.
8726         * localedata/locales/hsb_DE (LC_COLLATE): Use “copy "iso14651_t1"”
8727         and build the collation rules upon that.
8728
8729 2017-12-06  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
8730
8731         * NEWS: Add sinf to list of optimized functions.
8732
8733 2017-12-06  Joseph Myers  <joseph@codesourcery.com>
8734
8735         * bits/floatn-common.h (__HAVE_FLOAT64): Define to 1.
8736         (__HAVE_FLOAT32X): Likewise.
8737         * manual/math.texi (Mathematics): Document support for _Float64
8738         and _Float32x.
8739         * math/Makefile (test-types): Add float64 and float32x.
8740         * math/Versions (GLIBC_2.27): Add _Float64 and _Float32x
8741         functions.
8742         * stdlib/Versions (GLIBC_2.27): Likewise.
8743         * wcsmbs/Versions (GLIBC_2.27): Likewise.
8744         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
8745         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
8746         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
8747         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
8748         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
8749         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
8750         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
8751         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
8752         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
8753         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
8754         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
8755         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
8756         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
8757         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
8758         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
8759         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
8760         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
8761         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
8762         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
8763         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
8764         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
8765         Likewise.
8766         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
8767         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
8768         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
8769         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
8770         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
8771         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
8772         Likewise.
8773         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
8774         Likewise.
8775         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
8776         Likewise.
8777         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
8778         Likewise.
8779         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
8780         Likewise.
8781         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
8782         Likewise.
8783         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
8784         Likewise.
8785         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
8786         Likewise.
8787         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
8788         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
8789         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
8790         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
8791         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
8792         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
8793         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
8794         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
8795         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
8796         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
8797         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
8798         Likewise.
8799         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
8800         Likewise.
8801         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
8802         Likewise.
8803         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
8804         Likewise.
8805         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
8806         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
8807         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
8808         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
8809         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
8810         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
8811         * sysdeps/i386/fpu/libm-test-ulps: Likewise.
8812         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
8813
8814 2017-12-05  Joseph Myers  <joseph@codesourcery.com>
8815
8816         * bits/floatn-common.h: Include <bits/long-double.h>.
8817         [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
8818         && __NO_LONG_DOUBLE_MATH] (__f64): Use suffix 'l'.
8819         [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
8820         && __NO_LONG_DOUBLE_MATH] (__CFLOAT64): Use _Complex long double.
8821         [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
8822         && __NO_LONG_DOUBLE_MATH] (_Float64): Use long double.
8823         [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
8824         (__builtin_huge_valf64): Use __builtin_huge_vall.
8825         [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
8826         (__builtin_inff64): Use __builtin_infl.
8827         [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
8828         (__builtin_nanf64): Use __builtin_nanl.
8829         [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
8830         (__builtin_nansf64): Use __builtin_nansl.
8831
8832 2017-12-05  Rogerio A. Cardoso  <rcardoso@linux.vnet.ibm.com>
8833             Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
8834             Carlos O'Donnell <carlos@redhat.com>
8835
8836         * elf/dl-tunables.list: Add elision parameters.
8837         * manual/tunables.texi: Add entries about elision tunable.
8838         * sysdeps/unix/sysv/linux/powerpc/elision-conf.c:
8839         Add callback functions to dynamically enable/disable elision.
8840         Add multiple callbacks functions to set elision parameters.
8841         Deleted __libc_enable_secure check.
8842         * sysdeps/unix/sysv/linux/s390/elision-conf.c: Likewise.
8843         * sysdeps/unix/sysv/linux/x86/elision-conf.c: Likewise.
8844         * configure: Regenerated.
8845         * configure.ac: Option enable_lock_elision was deleted.
8846         * config.h.in: ENABLE_LOCK_ELISION flag was deleted.
8847         * config.make.in: Remove references to enable_lock_elision.
8848         * manual/install.texi: Elision configure option was removed.
8849         * INSTALL: Regenerated to remove enable_lock_elision.
8850         * nptl/Makefile:
8851         Disable elision so it can verify error case for destroying a mutex.
8852         * sysdeps/powerpc/nptl/elide.h:
8853         Cleanup ENABLE_LOCK_ELISION check.
8854         Deleted macros for the case when ENABLE_LOCK_ELISION was not defined.
8855         * sysdeps/s390/configure: Regenerated.
8856         * sysdeps/s390/configure.ac: Remove references to enable_lock_elision..
8857         * nptl/tst-mutex8.c:
8858         Deleted all #ifndef ENABLE_LOCK_ELISION from the test.
8859         * sysdeps/powerpc/powerpc32/sysdep.h:
8860         Deleted all ENABLE_LOCK_ELISION checks.
8861         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
8862         * sysdeps/powerpc/sysdep.h: Likewise.
8863         * sysdeps/s390/nptl/bits/pthreadtypes-arch.h: Likewise.
8864         * sysdeps/unix/sysv/linux/powerpc/force-elision.h: Likewise.
8865         * sysdeps/unix/sysv/linux/s390/elision-conf.h: Likewise.
8866         * sysdeps/unix/sysv/linux/s390/force-elision.h: Likewise.
8867         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
8868         * sysdeps/unix/sysv/linux/s390/Makefile: Remove references to
8869         enable-lock-elision.
8870
8871 2017-12-05  Joseph Myers  <joseph@codesourcery.com>
8872
8873         * stdlib/strtod.c: Include <bits/floatn.h>.
8874         (BUILD_DOUBLE): New macro.
8875         [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
8876         (strtof64): Define and later undefine as macro.  Define as weak
8877         alias if [!USE_WIDE_CHAR].
8878         [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
8879         (wcstof64): Define and later undefine as macro.  Define as weak
8880         alias if [USE_WIDE_CHAR].
8881         [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
8882         (strtof32x): Define and later undefine as macro.  Define as weak
8883         alias if [!USE_WIDE_CHAR].
8884         [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
8885         (wcstof32x): Define and later undefine as macro.  Define as weak
8886         alias if [USE_WIDE_CHAR].
8887         * stdlib/strtod_l.c: Include <bits/floatn.h>.
8888         (BUILD_DOUBLE): New macro.
8889         [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
8890         (strtof64_l): Define and later undefine as macro.  Define as weak
8891         alias if [!USE_WIDE_CHAR].
8892         [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
8893         (wcstof64_l): Define and later undefine as macro.  Define as weak
8894         alias if [USE_WIDE_CHAR].
8895         [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
8896         (strtof32x_l): Define and later undefine as macro.  Define as weak
8897         alias if [!USE_WIDE_CHAR].
8898         [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
8899         (wcstof32x_l): Define and later undefine as macro.  Define as weak
8900         alias if [USE_WIDE_CHAR].
8901
8902 2017-12-05  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
8903
8904         * sysdeps/ieee754/flt-32/s_sinf.c (ones): Define as double.
8905         (reduced): Use ones as double instead of integer.
8906
8907 2017-12-05  Szabolcs Nagy  <szabolcs.nagy@arm.com>
8908
8909         * sysdeps/ieee754/flt-32/s_sinf.c (sinf): Use isless.
8910
8911 2017-12-05  Joseph Myers  <joseph@codesourcery.com>
8912
8913         * stdlib/strfromd.c: Include <bits/floatn.h>.
8914         [__HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64] (strfromf64): Define
8915         and later undefine as macro and define as weak alias.
8916         [__HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X] (strfromf32x):
8917         Likewise.
8918
8919         * math/test-float32x.h: New file.
8920         * math/test-float64.h: Likewise.
8921
8922         * sysdeps/generic/libm-alias-double.h: Include <bits/floatn.h>.
8923         (libm_alias_double_other_r_f64): New macro.
8924         (libm_alias_double_other_r_f32x): Likewise.
8925         (libm_alias_double_other_r): Use libm_alias_double_other_r_f64 and
8926         libm_alias_double_other_r_f32x.
8927         (libm_alias_double_r): Use semicolon before call to
8928         libm_alias_double_other_r.
8929         * sysdeps/ieee754/ldbl-opt/libm-alias-double.h: Include
8930         <bits/floatn.h>.
8931         (libm_alias_double_other_r_f64): New macro.
8932         (libm_alias_double_other_r_f32x): Likewise.
8933         (libm_alias_double_other_r): Use libm_alias_double_other_r_f64 and
8934         libm_alias_double_other_r_f32x.
8935
8936 2017-12-05  H.J. Lu  <hongjiu.lu@intel.com>
8937
8938         * sysdeps/ieee754/flt-32/s_sinf.c (reduced): Replace long with
8939         int.
8940         (SINF_FUNC): Likewise.  Replace floor with simple casts.
8941
8942 2017-12-05  Mike FABIAN  <mfabian@redhat.com>
8943
8944         [BZ #22517]
8945         * localedata/Makefile: Add et_EE.UTF-8 to test-input
8946         and to the list of locales to be built for testing.
8947         * localedata/et_EE.UTF-8.in: New file for testing the collation.
8948         * localedata/locales/et_EE (LC_COLLATE): Use “copy "iso14651_t1"”
8949         and build the collation rules upon that.
8950
8951 2017-12-05  Chris Metcalf  <cmetcalf@mellanox.com>
8952
8953         * sysdeps/tile/tilegx/string-endian.h (VECOP): Provide working
8954         replacements for __insn_xxx builtins for v1cmpeq, v1cmpltu,
8955         v1cmpne, v1add, v1shru, v1shl (register and immediate versions).
8956         * sysdeps/tile/tilegx/memchr.c (__memchr): Use VECOP function
8957         instead of __insn__xxx.
8958         * sysdeps/tile/tilegx/rawmemchr.c (__rawmemchr): Likewise.
8959         * sysdeps/tile/tilegx/strstr.c (strcasechr): Likewise.
8960         * sysdeps/tile/tilegx/strrchr.c (strrchr): Likewise.
8961         * sysdeps/tile/tilegx/strlen.c (strlen): Likewise.
8962         * sysdeps/tile/tilegx/strchrnul.c (__strchrnul): Likewise.
8963         * sysdeps/tile/tilegx/strchr.c (strchr): Likewise.
8964
8965 2017-12-05  Florian Weimer  <fweimer@redhat.com>
8966
8967         Linux: Implement interfaces for memory protection keys
8968         * support/Makefile (libsupport-routines): Add xraise, xsigaction,
8969         xsignal, xsysconf.
8970         * support/xsignal.h (xraise, xsignal, xsigaction): Declare.
8971         * support/xunistd.h (xsysconf): Declare.
8972         * support/xraise.c: New file.
8973         * support/xsigaction.c: Likewise.
8974         * support/xsignal.c: Likewise.
8975         * support/xsysconf.c: Likewise.
8976         * sysdeps/unix/sysv/linux/Makefile [misc] (routines): Add
8977         pkey_set, pkey_get, pkey_mprotect.
8978         [misc] (tests): Add tst-pkey.
8979         (tst-pkey): Link with -lpthread.
8980         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Add pkey_alloc,
8981         pkey_free, pkey_set, pkey_get, pkey_mprotect.
8982         * sysdeps/unix/sysv/linux/bits/mman-linux.h (PKEY_DISABLE_ACCESS)
8983         (PKEY_DISABLE_WRITE): Define.
8984         (pkey_alloc, pkey_free, pkey_set, pkey_get, pkey_mprotect):
8985         Declare.
8986         * sysdeps/unix/sysv/linux/bits/siginfo-consts.h (SEGV_BNDERR)
8987         (SEGV_PKUERR): Add.
8988         * sysdeps/unix/sysv/linux/pkey_get.c: New file.
8989         * sysdeps/unix/sysv/linux/pkey_set.c: Likewise.
8990         * sysdeps/unix/sysv/linux/pkey_mprotect.c: Likewise.
8991         * sysdeps/unix/sysv/linux/syscalls.list (pkey_alloc, pkey_free):
8992         Add.
8993         * sysdeps/unix/sysv/linux/tst-pkey.c: New file.
8994         * sysdeps/unix/sysv/linux/x86/arch-pkey.h: Likewise.
8995         * sysdeps/unix/sysv/linux/x86/pkey_get.c: Likewise.
8996         * sysdeps/unix/sysv/linux/x86/pkey_set.c: Likewise.
8997         * sysdeps/unix/sysv/linux/**.abilist: Update.
8998
8999 2017-12-05  Florian Weimer  <fweimer@redhat.com>
9000
9001         * support/tst-test_compare.c (subprocess): Use long long instead
9002         of long argument for consistent type width across 32-bit and
9003         64-bit architectures.
9004         (do_test): Adjust expected output.
9005
9006 2017-12-05  Joseph Myers  <joseph@codesourcery.com>
9007
9008         * sysdeps/powerpc/fpu/s_cosf.c: Include <libm-alias-float.h>.
9009         (cosf): Define using libm_alias_float.
9010         * sysdeps/powerpc/fpu/s_fabs.S: Include <libm-alias-float.h>.
9011         (fabsf): Define using libm_alias_float.
9012         * sysdeps/powerpc/fpu/s_fmaf.S: Include <libm-alias-float.h>.
9013         (fmaf): Define using libm_alias_float.
9014         * sysdeps/powerpc/fpu/s_rintf.c: Include <libm-alias-float.h>.
9015         (rintf): Define using libm_alias_float.
9016         * sysdeps/powerpc/fpu/s_sinf.c: Include <libm-alias-float.h>.
9017         (sinf): Define using libm_alias_float.
9018         * sysdeps/powerpc/power5+/fpu/s_modff.c: Include
9019         <libm-alias-float.h>.
9020         (modff): Define using libm_alias_float.
9021         * sysdeps/powerpc/power7/fpu/s_logbf.c: Include
9022         <libm-alias-float.h>.
9023         (logbf): Define using libm_alias_float.
9024         * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S: Include
9025         <libm-alias-float.h>.
9026         (ceilf): Define using libm_alias_float.
9027         * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Include
9028         <libm-alias-float.h>.
9029         (copysignf): Define using libm_alias_float.
9030         * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Include
9031         <libm-alias-float.h>.
9032         (floorf): Define using libm_alias_float.
9033         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Include
9034         <libm-alias-float.h>.
9035         (llrintf): Define using libm_alias_float.
9036         * sysdeps/powerpc/powerpc32/fpu/s_llroundf.c: Include
9037         <libm-alias-float.h>.
9038         (llroundf): Define using libm_alias_float.
9039         * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Include
9040         <libm-alias-float.h>.
9041         (lrintf): Define using libm_alias_float.
9042         * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Include
9043         <libm-alias-float.h>.
9044         (lroundf): Define using libm_alias_float.
9045         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: Include
9046         <libm-alias-float.h>.
9047         (nearbyintf): Define using libm_alias_float.
9048         * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Include
9049         <libm-alias-float.h>.
9050         (rintf): Define using libm_alias_float.
9051         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Include
9052         <libm-alias-float.h>.
9053         (roundf): Define using libm_alias_float.
9054         * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Include
9055         <libm-alias-float.h>.
9056         (truncf): Define using libm_alias_float.
9057         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c:
9058         Include <libm-alias-float.h>.
9059         (ceilf): Define using libm_alias_float.
9060         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c:
9061         Include <libm-alias-float.h>.
9062         (copysignf): Define using libm_alias_float.
9063         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c:
9064         Include <libm-alias-float.h>.
9065         (floorf): Define using libm_alias_float.
9066         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf.c:
9067         Include <libm-alias-float.h>.
9068         (llrintf): Define using libm_alias_float.
9069         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llroundf.c:
9070         Include <libm-alias-float.h>.
9071         (llroundf): Define using libm_alias_float.
9072         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf.c:
9073         Include <libm-alias-float.h>.
9074         (logbf): Define using libm_alias_float.
9075         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrintf.c:
9076         Include <libm-alias-float.h>.
9077         (lrintf): Define using libm_alias_float.
9078         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lroundf.c:
9079         Include <libm-alias-float.h>.
9080         (lroundf): Define using libm_alias_float.
9081         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff.c:
9082         Include <libm-alias-float.h>.
9083         (modff): Define using libm_alias_float.
9084         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c:
9085         Include <libm-alias-float.h>.
9086         (roundf): Define using libm_alias_float.
9087         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c:
9088         Include <libm-alias-float.h>.
9089         (truncf): Define using libm_alias_float.
9090         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Include
9091         <libm-alias-float.h>.
9092         (llrintf): Define using libm_alias_float.
9093         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Include
9094         <libm-alias-float.h>.
9095         (llroundf): Define using libm_alias_float.
9096         * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: Include
9097         <libm-alias-float.h>.
9098         (ceilf): Define using libm_alias_float.
9099         * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: Include
9100         <libm-alias-float.h>.
9101         (floorf): Define using libm_alias_float.
9102         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Include
9103         <libm-alias-float.h>.
9104         (llroundf): Define using libm_alias_float.
9105         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Include
9106         <libm-alias-float.h>.
9107         (lroundf): Define using libm_alias_float.
9108         * sysdeps/powerpc/powerpc32/power5+/fpu/s_roundf.S: Include
9109         <libm-alias-float.h>.
9110         (roundf): Define using libm_alias_float.
9111         * sysdeps/powerpc/powerpc32/power5+/fpu/s_truncf.S: Include
9112         <libm-alias-float.h>.
9113         (truncf): Define using libm_alias_float.
9114         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Include
9115         <libm-alias-float.h>.
9116         (copysignf): Define using libm_alias_float.
9117         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Include
9118         <libm-alias-float.h>.
9119         (llrintf): Define using libm_alias_float.
9120         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Include
9121         <libm-alias-float.h>.
9122         (llroundf): Define using libm_alias_float.
9123         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: Include
9124         <libm-alias-float.h>.
9125         (lrintf): Define using libm_alias_float.
9126         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Include
9127         <libm-alias-float.h>.
9128         (lroundf): Define using libm_alias_float.
9129         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Include
9130         <libm-alias-float.h>.
9131         (ceilf): Define using libm_alias_float.
9132         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: Include
9133         <libm-alias-float.h>.
9134         (copysignf): Define using libm_alias_float.
9135         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf.c: Include
9136         <libm-alias-float.h>.
9137         (cosf): Define using libm_alias_float.
9138         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Include
9139         <libm-alias-float.h>.
9140         (floorf): Define using libm_alias_float.
9141         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrintf.c: Include
9142         <libm-alias-float.h>.
9143         (llrintf): Define using libm_alias_float.
9144         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf.c: Include
9145         <libm-alias-float.h>.
9146         (llroundf): Define using libm_alias_float.
9147         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf.c: Include
9148         <libm-alias-float.h>.
9149         (logbf): Define using libm_alias_float.
9150         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff.c: Include
9151         <libm-alias-float.h>.
9152         (modff): Define using libm_alias_float.
9153         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Include
9154         <libm-alias-float.h>.
9155         (roundf): Define using libm_alias_float.
9156         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf.c: Include
9157         <libm-alias-float.h>.
9158         (sinf): Define using libm_alias_float.
9159         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Include
9160         <libm-alias-float.h>.
9161         (truncf): Define using libm_alias_float.
9162         * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Include
9163         <libm-alias-float.h>.
9164         (ceilf): Define using libm_alias_float.
9165         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Include
9166         <libm-alias-float.h>.
9167         (copysignf): Define using libm_alias_float.
9168         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Include
9169         <libm-alias-float.h>.
9170         (floorf): Define using libm_alias_float.
9171         * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Include
9172         <libm-alias-float.h>.
9173         (llrintf): Define using libm_alias_float.
9174         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S: Include
9175         <libm-alias-float.h>.
9176         (llroundf): Define using libm_alias_float.
9177         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: Include
9178         <libm-alias-float.h>.
9179         (nearbyintf): Define using libm_alias_float.
9180         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Include
9181         <libm-alias-float.h>.
9182         (rintf): Define using libm_alias_float.
9183         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Include
9184         <libm-alias-float.h>.
9185         (roundf): Define using libm_alias_float.
9186         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Include
9187         <libm-alias-float.h>.
9188         (truncf): Define using libm_alias_float.
9189         * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: Include
9190         <libm-alias-float.h>.
9191         (ceilf): Define using libm_alias_float.
9192         * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: Include
9193         <libm-alias-float.h>.
9194         (floorf): Define using libm_alias_float.
9195         * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Include
9196         <libm-alias-float.h>.
9197         (llroundf): Define using libm_alias_float.
9198         * sysdeps/powerpc/powerpc64/power5+/fpu/s_roundf.S: Include
9199         <libm-alias-float.h>.
9200         (roundf): Define using libm_alias_float.
9201         * sysdeps/powerpc/powerpc64/power5+/fpu/s_truncf.S: Include
9202         <libm-alias-float.h>.
9203         (truncf): Define using libm_alias_float.
9204         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Include
9205         <libm-alias-float.h>.
9206         (copysignf): Define using libm_alias_float.
9207         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Include
9208         <libm-alias-float.h>.
9209         (llrintf): Define using libm_alias_float.
9210         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Include
9211         <libm-alias-float.h>.
9212         (llroundf): Define using libm_alias_float.
9213         * sysdeps/powerpc/powerpc64/power8/fpu/s_cosf.S: Include
9214         <libm-alias-float.h>.
9215         (cosf): Define using libm_alias_float.
9216         * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: Include
9217         <libm-alias-float.h>.
9218         (llrintf): Define using libm_alias_float.
9219         * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Include
9220         <libm-alias-float.h>.
9221         (llroundf): Define using libm_alias_float.
9222         * sysdeps/powerpc/powerpc64/power8/fpu/s_sinf.S: Include
9223         <libm-alias-float.h>.
9224         (sinf): Define using libm_alias_float.
9225
9226 2017-12-04  Florian Weimer  <fweimer@redhat.com>
9227
9228         * support/check.h (TEST_COMPARE): Define.
9229         (support_test_compare_failure): Declare.
9230         * support/Makefile (libsupport-routines): Add
9231         support_test_compare_failure.
9232         (tests): Add tst-test_compare.
9233         * support /support_test_compare_failure.c: New file.
9234         * support/tst-test_compare.c: Likewise.
9235
9236 2017-12-04  Mike FABIAN  <mfabian@redhat.com>
9237
9238         [BZ #22527]
9239         *  localedata/locales/tr_TR (LC_COLLATE): Base collation rules
9240         on iso14651_t1. A test file localedata/tr_TR.UTF-8.in is already
9241         available, this rewrite of the collation rules does reproduce
9242         the test file in the same order.
9243
9244 2017-12-04  Mike FABIAN  <mfabian@redhat.com>
9245
9246         [BZ #10580]
9247         * localedata/locales/hr_HR (LC_TIME): Use two letters for the
9248         digraphs in the month and day names. Using single code points for
9249         digraphs is deprecated.  While there are dedicated Unicode
9250         codepoints, for the digraphs, these are included for backwards
9251         compatibility and modern texts use a sequence of Basic Latin
9252         characters. See: https://www.unicode.org/faq/ligature_digraph.html
9253         This makes the month and day names agree exactly with CLDR now,
9254         CLDR does not use the single code points for the digraphs either.
9255
9256 2017-12-04  Chris Metcalf  <cmetcalf@mellanox.com>
9257
9258         * sysdeps/tile/libm-test-ulps: Update ca{cos,sin,tan}{,h} ulps.
9259
9260 2017-12-04  Joseph Myers  <joseph@codesourcery.com>
9261
9262         * sysdeps/ieee754/flt-32/s_sinf.c (SINF_FUNC): Use __floor instead
9263         of floor.
9264
9265 2017-12-04  Siddhesh Poyarekar  <siddhesh@sourceware.org>
9266
9267         * sysdeps/aarch64/multiarch/memcpy_generic.S (__GI_memcpy):
9268         Define only for libc.so.
9269
9270 2017-12-04  Stefan Liebler  <stli@linux.vnet.ibm.com>
9271
9272         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
9273         (INTERNAL_VSYSCALL_CALL, CLOBBER_0, CLOBBER_1, CLOBBER_2,
9274          CLOBBER_3, CLOBBER_4, CLOBBER_5, CLOBBER_6,
9275         INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Remove.
9276         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
9277
9278 2017-12-04  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
9279
9280         [BZ #5997]
9281         * sysdeps/ieee754/flt-32/s_sinf.c: New implementation.
9282
9283 2017-12-02  John David Anglin  <danglin@gcc.gnu.org>
9284
9285         [BZ libc/19170]
9286         * sysdeps/hppa/crti.S: Declare PREINIT_FUNCTION weak_extern when
9287         PREINIT_FUNCTION_WEAK is nonzero.
9288         (gmon_initializer): New function.  Put procedure label for it in
9289         .init_array section.
9290         (_init): Don't call PREINIT_FUNCTION.
9291         * sysdeps/hppa/crtn.S (__gmon_start__): Remove.
9292         * sysdeps/hppa/dl-lookupcfg.h (DL_FIXUP_MAKE_VALUE): Create null fixup
9293         value when map argument is null.
9294
9295         * sysdeps/hppa/dl-fptr.c (elf_machine_resolve): Remove unnecessary
9296         depi instruction from PIC pc-relative sequence.
9297         * sysdeps/hppa/dl-fptr.h (ELF_MACHINE_LOAD_ADDRESS): Likewise.
9298         * sysdeps/hppa/dl-machine.h (elf_machine_dynamic): Likewise.
9299         (elf_machine_load_address): Likewise.
9300         (elf_machine_runtime_setup): Likewise.
9301
9302 2017-12-02  Joseph Myers  <joseph@codesourcery.com>
9303
9304         * sysdeps/powerpc/power7/fpu/s_logb.c: Include
9305         <libm-alias-double.h>.
9306         (logb): Define using libm_alias_double.
9307         * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Include
9308         <libm-alias-double.h>.
9309         (copysign): Define using libm_alias_double.
9310         * sysdeps/powerpc/powerpc32/fpu/s_llrint.c: Include
9311         <libm-alias-double.h>.
9312         (llrint): Define using libm_alias_double.
9313         * sysdeps/powerpc/powerpc32/fpu/s_llround.c: Include
9314         <libm-alias-double.h>.
9315         (llround): Define using libm_alias_double.
9316         * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Include
9317         <libm-alias-double.h>.
9318         (lrint): Define using libm_alias_double.
9319         * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Include
9320         <libm-alias-double.h>.
9321         (lround): Define using libm_alias_double.
9322         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
9323         Include <libm-alias-double.h>.
9324         (copysign): Define using libm_alias_double.
9325         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint.c:
9326         Include <libm-alias-double.h>.
9327         (llrint): Define using libm_alias_double.
9328         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround.c:
9329         Include <libm-alias-double.h>.
9330         (llround): Define using libm_alias_double.
9331         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c: Include
9332         <libm-alias-double.h>.
9333         (logb): Define using libm_alias_double.
9334         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint.c:
9335         Include <libm-alias-double.h>.
9336         (lrint): Define using libm_alias_double.
9337         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround.c:
9338         Include <libm-alias-double.h>.
9339         (lround): Define using libm_alias_double.
9340         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Include
9341         <libm-alias-double.h>.
9342         (llrint): Define using libm_alias_double.
9343         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Include
9344         <libm-alias-double.h>.
9345         (llround): Define using libm_alias_double.
9346         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Include
9347         <libm-alias-double.h>.
9348         (llround): Define using libm_alias_double.
9349         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Include
9350         <libm-alias-double.h>.
9351         (lround): Define using libm_alias_double.
9352         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Include
9353         <libm-alias-double.h>.
9354         (copysign): Define using libm_alias_double.
9355         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Include
9356         <libm-alias-double.h>.
9357         (llrint): Define using libm_alias_double.
9358         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Include
9359         <libm-alias-double.h>.
9360         (llround): Define using libm_alias_double.
9361         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: Include
9362         <libm-alias-double.h>.
9363         (lrint): Define using libm_alias_double.
9364         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Include
9365         <libm-alias-double.h>.
9366         (lround): Define using libm_alias_double.
9367         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Include
9368         <libm-alias-double.h>.
9369         (copysign): Define using libm_alias_double.
9370         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c: Include
9371         <libm-alias-double.h>.
9372         (llrint): Define using libm_alias_double.
9373         (lrint): Likewise.
9374         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c: Include
9375         <libm-alias-double.h>.
9376         (llround): Define using libm_alias_double.
9377         (lround): Likewise.
9378         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c: Include
9379         <libm-alias-double.h>.
9380         (logb): Define using libm_alias_double.
9381         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Include
9382         <libm-alias-double.h>.
9383         (copysign): Define using libm_alias_double.
9384         * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Include
9385         <libm-alias-double.h>.
9386         (llrint): Define using libm_alias_double.
9387         (lrint): Likewise.
9388         * sysdeps/powerpc/powerpc64/fpu/s_llround.S: Include
9389         <libm-alias-double.h>.
9390         (llround): Define using libm_alias_double.
9391         (lround): Likewise.
9392         * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Include
9393         <libm-alias-double.h>.
9394         (llround): Define using libm_alias_double.
9395         (lround): Likewise.
9396         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Include
9397         <libm-alias-double.h>.
9398         (copysign): Define using libm_alias_double.
9399         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Include
9400         <libm-alias-double.h>.
9401         (llrint): Define using libm_alias_double.
9402         (lrint): Likewise.
9403         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Include
9404         <libm-alias-double.h>.
9405         (llround): Define using libm_alias_double.
9406         (lround): Likewise.
9407         * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: Include
9408         <libm-alias-double.h>.
9409         (llrint): Define using libm_alias_double.
9410         (lrint): Likewise.
9411         * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Include
9412         <libm-alias-double.h>.
9413         (llround): Define using libm_alias_double.
9414         (lround): Likewise.
9415
9416 2017-12-01  Joseph Myers  <joseph@codesourcery.com>
9417
9418         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c
9419         [LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)] (lroundl): Do not define
9420         compat symbol based on llround.
9421
9422         * sysdeps/powerpc/power7/fpu/s_logb.c
9423         [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Define as compat
9424         symbol based on __logb, not on logb.
9425         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c
9426         [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Likewise.
9427         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c
9428         [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Likewise.
9429
9430         * sysdeps/powerpc/fpu/s_rint.c: Include <libm-alias-double.h>.
9431         (rint): Define using libm_alias_double.
9432         * sysdeps/powerpc/power5+/fpu/s_modf.c: Include
9433         <libm-alias-double.h>.
9434         (modf): Define using libm_alias_double.
9435         * sysdeps/powerpc/powerpc32/fpu/s_ceil.S: Include
9436         <libm-alias-double.h>.
9437         (ceil): Define using libm_alias_double.
9438         * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Include
9439         <libm-alias-double.h>.
9440         (floor): Define using libm_alias_double.
9441         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: Include
9442         <libm-alias-double.h>.
9443         (nearbyint): Define using libm_alias_double.
9444         * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Include
9445         <libm-alias-double.h>.
9446         (rint): Define using libm_alias_double.
9447         * sysdeps/powerpc/powerpc32/fpu/s_round.S: Include
9448         <libm-alias-double.h>.
9449         (round): Define using libm_alias_double.
9450         * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Include
9451         <libm-alias-double.h>.
9452         (trunc): Define using libm_alias_double.
9453         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: Include
9454         <libm-alias-double.h>.
9455         (ceil): Define using libm_alias_double.
9456         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c:
9457         Include <libm-alias-double.h>.
9458         (floor): Define using libm_alias_double.
9459         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf.c: Include
9460         <libm-alias-double.h>.
9461         (modf): Define using libm_alias_double.
9462         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c:
9463         Include <libm-alias-double.h>.
9464         (round): Define using libm_alias_double.
9465         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c:
9466         Include <libm-alias-double.h>.
9467         (trunc): Define using libm_alias_double.
9468         * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: Include
9469         <libm-alias-double.h>.
9470         (ceil): Define using libm_alias_double.
9471         * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: Include
9472         <libm-alias-double.h>.
9473         (floor): Define using libm_alias_double.
9474         * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S: Include
9475         <libm-alias-double.h>.
9476         (round): Define using libm_alias_double.
9477         * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S: Include
9478         <libm-alias-double.h>.
9479         (trunc): Define using libm_alias_double.
9480         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: Include
9481         <libm-alias-double.h>.
9482         (ceil): Define using libm_alias_double.
9483         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: Include
9484         <libm-alias-double.h>.
9485         (floor): Define using libm_alias_double.
9486         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf.c: Include
9487         <libm-alias-double.h>.
9488         (modf): Define using libm_alias_double.
9489         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: Include
9490         <libm-alias-double.h>.
9491         (round): Define using libm_alias_double.
9492         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: Include
9493         <libm-alias-double.h>.
9494         (trunc): Define using libm_alias_double.
9495         * sysdeps/powerpc/powerpc64/fpu/s_ceil.S: Include
9496         <libm-alias-double.h>.
9497         (ceil): Define using libm_alias_double.
9498         * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Include
9499         <libm-alias-double.h>.
9500         (floor): Define using libm_alias_double.
9501         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: Include
9502         <libm-alias-double.h>.
9503         (nearbyint): Define using libm_alias_double.
9504         * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Include
9505         <libm-alias-double.h>.
9506         (rint): Define using libm_alias_double.
9507         * sysdeps/powerpc/powerpc64/fpu/s_round.S: Include
9508         <libm-alias-double.h>.
9509         (round): Define using libm_alias_double.
9510         * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Include
9511         <libm-alias-double.h>.
9512         (trunc): Define using libm_alias_double.
9513         * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: Include
9514         <libm-alias-double.h>.
9515         (ceil): Define using libm_alias_double.
9516         * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: Include
9517         <libm-alias-double.h>.
9518         (floor): Define using libm_alias_double.
9519         * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S: Include
9520         <libm-alias-double.h>.
9521         (round): Define using libm_alias_double.
9522         * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S: Include
9523         <libm-alias-double.h>.
9524         (trunc): Define using libm_alias_double.
9525
9526         * sysdeps/powerpc/fpu/s_fabs.S: Include <libm-alias-double.h>.
9527         (fabs): Define using libm_alias_double.
9528         * sysdeps/powerpc/fpu/s_fma.S: Include <libm-alias-double.h>.
9529         (fma): Define using libm_alias_double.
9530         * sysdeps/powerpc/powerpc32/fpu/s_fabs.S: Remove file.
9531         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: Likewise.
9532         * sysdeps/powerpc/powerpc64/fpu/s_fabs.S: Likewise.
9533         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: Likewise.
9534
9535 2017-12-01  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
9536
9537         * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Remove file.
9538
9539         * sysdeps/sparc/sparc-ifunc.h (SPARC_ASM_IFUNC_DFLT,
9540         SPARC_ASM_IFUNC1, SPARC_ASM_IFUNC2, SET, SPARC_ASM_VIS2_IFUNC,
9541         SPARC_ASM_VIS3_IFUNC, SPARC_ASM_VIS3_VIS2_IFUNC): Remove macros.
9542
9543         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c: Fix build
9544         due redirect macro.
9545
9546 2017-12-01  Andreas Schwab  <schwab@linux-m68k.org>
9547
9548         * intl/Makefile ($(objpfx)plural.c): Add $(make-target-directory).
9549
9550 2017-12-01  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
9551
9552         * sysdeps/sparc/sparc64/cpu_relax.c: New file.
9553         * sysdeps/sparc/sparc32/sparcv9/cpu_relax.c: Likewise.
9554         * sysdeps/sparc/sparc64/cpu_relax.S: Remove file.
9555         * sysdeps/sparc/sparc32/sparcv9/cpu_relax.S: Likewise.
9556
9557         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
9558         (libm-sysdep_routines): Add s_nearbyintf-generic and
9559         s_nearbyint-generic.
9560         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-generic.S:
9561         New file.
9562         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.c: Likewise.
9563         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-generic.S:
9564         Likewise.
9565         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.c:
9566         Likewise.
9567         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S: Remove
9568         file.
9569         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S:
9570         Likewise.
9571
9572         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
9573         (libm-sysdep_routines): Add s_rintf-generic and s_rint-generic.
9574         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-generic.S: New
9575         file.
9576         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.c: Likewise.
9577         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-generic.S:
9578         Likewise.
9579         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.c: Likewise.
9580         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Remove file.
9581         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
9582
9583         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
9584         (libm-sysdep_routines): Add s_llrintf-generic and s_llrint-generic.
9585         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-generic.S: New
9586         file.
9587         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.c: Likewise.
9588         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-generic.S:
9589         Likewise.
9590         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.c: Likewise.
9591         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Remove file.
9592         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: Likewise.
9593
9594         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
9595         (libm-sysdep_routines): Add s_fabsf-generic and s_fabs-generic.
9596         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-generic.S: New
9597         file.
9598         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.c: Likewise.
9599         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-generic.S:
9600         Likewise.
9601         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.c: Likewise.
9602         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Remove file.
9603         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
9604
9605         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
9606         (sysdep_calls): New rule.
9607         (sysdep_routines): Use sysdep_calls as base.
9608         (libm-sysdep_routines): Add generic rule for symbols shared with
9609         libc.  Add s_copysign-generic and s_copysign-generic objects.
9610         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-generic.S:
9611         New file.
9612         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c: Likewise.
9613         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-generic.S:
9614         Likewise.
9615         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.c: Likewise.
9616         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: Remove file.
9617         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: Likewise.
9618
9619 2017-12-01  Mike FABIAN  <mfabian@redhat.com>
9620
9621         [BZ #22519]
9622         * localedata/Makefile: Add is_IS.UTF-8 to test-input and to
9623         the list of locales to be built for testing.
9624         * localedata/is_IS.UTF-8.in: New file.
9625         * localedata/locales/is_IS (LC_COLLATE): Base collation rules
9626         on iso14651_t1.
9627
9628 2017-12-01  Joseph Myers  <joseph@codesourcery.com>
9629
9630         * sysdeps/powerpc/powerpc32/e500/nofpu/s_fabsf.S: Include
9631         <libm-alias-float.h>.
9632         (fabsf): Define using libm_alias_float.
9633
9634 2017-11-30  H.J. Lu  <hongjiu.lu@intel.com>
9635
9636         * sysdeps/mips/dl-machine.h (elf_machine_reloc): Expand MIN.
9637
9638 2017-11-30  Joseph Myers  <joseph@codesourcery.com>
9639
9640         * sysdeps/m68k/coldfire/fpu/s_fabsf.c: Include
9641         <libm-alias-float.h>.
9642         (fabsf): Define using libm_alias_float.
9643         * sysdeps/m68k/coldfire/fpu/s_lrintf.c: Include
9644         <libm-alias-float.h>.
9645         (lrintf): Define using libm_alias_float.
9646         * sysdeps/m68k/coldfire/fpu/s_rintf.c: Include
9647         <libm-alias-float.h>.
9648         (rintf): Define using libm_alias_float.
9649
9650         * sysdeps/m68k/coldfire/fpu/s_fabs.c: Include
9651         <libm-alias-double.h>.
9652         (fabs): Define using libm_alias_double.
9653         * sysdeps/m68k/coldfire/fpu/s_lrint.c: Include
9654         <libm-alias-double.h>.
9655         (lrint): Define using libm_alias_double.
9656         * sysdeps/m68k/coldfire/fpu/s_rint.c: Include
9657         <libm-alias-double.h>.
9658         (rint): Define using libm_alias_double.
9659
9660         * sysdeps/m68k/m680x0/fpu/s_atan_template.c: New file.
9661         * sysdeps/m68k/m680x0/fpu/s_ceil_template.c: Likewise.
9662         * sysdeps/m68k/m680x0/fpu/s_cos_template.c: Likewise.
9663         * sysdeps/m68k/m680x0/fpu/s_expm1_template.c: Likewise.
9664         * sysdeps/m68k/m680x0/fpu/s_fabs_template.c: Likewise.
9665         * sysdeps/m68k/m680x0/fpu/s_floor_template.c: Likewise.
9666         * sysdeps/m68k/m680x0/fpu/s_frexp_template.c: Likewise.
9667         * sysdeps/m68k/m680x0/fpu/s_lrint_template.c: Likewise.
9668         * sysdeps/m68k/m680x0/fpu/s_modf_template.c: Likewise.
9669         * sysdeps/m68k/m680x0/fpu/s_nearbyint_template.c: Likewise.
9670         * sysdeps/m68k/m680x0/fpu/s_remquo_template.c: Likewise.
9671         * sysdeps/m68k/m680x0/fpu/s_rint_template.c: Likewise.
9672         * sysdeps/m68k/m680x0/fpu/s_sin_template.c: Likewise.
9673         * sysdeps/m68k/m680x0/fpu/s_sincos_template.c: Likewise.
9674         * sysdeps/m68k/m680x0/fpu/s_tan_template.c: Likewise.
9675         * sysdeps/m68k/m680x0/fpu/s_tanh_template.c: Likewise.
9676         * sysdeps/m68k/m680x0/fpu/s_trunc_template.c: Likewise.
9677         * sysdeps/m68k/m680x0/fpu/s_atan.c: Reimplement to use
9678         s_atan_template.c.
9679         * sysdeps/m68k/m680x0/fpu/s_atanf.c: Likewise.
9680         * sysdeps/m68k/m680x0/fpu/s_atanl.c: Likewise.
9681         * sysdeps/m68k/m680x0/fpu/s_ceil.c: Reimplement to use
9682         s_ceil_template.c.
9683         * sysdeps/m68k/m680x0/fpu/s_ceilf.c: Likewise.
9684         * sysdeps/m68k/m680x0/fpu/s_ceill.c: Likewise.
9685         * sysdeps/m68k/m680x0/fpu/s_cos.c: Reimplement to use
9686         s_cos_template.c.
9687         * sysdeps/m68k/m680x0/fpu/s_cosf.c: Likewise.
9688         * sysdeps/m68k/m680x0/fpu/s_cosl.c: Likewise.
9689         * sysdeps/m68k/m680x0/fpu/s_expm1.c: Reimplement to use
9690         s_expm1_template.c.
9691         * sysdeps/m68k/m680x0/fpu/s_expm1f.c: Likewise.
9692         * sysdeps/m68k/m680x0/fpu/s_expm1l.c: Likewise.
9693         * sysdeps/m68k/m680x0/fpu/s_fabs.c: Reimplement to use
9694         s_fabs_template.c.
9695         * sysdeps/m68k/m680x0/fpu/s_fabsf.c: Likewise.
9696         * sysdeps/m68k/m680x0/fpu/s_fabsl.c: Likewise.
9697         * sysdeps/m68k/m680x0/fpu/s_floor.c: Reimplement to use
9698         s_floor_template.c.
9699         * sysdeps/m68k/m680x0/fpu/s_floorf.c: Likewise.
9700         * sysdeps/m68k/m680x0/fpu/s_floorl.c: Likewise.
9701         * sysdeps/m68k/m680x0/fpu/s_frexp.c: Reimplement to use
9702         s_frexp_template.c.
9703         * sysdeps/m68k/m680x0/fpu/s_frexpf.c: Likewise.
9704         * sysdeps/m68k/m680x0/fpu/s_lrint.c: Reimplement to use
9705         s_lrint_template.c.
9706         * sysdeps/m68k/m680x0/fpu/s_lrintf.c: Likewise.
9707         * sysdeps/m68k/m680x0/fpu/s_lrintl.c: Likewise.
9708         * sysdeps/m68k/m680x0/fpu/s_modf.c: Reimplement to use
9709         s_modf_template.c.
9710         * sysdeps/m68k/m680x0/fpu/s_modff.c: Likewise.
9711         * sysdeps/m68k/m680x0/fpu/s_modfl.c: Likewise.
9712         * sysdeps/m68k/m680x0/fpu/s_nearbyint.c: Reimplement to use
9713         s_nearbyint_template.c.
9714         * sysdeps/m68k/m680x0/fpu/s_nearbyintf.c: Likewise.
9715         * sysdeps/m68k/m680x0/fpu/s_nearbyintl.c: Likewise.
9716         * sysdeps/m68k/m680x0/fpu/s_remquo.c: Reimplement to use
9717         s_remquo_template.c.
9718         * sysdeps/m68k/m680x0/fpu/s_remquof.c: Likewise.
9719         * sysdeps/m68k/m680x0/fpu/s_remquol.c: Likewise.
9720         * sysdeps/m68k/m680x0/fpu/s_rint.c: Reimplement to use
9721         s_rint_template.c.
9722         * sysdeps/m68k/m680x0/fpu/s_rintf.c: Likewise.
9723         * sysdeps/m68k/m680x0/fpu/s_rintl.c: Likewise.
9724         * sysdeps/m68k/m680x0/fpu/s_sin.c: Reimplement to use
9725         s_sin_template.c.
9726         * sysdeps/m68k/m680x0/fpu/s_sinf.c: Likewise.
9727         * sysdeps/m68k/m680x0/fpu/s_sinl.c: Likewise.
9728         * sysdeps/m68k/m680x0/fpu/s_sincos.c: Reimplement to use
9729         s_sincos_template.c.
9730         * sysdeps/m68k/m680x0/fpu/s_sincosf.c: Likewise.
9731         * sysdeps/m68k/m680x0/fpu/s_sincosl.c: Likewise.
9732         * sysdeps/m68k/m680x0/fpu/s_tan.c: Reimplement to use
9733         s_tan_template.c.
9734         * sysdeps/m68k/m680x0/fpu/s_tanf.c: Likewise.
9735         * sysdeps/m68k/m680x0/fpu/s_tanl.c: Likewise.
9736         * sysdeps/m68k/m680x0/fpu/s_tanh.c: Reimplement to use
9737         s_tanh_template.c.
9738         * sysdeps/m68k/m680x0/fpu/s_tanhf.c: Likewise.
9739         * sysdeps/m68k/m680x0/fpu/s_tanhl.c: Likewise.
9740         * sysdeps/m68k/m680x0/fpu/s_trunc.c: Reimplement to use
9741         s_trunc_template.c.
9742         * sysdeps/m68k/m680x0/fpu/s_truncf.c: Likewise.
9743         * sysdeps/m68k/m680x0/fpu/s_truncl.c: Likewise.
9744         * sysdeps/m68k/m680x0/fpu/s_significand.c: Reimplement based on
9745         s_atan.c instead of including s_atan.c.
9746         * sysdeps/m68k/m680x0/fpu/s_significandf.c: Reimplement based on
9747         s_atanf.c instead of including s_atanf.c.
9748         * sysdeps/m68k/m680x0/fpu/s_significandl.c: Reimplement based on
9749         s_atanl.c instead of including s_atanl.c.
9750         * sysdeps/m68k/m680x0/fpu/s_log1p.c: Include s_significand.c
9751         instead of s_atan.c.
9752         * sysdeps/m68k/m680x0/fpu/s_log1pf.c: Include s_significandf.c
9753         instead of s_atanf.c.
9754         * sysdeps/m68k/m680x0/fpu/s_log1pl.c: Include s_significandl.c
9755         instead of s_atanl.c.
9756
9757         * scripts/update-copyrights: Do not handle intl/plural.c
9758         specially.
9759
9760 2017-11-30  Juro Bystricky  <juro.bystricky@linux.intel.com>
9761
9762         [BZ #22432]
9763         * configure.ac (BISON): Require to be present.
9764         * configure: Regenerated.
9765         * intl/Makefile (generated): Add plural.c.
9766         [$(BISON) != no]: Make code unconditional.
9767         (plural.c): Change rule to $(objpfx)plural.c.
9768         ($(objpfx)plural.o): Depend on $(objpfx)plural.c.
9769         * intl/plural.c: Remove.
9770         * manual/install.texi (Tools for Compilation): Document bison as
9771         required.
9772         * INSTALL: Regenerated.
9773
9774 2017-11-30  Joseph Myers  <joseph@codesourcery.com>
9775
9776         * sysdeps/m68k/m680x0/fpu/s_llrint.c: Include
9777         <libm-alias-double.h>.
9778         (llrint): Define using libm_alias_double.
9779         * sysdeps/m68k/m680x0/fpu/s_llrintf.c: Include
9780         <libm-alias-float.h>.
9781         (llrintf): Define using libm_alias_float.
9782         * sysdeps/m68k/m680x0/fpu/s_llrintl.c: Include
9783         <libm-alias-ldouble.h>.
9784         (llrintl): Define using libm_alias_ldouble.
9785
9786         * sysdeps/m68k/m680x0/fpu/s_ccosh_template.c (ccosh): Use
9787         declare_mgen_alias instead of weak_alias.
9788         * sysdeps/m68k/m680x0/fpu/s_cexp_template.c (cexp): Likewise.
9789         * sysdeps/m68k/m680x0/fpu/s_csin_template.c (csin): Likewise.
9790         * sysdeps/m68k/m680x0/fpu/s_csinh_template.c (csinh): Likewise.
9791
9792 2017-11-30  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
9793
9794         * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
9795         Add add_n-generic.
9796         * sysdeps/sparc/sparc64/multiarch/add_n-generic.S: New file.
9797         * sysdeps/sparc/sparc64/multiarch/add_n.c: Likewise.
9798         * sysdeps/sparc/sparc64/multiarch/add_n.S: Remove file.
9799
9800         * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
9801         Add submul_1-generic.
9802         * sysdeps/sparc/sparc64/multiarch/submul_1-generic.S: New file.
9803         * sysdeps/sparc/sparc64/multiarch/submul_1.c: Likewise.
9804         * sysdeps/sparc/sparc64/multiarch/submul_1.S: Remove file.
9805
9806         * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
9807         Add addmul_1-generic.
9808         * sysdeps/sparc/sparc64/multiarch/addmul_1-generic.S: New file.
9809         * sysdeps/sparc/sparc64/multiarch/addmul_1.c: Likewise.
9810         * sysdeps/sparc/sparc64/multiarch/addmul_1.S: Remove file.
9811
9812         * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
9813         Add sub_n-generic.
9814         * sysdeps/sparc/sparc64/multiarch/sub_n-generic.S: New file.
9815         * sysdeps/sparc/sparc64/multiarch/sub_n.c: Likewise.
9816         * sysdeps/sparc/sparc64/multiarch/sub_n.S: Remove file.
9817
9818         * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
9819         Add mul_1-generic.
9820         * sysdeps/sparc/sparc64/multiarch/mul_1-generic.S: New file.
9821         * sysdeps/sparc/sparc64/multiarch/mul_1.c: Likewise.
9822         * sysdeps/sparc/sparc64/multiarch/mul_1.S: Remove file.
9823
9824 2017-11-30  Mike FABIAN  <mfabian@redhat.com>
9825
9826         According to CLDR, collation rules for Serbian and Bosnian
9827         should be the same as for Croatian.
9828
9829         [BZ #22534]
9830         * localedata/Makefile: Add sr_RS.UTF-8 and bs_BA.UTF-8 to test-input
9831         and to the list of locales to be built for testing.
9832         * localedata/bs_BA.UTF-8.in: New file (same as hr_HR.UTF-8.in).
9833         * localedata/sr_RS.UTF-8.in: New file (same as hr_HR.UTF-8.in).
9834         * localedata/locales/bs_BA (LC_COLLATE): Use “copy "hr_HR"”.
9835         * localedata/locales/sr_RS (LC_COLLATE): Use “copy "hr_HR"”.
9836
9837 2017-11-30  Mike FABIAN  <mfabian@redhat.com>
9838
9839         * localedata/locales/hr_HR (LC_COLLATE): Fix collation
9840         to make test case pass.
9841         * localedata/hr_HR.UTF-8.in: Add more test strings.
9842
9843 2017-11-30  Mike FABIAN  <mfabian@redhat.com>
9844
9845         * stdlib/tst-strfmon_l.c: Fix testcase. Needed because of [BZ #10580]
9846
9847 2017-11-30  Dragan Stanojević - Nevidljivi  <invisible@hidden-city.net>
9848
9849         * localedata/Makefile: Add hr_HR.UTF-8 to test-input and to
9850         the list of locales to built for testing.
9851         * localedata/hr_HR.UTF-8.in: New file.
9852
9853 2017-11-30  Dragan Stanojević - Nevidljivi  <invisible@hidden-city.net>
9854
9855         [BZ #10580]
9856         * localedata/locales/hr_HR (LC_COLLATE): Base collation rules on
9857         iso14651_t1.
9858         * localedata/locales/hr_HR (LC_TIME): Sync month and day names with
9859         CLDR (except use ligatures for the digraphs, CLDR does not use
9860         the ligatures), add first_workday, some fixes in the date and time
9861         formats.
9862         * localedata/locales/hr_HR (LC_CTYPE): Add transliteration rules
9863         for Đ and đ.
9864         * localedata/locales/hr_HR (LC_MONETARY): Change currency_symbol to
9865         lower case. p_cs_precedes and n_cs_precedes should be 0 instead of 1.
9866         Add int_p_cs_precedes and int_n_cs_precedes.
9867         * localedata/locales/hr_HR (LC_NUMERIC): Change thousands_sep to
9868         "<U202F>" (NARROW NO-BREAK SPACE) and grouping to 3;3 (Agrees with
9869         LC_MONETARY now).
9870         * localedata/locales/hr_HR (LC_TELEPHONE): Add tel_dom_fmt.
9871         * localedata/locales/hr_HR (LC_NAME): Add name_mr, name_mrs, and
9872         name_miss.
9873         * localedata/locales/hr_HR (LC_ADDRESS): Add country_post, country_isbn,
9874         and lang_lib. Change postal_fmt.
9875
9876 2017-11-30  H.J. Lu  <hongjiu.lu@intel.com>
9877
9878         * debug/longjmp_chk.c: Include <setjmpP.h> instead of
9879         <setjmp.h>.
9880         * setjmp/longjmp.c: Include <setjmpP.h> instead of <setjmp.h>.
9881         (__libc_siglongjmp): Cast &env[0].__saved_mask to "sigset_t *".
9882         * setjmp/sigjmp.c: Include <setjmpP.h> instead of <setjmp.h>.
9883         (__sigjmp_save): Cast &env[0].__saved_mask to "sigset_t *".
9884         * sysdeps/generic/setjmpP.h: New file.
9885         * sysdeps/unix/sysv/linux/x86/jmp_buf-ssp.sym: Likewise.
9886         * sysdeps/unix/sysv/linux/x86/setjmpP.h: Likewise.
9887         * sysdeps/unix/sysv/linux/x86/tst-saved_mask-1.c: Likewise.
9888         * sysdeps/unix/sysv/linux/x86/Makefile (gen-as-const-headers):
9889         Add jmp_buf-ssp.sym.
9890         (tests): Add tst-saved_mask-1.
9891
9892 2017-11-30  Arjun Shankar  <arjun@redhat.com>
9893
9894         [BZ #22375]
9895         CVE-2017-17426
9896         * malloc/malloc.c (__libc_malloc): Use checked_request2size
9897         instead of request2size.
9898
9899 2017-11-30  Joseph Myers  <joseph@codesourcery.com>
9900
9901         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S
9902         (__lllrint): Remove alias.
9903         (lllrint): Likewise.
9904         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S
9905         (__lllrintf): Likewise.
9906         (lllrintf): Likewise.
9907
9908         * sysdeps/sparc/sparc32/fpu/s_copysignf.S: Include
9909         <libm-alias-float.h>.
9910         (copysignf): Define using libm_alias_float.
9911         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Include
9912         <libm-alias-float.h>.
9913         (fabsf): Define using libm_alias_float.
9914         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
9915         Include <libm-alias-float.h>.
9916         (copysignf): Define using libm_alias_float.
9917         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Include
9918         <libm-alias-float.h>.
9919         (fabsf): Define using libm_alias_float.
9920         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.c: Include
9921         <libm-alias-float.h>.
9922         (fdimf): Define using libm_alias_float.
9923         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: Include
9924         <libm-alias-float.h>.
9925         (fmaf): Define using libm_alias_float.
9926         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: Include
9927         <libm-alias-float.h>.
9928         (llrintf): Define using libm_alias_float.
9929         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S:
9930         Include <libm-alias-float.h>.
9931         (nearbyintf): Define using libm_alias_float.
9932         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Include
9933         <libm-alias-float.h>.
9934         (rintf): Define using libm_alias_float.
9935         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: Include
9936         <libm-alias-float.h>.
9937         (llrintf): Define using libm_alias_float.
9938         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: Include
9939         <libm-alias-float.h>.
9940         (lrintf): Define using libm_alias_float.
9941         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyintf.S: Include
9942         <libm-alias-float.h>.
9943         (nearbyintf): Define using libm_alias_float.
9944         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Include
9945         <libm-alias-float.h>.
9946         (rintf): Define using libm_alias_float.
9947         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Include
9948         <libm-alias-float.h>.
9949         (ceilf): Define using libm_alias_float.
9950         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Include
9951         <libm-alias-float.h>.
9952         (floorf): Define using libm_alias_float.
9953         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: Include
9954         <libm-alias-float.h>.
9955         (fmaf): Define using libm_alias_float.
9956         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.c: Include
9957         <libm-alias-float.h>.
9958         (lrintf): Define using libm_alias_float.
9959         (llrintf): Likewise.
9960         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.c: Include
9961         <libm-alias-float.h>.
9962         (nearbyintf): Define using libm_alias_float.
9963         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Include
9964         <libm-alias-float.h>.
9965         (rintf): Define using libm_alias_float.
9966         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Include
9967         <libm-alias-float.h>.
9968         (truncf): Define using libm_alias_float.
9969         * sysdeps/sparc/sparc64/fpu/s_copysignf.S: Include
9970         <libm-alias-float.h>.
9971         (copysignf): Define using libm_alias_float.
9972         * sysdeps/sparc/sparc64/fpu/s_fabsf.c: Include
9973         <libm-alias-float.h>.
9974         (fabsf): Define using libm_alias_float.
9975         * sysdeps/sparc/sparc64/fpu/s_lrintf.S: Include
9976         <libm-alias-float.h>.
9977         (lrintf): Define using libm_alias_float.
9978         (llrintf): Likewise.
9979         * sysdeps/sparc/sparc64/fpu/s_nearbyintf.S: Include
9980         <libm-alias-float.h>.
9981         (nearbyintf): Define using libm_alias_float.
9982         * sysdeps/sparc/sparc64/fpu/s_rintf.S: Include
9983         <libm-alias-float.h>.
9984         (rintf): Define using libm_alias_float.
9985
9986 2017-11-29  Joseph Myers  <joseph@codesourcery.com>
9987
9988         * sysdeps/sparc/sparc32/fpu/s_copysign.S: Include
9989         <libm-alias-double.h>.
9990         (copysign): Define using libm_alias_double.
9991         * sysdeps/sparc/sparc32/fpu/s_fabs.S: Include
9992         <libm-alias-double.h>.
9993         (fabs): Define using libm_alias_double.
9994         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
9995         Include <libm-alias-double.h>.
9996         (copysign): Define using libm_alias_double.
9997         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Include
9998         <libm-alias-double.h>.
9999         (fabs): Define using libm_alias_double.
10000         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c: Include
10001         <libm-alias-double.h>.
10002         (fdim): Define using libm_alias_double.
10003         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: Include
10004         <libm-alias-double.h>.
10005         (fma): Define using libm_alias_double.
10006         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Include
10007         <libm-alias-double.h>.
10008         (llrint): Define using libm_alias_double.
10009         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S:
10010         Include <libm-alias-double.h>.
10011         (nearbyint): Define using libm_alias_double.
10012         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Include
10013         <libm-alias-double.h>.
10014         (rint): Define using libm_alias_double.
10015         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Include
10016         <libm-alias-double.h>.
10017         (fabs): Define using libm_alias_double.
10018         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Include
10019         <libm-alias-double.h>.
10020         (llrint): Define using libm_alias_double.
10021         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyint.S: Include
10022         <libm-alias-double.h>.
10023         (nearbyint): Define using libm_alias_double.
10024         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Include
10025         <libm-alias-double.h>.
10026         (rint): Define using libm_alias_double.
10027         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Include
10028         <libm-alias-double.h>.
10029         (ceil): Define using libm_alias_double.
10030         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Include
10031         <libm-alias-double.h>.
10032         (floor): Define using libm_alias_double.
10033         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: Include
10034         <libm-alias-double.h>.
10035         (fma): Define using libm_alias_double.
10036         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.c: Include
10037         <libm-alias-double.h>.
10038         (lrint): Define using libm_alias_double.
10039         (llrint): Likewise.
10040         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.c: Include
10041         <libm-alias-double.h>.
10042         (nearbyint): Define using libm_alias_double.
10043         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Include
10044         <libm-alias-double.h>.
10045         (rint): Define using libm_alias_double.
10046         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Include
10047         <libm-alias-double.h>.
10048         (trunc): Define using libm_alias_double.
10049         * sysdeps/sparc/sparc64/fpu/s_copysign.S: Include
10050         <libm-alias-double.h>.
10051         (copysign): Define using libm_alias_double.
10052         * sysdeps/sparc/sparc64/fpu/s_fabs.c: Include
10053         <libm-alias-double.h>.
10054         (fabs): Define using libm_alias_double.
10055         * sysdeps/sparc/sparc64/fpu/s_lrint.S: Include
10056         <libm-alias-double.h>.
10057         (lrint): Define using libm_alias_double.
10058         (llrint): Likewise.
10059         * sysdeps/sparc/sparc64/fpu/s_nearbyint.S: Include
10060         <libm-alias-double.h>.
10061         (nearbyint): Define using libm_alias_double.
10062         * sysdeps/sparc/sparc64/fpu/s_rint.S: Include
10063         <libm-alias-double.h>.
10064         (rint): Define using libm_alias_double.
10065
10066         [BZ #22229]
10067         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Include
10068         <math_ldbl_opt.h>.
10069         (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
10070
10071         * scripts/build-many-glibcs.py (Context.add_all_configs): Add
10072         SPARC --disable-multi-arch glibc variants.
10073
10074         * sysdeps/x86_64/fpu/multiarch/e_exp2f.c: Include
10075         <libm-alias-float.h>.
10076         (exp2f): Define using libm_alias_float, or libm_alias_float_other
10077         if [SHARED].
10078         * sysdeps/x86_64/fpu/multiarch/e_expf.c: Include
10079         <libm-alias-float.h>.
10080         (exp2f): Define using libm_alias_float, or libm_alias_float_other
10081         if [SHARED].
10082         * sysdeps/x86_64/fpu/multiarch/e_log2f.c: Include
10083         <libm-alias-float.h>.
10084         (exp2f): Define using libm_alias_float, or libm_alias_float_other
10085         if [SHARED].
10086         * sysdeps/x86_64/fpu/multiarch/e_logf.c: Include
10087         <libm-alias-float.h>.
10088         (exp2f): Define using libm_alias_float, or libm_alias_float_other
10089         if [SHARED].
10090         * sysdeps/x86_64/fpu/multiarch/e_powf.c: Include
10091         <libm-alias-float.h>.
10092         (exp2f): Define using libm_alias_float, or libm_alias_float_other
10093         if [SHARED].
10094         * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Include
10095         <libm-alias-float.h>.
10096         (ceilf): Define using libm_alias_float.
10097         * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Include
10098         <libm-alias-float.h>.
10099         (floorf): Define using libm_alias_float.
10100         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Include
10101         <libm-alias-float.h>.
10102         (fmaf): Define using libm_alias_float.
10103         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Include
10104         <libm-alias-float.h>.
10105         (nearbyintf): Define using libm_alias_float.
10106         * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Include
10107         <libm-alias-float.h>.
10108         (rintf): Define using libm_alias_float.
10109         * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Include
10110         <libm-alias-float.h>.
10111         (truncf): Define using libm_alias_float.
10112         * sysdeps/x86_64/fpu/s_copysignf.S: Include <libm-alias-float.h>.
10113         (copysignf): Define using libm_alias_float.
10114         * sysdeps/x86_64/fpu/s_cosf.S: Include <libm-alias-float.h>.
10115         (cosf): Define using libm_alias_float.
10116         * sysdeps/x86_64/fpu/s_fabsf.c: Include <libm-alias-float.h>.
10117         (fabsf): Define using libm_alias_float.
10118         * sysdeps/x86_64/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
10119         (fmaxf): Define using libm_alias_float.
10120         * sysdeps/x86_64/fpu/s_fminf.S: Include <libm-alias-float.h>.
10121         (fminf): Define using libm_alias_float.
10122         * sysdeps/x86_64/fpu/s_llrintf.S: Include <libm-alias-float.h>.
10123         (llrintf): Define using libm_alias_float.
10124         [!__ILP32__] (lrintf): Likewise.
10125         * sysdeps/x86_64/fpu/s_sincosf.S: Include <libm-alias-float.h>.
10126         (sincosf): Define using libm_alias_float.
10127         * sysdeps/x86_64/fpu/s_sinf.S: Include <libm-alias-float.h>.
10128         (sinf): Define using libm_alias_float.
10129         * sysdeps/x86_64/x32/fpu/s_lrintf.S: Include <libm-alias-float.h>.
10130         (lrintf): Define using libm_alias_float.
10131
10132         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Include
10133         <libm-alias-double.h>.
10134         (atan): Define using libm_alias_double.
10135         * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Include
10136         <libm-alias-double.h>.
10137         (ceil): Define using libm_alias_double.
10138         * sysdeps/x86_64/fpu/multiarch/s_floor.c: Include
10139         <libm-alias-double.h>.
10140         (floor): Define using libm_alias_double.
10141         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Include
10142         <libm-alias-double.h>.
10143         (fma): Define using libm_alias_double.
10144         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Include
10145         <libm-alias-double.h>.
10146         (nearbyint): Define using libm_alias_double.
10147         * sysdeps/x86_64/fpu/multiarch/s_rint.c: Include
10148         <libm-alias-double.h>.
10149         (rint): Define using libm_alias_double.
10150         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Include
10151         <libm-alias-double.h>.
10152         (sin): Define using libm_alias_double.
10153         (cos): Likewise.
10154         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Include
10155         <libm-alias-double.h>.
10156         (tan): Define using libm_alias_double.
10157         * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Include
10158         <libm-alias-double.h>.
10159         (trunc): Define using libm_alias_double.
10160         * sysdeps/x86_64/fpu/s_copysign.S: Include <libm-alias-double.h>.
10161         (copysign): Define using libm_alias_double.
10162         * sysdeps/x86_64/fpu/s_fabs.c: Include <libm-alias-double.h>.
10163         (fabs): Define using libm_alias_double.
10164         * sysdeps/x86_64/fpu/s_fmax.S: Include <libm-alias-double.h>.
10165         (fmax): Define using libm_alias_double.
10166         * sysdeps/x86_64/fpu/s_fmin.S: Include <libm-alias-double.h>.
10167         (fmin): Define using libm_alias_double.
10168         * sysdeps/x86_64/fpu/s_llrint.S: Include <libm-alias-double.h>.
10169         (llrint): Define using libm_alias_double.
10170         [!__ILP32__] (lrint): Likewise.
10171         * sysdeps/x86_64/x32/fpu/s_lrint.S: Include <libm-alias-double.h>.
10172         (lrint): Define using libm_alias_double.
10173
10174 2017-11-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
10175
10176         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
10177         (libm-sysdep_routines): Add s_rintf-generic and s_rint-generic
10178         objects.
10179         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-generic.S: New file.
10180         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Likewise.
10181         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-generic.S: Likewise.
10182         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Likewise.
10183         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Remove file.
10184         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
10185
10186         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
10187         (libm-sysdep_routines): Add s_lrint-generic and s_lrintf-generic
10188         objects.
10189         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-generic.S: New file.
10190         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.c: Likewise.
10191         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-generic.S: Likewise.
10192         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.c: Likewise.
10193         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Remove file.
10194         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
10195
10196         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
10197         (libm-sysdep_routines): Add s_nearbyint-generic and
10198         s_nearbyintf-generic objects.
10199         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint-generic.S: New file.
10200         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.c: Likewise.
10201         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf-generic.S: Likewise.
10202         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.c: Likewise.
10203         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.S: Remove file.
10204         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.S: Likewise.
10205
10206         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
10207         Add s_finitef-generic and s_finite-generic objects.
10208         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-generic.S: New file.
10209         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.c: Likewise.
10210         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-generic.S: Likewise.
10211         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.c: Likewise.
10212         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Remove file.
10213         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Remove file.
10214
10215         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
10216         Add s_isinff-generic and s_isinf-generic objects.
10217         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-generic.S: New file.
10218         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.c: Likewise.
10219         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-generic.S: Likewise.
10220         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.c: Likewise.
10221         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Remove file.
10222         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
10223
10224         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
10225         Add s_isnanf-generic and s_isnan-generic objects.
10226         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-generic.S: New file.
10227         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-generic.S: Likewise.
10228         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.c: Likewise.
10229         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.c: Likewise.
10230         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Remove file.
10231         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
10232
10233         * sysdeps/sparc/sparc-ifunc.h (sparc_libm_ifunc_redirected): New
10234         macro.
10235         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdep_calls): New
10236         rule.
10237         (sysdep_routines): Use sysdep_calls as base.
10238         (libm-sysdep_routines): Add generic rule for symbols shared with
10239         libc.  Add s_signbit-generic and s_signbitf-generic objects.
10240         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.c: New file.
10241         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.c: Likewise.
10242         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-generic.S: Likewise.
10243         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-generic.S: Likewise.
10244         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Remove file.
10245         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
10246
10247 2017-11-29  Joseph Myers  <joseph@codesourcery.com>
10248
10249         * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-float.h>.
10250         * sysdeps/ia64/fpu/e_acosf.S (acosf): Use libm_alias_float_other.
10251         * sysdeps/ia64/fpu/e_acoshf.S (acoshf): Likewise.
10252         * sysdeps/ia64/fpu/e_asinf.S (asinf): Likewise.
10253         * sysdeps/ia64/fpu/e_atan2f.S (atan2f): Likewise.
10254         * sysdeps/ia64/fpu/e_atanhf.S (atanhf): Likewise.
10255         * sysdeps/ia64/fpu/e_coshf.S (coshf): Likewise.
10256         * sysdeps/ia64/fpu/e_exp10f.S (exp10f): Likewise.
10257         * sysdeps/ia64/fpu/e_exp2f.S (exp2f): Likewise.
10258         * sysdeps/ia64/fpu/e_expf.S (expf): Likewise.
10259         * sysdeps/ia64/fpu/e_fmodf.S (fmodf): Likewise.
10260         * sysdeps/ia64/fpu/e_hypotf.S (hypotf): Likewise.
10261         * sysdeps/ia64/fpu/e_lgammaf_r.c (lgammaf_r): Define using
10262         libm_alias_float_r.
10263         * sysdeps/ia64/fpu/e_log2f.S (log2f): Use libm_alias_float_other.
10264         * sysdeps/ia64/fpu/e_logf.S (log10f): Likewise.
10265         (logf): Likewise.
10266         * sysdeps/ia64/fpu/e_powf.S (powf): Likewise.
10267         * sysdeps/ia64/fpu/e_remainderf.S (remainderf): Likewise.
10268         * sysdeps/ia64/fpu/e_sinhf.S (sinhf): Likewise.
10269         * sysdeps/ia64/fpu/e_sqrtf.S (sqrtf): Likewise.
10270         * sysdeps/ia64/fpu/libm_sincosf.S (sincosf): Likewise.
10271         * sysdeps/ia64/fpu/s_asinhf.S (asinhf): Likewise.
10272         * sysdeps/ia64/fpu/s_atanf.S (atanf): Likewise.
10273         * sysdeps/ia64/fpu/s_cbrtf.S (cbrtf): Likewise.
10274         * sysdeps/ia64/fpu/s_ceilf.S (ceilf): Likewise.
10275         * sysdeps/ia64/fpu/s_copysign.S (copysignf): Define using
10276         libm_alias_float.
10277         * sysdeps/ia64/fpu/s_cosf.S (sinf): Use libm_alias_float_other.
10278         (cosf): Likewise.
10279         * sysdeps/ia64/fpu/s_erfcf.S (erfcf): Likewise.
10280         * sysdeps/ia64/fpu/s_erff.S (erff): Likewise.
10281         * sysdeps/ia64/fpu/s_expm1f.S (expm1f): Likewise.
10282         * sysdeps/ia64/fpu/s_fabsf.S (fabsf): Likewise.
10283         * sysdeps/ia64/fpu/s_fdimf.S (fdimf): Likewise.
10284         * sysdeps/ia64/fpu/s_floorf.S (floorf): Likewise.
10285         * sysdeps/ia64/fpu/s_fmaf.S (fmaf): Likewise.
10286         * sysdeps/ia64/fpu/s_fmaxf.S (fmaxf): Likewise.
10287         * sysdeps/ia64/fpu/s_frexpf.c (frexpf): Likewise.
10288         * sysdeps/ia64/fpu/s_ldexpf.c (ldexpf): Likewise.
10289         * sysdeps/ia64/fpu/s_log1pf.S (log1pf): Likewise.
10290         * sysdeps/ia64/fpu/s_logbf.S (logbf): Likewise.
10291         * sysdeps/ia64/fpu/s_modff.S (modff): Likewise.
10292         * sysdeps/ia64/fpu/s_nearbyintf.S (nearbyintf): Likewise.
10293         * sysdeps/ia64/fpu/s_nextafterf.S (nextafterf): Likewise.
10294         * sysdeps/ia64/fpu/s_rintf.S (rintf): Likewise.
10295         * sysdeps/ia64/fpu/s_roundf.S (roundf): Likewise.
10296         * sysdeps/ia64/fpu/s_scalblnf.c (scalblnf): Likewise.
10297         * sysdeps/ia64/fpu/s_scalbnf.c (scalbnf): Define using
10298         libm_alias_float.
10299         * sysdeps/ia64/fpu/s_tanf.S (tanf): Use libm_alias_float_other.
10300         * sysdeps/ia64/fpu/s_tanhf.S (tanhf): Likewise.
10301         * sysdeps/ia64/fpu/s_truncf.S (truncf): Likewise.
10302         * sysdeps/ia64/fpu/w_lgammaf_main.c
10303         [BUILD_LGAMMA && !USE_AS_COMPAT] (lgammaf): Likewise.
10304         * sysdeps/ia64/fpu/w_tgammaf_compat.S (tgammaf): Likewise.
10305
10306 2017-11-28  Mike FABIAN  <mfabian@redhat.com>
10307             Alexandre Oliva  <aoliva@redhat.com>
10308
10309         [BZ #17750]
10310         * Makefile: add fr_CA.UTF-8 to test-input and LOCALES.
10311         * localedata/fr_CA.UTF-8.in: New file with test data for backward
10312         accents sorting.
10313         * localedata/fr_FR.UTF-8.in: Fix test data for forward accents
10314         sorting.
10315         * localedata/locales/cs_CZ (LC_COLLATE): Remove “define DIACRIT_FORWARD”
10316         * localedata/locales/de_DE (LC_COLLATE): Likewise.
10317         * localedata/locales/hu_HU (LC_COLLATE): Likewise.
10318         * localedata/locales/lb_LU (LC_COLLATE): Likewise.
10319         * localedata/locales/yuw_PG (LC_COLLATE): Likewise.
10320         * localedata/locales/fr_CA (LC_COLLATE): Add “define DIACRIT_BACKWARD”
10321         * localedata/locales/iso14651_t1_common: Use “ifdef DIACRIT_FORWARD”
10322         instead of “ifdef DIACRIT_BACKWARD”.
10323
10324 2017-11-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
10325
10326         * config.h.in (HAVE_AS_VIS3_SUPPORT): Remove check for VIS3 support.
10327         * sysdeps/sparc/configure.ac (HAVE_AS_VIS3_SUPPORT): Likewise.
10328         * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c: Likewise.
10329         * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.c: Likewise.
10330         * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: Likewise.
10331         * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: Likewise.
10332         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Likewise.
10333         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Likewise.
10334         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Likewise.
10335         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Likewise.
10336         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: Likewise.
10337         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: Likewise.
10338         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Likewise.
10339         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Likewise.
10340         * sysdeps/sparc/sparc-ifunc.h [!HAVE_AS_VIS3_SUPPORT]
10341         (SPARC_ASM_VIS3_IFUNC, SPARC_ASM_VIS3_VIS2_IFUNC): Remove macros.
10342         * sysdeps/sparc/sparc32/sparcv9/Makefile [$(have-as-vis3) != yes]
10343         (ASFLAGS.o, ASFLAGS-.os, ASFLAGS-.op, ASFLAGS-.oS): Remove rules.
10344         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
10345         ($(have-as-vis3) == yes): Remove conditional.
10346         * sysdeps/sparc/sparc64/Makefile (($(have-as-vis3) == yes)):
10347         Likewise.
10348         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-generic.c: New
10349         file.
10350         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-generic.c: New
10351         file.
10352         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-generic.c: New
10353         file.
10354         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-generic.c: New
10355         file.
10356         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-generic.c: New file.
10357         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-generic.c: New file.
10358         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-generic.c: New file.
10359         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-generic.c: New file.
10360         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-generic.c: New file.
10361         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-generic.c: New file.
10362         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-generic.c: New file.
10363         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-generic.c: New file.
10364
10365 2017-11-29  Joseph Myers  <joseph@codesourcery.com>
10366
10367         * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-double.h>.
10368         * sysdeps/ia64/fpu/e_acos.S (acos): Use libm_alias_double_other.
10369         * sysdeps/ia64/fpu/e_acosh.S (acosh): Likewise.
10370         * sysdeps/ia64/fpu/e_asin.S (asin): Likewise.
10371         * sysdeps/ia64/fpu/e_atan2.S (atan2): Likewise.
10372         * sysdeps/ia64/fpu/e_atanh.S (atanh): Likewise.
10373         * sysdeps/ia64/fpu/e_cosh.S (cosh): Likewise.
10374         * sysdeps/ia64/fpu/e_exp.S (exp): Likewise.
10375         * sysdeps/ia64/fpu/e_exp10.S (exp10): Likewise.
10376         * sysdeps/ia64/fpu/e_exp2.S (exp2): Likewise.
10377         * sysdeps/ia64/fpu/e_fmod.S (fmod): Likewise.
10378         * sysdeps/ia64/fpu/e_hypot.S (hypot): Likewise.
10379         * sysdeps/ia64/fpu/e_lgamma_r.c (lgamma_r): Define using
10380         libm_alias_double_r.
10381         * sysdeps/ia64/fpu/e_log.S (log10): Use libm_alias_double_other.
10382         (log): Likewise.
10383         * sysdeps/ia64/fpu/e_log2.S (log2): Likewise.
10384         * sysdeps/ia64/fpu/e_pow.S (pow): Likewise.
10385         * sysdeps/ia64/fpu/e_remainder.S (remainder): Likewise.
10386         * sysdeps/ia64/fpu/e_sinh.S (sinh): Likewise.
10387         * sysdeps/ia64/fpu/e_sqrt.S (sqrt): Likewise.
10388         * sysdeps/ia64/fpu/libm_sincos.S (sincos): Likewise.
10389         * sysdeps/ia64/fpu/s_asinh.S (asinh): Likewise.
10390         * sysdeps/ia64/fpu/s_atan.S (atan): Likewise.
10391         * sysdeps/ia64/fpu/s_cbrt.S (cbrt): Likewise.
10392         * sysdeps/ia64/fpu/s_ceil.S (ceil): Likewise.
10393         * sysdeps/ia64/fpu/s_copysign.S (copysign): Define using
10394         libm_alias_double.
10395         * sysdeps/ia64/fpu/s_cos.S (sin): Use libm_alias_double_other.
10396         (cos): Likewise.
10397         * sysdeps/ia64/fpu/s_erf.S (erf): Likewise.
10398         * sysdeps/ia64/fpu/s_erfc.S (erfc): Likewise.
10399         * sysdeps/ia64/fpu/s_expm1.S (expm1): Likewise.
10400         * sysdeps/ia64/fpu/s_fabs.S (fabs): Likewise.
10401         * sysdeps/ia64/fpu/s_fdim.S (fdim): Likewise.
10402         * sysdeps/ia64/fpu/s_floor.S (floor): Likewise.
10403         * sysdeps/ia64/fpu/s_fma.S (fma): Likewise.
10404         * sysdeps/ia64/fpu/s_fmax.S (fmax): Likewise.
10405         * sysdeps/ia64/fpu/s_frexp.c (frexp): Likewise.
10406         * sysdeps/ia64/fpu/s_ldexp.c (ldexp): Likewise.
10407         * sysdeps/ia64/fpu/s_log1p.S (log1p): Likewise.
10408         * sysdeps/ia64/fpu/s_logb.S (logb): Likewise.
10409         * sysdeps/ia64/fpu/s_modf.S (modf): Likewise.
10410         * sysdeps/ia64/fpu/s_nearbyint.S (nearbyint): Likewise.
10411         * sysdeps/ia64/fpu/s_nextafter.S (nextafter): Likewise.
10412         * sysdeps/ia64/fpu/s_rint.S (rint): Likewise.
10413         * sysdeps/ia64/fpu/s_round.S (round): Likewise.
10414         * sysdeps/ia64/fpu/s_scalbn.c (scalbn): Define using
10415         libm_alias_double.
10416         * sysdeps/ia64/fpu/s_tan.S (tan): Use libm_alias_double_other.
10417         * sysdeps/ia64/fpu/s_tanh.S (tanh): Likewise.
10418         * sysdeps/ia64/fpu/s_trunc.S (trunc): Likewise.
10419         * sysdeps/ia64/fpu/w_lgamma_main.c
10420         [BUILD_LGAMMA && !USE_AS_COMPAT] (lgamma): Likewise.
10421         * sysdeps/ia64/fpu/w_tgamma_compat.S (tgamma): Likewise.
10422
10423 2017-11-28  John David Anglin  <danglin@gcc.gnu.org>
10424
10425         * sysdeps/hppa/start.S (_start): Check PIC instead of SHARED.  Load
10426         address of $global$ into %dp register earlier.  Use pc-relative
10427         instruction sequence for PIC case.
10428
10429 2017-11-28  Joseph Myers  <joseph@codesourcery.com>
10430
10431         * sysdeps/i386/fpu/s_asinhf.S: Include <libm-alias-float.h>.
10432         (asinhf): Define using libm_alias_float.
10433         * sysdeps/i386/fpu/s_atanf.S: Include <libm-alias-float.h>.
10434         (atanf): Define using libm_alias_float.
10435         * sysdeps/i386/fpu/s_cbrtf.S: Include <libm-alias-float.h>.
10436         (cbrtf): Define using libm_alias_float.
10437         * sysdeps/i386/fpu/s_ceilf.S: Include <libm-alias-float.h>.
10438         (ceilf): Define using libm_alias_float.
10439         * sysdeps/i386/fpu/s_copysignf.S: Include <libm-alias-float.h>.
10440         (copysignf): Define using libm_alias_float.
10441         * sysdeps/i386/fpu/s_expm1f.S: Include <libm-alias-float.h>.
10442         (expm1f): Define using libm_alias_float.
10443         * sysdeps/i386/fpu/s_fabsf.S: Include <libm-alias-float.h>.
10444         (fabsf): Define using libm_alias_float.
10445         * sysdeps/i386/fpu/s_floorf.S: Include <libm-alias-float.h>.
10446         (floorf): Define using libm_alias_float.
10447         * sysdeps/i386/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
10448         (fmaxf): Define using libm_alias_float.
10449         * sysdeps/i386/fpu/s_fminf.S: Include <libm-alias-float.h>.
10450         (fminf): Define using libm_alias_float.
10451         * sysdeps/i386/fpu/s_frexpf.S: Include <libm-alias-float.h>.
10452         (frexpf): Define using libm_alias_float.
10453         * sysdeps/i386/fpu/s_llrintf.S: Include <libm-alias-float.h>.
10454         (llrintf): Define using libm_alias_float.
10455         * sysdeps/i386/fpu/s_logbf.S: Include <libm-alias-float.h>.
10456         (logbf): Define using libm_alias_float.
10457         * sysdeps/i386/fpu/s_lrintf.S: Include <libm-alias-float.h>.
10458         (lrintf): Define using libm_alias_float.
10459         * sysdeps/i386/fpu/s_nearbyintf.S: Include <libm-alias-float.h>.
10460         (nearbyintf): Define using libm_alias_float.
10461         * sysdeps/i386/fpu/s_remquof.S: Include <libm-alias-float.h>.
10462         (remquof): Define using libm_alias_float.
10463         * sysdeps/i386/fpu/s_rintf.S: Include <libm-alias-float.h>.
10464         (rintf): Define using libm_alias_float.
10465         * sysdeps/i386/fpu/s_truncf.S: Include <libm-alias-float.h>.
10466         (truncf): Define using libm_alias_float.
10467         * sysdeps/i386/i686/fpu/multiarch/e_exp2f.c: Include
10468         <libm-alias-float.h>.
10469         (exp2f): Define using libm_alias_float, or libm_alias_float_other
10470         if [SHARED].
10471         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Include
10472         <libm-alias-float.h>.
10473         (expf): Define using libm_alias_float, or libm_alias_float_other
10474         if [SHARED].
10475         * sysdeps/i386/i686/fpu/multiarch/e_log2f.c: Include
10476         <libm-alias-float.h>.
10477         (log2f): Define using libm_alias_float, or libm_alias_float_other
10478         if [SHARED].
10479         * sysdeps/i386/i686/fpu/multiarch/e_logf.c: Include
10480         <libm-alias-float.h>.
10481         (logf): Define using libm_alias_float, or libm_alias_float_other
10482         if [SHARED].
10483         * sysdeps/i386/i686/fpu/multiarch/e_powf.c: Include
10484         <libm-alias-float.h>.
10485         (powf): Define using libm_alias_float, or libm_alias_float_other
10486         if [SHARED].
10487         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Include
10488         <libm-alias-float.h>.
10489         (cosf): Define using libm_alias_float.
10490         * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: Include
10491         <libm-alias-float.h>.
10492         (sincosf): Define using libm_alias_float.
10493         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: Include
10494         <libm-alias-float.h>.
10495         (sinf): Define using libm_alias_float.
10496         * sysdeps/i386/i686/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
10497         (fmaxf): Define using libm_alias_float.
10498         * sysdeps/i386/i686/fpu/s_fminf.S: Include <libm-alias-float.h>.
10499         (fminf): Define using libm_alias_float.
10500         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
10501         <libm-alias-float.h>.
10502         (fmaf): Define using libm_alias_float.
10503
10504         * sysdeps/i386/fpu/s_asinh.S: Include <libm-alias-double.h>.
10505         (asinh): Define using libm_alias_double.
10506         * sysdeps/i386/fpu/s_atan.S: Include <libm-alias-double.h>.
10507         (atan): Define using libm_alias_double.
10508         * sysdeps/i386/fpu/s_cbrt.S: Include <libm-alias-double.h>.
10509         (cbrt): Define using libm_alias_double.
10510         * sysdeps/i386/fpu/s_ceil.S: Include <libm-alias-double.h>.
10511         (ceil): Define using libm_alias_double.
10512         * sysdeps/i386/fpu/s_copysign.S: Include <libm-alias-double.h>.
10513         (copysign): Define using libm_alias_double.
10514         * sysdeps/i386/fpu/s_expm1.S: Include <libm-alias-double.h>.
10515         (expm1): Define using libm_alias_double.
10516         * sysdeps/i386/fpu/s_fabs.S: Include <libm-alias-double.h>.
10517         (fabs): Define using libm_alias_double.
10518         * sysdeps/i386/fpu/s_fdim.c: Include <libm-alias-double.h>.
10519         (fdim): Define using libm_alias_double.
10520         * sysdeps/i386/fpu/s_floor.S: Include <libm-alias-double.h>.
10521         (floor): Define using libm_alias_double.
10522         * sysdeps/i386/fpu/s_fmax.S: Include <libm-alias-double.h>.
10523         (fmax): Define using libm_alias_double.
10524         * sysdeps/i386/fpu/s_fmin.S: Include <libm-alias-double.h>.
10525         (fmin): Define using libm_alias_double.
10526         * sysdeps/i386/fpu/s_frexp.S: Include <libm-alias-double.h>.
10527         (frexp): Define using libm_alias_double.
10528         * sysdeps/i386/fpu/s_llrint.S: Include <libm-alias-double.h>.
10529         (llrint): Define using libm_alias_double.
10530         * sysdeps/i386/fpu/s_logb.S: Include <libm-alias-double.h>.
10531         (logb): Define using libm_alias_double.
10532         * sysdeps/i386/fpu/s_lrint.S: Include <libm-alias-double.h>.
10533         (lrint): Define using libm_alias_double.
10534         * sysdeps/i386/fpu/s_nearbyint.S: Include <libm-alias-double.h>.
10535         (nearbyint): Define using libm_alias_double.
10536         * sysdeps/i386/fpu/s_remquo.S: Include <libm-alias-double.h>.
10537         (remquo): Define using libm_alias_double.
10538         * sysdeps/i386/fpu/s_rint.S: Include <libm-alias-double.h>.
10539         (rint): Define using libm_alias_double.
10540         * sysdeps/i386/fpu/s_trunc.S: Include <libm-alias-double.h>.
10541         (trunc): Define using libm_alias_double.
10542         * sysdeps/i386/i686/fpu/s_fmax.S: Include <libm-alias-double.h>.
10543         (fmax): Define using libm_alias_double.
10544         * sysdeps/i386/i686/fpu/s_fmin.S: Include <libm-alias-double.h>.
10545         (fmin): Define using libm_alias_double.
10546         * sysdeps/i386/i686/multiarch/s_fma.c: Include <libm-alias-double.h>.
10547         (fma): Define using libm_alias_double.
10548
10549 2017-11-28  H.J. Lu  <hongjiu.lu@intel.com>
10550
10551         [BZ #22370]
10552         * elf/dl-hwcaps.c (ROUND): Removed.
10553         (_dl_important_hwcaps): Replace ROUND with ELF_NOTE_DESC_OFFSET
10554         and ELF_NOTE_NEXT_OFFSET.
10555         * elf/dl-load.c (ROUND): Removed.
10556         (open_verify): Replace ROUND with ELF_NOTE_NEXT_OFFSET.
10557         * elf/readelflib.c (ROUND): Removed.
10558         (process_elf_file): Replace ROUND with ELF_NOTE_NEXT_OFFSET.
10559         * include/elf.h [!_ISOMAC]: Include <libc-pointer-arith.h>.
10560         [!_ISOMAC] (ELF_NOTE_DESC_OFFSET): New.
10561         [!_ISOMAC] (ELF_NOTE_NEXT_OFFSET): Likewise.
10562
10563 2017-11-28  Joseph Myers  <joseph@codesourcery.com>
10564
10565         * sysdeps/s390/fpu/s_fmaf.c: Include <libm-alias-float.h>.
10566         [!__fmaf] (fmaf): Define using libm_alias_float.
10567
10568         * sysdeps/s390/fpu/s_fma.c: Include <libm-alias-double.h>.
10569         [!__fma] (fma): Define using libm_alias_double.
10570         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: Remove.
10571
10572 2017-11-28  Mike FABIAN  <mfabian@redhat.com>
10573
10574         [BZ #22336]
10575         * localedata/locales/cs_CZ (LC_COLLATE): Use “copy "iso14651_t1"”
10576         and implement the collation rules for cs from CLDR on top of that.
10577         * Makefile: Add cs_CZ.UTF-8 to test-input.
10578         * cs_CZ.UTF-8.in: New file with test data to test the Czech sorting.
10579
10580 2017-11-28  Siddhesh Poyarekar  <siddhesh@sourceware.org>
10581
10582         * localedata/Makefile (LOCALES): Remove duplicate cs_CZ.UTF-8.
10583
10584 2017-11-28  Victor Rodriguez  <victor.rodriguez.bahena@intel.com>
10585             Icarus Sparry  <icarus.w.sparry@intel.com>
10586
10587         * benchtests/Makefile:Add BENCHSET to allow subsets of
10588         benchmarks to be run.
10589         * benchtests/README: Add documentation for: Running subsets of
10590         benchmarks.
10591
10592 2017-11-28  Victor Rodriguez  <victor.rodriguez.bahena@intel.com>
10593
10594         * benchtests/scripts/benchout.schema.json: Fix regex to accept a wider
10595         range of tests names.
10596
10597         * benchtests/scripts/benchout.schema.json: Add throughput as accepted
10598         result from property and remove "max", min" and "mean" from
10599         required properties based on benchtests/bench-skeleton.c.
10600
10601 2017-11-28  Florian Weimer  <fweimer@redhat.com>
10602
10603         [BZ #20826]
10604         Turn posix/tst-getaddrinfo4, posix/tst-getaddrinfo5 into xtests
10605         due to Internet requirement.
10606         * posix/Makefile (tests): Remove tst-getaddrinfo4,
10607         tst-getaddrinfo5.
10608         (xtests): Add tst-getaddrinfo4, tst-getaddrinfo5.
10609
10610 2017-11-28  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
10611
10612         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
10613         [$(subdir) = string] (sysdep_routines): Add memset-ultra1.
10614         * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = string]
10615         (sysdep_routines): Add memset-ultra1.
10616         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-ultra1.S: New
10617         file.
10618         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset.c: Likewise.
10619         * sysdeps/sparc/sparc32/sparcv9/multiarch/bzero.c: Likewise.
10620         * sysdeps/sparc/sparc64/multiarch/ifunc-memset.h: Likewise.
10621         * sysdeps/sparc/sparc64/multiarch/memset-ultra1.S: Likewise.
10622         * sysdeps/sparc/sparc64/multiarch/memset.c: Likewise.
10623         * sysdeps/sparc/sparc64/multiarch/bzero.c: Likewise.
10624         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset.S: Remove file.
10625         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
10626
10627         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-ultra1.S: New
10628         file.
10629         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy.c: Likewise.
10630         * sysdeps/sparc/sparc32/sparcv9/multiarch/mempcpy.c: Likewise.
10631         * sysdeps/sparc/sparc64/multiarch/ifunc-memcpy.h: Likewise.
10632         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra1.S: Likewise.
10633         * sysdeps/sparc/sparc64/multiarch/memcpy.c: Likewise.
10634         * sysdeps/sparc/sparc64/multiarch/mempcpy.c: Likewise.
10635         * sysdeps/sparc/sparc-ifunc.h (sparc_libc_ifunc_redirected): New
10636         macro.
10637         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
10638         [$(subdir) = string] (sysdep_routines): Add memcpy-ultra1.
10639         * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = string]
10640         (sysdep_routines): Add memcpy-ultra1.
10641         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Remove file.
10642         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy.S: Likewise.
10643
10644 2017-11-28  Joseph Myers  <joseph@codesourcery.com>
10645
10646         * sysdeps/alpha/fpu/cfloat-compat.h: Include <libm-alias-float.h>.
10647         (cfloat_versions): Take function argument without trailing 'f'.
10648         Call libm_alias_float_other.
10649         * sysdeps/alpha/fpu/cabsf.c: Update call to cfloat_versions.
10650         * sysdeps/alpha/fpu/cargf.c: Likewise.
10651         * sysdeps/alpha/fpu/cimagf.c: Likewise.
10652         * sysdeps/alpha/fpu/conjf.c: Likewise.
10653         * sysdeps/alpha/fpu/crealf.c: Likewise.
10654         * sysdeps/alpha/fpu/s_cacosf.c: Likewise.
10655         * sysdeps/alpha/fpu/s_cacoshf.c: Likewise.
10656         * sysdeps/alpha/fpu/s_casinf.c: Likewise.
10657         * sysdeps/alpha/fpu/s_casinhf.c: Likewise.
10658         * sysdeps/alpha/fpu/s_catanf.c: Likewise.
10659         * sysdeps/alpha/fpu/s_catanhf.c: Likewise.
10660         * sysdeps/alpha/fpu/s_ccosf.c: Likewise.
10661         * sysdeps/alpha/fpu/s_ccoshf.c: Likewise.
10662         * sysdeps/alpha/fpu/s_cexpf.c: Likewise.
10663         * sysdeps/alpha/fpu/s_clogf.c: Likewise.
10664         * sysdeps/alpha/fpu/s_cpowf.c: Likewise.
10665         * sysdeps/alpha/fpu/s_cprojf.c: Likewise.
10666         * sysdeps/alpha/fpu/s_csinf.c: Likewise.
10667         * sysdeps/alpha/fpu/s_csinhf.c: Likewise.
10668         * sysdeps/alpha/fpu/s_csqrtf.c: Likewise.
10669         * sysdeps/alpha/fpu/s_ctanf.c: Likewise.
10670         * sysdeps/alpha/fpu/s_ctanhf.c: Likewise.
10671         * sysdeps/alpha/fpu/s_clog10f.c: Include <libm-alias-float.h>.
10672         (clog10f): Use libm_alias_float_other.
10673         * sysdeps/alpha/fpu/s_ceilf.c: Include <libm-alias-float.h>.
10674         (ceilf): Define using libm_alias_float.
10675         * sysdeps/alpha/fpu/s_copysignf.c: Include <libm-alias-float.h>.
10676         (copysignf): Define using libm_alias_float.
10677         * sysdeps/alpha/fpu/s_fabsf.c: Include <libm-alias-float.h>.
10678         (fabsf): Define using libm_alias_float.
10679         * sysdeps/alpha/fpu/s_floorf.c: Include <libm-alias-float.h>.
10680         (floorf): Define using libm_alias_float.
10681         * sysdeps/alpha/fpu/s_fmax.S: Include <libm-alias-float.h>.
10682         (fmaxf): Define using libm_alias_float.
10683         * sysdeps/alpha/fpu/s_fmin.S: Include <libm-alias-float.h>.
10684         (fminf): Define using libm_alias_float.
10685         * sysdeps/alpha/fpu/s_lrintf.c: Include <libm-alias-float.h>.
10686         (lrintf): Define using libm_alias_float.
10687         (llrintf): Likewise.
10688         * sysdeps/alpha/fpu/s_lroundf.c: Include <libm-alias-float.h>.
10689         (lroundf): Define using libm_alias_float.
10690         (llroundf): Likewise.
10691         * sysdeps/alpha/fpu/s_rintf.c: Include <libm-alias-float.h>.
10692         (rintf): Define using libm_alias_float.
10693         * sysdeps/alpha/fpu/s_truncf.c: Include <libm-alias-float.h>.
10694         (truncf): Define using libm_alias_float.
10695
10696         * sysdeps/aarch64/fpu/s_ceilf.c: Include <libm-alias-float.h>.
10697         (ceilf): Define using libm_alias_float.
10698         * sysdeps/aarch64/fpu/s_floorf.c: Include <libm-alias-float.h>.
10699         (floorf): Define using libm_alias_float.
10700         * sysdeps/aarch64/fpu/s_fmaf.c: Include <libm-alias-float.h>.
10701         (fmaf): Define using libm_alias_float.
10702         * sysdeps/aarch64/fpu/s_fmaxf.c: Include <libm-alias-float.h>.
10703         (fmaxf): Define using libm_alias_float.
10704         * sysdeps/aarch64/fpu/s_fminf.c: Include <libm-alias-float.h>.
10705         (fminf): Define using libm_alias_float.
10706         * sysdeps/aarch64/fpu/s_llrintf.c: Include <libm-alias-float.h>.
10707         (llrintf): Define using libm_alias_float.
10708         * sysdeps/aarch64/fpu/s_llroundf.c: Include <libm-alias-float.h>.
10709         (llroundf): Define using libm_alias_float.
10710         * sysdeps/aarch64/fpu/s_lrintf.c: Include <libm-alias-float.h>.
10711         (lrintf): Define using libm_alias_float.
10712         * sysdeps/aarch64/fpu/s_lroundf.c: Include <libm-alias-float.h>.
10713         (lroundf): Define using libm_alias_float.
10714         * sysdeps/aarch64/fpu/s_nearbyintf.c: Include
10715         <libm-alias-float.h>.
10716         (nearbyintf): Define using libm_alias_float.
10717         * sysdeps/aarch64/fpu/s_rintf.c: Include <libm-alias-float.h>.
10718         (rintf): Define using libm_alias_float.
10719         * sysdeps/aarch64/fpu/s_roundf.c: Include <libm-alias-float.h>.
10720         (roundf): Define using libm_alias_float.
10721         * sysdeps/aarch64/fpu/s_truncf.c: Include <libm-alias-float.h>.
10722         (truncf): Define using libm_alias_float.
10723
10724         * sysdeps/alpha/fpu/s_ceil.c: Include <libm-alias-double.h>.
10725         (ceil): Define using libm_alias_double.
10726         * sysdeps/alpha/fpu/s_copysign.c: Include <libm-alias-double.h>.
10727         (copysign): Define using libm_alias_double.
10728         * sysdeps/alpha/fpu/s_fabs.c: Include <libm-alias-double.h>.
10729         (fabs): Define using libm_alias_double.
10730         * sysdeps/alpha/fpu/s_floor.c: Include <libm-alias-double.h>.
10731         (floor): Define using libm_alias_double.
10732         * sysdeps/alpha/fpu/s_fmax.S: Include <libm-alias-double.h>.
10733         (fmax): Define using libm_alias_double.
10734         * sysdeps/alpha/fpu/s_fmin.S: Include <libm-alias-double.h>.
10735         (fmin): Define using libm_alias_double.
10736         * sysdeps/alpha/fpu/s_lrint.c: Include <libm-alias-double.h>.
10737         (lrint): Define using libm_alias_double.
10738         (llrint): Likewise.
10739         * sysdeps/alpha/fpu/s_lround.c: Include <libm-alias-double.h>.
10740         (lround): Define using libm_alias_double.
10741         (llround): Likewise.
10742         * sysdeps/alpha/fpu/s_rint.c: Include <libm-alias-double.h>.
10743         (rint): Define using libm_alias_double.
10744         * sysdeps/alpha/fpu/s_trunc.c: Include <libm-alias-double.h>.
10745         (trunc): Define using libm_alias_double.
10746
10747         * sysdeps/ieee754/ldbl-opt/libm-alias-double.h
10748         (libm_alias_double_r): Add semicolon after weak_alias call.
10749
10750 2017-11-27  Joseph Myers  <joseph@codesourcery.com>
10751
10752         * sysdeps/aarch64/fpu/s_ceil.c: Include <libm-alias-double.h>.
10753         (ceil): Define using libm_alias_double.
10754         * sysdeps/aarch64/fpu/s_floor.c: Include <libm-alias-double.h>.
10755         (floor): Define using libm_alias_double.
10756         * sysdeps/aarch64/fpu/s_fma.c: Include <libm-alias-double.h>.
10757         (fma): Define using libm_alias_double.
10758         * sysdeps/aarch64/fpu/s_fmax.c: Include <libm-alias-double.h>.
10759         (fmax): Define using libm_alias_double.
10760         * sysdeps/aarch64/fpu/s_fmin.c: Include <libm-alias-double.h>.
10761         (fmin): Define using libm_alias_double.
10762         * sysdeps/aarch64/fpu/s_llrint.c: Include <libm-alias-double.h>.
10763         (llrint): Define using libm_alias_double.
10764         * sysdeps/aarch64/fpu/s_llround.c: Include <libm-alias-double.h>.
10765         (llround): Define using libm_alias_double.
10766         * sysdeps/aarch64/fpu/s_lrint.c: Include <libm-alias-double.h>.
10767         (lrint): Define using libm_alias_double.
10768         * sysdeps/aarch64/fpu/s_lround.c: Include <libm-alias-double.h>.
10769         (lround): Define using libm_alias_double.
10770         * sysdeps/aarch64/fpu/s_nearbyint.c: Include <libm-alias-double.h>.
10771         (nearbyint): Define using libm_alias_double.
10772         * sysdeps/aarch64/fpu/s_rint.c: Include <libm-alias-double.h>.
10773         (rint): Define using libm_alias_double.
10774         * sysdeps/aarch64/fpu/s_round.c: Include <libm-alias-double.h>.
10775         (round): Define using libm_alias_double.
10776         * sysdeps/aarch64/fpu/s_trunc.c: Include <libm-alias-double.h>.
10777         (trunc): Define using libm_alias_double.
10778
10779 2017-11-27  Florian Weimer  <fweimer@redhat.com>
10780
10781         * sysdeps/unix/sysv/linux/mlock2.c: New file.
10782         * sysdeps/unix/sysv/linux/tst-mlock2.c: Likewise.
10783         * sysdeps/unix/sysv/linux/Makefile (routines): Add mlock2.
10784         (tests): Add tst-mlock2.
10785         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Export mlock2.
10786         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_MLOCK2)
10787         [__LINUX_KERNEL_VERSION >= 4.4]: Define.
10788         * sysdeps/unix/sysv/linux/libc**.abilist: Update.
10789         * manual/memory.texi (Page Lock Functions): Move @end deftypefun
10790         for mlock.  Document mlock2.
10791
10792 2017-11-27  Joseph Myers  <joseph@codesourcery.com>
10793
10794         * sysdeps/ia64/Makeconfig (float64x-alias-fcts): New variable.
10795         * sysdeps/ieee754/float128/Makeconfig (float64x-alias-fcts):
10796         Likewise.
10797         * sysdeps/ieee754/ldbl-128/Makeconfig (float64x-alias-fcts):
10798         Likewise.
10799         * sysdeps/x86/Makeconfig: New file.
10800         * bits/floatn-common.h (__HAVE_FLOAT64X): Remove macro.
10801         (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
10802         * bits/floatn.h (__HAVE_FLOAT64X): New macro.
10803         (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
10804         * sysdeps/ia64/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
10805         (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
10806         * sysdeps/ieee754/ldbl-128/bits/floatn.h (__HAVE_FLOAT64X):
10807         Likewise.
10808         (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
10809         * sysdeps/mips/ieee754/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
10810         (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
10811         * sysdeps/powerpc/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
10812         (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
10813         * sysdeps/x86/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
10814         (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
10815         * manual/math.texi (Mathematics): Document support for _Float64x.
10816         * math/Versions (GLIBC_2.27): Add _Float64x functions.
10817         * stdlib/Versions (GLIBC_2.27): Likewise.
10818         * wcsmbs/Versions (GLIBC_2.27): Likewise.
10819         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
10820         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
10821         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
10822         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
10823         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
10824         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
10825         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
10826         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
10827         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
10828         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
10829         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
10830         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
10831         Likewise.
10832         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
10833         Likewise.
10834         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
10835         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
10836         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
10837         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
10838         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
10839         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
10840         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
10841         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
10842         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
10843         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
10844         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
10845         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
10846         * sysdeps/i386/fpu/libm-test-ulps: Likewise.
10847         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
10848
10849 2017-11-27  Andreas Schwab  <schwab@suse.de>
10850
10851         * elf/Makefile (dl-routines): Add dl-sort-maps.
10852         * elf/dl-sort-maps.c: New file.
10853         * sysdeps/generic/ldsodefs.h (_dl_sort_fini): Don't declare.
10854         (_dl_sort_maps): Declare.
10855         * elf/dl-fini.c (_dl_sort_fini): Remove.
10856         (_dl_fini): Use _dl_sort_maps instead of _dl_sort_fini.
10857         * elf/dl-close.c (_dl_close_worker): Likewise.
10858         * elf/dl-deps.c (_dl_map_object_deps): Use _dl_sort_maps instead of
10859         open-coding it.
10860         * elf/dl-open.c (dl_open_worker): Likewise.
10861
10862 2017-11-24  Joseph Myers  <joseph@codesourcery.com>
10863
10864         * sysdeps/ieee754/float128/s_fromfpf128.c (fromfpf128): Define
10865         using libm_alias_float128.
10866         * sysdeps/ieee754/float128/s_fromfpxf128.c (fromfpxf128):
10867         Likewise.
10868         * sysdeps/ieee754/float128/s_setpayloadf128.c (setpayloadf128):
10869         Likewise.
10870         * sysdeps/ieee754/float128/s_setpayloadsigf128.c
10871         (setpayloadsigf128): Likewise.
10872         * sysdeps/ieee754/float128/s_ufromfpf128.c (ufromfpf128):
10873         Likewise.
10874         * sysdeps/ieee754/float128/s_ufromfpxf128.c (ufromfpxf128):
10875         Likewise.
10876
10877         * sysdeps/powerpc/powerpc64le/Makefile ($(foreach
10878         suf,$(all-object-suffixes),$(objpfx)test-float64x%$(suf))): Add
10879         -mfloat128 to CFLAGS.
10880         ($(foreach
10881         suf,$(all-object-suffixes),$(objpfx)test-ifloat64x%$(suf))):
10882         Likewise.
10883         (CFLAGS-libm-test-support-float64x.c): New variable.
10884         ($(objpfx)test-float64x% $(objpfx)test-ifloat64x%): Add
10885         $(f128-loader-link) to gnulib-tests.
10886
10887         * sysdeps/generic/libm-alias-float128.h: Include <bits/floatn.h>.
10888         (libm_alias_float128_other_r): If
10889         [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE], define f64x
10890         alias.
10891         (libm_alias_float128_r): Add semicolon after weak_alias call.
10892         * sysdeps/generic/libm-alias-ldouble.h
10893         (libm_alias_ldouble_other_r_f128): New macro.
10894         (libm_alias_ldouble_other_r_f64x): Likewise.
10895         (libm_alias_ldouble_other_r): Use libm_alias_ldouble_other_r_f128
10896         and libm_alias_ldouble_other_r_f64x.
10897         (libm_alias_ldouble_r): Add semicolon after weak_alias call.
10898         * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h
10899         (libm_alias_ldouble_other_r_f128): New macro.
10900         (libm_alias_ldouble_other_r_f64x): Likewise.
10901         (libm_alias_ldouble_other_r): Use libm_alias_ldouble_other_r_f128
10902         and libm_alias_ldouble_other_r_f64x.
10903
10904         * stdlib/strfroml.c: Always include <stdlib.h>.
10905         [__HAVE_FLOAT64X_LONG_DOUBLE] (strfromf64x): Define and later
10906         undefine as macro and define as weak alias.
10907         * sysdeps/ieee754/float128/strfromf128.c: Include <bits/floatn.h>.
10908         [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE]: Include
10909         <stdlib.h>.
10910         [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strfromf64x):
10911         Define and later undefine as macro and define as weak alias.
10912
10913         * stdlib/strtold.c [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x):
10914         Define and later undefine as macro.  Define as weak alias if
10915         [!USE_WIDE_CHAR].
10916         [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x): Define and later
10917         undefine as macro.  Define as weak alias if [USE_WIDE_CHAR].
10918         * sysdeps/ieee754/float128/strtof128.c: Include <bits/floatn.h>.
10919         [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x):
10920         Define and later undefine as macro.  Define as weak alias if
10921         [!USE_WIDE_CHAR].
10922         [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x):
10923         Define and later undefine as macro.  Define as weak alias if
10924         [USE_WIDE_CHAR].
10925         * sysdeps/ieee754/float128/strtof128_l.c
10926         [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l):
10927         Define and later undefine as macro.  Define as weak alias if
10928         [!USE_WIDE_CHAR].
10929         [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l):
10930         Define and later undefine as macro.  Define as weak alias if
10931         [USE_WIDE_CHAR].
10932         * sysdeps/ieee754/ldbl-128/strtold_l.c
10933         [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
10934         undefine as macro.  Define as weak alias if [!USE_WIDE_CHAR].
10935         [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
10936         undefine as macro.  Define as weak alias if [USE_WIDE_CHAR].
10937         * sysdeps/ieee754/ldbl-64-128/strtold_l.c
10938         [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
10939         undefine as macro.  Define as weak alias if [!USE_WIDE_CHAR].
10940         [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
10941         undefine as macro.  Define as weak alias if [USE_WIDE_CHAR].
10942         * sysdeps/ieee754/ldbl-96/strtold_l.c
10943         [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
10944         undefine as macro.  Define as weak alias if [!USE_WIDE_CHAR].
10945         [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
10946         undefine as macro.  Define as weak alias if [USE_WIDE_CHAR].
10947
10948         * math/test-float64x.h: New file.
10949         * math/Makefile (type-float64x-yes): New variable.
10950         (test-types): Add $(type-float64x-$(float64x-alias-fcts)).
10951
10952         * sysdeps/generic/math_private.h (min_of_type_f): Make into a
10953         function-like macro.
10954         (min_of_type_): Likewise.
10955         (min_of_type_l): Likewise.
10956         (min_of_type_f128): Likewise.
10957         (min_of_type): Pass () as last argument of __MATH_TG.
10958
10959         * stdlib/tst-strtod-round-skeleton.c
10960         (__STDC_WANT_IEC_60559_TYPES_EXT__): Define before including
10961         headers.
10962
10963         * math/gen-tgmath-tests.py (Type.init_types): Pass suffix argument
10964         for combinations of long double with _Float64 and _Float64x.
10965
10966         * bits/libm-simd-decl-stubs.h (__DECL_SIMD_cosf16): New macro.
10967         (__DECL_SIMD_cosf32): Likewise.
10968         (__DECL_SIMD_cosf64): Likewise.
10969         (__DECL_SIMD_cosf32x): Likewise.
10970         (__DECL_SIMD_cosf64x): Likewise.
10971         (__DECL_SIMD_cosf128x): Likewise.
10972         (__DECL_SIMD_sinf16): Likewise.
10973         (__DECL_SIMD_sinf32): Likewise.
10974         (__DECL_SIMD_sinf64): Likewise.
10975         (__DECL_SIMD_sinf32x): Likewise.
10976         (__DECL_SIMD_sinf64x): Likewise.
10977         (__DECL_SIMD_sinf128x): Likewise.
10978         (__DECL_SIMD_sincosf16): Likewise.
10979         (__DECL_SIMD_sincosf32): Likewise.
10980         (__DECL_SIMD_sincosf64): Likewise.
10981         (__DECL_SIMD_sincosf32x): Likewise.
10982         (__DECL_SIMD_sincosf64x): Likewise.
10983         (__DECL_SIMD_sincosf128x): Likewise.
10984         (__DECL_SIMD_logf16): Likewise.
10985         (__DECL_SIMD_logf32): Likewise.
10986         (__DECL_SIMD_logf64): Likewise.
10987         (__DECL_SIMD_logf32x): Likewise.
10988         (__DECL_SIMD_logf64x): Likewise.
10989         (__DECL_SIMD_logf128x): Likewise.
10990         (__DECL_SIMD_expf16): Likewise.
10991         (__DECL_SIMD_expf32): Likewise.
10992         (__DECL_SIMD_expf64): Likewise.
10993         (__DECL_SIMD_expf32x): Likewise.
10994         (__DECL_SIMD_expf64x): Likewise.
10995         (__DECL_SIMD_expf128x): Likewise.
10996         (__DECL_SIMD_powf16): Likewise.
10997         (__DECL_SIMD_powf32): Likewise.
10998         (__DECL_SIMD_powf64): Likewise.
10999         (__DECL_SIMD_powf32x): Likewise.
11000         (__DECL_SIMD_powf64x): Likewise.
11001         (__DECL_SIMD_powf128x): Likewise.
11002
11003         * stdlib/Versions (libc): Move entries for wcstof128 and
11004         wcstof128_l to ....
11005         * wcsmbs/Versions (libc): ... here.
11006         Include <float128-abi.h>.
11007
11008 2017-11-24  Florian Weimer  <fweimer@redhat.com>
11009
11010         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
11011         bits/mman-shared.h.
11012         * sysdeps/unix/sysv/linux/bits/mman-linux.h: Include
11013         <bits/mman-shared.h>.
11014         (MFD_CLOEXEC, MFD_ALLOW_SEALING, MFD_HUGETLB, memfd_create): Move
11015         to ...
11016         * sysdeps/unix/sysv/linux/bits/mman-shared.h: ... this new file.
11017         Add #ifndef guard for the MFD_* constants based on MFD_CLOEXEC.
11018         * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Include
11019         <bits/mman-shared.h>.
11020
11021 2017-11-24  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
11022
11023         [BZ #22457]
11024         * sysdeps/posix/preadv_common.c (PREADV): Use mmap/munmap instead of
11025         posix_memalign/free.
11026         * sysdeps/posix/pwritev_common.c (PWRITEV): Likewise.
11027
11028 2017-11-22  Mike FABIAN  <mfabian@redhat.com>
11029
11030         [BZ #22469]
11031         * localedata/locales/pl_PL (LC_COLLATE): Use “copy "iso14651_t1"”
11032         and implement the collation rules for pl from CLDR on top of that.
11033         * Makefile: Add pl_PL.UTF-8 to test-input and to the list
11034         of locales to be built for testing.
11035         * pl_PL.UTF-8.in: New file with test data to test the Polish sorting.
11036
11037 2017-11-23  Joseph Myers  <joseph@codesourcery.com>
11038
11039         * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-ldouble.h>.
11040         * sysdeps/ia64/fpu/e_acoshl.S (acoshl): Use
11041         libm_alias_ldouble_other.
11042         * sysdeps/ia64/fpu/e_acosl.S (acosl): Likewise.
11043         * sysdeps/ia64/fpu/e_asinl.S (asinl): Likewise.
11044         * sysdeps/ia64/fpu/e_atanhl.S (atanhl): Likewise.
11045         * sysdeps/ia64/fpu/e_coshl.S (coshl): Likewise.
11046         * sysdeps/ia64/fpu/e_exp10l.S (exp10l): Likewise.
11047         * sysdeps/ia64/fpu/e_exp2l.S (exp2l): Likewise.
11048         * sysdeps/ia64/fpu/e_fmodl.S (fmodl): Likewise.
11049         * sysdeps/ia64/fpu/e_hypotl.S (hypotl): Likewise.
11050         * sysdeps/ia64/fpu/e_lgammal_r.c (lgammal_r): Define using
11051         libm_alias_ldouble_r.
11052         * sysdeps/ia64/fpu/e_log2l.S (log2l): Use
11053         libm_alias_ldouble_other.
11054         * sysdeps/ia64/fpu/e_logl.S (logl): Likewise.
11055         (log10l): Likewise.
11056         * sysdeps/ia64/fpu/e_powl.S (powl): Likewise.
11057         * sysdeps/ia64/fpu/e_remainderl.S (remainderl): Likewise.
11058         * sysdeps/ia64/fpu/e_sinhl.S (sinhl): Likewise.
11059         * sysdeps/ia64/fpu/e_sqrtl.S (sqrtl): Likewise.
11060         * sysdeps/ia64/fpu/libm_sincosl.S (sincosl): Likewise.
11061         * sysdeps/ia64/fpu/s_asinhl.S (asinhl): Likewise.
11062         * sysdeps/ia64/fpu/s_atanl.S (atanl): Likewise.
11063         (atan2l): Likewise.
11064         * sysdeps/ia64/fpu/s_cbrtl.S (cbrtl): Likewise.
11065         * sysdeps/ia64/fpu/s_ceill.S (ceill): Likewise.
11066         * sysdeps/ia64/fpu/s_copysign.S (copysignl): Define using
11067         libm_alias_ldouble.
11068         * sysdeps/ia64/fpu/s_cosl.S (sinl): Use libm_alias_ldouble_other.
11069         (cosl): Likewise.
11070         * sysdeps/ia64/fpu/s_erfcl.S (erfcl): Likewise.
11071         * sysdeps/ia64/fpu/s_erfl.S (erfl): Likewise.
11072         * sysdeps/ia64/fpu/s_expm1l.S (expm1l): Likewise.
11073         (expl): Likewise.
11074         * sysdeps/ia64/fpu/s_fabsl.S (fabsl): Likewise.
11075         * sysdeps/ia64/fpu/s_fdiml.S (fdiml): Likewise.
11076         * sysdeps/ia64/fpu/s_floorl.S (floorl): Likewise.
11077         * sysdeps/ia64/fpu/s_fmal.S (fmal): Likewise.
11078         * sysdeps/ia64/fpu/s_fmaxl.S (fmaxl): Likewise.
11079         * sysdeps/ia64/fpu/s_frexpl.c (frexpl): Likewise.
11080         * sysdeps/ia64/fpu/s_ldexpl.c (ldexpl): Likewise.
11081         * sysdeps/ia64/fpu/s_log1pl.S (log1pl): Likewise.
11082         * sysdeps/ia64/fpu/s_logbl.S (logbl): Likewise.
11083         * sysdeps/ia64/fpu/s_modfl.S (modfl): Likewise.
11084         * sysdeps/ia64/fpu/s_nearbyintl.S (nearbyintl): Define using
11085         libm_alias_ldouble.
11086         * sysdeps/ia64/fpu/s_nextafterl.S (nextafterl): Use
11087         libm_alias_ldouble_other.
11088         * sysdeps/ia64/fpu/s_rintl.S (rintl): Likewise.
11089         * sysdeps/ia64/fpu/s_roundl.S (roundl): Likewise.
11090         * sysdeps/ia64/fpu/s_scalbnl.c (scalbnl): Define using
11091         libm_alias_ldouble.
11092         * sysdeps/ia64/fpu/s_tanhl.S (tanhl): Use
11093         libm_alias_ldouble_other.
11094         * sysdeps/ia64/fpu/s_tanl.S (tanl): Likewise.
11095         * sysdeps/ia64/fpu/s_truncl.S (truncl): Likewise.
11096         * sysdeps/ia64/fpu/w_lgammal_main.c
11097         [BUILD_LGAMMA && !USE_AS_COMPAT] (lgammal): Likewise.
11098         * sysdeps/ia64/fpu/w_tgammal_compat.S (tgammal): Likewise.
11099
11100 2017-11-23  Florian Weimer  <fweimer@redhat.com>
11101
11102         * malloc/malloc.c (tcache_thread_shutdown): Rename from
11103         tcache_thread_freeres.  Define for USE_TCACHE and !USE_TCACHE
11104         alike.  Remove freeres marker.
11105         * malloc/arena.c (arena_thread_freeres): Call
11106         tcache_thread_shutdown.
11107
11108 2017-11-23  Florian Weimer  <fweimer@redhat.com>
11109
11110         [BZ #22459]
11111         Export nscd hash function as __nss_hash.
11112         * include/nss.h (__nss_hash): Declare.
11113         * nis/nis_hash.c (__nis_hash): Call __nss_hash.  Turn into compat
11114         symbol.
11115         * nscd/Makefile (aux, nscd-modules): Remove nscd_hash.
11116         * nscd/cache.c (cache_search, cache_add): Call __nss_hash instead
11117         of __nscd_hash.
11118         * nscd/nscd_helper.c (__nscd_cache_search): Likewise.
11119         * nscd/nscd_hash.h, nscd/nscd_hash.c: Remove files.
11120         * nss/Makefiles (routines): Add nss_hash.
11121         * nss/Versions (GLIBC_PRIVATE): Export __nss_hash.
11122         * nss/nss_hash.c: Rename from nis/nis_hash.c.
11123         (__nss_hash): Rename from __nis_hash.  Define hidden alias.
11124         * nis/rpcsvc/nislib.h (__nis_hash): Remove declaration.
11125
11126 2017-11-23  Florian Weimer  <fweimer@redhat.com>
11127
11128         [BZ #22478]
11129         * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Retry on EINTR.
11130         Return error code, not -1.
11131         * signal/tst-sigwait-eintr.c: New file.
11132         * signal/Makefile (tests): Add tst-sigwait-eintr.
11133
11134 2017-11-23  Florian Weimer  <fweimer@redhat.com>
11135
11136         Linux: Add memfd_create system call wrapper
11137         * sysdeps/unix/sysv/linux/Makefile [misc] (tests): Add
11138         tst-memfd_create.
11139         * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_GNU]
11140         (MFD_CLOEXEC, MFD_ALLOW_SEALING): Define.
11141         [__USE_GNU] (memfd_create): Declare.
11142         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Add memfd_create.
11143         * sysdeps/unix/sysv/linux/syscalls.list (memfd_create): Add.
11144         * sysdeps/unix/sysv/linux/tst-memfd_create.c: New file.
11145         * sysdeps/unix/sysv/linux/**.abilist: Update.
11146         * manual/llio.texi (Memory-mapped I/O): Document memfd_create.
11147
11148 2017-11-22  Joseph Myers  <joseph@codesourcery.com>
11149
11150         * localedata/gen-locale.sh: Fix typo in variable name.
11151
11152         * resolv/res_debug.c (p_secstodate): Condition definition on
11153         [SHLIB_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)].  Define
11154         directly as __p_secstodate, and as a compat symbol.  Do not use
11155         libresolv_hidden_def.
11156         * resolv/resolv.h (p_secstodate): Remove macro and function
11157         declaration.
11158         * resolv/ns_print.c (ns_sprintrrf): Print times with %lu, not
11159         using p_secstodate.
11160         * include/resolv.h (__p_secstodate): Do not use
11161         libresolv_hidden_proto.
11162         * resolv/Makefile (tests): Move tst-p_secstodate to ....
11163         (tests-internal): ... here.
11164         * resolv/tst-p_secstodate.c: Include <shlib-compat.h>.  Condition
11165         all contents on [TEST_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)]
11166         and declare and use __p_secstodate and use compat_symbol_reference
11167         in that case.
11168         [!TEST_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)] (do_test): Add
11169         implementation returning 77.
11170
11171         [BZ #22463]
11172         * resolv/res_debug.c: Include <libc-diag.h>.
11173         (p_secstodate): Assert time_t at least as wide as u_long.  On
11174         overflow, use integer seconds since the epoch as output, or use
11175         "<overflow>" as output and set errno to EOVERFLOW if integer
11176         seconds since the epoch would be 14 or more characters.
11177         (p_secstodate) [__GNUC_PREREQ (7, 0)]: Disable -Wformat-overflow=
11178         for sprintf call.
11179         * resolv/tst-p_secstodate.c: New file.
11180         * resolv/Makefile (tests): Add tst-p_secstodate.
11181         ($(objpfx)tst-p_secstodate): Depend on $(objpfx)libresolv.so.
11182
11183         * sysdeps/sparc/sparc64/soft-fp/s_frexpl.c: Remove file.
11184         * sysdeps/sparc/sparc64/soft-fp/s_scalblnl.c: Likewise.
11185         * sysdeps/sparc/sparc64/soft-fp/s_scalbnl.c: Likewise.
11186
11187 2017-11-22  Paul Eggert  <eggert@cs.ucla.edu>
11188
11189         * posix/regcomp.c (init_word_char): Add comments.
11190
11191 2017-11-22  Joseph Myers  <joseph@codesourcery.com>
11192
11193         [BZ #22447]
11194         * sysdeps/unix/getlogin_r.c (__getlogin_r): Use __strnlen not
11195         strlen to compute length of ut_user and set trailing NUL byte of
11196         result explicitly.
11197
11198 2017-11-21  Mike FABIAN  <mfabian@redhat.com>
11199
11200         [BZ #15537]
11201         * localedata/locales/lv_LV (LC_COLLATE): Fix collation by
11202         using “copy "iso14651_t1"” and then implementing the
11203         collation rules for lv from CLDR on top of that.
11204         * Makefile: Add lv_LV.UTF-8 to test-input and to the list
11205         of locales to be built for testing.
11206         * lv_LV.UTF-8.in: New file with test data to test the Latvian
11207         sorting.
11208
11209 2017-11-21  Joseph Myers  <joseph@codesourcery.com>
11210
11211         * sysdeps/unix/sysv/linux/hppa/bits/mman.h
11212         [__USE_MISC] (MADV_SPACEAVAIL): Remove macro.
11213         [__USE_MISC] (MADV_VPS_PURGE): Likewise.
11214         [__USE_MISC] (MADV_VPS_INHERIT): Likewise.
11215         [__USE_MISC] (MADV_HWPOISON): New macro.
11216         [__USE_MISC] (MADV_SOFT_OFFLINE): Likewise.
11217
11218 2017-11-21  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
11219
11220         * nptl/pthreadP.h (ASSERT_PTHREAD_INTERNAL_SIZE): Add workarond for
11221         -Wmissing-braces on GCC 4.9.
11222
11223 2017-11-21  Stefan Liebler  <stli@linux.vnet.ibm.com>
11224
11225         * sysdeps/s390/s390-64/start.S (_start): Add cfi information for r14.
11226         * sysdeps/s390/s390-32/start.S (_start): Likewise
11227         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S
11228         (thread_start): Likewise.
11229         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S
11230         (thread_start): Likewise.
11231         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S
11232         (__makecontext_ret): Likewise.
11233         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S
11234         (__makecontext_ret): Likewise.
11235
11236 2017-11-21  Stefan Liebler  <stli@linux.vnet.ibm.com>
11237
11238         * include/wchar.h (__wcsnlen, __wcscat, __wcsncpy, __wcpncpy,
11239         __wcschrnul): Remove attribute_hidden.
11240
11241 2017-11-20  Paul Eggert  <eggert@cs.ucla.edu>
11242
11243         regex: don't assume uint64_t or uint32_t
11244         This avoids -Werror=overflow errors for 32-bit systems in
11245         the 64-bit case.  Problem reported by Joseph Myers in:
11246         https://sourceware.org/ml/libc-alpha/2017-11/msg00694.html
11247         Also, when this code is used in Gnulib it ports to platforms
11248         that lack uint64_t and uint32_t.  The C standard doesn't guarantee
11249         them, and on some 32-bit compilers there is no uint64_t.
11250         Problem reported by Gianluigi Tiesi in:
11251         http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00154.html
11252         * posix/regcomp.c (init_word_char): Don't assume that the types
11253         uint64_t and uint32_t exist.  Adapted from Gnulib patch
11254         2012-05-27T06:40:00!eggert@cs.ucla.edu.  See:
11255         https://git.savannah.gnu.org/cgit/gnulib.git/commit/?id=252b52457da7887667c036d18cc5169777615bb0
11256
11257 2017-11-20  Siddhesh Poyarekar  <siddhesh@sourceware.org>
11258
11259         * sysdeps/aarch64/memset-reg.h: New file.
11260         * sysdeps/aarch64/memset.S: Use it.
11261         (__memset): Rename to MEMSET macro.
11262         [ZVA_MACRO]: Use zva_macro.
11263         * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
11264         Add memset_generic and memset_falkor.
11265         * sysdeps/aarch64/multiarch/ifunc-impl-list.c
11266         (__libc_ifunc_impl_list): Add memset ifuncs.
11267         * sysdeps/aarch64/multiarch/init-arch.h (INIT_ARCH): New
11268         local variable zva_size.
11269         * sysdeps/aarch64/multiarch/memset.c: New file.
11270         * sysdeps/aarch64/multiarch/memset_generic.S: New file.
11271         * sysdeps/aarch64/multiarch/memset_falkor.S: New file.
11272         * sysdeps/aarch64/multiarch/rtld-memset.S: New file.
11273         * sysdeps/unix/sysv/linux/aarch64/cpu-features.c
11274         (DCZID_DZP_MASK): New macro.
11275         (DCZID_BS_MASK): Likewise.
11276         (init_cpu_features): Read and set zva_size.
11277         * sysdeps/unix/sysv/linux/aarch64/cpu-features.h
11278         (struct cpu_features): New member zva_size.
11279
11280         * benchtests/bench-memcpy-walk.c (START_SIZE): Set to 128.
11281         * benchtests/bench-memmove-walk.c (START_SIZE): Likewise.
11282         * benchtests/bench-memset-walk.c (START_SIZE): Likewise.
11283
11284         * benchtests/bench-memcpy-walk.c (do_one_test): Copy only
11285         backwards.  Fix timing computation.
11286         * benchtests/bench-memmove-walk.c (do_one_test): Likewise.
11287         * benchtests/bench-memset-walk.c (do_one_test): Walk backwards
11288         on memset by N at a time.  Fix timing computation.
11289
11290 2017-11-20  Florian Weimer  <fweimer@redhat.com>
11291
11292         * manual/llio.texi (Memory-mapped I/O): Document MAP_HUGETLB,
11293         MADV_HUGEPAGE, MADV_NOHUGEPAGE.
11294
11295 2017-11-19  Florian Weimer  <fweimer@redhat.com>
11296
11297         manual: Document mprotect
11298         * manual/memory.texi (Memory Protection): New section.
11299         * manual/llio.texi (Memory-mapped I/O): Remove duplicate
11300         documentation of PROT_* flags and reference the Memory Protection
11301         section instead.
11302
11303 2017-11-19  Florian Weimer  <fweimer@redhat.com>
11304
11305         * manual/llio.texi (I/O Primitives): Move preadv, preadv64,
11306         pwritev, pwritev64, preadv2, preadv64v2, pwritev2, pwritev64v2 ...
11307         (Scatter-Gather): ... to here.  Remove misleading comment.
11308
11309 2017-11-18  Christian Brauner  <christian.brauner@ubuntu.com>
11310
11311         * support/support_become_root.c (setup_uid_gid_mapping): Fix comment
11312         style.
11313
11314         * support/support_become_root.c (setup_uid_gid_mapping): Don't fail
11315         when /proc/<pid>/setgroups does not exist.
11316
11317 2017-11-18  Florian Weimer  <fweimer@redhat.com>
11318
11319         * sysdeps/unix/sysv/linux/tst-ttyname.c
11320         (become_root_in_mount_ns): Remove.
11321         (do_in_chroot_1): Call support_enter_mount_namespace.
11322         (do_in_chroot_2): Likewise.
11323         (do_test): Call support_become_root early.
11324
11325 2017-11-18  Florian Weimer  <fweimer@redhat.com>
11326
11327         * support/namespace.h (support_enter_mount_namespace): Declare.
11328         * support/support_enter_mount_namespace.c: New file.
11329         * support/Makefile (libsupport-routines): Add
11330         support_enter_mount_namespace.
11331
11332 2017-11-18  Florian Weimer  <fweimer@redhat.com>
11333
11334         * support/temp_file.c (support_create_temp_directory): Use
11335         test_dir and do not rely on the presence of the XXXXXX suffix.
11336         * support/temp_file.h (support_create_temp_directory): Update
11337         comment.
11338         * support/tst-xreadlink.c (do_test): Adjust.
11339         * support/support_chroot.c (support_chroot_create): Likewise.
11340
11341 2017-11-17  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
11342
11343         * sysdeps/powerpc/bits/hwcap.h (PPC_FEATURE2_HTM_NO_SUSPEND): New
11344         macro.
11345         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add
11346         htm-no-suspend.
11347
11348 2017-11-17  Joseph Myers  <joseph@codesourcery.com>
11349
11350         * sysdeps/x86_64/fpu/e_expl.S: Include <libm-alias-ldouble.h>.
11351         [USE_AS_EXPM1L] (expm1l): Define using libm_alias_ldouble.
11352         * sysdeps/x86_64/fpu/s_ceill.S: Include <libm-alias-ldouble.h>.
11353         (ceill): Define using libm_alias_ldouble.
11354         * sysdeps/x86_64/fpu/s_copysignl.S: Include
11355         <libm-alias-ldouble.h>.
11356         (copysignl): Define using libm_alias_ldouble.
11357         * sysdeps/x86_64/fpu/s_fabsl.S: Include <libm-alias-ldouble.h>.
11358         (fabsl): Define using libm_alias_ldouble.
11359         * sysdeps/x86_64/fpu/s_floorl.S: Include <libm-alias-ldouble.h>.
11360         (floorl): Define using libm_alias_ldouble.
11361         * sysdeps/x86_64/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
11362         (fmaxl): Define using libm_alias_ldouble.
11363         * sysdeps/x86_64/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
11364         (fminl): Define using libm_alias_ldouble.
11365         * sysdeps/x86_64/fpu/s_llrintl.S: Include <libm-alias-ldouble.h>.
11366         (llrintl): Define using libm_alias_ldouble.
11367         (lrintl): Likewise.
11368         * sysdeps/x86_64/fpu/s_nearbyintl.S: Include
11369         <libm-alias-ldouble.h>.
11370         (nearbyintl): Define using libm_alias_ldouble.
11371         * sysdeps/x86_64/fpu/s_truncl.S: Include <libm-alias-ldouble.h>.
11372         (truncl): Define using libm_alias_ldouble.
11373         * sysdeps/x86_64/x32/fpu/s_lrintl.S: Include
11374         <libm-alias-ldouble.h>.
11375         (lrintl): Define using libm_alias_ldouble.
11376
11377         * sysdeps/i386/fpu/e_expl.S: Include <libm-alias-ldouble.h>.
11378         [USE_AS_EXPM1L] (expm1l): Define using libm_alias_ldouble.
11379         * sysdeps/i386/fpu/s_asinhl.S: Include <libm-alias-ldouble.h>.
11380         (asinhl): Define using libm_alias_ldouble.
11381         * sysdeps/i386/fpu/s_atanl.c: Include <libm-alias-ldouble.h>.
11382         (atanl): Define using libm_alias_ldouble.
11383         * sysdeps/i386/fpu/s_cbrtl.S: Include <libm-alias-ldouble.h>.
11384         (cbrtl): Define using libm_alias_ldouble.
11385         * sysdeps/i386/fpu/s_ceill.S: Include <libm-alias-ldouble.h>.
11386         (ceill): Define using libm_alias_ldouble.
11387         * sysdeps/i386/fpu/s_copysignl.S: Include <libm-alias-ldouble.h>.
11388         (copysignl): Define using libm_alias_ldouble.
11389         * sysdeps/i386/fpu/s_fabsl.S: Include <libm-alias-ldouble.h>.
11390         (fabsl): Define using libm_alias_ldouble.
11391         * sysdeps/i386/fpu/s_floorl.S: Include <libm-alias-ldouble.h>.
11392         (floorl): Define using libm_alias_ldouble.
11393         * sysdeps/i386/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
11394         (fmaxl): Define using libm_alias_ldouble.
11395         * sysdeps/i386/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
11396         (fminl): Define using libm_alias_ldouble.
11397         * sysdeps/i386/fpu/s_frexpl.S: Include <libm-alias-ldouble.h>.
11398         (frexpl): Define using libm_alias_ldouble.
11399         * sysdeps/i386/fpu/s_llrintl.S: Include <libm-alias-ldouble.h>.
11400         (llrintl): Define using libm_alias_ldouble.
11401         * sysdeps/i386/fpu/s_logbl.c: Include <libm-alias-ldouble.h>.
11402         (logbl): Define using libm_alias_ldouble.
11403         * sysdeps/i386/fpu/s_lrintl.S: Include <libm-alias-ldouble.h>.
11404         (lrintl): Define using libm_alias_ldouble.
11405         * sysdeps/i386/fpu/s_nearbyintl.S: Include <libm-alias-ldouble.h>.
11406         (nearbyintl): Define using libm_alias_ldouble.
11407         * sysdeps/i386/fpu/s_nextafterl.c: Include <libm-alias-ldouble.h>.
11408         (nextafterl): Define using libm_alias_ldouble.
11409         * sysdeps/i386/fpu/s_remquol.S: Include <libm-alias-ldouble.h>.
11410         (remquol): Define using libm_alias_ldouble.
11411         * sysdeps/i386/fpu/s_rintl.c: Include <libm-alias-ldouble.h>.
11412         (rintl): Define using libm_alias_ldouble.
11413         * sysdeps/i386/fpu/s_truncl.S: Include <libm-alias-ldouble.h>.
11414         (truncl): Define using libm_alias_ldouble.
11415         * sysdeps/i386/i686/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
11416         (fmaxl): Define using libm_alias_ldouble.
11417         * sysdeps/i386/i686/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
11418         (fminl): Define using libm_alias_ldouble.
11419
11420         * bits/floatn-common.h [!__ASSEMBLER]: Disable everything related
11421         to C syntax instead of availability and properties of types.
11422         * bits/floatn.h [!__ASSEMBLER]: Likewise.
11423         * sysdeps/ia64/bits/floatn.h [!__ASSEMBLER]: Likewise.
11424         * sysdeps/ieee754/ldbl-128/bits/floatn.h [!__ASSEMBLER]: Likewise.
11425         * sysdeps/mips/ieee754/bits/floatn.h [!__ASSEMBLER]: Likewise.
11426         * sysdeps/powerpc/bits/floatn.h [!__ASSEMBLER]: Likewise.
11427         * sysdeps/x86/bits/floatn.h [!__ASSEMBLER]: Likewise.
11428
11429 2017-11-17  Florian Weimer  <fweimer@redhat.com>
11430
11431         support_become_root: Enable file creation in namespaces.
11432         * support/support_become_root.c (setup_mapping): New function.
11433         (support_become_root): Call it.
11434
11435 2017-11-17  Joseph Myers  <joseph@codesourcery.com>
11436
11437         * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_DCPOP): New
11438         macro.
11439
11440 2017-11-16  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
11441
11442         * sysdeps/aarch64/fpu/Makefile (CFLAGS-s_fmax.c, CFLAGS-s_fmaxf.c,
11443         CFLAGS-s_fmin.c, CFLAGS-s_fminf.c): New rule: add -ffinite-math-only.
11444
11445 2017-11-16  Joseph Myers  <joseph@codesourcery.com>
11446
11447         * sysdeps/unix/sysv/linux/net/if_arp.h (ARPHRD_RAWIP): New macro.
11448
11449         * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
11450         version to 4.14.
11451
11452 2017-11-16  Siddhesh Poyarekar  <siddhesh@sourceware.org>
11453
11454         * INSTALL: Fix botched up regeneration.
11455
11456         * NEWS: Update sourceare link to https.
11457         * configure.ac: Likewise.
11458         * crypt/md5test-giant.c: Likewise.
11459         * dlfcn/bug-atexit1.c: Likewise.
11460         * dlfcn/bug-atexit2.c: Likewise.
11461         * localedata/README: Likewise.
11462         * malloc/tst-mallocfork.c: Likewise.
11463         * manual/install.texi: Likewise.
11464         * nptl/tst-pthread-getattr.c: Likewise.
11465         * stdio-common/tst-fgets.c: Likewise.
11466         * stdio-common/tst-fwrite.c: Likewise.
11467         * sunrpc/Makefile: Likewise.
11468         * sysdeps/arm/armv7/multiarch/memcpy_impl.S: Likewise.
11469         * wcsmbs/tst-mbrtowc2.c: Likewise.
11470         * configure: Regenerate.
11471         * INSTALL: Regenerate.
11472
11473 2017-11-15  Martin Sebor  <msebor@redhat.com>
11474
11475         * misc/sys/cdefs.h (__attribute_nonstring__): New macro.
11476         * sysdeps/gnu/bits/utmp.h (struct utmp): Use it.
11477         * sysdeps/unix/sysv/linux/s390/bits/utmp.h (struct utmp): Same.
11478
11479 2017-11-15  Luke Shumaker  <lukeshu@parabola.nu>
11480
11481         [BZ #22145]
11482         * sysdeps/unix/sysv/linux/tst-ttyname.c: New file.
11483         * sysdeps/unix/sysv/linux/Makefile: Add tst-ttyname to tests.
11484
11485         [BZ #22145]
11486         * sysdeps/unix/sysv/linux/ttyname.c (ttyname):
11487         Defer is_pty check until end of the function.
11488         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
11489
11490         [BZ #22145]
11491         * sysdeps/unix/sysv/linux/ttyname.h (is_mytty): New function.
11492         * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Call is_mytty.
11493         (ttyname): Likewise.
11494         * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
11495         (__ttyname_r): Likewise.
11496
11497         * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Change return type from
11498         int to bool.
11499
11500         * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Update doc reference.
11501
11502         * manual/terminal.texi (Is It a Terminal):
11503         Mention ENODEV for ttyname and ttyname_r.
11504
11505 2017-11-15  Joseph Myers  <joseph@codesourcery.com>
11506
11507         * sysdeps/unix/sysv/linux/bits/socket.h (MSG_ZEROCOPY): New enum
11508         constant and macro.
11509
11510         * sysdeps/unix/sysv/linux/bits/mman-linux.h
11511         [__USE_MISC] (MADV_WIPEONFORK): New macro.
11512         [__USE_MISC] (MADV_KEEPONFORK): Likewise.
11513         * sysdeps/unix/sysv/linux/hppa/bits/mman.h
11514         [__USE_MISC] (MADV_WIPEONFORK): Likewise.
11515         [__USE_MISC] (MADV_KEEPONFORK): Likewise.
11516
11517 2017-11-15  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
11518
11519         * signal/sigrelse.c (sigrelse): Optimize implementation.
11520
11521         * sysdeps/posix/sigpause.c (do_sigpause): Remove.
11522         (__sigpause): Rely on __sigsuspend to implement single thread
11523         optimization.  Add LIBC_CANCEL_HANDLED for cancellation marking.
11524
11525 2017-11-15  Joseph Myers  <joseph@codesourcery.com>
11526
11527         * scripts/build-many-glibcs.py (Context.checkout): Default Linux
11528         kernel version to 4.14.
11529
11530 2017-11-15  Steve Ellcey  <sellcey@cavium.com>
11531
11532         [BZ #22442]
11533         * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex):
11534         Check if ifname is too long.
11535
11536 2017-11-15  Luke Shumaker  <lukeshu@parabola.nu>
11537
11538         * sysdeps/unix/sysv/linux/epoll_wait.c: Include <sysdep-cancel.h>.
11539
11540 2017-11-15  Mike FABIAN  <mfabian@redhat.com>
11541
11542         * localedata/locales/ka_GE (LC_MESSAGES): Add “X” back to yesexpr,
11543         was accidentally lost.
11544
11545 2017-11-15  Mike FABIAN  <mfabian@redhat.com>
11546
11547         * localedata/locales/az_IR: Add standard copyright header.
11548
11549 2017-11-15  Florian Weimer  <fweimer@redhat.com>
11550
11551         [BZ #22439]
11552         * malloc/malloc.c (__malloc_info): Count all heaps in an arena,
11553         not just the top one.  Output a new "subheaps" statistic.
11554
11555 2017-11-15  Florian Weimer  <fweimer@redhat.com>
11556
11557         [BZ #22408]
11558         * malloc/malloc.c (__malloc_info): Obtain arena heap statistics
11559         under the per-arena lock.
11560         * malloc/Makefile (tests): Add tst-malloc_info.
11561         (tst-malloc_info): Link with libpthread.
11562         * malloc/tst-malloc_info.c: New file.
11563
11564 2017-11-15  Joseph Myers  <joseph@codesourcery.com>
11565
11566         [BZ #21660]
11567         * math/tgmath.h (__HAVE_BUILTIN_TGMATH): New macro.
11568         [__HAVE_BUILTIN_TGMATH] (__TG_F16_ARG): Likewise.
11569         [__HAVE_BUILTIN_TGMATH] (__TG_F32_ARG): Likewise.
11570         [__HAVE_BUILTIN_TGMATH] (__TG_F64_ARG): Likewise.
11571         [__HAVE_BUILTIN_TGMATH] (__TG_F128_ARG): Likewise.
11572         [__HAVE_BUILTIN_TGMATH] (__TG_F32X_ARG): Likewise.
11573         [__HAVE_BUILTIN_TGMATH] (__TG_F64X_ARG): Likewise.
11574         [__HAVE_BUILTIN_TGMATH] (__TG_F128X_ARG): Likewise.
11575         [__HAVE_BUILTIN_TGMATH] (__TGMATH_FUNCS): Likewise.
11576         [__HAVE_BUILTIN_TGMATH] (__TGMATH_RCFUNCS): Likewise.
11577         [__HAVE_BUILTIN_TGMATH] (__TGMATH_1): Likewise.
11578         [__HAVE_BUILTIN_TGMATH] (__TGMATH_2): Likewise.
11579         [__HAVE_BUILTIN_TGMATH] (__TGMATH_2STD): Likewise.
11580         [__HAVE_BUILTIN_TGMATH] (__TGMATH_3): Likewise.
11581         [__HAVE_BUILTIN_TGMATH] (__TGMATH_1C): Likewise.
11582         [__HAVE_BUILTIN_TGMATH] (__TGMATH_2C): Likewise.
11583         (__tgml): Make conditional on [!__HAVE_BUILTIN_TGMATH].
11584         (__floating_type): Likewise.
11585         (__real_integer_type): Likewise.
11586         (__complex_integer_type): Likewise.
11587         (__expr_is_real): Likewise.
11588         (__tgmath_real_type_sub): Likewise.
11589         (__tgmath_real_type): Likewise.
11590         (__tgmath_complex_type_sub): Likewise.
11591         (__tgmath_complex_type): Likewise.
11592         (__TGMATH_F128): Likewise.
11593         (__TGMATH_CF128): Likewise.
11594         [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_ONLY): Define using
11595         new macros.
11596         [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
11597         [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_FIRST_REAL_ONLY):
11598         Likewise.
11599         [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_FIRST_REAL_STD_ONLY):
11600         Likewise.
11601         [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_ONLY): Likewise.
11602         [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
11603         [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
11604         [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY):
11605         Likewise.
11606         [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_REAL_ONLY): Likewise.
11607         [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY):
11608         Likewise.
11609         [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_IMAG): Likewise.
11610         [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_IMAG): Likewise.
11611         [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_IMAG_RET_REAL):
11612         Likewise.
11613         [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_IMAG): Likewise.
11614         (__TGMATH_UNARY_REAL_IMAG_RET_REAL_SAME): New macro.
11615         (carg): Use __TGMATH_UNARY_REAL_IMAG_RET_REAL_SAME.
11616         (cimag): Likewise.
11617         (creal): Likewise.
11618
11619 2017-11-14  Joseph Myers  <joseph@codesourcery.com>
11620
11621         * string/tester.c (test_stpncpy): Disable -Wstringop-truncation
11622         for stpncpy calls for GCC 8.
11623         (test_strncat): Disable -Wstringop-truncation warning for strncat
11624         calls for GCC 8.  Disable -Wstringop-overflow= warning for one
11625         strncat call for GCC 7.
11626         (test_strncpy): Disable -Wstringop-truncation warning for strncpy
11627         calls for GCC 8.
11628         (test_memcmp): Use memcpy instead of strncpy for calls not copying
11629         trailing NUL.
11630
11631         * string/bug-strncat1.c: Include <libc-diag.h>.
11632         (main): Disable -Wstringop-truncation for strncat call for GCC 8.
11633
11634 2017-11-13  Claude Paroz  <claude@2xlibre.net>
11635
11636         [BZ #22387]
11637         * localedata/locales/aa_DJ: Improved readibility by replacing
11638         <Uxxxx> sequences in the ASCII printable range by their ASCII
11639         character equivalents.
11640         * localedata/locales/aa_ER: Likewise.
11641         * localedata/locales/aa_ER@saaho: Likewise.
11642         * localedata/locales/aa_ET: Likewise.
11643         * localedata/locales/af_ZA: Likewise.
11644         * localedata/locales/agr_PE: Likewise.
11645         * localedata/locales/ak_GH: Likewise.
11646         * localedata/locales/am_ET: Likewise.
11647         * localedata/locales/anp_IN: Likewise.
11648         * localedata/locales/ar_AE: Likewise.
11649         * localedata/locales/ar_BH: Likewise.
11650         * localedata/locales/ar_DZ: Likewise.
11651         * localedata/locales/ar_EG: Likewise.
11652         * localedata/locales/ar_IN: Likewise.
11653         * localedata/locales/ar_IQ: Likewise.
11654         * localedata/locales/ar_JO: Likewise.
11655         * localedata/locales/ar_KW: Likewise.
11656         * localedata/locales/ar_LB: Likewise.
11657         * localedata/locales/ar_LY: Likewise.
11658         * localedata/locales/ar_MA: Likewise.
11659         * localedata/locales/ar_OM: Likewise.
11660         * localedata/locales/ar_QA: Likewise.
11661         * localedata/locales/ar_SA: Likewise.
11662         * localedata/locales/ar_SD: Likewise.
11663         * localedata/locales/ar_SS: Likewise.
11664         * localedata/locales/ar_SY: Likewise.
11665         * localedata/locales/ar_TN: Likewise.
11666         * localedata/locales/ar_YE: Likewise.
11667         * localedata/locales/as_IN: Likewise.
11668         * localedata/locales/ast_ES: Likewise.
11669         * localedata/locales/ayc_PE: Likewise.
11670         * localedata/locales/az_AZ: Likewise.
11671         * localedata/locales/az_IR: Likewise.
11672         * localedata/locales/be_BY: Likewise.
11673         * localedata/locales/be_BY@latin: Likewise.
11674         * localedata/locales/bem_ZM: Likewise.
11675         * localedata/locales/ber_DZ: Likewise.
11676         * localedata/locales/ber_MA: Likewise.
11677         * localedata/locales/bg_BG: Likewise.
11678         * localedata/locales/bhb_IN: Likewise.
11679         * localedata/locales/bho_IN: Likewise.
11680         * localedata/locales/bi_VU: Likewise.
11681         * localedata/locales/bn_BD: Likewise.
11682         * localedata/locales/bn_IN: Likewise.
11683         * localedata/locales/bo_CN: Likewise.
11684         * localedata/locales/bo_IN: Likewise.
11685         * localedata/locales/br_FR: Likewise.
11686         * localedata/locales/brx_IN: Likewise.
11687         * localedata/locales/bs_BA: Likewise.
11688         * localedata/locales/byn_ER: Likewise.
11689         * localedata/locales/ca_AD: Likewise.
11690         * localedata/locales/ca_ES: Likewise.
11691         * localedata/locales/ca_FR: Likewise.
11692         * localedata/locales/ca_IT: Likewise.
11693         * localedata/locales/ce_RU: Likewise.
11694         * localedata/locales/chr_US: Likewise.
11695         * localedata/locales/cmn_TW: Likewise.
11696         * localedata/locales/crh_UA: Likewise.
11697         * localedata/locales/cs_CZ: Likewise.
11698         * localedata/locales/csb_PL: Likewise.
11699         * localedata/locales/cv_RU: Likewise.
11700         * localedata/locales/cy_GB: Likewise.
11701         * localedata/locales/da_DK: Likewise.
11702         * localedata/locales/de_AT: Likewise.
11703         * localedata/locales/de_BE: Likewise.
11704         * localedata/locales/de_CH: Likewise.
11705         * localedata/locales/de_DE: Likewise.
11706         * localedata/locales/de_IT: Likewise.
11707         * localedata/locales/de_LI: Likewise.
11708         * localedata/locales/de_LU: Likewise.
11709         * localedata/locales/doi_IN: Likewise.
11710         * localedata/locales/dv_MV: Likewise.
11711         * localedata/locales/dz_BT: Likewise.
11712         * localedata/locales/el_CY: Likewise.
11713         * localedata/locales/el_GR: Likewise.
11714         * localedata/locales/en_AG: Likewise.
11715         * localedata/locales/en_AU: Likewise.
11716         * localedata/locales/en_BW: Likewise.
11717         * localedata/locales/en_CA: Likewise.
11718         * localedata/locales/en_DK: Likewise.
11719         * localedata/locales/en_GB: Likewise.
11720         * localedata/locales/en_HK: Likewise.
11721         * localedata/locales/en_IE: Likewise.
11722         * localedata/locales/en_IL: Likewise.
11723         * localedata/locales/en_IN: Likewise.
11724         * localedata/locales/en_NG: Likewise.
11725         * localedata/locales/en_NZ: Likewise.
11726         * localedata/locales/en_PH: Likewise.
11727         * localedata/locales/en_SG: Likewise.
11728         * localedata/locales/en_US: Likewise.
11729         * localedata/locales/en_ZA: Likewise.
11730         * localedata/locales/en_ZM: Likewise.
11731         * localedata/locales/en_ZW: Likewise.
11732         * localedata/locales/eo: Likewise.
11733         * localedata/locales/es_AR: Likewise.
11734         * localedata/locales/es_BO: Likewise.
11735         * localedata/locales/es_CL: Likewise.
11736         * localedata/locales/es_CO: Likewise.
11737         * localedata/locales/es_CR: Likewise.
11738         * localedata/locales/es_CU: Likewise.
11739         * localedata/locales/es_DO: Likewise.
11740         * localedata/locales/es_EC: Likewise.
11741         * localedata/locales/es_ES: Likewise.
11742         * localedata/locales/es_GT: Likewise.
11743         * localedata/locales/es_HN: Likewise.
11744         * localedata/locales/es_MX: Likewise.
11745         * localedata/locales/es_NI: Likewise.
11746         * localedata/locales/es_PA: Likewise.
11747         * localedata/locales/es_PE: Likewise.
11748         * localedata/locales/es_PR: Likewise.
11749         * localedata/locales/es_PY: Likewise.
11750         * localedata/locales/es_SV: Likewise.
11751         * localedata/locales/es_US: Likewise.
11752         * localedata/locales/es_UY: Likewise.
11753         * localedata/locales/es_VE: Likewise.
11754         * localedata/locales/et_EE: Likewise.
11755         * localedata/locales/eu_ES: Likewise.
11756         * localedata/locales/eu_ES@euro: Likewise.
11757         * localedata/locales/fa_IR: Likewise.
11758         * localedata/locales/ff_SN: Likewise.
11759         * localedata/locales/fi_FI: Likewise.
11760         * localedata/locales/fil_PH: Likewise.
11761         * localedata/locales/fo_FO: Likewise.
11762         * localedata/locales/fr_BE: Likewise.
11763         * localedata/locales/fr_CA: Likewise.
11764         * localedata/locales/fr_CH: Likewise.
11765         * localedata/locales/fr_FR: Likewise.
11766         * localedata/locales/fr_LU: Likewise.
11767         * localedata/locales/fur_IT: Likewise.
11768         * localedata/locales/fy_DE: Likewise.
11769         * localedata/locales/fy_NL: Likewise.
11770         * localedata/locales/ga_IE: Likewise.
11771         * localedata/locales/gd_GB: Likewise.
11772         * localedata/locales/gez_ER: Likewise.
11773         * localedata/locales/gez_ET: Likewise.
11774         * localedata/locales/gl_ES: Likewise.
11775         * localedata/locales/gu_IN: Likewise.
11776         * localedata/locales/gv_GB: Likewise.
11777         * localedata/locales/ha_NG: Likewise.
11778         * localedata/locales/hak_TW: Likewise.
11779         * localedata/locales/he_IL: Likewise.
11780         * localedata/locales/hi_IN: Likewise.
11781         * localedata/locales/hif_FJ: Likewise.
11782         * localedata/locales/hne_IN: Likewise.
11783         * localedata/locales/hr_HR: Likewise.
11784         * localedata/locales/hsb_DE: Likewise.
11785         * localedata/locales/ht_HT: Likewise.
11786         * localedata/locales/hu_HU: Likewise.
11787         * localedata/locales/hy_AM: Likewise.
11788         * localedata/locales/i18n: Likewise.
11789         * localedata/locales/ia_FR: Likewise.
11790         * localedata/locales/id_ID: Likewise.
11791         * localedata/locales/ig_NG: Likewise.
11792         * localedata/locales/ik_CA: Likewise.
11793         * localedata/locales/is_IS: Likewise.
11794         * localedata/locales/it_CH: Likewise.
11795         * localedata/locales/it_IT: Likewise.
11796         * localedata/locales/iu_CA: Likewise.
11797         * localedata/locales/ja_JP: Likewise.
11798         * localedata/locales/ka_GE: Likewise.
11799         * localedata/locales/kk_KZ: Likewise.
11800         * localedata/locales/kl_GL: Likewise.
11801         * localedata/locales/kn_IN: Likewise.
11802         * localedata/locales/ko_KR: Likewise.
11803         * localedata/locales/kok_IN: Likewise.
11804         * localedata/locales/ks_IN: Likewise.
11805         * localedata/locales/ks_IN@devanagari: Likewise.
11806         * localedata/locales/ku_TR: Likewise.
11807         * localedata/locales/kw_GB: Likewise.
11808         * localedata/locales/ky_KG: Likewise.
11809         * localedata/locales/lb_LU: Likewise.
11810         * localedata/locales/lg_UG: Likewise.
11811         * localedata/locales/li_BE: Likewise.
11812         * localedata/locales/li_NL: Likewise.
11813         * localedata/locales/lij_IT: Likewise.
11814         * localedata/locales/ln_CD: Likewise.
11815         * localedata/locales/lo_LA: Likewise.
11816         * localedata/locales/lt_LT: Likewise.
11817         * localedata/locales/lv_LV: Likewise.
11818         * localedata/locales/lzh_TW: Likewise.
11819         * localedata/locales/mag_IN: Likewise.
11820         * localedata/locales/mai_IN: Likewise.
11821         * localedata/locales/mg_MG: Likewise.
11822         * localedata/locales/mhr_RU: Likewise.
11823         * localedata/locales/mi_NZ: Likewise.
11824         * localedata/locales/mk_MK: Likewise.
11825         * localedata/locales/ml_IN: Likewise.
11826         * localedata/locales/mn_MN: Likewise.
11827         * localedata/locales/mni_IN: Likewise.
11828         * localedata/locales/mr_IN: Likewise.
11829         * localedata/locales/ms_MY: Likewise.
11830         * localedata/locales/mt_MT: Likewise.
11831         * localedata/locales/my_MM: Likewise.
11832         * localedata/locales/nan_TW: Likewise.
11833         * localedata/locales/nan_TW@latin: Likewise.
11834         * localedata/locales/nb_NO: Likewise.
11835         * localedata/locales/nds_DE: Likewise.
11836         * localedata/locales/nds_NL: Likewise.
11837         * localedata/locales/ne_NP: Likewise.
11838         * localedata/locales/nhn_MX: Likewise.
11839         * localedata/locales/niu_NU: Likewise.
11840         * localedata/locales/niu_NZ: Likewise.
11841         * localedata/locales/nl_AW: Likewise.
11842         * localedata/locales/nl_BE: Likewise.
11843         * localedata/locales/nl_NL: Likewise.
11844         * localedata/locales/nn_NO: Likewise.
11845         * localedata/locales/nr_ZA: Likewise.
11846         * localedata/locales/nso_ZA: Likewise.
11847         * localedata/locales/oc_FR: Likewise.
11848         * localedata/locales/om_ET: Likewise.
11849         * localedata/locales/om_KE: Likewise.
11850         * localedata/locales/or_IN: Likewise.
11851         * localedata/locales/os_RU: Likewise.
11852         * localedata/locales/pa_IN: Likewise.
11853         * localedata/locales/pa_PK: Likewise.
11854         * localedata/locales/pap_AW: Likewise.
11855         * localedata/locales/pap_CW: Likewise.
11856         * localedata/locales/pl_PL: Likewise.
11857         * localedata/locales/ps_AF: Likewise.
11858         * localedata/locales/pt_BR: Likewise.
11859         * localedata/locales/pt_PT: Likewise.
11860         * localedata/locales/quz_PE: Likewise.
11861         * localedata/locales/raj_IN: Likewise.
11862         * localedata/locales/ro_RO: Likewise.
11863         * localedata/locales/ru_RU: Likewise.
11864         * localedata/locales/ru_UA: Likewise.
11865         * localedata/locales/rw_RW: Likewise.
11866         * localedata/locales/sa_IN: Likewise.
11867         * localedata/locales/sat_IN: Likewise.
11868         * localedata/locales/sc_IT: Likewise.
11869         * localedata/locales/sd_IN: Likewise.
11870         * localedata/locales/sd_IN@devanagari: Likewise.
11871         * localedata/locales/se_NO: Likewise.
11872         * localedata/locales/sgs_LT: Likewise.
11873         * localedata/locales/shs_CA: Likewise.
11874         * localedata/locales/si_LK: Likewise.
11875         * localedata/locales/sid_ET: Likewise.
11876         * localedata/locales/sk_SK: Likewise.
11877         * localedata/locales/sl_SI: Likewise.
11878         * localedata/locales/sm_WS: Likewise.
11879         * localedata/locales/so_DJ: Likewise.
11880         * localedata/locales/so_ET: Likewise.
11881         * localedata/locales/so_KE: Likewise.
11882         * localedata/locales/so_SO: Likewise.
11883         * localedata/locales/sq_AL: Likewise.
11884         * localedata/locales/sq_MK: Likewise.
11885         * localedata/locales/sr_ME: Likewise.
11886         * localedata/locales/sr_RS: Likewise.
11887         * localedata/locales/sr_RS@latin: Likewise.
11888         * localedata/locales/ss_ZA: Likewise.
11889         * localedata/locales/st_ZA: Likewise.
11890         * localedata/locales/sv_FI: Likewise.
11891         * localedata/locales/sv_SE: Likewise.
11892         * localedata/locales/sw_KE: Likewise.
11893         * localedata/locales/sw_TZ: Likewise.
11894         * localedata/locales/szl_PL: Likewise.
11895         * localedata/locales/ta_IN: Likewise.
11896         * localedata/locales/ta_LK: Likewise.
11897         * localedata/locales/tcy_IN: Likewise.
11898         * localedata/locales/te_IN: Likewise.
11899         * localedata/locales/tg_TJ: Likewise.
11900         * localedata/locales/th_TH: Likewise.
11901         * localedata/locales/the_NP: Likewise.
11902         * localedata/locales/ti_ER: Likewise.
11903         * localedata/locales/ti_ET: Likewise.
11904         * localedata/locales/tig_ER: Likewise.
11905         * localedata/locales/tk_TM: Likewise.
11906         * localedata/locales/tl_PH: Likewise.
11907         * localedata/locales/tn_ZA: Likewise.
11908         * localedata/locales/to_TO: Likewise.
11909         * localedata/locales/tpi_PG: Likewise.
11910         * localedata/locales/tr_CY: Likewise.
11911         * localedata/locales/tr_TR: Likewise.
11912         * localedata/locales/ts_ZA: Likewise.
11913         * localedata/locales/tt_RU: Likewise.
11914         * localedata/locales/tt_RU@iqtelif: Likewise.
11915         * localedata/locales/ug_CN: Likewise.
11916         * localedata/locales/uk_UA: Likewise.
11917         * localedata/locales/unm_US: Likewise.
11918         * localedata/locales/ur_IN: Likewise.
11919         * localedata/locales/ur_PK: Likewise.
11920         * localedata/locales/uz_UZ: Likewise.
11921         * localedata/locales/uz_UZ@cyrillic: Likewise.
11922         * localedata/locales/ve_ZA: Likewise.
11923         * localedata/locales/vi_VN: Likewise.
11924         * localedata/locales/wa_BE: Likewise.
11925         * localedata/locales/wae_CH: Likewise.
11926         * localedata/locales/wal_ET: Likewise.
11927         * localedata/locales/wo_SN: Likewise.
11928         * localedata/locales/xh_ZA: Likewise.
11929         * localedata/locales/yi_US: Likewise.
11930         * localedata/locales/yo_NG: Likewise.
11931         * localedata/locales/yue_HK: Likewise.
11932         * localedata/locales/yuw_PG: Likewise.
11933         * localedata/locales/zh_CN: Likewise.
11934         * localedata/locales/zh_HK: Likewise.
11935         * localedata/locales/zh_SG: Likewise.
11936         * localedata/locales/zh_TW: Likewise.
11937         * localedata/locales/zu_ZA: Likewise.
11938
11939 2017-11-13  Florian Weimer  <fweimer@redhat.com>
11940
11941         * support/next_to_fault.h, support/next_to_fault.c: New files.
11942         * support/Makefile (libsupport-routines): Add next_to_fault.
11943         * resolv/tst-inet_pton.c (struct next_to_fault)
11944         (next_to_fault_allocate, next_to_fault_free): Remove.
11945         (run_one_test): Switch to <support/next_to_fault.h> interfaces.
11946
11947 2017-11-13  H.J. Lu  <hongjiu.lu@intel.com>
11948
11949         * elf/dl-support.c: Include <dl-procruntime.c>.
11950         * include/link.h: Include <link_map.h>.
11951         * sysdeps/generic/dl-procruntime.c: New file.
11952         * sysdeps/generic/link_map.h: Likewise.
11953         * sysdeps/generic/ldsodefs.h: Include <dl-procruntime.c> in
11954         the writable ld.so namespace.
11955
11956 2017-11-12  Paul Eggert  <eggert@cs.ucla.edu>
11957
11958         timezone: pacify GCC -Wstringop-truncation
11959         Problem reported by Martin Sebor in:
11960         https://sourceware.org/ml/libc-alpha/2017-11/msg00336.html
11961         * timezone/zic.c (writezone): Use memcpy, not strncpy.
11962
11963 2017-11-12  Florian Weimer  <fweimer@redhat.com>
11964
11965         * support/Makefile (libsupport-routines): Add xreadlink, xstrndup,
11966         tst-xreadlink.
11967         (tests): Add tst-xreadlink.
11968         * support/support.h (xstrndup): Declare.
11969         * support/xunistd.h (xunlink, xreadlink): Declare.
11970         * support/temp_file.h (support_create_temp_directory): Declare.
11971         * support/temp_file.c (support_create_temp_directory): New function.
11972         * support/support_chroot.c (support_chroot_create): Use it.
11973         * support/xreadlink.c: New file.
11974         * support/xstrndup.c: Likewise.
11975         * support/xunlink.c: Likewise.
11976         * support/tst-xreadlink.c: Likewise.
11977
11978 2017-11-11  John David Anglin  <danglin@gcc.gnu.org>
11979
11980         * sysdeps/hppa/fpu/libm-test-ulps: Update clog10_downward ulps.
11981
11982 2017-11-11  Florian Weimer  <fweimer@redhat.com>
11983
11984         [BZ #22409]
11985         [BZ #22412]
11986         * resolv/res_comp.c (printable_string, binary_hnok)
11987         (binary_leading_dash): New functions.
11988         (res_hnok): Reimplement using these functions and ns_name_pton.
11989         (res_ownok): Likewise.
11990         (res_mailok): Reimplement using printable_string, ns_name_pton and
11991         binary_hnok.
11992         (res_dnok): Reimplement using printable_string and ns_name_pton.
11993         * resolv/tst-res_hnok.c (tests): Add additional tests.
11994         (LETTERDIGITS, PRINTABLE): Define.
11995         (do_test): Adjust one_char results.
11996
11997 2017-11-11  Florian Weimer  <fweimer@redhat.com>
11998
11999         [BZ #22413]
12000         * resolv/ns_name.c (ns_name_pton): Treat trailing backslash as error.
12001         * resolv/tst-ns_name_pton.c (tests): Add trailing backslash tests.
12002
12003 2017-11-11  Florian Weimer  <fweimer@redhat.com>
12004
12005         * resolv/tst-ns_name_pton.c: New file.
12006         * resolv/Makefile (tests): Add tst-ns_name_pton.
12007         (tst-ns_name_pton): Link against libresolv.
12008
12009 2017-11-11  Florian Weimer  <fweimer@redhat.com>
12010
12011         * resolv/tst-res_hnok.c: New file.
12012         * resolv/Makefile (tests): Add tst-res_hnok.
12013         (tst-res_hnok): Link against libresolv.
12014
12015 2017-11-11  Florian Weimer  <fweimer@redhat.com>
12016
12017         * resolv/tst-resolv-network.c: Use test framework instead explicit
12018         main function.
12019
12020 2017-11-09  H.J. Lu  <hongjiu.lu@intel.com>
12021
12022         * include/setjmp.h [!_ISOMAC]: Include <stddef.h> and
12023         <jmp_buf-macros.h>.
12024         [!_ISOMAC] (STR_HELPER): New.
12025         [!_ISOMAC] (STR): Likewise.
12026         [!_ISOMAC] (TEST_SIZE): Likewise.
12027         [!_ISOMAC] (TEST_ALIGN): Likewise.
12028         [!_ISOMAC] (TEST_OFFSET): Likewise.
12029         [!_ISOMAC] Add _Static_assert to check sizes, alignments and
12030         field offsets of jmp_buf as well as sigjmp_buf.
12031         * sysdeps/unix/sysv/linux/aarch64/jmp_buf-macros.h: Likewise.
12032         * sysdeps/unix/sysv/linux/alpha/jmp_buf-macros.h: Likewise.
12033         * sysdeps/unix/sysv/linux/arm/jmp_buf-macros.h: Likewise.
12034         * sysdeps/unix/sysv/linux/hppa/jmp_buf-macros.h: Likewise.
12035         * sysdeps/unix/sysv/linux/i386/jmp_buf-macros.h: Likewise.
12036         * sysdeps/unix/sysv/linux/ia64/jmp_buf-macros.h: Likewise.
12037         * sysdeps/unix/sysv/linux/m68k/jmp_buf-macros.h: Likewise.
12038         * sysdeps/unix/sysv/linux/microblaze/jmp_buf-macros.h: Likewise.
12039         * sysdeps/unix/sysv/linux/mips/mips32/jmp_buf-macros.h: Likewise.
12040         * sysdeps/unix/sysv/linux/mips/mips64/n32/jmp_buf-macros.h:
12041         Likewise.
12042         * sysdeps/unix/sysv/linux/mips/mips64/n64/jmp_buf-macros.h:
12043         Likewise.
12044         * sysdeps/unix/sysv/linux/nios2/jmp_buf-macros.h: Likewise.
12045         * sysdeps/unix/sysv/linux/powerpc/powerpc32/jmp_buf-macros.h:
12046         Likewise.
12047         * sysdeps/unix/sysv/linux/powerpc/powerpc64/jmp_buf-macros.h:
12048         Likewise.
12049         * sysdeps/unix/sysv/linux/s390/s390-32/jmp_buf-macros.h: Likewise.
12050         * sysdeps/unix/sysv/linux/s390/s390-64/jmp_buf-macros.h: Likewise.
12051         * sysdeps/unix/sysv/linux/sh/jmp_buf-macros.h: Likewise.
12052         * sysdeps/unix/sysv/linux/sparc/sparc32/jmp_buf-macros.h: Likewise.
12053         * sysdeps/unix/sysv/linux/sparc/sparc64/jmp_buf-macros.h: Likewise.
12054         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/jmp_buf-macros.h:
12055         Likewise.
12056         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/jmp_buf-macros.h:
12057         Likewise.
12058         * sysdeps/unix/sysv/linux/tile/tilepro/jmp_buf-macros.h: Likewise.
12059         * sysdeps/unix/sysv/linux/x86_64/64/jmp_buf-macros.h: Likewise.
12060         * sysdeps/unix/sysv/linux/x86_64/x32/jmp_buf-macros.h: Likewise.
12061
12062 2017-11-07  Joseph Myers  <joseph@codesourcery.com>
12063
12064         * include/float.h
12065         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
12066         && __HAVE_FLOAT32] (FLT32_MANT_DIG): New macro.
12067         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
12068         && __HAVE_FLOAT32] (FLT32_DECIMAL_DIG): Likewise.
12069         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
12070         && __HAVE_FLOAT32] (FLT32_DIG): Likewise.
12071         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
12072         && __HAVE_FLOAT32] (FLT32_MIN_EXP): Likewise.
12073         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
12074         && __HAVE_FLOAT32] (FLT32_MIN_10_EXP): Likewise.
12075         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
12076         && __HAVE_FLOAT32] (FLT32_MAX_EXP): Likewise.
12077         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
12078         && __HAVE_FLOAT32] (FLT32_MAX_10_EXP): Likewise.
12079         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
12080         && __HAVE_FLOAT32] (FLT32_MAX): Likewise.
12081         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
12082         && __HAVE_FLOAT32] (FLT32_EPSILON): Likewise.
12083         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
12084         && __HAVE_FLOAT32] (FLT32_MIN): Likewise.
12085         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
12086         && __HAVE_FLOAT32] (FLT32_TRUE_MIN): Likewise.
12087         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
12088         && __HAVE_FLOAT64] (FLT64_MANT_DIG): Likewise.
12089         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
12090         && __HAVE_FLOAT64] (FLT64_DECIMAL_DIG): Likewise.
12091         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
12092         && __HAVE_FLOAT64] (FLT64_DIG): Likewise.
12093         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
12094         && __HAVE_FLOAT64] (FLT64_MIN_EXP): Likewise.
12095         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
12096         && __HAVE_FLOAT64] (FLT64_MIN_10_EXP): Likewise.
12097         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
12098         && __HAVE_FLOAT64] (FLT64_MAX_EXP): Likewise.
12099         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
12100         && __HAVE_FLOAT64] (FLT64_MAX_10_EXP): Likewise.
12101         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
12102         && __HAVE_FLOAT64] (FLT64_MAX): Likewise.
12103         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
12104         && __HAVE_FLOAT64] (FLT64_EPSILON): Likewise.
12105         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
12106         && __HAVE_FLOAT64] (FLT64_MIN): Likewise.
12107         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
12108         && __HAVE_FLOAT64] (FLT64_TRUE_MIN): Likewise.
12109         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
12110         && __HAVE_FLOAT32X] (FLT32X_MANT_DIG): Likewise.
12111         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
12112         && __HAVE_FLOAT32X] (FLT32X_DECIMAL_DIG): Likewise.
12113         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
12114         && __HAVE_FLOAT32X] (FLT32X_DIG): Likewise.
12115         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
12116         && __HAVE_FLOAT32X] (FLT32X_MIN_EXP): Likewise.
12117         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
12118         && __HAVE_FLOAT32X] (FLT32X_MIN_10_EXP): Likewise.
12119         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
12120         && __HAVE_FLOAT32X] (FLT32X_MAX_EXP): Likewise.
12121         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
12122         && __HAVE_FLOAT32X] (FLT32X_MAX_10_EXP): Likewise.
12123         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
12124         && __HAVE_FLOAT32X] (FLT32X_MAX): Likewise.
12125         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
12126         && __HAVE_FLOAT32X] (FLT32X_EPSILON): Likewise.
12127         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
12128         && __HAVE_FLOAT32X] (FLT32X_MIN): Likewise.
12129         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
12130         && __HAVE_FLOAT32X] (FLT32X_TRUE_MIN): Likewise.
12131         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
12132         && __HAVE_FLOAT64X] (FLT64X_MANT_DIG): Likewise.
12133         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
12134         && __HAVE_FLOAT64X] (FLT64X_DECIMAL_DIG): Likewise.
12135         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
12136         && __HAVE_FLOAT64X] (FLT64X_DIG): Likewise.
12137         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
12138         && __HAVE_FLOAT64X] (FLT64X_MIN_EXP): Likewise.
12139         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
12140         && __HAVE_FLOAT64X] (FLT64X_MIN_10_EXP): Likewise.
12141         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
12142         && __HAVE_FLOAT64X] (FLT64X_MAX_EXP): Likewise.
12143         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
12144         && __HAVE_FLOAT64X] (FLT64X_MAX_10_EXP): Likewise.
12145         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
12146         && __HAVE_FLOAT64X] (FLT64X_MAX): Likewise.
12147         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
12148         && __HAVE_FLOAT64X] (FLT64X_EPSILON): Likewise.
12149         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
12150         && __HAVE_FLOAT64X] (FLT64X_MIN): Likewise.
12151         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
12152         && __HAVE_FLOAT64X] (FLT64X_TRUE_MIN): Likewise.
12153
12154         * stdlib/tst-strtod.h (F16): New macro.
12155         (F32): Likewise.
12156         (F64): Likewise.
12157         (F32X): Likewise.
12158         (F64X): Likewise.
12159         (F128X): Likewise.
12160         (IF_FLOAT16): Likewise.
12161         (IF_FLOAT32): Likewise.
12162         (IF_FLOAT64): Likewise.
12163         (IF_FLOAT32X): Likewise.
12164         (IF_FLOAT64X): Likewise.
12165         (IF_FLOAT128X): Likewise.
12166         (GEN_TEST_STRTOD_FOREACH): Conditionally call macros for _Float16,
12167         _Float32, _Float64, _Float32x, _Float64x and _Float128x.
12168         (STRTOD_TEST_FOREACH): Likewise.
12169         * stdlib/tst-strtod-round-skeleton.c (CHOOSE_f32): New macro.
12170         (CHOOSE_f64): Likewise.
12171         (CHOOSE_f32x): Likewise.
12172         (CHOOSE_f64x): Likewise.
12173
12174 2017-11-07  Andreas Schwab  <schwab@suse.de>
12175
12176         * nptl/Makefile (tests-internal): Remove tst-typesizes.
12177
12178 2017-11-07  Mike FABIAN  <mfabian@redhat.com>
12179
12180         [BZ #22403]
12181         * localedata/locales/mfe_MU (LC_TIME): Fix wrong d_fmt, / needs
12182         to be escaped.
12183         * localedata/locales/miq_NI (LC_TIME): Fix wrong d_fmt, / needs
12184         to be escaped.
12185
12186 2017-11-07  Claude Paroz  <claude@2xlibre.net>
12187
12188         [BZ #22403]
12189         * localedata/locales/an_ES (LC_TIME): Fix wrong d_fmt, / needs
12190         to be escaped.
12191         * localedata/locales/kab_DZ (LC_TIME): Fix wrong d_fmt, / needs
12192         to be escaped.
12193         * localedata/locales/om_ET (LC_TIME): Fix wrong d_fmt, / needs
12194         to be escaped.
12195
12196 2017-11-07  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
12197
12198         [BZ #22298]
12199         * nptl/allocatestack.c (allocate_stack): Check if
12200         __PTHREAD_MUTEX_HAVE_PREV is non-zero, instead if
12201         __PTHREAD_MUTEX_HAVE_PREV is defined.
12202         * nptl/descr.h (pthread): Likewise.
12203         * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
12204         Likewise.
12205         * nptl/pthread_create.c (START_THREAD_DEFN): Likewise.
12206         * sysdeps/nptl/fork.c (__libc_fork): Likewise.
12207         * sysdeps/nptl/pthread.h (PTHREAD_MUTEX_INITIALIZER): Likewise.
12208         * sysdeps/nptl/bits/thread-shared-types.h
12209         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION): New
12210         defines.
12211         (__pthread_internal_list): Check __PTHREAD_MUTEX_USE_UNION instead
12212         of __WORDSIZE for internal layout.
12213         (__pthread_mutex_s): Check __PTHREAD_MUTEX_NUSERS_AFTER_KIND instead
12214         of __WORDSIZE for internal __nusers layout and __PTHREAD_MUTEX_USE_UNION
12215         instead of __WORDSIZE whether to use an union for __spins and __list
12216         fields.
12217         (__PTHREAD_MUTEX_HAVE_PREV): Define also for __PTHREAD_MUTEX_USE_UNION
12218         case.
12219         * sysdeps/aarch64/nptl/bits/pthreadtypes-arch.h
12220         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION): New
12221         defines.
12222         * sysdeps/alpha/nptl/bits/pthreadtypes-arch.h
12223         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
12224         Likewise.
12225         * sysdeps/arm/nptl/bits/pthreadtypes-arch.h
12226         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
12227         Likewise.
12228         * sysdeps/hppa/nptl/bits/pthreadtypes-arch.h
12229         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
12230         Likewise.
12231         * sysdeps/ia64/nptl/bits/pthreadtypes-arch.h
12232         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
12233         Likewise.
12234         * sysdeps/m68k/nptl/bits/pthreadtypes-arch.h
12235         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
12236         Likewise.
12237         * sysdeps/microblaze/nptl/bits/pthreadtypes-arch.h
12238         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
12239         Likewise.
12240         * sysdeps/mips/nptl/bits/pthreadtypes-arch.h
12241         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
12242         Likewise.
12243         * sysdeps/nios2/nptl/bits/pthreadtypes-arch.h
12244         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
12245         Likewise.
12246         * sysdeps/powerpc/nptl/bits/pthreadtypes-arch.h
12247         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
12248         Likewise.
12249         * sysdeps/s390/nptl/bits/pthreadtypes-arch.h
12250         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
12251         Likewise.
12252         * sysdeps/sh/nptl/bits/pthreadtypes-arch.h
12253         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
12254         Likewise.
12255         * sysdeps/sparc/nptl/bits/pthreadtypes-arch.h
12256         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
12257         Likewise.
12258         * sysdeps/tile/nptl/bits/pthreadtypes-arch.h
12259         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
12260         Likewise.
12261         * sysdeps/x86/nptl/bits/pthreadtypes-arch.h
12262         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
12263         Likewise.
12264
12265         * nptl/pthreadP.h (ASSERT_TYPE_SIZE, ASSERT_PTHREAD_INTERNAL_SIZE):
12266         New macros.
12267         * nptl/pthread_attr_init.c (__pthread_mutex_init): Add build time
12268         checks for expected input type size.
12269         * nptl/pthread_barrier_init.c (__pthread_barrier_init): Likewise.
12270         * nptl/pthread_barrierattr_init.c (pthread_barrierattr_init):
12271         Likewise.
12272         * nptl/pthread_cond_init.c (__pthread_cond_init): Likewise.
12273         * nptl/pthread_condattr_init.c (__pthread_condattr_init): Likewise.
12274         * nptl/pthread_mutex_init.c (__pthread_mutex_init): Likewise.
12275         * nptl/pthread_mutexattr_init.c (__pthread_mutexattr_init): Likewise.
12276         * nptl/pthread_rwlock_init.c (__pthread_rwlock_init): Likewise.
12277         * nptl/pthread_rwlockattr_init.c (pthread_rwlockattr_init): Likewise.
12278         * nptl/sem_init.c (__new_sem_init, __old_sem_init): Likewise
12279         * nptl/pthread_attr_destroy.c (__pthread_attr_destroy): Remove
12280         superflous runtime assert check.
12281         * nptl/pthread_attr_getaffinity.c (__pthread_attr_getaffinity_new):
12282         Likewise.
12283         * nptl/pthread_attr_getdetachstate.c (__pthread_attr_getdetachstate):
12284         Likewise.
12285         * nptl/pthread_attr_getguardsize.c (pthread_attr_getguardsize):
12286         Likewise.
12287         * nptl/pthread_attr_getinheritsched.c (__pthread_attr_getinheritsched):
12288         Likewise.
12289         * nptl/pthread_attr_getschedparam.c (__pthread_attr_getschedparam):
12290         Likewise.
12291         * nptl/pthread_attr_getschedpolicy.c (__pthread_attr_getschedpolicy):
12292         Likewise.
12293         * nptl/pthread_attr_getscope.c (__pthread_attr_getscope): Likewise.
12294         * nptl/pthread_attr_getstack.c (__pthread_attr_getstack): Likewise.
12295         * nptl/pthread_attr_getstackaddr.c (__pthread_attr_getstackaddr):
12296         Likewise.
12297         * nptl/pthread_attr_getstacksize.c (__pthread_attr_getstacksize):
12298         Likewise.
12299         * nptl/pthread_attr_setaffinity.c (__pthread_attr_setaffinity_new):
12300         Likewise.
12301         * nptl/pthread_attr_setdetachstate.c (__pthread_attr_setdetachstate):
12302         Likewise.
12303         * nptl/pthread_attr_setguardsize.c (pthread_attr_setguardsize):
12304         Likewise.
12305         * nptl/pthread_attr_setinheritsched.c
12306         (__pthread_attr_setinheritsched): Likewise.
12307         * nptl/pthread_attr_setschedparam.c (__pthread_attr_setschedparam):
12308         Likewise.
12309         * nptl/pthread_attr_setschedpolicy.c (__pthread_attr_setschedpolicy):
12310         Likewise.
12311         * nptl/pthread_attr_setscope.c (__pthread_attr_setscope): Likewise.
12312         * nptl/pthread_attr_setstack.c (__pthread_attr_setstack,
12313         __old_pthread_attr_setstack): Likewise.
12314         * nptl/pthread_attr_setstackaddr.c (__pthread_attr_setstackaddr):
12315         Likewise.
12316         * nptl/pthread_attr_setstacksize.c (__pthread_attr_setstacksize):
12317         Likewise.
12318         * nptl/pthread_getattr_default_np.c (pthread_getattr_default_np):
12319         Likewise.
12320         * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Likewise.
12321         * nptl/pthread_setattr_default_np.c (pthread_setattr_default_np):
12322         Likewise.
12323         * nptl/tst-typesizes.c: Remove file.
12324
12325         * nptl/pthreadP.h (ASSERT_PTHREAD_STRING,
12326         ASSERT_PTHREAD_INTERNAL_OFFSET): New macro.
12327         * nptl/pthread_mutex_init.c (__pthread_mutex_init): Add build time
12328         checks for internal pthread_mutex_t offsets.
12329         * sysdeps/aarch64/nptl/pthread-offsets.h
12330         (__PTHREAD_MUTEX_NUSERS_OFFSET, __PTHREAD_MUTEX_KIND_OFFSET,
12331         __PTHREAD_MUTEX_SPINS_OFFSET, __PTHREAD_MUTEX_ELISION_OFFSET,
12332         __PTHREAD_MUTEX_LIST_OFFSET): New macro.
12333         * sysdeps/alpha/nptl/pthread-offsets.h: Likewise.
12334         * sysdeps/arm/nptl/pthread-offsets.h: Likewise.
12335         * sysdeps/hppa/nptl/pthread-offsets.h: Likewise.
12336         * sysdeps/i386/nptl/pthread-offsets.h: Likewise.
12337         * sysdeps/ia64/nptl/pthread-offsets.h: Likewise.
12338         * sysdeps/m68k/nptl/pthread-offsets.h: Likewise.
12339         * sysdeps/microblaze/nptl/pthread-offsets.h: Likewise.
12340         * sysdeps/mips/nptl/pthread-offsets.h: Likewise.
12341         * sysdeps/nios2/nptl/pthread-offsets.h: Likewise.
12342         * sysdeps/powerpc/nptl/pthread-offsets.h: Likewise.
12343         * sysdeps/s390/nptl/pthread-offsets.h: Likewise.
12344         * sysdeps/sh/nptl/pthread-offsets.h: Likewise.
12345         * sysdeps/sparc/nptl/pthread-offsets.h: Likewise.
12346         * sysdeps/tile/nptl/pthread-offsets.h: Likewise.
12347         * sysdeps/x86_64/nptl/pthread-offsets.h: Likewise.
12348
12349 2017-11-07  Florian Weimer  <fweimer@redhat.com>
12350
12351         * bits/mman-linux.h: Move ...
12352         * sysdeps/unix/sysv/linux/bits/mman-linux.h: ... here.  Update
12353         comment.
12354         * sysdeps/unix/sysv/linux/bits/Makefile (sysdep_headers): Remove
12355         outdated comment.
12356
12357 2017-11-07  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
12358
12359         * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S (STRNLEN):
12360         Redefine STRNLEN as __strnlen_power8.
12361
12362 2017-11-06  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
12363
12364         * signal/sighold.c (sighold): Optimize implementation.
12365
12366         * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Asssume
12367         __NR_rt_sigqueueinfo.
12368
12369         * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
12370         __sigtimedwait.
12371         * sysdeps/unix/sysv/linux/sigtimedwait.c: Simplify includes and
12372         assume __NR_rt_sigtimedwait.
12373         * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Call __sigtimedwait
12374         and add LIBC_CANCEL_HANDLED for cancellation marking.
12375         * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
12376
12377         * sysdeps/arm/armv7/multiarch/Makefile [$(subdir) = string]
12378         (sysdeps_routines): Add memchr_noneon.
12379         * sysdeps/arm/armv7/multiarch/ifunc-memchr.h: New file.
12380         * sysdeps/arm/armv7/multiarch/memchr_noneon.S: Likewise.
12381         * sysdeps/arm/armv7/multiarch/rtld-memchr.S: Likewise.
12382         * sysdeps/arm/armv7/multiarch/memchr.S: Remove file.
12383         * sysdeps/arm/armv7/multiarch/memchr.c: New file.
12384         * sysdeps/arm/armv7/multiarch/memchr_impl.S: Move to ...
12385         * sysdeps/arm/armv7/multiarch/memchr_neon.S: ... here.
12386
12387         * sysdeps/arm/arm-ifunc.h: New file.
12388         * sysdeps/arm/armv7/multiarch/ifunc-memcpy.h: Likewise.
12389         * sysdeps/arm/armv7/multiarch/memcpy.c: Likewise.
12390         * sysdeps/arm/armv7/multiarch/memcpy_arm.S: Likewise.
12391         * sysdeps/arm/armv7/multiarch/rtld-memcpy.S: Likewise.
12392         * sysdeps/arm/armv7/multiarch/memcpy_neon.S [!__ARM_NEON__]
12393         (__memcpy_neon): Avoid create hidden alias.
12394         * sysdeps/arm/armv7/multiarch/memcpy_vfp.S [!__ARM_NEON_]
12395         (__memcpy_vfp): Likewise.
12396         * sysdeps/arm/armv7/multiarch/Makefile [$(subdir) = string]
12397         (sysdep_routines): Add memcpy_arm.
12398         * sysdeps/arm/armv7/multiarch/memcpy.S: Remove file.
12399
12400 2017-11-06  H.J. Lu  <hongjiu.lu@intel.com>
12401
12402         [BZ #22362]
12403         * Makerules (make-link-multidir): New.
12404         * config.make.in (multidir): New.
12405         * configure.ac (libc_cv_multidir): New.  AC_SUBST.
12406         * configure: Regenerated.
12407         * csu/Makefile [$(multidir) != .](multilib-extra-objs): New.
12408         [$(multidir) != .](extra-objs): Add $(multilib-extra-objs).
12409         [$(multidir) != .]($(addprefix $(objpfx)$(multidir)/, $(install-lib))):
12410         New target.
12411
12412 2017-11-06  Joseph Myers  <joseph@codesourcery.com>
12413
12414         [BZ #22402]
12415         * sysdeps/powerpc/bits/floatn.h: Include <bits/long-double.h>.
12416         [__NO_LONG_DOUBLE_MATH] (__HAVE_FLOAT128): Define to 0.
12417
12418 2017-11-04  Mike FABIAN  <mfabian@redhat.com>
12419
12420         * localedata/locales/tpi_PG (LC_TIME): Fix wrong d_fmt, / needs
12421         to be escaped.
12422
12423 2017-11-04  Florian Weimer  <fweimer@redhat.com>
12424
12425         * manual/llio.texi (Open-time Flags): Document O_TMPFILE.
12426
12427 2017-11-03  Joseph Myers  <joseph@codesourcery.com>
12428
12429         * math/math.h [__HAVE_DISTINCT_FLOAT16
12430         || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
12431         || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
12432         || __HAVE_DISTINCT_FLOAT128X]: Use #error.
12433         [__NO_LONG_DOUBLE_MATH && __HAVE_DISTINCT_FLOAT128]: Likewise.
12434         [__HAVE_DISTINCT_FLOAT128 && !__HAVE_GENERIC_SELECTION
12435         && __HAVE_FLOATN_NOT_TYPEDEF]: Likewise.
12436         [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
12437         (__MATH_TG_F32): New macro.
12438         [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
12439         (__MATH_TG_F64X): Likewise.
12440         [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
12441         (__MATH_TG): Use __MATH_TG_F32 and __MATH_TG_F64X.
12442
12443 2017-11-03  Dmitry V. Levin  <ldv@altlinux.org>
12444
12445         * po/de.po: Update translations.
12446         * po/ru.po: Likewise.
12447
12448 2017-11-03  Florian Weimer  <fweimer@redhat.com>
12449
12450         * manual/filesys.texi (Hard Links): Document linkat.
12451
12452 2017-11-03  Joseph Myers  <joseph@codesourcery.com>
12453
12454         * math/tgmath.h [__HAVE_DISTINCT_FLOAT16
12455         || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
12456         || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
12457         || __HAVE_DISTINCT_FLOAT128X]: Use #error.
12458         [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
12459         && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
12460         && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_F128): Handle _Float64x
12461         the same as _Float128.
12462         [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
12463         && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
12464         && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_CF128): Likewise.
12465
12466         * stdlib/stdlib.h
12467         [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof16):
12468         Declare.
12469         [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof32):
12470         Likewise.
12471         [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof64):
12472         Likewise.
12473         [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
12474         (strtof32x): Likewise.
12475         [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
12476         (strtof64x): Likewise.
12477         [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
12478         (strtof128x): Likewise.
12479         [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
12480         (strfromf16): Likewise.
12481         [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
12482         (strfromf32): Likewise.
12483         [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
12484         (strfromf64): Likewise.
12485         [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
12486         (strfromf32x): Likewise.
12487         [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
12488         (strfromf64x): Likewise.
12489         [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
12490         (strfromf128x): Likewise.
12491         [__USE_GNU && __HAVE_FLOAT16] (strtof16_l): Likewise.
12492         [__USE_GNU && __HAVE_FLOAT32] (strtof32_l): Likewise.
12493         [__USE_GNU && __HAVE_FLOAT64] (strtof64_l): Likewise.
12494         [__USE_GNU && __HAVE_FLOAT32X] (strtof32x_l): Likewise.
12495         [__USE_GNU && __HAVE_FLOAT64X] (strtof64x_l): Likewise.
12496         [__USE_GNU && __HAVE_FLOAT128X] (strtof128x_l): Likewise.
12497
12498 2017-11-03  Richard Henderson  <rth@twiddle.net>
12499
12500         * sysdeps/unix/sysv/linux/aarch64/sysconf.c: New file.
12501
12502 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
12503
12504         * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Optimize.
12505
12506 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
12507
12508         * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Remove
12509         DT_TLSDESC_GOT initialization.
12510         * sysdeps/arm/dl-tlsdesc.S (_dl_tlsdesc_lazy_resolver): Remove.
12511         (_dl_tlsdesc_resolve_hold): Likewise.
12512         * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_lazy_resolver): Remove.
12513         (_dl_tlsdesc_resolve_hold): Likewise.
12514         * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_lazy_resolver_fixup): Remove.
12515         (_dl_tlsdesc_resolve_hold_fixup): Likewise.
12516
12517 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
12518
12519         * sysdeps/arm/dl-machine.h (elf_machine_rel): Remove volatile.
12520
12521 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
12522
12523         [BZ #18572]
12524         * sysdeps/arm/dl-machine.h (elf_machine_lazy_rel): Do symbol binding
12525         non-lazily for R_ARM_TLS_DESC.
12526
12527 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
12528
12529         [BZ #17078]
12530         * sysdeps/arm/dl-machine.h (elf_machine_rela): Remove the
12531         R_ARM_TLS_DESC case.
12532         (elf_machine_lazy_rel): Remove the prelink check.
12533
12534 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
12535
12536         * sysdeps/aarch64/dl-machine.h (elf_machine_runtime_setup): Remove
12537         DT_TLSDESC_GOT initialization.
12538         * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_return_lazy): Remove.
12539         (_dl_tlsdesc_resolve_rela): Likewise.
12540         (_dl_tlsdesc_resolve_hold): Likewise.
12541         (_dl_tlsdesc_undefweak): Remove ldar.
12542         (_dl_tlsdesc_dynamic): Likewise.
12543         * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_return_lazy): Remove.
12544         (_dl_tlsdesc_resolve_rela): Likewise.
12545         (_dl_tlsdesc_resolve_hold): Likewise.
12546         * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_resolve_rela_fixup): Remove.
12547         (_dl_tlsdesc_resolve_hold_fixup): Likewise.
12548         (_dl_tlsdesc_resolve_rela): Likewise.
12549         (_dl_tlsdesc_resolve_hold): Likewise.
12550
12551 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
12552
12553         * sysdeps/aarch64/dl-machine.h (elf_machine_lazy_rel): Do symbol
12554         binding and initialization non-lazily for R_AARCH64_TLSDESC.
12555
12556 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
12557
12558         * elf/tlsdeschtab.h (_dl_tls_resolve_early_return_p): Mark unused.
12559         (_dl_tlsdesc_wake_up_held_fixups): Likewise.
12560
12561 2017-11-02  Joseph Myers  <joseph@codesourcery.com>
12562
12563         * wcsmbs/wchar.h [__HAVE_FLOAT16 && __USE_GNU] (wcstof16):
12564         Declare.
12565         [__HAVE_FLOAT32 && __USE_GNU] (wcstof32): Likewise.
12566         [__HAVE_FLOAT64 && __USE_GNU] (wcstof64): Likewise.
12567         [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x): Likewise.
12568         [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x): Likewise.
12569         [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x): Likewise.
12570         [__HAVE_FLOAT16 && __USE_GNU] (wcstof16_l): Likewise.
12571         [__HAVE_FLOAT32 && __USE_GNU] (wcstof32_l): Likewise.
12572         [__HAVE_FLOAT64 && __USE_GNU] (wcstof64_l): Likewise.
12573         [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x_l): Likewise.
12574         [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x_l): Likewise.
12575         [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x_l): Likewise.
12576
12577 2017-11-02  Mike FABIAN  <mfabian@redhat.com>
12578
12579         [BZ #22382]
12580         * localedata/locales/tpi_PG (LC_TIME): Fix syntax error.
12581         * localedata/locales/tpi_PG: Add standard header.
12582
12583 2017-11-02  Florian Weimer  <fweimer@redhat.com>
12584
12585         test-errno-linux: quotactl can fail with EPERM in containers.
12586         * sysdeps/unix/sysv/linux/test-errno-linux.c
12587         (LIST, LIST_FORWARD): New macros.
12588         (check_error_in_list): New function.
12589         (test_wrp_rv): Accept list of permitted error codes.
12590         (test_wrp_rv2): Remove.
12591         (test_wrp): Call test_wrp_rv with list of error codes.
12592         (test_wrp2): Accept list of error codes.
12593         (do_test): Adjust.  Allow EPERM for quotactl.
12594
12595 2017-11-02  Florian Weimer  <fweimer@redhat.com>
12596
12597         * stdio-common/bug16.c (do_test): Use array_length.
12598         * stdio-common/errlist.c (_sys_nerr): Likewise.
12599         * stdio-common/printf_fp.c (PRINTF_FP_FETCH): Likewise.
12600         * stdio-common/printf_fphex.c (__printf_fphex): Use array_end.
12601         * stdio-common/psiginfo.c (psiginfo): Use array_length.
12602         * stdio-common/test-vfprintf.c (nlocs): Remove definition.
12603         (do_test): Use array_length.
12604         * stdio-common/tst-fphex.c (do_test): Use array_end, array_length.
12605         * stdio-common/tst-long-dbl-fphex.c (do_test): Use array_length.
12606         * stdio-common/tst-printf-round.c (do_test): Likewise.
12607         * stdio-common/tst-swprintf.c (nbuf): Remove definition.
12608         (CHECK): Use array_length.
12609         * stdio-common/tstdiomisc.c (t3, F): Likewise.
12610         * stdio-common/tstscanf.c (main): Likewise.
12611         * stdio-common/vfprintf.c (process_string_arg): Likewise.
12612
12613 2017-11-02  Florian Weimer  <fweimer@redhat.com>
12614
12615         Add array_length and array_end macros.
12616         * include/array_length.h: New file.
12617
12618 2017-11-02  Florian Weimer  <fweimer@redhat.com>
12619
12620         [BZ #22332]
12621         * posix/tst-glob-tilde.c (do_noescape): New variable.
12622         (one_test): Process it.
12623         (do_test): Set do_noescape.  Add unescaping test case.
12624
12625 2017-11-01  Joseph Myers  <joseph@codesourcery.com>
12626
12627         * math/complex.h
12628         [(__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC))
12629         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Include <bits/cmathcalls.h>
12630         with appropriate macros defined and undefined.
12631         [(__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC))
12632         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
12633         [(__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC))
12634         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
12635         [(__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC))
12636         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
12637         [(__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC))
12638         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
12639         [(__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC))
12640         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
12641
12642         * math/complex.h
12643         [(__HAVE_DISTINCT_FLOAT128 || (__HAVE_FLOAT128 && !LIBC))
12644         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Move conditional code after
12645         that for long double.  Do not condition define and undefine of
12646         _Mdouble_complex_ on [__CFLOAT128].
12647
12648 2017-11-01  H.J. Lu  <hongjiu.lu@intel.com>
12649
12650         * sysdeps/i386/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
12651         of <sysdeps/generic/sysdep.h>.
12652         (ALIGNARG): Removed.
12653         (ASM_SIZE_DIRECTIVE): Likewise.
12654         (ENTRY): Likewise.
12655         (END): Likewise.
12656         (ENTRY_CHK): Likewise.
12657         (END_CHK): Likewise.
12658         (syscall_error): Likewise.
12659         (mcount): Likewise.
12660         (PSEUDO_END): Likewise.
12661         (L): Likewise.
12662         (atom_text_section): Likewise.
12663         * sysdeps/x86/sysdep.h: New file.
12664         * sysdeps/x86_64/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
12665         of <sysdeps/generic/sysdep.h>.
12666         (ALIGNARG): Removed.
12667         (ASM_SIZE_DIRECTIVE): Likewise.
12668         (ENTRY): Likewise.
12669         (END): Likewise.
12670         (ENTRY_CHK): Likewise.
12671         (END_CHK): Likewise.
12672         (syscall_error): Likewise.
12673         (mcount): Likewise.
12674         (PSEUDO_END): Likewise.
12675         (L): Likewise.
12676         (atom_text_section): Likewise.
12677
12678 2017-10-31  Rafal Luzynski  <digitalfreak@lingonborough.com>
12679
12680         * localedata/unicode-gen/gen_unicode_ctype.py (output_head):
12681         category of LC_CTYPE set to "i18n:2012".
12682         * localedata/locales/i18n_ctype: Regenerate.
12683
12684 2017-10-31  Yury Norov  <ynorov@caviumnetworks.com>
12685
12686         * sysdeps/unix/sysv/linux/sigprocmask.c: Remove useless #ifdefs.
12687         * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
12688         * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
12689         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
12690
12691         * sysdeps/unix/sysv/linux/ia64/sigpending.c: Remove file.
12692         * sysdeps/unix/sysv/linux/s390/s390-64/sigpending.c: Likewise.
12693         * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Likewise.
12694         * sysdeps/unix/sysv/linux/x86_64/sigpending.c: Likewise.
12695
12696 2017-10-31  Joseph Myers  <joseph@codesourcery.com>
12697
12698         * math/complex.h
12699         [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF16):
12700         New macro.
12701         [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF32):
12702         Likewise.
12703         [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF64):
12704         Likewise.
12705         [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
12706         (CMPLXF32X): Likewise.
12707         [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
12708         (CMPLXF64X): Likewise.
12709         [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
12710         (CMPLXF128X): Likewise.
12711
12712         * math/math.h
12713         [__FLT_EVAL_METHOD__ == 0 || __FLT_EVAL_METHOD__ == 32]
12714         (__MATH_EVAL_FMT2): Define to add 0.0f.
12715
12716 2017-10-31  Alan Modra  <amodra@gmail.com>
12717
12718         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-power8.S: Don't
12719         include sysdep.h.
12720         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-power5+.S: Likewise.
12721         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-ppc64.S: Likewise.
12722         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-power8.S: Likewise.
12723         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-ppc64.c: Likewise.
12724         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power7.S: Likewise.
12725         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power8.S: Likewise.
12726         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-power5+.S: Likewise.
12727         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-ppc64.S: Likewise.
12728         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-power5+.S: Likewise.
12729         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-ppc64.S: Likewise.
12730         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: Likewise.
12731         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
12732         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-power5+.S: Likewise.
12733         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-ppc64.S: Likewise.
12734         * sysdeps/powerpc/powerpc64/multiarch/memchr-power7.S: Likewise.
12735         * sysdeps/powerpc/powerpc64/multiarch/memchr-power8.S: Likewise.
12736         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power4.S: Likewise.
12737         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power7.S: Likewise.
12738         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power8.S: Likewise.
12739         * sysdeps/powerpc/powerpc64/multiarch/memcpy-a2.S: Likewise.
12740         * sysdeps/powerpc/powerpc64/multiarch/memcpy-cell.S: Likewise.
12741         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power4.S: Likewise.
12742         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power6.S: Likewise.
12743         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power7.S: Likewise.
12744         * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S: Likewise.
12745         * sysdeps/powerpc/powerpc64/multiarch/memmove-power7.S: Likewise.
12746         * sysdeps/powerpc/powerpc64/multiarch/mempcpy-power7.S: Likewise.
12747         * sysdeps/powerpc/powerpc64/multiarch/memrchr-power7.S: Likewise.
12748         * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S: Likewise.
12749         * sysdeps/powerpc/powerpc64/multiarch/memset-power4.S: Likewise.
12750         * sysdeps/powerpc/powerpc64/multiarch/memset-power6.S: Likewise.
12751         * sysdeps/powerpc/powerpc64/multiarch/memset-power7.S: Likewise.
12752         * sysdeps/powerpc/powerpc64/multiarch/memset-power8.S: Likewise.
12753         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-power7.S: Likewise.
12754         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power8.S: Likewise.
12755         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power7.S: Likewise.
12756         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Likewise.
12757         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: Likewise.
12758         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power8.S: Likewise.
12759         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: Likewise.
12760         * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S: Likewise.
12761         * sysdeps/powerpc/powerpc64/multiarch/strchr-power7.S: Likewise.
12762         * sysdeps/powerpc/powerpc64/multiarch/strchr-power8.S: Likewise.
12763         * sysdeps/powerpc/powerpc64/multiarch/strchr-ppc64.S: Likewise.
12764         * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power7.S: Likewise.
12765         * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power8.S: Likewise.
12766         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power7.S: Likewise.
12767         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Likewise.
12768         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
12769         * sysdeps/powerpc/powerpc64/multiarch/strcmp-ppc64.S: Likewise.
12770         * sysdeps/powerpc/powerpc64/multiarch/strcpy-power8.S: Likewise.
12771         * sysdeps/powerpc/powerpc64/multiarch/strcspn-power8.S: Likewise.
12772         * sysdeps/powerpc/powerpc64/multiarch/strlen-power7.S: Likewise.
12773         * sysdeps/powerpc/powerpc64/multiarch/strlen-power8.S: Likewise.
12774         * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S: Likewise.
12775         * sysdeps/powerpc/powerpc64/multiarch/strncase-power8.S: Likewise.
12776         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power4.S: Likewise.
12777         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power7.S: Likewise.
12778         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
12779         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
12780         * sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.S: Likewise.
12781         * sysdeps/powerpc/powerpc64/multiarch/strncpy-power7.S: Likewise.
12782         * sysdeps/powerpc/powerpc64/multiarch/strncpy-power8.S: Likewise.
12783         * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: Likewise.
12784         * sysdeps/powerpc/powerpc64/multiarch/strnlen-power8.S: Likewise.
12785         * sysdeps/powerpc/powerpc64/multiarch/strrchr-power7.S: Likewise.
12786         * sysdeps/powerpc/powerpc64/multiarch/strrchr-power8.S: Likewise.
12787         * sysdeps/powerpc/powerpc64/multiarch/strspn-power8.S: Likewise.
12788         * sysdeps/powerpc/powerpc64/multiarch/strstr-power7.S: Likewise.
12789
12790         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-ppc64.S: Don't
12791         include sysdep.h and math_ldbl_opt.h.
12792
12793         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-power5+.S: Don't
12794         include sysdep.h and math_ldbl_opt.h.  Include shlib-compat.h.
12795         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-ppc64.S: Likewise.
12796         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-power6.S: Likewise.
12797         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-ppc64.S: Likewise.
12798         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-power5+.S: Likewise.
12799         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power7.S: Likewise.
12800         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power8.S: Likewise.
12801         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power5.S: Likewise.
12802         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6.S: Likewise.
12803         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6x.S: Likewise.
12804         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power7.S: Likewise.
12805         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power8.S: Likewise.
12806         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S: Likewise.
12807         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power6x.S: Likewise.
12808         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power8.S: Likewise.
12809         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-ppc64.S: Likewise.
12810         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power5+.S: Likewise.
12811         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power6x.S: Likewise.
12812         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power8.S: Likewise.
12813         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-ppc64.S: Likewise.
12814         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf-ppc64.S: Likewise.
12815         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-power5+.S: Likewise.
12816         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-ppc64.S: Likewise.
12817         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-power5+.S: Likewise.
12818         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-ppc64.S: Likewise.
12819
12820 2017-10-31  Alan Modra  <amodra@gmail.com>
12821
12822         * sysdeps/powerpc/powerpc64/multiarch/strncase_l-power7.c: Include
12823         string/strncase_l.c, not string/strncase.c.
12824         (USE_IN_EXTENDED_LOCALE_MODEL): Don't define.
12825         (libc_hidden_def): Redefine.
12826
12827 2017-10-31  Alan Modra  <amodra@gmail.com>
12828
12829         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S:
12830         (__STRCMP, STRCMP, __strcasecmp_l): Define.
12831         (__strcasecmp): Don't define.
12832
12833 2017-10-31  Alan Modra  <amodra@gmail.com>
12834
12835         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Wrap in
12836         IS_IN (libc).
12837         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
12838         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
12839         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
12840
12841 2017-10-31  Alan Modra  <amodra@gmail.com>
12842
12843         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Don't define
12844         USE_AS_STPNCPY.
12845
12846 2017-10-31  Alan Modra  <amodra@gmail.com>
12847
12848         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S (hidden_def):
12849         Redefine only when SHARED.
12850
12851 2017-10-30  Joseph Myers  <joseph@codesourcery.com>
12852
12853         * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
12854         Include <bits/math-finite.h> with appropriate macros defined and
12855         undefined.
12856         [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
12857         [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
12858         [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
12859         [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
12860         [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
12861
12862         * math/math.h [!_Mfloat_] (_Mfloat_): Do not define.
12863         [!_Mlong_double_] (_Mlong_double_): Likewise.
12864         [!_Mfloat16_] (_Mfloat16_): Likewise.
12865         [!_Mfloat32_] (_Mfloat32_): Likewise.
12866         [!_Mfloat64_] (_Mfloat64_): Likewise.
12867         [!_Mfloat128_] (_Mfloat128_): Likewise.
12868         [!_Mfloat32x_] (_Mfloat32x_): Likewise.
12869         [!_Mfloat64x_] (_Mfloat64x_): Likewise.
12870         [!_Mfloat128x_] (_Mfloat128x_): Likewise.
12871         (_Mdouble_): Define without indirection through those macros.
12872         * math/complex.h [!_Mfloat_] (_Mfloat_): Do not define.
12873         [!_Mfloat128_] (_Mfloat128_): Likewise.
12874         [_Mlong_double_] (_Mlong_double_): Likewise.
12875         (_Mdouble_): Define without indirection through those macros.
12876         * math/Makefile [$(long-double-fcts) != yes] (math-CPPFLAGS): Do
12877         not add -D_Mlong_double_=double.
12878         * include/math.h [_ISOMAC] (_Mlong_double_): Do not undefine.
12879         * math/test-signgam-finite-c99.c (_Mlong_double_): Likewise.
12880
12881 2017-10-30  H.J. Lu  <hongjiu.lu@intel.com>
12882
12883         * sysdeps/x86/libc-start.c: Add /* !SHARED */.
12884
12885 2017-10-30  H.J. Lu  <hongjiu.lu@intel.com>
12886
12887         * sysdeps/x86/libc-start.c: Reformat.
12888
12889 2017-10-30  H.J. Lu  <hongjiu.lu@intel.com>
12890
12891         [BZ #22353]
12892         * sysdeps/i386/i586/strcpy.S (STRCPY): Use conditional branches.
12893         (1): Renamed to ...
12894         (L(Src0)): This.
12895         (L(Src1)): New.
12896         (L(Src2)): Likewise.
12897         (L(1)): Renamed to ...
12898         (L(Src3)): This.
12899
12900 2017-10-30  Joseph Myers  <joseph@codesourcery.com>
12901
12902         * math/math.h [__HAVE_FLOAT16 && __USE_GNU] (M_Ef16): New macro.
12903         [__HAVE_FLOAT16 && __USE_GNU] (M_LOG2Ef16): Likewise.
12904         [__HAVE_FLOAT16 && __USE_GNU] (M_LOG10Ef16): Likewise.
12905         [__HAVE_FLOAT16 && __USE_GNU] (M_LN2f16): Likewise.
12906         [__HAVE_FLOAT16 && __USE_GNU] (M_LN10f16): Likewise.
12907         [__HAVE_FLOAT16 && __USE_GNU] (M_PIf16): Likewise.
12908         [__HAVE_FLOAT16 && __USE_GNU] (M_PI_2f16): Likewise.
12909         [__HAVE_FLOAT16 && __USE_GNU] (M_PI_4f16): Likewise.
12910         [__HAVE_FLOAT16 && __USE_GNU] (M_1_PIf16): Likewise.
12911         [__HAVE_FLOAT16 && __USE_GNU] (M_2_PIf16): Likewise.
12912         [__HAVE_FLOAT16 && __USE_GNU] (M_2_SQRTPIf16): Likewise.
12913         [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT2f16): Likewise.
12914         [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT1_2f16): Likewise.
12915         [__HAVE_FLOAT32 && __USE_GNU] (M_Ef32): Likewise.
12916         [__HAVE_FLOAT32 && __USE_GNU] (M_LOG2Ef32): Likewise.
12917         [__HAVE_FLOAT32 && __USE_GNU] (M_LOG10Ef32): Likewise.
12918         [__HAVE_FLOAT32 && __USE_GNU] (M_LN2f32): Likewise.
12919         [__HAVE_FLOAT32 && __USE_GNU] (M_LN10f32): Likewise.
12920         [__HAVE_FLOAT32 && __USE_GNU] (M_PIf32): Likewise.
12921         [__HAVE_FLOAT32 && __USE_GNU] (M_PI_2f32): Likewise.
12922         [__HAVE_FLOAT32 && __USE_GNU] (M_PI_4f32): Likewise.
12923         [__HAVE_FLOAT32 && __USE_GNU] (M_1_PIf32): Likewise.
12924         [__HAVE_FLOAT32 && __USE_GNU] (M_2_PIf32): Likewise.
12925         [__HAVE_FLOAT32 && __USE_GNU] (M_2_SQRTPIf32): Likewise.
12926         [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT2f32): Likewise.
12927         [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT1_2f32): Likewise.
12928         [__HAVE_FLOAT64 && __USE_GNU] (M_Ef64): Likewise.
12929         [__HAVE_FLOAT64 && __USE_GNU] (M_LOG2Ef64): Likewise.
12930         [__HAVE_FLOAT64 && __USE_GNU] (M_LOG10Ef64): Likewise.
12931         [__HAVE_FLOAT64 && __USE_GNU] (M_LN2f64): Likewise.
12932         [__HAVE_FLOAT64 && __USE_GNU] (M_LN10f64): Likewise.
12933         [__HAVE_FLOAT64 && __USE_GNU] (M_PIf64): Likewise.
12934         [__HAVE_FLOAT64 && __USE_GNU] (M_PI_2f64): Likewise.
12935         [__HAVE_FLOAT64 && __USE_GNU] (M_PI_4f64): Likewise.
12936         [__HAVE_FLOAT64 && __USE_GNU] (M_1_PIf64): Likewise.
12937         [__HAVE_FLOAT64 && __USE_GNU] (M_2_PIf64): Likewise.
12938         [__HAVE_FLOAT64 && __USE_GNU] (M_2_SQRTPIf64): Likewise.
12939         [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT2f64): Likewise.
12940         [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT1_2f64): Likewise.
12941         [__HAVE_FLOAT32X && __USE_GNU] (M_Ef32x): Likewise.
12942         [__HAVE_FLOAT32X && __USE_GNU] (M_LOG2Ef32x): Likewise.
12943         [__HAVE_FLOAT32X && __USE_GNU] (M_LOG10Ef32x): Likewise.
12944         [__HAVE_FLOAT32X && __USE_GNU] (M_LN2f32x): Likewise.
12945         [__HAVE_FLOAT32X && __USE_GNU] (M_LN10f32x): Likewise.
12946         [__HAVE_FLOAT32X && __USE_GNU] (M_PIf32x): Likewise.
12947         [__HAVE_FLOAT32X && __USE_GNU] (M_PI_2f32x): Likewise.
12948         [__HAVE_FLOAT32X && __USE_GNU] (M_PI_4f32x): Likewise.
12949         [__HAVE_FLOAT32X && __USE_GNU] (M_1_PIf32x): Likewise.
12950         [__HAVE_FLOAT32X && __USE_GNU] (M_2_PIf32x): Likewise.
12951         [__HAVE_FLOAT32X && __USE_GNU] (M_2_SQRTPIf32x): Likewise.
12952         [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT2f32x): Likewise.
12953         [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT1_2f32x): Likewise.
12954         [__HAVE_FLOAT64X && __USE_GNU] (M_Ef64x): Likewise.
12955         [__HAVE_FLOAT64X && __USE_GNU] (M_LOG2Ef64x): Likewise.
12956         [__HAVE_FLOAT64X && __USE_GNU] (M_LOG10Ef64x): Likewise.
12957         [__HAVE_FLOAT64X && __USE_GNU] (M_LN2f64x): Likewise.
12958         [__HAVE_FLOAT64X && __USE_GNU] (M_LN10f64x): Likewise.
12959         [__HAVE_FLOAT64X && __USE_GNU] (M_PIf64x): Likewise.
12960         [__HAVE_FLOAT64X && __USE_GNU] (M_PI_2f64x): Likewise.
12961         [__HAVE_FLOAT64X && __USE_GNU] (M_PI_4f64x): Likewise.
12962         [__HAVE_FLOAT64X && __USE_GNU] (M_1_PIf64x): Likewise.
12963         [__HAVE_FLOAT64X && __USE_GNU] (M_2_PIf64x): Likewise.
12964         [__HAVE_FLOAT64X && __USE_GNU] (M_2_SQRTPIf64x): Likewise.
12965         [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT2f64x): Likewise.
12966         [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT1_2f64x): Likewise.
12967         [__HAVE_FLOAT128X && __USE_GNU]: Use #error.
12968
12969 2017-10-30  Florian Weimer  <fweimer@redhat.com>
12970
12971         * elf/ldconfig.c (search_dir): Assume that _DIRENT_HAVE_D_TYPE is
12972         always defined.
12973         * io/tst-mkdirat.c (do_test): Likewise.
12974         * io/tst-mkfifoat.c (do_test): Likewise.
12975         * io/tst-mknodat.c (do_test): Likewise.
12976         * locale/programs/charmap-dir.c (charmap_readdir): Likewise.
12977         * locale/programs/locale.c (select_dirs): Likewise.
12978         * locale/programs/locarchive.c (add_locales_to_archive): Likewise.
12979         * posix/bug-glob2.c (my_readdir): Likewise.
12980         * posix/tst-dir.c (main): Likewise.
12981         * posix/tst-glob_lstat_compat.c (my_readdir): Likewise.
12982         * posix/tst-gnuglob-skeleton.c (my_readdir): Likewise.
12983
12984 2017-10-30  Florian Weimer  <fweimer@redhat.com>
12985
12986         * string/strings.h (ffsl, ffsll): Declare under __USE_MISC, not
12987         just __USE_GNU.
12988
12989 2017-10-30  Florian Weimer  <fweimer@redhat.com>
12990
12991         * posix/tst-gnuglob-skeleton.c: Renamed from tst-gnuglob.c.
12992         Convert to support/test-driver.c.
12993         (GLOB_FUNC, GLOB_TYPE, GLOBFREE_FUNC, DIRENT_STRUCT, STAT_STRUCT):
12994         New macro parameters.
12995         (PRINTF): Remove macro.  Use test_verbose conditionals instead.
12996         * posix/tst-gnuglob.c: New file.
12997         * posix/tst-gnuglob64.c: Likewise.
12998         * posix/Makefile (tests): Add tst-gnuglob64.
12999
13000 2017-10-30  Michal Ostrowski  <ostrowski.michal@gmail.com>
13001
13002         [BZ #19485]
13003         * localedata/locales/csb_PL (LC_TIME): Fix “abmon” for March
13004         and use a better translation for March in “mon”.
13005         * localedata/locales/csb_PL: Use more ASCII to improve the
13006         readability of the source.
13007
13008 2017-10-30  Mike FABIAN  <mfabian@redhat.com>
13009
13010         [BZ #13953]
13011         * localedata/locales/km_KH: Use ASCII as much
13012         as possible for better readability of the source and
13013         remove useless comments.
13014         * localedata/locales/km_KH (LC_TIME): Remove era stuff, it
13015         was commented out and apparently wrong anyway because it was
13016         using Lao characters. If Buddhist era should be used
13017         for km_KH, a native speaker should write the correct formaat
13018         for Khmer.
13019         * localedata/locales/km_KH (LC_TIME): Add first_weekday 1
13020         (According to CLDR, the first weekday for Cambodia is Sunday).
13021         * localedata/locales/km_KH (LC_NAME): Remove name_mr and name_mrs
13022         (These were using Lao characters which must be wrong. If we get
13023         the correct data from a native speaker, we could add it back, until
13024         then it is better not to have name_mr and name_mrs at all than
13025         having it wrong).
13026
13027 2017-10-27  Rafal Luzynski  <digitalfreak@lingonborough.com>
13028
13029         * locale/loadlocale.c: Correct size of
13030         _nl_value_type_LC_<category> arrays.
13031
13032 2017-10-27  Joseph Myers  <joseph@codesourcery.com>
13033
13034         * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
13035         Include <bits/mathcalls-helper-functions.h> and <bits/mathcalls.h>
13036         with appropriate macros defined and undefined.
13037         [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
13038         [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
13039         [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
13040         [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
13041         [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
13042
13043 2017-10-27  H.J. Lu  <hongjiu.lu@intel.com>
13044
13045         * sysdeps/i386/fpu/libm-test-ulps: Regenerated for GCC 7 with
13046         "-O2 -march=i586".
13047
13048 2017-10-27  Mike FABIAN  <mfabian@redhat.com>
13049
13050         * localedata/locales/tt_RU (LC_MESSAGES): Start yesstr and nostr
13051         with lowercase letters to make it agree with CLDR.
13052
13053 2017-10-27  Mike FABIAN  <mfabian@redhat.com>
13054
13055         [BZ #15260]
13056         * localedata/locales/doi_IN (LC_MESSAGES): Match only for the
13057         first letters of yesstr and nostr in yesexpr and noexpr,
13058         not for the full words.
13059         * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
13060         * localedata/locales/kok_IN (LC_MESSAGES): Likewise.
13061         * localedata/locales/mr_IN (LC_MESSAGES): Likewise.
13062         * localedata/locales/sat_IN (LC_MESSAGES): Likewise.
13063         * localedata/locales/km_KH (LC_MESSAGES): Match also for the
13064         first letters of yesstr and nostr in yesexpr and noexpr,
13065         until now only English was matched in yesexpr and noexpr.
13066         * localedata/locales/tl_PH (LC_MESSAGES): Use “copy "fil_PH"”
13067         instead of “copy "en_US"”. CLDR has yesstr and nostr data for
13068         fil but not for tl. As tl and fil are very similar, using fil
13069         is probably better than using English.
13070
13071 2017-10-27  Thierry Vignaud  <thierry.vignaud@gmail.com>
13072
13073         [BZ #21706]
13074         * localedata/locales/br_FR (LC_MESSAGES): Use all lowercase
13075         in yesstr and nostr.
13076
13077 2017-10-26  Joseph Myers  <joseph@codesourcery.com>
13078
13079         * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
13080         (IEC_60559_TYPES_EXT)] (SNANF16): New macro.
13081         [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32):
13082         Likewise.
13083         [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64):
13084         Likewise.
13085         [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32X):
13086         Likewise.
13087         [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64X):
13088         Likewise.
13089         [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
13090         (SNANF128X): Likewise.
13091
13092         * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
13093         (IEC_60559_TYPES_EXT)] (HUGE_VAL_F16): New macro.
13094         [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
13095         (HUGE_VAL_F32): Likewise.
13096         [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
13097         (HUGE_VAL_F64): Likewise.
13098         [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
13099         (HUGE_VAL_F32X): Likewise.
13100         [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
13101         (HUGE_VAL_F64X): Likewise.
13102         [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
13103         (HUGE_VAL_F128X): Likewise.
13104
13105 2017-10-26  Thierry Vignaud  <thierry.vignaud@gmail.com>
13106
13107         * localedata/locales/br_FR (LC_IDENTIFICATON): Add
13108         Thierry Vignaud <thierry.vignaud@gmail.com> as the contact
13109         for the br_FR locale.
13110
13111 2017-10-26  Thierry Vignaud  <thierry.vignaud@gmail.com>
13112
13113         [BZ #21706]
13114         * localedata/locales/br_FR (LC_MESSAGES): Fix nostr.
13115
13116 2017-10-25  Carlos O'Donell  <carlos@redhat.com>
13117
13118         * locale/programs/record-status.h: Define globals, and function
13119         prototypes. Move function bodies...
13120         * locale/programs/record-status.c: ... to here. New file.
13121         * iconv/Makefile (iconv_prog-modules): Add record-status.
13122         * locale/Makefile (lib-modules): Likewise.
13123         * iconv/iconv_prog.c: Remove verbose.
13124         * iconv/iconv_prog.h: Include record-status.h (defines verbose).
13125         * locale/programs/charmap.c (charmap_read): If warn_ascii is true then
13126         record a warning about ASCII compatibility.
13127         * locale/programs/ld-monetary.c (monetary_finish): If
13128         warn_int_curr_symbol is true then record a warning about the symbol
13129         not being in our ISO 4217 list.
13130         * locale/programs/locale.c: Include record-status.h. Remove verbose.
13131         * locale/programs/localedef.c: Include ctype.h. Remove delcaration of
13132         verbose, recorded_warning_count, recorded_error_count, and be_quiet.
13133         (OPT_NO_WARN): Define.
13134         (OPT_WARN): Define.
13135         (options): Add entry for --no-warnings, and --warnings.
13136         (set_warnings): New function to enable/disable warnings.
13137         (parse_opt): Call set_warnings for OPT_NO_WARN and OPT_WARN.
13138         * locale/programs/localedef.h: Remove warn_int_curr_symbol.
13139         * localedata/gen-locale.sh: Default flags to `--quiet -c'.
13140         Add `--no-warnings=ascii' to locales using SHIFT_JIS or SHIFT_JIXX0213.
13141         Pass flags to generate_locale.
13142         (generate_locale): Accept new flag argument and pass it to localedef
13143         invocation.
13144         * localedata/Makefile (INSTALL-SUPPORTED-LOCALES): Use
13145         --no-warnings=ascii for SHIFT_JIS and SHIFT_JISX0213 charmaps.
13146
13147         * localedata/Makefile (test-input-data): Use full file name.
13148         * localedata/da_DK.in: Rename to...
13149         * localedata/da_DK.ISO-8859-1.in: ...this.
13150         * localedata/de_DE.in: Rename to...
13151         * localedata/de_DE.ISO-8859-1.in: ...this.
13152         * localedata/en_US.in: Rename to...
13153         * localedata/en_US.ISO-8859-1.in: ...this.
13154         * localedata/fr_FR.in: Rename to...
13155         * localedata/fr_FR.UTF-8.in: ... this.
13156         * localedata/hr_HR.in: Rename to...
13157         * localedata/hr_HR.ISO-8859-2.in: ...this.
13158         * localedata/hu_HU.in: Rename to...
13159         * localedata/hu_HU.UTF-8.in: ...this.
13160         * localedata/si_LK.in: Rename to...
13161         * localedata/si_LK.UTF-8.in: ...this.
13162         * localedata/sv_SE.in: Rename to...
13163         * localedata/sv_SE.ISO-8859-1.in: ...this.
13164         * localedata/tr_TR.in: Rename to...
13165         * localedata/tr_TR.UTF-8.in: ...this.
13166         * localedata/uk_UA.in: Rename to...
13167         * localedata/uk_UA.UTF-8.in: ...this.
13168         * localedata/sort-test.sh: Test file is locale name with the
13169         suffix.
13170
13171         * localedata/unicode-gen/Makefile (check_i18n): Rename to
13172         check_i18n_ctype. Depend on i18n_ctype-report. Check i18n_ctype-report
13173         file.
13174         * localedata/locales/i18n_ctype: Regenerate.
13175         * localedata/locales/tr_TR: Likewise.
13176         * localedata/locales/translit_circle: Likewise.
13177         * localedata/locales/translit_cjk_compat: Likewise.
13178         * localedata/locales/translit_combining: Likewise.
13179         * localedata/locales/translit_compat: Likewise.
13180         * localedata/locales/translit_font: Likewise.
13181         * localedata/locales/translit_fraction: Likewise.
13182
13183 2017-10-25  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
13184
13185         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Replace
13186         lxvd2x/stxvd2x with lvx/stvx.
13187         * sysdeps/powerpc/powerpc64/power7/memmove.S: Likewise.
13188
13189 2017-10-25  H.J. Lu  <hongjiu.lu@intel.com>
13190
13191         * include/alloc_buffer.h: Replace "if if " with "if " in
13192         comments.
13193         * sysdeps/mips/memcpy.S: Likkewise.
13194         * sysdeps/mips/memset.S: Likewise.
13195         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
13196         Likewise.
13197         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S:
13198         Likewise.
13199         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S:
13200         Likewise.
13201
13202 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
13203
13204         [BZ #15261]
13205         * localedata/locales/cmn_TW (LC_MESSAGES): Add fullwidth yYnN to
13206         yesexpr and noexpr.
13207         * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
13208         * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
13209         * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
13210         * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
13211         * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
13212         * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
13213         * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
13214
13215 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
13216
13217         * localedata/locales/am_ET (LC_MESSAGES): Sync with CLDR.
13218         * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
13219         * localedata/locales/el_GR (LC_MESSAGES): Likewise.
13220         * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
13221         * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
13222         * localedata/locales/mfe_MU (LC_MESSAGES): Likewise.
13223         * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
13224         * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
13225         * localedata/locales/os_RU (LC_MESSAGES): Likewise.
13226         * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
13227         * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
13228         * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
13229
13230 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
13231
13232         * localedata/locales/aa_ET (LC_MESSAGES): Use ASCII as much
13233         as possible for better readability of the source.
13234         * localedata/locales/af_ZA (LC_MESSAGES): Likewise.
13235         * localedata/locales/ak_GH (LC_MESSAGES): Likewise.
13236         * localedata/locales/am_ET (LC_MESSAGES): Likewise.
13237         * localedata/locales/anp_IN (LC_MESSAGES): Likewise.
13238         * localedata/locales/ar_EG (LC_MESSAGES): Likewise.
13239         * localedata/locales/as_IN (LC_MESSAGES): Likewise.
13240         * localedata/locales/ast_ES (LC_MESSAGES): Likewise.
13241         * localedata/locales/ayc_PE (LC_MESSAGES): Likewise.
13242         * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
13243         * localedata/locales/az_IR (LC_MESSAGES): Likewise.
13244         * localedata/locales/be_BY (LC_MESSAGES): Likewise.
13245         * localedata/locales/be_BY@latin (LC_MESSAGES): Likewise.
13246         * localedata/locales/bem_ZM (LC_MESSAGES): Likewise.
13247         * localedata/locales/ber_MA (LC_MESSAGES): Likewise.
13248         * localedata/locales/bg_BG (LC_MESSAGES): Likewise.
13249         * localedata/locales/bhb_IN (LC_MESSAGES): Likewise.
13250         * localedata/locales/bi_VU (LC_MESSAGES): Likewise.
13251         * localedata/locales/bo_CN (LC_MESSAGES): Likewise.
13252         * localedata/locales/br_FR (LC_MESSAGES): Likewise.
13253         * localedata/locales/bs_BA (LC_MESSAGES): Likewise.
13254         * localedata/locales/ca_ES (LC_MESSAGES): Likewise.
13255         * localedata/locales/ce_RU (LC_MESSAGES): Likewise.
13256         * localedata/locales/crh_UA (LC_MESSAGES): Likewise.
13257         * localedata/locales/cs_CZ (LC_MESSAGES): Likewise.
13258         * localedata/locales/csb_PL (LC_MESSAGES): Likewise.
13259         * localedata/locales/cv_RU (LC_MESSAGES): Likewise.
13260         * localedata/locales/cy_GB (LC_MESSAGES): Likewise.
13261         * localedata/locales/da_DK (LC_MESSAGES): Likewise.
13262         * localedata/locales/de_DE (LC_MESSAGES): Likewise.
13263         * localedata/locales/dv_MV (LC_MESSAGES): Likewise.
13264         * localedata/locales/dz_BT (LC_MESSAGES): Likewise.
13265         * localedata/locales/el_GR (LC_MESSAGES): Likewise.
13266         * localedata/locales/en_CA (LC_MESSAGES): Likewise.
13267         * localedata/locales/en_US (LC_MESSAGES): Likewise.
13268         * localedata/locales/es_ES (LC_MESSAGES): Likewise.
13269         * localedata/locales/et_EE (LC_MESSAGES): Likewise.
13270         * localedata/locales/eu_ES (LC_MESSAGES): Likewise.
13271         * localedata/locales/fa_IR (LC_MESSAGES): Likewise.
13272         * localedata/locales/ff_SN (LC_MESSAGES): Likewise.
13273         * localedata/locales/fi_FI (LC_MESSAGES): Likewise.
13274         * localedata/locales/fil_PH (LC_MESSAGES): Likewise.
13275         * localedata/locales/fo_FO (LC_MESSAGES): Likewise.
13276         * localedata/locales/fr_BE (LC_MESSAGES): Likewise.
13277         * localedata/locales/fr_CH (LC_MESSAGES): Likewise.
13278         * localedata/locales/fr_FR (LC_MESSAGES): Likewise.
13279         * localedata/locales/fr_LU (LC_MESSAGES): Likewise.
13280         * localedata/locales/fur_IT (LC_MESSAGES): Likewise.
13281         * localedata/locales/fy_DE (LC_MESSAGES): Likewise.
13282         * localedata/locales/ga_IE (LC_MESSAGES): Likewise.
13283         * localedata/locales/gd_GB (LC_MESSAGES): Likewise.
13284         * localedata/locales/gl_ES (LC_MESSAGES): Likewise.
13285         * localedata/locales/gu_IN (LC_MESSAGES): Likewise.
13286         * localedata/locales/gv_GB (LC_MESSAGES): Likewise.
13287         * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
13288         * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
13289         * localedata/locales/he_IL (LC_MESSAGES): Likewise.
13290         * localedata/locales/hif_FJ (LC_MESSAGES): Likewise.
13291         * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
13292         * localedata/locales/hr_HR (LC_MESSAGES): Likewise.
13293         * localedata/locales/hsb_DE (LC_MESSAGES): Likewise.
13294         * localedata/locales/ht_HT (LC_MESSAGES): Likewise.
13295         * localedata/locales/hu_HU (LC_MESSAGES): Likewise.
13296         * localedata/locales/hy_AM (LC_MESSAGES): Likewise.
13297         * localedata/locales/ia_FR (LC_MESSAGES): Likewise.
13298         * localedata/locales/id_ID (LC_MESSAGES): Likewise.
13299         * localedata/locales/ig_NG (LC_MESSAGES): Likewise.
13300         * localedata/locales/ik_CA (LC_MESSAGES): Likewise.
13301         * localedata/locales/is_IS (LC_MESSAGES): Likewise.
13302         * localedata/locales/it_CH (LC_MESSAGES): Likewise.
13303         * localedata/locales/it_IT (LC_MESSAGES): Likewise.
13304         * localedata/locales/iu_CA (LC_MESSAGES): Likewise.
13305         * localedata/locales/ja_JP (LC_MESSAGES): Likewise.
13306         * localedata/locales/kk_KZ (LC_MESSAGES): Likewise.
13307         * localedata/locales/kl_GL (LC_MESSAGES): Likewise.
13308         * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
13309         * localedata/locales/ks_IN (LC_MESSAGES): Likewise.
13310         * localedata/locales/ku_TR (LC_MESSAGES): Likewise.
13311         * localedata/locales/kw_GB (LC_MESSAGES): Likewise.
13312         * localedata/locales/ky_KG (LC_MESSAGES): Likewise.
13313         * localedata/locales/lb_LU (LC_MESSAGES): Likewise.
13314         * localedata/locales/lg_UG (LC_MESSAGES): Likewise.
13315         * localedata/locales/li_NL (LC_MESSAGES): Likewise.
13316         * localedata/locales/lij_IT (LC_MESSAGES): Likewise.
13317         * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
13318         * localedata/locales/lo_LA (LC_MESSAGES): Likewise.
13319         * localedata/locales/lt_LT (LC_MESSAGES): Likewise.
13320         * localedata/locales/lv_LV (LC_MESSAGES): Likewise.
13321         * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
13322         * localedata/locales/mg_MG (LC_MESSAGES): Likewise.
13323         * localedata/locales/mhr_RU (LC_MESSAGES): Likewise.
13324         * localedata/locales/mi_NZ (LC_MESSAGES): Likewise.
13325         * localedata/locales/mk_MK (LC_MESSAGES): Likewise.
13326         * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
13327         * localedata/locales/mn_MN (LC_MESSAGES): Likewise.
13328         * localedata/locales/ms_MY (LC_MESSAGES): Likewise.
13329         * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
13330         * localedata/locales/my_MM (LC_MESSAGES): Likewise.
13331         * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
13332         * localedata/locales/nan_TW@latin (LC_MESSAGES): Likewise.
13333         * localedata/locales/nb_NO (LC_MESSAGES): Likewise.
13334         * localedata/locales/nds_DE (LC_MESSAGES): Likewise.
13335         * localedata/locales/nds_NL (LC_MESSAGES): Likewise.
13336         * localedata/locales/ne_NP (LC_MESSAGES): Likewise.
13337         * localedata/locales/nhn_MX (LC_MESSAGES): Likewise.
13338         * localedata/locales/niu_NU (LC_MESSAGES): Likewise.
13339         * localedata/locales/nl_NL (LC_MESSAGES): Likewise.
13340         * localedata/locales/nn_NO (LC_MESSAGES): Likewise.
13341         * localedata/locales/nr_ZA (LC_MESSAGES): Likewise.
13342         * localedata/locales/nso_ZA (LC_MESSAGES): Likewise.
13343         * localedata/locales/oc_FR (LC_MESSAGES): Likewise.
13344         * localedata/locales/om_ET (LC_MESSAGES): Likewise.
13345         * localedata/locales/or_IN (LC_MESSAGES): Likewise.
13346         * localedata/locales/os_RU (LC_MESSAGES): Likewise.
13347         * localedata/locales/pa_IN (LC_MESSAGES): Likewise.
13348         * localedata/locales/pa_PK (LC_MESSAGES): Likewise.
13349         * localedata/locales/pap_AW (LC_MESSAGES): Likewise.
13350         * localedata/locales/pap_CW (LC_MESSAGES): Likewise.
13351         * localedata/locales/pl_PL (LC_MESSAGES): Likewise.
13352         * localedata/locales/ps_AF (LC_MESSAGES): Likewise.
13353         * localedata/locales/pt_BR (LC_MESSAGES): Likewise.
13354         * localedata/locales/quz_PE (LC_MESSAGES): Likewise.
13355         * localedata/locales/raj_IN (LC_MESSAGES): Likewise.
13356         * localedata/locales/ro_RO (LC_MESSAGES): Likewise.
13357         * localedata/locales/ru_RU (LC_MESSAGES): Likewise.
13358         * localedata/locales/ru_UA (LC_MESSAGES): Likewise.
13359         * localedata/locales/rw_RW (LC_MESSAGES): Likewise.
13360         * localedata/locales/sa_IN (LC_MESSAGES): Likewise.
13361         * localedata/locales/sc_IT (LC_MESSAGES): Likewise.
13362         * localedata/locales/sd_IN@devanagari (LC_MESSAGES): Likewise.
13363         * localedata/locales/se_NO (LC_MESSAGES): Likewise.
13364         * localedata/locales/sgs_LT (LC_MESSAGES): Likewise.
13365         * localedata/locales/si_LK (LC_MESSAGES): Likewise.
13366         * localedata/locales/sk_SK (LC_MESSAGES): Likewise.
13367         * localedata/locales/sl_SI (LC_MESSAGES): Likewise.
13368         * localedata/locales/sm_WS (LC_MESSAGES): Likewise.
13369         * localedata/locales/so_DJ (LC_MESSAGES): Likewise.
13370         * localedata/locales/sq_AL (LC_MESSAGES): Likewise.
13371         * localedata/locales/sr_RS (LC_MESSAGES): Likewise.
13372         * localedata/locales/sr_RS@latin (LC_MESSAGES): Likewise.
13373         * localedata/locales/ss_ZA (LC_MESSAGES): Likewise.
13374         * localedata/locales/st_ZA (LC_MESSAGES): Likewise.
13375         * localedata/locales/sv_SE (LC_MESSAGES): Likewise.
13376         * localedata/locales/sw_KE (LC_MESSAGES): Likewise.
13377         * localedata/locales/szl_PL (LC_MESSAGES): Likewise.
13378         * localedata/locales/tcy_IN (LC_MESSAGES): Likewise.
13379         * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
13380         * localedata/locales/th_TH (LC_MESSAGES): Likewise.
13381         * localedata/locales/the_NP (LC_MESSAGES): Likewise.
13382         * localedata/locales/ti_ER (LC_MESSAGES): Likewise.
13383         * localedata/locales/tk_TM (LC_MESSAGES): Likewise.
13384         * localedata/locales/tn_ZA (LC_MESSAGES): Likewise.
13385         * localedata/locales/to_TO (LC_MESSAGES): Likewise.
13386         * localedata/locales/tr_TR (LC_MESSAGES): Likewise.
13387         * localedata/locales/ts_ZA (LC_MESSAGES): Likewise.
13388         * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
13389         * localedata/locales/tt_RU@iqtelif (LC_MESSAGES): Likewise.
13390         * localedata/locales/uk_UA (LC_MESSAGES): Likewise.
13391         * localedata/locales/unm_US (LC_MESSAGES): Likewise.
13392         * localedata/locales/ur_IN (LC_MESSAGES): Likewise.
13393         * localedata/locales/ur_PK (LC_MESSAGES): Likewise.
13394         * localedata/locales/uz_UZ (LC_MESSAGES): Likewise.
13395         * localedata/locales/uz_UZ@cyrillic (LC_MESSAGES): Likewise.
13396         * localedata/locales/ve_ZA (LC_MESSAGES): Likewise.
13397         * localedata/locales/vi_VN (LC_MESSAGES): Likewise.
13398         * localedata/locales/wa_BE (LC_MESSAGES): Likewise.
13399         * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
13400         * localedata/locales/xh_ZA (LC_MESSAGES): Likewise.
13401         * localedata/locales/yi_US (LC_MESSAGES): Likewise.
13402         * localedata/locales/yo_NG (LC_MESSAGES): Likewise.
13403         * localedata/locales/yue_HK (LC_MESSAGES): Likewise.
13404         * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
13405         * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
13406         * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
13407         * localedata/locales/zu_ZA (LC_MESSAGES): Likewise.
13408
13409 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
13410
13411         * localedata/locales/brx_IN (LC_MESSAGES): Fix yesexpr and noexpr
13412         (Use first letters of yesstr and nostr correctly instead of using
13413         full words).
13414
13415 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
13416
13417         * localedata/locales/ta_IN (LC_MESSAGES): Fix yesexpr and noexpr
13418         (Use first letters of yesstr and nostr correctly).
13419
13420 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
13421
13422         * localedata/locales/hi_IN (LC_MESSAGES): In yesexpr and noexpr,
13423         also check for the first characters of yesstr and nostr.
13424         * localedata/locales/kn_IN (LC_MESSAGES): Likewise.
13425         * localedata/locales/ks_IN@devanagari (LC_MESSAGES): Likewise.
13426
13427 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
13428
13429         * localedata/locales/cmn_TW (LC_MESSAGES): In yesexpr and noexpr,
13430         also check for Chinese characters.
13431
13432 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
13433
13434         * localedata/locales/chr_US (LC_MESSAGES): In yesexpr and noexpr,
13435         match also for the contents of yesstr and nostr. As the first letter
13436         of yesstr and nostr is equal, checking only for the first letter
13437         is not enough.
13438
13439 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
13440
13441         * localedata/locales/ber_DZ (LC_MESSAGES): Use copy "kab_DZ",
13442         it is the same according to  Belkacem Mohammed <belkacem77@gmail.com>.
13443
13444 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
13445
13446         * localedata/locales/kab_DZ (LC_IDENTIFICATION): Add e-mail
13447         of main contributor.
13448
13449 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
13450
13451         * localedata/locales/zh_SG (LC_MESSAGES): Use copy "zh_CN"
13452         instead of using English.
13453
13454 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
13455
13456         * localedata/locales/ug_CN (LC_MESSAGES): Fix noexpr and yesexpr
13457         by including the first letters of nostr and yesexpr in the regexp.
13458         Also make it more readable by using ASCII where possible.
13459
13460 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
13461
13462         * localedata/locales/te_IN (LC_MESSAGES): Fix noexpr by including
13463         the first letter of nostr in the regexp. It agrees with CLDR now.
13464         Also make it more readable by using ASCII where possible.
13465
13466 2017-10-24  Mike FABIAN  <mfabian@redhat.com>
13467
13468         * localedata/locales/km_KH (LC_MESSAGES): Fix yestr and nostr.
13469         The yesstr and nostr apparently came from CLDR. And CLDR has a bug there:
13470         these strings contain a U+17D6 (which somewhat looks like a colon)
13471         instead of a real colon to separate the full words for “yes”
13472         and “no” from the single letter responses.
13473
13474 2017-10-24  Mike FABIAN  <mfabian@redhat.com>
13475
13476         * localedata/locales/ka_GE (LC_MESSAGES): Fix yesexp to make
13477         it agree with CLDR (include the first letter of yesstr).
13478         Also make it more readable by using ASCII where possible.
13479
13480 2017-10-24  Mike FABIAN  <mfabian@redhat.com>
13481
13482         * localedata/locales/mr_IN (LC_MESSAGES): Fix yesstr and nostr
13483         and improve yesexpr and noexpr. The yesstr and nostr apparently
13484         came from CLDR. And CLDR has a bug there: these strings contain
13485         a U+0903 (which looks like a colon) instead of a real colon
13486         to separate the full words for “yes” and “no” from the single
13487         letter responses.
13488
13489 2017-10-24  Mike FABIAN  <mfabian@redhat.com>
13490
13491         * localedata/locales/bn_BD (LC_MESSAGES): Use only the first
13492         letters of the full yesstr and nostr in yesexpr and noexpr.
13493
13494 2017-10-24  Mike FABIAN  <mfabian@redhat.com>
13495
13496         * localedata/locales/an_ES (LC_MESSAGES): Add yesstr and nostr.
13497         * localedata/locales/an_ES (LC_ADDRESS): Add lang_term and lang_lib.
13498         * localedata/locales/an_ES: Make source more readable by using ASCII
13499         where possible.
13500
13501 2017-10-24  Mike FABIAN  <mfabian@redhat.com>
13502
13503         [BZ #20952]
13504         * localedata/locales/yuw_PG: New file.
13505         * localedata/SUPPORTED: Add yuw_PG/UTF-8.
13506         * locale/iso-639.def: Add Yau (Uruwa).
13507
13508 2017-10-23  Wilco Dijkstra  <wdijkstr@arm.com>
13509
13510         * malloc/malloc.c (_int_malloc): Add SINGLE_THREAD_P path.
13511
13512 2017-10-23  Wilco Dijkstra  <wdijkstr@arm.com>
13513
13514         * malloc/malloc.c (__libc_malloc): Add SINGLE_THREAD_P path.
13515         (__libc_realloc): Likewise.
13516         (_mid_memalign): Likewise.
13517         (__libc_calloc): Likewise.
13518
13519 2017-10-23  Mike FABIAN  <mfabian@redhat.com>
13520
13521         * localedata/locales/tpi_PG (LC_MESSAGES): Fix yesexpr and noexpr
13522         by adding the generic +1 and -0 as in all other locales.
13523         * localedata/locales/tpi_PG (LC_TIME): Fix some typos in the month and
13524         day names and make it more readable by using ASCII where possible.
13525
13526 2017-10-24  Joseph Myers  <joseph@codesourcery.com>
13527
13528         * sysdeps/x86/fpu/fix-fp-int-compare-invalid.h
13529         (FIX_COMPARE_INVALID): Define to 0 if [__GNUC_PREREQ (8, 0)].
13530
13531 2017-10-23  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
13532
13533         * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Use 0 instead of
13534         WNOHANG in waitpid call.
13535
13536 2017-10-23  Siddhesh Poyarekar  <siddhesh@sourceware.org>
13537
13538         * manual/conf.texi (_SC_LEVEL1_DCACHE_LINESIZE,
13539         _SC_LEVEL1_ICACHE_LINESIZE): Document aarch64 caveat.
13540
13541         * manual/conf.texi (_SC_LEVEL1_ICACHE_SIZE,
13542         _SC_LEVEL1_ICACHE_ASSOC, _SC_LEVEL1_ICACHE_LINESIZE,
13543         _SC_LEVEL1_DCACHE_SIZE, _SC_LEVEL1_DCACHE_ASSOC,
13544         _SC_LEVEL1_DCACHE_LINESIZE, _SC_LEVEL2_CACHE_SIZE,
13545         _SC_LEVEL2_CACHE_ASSOC, _SC_LEVEL2_CACHE_LINESIZE,
13546         _SC_LEVEL3_CACHE_SIZE, _SC_LEVEL3_CACHE_ASSOC,
13547         _SC_LEVEL3_CACHE_LINESIZE, _SC_LEVEL4_CACHE_SIZE,
13548         _SC_LEVEL4_CACHE_ASSOC, _SC_LEVEL4_CACHE_LINESIZE): New
13549         variables.
13550
13551 2017-10-23  Michael Collison  <michael.collison@arm.com>
13552
13553         * sysdeps/aarch64/fpu/e_sqrt.c (ieee754_sqrt): Replace asm statements
13554         with __builtin_sqrt.
13555         * sysdeps/aarch64/fpu/e_sqrtf.c (ieee754_sqrtf): Replace asm statements
13556         with __builtin_sqrtf.
13557         * sysdeps/aarch64/fpu/s_ceil.c (__ceil): Replace asm statements
13558         with __builtin_ceil.
13559         * sysdeps/aarch64/fpu/s_ceilf.c (__ceilf): Replace asm statements
13560         with __builtin_ceilf.
13561         * sysdeps/aarch64/fpu/s_floor.c (__floor): Replace asm statements
13562         with __builtin_floor.
13563         * sysdeps/aarch64/fpu/s_floorf.c (__floorf): Replace asm statements
13564         with __builtin_floorf.
13565         * sysdeps/aarch64/fpu/s_fma.c (__fma): Replace asm statements
13566         with __builtin_fma.
13567         * sysdeps/aarch64/fpu/s_fmaf.c (__fmaf): Replace asm statements
13568         with __builtin_fmaf.
13569         * sysdeps/aarch64/fpu/s_fmax.c (__fmax): Replace asm statements
13570         with __builtin_fmax.
13571         * sysdeps/aarch64/fpu/s_fmaxf.c (__fmaxf): Replace asm statements
13572         with __builtin_fmaxf.
13573         * sysdeps/aarch64/fpu/s_fmin.c (__fmin): Replace asm statements
13574         with __builtin_fmin.
13575         * sysdeps/aarch64/fpu/s_fminf.c (__fminf): Replace asm statements
13576         with __builtin_fminf.
13577         * sysdeps/aarch64/fpu/s_frint.c: Delete file.
13578         * sysdeps/aarch64/fpu/s_frintf.c: Delete file.
13579         * sysdeps/aarch64/fpu/s_llrint.c (__llrint): Replace asm statements
13580         with builtin_rint and conversion to int.
13581         * sysdeps/aarch64/fpu/s_llrintf.c (__llrintf): Likewise.
13582         * sysdeps/aarch64/fpu/s_llround.c (__llround): Replace asm statements
13583         with builtin_llround.
13584         * sysdeps/aarch64/fpu/s_llroundf.c (__llroundf): Likewise.
13585         * sysdeps/aarch64/fpu/s_lrint.c (__lrint): Replace asm statements
13586         with builtin_rint and conversion to long int.
13587         * sysdeps/aarch64/fpu/s_lrintf.c (__lrintf): Likewise.
13588         * sysdeps/aarch64/fpu/s_lround.c (__lround): Replace asm statements
13589         with builtin_lround.
13590         * sysdeps/aarch64/fpu/s_lroundf.c (__lroundf): Replace asm statements
13591         with builtin_lroundf.
13592         * sysdeps/aarch64/fpu/s_nearbyint.c (__nearbyint): Replace asm
13593         statements with __builtin_nearbyint.
13594         * sysdeps/aarch64/fpu/s_nearbyintf.c (__nearbyintf): Replace asm
13595         statements with __builtin_nearbyintf.
13596         * sysdeps/aarch64/fpu/s_rint.c (__rint): Replace asm statements
13597         with __builtin_rint.
13598         * sysdeps/aarch64/fpu/s_rintf.c (__rintf): Replace asm statements
13599         with __builtin_rintf.
13600         * sysdeps/aarch64/fpu/s_round.c (__round): Replace asm statements
13601         with __builtin_round.
13602         * sysdeps/aarch64/fpu/s_roundf.c (__roundf): Replace asm statements
13603         with __builtin_roundf.
13604         * sysdeps/aarch64/fpu/s_trunc.c (__trunc): Replace asm statements
13605         with __builtin_trunc.
13606         * sysdeps/aarch64/fpu/s_truncf.c (__truncf): Replace asm statements
13607         with __builtin_truncf.
13608         * sysdeps/aarch64/fpu/Makefile: Build e_sqrt[f].c with -fno-math-errno,
13609         and s_l[l]round[f].c too.
13610
13611 2017-10-23  Alan Modra  <amodra@gmail.com>
13612
13613         * sysdeps/powerpc/powerpc64/power8/strncpy.S: Move LR cfi.
13614         Adjust stack after restoring regs.  Add missing LR cfi_restore.
13615
13616 2017-10-23  Alan Modra  <amodra@gmail.com>
13617
13618         * sysdeps/powerpc/powerpc64/power7/strncpy.S: Decrease FRAMESIZE.
13619         Move LR save and frame setup/teardown and LR restore to
13620         immediately around memset call.  Provide cfi.
13621
13622 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
13623
13624         * sysdeps/i386/fpu/e_powf.S: Removed.
13625         * sysdeps/i386/fpu/e_powf_log2_data.c: Likewise.
13626         * sysdeps/i386/fpu/w_powf.c: Likewise.
13627         * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_powf.c.
13628         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
13629         * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
13630         Add e_powf-sse2.
13631         (CFLAGS-e_powf-sse2.c): New.
13632         * sysdeps/i386/i686/fpu/multiarch/e_powf-sse2.c: New file.
13633         * sysdeps/i386/i686/fpu/multiarch/e_powf.c: Likewise.
13634
13635 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
13636
13637         * sysdeps/i386/fpu/e_log2f.S: Removed.
13638         * sysdeps/i386/fpu/e_log2f_data.c: Likewise.
13639         * sysdeps/i386/fpu/w_log2f.c: Likewise.
13640         * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_log2f.c.
13641         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
13642         * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
13643         Add e_log2f-sse2.
13644         (CFLAGS-e_log2f-sse2.c): New.
13645         * sysdeps/i386/i686/fpu/multiarch/e_log2f-sse2.c: New file.
13646         * sysdeps/i386/i686/fpu/multiarch/e_log2f.c: Likewise.
13647
13648 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
13649
13650         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
13651         Add e_powf-fma.
13652         (CFLAGS-e_powf-fma.c): New.
13653         * sysdeps/x86_64/fpu/multiarch/e_powf-fma.c: New file.
13654         * sysdeps/x86_64/fpu/multiarch/e_powf.c: Likewise.
13655
13656 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
13657
13658         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
13659         Add e_log2f-fma.
13660         (CFLAGS-e_log2f-fma.c): New.
13661         * sysdeps/x86_64/fpu/multiarch/e_log2f-fma.c: New file.
13662         * sysdeps/x86_64/fpu/multiarch/e_log2f.c: Likewise.
13663
13664 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
13665
13666         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
13667         Add e_logf-fma.
13668         (CFLAGS-e_logf-fma.c): New.
13669         * sysdeps/x86_64/fpu/multiarch/e_logf-fma.c: New file.
13670         * sysdeps/x86_64/fpu/multiarch/e_logf.c: Likewise.
13671
13672 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
13673
13674         * sysdeps/i386/fpu/e_logf.S: Removed.
13675         * sysdeps/i386/fpu/e_logf_data.c: Likewise.
13676         * sysdeps/i386/fpu/w_logf.c: Likewise.
13677         * sysdeps/i386/i686/fpu/e_logf.S: Likewise.
13678         * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_logf.c.
13679         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
13680         * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
13681         Add e_logf-sse2.
13682         (CFLAGS-e_logf-sse2.c): New.
13683         * sysdeps/i386/i686/fpu/multiarch/e_logf-sse2.c: New file.
13684         * sysdeps/i386/i686/fpu/multiarch/e_logf.c: Likewise.
13685
13686 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
13687
13688         * sysdeps/i386/fpu/e_exp2f.S: Removed.
13689         * sysdeps/i386/fpu/w_exp2f.c: Likewise.
13690         * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_exp2f.c.
13691         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
13692         * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
13693         Add e_exp2f-sse2.
13694         (CFLAGS-e_exp2f-sse2.c): New.
13695         * sysdeps/i386/i686/fpu/multiarch/e_exp2f-sse2.c: New file.
13696         * sysdeps/i386/i686/fpu/multiarch/e_exp2f.c: Likewise.
13697
13698 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
13699
13700         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
13701         Add e_exp2f-fma.
13702         (CFLAGS-e_exp2f-fma.c): New.
13703         * sysdeps/x86_64/fpu/multiarch/e_exp2f-fma.c: New file.
13704         * sysdeps/x86_64/fpu/multiarch/e_exp2f.c: Likewise.
13705
13706 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
13707
13708         * sysdeps/i386/fpu/e_exp2f_data.c: Removed.
13709         * sysdeps/i386/fpu/e_expf.S: Likewise.
13710         * sysdeps/i386/fpu/math_errf.c: Likewise.
13711         * sysdeps/i386/fpu/w_expf.c: Likewise.
13712         * sysdeps/i386/i686/fpu/multiarch/e_expf-ia32.S: Likewise.
13713         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
13714         * sysdeps/i386/i686/fpu/multiarch/w_expf.c: Likewise.
13715         * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_expf.c.
13716         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
13717         * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
13718         Remove e_expf-ia32.
13719         (CFLAGS-e_expf-sse2.c): New.
13720         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.c: New file.
13721         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Rewritten.
13722
13723 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
13724
13725         * sysdeps/x86_64/fpu/e_expf.S: Removed.
13726         * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: Likewise.
13727         * sysdeps/x86_64/fpu/w_expf.c: Likewise.
13728         * sysdeps/x86_64/fpu/libm-test-ulps: Updated for generic
13729         e_expf.c.
13730         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_expf-fma.c):
13731         New.
13732         * sysdeps/x86_64/fpu/multiarch/e_expf-fma.c: New file.
13733         * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
13734         Renamed to ...
13735         (__redirect_expf): This.
13736         (SYMBOL_NAME): Changed to expf.
13737         (__ieee754_expf): Renamed to ...
13738         (__expf): This.
13739         (__GI___expf): This.
13740         (__ieee754_expf): Add strong_alias.
13741         (__expf_finite): Likewise.
13742         (__expf): New.
13743         Include <sysdeps/ieee754/flt-32/e_expf.c>.
13744
13745 2017-10-22  Paul Eggert  <eggert@cs.ucla.edu>
13746
13747         [BZ #22332]
13748         * posix/glob.c (__glob): Fix buffer overflow during GLOB_TILDE
13749         unescaping.
13750
13751 2017-10-21  Florian Weimer  <fweimer@redhat.com>
13752
13753         * posix/Makefile (tests): Add tst-glob-tilde.
13754         (tests-special): Add tst-glob-tilde-mem.out
13755         (tst-glob-tilde-ENV): Set MALLOC_TRACE.
13756         (tst-glob-tilde-mem.out): Add mtrace check.
13757         * posix/tst-glob-tilde.c: New file.
13758
13759 2017-10-20  Joseph Myers  <joseph@codesourcery.com>
13760
13761         * bits/floatn-common.h: New file.
13762         * math/Makefile (headers): Add bits/floatn-common.h.
13763         * bits/floatn.h: Include <bits/floatn-common.h>.
13764         * sysdeps/ia64/bits/floatn.h: Likewise.
13765         * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
13766         * sysdeps/mips/ieee754/bits/floatn.h: Likewise.
13767         * sysdeps/powerpc/bits/floatn.h: Likewise.
13768         * sysdeps/x86/bits/floatn.h: Likewise.
13769
13770 2017-10-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
13771
13772         * configure.ac (libc_cv_gcc_incompatbile_alias): New define:
13773         indicates whether compiler emits an warning for alias for
13774         functions with incompatible types.
13775
13776         [BZ #22273]
13777         * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Handle the case where
13778         the auxiliary process is terminated by a signal before calling _exit
13779         or execve.
13780
13781 2017-10-20  H.J. Lu  <hongjiu.lu@intel.com>
13782
13783         [BZ #21265]
13784         * sysdeps/x86/cpu-features-offsets.sym (XSAVE_STATE_SIZE_OFFSET):
13785         New.
13786         * sysdeps/x86/cpu-features.c: Include <libc-pointer-arith.h>.
13787         (get_common_indeces): Set xsave_state_size, xsave_state_full_size
13788         and bit_arch_XSAVEC_Usable if needed.
13789         (init_cpu_features): Remove bit_arch_Use_dl_runtime_resolve_slow
13790         and bit_arch_Use_dl_runtime_resolve_opt.
13791         * sysdeps/x86/cpu-features.h (bit_arch_Use_dl_runtime_resolve_opt):
13792         Removed.
13793         (bit_arch_Use_dl_runtime_resolve_slow): Likewise.
13794         (bit_arch_Prefer_No_AVX512): Updated.
13795         (bit_arch_MathVec_Prefer_No_AVX512): Likewise.
13796         (bit_arch_XSAVEC_Usable): New.
13797         (STATE_SAVE_OFFSET): Likewise.
13798         (STATE_SAVE_MASK): Likewise.
13799         [__ASSEMBLER__]: Include <cpu-features-offsets.h>.
13800         (cpu_features): Add xsave_state_size and xsave_state_full_size.
13801         (index_arch_Use_dl_runtime_resolve_opt): Removed.
13802         (index_arch_Use_dl_runtime_resolve_slow): Likewise.
13803         (index_arch_XSAVEC_Usable): New.
13804         * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
13805         Support XSAVEC_Usable.  Remove Use_dl_runtime_resolve_slow.
13806         * sysdeps/x86_64/Makefile (tst-x86_64-1-ENV): New if tunables
13807         is enabled.
13808         * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup):
13809         Replace _dl_runtime_resolve_sse, _dl_runtime_resolve_avx,
13810         _dl_runtime_resolve_avx_slow, _dl_runtime_resolve_avx_opt,
13811         _dl_runtime_resolve_avx512 and _dl_runtime_resolve_avx512_opt
13812         with _dl_runtime_resolve_fxsave, _dl_runtime_resolve_xsave and
13813         _dl_runtime_resolve_xsavec.
13814         * sysdeps/x86_64/dl-trampoline.S (DL_RUNTIME_UNALIGNED_VEC_SIZE):
13815         Removed.
13816         (DL_RUNTIME_RESOLVE_REALIGN_STACK): Check STATE_SAVE_ALIGNMENT
13817         instead of VEC_SIZE.
13818         (REGISTER_SAVE_BND0): Removed.
13819         (REGISTER_SAVE_BND1): Likewise.
13820         (REGISTER_SAVE_BND3): Likewise.
13821         (REGISTER_SAVE_RAX): Always defined to 0.
13822         (VMOV): Removed.
13823         (_dl_runtime_resolve_avx): Likewise.
13824         (_dl_runtime_resolve_avx_slow): Likewise.
13825         (_dl_runtime_resolve_avx_opt): Likewise.
13826         (_dl_runtime_resolve_avx512): Likewise.
13827         (_dl_runtime_resolve_avx512_opt): Likewise.
13828         (_dl_runtime_resolve_sse): Likewise.
13829         (_dl_runtime_resolve_sse_vex): Likewise.
13830         (USE_FXSAVE): New.
13831         (_dl_runtime_resolve_fxsave): Likewise.
13832         (USE_XSAVE): Likewise.
13833         (_dl_runtime_resolve_xsave): Likewise.
13834         (USE_XSAVEC): Likewise.
13835         (_dl_runtime_resolve_xsavec): Likewise.
13836         * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve_avx512):
13837         Removed.
13838         (_dl_runtime_resolve_avx512_opt): Likewise.
13839         (_dl_runtime_resolve_avx): Likewise.
13840         (_dl_runtime_resolve_avx_opt): Likewise.
13841         (_dl_runtime_resolve_sse): Likewise.
13842         (_dl_runtime_resolve_sse_vex): Likewise.
13843         (_dl_runtime_resolve_fxsave): New.
13844         (_dl_runtime_resolve_xsave): Likewise.
13845         (_dl_runtime_resolve_xsavec): Likewise.
13846
13847 2017-10-20  Paul Eggert  <eggert@cs.ucla.edu>
13848
13849         [BZ #22320]
13850         CVE-2017-15670
13851         * posix/glob.c (__glob): Fix one-byte overflow.
13852
13853 2017-10-20  Wilco Dijkstra  <wdijkstr@arm.com>
13854
13855         * malloc/malloc.c (sysdep-cancel.h): Add include.
13856
13857 2017-10-20  Wilco Dijkstra  <wdijkstr@arm.com>
13858
13859         * malloc/malloc.c (_int_free): Add SINGLE_THREAD_P fast paths.
13860
13861 2017-10-20  Will Hawkins  <hawkinsw@borlaugic.com>
13862
13863         * resolv/Makefile [$(build-shared)$(have-thread-library) == yesyes]
13864         (tests): Remove $(objpfx)ga_test depdendency.
13865         * resolv/ga_test.c: Remove file.
13866
13867 2017-10-20  Mike FABIAN  <mfabian@redhat.com>
13868
13869         [BZ #18812]
13870         * localedata/SUPPORTED: Add kab_DZ/UTF-8.
13871         * localedata/locales/kab_DZ: New file.
13872
13873 2017-10-20  H.J. Lu  <hongjiu.lu@intel.com>
13874
13875         * sysdeps/m68k/dl-machine.h (elf_machine_load_address): Use
13876         _dl_relocate_static_pie instead of _dl_start to compute load
13877         address in static PIE.
13878
13879 2017-10-20  H.J. Lu  <hongjiu.lu@intel.com>
13880
13881         * sysdeps/m68k/start.S (_start): Check PIC instead of SHARED.
13882
13883 2017-10-20  Mike FABIAN  <mfabian@redhat.com>
13884
13885         [BZ #13605]
13886         * localedata/SUPPORTED: Add shn_MM/UTF-8.
13887         * localedata/locales/shn_MM: New file.
13888
13889 2017-10-20  Florian Weimer  <fweimer@redhat.com>
13890
13891         [BZ #22321]
13892         sysconf: Fix missing definition of UIO_MAXIOV on Linux.
13893         * sysdeps/posix/sysconf.c: Include <sys/uio.h>.
13894         * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-sysconf-iov_max.
13895         (tst-sysconf-iov_max): Link with tst-sysconf-iov_max-uapi.o.
13896         * sysdeps/unix/sysv/linux/tst-sysconf-iov_max.c: New file.
13897         * sysdeps/unix/sysv/linux/tst-sysconf-iov_max-uapi.c: Likewise.
13898
13899 2017-10-19  H.J. Lu  <hongjiu.lu@intel.com>
13900
13901         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
13902
13903 2017-10-19  Joseph Myers  <joseph@codesourcery.com>
13904
13905         * sysdeps/mips/ieee754/bits/floatn.h: New file.
13906
13907         [BZ #22322]
13908         * sysdeps/mips/bits/long-double.h: Move to ....
13909         * sysdeps/mips/ieee754/bits/long-double.h: ... here.
13910
13911 2017-10-19  Wilco Dijkstra  <wdijkstr@arm.com>
13912
13913         * malloc/malloc.c (_int_free): Fix deadlock bug in consistency check.
13914
13915 2017-10-19  Valery Reznic  <valery_reznic@yahoo.com>
13916             H.J. Lu  <hongjiu.lu@intel.com>
13917
13918         [BZ #22299]
13919         * sysdeps/x86/cpu-features.c (init_cpu_features): Don't set
13920         GLRO(dl_platform) to NULL.
13921         * sysdeps/x86_64/Makefile (tests): Add tst-platform-1.
13922         (modules-names): Add tst-platformmod-1 and
13923         x86_64/tst-platformmod-2.
13924         (CFLAGS-tst-platform-1.c): New.
13925         (CFLAGS-tst-platformmod-1.c): Likewise.
13926         (CFLAGS-tst-platformmod-2.c): Likewise.
13927         (LDFLAGS-tst-platformmod-2.so): Likewise.
13928         ($(objpfx)tst-platform-1): Likewise.
13929         ($(objpfx)tst-platform-1.out): Likewise.
13930         (tst-platform-1-ENV): Likewise.
13931         ($(objpfx)x86_64/tst-platformmod-2.os): Likewise.
13932         * sysdeps/x86_64/tst-platform-1.c: New file.
13933         * sysdeps/x86_64/tst-platformmod-1.c: Likewise.
13934         * sysdeps/x86_64/tst-platformmod-2.c: Likewise.
13935
13936 2017-10-19  Mike FABIAN  <mfabian@redhat.com>
13937
13938         [BZ #13994]
13939         * locale/iso-639.def: Add Karbi.
13940         * localedata/SUPPORTED: Add mjw_IN/UTF-8.
13941         * localedata/locales/mjw_IN: New file.
13942
13943 2017-10-18  Joseph Myers  <joseph@codesourcery.com>
13944
13945         * sysdeps/ieee754/ldbl-128/Makeconfig: New file.
13946         * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
13947         * sysdeps/ieee754/ldbl-128/float128-abi.h: Likewise.
13948         * sysdeps/generic/libm-alias-ldouble.h: Include <bits/floatn.h>.
13949         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
13950         (libm_alias_ldouble_other_r): Also create _Float128 alias.
13951         * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Include
13952         <bits/floatn.h>.
13953         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
13954         (libm_alias_ldouble_other_r): Also create _Float128 alias.
13955         * manual/math.texi (Mathematics): Document additional architecture
13956         support for _Float128.
13957         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
13958         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
13959         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
13960         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
13961         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
13962         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
13963         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
13964         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
13965         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
13966         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
13967         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
13968         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
13969         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
13970         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
13971         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
13972
13973 2017-10-18  Renlin Li  <renlin.li@arm.com>
13974
13975         * sysdeps/aarch64/dl-machine.h (elf_machine_load_address): Use
13976         _DYNAMIC symbol to calculate load address.
13977
13978 2017-10-18  Paul A. Clarke  <pc@us.ibm.com>
13979
13980         * sysdeps/powerpc/fpu/fenv_private.h (_FPU_MASK_TRAPS_RN):
13981         (_FPU_MASK_FRAC_INEX_RET_CC): Fix masks to more properly handle
13982         summary bits.
13983         (_FPU_MASK_RN): Expand _FPU_MASK_RN to 64bit hex.
13984         (_FPU_MASK_NOT_RN_NI): Treat bit 52 (left-to-right) as reserved.
13985
13986 2017-10-18  Mike FABIAN  <mfabian@redhat.com>
13987
13988         [BZ #16777]
13989         * localedata/locales/pl_PL (LC_MONETARY): Use U+202F as mon_thousands_sep
13990         and improve readability by using more ASCII.
13991         * localedata/locales/pl_PL (LC_NUMERIC): Use U+202F as thousands_sep
13992         and improve readability by using more ASCII.
13993
13994 2017-10-18  Wilco Dijkstra  <wdijkstr@arm.com>
13995
13996         * malloc/malloc.c (malloc_state): Use int for have_fastchunks since
13997         not all targets support atomics on bool.
13998
13999 2017-10-17  Joseph Myers  <joseph@codesourcery.com>
14000
14001         * include/float.h [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 &&
14002         __GLIBC_USE (IEC_60559_TYPES_EXT)] (FLT128_MAX): Define using
14003         __f128.
14004         [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
14005         (IEC_60559_TYPES_EXT)] (FLT128_EPSILON): Likewise.
14006         [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
14007         (IEC_60559_TYPES_EXT)] (FLT128_MIN): Likewise.
14008         [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
14009         (IEC_60559_TYPES_EXT)] (FLT128_TRUE_MIN): Likewise.
14010
14011 2017-10-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
14012
14013         * bits/uio-ext.h (RWF_HIPRI, RWF_DSYNC, RWF_SYNC, RWF_NOWAIT): New
14014         defines.
14015
14016 2017-10-17  Wilco Dijkstra  <wdijkstr@arm.com>
14017
14018         [BZ #22159]
14019         * malloc/arena.c (ptmalloc_init): Call malloc_init_state.
14020         * malloc/malloc.c (do_check_free_chunk): Fix build bug.
14021         (do_check_remalloced_chunk): Fix build bug.
14022         (do_check_malloc_state): Add assert that checks arena->top.
14023         (malloc_consolidate): Remove initialization.
14024         (int_mallinfo): Remove call to malloc_consolidate.
14025          (__libc_mallopt): Clarify why malloc_consolidate is needed.
14026
14027 2017-10-17  Wilco Dijkstra  <wdijkstr@arm.com>
14028
14029         * malloc/malloc.c (FASTCHUNKS_BIT): Remove.
14030         (have_fastchunks): Remove.
14031         (clear_fastchunks): Remove.
14032         (set_fastchunks): Remove.
14033         (malloc_state): Add have_fastchunks.
14034         (malloc_init_state): Use have_fastchunks.
14035         (do_check_malloc_state): Remove incorrect invariant checks.
14036         (_int_malloc): Use have_fastchunks.
14037         (_int_free): Likewise.
14038         (malloc_consolidate): Likewise.
14039
14040 2017-10-17  Wilco Dijkstra  <wdijkstr@arm.com>
14041
14042         * malloc/malloc.c (tcache_put): Inline.
14043         (tcache_get): Inline.
14044
14045 2017-10-17  Jordi Mallach  <jordi@gnu.org>
14046
14047         Aurelien Jarno  <aurelien@aurel32.net>
14048         [BZ #2522]
14049         * localedata/locales/ca_ES@valencia: New file.
14050         * localedata/SUPPORTED: Add ca_ES@valencia/UTF-8.
14051
14052 2017-10-17  Romain Naour  <romain.naour@gmail.com>  (tiny change)
14053
14054         [BZ #22296]
14055         * math/math.h: Let signbit use the builtin in C++ mode with gcc
14056         < 6.x
14057
14058 2017-10-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
14059
14060         * scripts/build-many-glibcs.py (Context.add_all_configs):
14061         Add arm-linux-gnueabihf multiarch extra_glibcs.
14062
14063         * sysdeps/generic/ifunc-init.h: New file.
14064         * sysdeps/x86/init-arch.h: Use generic ifunc-init.h.
14065
14066 2017-10-17  Mike FABIAN  <mfabian@redhat.com>
14067
14068         [BZ #22019]
14069         * localedata/locales/el_GR: Set n_cs_precedes to 0.
14070         * localedata/locales/el_CY: copy "el_GR" because it is identical.
14071         * stdlib/tst-strfmon_l.c: adapt test case.
14072
14073 2017-10-16  Joseph Myers  <joseph@codesourcery.com>
14074
14075         * sysdeps/generic/float128-abi.h: New file.
14076         * sysdeps/ieee754/float128/Versions (FLOAT128_VERSION): Move
14077         non-__prefixed symbols to ....
14078         * math/Versions: ... here.  Include <float128-abi.h>.
14079         * stdlib/Versions ... and here.  Include <float128-abi.h>
14080
14081 2017-10-16  Florian Weimer  <fweimer@redhat.com>
14082
14083         * version.h (VERSION): Switch to ".9000" as the development
14084         version suffix.
14085
14086 2017-10-16  Florian Weimer  <fweimer@redhat.com>
14087
14088         [BZ #22050]
14089         * malloc/mcheck-init.c (__malloc_initialize_hook): Use
14090         compat_symbol_reference to access non-default version.
14091
14092 2017-10-16  Florian Weimer  <fweimer@redhat.com>
14093
14094         * malloc/Makefile (others-extras): Set to mcheck-init.o.
14095
14096 2017-10-16  Carlos O'Donell  <carlos@redhat.com>
14097
14098         * include/shlib-compat.h (compat_symbol_reference): Update
14099         comment.
14100
14101 2017-10-16  Joseph Myers  <joseph@codesourcery.com>
14102
14103         * math/Makefile (test-types): Add
14104         $(type-float128-$(float128-alias-fcts)).
14105         * math/test-float128.h (TYPE_STR): Define conditional on
14106         [FLT128_MANT_DIG == LDBL_MANT_DIG].
14107         (ULP_IDX): Likewise.
14108         (ULP_I_IDX): Likewise.
14109
14110         * stdlib/strtold.c: Include <bits/floatn.h>
14111         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128): Define
14112         and later undefine as macro.  Define as weak alias if
14113         [!USE_WIDE_CHAR].
14114         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128): Define
14115         and later undefine as macro.  Define as weak alias if
14116         [USE_WIDE_CHAR].
14117         * sysdeps/ieee754/ldbl-128/strtold_l.c [__HAVE_FLOAT128 &&
14118         !__HAVE_DISTINCT_FLOAT128] (strtof128_l): Define and later
14119         undefine as macro.  Define as weak alias if [!USE_WIDE_CHAR].
14120         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
14121         Define and later undefine as macro.  Define as weak alias if
14122         [USE_WIDE_CHAR].
14123         * sysdeps/ieee754/ldbl-64-128/strtold_l.c: Include
14124         <bits/floatn.h>.
14125         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128_l):
14126         Define and later undefine as macro.  Define as weak alias if
14127         [!USE_WIDE_CHAR].
14128         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
14129         Define and later undefine as macro.  Define as weak alias if
14130         [USE_WIDE_CHAR].
14131
14132 2017-10-15  Carlos O'Donell  <carlos@redhat.com>
14133
14134         * localedata/collate-test.c (allocate_arrays): Don't use \n in
14135         record_verbose messages.
14136
14137 2017-10-15  H.J. Lu  <hongjiu.lu@intel.com>
14138
14139         [BZ #22052]
14140         * malloc/hooks.c (realloc_check): Use DIAG_IGNORE_NEEDS_COMMENT
14141         to silence -O3 -Wall warning with GCC 7.
14142
14143 2017-10-14  H.J. Lu  <hongjiu.lu@intel.com>
14144
14145         * Makeconfig (+link-static-before-libc): Use the first of
14146         $(CRT-$(@F)) and $(csu-objpfx)$(static-start-installed-name).
14147         * gmon/Makefile (tests): Add tst-gmon-static.
14148         (tests-static): Likewise.
14149         (CFLAGS-tst-gmon-static.c): New.
14150         (CRT-tst-gmon-static): Likewise.
14151         (DEFAULT-LDFLAGS-tst-gmon-static): Likewise.
14152         (tst-gmon-static-ENV): Likewise.
14153         (tests-special): Likewise.
14154         ($(objpfx)tst-gmon-static.out): Likewise.
14155         (clean-tst-gmon-static-data): Likewise.
14156         ($(objpfx)tst-gmon-static-gprof.out): Likewise.
14157         * gmon/tst-gmon-static-gprof.sh: New file.
14158         * gmon/tst-gmon-static.c: Likewise.
14159
14160 2017-10-13  Carlos O'Donell  <carlos@redhat.com>
14161
14162         [BZ #22295]
14163         * locale/programs/linereader.c (get_string): Don't warn on
14164         non-symbolic character.
14165
14166         [BZ #22294]
14167         * locale/programs/ld-monetary.c (monetary_finish): Allow ""
14168         int_curr_symbol.
14169
14170         [BZ #22292]
14171         * locale/programs/record-status.h: New file
14172         * locale/programs/locale.c: Add comment.
14173         * locale/programs/charmap-dir.c: Don't include error.h.
14174         (charmap_opendir): Use record_error.
14175         * locale/programs/charmap.c: Don't include error.h.
14176         (charmap_read): Use record_error, and record_warning.
14177         (parse_charmap): Likewise.
14178         * locale/programs/ld-address.c: Don't include error.h.
14179         (address_finish): Use record_error, and record_warning.
14180         * locale/programs/ld-collate.c: Don't include error.h.
14181         (collate_finish): Use record_error, and record_error_at_line.
14182         * locale/programs/ld-ctype.c (ctype_finish): Use record_error.
14183         (ctype_class_new): Likewise.
14184         (ctype_map_new): Likewise.
14185         (set_one_default): Likewise.
14186         (set_class_defaults): Likewise.
14187         (translit_flatten): Likewise.
14188         (allocate_arrays): Use record_error, and record_verbose.
14189         * locale/programs/ld-identification.c: Don't include error.h.
14190         (indentation_finish): Use record_error and record_warning.
14191         * locale/programs/ld-measurement.c: Don't include error.h.
14192         (measurement_finish): Use record_error.
14193         * locale/programs/ld-messages.c
14194         (message_finish): Likewise.
14195         * locale/programs/ld-monetary.c
14196         (monetary_finish): Likewise.
14197         * locale/programs/ld-name.c (name_finish): Use record_error
14198         and record_warning.
14199         * locale/programs/ld-numeric.c
14200         (numeric_finish): Use record_error.
14201         * locale/programs/ld-paper.c: Don't include error.h.
14202         (paper_finish): Use record_error.
14203         * locale/programs/ld-telephone.c: Don't include error.h.
14204         (telephone_finish): Use record_error.
14205         * locale/programs/ld-time.c (time_finish): Likewise.
14206         * locale/programs/linereader.h (lr_error): Make inline func.
14207         * locale/programs/localedef.c: Define recorded_warning_count,
14208         and recorded_error_count.
14209         (main): Use record_error. Use recorded_error_count and
14210         recorded_warning_count to issue correct error returns.
14211         (add_to_readlist): Use record_error.
14212         (find_locale): Likewise.
14213         (load_locale): Likewise.
14214         * locale/programs/localedef.h: Remove be_quiet
14215         and WITH_CUR_LOCALE.
14216         * locale/programs/locarchive.c (compare_from_file): Use
14217         record_error.
14218         * locale/programs/locfile.c (write_locale_data): Use
14219         record_error.
14220         * locale/programs/repertoire.c: Dont include error.h.
14221         (repertoire_complain): Use record_error.
14222         * localedata/tst-fmon.sh: Expect failures from localedef.
14223         * localedata/tst-locale.sh: Likewise.
14224         * localedata/gen-locale.sh: Expect failures from SHIFT_JIS.
14225
14226         * localedata/unicode-gen/Makefile (GENERATED): Use i18n_ctype.
14227         (REPORTS): Likewise.
14228         (check): Likewise.
14229         (i18n): Rename to...
14230         (i18n_ctype): ...this.
14231         (i18n-report): Rename to...
14232         (i18n_ctype-report): ...this.
14233         * localedata/locales/i18n_ctype: Regenerate.
14234         * localedata/locales/i18n: copy i18n_ctype.
14235
14236 2017-10-13  Joseph Myers  <joseph@codesourcery.com>
14237
14238         * stdlib/strfroml.c: Include <bits/floatn.h>.
14239         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strfromf128):
14240         Define before include of <stdlib.h> and undefine afterwards, then
14241         define as weak alias.
14242
14243         * sysdeps/ieee754/ldbl-64-128/s_nextafterl.c (weak_alias):
14244         Undefine and restore default definition.  Use
14245         libm_alias_ldouble_other.
14246
14247 2017-10-13  Peter Zelezny  <peter.zelezny@dektech.com.au>
14248
14249         [BZ #22153]
14250         * nptl/allocatestack.c (__nptl_setxid_error): Preserve error code
14251         in coredumps.
14252
14253 2017-10-13  James Clarke  <jrtc27@jrtc27.com>
14254
14255         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
14256         Assign sym_map to be map for local symbols, as TLS relocations
14257         use sym_map to determine whether the symbol is defined and to
14258         extract the TLS information.
14259         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
14260         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
14261
14262 2017-10-13  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
14263
14264         [BZ #22189]
14265         * sysdeps/powerpc/fpu/math_private.h (math_opt_barrier):
14266         (math_force_eval): Add powerpc version.
14267
14268         [BZ #22142]
14269         * stdio-common/tst-printf.c (fp_test): Add tests for DBL_MAX and
14270         -DBL_MAX.
14271         (do_test): Likewise.
14272         * stdio-common/tst-printf.sh: Likewise.
14273         * sysdeps/powerpc/powerpc64/power7/add_n.S: Invert the initial
14274         ifdef clause in order to set the carry bit right.  Replace r0 by
14275         0 without changing the behavior.
14276
14277 2017-10-13  Joseph Myers  <joseph@codesourcery.com>
14278
14279         * sysdeps/sparc/sparc32/fpu/s_fabsl.c: Include
14280         <libm-alias-ldouble.h>.
14281         (fabsl): Define using libm_alias_ldouble.
14282         * sysdeps/sparc/sparc64/fpu/s_fabsl.c: Include
14283         <libm-alias-ldouble.h>.
14284         (fabsl): Define using libm_alias_ldouble.
14285
14286         * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]:
14287         Remove conditional code.
14288
14289         * sysdeps/ieee754/ldbl-opt/s_clog10l.c (__clog10l__internal):
14290         Rename to __clog10_internal_l.
14291         (__clog10_internal_l): Define aliases using
14292         libm_alias_ldouble_other instead of using libm_alias_ldouble_other
14293         with __clog10.
14294
14295 2017-10-13  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
14296
14297         * benchtests/Makefile (bench-math):  Add sinf, cosf and sincosf.
14298         * benchtests/sincosf-inputs: New file.
14299         * benchtests/cosf-inputs: New file.
14300         * benchtests/sinf-inputs: New file.
14301
14302 2017-10-12  Szabolcs Nagy  <szabolcs.nagy@arm.com>
14303
14304         * posix/tst-spawn.c (do_test): Wait for both children.
14305
14306 2017-10-12  H.J. Lu  <hongjiu.lu@intel.com>
14307
14308         [BZ #22284]
14309         * gmon/Makefile [$(have-fpie)$(build-shared) == yesyes] (tests,
14310         tests-pie): Add tst-gmon-pie.
14311         (CFLAGS-tst-gmon-pie.c): New.
14312         (CRT-tst-gmon-pie): Likewise.
14313         (tst-gmon-pie-ENV): Likewise.
14314         [$(have-fpie)$(build-shared) == yesyes] (tests-special): Likewise.
14315         ($(objpfx)tst-gmon-pie.out): Likewise.
14316         (clean-tst-gmon-pie-data): Likewise.
14317         ($(objpfx)tst-gmon-pie-gprof.out): Likewise.
14318         * gmon/gmon.c [PIC]: Include <link.h>.
14319         [PIC] (callback): New function.
14320         (write_hist): Add an argument for load address.  Subtract load
14321         address from PCs.
14322         (write_call_graph): Likewise.
14323         (write_gmon): Call __dl_iterate_phdr to get load address, pass
14324         it to write_hist and write_call_graph.
14325         * gmon/tst-gmon-pie.c: New file.
14326
14327 2017-10-11  Joseph Myers  <joseph@codesourcery.com>
14328
14329         * math/Makefile (test-types-basic): New variable.
14330         (test-types): Likewise.
14331         (libm-test-support): Use $(test-types) instead of $(types).
14332         (libm-tests-base-normal): Likewise.
14333         (libm-tests-base-finite): Likewise.
14334         (libm-tests-base-inline): Likewise.
14335         (generated): Likewise.
14336         ($(objpfx)libm-test-support-$(t).c): Likewise.
14337         (libm-tests-for-type iterator): Likewise.
14338         (libm-test-support iterator): Likewise.
14339         * math/libm-test-support.c (ulp_i_idx): Use ULP_I_IDX.
14340         (ulp_idx): Use ULP_IDX.
14341         * math/test-ldouble.h: Include <float.h>.
14342         (TYPE_STR): Define conditional on [LDBL_MANT_DIG == DBL_MANT_DIG].
14343         (ULP_IDX): New macro.
14344         (ULP_I_IDX): Likewise.
14345         * math/test-double.h (ULP_IDX): Likewise.
14346         (ULP_I_IDX): Likewise.
14347         * math/test-float.h (ULP_IDX): Likewise.
14348         (ULP_I_IDX): Likewise.
14349         * math/test-float128.h (ULP_IDX): Likewise.
14350         (ULP_I_IDX): Likewise.
14351
14352 2017-10-11  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
14353
14354         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Remove file.
14355         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
14356         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
14357         * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h: Likewise.
14358         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
14359         * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h: Likewise.
14360         * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: Likewise.
14361         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
14362         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
14363         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
14364         * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: Likewise.
14365         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
14366         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
14367         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
14368         (SINGLE_THREAD_BY_GLOBAL): Define.
14369         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
14370         Likewise.
14371         * sysdeps/unix/sysv/linux/alpha/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
14372         Likewise.
14373         * sysdeps/unix/sysv/linux/arm/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
14374         Likewise.
14375         * sysdeps/unix/sysv/linux/hppa/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
14376         Likewise.
14377         * sysdeps/unix/sysv/linux/microblaze/sysdep.h
14378         (SINGLE_THREAD_BY_GLOBAL): Likewise.
14379         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
14380         Likewise.
14381
14382 2017-10-11  Andreas Schwab  <schwab@suse.de>
14383
14384         * nis/Makefile (aux): Remove.
14385         * nscd/Makefile (aux): Add nscd_hash.
14386         (nscd-modules): Likewise.
14387         ($(objpfx)nscd): Don't depend on libnsl.
14388         * nscd/nscd_hash.c: New file.
14389         * nscd/nscd_hash.h: Likewise.
14390         * nscd/cache.c: Include "nscd_hash.h" instead of <rpcsvc/nis.h>.
14391         (cache_search, cache_add): Use __nscd_hash instead of __nis_hash.
14392         * nscd/nscd_helper.c: Include <sys/param.h> and "nscd_hash.h"
14393         instead of <nis/rpcsvc/nis.h>.
14394         (__nscd_cache_search): Use __nscd_hash instead of __nis_hash.
14395
14396 2017-10-11  Florian Weimer  <fweimer@redhat.com>
14397
14398         [BZ #22078]
14399         Avoid large NSS buffers with many addresses, aliases.
14400         * nss/nss_files/files-hosts.c (gethostbyname3_multi): Rewrite
14401         using dynarrays and struct alloc_buffer.
14402         * nss/Makefile (tests): Add tst-nss-files-hosts-multi.
14403         (tst-nss-files-hosts-multi): Link with -ldl.
14404         * nss/tst-nss-files-hosts-multi.c: New file.
14405
14406 2017-10-11  Florian Weimer  <fweimer@redhat.com>
14407
14408         [BZ #18023]
14409         * nss/nss_files/files-hosts.c (gethostbyname3_multi): Use struct
14410         scratch_buffer.  Eliminate gotos.
14411
14412 2017-10-11  Joseph Myers  <joseph@codesourcery.com>
14413
14414         * sysdeps/ieee754/ldbl-opt/s_clog10l.c: Use
14415         libm_alias_ldouble_other.
14416         * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (weak_alias): Do not
14417         undefine and redefine.
14418         [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
14419         (exp10l): Do not define here.
14420         * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]
14421         (weak_alias): Undefine and redefine.
14422         [BUILD_LGAMMA]: Use libm_alias_ldouble_other.
14423         * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
14424         [LIBM_SVID_COMPAT] (weak_alias): Undefine and redefine here.
14425         [LIBM_SVID_COMPAT]: Use libm_alias_ldouble_other.
14426
14427         * soft-fp/fmadf4.c: Include <libm-alias-double.h>.
14428         [!__fma] (fma): Define using libm_alias_double.
14429         * soft-fp/fmasf4.c: Include <libm-alias-float.h>.
14430         [!__fmaf] (fmaf): Define using libm_alias_float.
14431         * soft-fp/fmatf4.c: Include <libm-alias-ldouble.h>.
14432         (fmal): Define using libm_alias_ldouble.
14433
14434 2017-10-10  Joseph Myers  <joseph@codesourcery.com>
14435
14436         * sysdeps/generic/libm-alias-double.h (libm_alias_double_other_r):
14437         New macro.
14438         (libm_alias_double_other): Likewise.
14439         (libm_alias_double_r): Use libm_alias_double_other_r.
14440         * sysdeps/generic/libm-alias-float.h (libm_alias_float_other_r):
14441         New macro.
14442         (libm_alias_float_other): Likewise.
14443         (libm_alias_float_r): Use libm_alias_float_other_r.
14444         * sysdeps/generic/libm-alias-float128.h
14445         (libm_alias_float128_other_r): New macro.
14446         (libm_alias_float128_other): Likewise.
14447         (libm_alias_float128_r): Use libm_alias_float128_other_r.
14448         * sysdeps/generic/libm-alias-ldouble.h
14449         (libm_alias_ldouble_other_r): New macro.
14450         (libm_alias_ldouble_other): Likewise.
14451         (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
14452         * sysdeps/ieee754/ldbl-opt/libm-alias-double.h
14453         (libm_alias_double_other_r): New macro.
14454         (libm_alias_double_other): Likewise.
14455         (libm_alias_double_r): Use libm_alias_double_other_r.
14456         * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h
14457         (libm_alias_ldouble_other_r): New macro.
14458         (libm_alias_ldouble_other): Likewise.
14459         (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
14460         * math/w_lgamma_main.c: Include <libm-alias-double.h>.
14461         [!USE_AS_COMPAT]: Use libm_alias_double_other.
14462         * math/w_lgammaf_main.c: Include <libm-alias-float.h>.
14463         [!USE_AS_COMPAT]: Use libm_alias_float_other.
14464         * math/w_lgammal_main.c: Include <libm-alias-ldouble.h>.
14465         [!USE_AS_COMPAT]: Use libm_alias_ldouble_other.
14466         * math/w_exp2f.c: Use libm_alias_float_other.
14467         * math/w_expf.c: Likewise.
14468         * math/w_log2f.c: Likewise.
14469         * math/w_logf.c: Likewise.
14470         * math/w_powf.c: Likewise.
14471         * sysdeps/ieee754/flt-32/e_exp2f.c: Include <libm-alias-float.h>.
14472         [!__exp2f]: Use libm_alias_float_other.
14473         * sysdeps/ieee754/flt-32/e_expf.c: Include <libm-alias-float.h>.
14474         [!__expf]: Use libm_alias_float_other.
14475         * sysdeps/ieee754/flt-32/e_log2f.c: Include <libm-alias-float.h>.
14476         [!__log2f]: Use libm_alias_float_other.
14477         * sysdeps/ieee754/flt-32/e_logf.c: Include <libm-alias-float.h>.
14478         [!__logf]: Use libm_alias_float_other.
14479         * sysdeps/ieee754/flt-32/e_powf.c: Include <libm-alias-float.h>.
14480         [!__powf]: Use libm_alias_float_other.
14481
14482 2017-10-10  Florian Weimer  <fweimer@redhat.com>
14483
14484         * nss/nss_files/files-hosts.c (gethostbyname3_multi): New
14485         function.
14486         (_nss_files_gethostbyname3_r): Call it.
14487
14488 2017-10-09  Joseph Myers  <joseph@codesourcery.com>
14489
14490         * sysdeps/generic/math-type-macros.h [!declare_mgen_alias]: Give
14491         error.  Remove default definition of declare_mgen_alias.
14492         [!declare_mgen_alias_r]: Likewise.
14493         * sysdeps/generic/math-type-macros-double.h
14494         [!declare_mgen_alias_r] (declare_mgen_alias_r): New macro.
14495         * sysdeps/generic/math-type-macros-float.h [!declare_mgen_alias_r]
14496         (declare_mgen_alias_r): Likewise.
14497         * sysdeps/generic/math-type-macros-float128.h
14498         [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
14499         * sysdeps/generic/math-type-macros-ldouble.h
14500         [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
14501         * math/w_lgamma_r_template.c (declare_mgen_alias_r_x): Remove
14502         macro.
14503         (declare_mgen_alias_r_s): Likewise.
14504         (declare_mgen_alias_r): Likewise.
14505         * math/w_lgamma_r_compat.c: Include <libm-alias-double.h>.
14506         (lgamma_r): Define using libm_alias_double_r.
14507         * math/w_lgammaf_r_compat.c: Include <libm-alias-float.h>.
14508         (lgammaf_r): Define using libm_alias_float_r.
14509         * math/w_lgammal_r_compat.c: Include <libm-alias-ldouble.h>.
14510         (lgammal_r): Define using libm_alias_ldouble_r.
14511         * sysdeps/ieee754/ldbl-opt/w_lgamma_r_compat.c: Remove file.
14512         * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
14513
14514 2017-10-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
14515
14516         * lib/glob.c (__glob_pattern_type): Remove now-spurious
14517         extern declaration.
14518
14519 2017-10-09  Joseph Myers  <joseph@codesourcery.com>
14520
14521         * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Remove file.
14522
14523 2017-10-09  Jonathan Wakely  <jwakely@redhat.com>
14524
14525         [BZ #21326]
14526         * include/features.h [__cplusplus >= 201703] (__USE_ISOC11): Define.
14527         [__cplusplus >= 201103] (__USE_ISOC99): Define.
14528         * math/Makefile (test-math-cxx11): New test.
14529         * math/test-math-cxx11.cc: New file.
14530
14531 2017-10-08  Christian Brauner  <christian.brauner@ubuntu.com>
14532
14533         * login/openpty.c (openpty): Close slave pty file descriptor on error.
14534
14535         * login/openpty.c (openpty): If defined, use the TIOCGPTPEER ioctl()
14536         call to allocate the slave pty file descriptor.
14537
14538 2017-10-06  Joseph Myers  <joseph@codesourcery.com>
14539
14540         * sysdeps/ieee754/ldbl-128/s_fma.c: Include <libm-alias-double.h>.
14541         [!__fma] (fma): Define using libm_alias_double.
14542         * sysdeps/ieee754/ldbl-96/s_fma.c: Include <libm-alias-double.h>.
14543         [!__fma] (fma): Define using libm_alias_double.
14544
14545         * sysdeps/ieee754/float128/float128_private.h: Include
14546         <libm-alias-ldouble.h> and <libm-alias-float128.h>.
14547         (libm_alias_ldouble_r): Undefine and redefine.
14548         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Include
14549         <libm-alias-ldouble.h>.
14550         (asinhl): Define using libm_alias_ldouble.
14551         * sysdeps/ieee754/ldbl-128/s_atanl.c: Include
14552         <libm-alias-ldouble.h>.
14553         (atanl): Define using libm_alias_ldouble.
14554         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Include
14555         <libm-alias-ldouble.h>.
14556         (cbrtl): Define using libm_alias_ldouble.
14557         * sysdeps/ieee754/ldbl-128/s_ceill.c: Include
14558         <libm-alias-ldouble.h>.
14559         (ceill): Define using libm_alias_ldouble.
14560         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Include
14561         <libm-alias-ldouble.h>.
14562         (copysignl): Define using libm_alias_ldouble.
14563         * sysdeps/ieee754/ldbl-128/s_cosl.c: Include
14564         <libm-alias-ldouble.h>.
14565         (cosl): Define using libm_alias_ldouble.
14566         * sysdeps/ieee754/ldbl-128/s_erfl.c: Include
14567         <libm-alias-ldouble.h>.
14568         (erfl): Define using libm_alias_ldouble.
14569         (erfcl): Likewise.
14570         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Include
14571         <libm-alias-ldouble.h>.
14572         (expm1l): Define using libm_alias_ldouble.
14573         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Include
14574         <libm-alias-ldouble.h>.
14575         (fabsl): Define using libm_alias_ldouble.
14576         * sysdeps/ieee754/ldbl-128/s_floorl.c: Include
14577         <libm-alias-ldouble.h>.
14578         (floorl): Define using libm_alias_ldouble.
14579         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include
14580         <libm-alias-ldouble.h>.
14581         (fmal): Define using libm_alias_ldouble.
14582         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Include
14583         <libm-alias-ldouble.h>.
14584         (frexpl): Define using libm_alias_ldouble.
14585         * sysdeps/ieee754/ldbl-128/s_fromfpl.c (fromfpl): Define using
14586         libm_alias_ldouble.
14587         * sysdeps/ieee754/ldbl-128/s_fromfpl_main.c: Include
14588         <libm-alias-ldouble.h>.
14589         * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (fromfpxl): Define using
14590         libm_alias_ldouble.
14591         * sysdeps/ieee754/ldbl-128/s_getpayloadl.c: Include
14592         <libm-alias-ldouble.h>.
14593         (getpayloadl): Define using libm_alias_ldouble.
14594         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Include
14595         <libm-alias-ldouble.h>.
14596         (llrintl): Define using libm_alias_ldouble.
14597         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Include
14598         <libm-alias-ldouble.h>.
14599         (llroundl): Define using libm_alias_ldouble.
14600         * sysdeps/ieee754/ldbl-128/s_logbl.c: Include
14601         <libm-alias-ldouble.h>.
14602         (logbl): Define using libm_alias_ldouble.
14603         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Include
14604         <libm-alias-ldouble.h>.
14605         (lrintl): Define using libm_alias_ldouble.
14606         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Include
14607         <libm-alias-ldouble.h>.
14608         (lroundl): Define using libm_alias_ldouble.
14609         * sysdeps/ieee754/ldbl-128/s_modfl.c: Include
14610         <libm-alias-ldouble.h>.
14611         (modfl): Define using libm_alias_ldouble.
14612         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Include
14613         <libm-alias-ldouble.h>.
14614         (nearbyintl): Define using libm_alias_ldouble.
14615         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Include
14616         <libm-alias-ldouble.h>.
14617         (nextafterl): Define using libm_alias_ldouble.
14618         * sysdeps/ieee754/ldbl-128/s_nextupl.c: Include
14619         <libm-alias-ldouble.h>.
14620         (nextupl): Define using libm_alias_ldouble.
14621         * sysdeps/ieee754/ldbl-128/s_remquol.c: Include
14622         <libm-alias-ldouble.h>.
14623         (remquol): Define using libm_alias_ldouble.
14624         * sysdeps/ieee754/ldbl-128/s_rintl.c: Include
14625         <libm-alias-ldouble.h>.
14626         (rintl): Define using libm_alias_ldouble.
14627         * sysdeps/ieee754/ldbl-128/s_roundevenl.c: Include
14628         <libm-alias-ldouble.h>.
14629         (roundevenl): Define using libm_alias_ldouble.
14630         * sysdeps/ieee754/ldbl-128/s_roundl.c: Include
14631         <libm-alias-ldouble.h>.
14632         (roundl): Define using libm_alias_ldouble.
14633         * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (setpayloadl): Define
14634         using libm_alias_ldouble.
14635         * sysdeps/ieee754/ldbl-128/s_setpayloadl_main.c: Include
14636         <libm-alias-ldouble.h>.
14637         * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (setpayloadsigl):
14638         Define using libm_alias_ldouble.
14639         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Include
14640         <libm-alias-ldouble.h>.
14641         (sincosl): Define using libm_alias_ldouble.
14642         * sysdeps/ieee754/ldbl-128/s_sinl.c: Include
14643         <libm-alias-ldouble.h>.
14644         (sinl): Define using libm_alias_ldouble.
14645         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Include
14646         <libm-alias-ldouble.h>.
14647         (tanhl): Define using libm_alias_ldouble.
14648         * sysdeps/ieee754/ldbl-128/s_tanl.c: Include
14649         <libm-alias-ldouble.h>.
14650         (tanl): Define using libm_alias_ldouble.
14651         * sysdeps/ieee754/ldbl-128/s_totalorderl.c: Include
14652         <libm-alias-ldouble.h>.
14653         (totalorderl): Define using libm_alias_ldouble.
14654         * sysdeps/ieee754/ldbl-128/s_totalordermagl.c: Include
14655         <libm-alias-ldouble.h>.
14656         (totalordermagl): Define using libm_alias_ldouble.
14657         * sysdeps/ieee754/ldbl-128/s_truncl.c: Include
14658         <libm-alias-ldouble.h>.
14659         (truncl): Define using libm_alias_ldouble.
14660         * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (ufromfpl): Define using
14661         libm_alias_ldouble.
14662         * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (ufromfpxl): Define using
14663         libm_alias_ldouble.
14664         * sysdeps/ieee754/ldbl-64-128/s_copysignl.c: Include
14665         <libm-alias-ldouble.h>.
14666         (weak_alias): Do not undefine and redefine.
14667         [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
14668         (copysignl): Define with long_double_symbol only if [IS_IN
14669         (libc)].
14670         * sysdeps/ieee754/ldbl-64-128/s_frexpl.c: Include
14671         <libm-alias-ldouble.h>.
14672         (weak_alias): Do not undefine and redefine.
14673         [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
14674         (frexpl): Define with long_double_symbol only if [IS_IN (libc)].
14675         * sysdeps/ieee754/ldbl-64-128/s_modfl.c: Include
14676         <libm-alias-ldouble.h>.
14677         (weak_alias): Do not undefine and redefine.
14678         [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
14679         (modfl): Define with long_double_symbol only if [IS_IN (libc)].
14680         * sysdeps/ieee754/ldbl-64-128/s_asinhl.c: Remove file.
14681         * sysdeps/ieee754/ldbl-64-128/s_atanl.c: Likewise.
14682         * sysdeps/ieee754/ldbl-64-128/s_cbrtl.c: Likewise.
14683         * sysdeps/ieee754/ldbl-64-128/s_ceill.c: Likewise.
14684         * sysdeps/ieee754/ldbl-64-128/s_cosl.c: Likewise.
14685         * sysdeps/ieee754/ldbl-64-128/s_erfl.c: Likewise.
14686         * sysdeps/ieee754/ldbl-64-128/s_expm1l.c: Likewise.
14687         * sysdeps/ieee754/ldbl-64-128/s_fabsl.c: Likewise.
14688         * sysdeps/ieee754/ldbl-64-128/s_floorl.c: Likewise.
14689         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: Likewise.
14690         * sysdeps/ieee754/ldbl-64-128/s_llrintl.c: Likewise.
14691         * sysdeps/ieee754/ldbl-64-128/s_llroundl.c: Likewise.
14692         * sysdeps/ieee754/ldbl-64-128/s_logbl.c: Likewise.
14693         * sysdeps/ieee754/ldbl-64-128/s_lrintl.c: Likewise.
14694         * sysdeps/ieee754/ldbl-64-128/s_lroundl.c: Likewise.
14695         * sysdeps/ieee754/ldbl-64-128/s_nearbyintl.c: Likewise.
14696         * sysdeps/ieee754/ldbl-64-128/s_remquol.c: Likewise.
14697         * sysdeps/ieee754/ldbl-64-128/s_rintl.c: Likewise.
14698         * sysdeps/ieee754/ldbl-64-128/s_roundl.c: Likewise.
14699         * sysdeps/ieee754/ldbl-64-128/s_sincosl.c: Likewise.
14700         * sysdeps/ieee754/ldbl-64-128/s_sinl.c: Likewise.
14701         * sysdeps/ieee754/ldbl-64-128/s_tanhl.c: Likewise.
14702         * sysdeps/ieee754/ldbl-64-128/s_tanl.c: Likewise.
14703         * sysdeps/ieee754/ldbl-64-128/s_truncl.c: Likewise.
14704
14705 2017-10-06  Carlos O'Donell  <carlos@redhat.com>
14706
14707         [BZ #22111]
14708         * malloc/malloc.c (tcache_shutting_down): Use bool type.
14709         (tcache_thread_freeres): Set tcache_shutting_down before
14710         freeing the tcache.
14711         * malloc/Makefile (tests): Add tst-malloc-tcache-leak.
14712         * malloc/tst-malloc-tcache-leak.c: New file.
14713
14714 2017-10-06  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
14715
14716         * sysdeps/powerpc/powerpc64/multiarch/memrchr-ppc64.c: Revert
14717         back to powerpc32 file.
14718         * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
14719         (memrchr): Add __memrchr_power8 to ifunc list.
14720         * sysdeps/powerpc/powerpc64/power8/memrchr.S: Mask
14721         extra bytes for unaligned inputs.
14722
14723 2017-10-06  Joseph Myers  <joseph@codesourcery.com>
14724
14725         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: Remove file.
14726         * sysdeps/ieee754/ldbl-64-128/s_log1pl.c: Likewise.
14727         * sysdeps/ieee754/ldbl-64-128/s_scalblnl.c: Likewise.
14728         * sysdeps/ieee754/ldbl-64-128/s_scalbnl.c: Likewise.
14729         * sysdeps/ieee754/ldbl-64-128/w_scalblnl.c: Likewise.
14730
14731 2017-10-05  Joseph Myers  <joseph@codesourcery.com>
14732
14733         * sysdeps/arm/libm-test-ulps: Update.
14734
14735         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Include
14736         <libm-alias-ldouble.h>.
14737         (asinhl): Define using libm_alias_ldouble.
14738         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Include
14739         <libm-alias-ldouble.h>.
14740         (cbrtl): Define using libm_alias_ldouble.
14741         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Include
14742         <libm-alias-ldouble.h>.
14743         (copysignl): Define using libm_alias_ldouble.
14744         * sysdeps/ieee754/ldbl-96/s_cosl.c: Include
14745         <libm-alias-ldouble.h>.
14746         (cosl): Define using libm_alias_ldouble.
14747         * sysdeps/ieee754/ldbl-96/s_erfl.c: Include
14748         <libm-alias-ldouble.h>.
14749         (erfl): Define using libm_alias_ldouble.
14750         (erfcl): Likewise.
14751         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include
14752         <libm-alias-ldouble.h>.
14753         (fmal): Define using libm_alias_ldouble.
14754         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Include
14755         <libm-alias-ldouble.h>.
14756         (frexpl): Define using libm_alias_ldouble.
14757         * sysdeps/ieee754/ldbl-96/s_fromfpl.c (fromfpl): Define using
14758         libm_alias_ldouble.
14759         * sysdeps/ieee754/ldbl-96/s_fromfpl_main.c: Include
14760         <libm-alias-ldouble.h>.
14761         * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (fromfpxl): Define using
14762         libm_alias_ldouble.
14763         * sysdeps/ieee754/ldbl-96/s_getpayloadl.c: Include
14764         <libm-alias-ldouble.h>.
14765         (getpayloadl): Define using libm_alias_ldouble.
14766         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Include
14767         <libm-alias-ldouble.h>.
14768         (llrintl): Define using libm_alias_ldouble.
14769         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Include
14770         <libm-alias-ldouble.h>.
14771         (llroundl): Define using libm_alias_ldouble.
14772         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Include
14773         <libm-alias-ldouble.h>.
14774         (lrintl): Define using libm_alias_ldouble.
14775         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Include
14776         <libm-alias-ldouble.h>.
14777         (lroundl): Define using libm_alias_ldouble.
14778         * sysdeps/ieee754/ldbl-96/s_modfl.c: Include
14779         <libm-alias-ldouble.h>.
14780         (modfl): Define using libm_alias_ldouble.
14781         * sysdeps/ieee754/ldbl-96/s_nextupl.c: Include
14782         <libm-alias-ldouble.h>.
14783         (nextupl): Define using libm_alias_ldouble.
14784         * sysdeps/ieee754/ldbl-96/s_remquol.c: Include
14785         <libm-alias-ldouble.h>.
14786         (remquol): Define using libm_alias_ldouble.
14787         * sysdeps/ieee754/ldbl-96/s_roundevenl.c: Include
14788         <libm-alias-ldouble.h>.
14789         (roundevenl): Define using libm_alias_ldouble.
14790         * sysdeps/ieee754/ldbl-96/s_roundl.c: Include
14791         <libm-alias-ldouble.h>.
14792         (roundl): Define using libm_alias_ldouble.
14793         * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (setpayloadl): Define
14794         using libm_alias_ldouble.
14795         * sysdeps/ieee754/ldbl-96/s_setpayloadl_main.c: Include
14796         <libm-alias-ldouble.h>.
14797         * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c: Include
14798         <libm-alias-ldouble.h>.
14799         (setpayloadsigl): Define using libm_alias_ldouble.
14800         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Include
14801         <libm-alias-ldouble.h>.
14802         (sincosl): Define using libm_alias_ldouble.
14803         * sysdeps/ieee754/ldbl-96/s_sinl.c: Include
14804         <libm-alias-ldouble.h>.
14805         (sinl): Define using libm_alias_ldouble.
14806         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Include
14807         <libm-alias-ldouble.h>.
14808         (tanhl): Define using libm_alias_ldouble.
14809         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include
14810         <libm-alias-ldouble.h>.
14811         (tanl): Define using libm_alias_ldouble.
14812         * sysdeps/ieee754/ldbl-96/s_totalorderl.c: Include
14813         <libm-alias-ldouble.h>.
14814         (totalorderl): Define using libm_alias_ldouble.
14815         * sysdeps/ieee754/ldbl-96/s_totalordermagl.c: Include
14816         <libm-alias-ldouble.h>.
14817         (totalordermagl): Define using libm_alias_ldouble.
14818         * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (ufromfpl): Define using
14819         libm_alias_ldouble.
14820         * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (ufromfpxl): Define using
14821         libm_alias_ldouble.
14822
14823 2017-10-05  Siddhesh Poyarekar  <siddhesh@sourceware.org>
14824
14825         * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
14826         memmove_falkor.
14827         * sysdeps/aarch64/multiarch/ifunc-impl-list.c
14828         (__libc_ifunc_impl_list): Likewise.
14829         * sysdeps/aarch64/multiarch/memmove.c: Likewise.
14830         * sysdeps/aarch64/multiarch/memmove_falkor.S: New file.
14831
14832         * benchtests/bench-memmove-walk.c: New file.
14833         * benchtests/Makefile (string-benchset): Add it.
14834
14835         * benchtests/bench-memset-walk.c: New file.
14836         * benchtests/Makefile (string-benchset): Add it.
14837
14838         * benchtests/bench-memcpy-walk.c: New file.
14839         * benchtests/Makefile (string-benchset): Add it.
14840
14841 2017-10-05  Florian Weimer  <fweimer@redhat.com>
14842
14843         nscd: Eliminate compilation time dependency in the build output.
14844         * nscd/nscd_stat.c (STATDATA_VERSION)
14845         (STATDATA_VERSION_SELINUX_FLAG, STATDATA_VERSION_FLAGS)
14846         (STATDATA_VERSION_FULL): New macro definitions.
14847         (compilation): Remove.
14848         (struct statdata): Adjust version member.
14849         (send_stats): Set version from STATDATA_VERSION_FULL.
14850         (receive_print_stats): Verify version against STATDATA_VERSION_FULL.
14851
14852 2017-10-05  Joseph Myers  <joseph@codesourcery.com>
14853
14854         * configure.ac (--enable-add-ons): Remove option.
14855         (machine): Do not mention add-ons in comment.
14856         (LIBC_PRECONFIGURE): Likewise.
14857         (add_ons): Remove variable and sanity checks and logic to locate
14858         add-ons.
14859         (add_ons_automatic): Remove variable.
14860         (configured_add_ons): Likewise.
14861         (add_ons_sfx): Likewise.
14862         (add_ons_pfx): Likewise.
14863         (add_on_subdirs): Likewise.
14864         (sysnames_add_ons): Likewise.  Remove loop over add-ons and
14865         consideration of add-ons in Implies handling.
14866         (sysdeps_add_ons): Likewise.
14867         * configure: Regenerated.
14868         * libidn/configure.ac: Remove.
14869         * libidn/configure: Likewise.
14870         * sysdeps/unix/inet/configure.ac: New file.
14871         * sysdeps/unix/inet/configure: New generated file.
14872         * sysdeps/unix/inet/Subdirs: Add libidn.
14873         * Makeconfig (sysdeps-srcdirs): Remove variable.
14874         (+sysdep_dirs): Do not include $(sysdeps-srcdirs).
14875         ($(common-objpfx)config.status): Do not depend on add-on files.
14876         ($(common-objpfx)shlib-versions.v.i): Do not mention add-ons in
14877         comment.
14878         (all-subdirs): Do not include $(add-on-subdirs).
14879         * Makefile (dist-prepare): Do not use $(sysdeps-add-ons).
14880         * config.make.in (add-ons): Remove variable.
14881         (add-on-subdirs): Likewise.
14882         (sysdeps-add-ons): Likewise.
14883         * manual/Makefile (add-chapters): Remove.
14884         ($(objpfx)texis): Do not depend on $(add-chapters).
14885         (nonexamples): Do not handle $(add-chapters).
14886         (examples): Do not handle $(add-ons).
14887         (chapters.% top-menu.%): Do not pass '$(add-chapters)' to
14888         libc-texinfo.sh.
14889         * manual/install.texi (Installation): Do not mention add-ons.
14890         (--enable-add-ons): Do not document configure option.
14891         * INSTALL: Regenerated.
14892         * manual/libc-texinfo.sh: Do not handle $2 add-ons argument.
14893         * manual/maint.texi (Hierarchy Conventions): Do not mention
14894         add-ons.
14895         * scripts/build-many-glibcs.py (Glibc.build_glibc): Do not use
14896         --enable-add-ons.
14897         * scripts/gen-sorted.awk: Do not handle Subdirs files from
14898         add-ons.
14899         * scripts/test-installation.pl: Do not handle glibc-compat add-on.
14900         * sysdeps/nptl/Makeconfig: Do not mention add-ons in comment.
14901
14902 2017-10-05  Andreas Schwab  <schwab@suse.de>
14903
14904         [BZ #15142]
14905         * libio/genops.c (_IO_list_all_stamp): Delete.  All uses removed.
14906         (_IO_flush_all_lockp): Always lock list_all_lock.
14907         (_IO_flush_all_linebuffered): Likewise.
14908         (_IO_unbuffer_all): Likewise.
14909
14910 2017-10-05  Florian Weimer  <fweimer@redhat.com>
14911
14912         [BZ #15436]
14913         Do not flush stdio streams on abort.
14914         * stdlib/abort.c (fflush): Remove macro definition.
14915         (abort): Remove stages related to stdio flushing.
14916
14917 2017-10-05  Florian Weimer  <fweimer@redhat.com>
14918
14919         * gmon/Makefile (CFLAGS-tst-gmon.c): Add -fno-omit-frame-pointer.
14920
14921 2017-10-05  Stefan Liebler  <stli@linux.vnet.ibm.com>
14922
14923         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
14924
14925 2017-10-05  Florian Weimer  <fweimer@redhat.com>
14926
14927         * support/support_format_hostent.c (support_format_hostent): Add
14928         more error information for NETDB_INTERNAL.
14929
14930 2017-10-04  H.J. Lu  <hongjiu.lu@intel.com>
14931
14932         * config.h.in (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New.
14933         * include/libc-symbols.h (__hidden_proto_hiddenattr): Add check
14934         for PIC and NO_HIDDEN_EXTERN_FUNC_IN_PIE.
14935         * sysdeps/i386/configure.ac (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New
14936         AC_DEFINE if multi-arch is enabled.
14937         * sysdeps/i386/configure: Regenerated.
14938
14939 2017-10-04  H.J. Lu  <hongjiu.lu@intel.com>
14940
14941         * Makeconfig (+link-static-before-libc): Use
14942         $(DEFAULT-LDFLAGS-$(@F)).
14943         * elf/Makefile (CRT-tst-tls1-static-non-pie): New.
14944         (LDFLAGS-tst-tls1-static-non-pie): Renamed to ...
14945         (DEFAULT-LDFLAGS-tst-tls1-static-non-pie): This.
14946
14947 2017-10-04  H.J. Lu  <hongjiu.lu@intel.com>
14948
14949         * elf/Makefile (tests): Add tst-main1.
14950         (modules-names): Add tst-main1mod.
14951         ($(objpfx)tst-main1): New.
14952         (CRT-tst-main1): Likewise.
14953         (LDFLAGS-tst-main1): Likewise.
14954         (LDLIBS-tst-main1): Likewise.
14955         (tst-main1mod.so-no-z-defs): Likewise.
14956         * elf/tst-main1.c: New file.
14957         * elf/tst-main1mod.c: Likewise.
14958
14959 2017-10-04  H.J. Lu  <hongjiu.lu@intel.com>
14960
14961         * math/test-math-iscanonical.cc (do_test): Return errors != 0.
14962
14963 2017-10-04  Joseph Myers  <joseph@codesourcery.com>
14964
14965         * sysdeps/ieee754/dbl-64/s_fma.c: Include <libm-alias-double.h>.
14966         (fma): Define using libm_alias_double.
14967         * sysdeps/ieee754/ldbl-opt/s_fma.c: Remove file.
14968         * sysdeps/sparc/sparc32/fpu/s_fma.c: Do not include
14969         <math_ldbl_opt.h>.
14970         (fmal): Do not define as compat symbol here.
14971         * sysdeps/alpha/fpu/s_fma.c: New file.
14972
14973 2017-10-04  Szabolcs Nagy  <szabolcs.nagy@arm.com>
14974
14975         * sysdeps/aarch64/dl-machine.h (elf_machine_rela): Expand MIN.
14976
14977 2017-10-04  Joseph Myers  <joseph@codesourcery.com>
14978
14979         [BZ #22229]
14980         * sysdeps/sparc/sparc32/fpu/s_copysign.S: Include
14981         <math_ldbl_opt.h>
14982         (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
14983         and libc.
14984         * sysdeps/sparc/sparc32/fpu/s_fabs.S: Include <math_ldbl_opt.h>.
14985         (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
14986         * sysdeps/sparc/sparc32/fpu/s_fma.c: Include <math_ldbl_opt.h>.
14987         (fmal): Define as compat symbol at version GLIBC_2_1 for libm.
14988         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
14989         Include <math_ldbl_opt.h>
14990         (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
14991         and libc.
14992         (compat_symbol): Undefine and redefine.
14993         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Include
14994         <math_ldbl_opt.h>
14995         (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
14996         (compat_symbol): Undefine and redefine.
14997         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c
14998         [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h>.
14999         [HAVE_AS_VIS3_SUPPORT] (fmal): Define as compat symbol at version
15000         GLIBC_2_1 for libm.
15001         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Add
15002         GLIBC_2.0 copysignl symbol.
15003         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
15004         GLIBC_2.0 copysignl and fabsl and GLIBC_2.1 fmal symbols.
15005
15006         * sysdeps/alpha/fpu/s_nearbyint.c: Remove file.
15007
15008 2017-10-04  Florian Weimer  <fweimer@redhat.com>
15009
15010         * scripts/check-local-headers.sh: Ignore nspr4 header file
15011         directory in addition to nspr.
15012
15013 2017-10-04  Guido Trentalancia  <guido@trentalancia.net>
15014
15015         [BZ #17956]
15016         * configure.ac (--enable-nss-crypt): Use NSPR include directory.
15017         * configure: Regenerate.
15018         * crypt/Makefile (nss-cpp-flags): New variable.
15019         (CPPFLAGS-sha256-crypt.c, CPPFLAGS-sha512-crypt.c)
15020         (CPPFLAGS-md5-crypt.c): Use it.
15021         * scripts/check-local-headers.sh: Ignore nspr header file
15022         directory.
15023
15024 2017-10-04  Andreas Schwab  <schwab@suse.de>
15025
15026         * nis/Makefile (services): Remove compat.
15027         (libnss_compat-routines, libnss_compat-inhibit-o): Don't define.
15028         ($(objpfx)libnss_compat.so): Remove rule.
15029         * nis/Versions (libnss_compat): Remove.
15030         * nss/Makefile (services): Add compat.
15031         (libnss_compat-routines, libnss_compat-inhibit-o): Define.
15032         * nss/Versions (libnss_compat): Define.
15033         * nss/nss_compat/compat-grp.c: Moved here from nis/nss_compat.
15034         Don't include <rpc/types.h>.  Replace bool_t by bool.
15035         * nss/nss_compat/compat-initgroups.c: Likewise.
15036         * nss/nss_compat/compat-pwd.c: Likewise.  Include "nisdomain.h"
15037         instead of <rpcsrv/ypclnt.h>.
15038         (getpwent_next_nss_netgr): Use __nss_get_default_domain instead of
15039         yp_get_default_domain.
15040         * nss/nss_compat/compat-pwd.c: Likewise.
15041         (getspent_next_nss_netgr): Use __nss_get_default_domain instead of
15042         yp_get_default_domain.
15043         * nss/nss_compat/nisdomain.c: New file.
15044         * nss/nss_compat/nisdomain.h: Likewise.
15045
15046 2017-10-04  Szabolcs Nagy  <szabolcs.nagy@arm.com>
15047
15048         [BZ #22244]
15049         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Fix x == 0 case.
15050         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
15051
15052 2017-10-04  Szabolcs Nagy  <szabolcs.nagy@arm.com>
15053
15054         [BZ #22243]
15055         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c (__ieee754_log10): Use fabs.
15056         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c (__ieee754_log2): Likewise.
15057
15058 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
15059
15060         * sysdeps/i386/start.S: Replace "leal main@GOT(%ebx), %eax" with
15061         "movl main@GOTOFF(%ebx), %eax".
15062
15063 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
15064
15065         * sysdeps/i386/dl-machine.h (elf_machine_load_address): Don't
15066         allow undefined _DYNAMIC in PIE libc.a.
15067         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
15068         Likewse.
15069
15070 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
15071
15072         * sysdeps/mips/dl-machine.h (elf_machine_load_address): Don't
15073         check _DYNAMIC.
15074
15075 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
15076
15077         * sysdeps/arm/dl-machine.h (elf_machine_load_address): Don't
15078         check _DYNAMIC.
15079
15080 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
15081
15082         * math/test-math-iscanonical.cc (error): Replace bool with int.
15083
15084 2017-10-03  Joseph Myers  <joseph@codesourcery.com>
15085
15086         * sysdeps/ieee754/dbl-64/s_modf.c: Include <libm-alias-double.h>.
15087         (modf): Define using libm_alias_double, only if [!__modf].
15088         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Include
15089         <libm-alias-double.h>.
15090         (modf): Define using libm_alias_double, only if [!__modf].
15091         * sysdeps/ieee754/ldbl-opt/s_modf.c (modfl): Only define libc
15092         compat symbol here.
15093         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-ppc32.c
15094         (weak_alias): Do not undefine and redefine.
15095         (strong_alias): Likewise.
15096         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-ppc64.c
15097         (weak_alias): Likewise.
15098         (strong_alias): Likewise.
15099
15100         * sysdeps/ieee754/dbl-64/s_logb.c: Include <libm-alias-double.h>.
15101         (logb): Define using libm_alias_double, only if [!__logb].
15102         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Include
15103         <libm-alias-double.h>.
15104         (logb): Define using libm_alias_double, only if [!__logb].
15105         * sysdeps/ieee754/ldbl-opt/s_logb.c: Remove file.
15106         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-ppc32.c
15107         (weak_alias): Do not undefine and redefine.
15108         (strong_alias): Likewise.
15109         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-ppc64.c
15110         (weak_alias): Likewise.
15111         (strong_alias): Likewise.
15112
15113 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
15114
15115         * sysdeps/unix/sysv/linux/tile/sysdep.h (SYSCALL_ERROR_NAME):
15116         Check SHARED instead PIC.
15117
15118 2017-10-03  Joseph Myers  <joseph@codesourcery.com>
15119
15120         * sysdeps/ieee754/dbl-64/s_fmaf.c: Include <libm-alias-float.h>.
15121         [!__fmaf] (fmaf): Define using libm_alias_float.
15122
15123         * sysdeps/ieee754/dbl-64/s_frexp.c: Include <libm-alias-double.h>.
15124         (frexp): Define using libm_alias_double.
15125         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Include
15126         <libm-alias-double.h>.
15127         (frexp): Define using libm_alias_double.
15128         * sysdeps/ieee754/ldbl-opt/s_frexp.c (frexpl): Only define libc
15129         compat symbol here.
15130
15131 2017-10-03  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
15132
15133         [BZ #22235]
15134         * math/math.h: Trivial fix for unbalanced parentheses in comment.
15135         * math/Makefile [CXX] (tests): Add test-math-iscanonical.cc.
15136         (CFLAGS-test-math-iscanonical.cc): New variable.
15137         * math/test-math-iscanonical.cc: New file.
15138         * sysdeps/ieee754/ldbl-96/bits/iscanonical.h (iscanonical):
15139         Provide a C++ implementation based on function overloading,
15140         rather than using __MATH_TG, which uses C-only builtins.
15141         * sysdeps/ieee754/ldbl-128ibm/bits/iscanonical.h (iscanonical):
15142         Likewise.
15143         * sysdeps/powerpc/powerpc64le/Makefile
15144         (CFLAGS-test-math-iscanonical.cc): New variable.
15145
15146 2017-10-03  Joseph Myers  <joseph@codesourcery.com>
15147
15148         * sysdeps/ieee754/dbl-64/s_ceil.c: Include <libm-alias-double.h>.
15149         (ceil): Define using libm_alias_double.
15150         * sysdeps/ieee754/dbl-64/s_floor.c: Include <libm-alias-double.h>.
15151         (floor): Define using libm_alias_double.
15152         * sysdeps/ieee754/dbl-64/s_llround.c: Include
15153         <libm-alias-double.h>.
15154         (llround): Define using libm_alias_double.
15155         * sysdeps/ieee754/dbl-64/s_lround.c: Include
15156         <libm-alias-double.h>.
15157         (lround): Define using libm_alias_double.
15158         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Include
15159         <libm-alias-double.h>.
15160         (nearbyint): Define using libm_alias_double.
15161         * sysdeps/ieee754/dbl-64/s_remquo.c: Include
15162         <libm-alias-double.h>.
15163         (remquo): Define using libm_alias_double.
15164         * sysdeps/ieee754/dbl-64/s_rint.c: Include <libm-alias-double.h>.
15165         (rint): Define using libm_alias_double.
15166         * sysdeps/ieee754/dbl-64/s_round.c: Include <libm-alias-double.h>.
15167         (round): Define using libm_alias_double.
15168         * sysdeps/ieee754/dbl-64/s_trunc.c: Include <libm-alias-double.h>.
15169         (trunc): Define using libm_alias_double.
15170         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Include
15171         <libm-alias-double.h>.
15172         (ceil): Define using libm_alias_double.
15173         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Include
15174         <libm-alias-double.h>.
15175         (floor): Define using libm_alias_double.
15176         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: Include
15177         <libm-alias-double.h>.
15178         (llround): Define using libm_alias_double.
15179         [_LP64] (lround): Likewise.
15180         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Include
15181         <libm-alias-double.h>.
15182         [!_LP64] (lround): Define using libm_alias_double.
15183         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Include
15184         <libm-alias-double.h>.
15185         (nearbyint): Define using libm_alias_double.
15186         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Include
15187         <libm-alias-double.h>.
15188         (remquo): Define using libm_alias_double.
15189         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Include
15190         <libm-alias-double.h>.
15191         (rint): Define using libm_alias_double.
15192         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Include
15193         <libm-alias-double.h>.
15194         (round): Define using libm_alias_double.
15195         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Include
15196         <libm-alias-double.h>.
15197         (trunc): Define using libm_alias_double.
15198         * sysdeps/ieee754/ldbl-opt/s_ceil.c: Remove file.
15199         * sysdeps/ieee754/ldbl-opt/s_floor.c: Likewise.
15200         * sysdeps/ieee754/ldbl-opt/s_llround.c: Likewise.
15201         * sysdeps/ieee754/ldbl-opt/s_lround.c: Likewise.
15202         * sysdeps/ieee754/ldbl-opt/s_nearbyint.c: Likewise.
15203         * sysdeps/ieee754/ldbl-opt/s_remquo.c: Likewise.
15204         * sysdeps/ieee754/ldbl-opt/s_rint.c: Likewise.
15205         * sysdeps/ieee754/ldbl-opt/s_round.c: Likewise.
15206         * sysdeps/ieee754/ldbl-opt/s_trunc.c: Likewise.
15207
15208 2017-10-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
15209
15210         * math/w_remainder.c: New file.
15211         * math/w_remainderf.c: New file.
15212         * math/w_remainderl.c: New file.
15213
15214 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
15215
15216         * elf/rtld.c (BOOTSTRAP_MAP): New.
15217         (RESOLVE_MAP): Replace (&bootstrap_map) with BOOTSTRAP_MAP.
15218         * sysdeps/hppa/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
15219         Likewise.
15220         * sysdeps/ia64/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
15221         Likewise.
15222         * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
15223         Likewise.
15224
15225 2017-10-03  Samuel Thibault  <samuel.thibault@ens-lyon.org>
15226
15227         * include/libc-symbols.h [NO_RTLD_HIDDEN] (rtld_hidden_proto,
15228         rtld_hidden_tls_proto, rtld_hidden_def, rtld_hidden_weak,
15229         rtld_hidden_rtld_hidden_ver, data_def, rtld_hidden_data_weak,
15230         rtld_hidden_data_ver): Define to empty.
15231         * include/assert.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__assert_fail,
15232         __assert_perror_fail): Likewise.
15233         * include/dirent.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
15234         (__rewinddir): Likewise.
15235         * include/libc-internal.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
15236         (__profile_frequency): Likewise.
15237         * include/setjmp.h (__sigsetjmp): Likewise.
15238         * include/signal.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__sigaction,
15239         __libc_sigaction): Likewise.
15240         * include/stdlib.h [NO_RTLD_HIDDEN] (unsetenv, __strtoul_internal): Do
15241         not set hidden attribute.
15242         * include/string.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__stpcpy, __strdup,
15243         __strerror_t, __strsep_g, memchr, memcmp, memcpy, memmove, memset,
15244         rawmemchr, stpcpy, strchr, strcmp, strlen, strnlen, strsep): Likewise.
15245         * include/sys/stat.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__fxstat,
15246         __fxstat64, __lxstat, __lxstat64, __xstat, __xstat64,
15247         __fxstatat64): Likewise.
15248         * include/sys/utsname.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
15249         (__uname): Likewise.
15250         * include/sysdeps/generic/_itoa.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
15251         (_itoa_upper_digits, _itoa_lower_digits): Likewise.
15252         * sysdeps/mach/hurd/configure.ac (NO_HIDDEN): Do not set.
15253         (NO_RTLD_HIDDEN): Set.
15254         * sysdeps/mach/hurd/configure: Refresh.
15255         * config.h.in: Refresh.
15256
15257 2017-10-02  Joseph Myers  <joseph@codesourcery.com>
15258
15259         * sysdeps/ieee754/dbl-64/s_atan.c: Include <libm-alias-double.h>.
15260         (atan): Define using libm_alias_double.
15261         * sysdeps/ieee754/dbl-64/s_tan.c: Include <libm-alias-double.h>.
15262         (tan): Define using libm_alias_double.
15263         * sysdeps/ieee754/ldbl-opt/s_atan.c: Remove file.
15264         * sysdeps/ieee754/ldbl-opt/s_tan.c: Likewise.
15265
15266         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Rename to __atan and
15267         define as weak alias of __atan.  Do not define any aliases if
15268         [__atan].
15269         [NO_LONG_DOUBLE] (__atanl): Define as strong alias of __atan.
15270         [NO_LONG_DOUBLE] (atanl): Define as weak alias of __atanl.
15271         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Rename to __tan and define
15272         as weak alias of __tan.  Do not define any aliases if [__tan].
15273         [NO_LONG_DOUBLE] (__tanl): Define as strong alias of __tan.
15274         [NO_LONG_DOUBLE] (tanl): Define as weak alias of __tanl.
15275         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c (atan): Rename to
15276         __atan.
15277         * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c (atan): Likewise.
15278         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c (atan): Likewise.
15279         * sysdeps/x86_64/fpu/multiarch/s_atan.c (atan): Rename to __atan
15280         and define as weak alias of __atan.
15281         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c (tan): Rename to
15282         __atan.
15283         * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c (tan): Likewise.
15284         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (tan): Likewise.
15285         * sysdeps/x86_64/fpu/multiarch/s_tan.c (tan): Rename to __tan and
15286         define as weak alias of __tan.
15287
15288 2017-10-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
15289
15290         * math/w_lgamma.c: New file.
15291         * math/w_lgammaf.c: New file.
15292         * math/w_lgammal.c: New file.
15293
15294 2017-10-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
15295
15296         * sysdeps/ieee754/flt-32/e_log2f.c (__log2f): Define without wrapper.
15297         * sysdeps/ieee754/flt-32/e_logf.c (__logf): Likewise
15298         * sysdeps/ieee754/flt-32/e_powf.c (__powf): Likewise
15299         * sysdeps/ieee754/flt-32/w_log2f.c: New file.
15300         * sysdeps/ieee754/flt-32/w_logf.c: New file.
15301         * sysdeps/ieee754/flt-32/w_powf.c: New file.
15302         * sysdeps/i386/fpu/w_log2f.c: New file.
15303         * sysdeps/i386/fpu/w_logf.c: New file.
15304         * sysdeps/i386/fpu/w_powf.c: New file.
15305         * sysdeps/m68k/m680x0/fpu/w_log2f.c: New file.
15306         * sysdeps/m68k/m680x0/fpu/w_logf.c: New file.
15307         * sysdeps/m68k/m680x0/fpu/w_powf.c: New file.
15308
15309 2017-10-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
15310             H.J. Lu  <hongjiu.lu@intel.com>
15311
15312         * sysdeps/ieee754/flt-32/e_exp2f.c (__exp2f): Define without wrapper.
15313         * sysdeps/ieee754/flt-32/e_expf.c (__expf): Likewise
15314         * sysdeps/ieee754/flt-32/w_exp2f.c: New file.
15315         * sysdeps/ieee754/flt-32/w_expf.c: New file.
15316         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-ppc64.c: Update for
15317         the new expf code.
15318         * sysdeps/powerpc/powerpc64/fpu/multiarch/w_expf.c: New file.
15319         * sysdeps/powerpc/powerpc64/power8/fpu/w_expf.c: New file.
15320         * sysdeps/m68k/m680x0/fpu/w_exp2f.c: New file.
15321         * sysdeps/m68k/m680x0/fpu/w_expf.c: New file.
15322         * sysdeps/i386/fpu/w_exp2f.c: New file.
15323         * sysdeps/i386/fpu/w_expf.c: New file.
15324         * sysdeps/i386/i686/fpu/multiarch/w_expf.c: New file.
15325         * sysdeps/x86_64/fpu/w_expf.c: New file.
15326
15327 2017-10-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
15328
15329         * math/Versions (logf): New libm symbol at GLIBC_2.27.
15330         (log2f): Likewise.
15331         (powf): Likewise.
15332         * math/w_log2f.c: New file.
15333         * math/w_logf.c: New file.
15334         * math/w_powf.c: New file.
15335         * math/w_log2f_compat.c (__log2f_compat): For compat symbol only.
15336         * math/w_logf_compat.c (__logf_compat): Likewise.
15337         * math/w_powf_compat.c (__powf_compat): Likewise.
15338         * sysdeps/ia64/fpu/e_log2f.S: Add versioned symbols.
15339         * sysdeps/ia64/fpu/e_logf.S: Likewise.
15340         * sysdeps/ia64/fpu/e_powf.S: Likewise.
15341         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
15342         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
15343         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
15344         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
15345         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
15346         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
15347         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
15348         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
15349         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
15350         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
15351         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
15352         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
15353         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
15354         Likewise.
15355         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
15356         Likewise.
15357         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
15358         Likewise.
15359         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
15360         Likewise.
15361         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
15362         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
15363         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
15364         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
15365         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
15366         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
15367         Likewise.
15368         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
15369         Likewise.
15370         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
15371         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
15372         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
15373
15374 2017-10-02  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
15375
15376         * sysdeps/powerpc/powerpc64/multiarch/Makefile
15377         (sysdep_routines): Add memrchr_power8.
15378         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
15379         (memrchr): Add __memrchr_power8 to list of memrchr functions.
15380         * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S:
15381         New file.
15382         * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
15383         (memrchr): Add __memrchr_power8 to ifunc list.
15384         * sysdeps/powerpc/powerpc64/power8/memrchr.S: New file.
15385
15386 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
15387
15388         [BZ #18822]
15389         * sysdeps/unix/sysv/linux/posix_fadvise64.c
15390         (__posix_fadvise64_l64): Add Add libc_hidden_proto and
15391         libc_hidden_def.
15392         * sysdeps/unix/sysv/linux/posix_fallocate64.c
15393         (__posix_fallocate64_l64): Likewise.
15394
15395 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
15396
15397         [BZ #18822]
15398         * sysdeps/unix/sysv/linux/sched_setaffinity.c
15399         (__sched_setaffinity_new): Add libc_hidden_proto and
15400         libc_hidden_def.
15401
15402 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
15403
15404         [BZ #18822]
15405         * include/glob.h (__glob64): Add libc_hidden_proto.
15406         * sysdeps/unix/sysv/linux/glob64.c (__glob64): Add
15407         libc_hidden_def.
15408
15409 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
15410
15411         [BZ #18822]
15412         * sysdeps/unix/sysv/linux/getrlimit64.c (__new_getrlimit): Add
15413         attribute_hidden.
15414
15415 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
15416
15417         [BZ #18822]
15418         * stdlib/exit.h (__new_exitfn): Add attribute_hidden.
15419
15420 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
15421
15422         [BZ #18822]
15423         * mon/gmon.c (__moncontrol): Add libc_hidden_proto and
15424         libc_hidden_def.
15425
15426 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
15427
15428         [BZ #18822]
15429         * csu/version.c (__libc_print_version): Add attribute_hidden.
15430
15431 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
15432
15433         [BZ #18822]
15434         * include/libc-internal.h (__init_misc): Add attribute_hidden.
15435
15436 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
15437
15438         [BZ #18822]
15439         * include/fpu_control.h (__setfpucw): Add attribute_hidden.
15440
15441 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
15442
15443         [BZ #18822]
15444         * nscd/nscd_helper.c (__nis_hash): New prototype.
15445
15446 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
15447
15448         [BZ #18822]
15449         * include/termios.h (__tcgetattr): Add libc_hidden_proto.
15450         * sysdeps/unix/bsd/tcgetattr.c (__tcgetattr): Add
15451         libc_hidden_def.
15452         * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Likewise.
15453         * termios/tcgetattr.c (__tcgetattr): Likewise.
15454
15455 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
15456
15457         [BZ #18822]
15458         * include/sys/resource.h (__setrlimit): Add libc_hidden_proto.
15459         * resource/setrlimit.c (__setrlimit): Add libc_hidden_def.
15460         * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Likewise.
15461         * sysdeps/unix/sysv/linux/setrlimit.c (__setrlimit): Likewise.
15462         * sysdeps/unix/sysv/linux/setrlimit64.c (__GI___setrlimit): New.
15463
15464 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
15465
15466         [BZ #18822]
15467         * include/monetary.h (__vstrfmon_l): Add attribute_hidden.
15468
15469 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
15470
15471         [BZ #18822]
15472         * include/sched.h (__sched_setparam): Add libc_hidden_proto.
15473         * posix/sched_setp.c (__sched_setparam): Add libc_hidden_def.
15474
15475 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
15476
15477         [BZ #18822]
15478         * intl/hash-string.h (__hash_string): Add attribute_hidden.
15479
15480 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
15481
15482         [BZ #18822]
15483         * include/mntent.h (__hasmntopt): Add libc_hidden_proto.
15484         * misc/mntent_r.c (__hasmntopt): Add libc_hidden_def.
15485
15486 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
15487
15488         [BZ #18822]
15489         * include/ifreq.h: New file.
15490         * sysdeps/generic/ifreq.h (__if_nextreq): Removed.
15491         (__ifreq): Likewise.
15492         * sysdeps/mach/hurd/ifreq.h (__if_nextreq): Removed.
15493         (__ifreq): Likewise.
15494
15495 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
15496
15497         [BZ #18822]
15498         * include/idna.h: New file.
15499         * inet/getnameinfo.c: Include <idna.h> instead of
15500         <libidn/idna.h>.
15501         (__idna_to_unicode_lzlz): Removed.
15502         * sysdeps/posix/getaddrinfo.c: Include <idna.h> instead of
15503         <libidn/idna.h>.
15504         (__idna_to_ascii_lz): Removed.
15505         (__idna_to_unicode_lzlz): Likewise.
15506
15507 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
15508
15509         [BZ #18822]
15510         * include/plural-exp.h: New file.
15511         * intl/plural-exp.c: Include <plural-exp.h> instead of
15512         "plural-exp.h".
15513
15514 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
15515
15516         [BZ #18822]
15517         * sysdeps/unix/sysv/linux/getsourcefilter.c: Include
15518         "getsourcefilter.h".
15519         * sysdeps/unix/sysv/linux/getsourcefilter.h: New file.
15520         * sysdeps/unix/sysv/linux/setsourcefilter.c: Include
15521         "getsourcefilter.h".
15522         (__get_sol): Removed.
15523
15524 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
15525
15526         [BZ #18822]
15527         * elf/dl-iteratephdr.c (hidden_proto (__dl_iterate_phdr)): Moved
15528         to ...
15529         * include/link.h (hidden_proto (__dl_iterate_phdr)): Here.
15530
15531 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
15532
15533         [BZ #18822]
15534         * sysdeps/unix/sysv/linux/getpt.c (__bsd_getpt): Add
15535         attribute_hidden.
15536
15537 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
15538
15539         [BZ #18822]
15540         * libio/iolibio.h (__fopen_maybe_mmap): Add attribute_hidden.
15541
15542 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
15543
15544         [BZ #18822]
15545         * include/search.h (__tdestroy): Add libc_hidden_proto.
15546         * misc/tsearch.c (__tdestroy): Add libc_hidden_def.
15547
15548 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
15549
15550         [BZ #18822]
15551         * include/assert.h (__assert_fail_base): Add attribute_hidden.
15552
15553 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
15554
15555         [BZ #18822]
15556         * sysdeps/unix/sysv/linux/include/sys/sysinfo.h (__sysinfo): Add
15557         attribute_hidden.
15558
15559 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
15560
15561         [BZ #18822]
15562         * include/signal.h (__kill): Add libc_hidden_proto.
15563         (__sigblock): Likewise.
15564         (__sigprocmask): Likewise.
15565         (__sigaltstack): Likewise.
15566         * signal/kill.c (__kill): Add libc_hidden_def.
15567         * signal/sigblock.c (__sigblock): Likewise.
15568         * signal/sigprocmask.c (__sigprocmask): Likewise.
15569         * sysdeps/mach/hurd/kill.c (__kill): Likewise.
15570         * sysdeps/mach/hurd/sigaltstack.c (__sigaltstack): Likewise.
15571         * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Likewise.
15572         * sysdeps/posix/sigblock.c (__sigblock): Likewise.
15573         * sysdeps/unix/sysv/linux/alpha/sigprocmask.c (__sigprocmask):
15574         Likewise.
15575         * sysdeps/unix/sysv/linux/ia64/sigprocmask.c (__sigprocmask):
15576         Likewise.
15577         * sysdeps/unix/sysv/linux/s390/s390-64/sigprocmask.c
15578         (__sigprocmask): Likewise.
15579         * sysdeps/unix/sysv/linux/sigprocmask.c (__sigprocmask):
15580         Likewise.
15581         * /sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c
15582         (__sigprocmask): Likewise.
15583         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c (__sigprocmask):
15584         Likewise.
15585
15586 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
15587
15588         [BZ #18822]
15589         * include/string.h (__strsep): Add libc_hidden_proto.
15590         * string/strsep.c (__strsep): Add libc_hidden_def.
15591
15592 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
15593
15594         [BZ #18822]
15595         * posix/spawn_int.h (__posix_spawn_file_actions_realloc): Add
15596         attribute_hidden.
15597         (__spawni): Likewise.
15598
15599 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
15600
15601         [BZ #18822]
15602         * include/sys/mman.h (__mremap): Add libc_hidden_proto.
15603         * sysdeps/unix/sysv/linux/m68k/mremap.S (__mremap): Add
15604         libc_hidden_def.
15605
15606 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
15607
15608         [BZ #18822]
15609         * include/malloc.h (__malloc_check_init): Add attribute_hidden.
15610
15611 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
15612
15613         [BZ #18822]
15614         * include/sys/ioctl.h (__ioctl): Add libc_hidden_proto.
15615         * misc/ioctl.c (__ioctl): Add libc_hidden_def.
15616         * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
15617         * sysdeps/unix/sysv/linux/aarch64/ioctl.S (__ioctl): Likewise.
15618         * sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S (__ioctl):
15619         Likewise.
15620         * sysdeps/unix/sysv/linux/powerpc/ioctl.c (__ioctl): Likewise.
15621         * sysdeps/unix/sysv/linux/tile/tilegx/ioctl.S (__ioctl): Likewise.
15622
15623 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
15624
15625         [BZ #18822]
15626         * intl/gettextP.h (__dcngettext): Add attribute_hidden.
15627         (__dcigettext): Likewise.
15628
15629 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
15630
15631         [BZ #18822]
15632         * include/sys/sysinfo.h (__get_nprocs_conf): Add
15633         libc_hidden_proto.
15634         (__get_nprocs): Likewise.
15635         (__get_phys_pages): Likewise.
15636         (__get_avphys_pages): Likewise.
15637         (__get_child_max): Add attribute_hidden.
15638         * misc/getsysstats.c (__get_nprocs_conf): Add libc_hidden_def.
15639         (__get_nprocs): Likewise.
15640         (__get_phys_pages): Likewise.
15641         (__get_avphys_pages): Likewise.
15642         * sysdeps/mach/getsysstats.c (__get_nprocs_conf): Add
15643         libc_hidden_def.
15644         (__get_nprocs): Likewise.
15645         (__get_phys_pages): Likewise.
15646         (__get_avphys_pages): Likewise.
15647         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Add
15648         libc_hidden_def.
15649         (__get_nprocs_conf): Likewise.
15650         (__get_phys_pages): Likewise.
15651         (__get_avphys_pages): Likewise.
15652
15653 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
15654
15655         [BZ #18822]
15656         * sysdeps/unix/sysv/linux/netlinkaccess.h (__netlink_open): Add
15657         attribute_hidden.
15658         (__netlink_close): Likewise.
15659         (__netlink_free_handle): Likewise.
15660         (__netlink_request): Likewise.
15661
15662 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
15663
15664         [BZ #18822]
15665         * include/rpc/rpc.h (__rpc_thread_variables): Add
15666         attribute_hidden.
15667         (__rpc_thread_svc_cleanup): Likewise.
15668         (__rpc_thread_clnt_cleanup): Likewise.
15669         (__rpc_thread_key_cleanup): Likewise.
15670
15671 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
15672
15673         [BZ #18822]
15674         * include/sys/uio.h (__readv): Add libc_hidden_proto.
15675         (__writev): Likewise.
15676         * misc/readv.c (__readv): Add libc_hidden_def.
15677         * misc/writev.c (__writev): Likewise.
15678         * sysdeps/posix/readv.c (__readv): Likewise.
15679         * sysdeps/posix/writev.c (__writev): Likewise.
15680         * sysdeps/unix/sysv/linux/readv.c: Include <sys/uio.h>.
15681         (__readv): Likewise.
15682         * sysdeps/unix/sysv/linux/writev.c: Include <sys/uio.h>.
15683         (__writev): Likewise.
15684
15685 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
15686
15687         [BZ #18822]
15688         * include/regex.h (__re_compile_fastmap): Add attribute_hidden.
15689         (__regcomp): Add libc_hidden_proto.
15690         (__regexec): Likewise.
15691         (__regfree): Likewise.
15692         * posix/regcomp.c (__regcomp): Add libc_hidden_def.
15693         (__regfree): Likewise.
15694         * posix/regexec.c (__regexec): Likewise.
15695
15696 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
15697
15698         [BZ #18822]
15699         * include/utmp.h (__updwtmp): Add libc_hidden_proto.
15700         (__getutent): Likewise.
15701         (__getutid): Likewise.
15702         (__getutline): Likewise.
15703         (__pututline): Likewise.
15704         (__getutent_r): Likewise.
15705         (__getutid_r): Likewise.
15706         (__getutline_r): Likewise.
15707         (__utmpname): Add attribute_hidden.
15708         (__setutent): Likewise.
15709         (__endutent): Likewise.
15710         * login/getutent.c (__getutent): Add libc_hidden_def.
15711         * login/getutent_r.c (__getutent_r): Likewise.
15712         (__pututline): Likewise.
15713         * login/getutid.c (__getutid): Likewise.
15714         * login/getutid_r.c (__getutid_r): Likewise.
15715         * login/getutline.c (__getutline): Likewise.
15716         * login/getutline_r.c (__getutline_r): Likewise.
15717         * login/updwtmp.c (__updwtmp): Likewise.
15718
15719 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
15720
15721         [BZ #18822]
15722         * include/dirent.h (__opendir): Always add attribute_hidden.
15723         (__fdopendir): Likewise.
15724         (__closedir): Likewise.
15725         (__readdir): Likewise.
15726         (__readdir64): Add libc_hidden_proto.
15727         * sysdeps/mach/hurd/readdir64.c (__readdir64): Add libc_hidden_def.
15728         * sysdeps/unix/sysv/linux/i386/readdir64.c (__readdir64): Likewise.
15729         * sysdeps/unix/sysv/linux/readdir64.c (__readdir64): Likewise.
15730         * sysdeps/unix/sysv/linux/wordsize-64/readdir.c (__GI___readdir64):
15731         New alias.
15732
15733 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
15734
15735         [BZ #18822]
15736         * include/aliases.h (__getaliasbyname_r): Add attribute_hidden.
15737         * include/netdb.h (__gethostbyaddr_r): Likewise.
15738         (__gethostbyname_r): Likewise.
15739         (__gethostbyname2_r): Likewise.
15740         (__getnetbyaddr_r): Likewise.
15741         (__getnetbyname_r): Likewise.
15742         (__getservbyname_r): Likewise.
15743         (__getservbyport_r): Likewise.
15744         (__getprotobyname_r): Likewise.
15745         (__getprotobynumber_r): Likewise.
15746         (__getnetgrent_r): Likewise.
15747         * include/rpc/netdb.h (__getrpcbyname_r): Likewise.
15748         (__getrpcbynumber_r): Likewise.
15749         * nss/getXXbyYY.c (INTERNAL (REENTRANT_NAME)): Likewise.
15750
15751 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
15752
15753         [BZ #18822]
15754         * include/stdio.h (__fcloseall): Add attribute_hidden.
15755         (__getline): Likewise.
15756         (__path_search): Likewise.
15757         (__gen_tempname): Likewise.
15758         (__libc_message): Likewise.
15759         (__flockfile): Likewise.
15760         (__funlockfile): Likewise.
15761         (__fxprintf): Likewise.
15762         (__fxprintf_nocancel): Likewise.
15763
15764 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
15765
15766         [BZ #18822]
15767         * include/gshadow.h (__fgetsgent_r): Add attribute_hidden.
15768         (__sgetsgent_r): Likewise.
15769
15770 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
15771
15772         [BZ #18822]
15773         * include/sys/statfs.h (__fstatfs): Add attribute_hidden.
15774         (__statfs64): Likewise.
15775         (__fstatfs64): Likewise.
15776         * include/sys/statvfs.h (__statvfs64): Likewise.
15777         (__fstatvfs64): Likewise.
15778         * sysdeps/unix/sysv/linux/pathconf.h (__statfs_link_max): Likewise.
15779         (__statfs_filesize_max): Likewise.
15780         (__statfs_symlinks): Likewise.
15781         (__statfs_chown_restricted): Likewise.
15782
15783 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
15784
15785         [BZ #18822]
15786         * include/time.h (__tzstring): Add attribute_hidden.
15787         (__tzfile_read): Likewise.
15788         (__tzfile_compute): Likewise.
15789         (__tzfile_default): Likewise.
15790         (__tzset_parse_tz): Likewise.
15791         (__offtime): Likewise.
15792         (__asctime_r): Likewise.
15793         (__tzset): Likewise.
15794         (__tz_convert): Likewise.
15795         (__getdate_r): Likewise.
15796         (__getclktck): Likewise.
15797
15798 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
15799
15800         [BZ #18822]
15801         * nscd/nscd-client.h (__nscd_get_map_ref): Add attribute_hidden.
15802         (__nscd_unmap): Likewise.
15803         (__nscd_cache_search): Likewise.
15804         (__nscd_get_nl_timestamp): Likewise.
15805         (__nscd_getpwnam_r): Likewise.
15806         (__nscd_getpwuid_r): Likewise.
15807         (__nscd_getgrnam_r): Likewise.
15808         (__nscd_getgrgid_r): Likewise.
15809         (__nscd_gethostbyname_r): Likewise.
15810         (__nscd_gethostbyname2_r): Likewise.
15811         (__nscd_gethostbyaddr_r): Likewise.
15812         (__nscd_getai): Likewise.
15813         (__nscd_getgrouplist): Likewise.
15814         (__nscd_getservbyname_r): Likewise.
15815         (__nscd_getservbyport_r): Likewise.
15816         (__nscd_innetgr): Likewise.
15817         (__nscd_setnetgrent): Likewise.
15818
15819 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
15820
15821         [BZ #18822]
15822         * include/gmp.h: Declare internal functions only if _ISOMAC is
15823         undefined.
15824         (__mpn_extract_double): Add attribute_hidden.
15825         (__mpn_extract_long_double): Likewise.
15826         (__mpn_extract_float128): Likewise.
15827         (__mpn_construct_float): Likewise.
15828         (__mpn_construct_double): Likewise.
15829         (__mpn_construct_long_double): Likewise.
15830         (__mpn_construct_float128): Likewise.
15831         (mpn_add_1): Likewise.
15832         (mpn_addmul_1): Likewise.
15833         (mpn_add_n): Likewise.
15834         (mpn_cmp): Likewise.
15835         (mpn_divrem): Likewise.
15836         (mpn_lshift): Likewise.
15837         (mpn_mul): Likewise.
15838         (mpn_mul_1): Likewise.
15839         (mpn_rshift): Likewise.
15840         (mpn_sub_1): Likewise.
15841         (mpn_submul_1): Likewise.
15842         (mpn_sub_n): Likewise.
15843
15844 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
15845
15846         [BZ #18822]
15847         * include/wchar.h (__wcsnlen): Add attribute_hidden.
15848         (__wcscat): Likewise.
15849         (__btowc): Likewise.
15850         (__wcrtomb): Likewise.
15851         (__mbsrtowcs): Likewise.
15852         (__wcsrtombs): Likewise.
15853         (__mbsnrtowcs): Likewise.
15854         (__wcsnrtombs): Likewise.
15855         (__wcsncpy): Likewise.
15856         (__wcpncpy): Likewise.
15857         (__wmemcpy): Likewise.
15858         (__wmempcpy): Likewise.
15859         (__wmemmove): Likewise.
15860         (__wcschrnul): Likewise.
15861         (__vfwscanf): Likewise.
15862         (__vswprintf): Likewise.
15863         (__fwprintf): Likewise.
15864         (__vfwprintf): Likewise.
15865
15866 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
15867
15868         [BZ #18822]
15869         * include/grp.h (__fgetgrent_r): Add attribute_hidden.
15870         (__getgrgid_r): Likewise.
15871         (__getgrnam_r): Likewise.
15872         * include/pwd.h (__getpwuid_r): Likewise.
15873         (__getpwnam_r): Likewise.
15874         (__fgetpwent_r): Likewise.
15875         * include/shadow.h (__getspnam_r): Likewise.
15876         (__sgetspent_r): Likewise.
15877         (__fgetspent_r): Likewise.
15878
15879 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
15880
15881         [BZ #18822]
15882         * include/unistd.h (__access): Add attribute_hidden.
15883         (__lseek64): Likewise.
15884         (__libc_pread64): Likewise.
15885         (__pipe2): Likewise.
15886         (__sleep): Likewise.
15887         (__chdir): Likewise.
15888         (__fchdir): Likewise.
15889         (__getcwd): Likewise.
15890         (__rmdir): Likewise.
15891         (__execvpe): Likewise.
15892         (__execve): Likewise.
15893         (__setsid): Likewise.
15894         (__getuid): Likewise.
15895         (__geteuid): Likewise.
15896         (__getgid): Likewise.
15897         (__getegid): Likewise.
15898         (__getgroups): Likewise.
15899         (__group_member): Likewise.
15900         (__ttyname_r): Likewise.
15901         (__isatty): Likewise.
15902         (__readlink): Likewise.
15903         (__unlink): Likewise.
15904         (__gethostname): Likewise.
15905         (__profil): Likewise.
15906         (__getdtablesize): Likewise.
15907         (__brk): Likewise.
15908         (__ftruncate): Likewise.
15909         (__ftruncate64): Likewise.
15910
15911 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
15912
15913         [BZ #18822]
15914         * argp/argp-fmtstream.c: Include <argp-fmtstream.h>.
15915         * argp/argp-fs-xinl.c: Likewise.
15916         * argp/argp-help.c: Include <argp.h> and <argp-fmtstream.h>.
15917         * argp/argp-parse.c: Include <argp.h>.
15918         * argp/argp-xinl.c: Likewise.
15919         * include/argp-fmtstream.h: New file.
15920         * include/argp.h (__argp_error): Add attribute_hidden.
15921         (__argp_failure): Likewise.
15922         (__argp_input): Likewise.
15923         (__argp_state_help): Likewise.
15924
15925 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
15926
15927         [BZ #18822]
15928         * include/wchar.h (____wcstof_l_internal): New prototype.
15929         (____wcstod_l_internal): Likewise.
15930         (____wcstold_l_internal): Likewise.
15931         (____wcstol_l_internal): Likewise.
15932         (____wcstoul_l_internal): Likewise.
15933         (____wcstoll_l_internal): Likewise.
15934         (____wcstoull_l_internal): Likewise.
15935         (____wcstof128_l_internal): Likewise.
15936         * sysdeps/ieee754/float128/wcstof128.c
15937         (____wcstof128_l_internal): Removed.
15938         * sysdeps/ieee754/float128/wcstof128_l.c
15939         (____wcstof128_l_internal): Likewise.
15940         * wcsmbs/wcstod.c (____wcstod_l_internal): Likewise.
15941         * wcsmbs/wcstod_l.c (____wcstod_l_internal): Likewise.
15942         * wcsmbs/wcstof.c (____wcstof_l_internal): Likewise.
15943         * wcsmbs/wcstof_l.c (____wcstof_l_internal): Likewise.
15944         * wcsmbs/wcstol_l.c (____wcstol_l_internal): Likewise.
15945         * wcsmbs/wcstold.c (____wcstold_l_internal): Likewise.
15946         * wcsmbs/wcstold_l.c (____wcstold_l_internal): Likewise.
15947         * wcsmbs/wcstoll_l.c (____wcstoll_l_internal): Likewise.
15948         * wcsmbs/wcstoul_l.c (____wcstoul_l_internal): Likewise.
15949         * wcsmbs/wcstoull_l.c (____wcstoull_l_internal): Likewise.
15950
15951 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
15952
15953         [BZ #18822]
15954         * sysdeps/unix/sysv/linux/fstatvfs.c: Include "internal_statvfs.h"
15955         instead of <sys/statvfs.h>.
15956         (__internal_statvfs): Removed.
15957         * sysdeps/unix/sysv/linux/fstatvfs64.c Include "internal_statvfs.h"
15958         instead of <sys/statvfs.h>.
15959         (__internal_statvfs64): Removed.
15960         * sysdeps/unix/sysv/linux/internal_statvfs.c: Include
15961         "internal_statvfs.h" instead of <sys/statvfs.h>.
15962         * sysdeps/unix/sysv/linux/internal_statvfs.h: New file.
15963         * sysdeps/unix/sysv/linux/statvfs.c Include "internal_statvfs.h"
15964         instead of <sys/statvfs.h>.
15965         (__internal_statvfs): Removed.
15966         * sysdeps/unix/sysv/linux/statvfs64.c Include "internal_statvfs.h"
15967         instead of <sys/statvfs.h>.
15968         (__internal_statvfs64): Removed.
15969
15970 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
15971
15972         [BZ #18822]
15973         * iconv/gconv_int.h (__gconv_open): Add attribute_hidden.
15974         (__gconv_close): Likewise.
15975         (__gconv): Likewise.
15976         (__gconv_find_transform): Likewise.
15977         (__gconv_lookup_cache): Likewise.
15978         (__gconv_compare_alias_cache): Likewise.
15979         (__gconv_load_cache): Likewise.
15980         (__gconv_get_path): Likewise.
15981         (__gconv_close_transform): Likewise.
15982         (__gconv_release_cache): Likewise.
15983         (__gconv_find_shlib): Likewise.
15984         (__gconv_release_shlib): Likewise.
15985         (__gconv_get_builtin_trans): Likewise.
15986         (__gconv_compare_alias): Likewise.
15987         * include/dlfcn.h (_dlerror_run): Likewise.
15988         * include/stdio.h (__fortify_fail_abort): Likewise.
15989         * include/time.h (__tz_compute): Likewise.
15990         (__strptime_internal): Likewise.
15991         * intl/gettextP.h (_nl_find_domain): Likewise.
15992         (_nl_load_domain): Likewise.
15993         (_nl_find_msg): Likewise.
15994         * intl/plural-exp.h (FREE_EXPRESSION): Likewise.
15995         (EXTRACT_PLURAL_EXPRESSION): Likewise.
15996         * locale/coll-lookup.h (__collidx_table_lookup): Likewise.
15997         * resolv/gai_misc.h (__gai_enqueue_request): Likewise.
15998         (__gai_find_request): Likewise.
15999         (__gai_remove_request): Likewise.
16000         (__gai_notify): Likewise.
16001         (__gai_notify_only): Likewise.
16002         * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
16003         * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
16004         (_dl_non_dynamic_init): Likewise.
16005         (_dl_aux_init): Likewise.
16006         * sysdeps/i386/machine-gmon.h (mcount_internal): Likewise.
16007         * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
16008         Likewise.
16009         * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv): Likewise.
16010         (__wcsmbs_clone_conv): Likewise.
16011         (__wcsmbs_named_conv): Likewise.
16012
16013 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
16014
16015         [BZ #18822]
16016         * include/stdlib.h (__random): Add attribute_hidden.
16017         (__random_r): Likewise.
16018         (__srandom_r): Likewise.
16019         (__initstate_r): Likewise.
16020         (__setstate_r): Likewise.
16021         (__erand48_r): Likewise.
16022         (__nrand48_r): Likewise.
16023         (__jrand48_r): Likewise.
16024         (__srand48_r): Likewise.
16025         (__seed48_r): Likewise.
16026         (__lcong48_r): Likewise.
16027         (__drand48_iterate): Likewise.
16028         (__setenv): Likewise.
16029         (__unsetenv): Likewise.
16030         (__clearenv): Likewise.
16031         (__ptsname_r): Likewise.
16032         (__posix_openpt): Likewise.
16033         (__add_to_environ): Likewise.
16034         (__realpath): Add libc_hidden_proto.
16035         (__ecvt_r): Likewise.
16036         (__fcvt_r): Likewise.
16037         (__qecvt_r): Likewise.
16038         (__qfcvt_r): Likewise.
16039         * misc/efgcvt_r.c (cvt_symbol_1): Add libc_hidden_def (local).
16040         * stdlib/canonicalize.c (__realpath): Add libc_hidden_def.
16041
16042 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
16043
16044         [BZ #18822]
16045         * include/stdlib.h (__ptsname_internal): Add attribute_hidden.
16046         * include/time.h (__mktime_internal): Likewise.
16047         * libio/iolibio.h (__fopen_internal): Likewise.
16048
16049 2017-10-01  John David Anglin  <danglin@gcc.gnu.org>
16050
16051         * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Save return
16052         pointer in frame.
16053         * sysdeps/unix/sysv/linux/hppa/setcontext.S (__setcontext): Likewise.
16054         Correct offset used to restore PIC register.
16055
16056 2017-09-30  John David Anglin  <danglin@gcc.gnu.org>
16057
16058         [BZ libc/22165]
16059         * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Use PIC
16060         code to load address of __getcontext_ret when generating PIC code.
16061
16062 2017-09-30  H.J. Lu  <hongjiu.lu@intel.com>
16063
16064         * elf/Makefile (tests-static-internal): Add
16065         tst-tls1-static-non-pie.
16066         (LDFLAGS-tst-tls1-static-non-pie): New.
16067         * elf/tst-tls1-static-non-pie.c: New file.
16068
16069 2017-09-29  Joseph Myers  <joseph@codesourcery.com>
16070
16071         * sysdeps/ieee754/dbl-64/s_asinh.c: Include <libm-alias-double.h>.
16072         (asinh): Define using libm_alias_double.
16073         * sysdeps/ieee754/dbl-64/s_cbrt.c: Include <libm-alias-double.h>.
16074         (cbrt): Define using libm_alias_double.
16075         * sysdeps/ieee754/dbl-64/s_copysign.c: Include
16076         <libm-alias-double.h>.
16077         (copysign): Define using libm_alias_double.
16078         * sysdeps/ieee754/dbl-64/s_erf.c: Include <libm-alias-double.h>.
16079         (erf): Define using libm_alias_double.
16080         (erfc): Likewise.
16081         * sysdeps/ieee754/dbl-64/s_expm1.c: Include <libm-alias-double.h>.
16082         (expm1): Define using libm_alias_double.
16083         * sysdeps/ieee754/dbl-64/s_fabs.c: Include <libm-alias-double.h>.
16084         (fabs): Define using libm_alias_double.
16085         * sysdeps/ieee754/dbl-64/s_fromfp.c (fromfp): Define using
16086         libm_alias_double.
16087         * sysdeps/ieee754/dbl-64/s_fromfp_main.c: Include
16088         <libm-alias-double.h>.
16089         * sysdeps/ieee754/dbl-64/s_fromfpx.c (fromfpx): Define using
16090         libm_alias_double.
16091         * sysdeps/ieee754/dbl-64/s_getpayload.c: Include
16092         <libm-alias-double.h>.
16093         (getpayload): Define using libm_alias_double.
16094         * sysdeps/ieee754/dbl-64/s_llrint.c: Include
16095         <libm-alias-double.h>.
16096         (llrint): Define using libm_alias_double.
16097         * sysdeps/ieee754/dbl-64/s_lrint.c: Include <libm-alias-double.h>.
16098         (lrint): Define using libm_alias_double.
16099         * sysdeps/ieee754/dbl-64/s_nextup.c: Include
16100         <libm-alias-double.h>.
16101         (nextup): Define using libm_alias_double.
16102         * sysdeps/ieee754/dbl-64/s_roundeven.c: Include
16103         <libm-alias-double.h>.
16104         (roundeven): Define using libm_alias_double.
16105         * sysdeps/ieee754/dbl-64/s_setpayload.c (setpayload): Define using
16106         libm_alias_double.
16107         * sysdeps/ieee754/dbl-64/s_setpayload_main.c: Include
16108         <libm-alias-double.h>.
16109         * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (setpayloadsig): Define
16110         using libm_alias_double.
16111         * sysdeps/ieee754/dbl-64/s_sin.c: Include <libm-alias-double.h>.
16112         (cos): Define using libm_alias_double.
16113         (sin): Likewise.
16114         * sysdeps/ieee754/dbl-64/s_sincos.c: Include
16115         <libm-alias-double.h>.
16116         (sincos): Define using libm_alias_double.
16117         * sysdeps/ieee754/dbl-64/s_tanh.c: Include <libm-alias-double.h>.
16118         (tanh): Define using libm_alias_double.
16119         * sysdeps/ieee754/dbl-64/s_totalorder.c: Include
16120         <libm-alias-double.h>.
16121         (totalorder): Define using libm_alias_double.
16122         * sysdeps/ieee754/dbl-64/s_totalordermag.c: Include
16123         <libm-alias-double.h>.
16124         (totalordermag): Define using libm_alias_double.
16125         * sysdeps/ieee754/dbl-64/s_ufromfp.c (ufromfp): Define using
16126         libm_alias_double.
16127         * sysdeps/ieee754/dbl-64/s_ufromfpx.c (ufromfpx): Define using
16128         libm_alias_double.
16129         * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c: Include
16130         <libm-alias-double.h>.
16131         (getpayload): Define using libm_alias_double.
16132         * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c: Include
16133         <libm-alias-double.h>.
16134         (roundeven): Define using libm_alias_double.
16135         * sysdeps/ieee754/dbl-64/wordsize-64/s_setpayload_main.c: Include
16136         <libm-alias-double.h>.
16137         * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c: Include
16138         <libm-alias-double.h>.
16139         (totalorder): Define using libm_alias_double.
16140         * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c: Include
16141         <libm-alias-double.h>.
16142         (totalordermag): Define using libm_alias_double.
16143         * sysdeps/ieee754/ldbl-opt/s_copysign.c (copysignl): Only define
16144         libc compat symbol here.
16145         * sysdeps/ieee754/ldbl-opt/s_asinh.c: Remove file.
16146         * sysdeps/ieee754/ldbl-opt/s_cbrt.c: Likewise.
16147         * sysdeps/ieee754/ldbl-opt/s_erf.c: Likewise.
16148         * sysdeps/ieee754/ldbl-opt/s_expm1.c: Likewise.
16149         * sysdeps/ieee754/ldbl-opt/s_fabs.c: Likewise.
16150         * sysdeps/ieee754/ldbl-opt/s_llrint.c: Likewise.
16151         * sysdeps/ieee754/ldbl-opt/s_lrint.c: Likewise.
16152         * sysdeps/ieee754/ldbl-opt/s_sin.c: Likewise.
16153         * sysdeps/ieee754/ldbl-opt/s_sincos.c: Likewise.
16154         * sysdeps/ieee754/ldbl-opt/s_tanh.c: Likewise.
16155
16156 2017-09-29  H.J. Lu  <hongjiu.lu@intel.com>
16157
16158         * sysdeps/arm/dl-machine.h (elf_machine_load_address): Use
16159         _dl_relocate_static_pie instead of _dl_start to compute load
16160         address in static PIE.  Return 0 if _DYNAMIC is undefined for
16161         static executable.
16162
16163 2017-09-29  H.J. Lu  <hongjiu.lu@intel.com>
16164
16165         * sysdeps/mips/dl-machine.h (elf_machine_dynamic): Return 0 if
16166         _DYNAMIC is undefined for static executable.
16167
16168 2017-09-29  H.J. Lu  <hongjiu.lu@intel.com>
16169
16170         * sysdeps/arm/start.S (_start): Check PIC instead of SHARED.
16171
16172 2017-09-29  Joseph Myers  <joseph@codesourcery.com>
16173
16174         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
16175
16176 2017-09-29  Wilco Dijkstra  <wdijkstr@arm.com>
16177
16178         * sysdeps/ieee754/dbl-64/e_lgamma_r.c
16179         (__ieee754_lgamma_r): Use fabs rather than __fabs.
16180         * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
16181         * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
16182         * sysdeps/ieee754/flt-32/e_lgammaf_r.c
16183         (__ieee754_lgammaf_r): Use fabsf rather than __fabsf.
16184         * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
16185         * sysdeps/ieee754/flt-32/e_log2f.c (__ieee754_log2f): Likewise.
16186         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c
16187         (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
16188         * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Likewise.
16189         * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Likewise.
16190         * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
16191         (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
16192         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l): Likewise.
16193         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l): Likewise.
16194         * sysdeps/powerpc/nofpu/Makefile: Add -fno-builtin-fabsl for BZ #29253.
16195
16196 2017-09-29  Wilco Dijkstra  <wdijkstr@arm.com>
16197
16198         * math/bits/cmathcalls.h (cimag): Remove inline.
16199         (creal): Remove inline.
16200         (conj): Remove inline.
16201
16202 2017-09-29  Szabolcs Nagy  <szabolcs.nagy@arm.com>
16203
16204         * math/Makefile (type-float-routines): Add e_powf_log2_data.
16205         * sysdeps/ieee754/flt-32/e_powf.c: New implementation.
16206         * sysdeps/ieee754/flt-32/e_powf_log2_data.c: New file.
16207         * sysdeps/ieee754/flt-32/math_config.h (__powf_log2_data): Define.
16208         (issignalingf_inline): Likewise.
16209         (POWF_LOG2_TABLE_BITS): Likewise.
16210         (POWF_LOG2_POLY_ORDER): Likewise.
16211         (POWF_SCALE_BITS): Likewise.
16212         (POWF_SCALE): Likewise.
16213         * sysdeps/i386/fpu/e_powf_log2_data.c: New file.
16214         * sysdeps/ia64/fpu/e_powf_log2_data.c: New file.
16215         * sysdeps/m68k/m680x0/fpu/e_powf_log2_data.c: New file.
16216
16217 2017-09-29  Szabolcs Nagy  <szabolcs.nagy@arm.com>
16218
16219         * math/Makefile (type-float-routines): Add e_log2f_data.
16220         * sysdeps/ieee754/flt-32/e_log2f.c: New implementation.
16221         * sysdeps/ieee754/flt-32/e_log2f_data.c: New file.
16222         * sysdeps/ieee754/flt-32/math_config.h (__log2f_data): Define.
16223         (LOG2F_TABLE_BITS, LOG2F_POLY_ORDER): Define.
16224         * sysdeps/i386/fpu/e_log2f_data.c: New file.
16225         * sysdeps/ia64/fpu/e_log2f_data.c: New file.
16226         * sysdeps/m68k/m680x0/fpu/e_log2f_data.c: New file.
16227
16228 2017-09-29  Szabolcs Nagy  <szabolcs.nagy@arm.com>
16229
16230         * math/Makefile (type-float-routines): Add e_logf_data.
16231         * sysdeps/ieee754/flt-32/e_logf.c: New implementation.
16232         * sysdeps/ieee754/flt-32/e_logf_data.c: New file.
16233         * sysdeps/ieee754/flt-32/math_config.h (__logf_data): Define.
16234         (LOGF_TABLE_BITS, LOGF_POLY_ORDER): Define.
16235         * sysdeps/i386/fpu/e_logf_data.c: New file.
16236         * sysdeps/ia64/fpu/e_logf_data.c: New file.
16237         * sysdeps/m68k/m680x0/fpu/e_logf_data.c: New file.
16238
16239 2017-09-28  H.J. Lu  <hongjiu.lu@intel.com>
16240
16241         * sysdeps/i386/dl-machine.h (elf_machine_load_address): Allow
16242         undefined _DYNAMIC in PIE libc.a.
16243         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
16244         Likewse.
16245
16246 2017-09-28  Wilco Dijkstra  <wdijkstr@arm.com>
16247
16248         * sysdeps/alpha/fpu/bits/mathinline.h: Delete file.
16249         * sysdeps/ia64/fpu/bits/mathinline.h: Delete file.
16250         * sysdeps/m68k/coldfire/fpu/bits/mathinline.h: Delete file.
16251         * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: (__signbitf): Remove.
16252         (__signbit): Remove.
16253         (__signbitl): Remove.
16254         * sysdeps/powerpc/bits/mathinline.h (__signbitf): Remove.
16255         (__signbit): Remove.
16256         (__signbitl): Remove.
16257         * sysdeps/s390/fpu/bits/mathinline.h: (__signbitf): Remove.
16258         (__signbit): Remove.
16259         (__signbitl): Remove.
16260         * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf): Remove.
16261         (__signbit): Remove.
16262         (__signbitl): Remove.
16263         * sysdeps/tile/bits/mathinline.h: Delete file.
16264         * sysdeps/x86/fpu/bits/mathinline.h (__signbitf): Remove.
16265         (__signbit): Remove.
16266         (__signbitl): Remove.
16267
16268 2017-09-28  Wilco Dijkstra  <wdijkstr@arm.com>
16269
16270         * math/math.h: Improve handling of C99 isgreater macros.
16271         * sysdeps/alpha/fpu/bits/mathinline.h: Remove isgreater macros.
16272         * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: Likewise.
16273         * sysdeps/powerpc/bits/mathinline.h: Likewise.
16274         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
16275         * sysdeps/x86/fpu/bits/mathinline.h: Likewise.
16276
16277 2017-09-28  Szabolcs Nagy  <szabolcs.nagy@arm.com>
16278
16279         * sysdeps/aarch64/libm-test-ulps: Update.
16280
16281 2017-09-28  Joseph Myers  <joseph@codesourcery.com>
16282
16283         [BZ #22225]
16284         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
16285         math_opt_barrier on argument when doing arithmetic on it.
16286         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
16287         Likewise.  Use math_force_eval not math_opt_barrier after
16288         arithmetic.
16289         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Use
16290         math_opt_barrier on argument when doing arithmetic on it.
16291         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
16292         Likewise.
16293
16294 2017-09-27  H.J. Lu  <hongjiu.lu@intel.com>
16295
16296         * sysdeps/unix/sysv/linux/ifaddrs.c (__getifaddrs): Add
16297         libc_hidden_def.
16298         (__freeifaddrs): Likewise.
16299
16300 2017-09-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
16301
16302         * include/dirent.h (__dirfd): New declaration.
16303         * dirent/dirfd.c (dirfd): Rename to __dirfd, and redefine as weak
16304         alias.
16305         * sysdeps/posix/dirfd/dirfd.c (dirfd): Likewise.
16306         * sysdeps/mach/hurd/dirfd.c (dirfd): Likewise.
16307         * io/ftw.c (open_dir_stream, ftw_dir): Use __dirfd instead of dirfd.
16308         * include/unistd.h (__revoke): New declaration.
16309         * misc/revoke.c (revoke): Rename to __revoke, and redefine as weak
16310         alias.
16311         * sysdeps/mach/hurd/revoke.c (revoke): Likewise.
16312         * sysdeps/unix/bsd/unlockpt.c (unlockpt): Use __revoke instead of
16313         revoke.
16314         * include/dirent.h (__seekdir): New declaration.
16315         * sysdeps/mach/hurd/seekdir.c (seekdir): Rename to __seekdir and
16316         redefine as weak alias.
16317         * sysdeps/mach/hurd/rewinddir.c (__rewinddir): Use __seekdir instead
16318         of seekdir.
16319         * include/ifaddrs.h (__getifaddrs, __freeifaddrs): New declarations,
16320         and use libc_hidden_def on them.
16321         * inet/ifaddrs.c (__getifaddrs, __freeifaddrs): Use libc_hidden_def on
16322         them.
16323         * sysdeps/gnu/ifaddrs.c (__getifaddrs, __freeifaddrs): Likewise.
16324         * inet/check_pf.c (__check_pf): Use __getifaddrs and __freeifaddrs
16325         instead of getifaddrs and freeifaddrs.
16326
16327 2017-09-26  H.J. Lu  <hongjiu.lu@intel.com>
16328
16329         [BZ #18822]
16330         * dlfcn/modatexit.c (foo): Remove __dso_handle check.
16331         * dlfcn/modcxaatexit.c: Include <dso_handle.h>.
16332         (__dso_handle): Remove declaration.
16333         * dlfcn/tstatexit.c (__dso_handle): Removed.
16334         (main): Don't check __dso_handle.
16335         * dlfcn/tstcxaatexit.c (__dso_handle): Removed.
16336         (main): Don't check __dso_handle.
16337         * include/dso_handle.h: New file.
16338         * malloc/mtrace.c: Include <dso_handle.h>.
16339         (mtrace): Pass __dso_handle directly.
16340         * nptl/pthread_atfork.c: Include <dso_handle.h>.
16341         (__dso_handle): Remove declaration.
16342         (__pthread_atfork): Pass __dso_handle directly.
16343         * nptl/tst-atfork2mod.c: Include <dso_handle.h>.
16344         (__dso_handle): Removed.
16345         * posix/wordexp-test.c: Include <dso_handle.h>.
16346         (__dso_handle): Remove declaration.
16347         (__app_register_atfork): Pass __dso_handle directly.
16348         * stdlib/at_quick_exit.c: Include <dso_handle.h>.
16349         (__dso_handle): Remove declaration.
16350         (at_quick_exit): Pass __dso_handle directly.
16351         * stdlib/atexit.c: Include <dso_handle.h>.
16352         (__dso_handle): Remove declaration.
16353         (atexit): Pass __dso_handle directly.
16354         * stdlib/tst-tls-atexit-lib.c: Include <dso_handle.h>.
16355         (__dso_handle): Removed.
16356
16357 2017-09-26  Joseph Myers  <joseph@codesourcery.com>
16358
16359         * sysdeps/unix/make-syscalls.sh: Use __ifunc to define symbols
16360         using VDSO.
16361
16362 2017-09-26  Alexey Makhalov  <amakhalov@vmware.com>
16363
16364         * elf/dl-tunables.c (do_tunable_update_val): Range checking fix.
16365         * scripts/gen-tunables.awk: Set unspecified minval and/or maxval
16366         values to correct default value for given type.
16367
16368 2017-09-26  H.J. Lu  <hongjiu.lu@intel.com>
16369
16370         [BZ #22101]
16371         * elf/Makefile (tests): Add tst-debug1.
16372         ($(objpfx)tst-debug1): New.
16373         ($(objpfx)tst-debug1.out): Likewise.
16374         ($(objpfx)tst-debug1mod1.so): Likewise.
16375         * elf/dl-load.c (_dl_map_object_from_fd): Skip PT_DYNAMIC segment
16376         with p_filesz == 0.
16377         * elf/tst-debug1.c: New file.
16378
16379 2017-09-26  Joseph Myers  <joseph@codesourcery.com>
16380
16381         * sysdeps/sparc/sparc-ifunc.h [!__ASSEMBLER__] (sparc_libm_ifunc):
16382         Define using __ifunc.
16383
16384 2017-09-26  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
16385
16386         * sysdeps/powerpc/fpu/libm-test-ulps: Regenerate expf() and
16387         exp2f() values.
16388
16389 2017-09-26  Joseph Myers  <joseph@codesourcery.com>
16390
16391         [BZ #22156]
16392         * sysdeps/ia64/stackinfo.h (DEFAULT_STACK_PERMS): Likewise.
16393
16394 2017-09-26  Florian Weimer  <fweimer@redhat.com>
16395
16396         * resolv/Makefile (tests-internal): Fix typo in comment.
16397
16398 2017-09-26  Florian Weimer  <fweimer@redhat.com>
16399
16400         * resolv/nss_dns/dns-host.c: Fix typo in comment.
16401
16402 2017-09-25  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
16403
16404         * lib/malloc/scratch_buffer.h (struct scratch_buffer):
16405         Use an union instead of a max_align_t array for __space,
16406         so that __space is the same size on all platforms.
16407         * malloc/scratch_buffer_grow_preserve.c
16408         (__libc_scratch_buffer_grow_preserve): Likewise.
16409
16410         [BZ #22183]
16411         * include/gnu-versions.h (_GNU_GLOB_INTERFACE_VERSION): Increase
16412         version to 2.
16413         * posix/Makefile (routines): Add glob-lstat-compat and
16414         glob64-lstat-compat.
16415         * posix/Versions (GLIBC_2.27, glob, glob64): Add symbol version.
16416         * posix/glob-lstat-compat.c: New file.
16417         * posix/glob64-lstat-compat.c: Likewise.
16418         * posix/tst-glob_lstat_compat.c: Likewise.
16419         * sysdeps/unix/sysv/linux/glob-lstat-compat.c: Likewise.
16420         * sysdeps/unix/sysv/linux/alpha/glob-lstat-compat.c: Likewise.
16421         * sysdeps/unix/sysv/linux/glob64-lstat-compat.c: Likewise.
16422         * sysdeps/unix/sysv/linux/s390/s390-32/glob64-lstat-compat.c:
16423         Likewise.
16424         * sysdeps/unix/sysv/linux/alpha/glob.c: Remove file.
16425         * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
16426         * posix/glob.c (glob_lstat): New function.
16427         (glob): Rename to __glob and add versioned symbol to 2.27.
16428         (glob_in_dir): Use glob_lstat.
16429         * posix/glob64.c (glob64): Add GLOB_ATTRIBUTE.
16430         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
16431         * sysdeps/unix/sysv/linux/glob.c (glob): Add versioned symbol for
16432         2.27.
16433         * sysdeps/unix/sysv/linux/glob64.c (glob64): Likewise.
16434         * sysdeps/unix/sysv/linux/oldglob.c (GLOB_NO_LSTAT): Define.
16435         * sysdeps/unix/sysv/linux/alpha/oldglob.c (__old_glob): Do not use
16436         gl_lstat on glob call.
16437         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add GLIBC_2.27 glob
16438         and glob64 symbols.
16439         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
16440         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
16441         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
16442         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
16443         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
16444         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
16445         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
16446         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
16447         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
16448         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
16449         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
16450         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
16451         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
16452         Likewise.
16453         * sysdeps/unix/linux/powerpc/powerpc32/nofpu/libc.abilist: Likewise.
16454         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
16455         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
16456         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
16457         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
16458         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
16459         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
16460         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
16461         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
16462         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
16463         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
16464         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
16465
16466 2017-09-25  H.J. Lu  <hongjiu.lu@intel.com>
16467
16468         * configure.ac (AS): Require binutils 2.25 or later.
16469         * configure: Regenerated.
16470
16471 2017-09-25  Paul Pluzhnikov  <ppluzhnikov@google.com>
16472
16473         [BZ #22207]
16474         * stdlib/test-atexit-race-common.c (do_test): Minimize required
16475         VM size.
16476
16477 2017-09-25  DJ Delorie  <dj@redhat.com>
16478
16479         [BZ #22161]
16480         * nscd/netgroupcache.c (addinnetgrX): Release read lock after
16481         resetting timeout.
16482
16483 2017-09-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
16484
16485         * sysdeps/ieee754/dbl-64/sincos32.h
16486         [SINCCOS32_H]: Remove define.
16487         [SINCOS32_H]: Define.
16488
16489 2017-09-25  Szabolcs Nagy  <szabolcs.nagy@arm.com>
16490
16491         * math/Versions (expf): New libm symbol at GLIBC_2.27.
16492         (exp2f): Likewise.
16493         * math/w_exp2f.c: New file.
16494         * math/w_expf.c: New file.
16495         * math/w_exp2f_compat.c (__exp2f_compat): For compat symbol only.
16496         * math/w_expf_compat.c (__expf_compat): Likewise.
16497         * sysdeps/ia64/fpu/e_exp2f.S: Add versioned symbols.
16498         * sysdeps/ia64/fpu/e_expf.S: Likewise.
16499         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
16500         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
16501         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
16502         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
16503         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
16504         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
16505         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
16506         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
16507         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
16508         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
16509         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
16510         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
16511         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
16512         Likewise.
16513         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
16514         Likewise.
16515         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
16516         Likewise.
16517         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
16518         Likewise.
16519         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
16520         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
16521         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
16522         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
16523         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
16524         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
16525         Likewise.
16526         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
16527         Likewise.
16528         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
16529         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
16530         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
16531
16532 2017-09-25  Szabolcs Nagy  <szabolcs.nagy@arm.com>
16533
16534         * math/Makefile (type-float-routines): Add math_errf and e_exp2f_data.
16535         * sysdeps/aarch64/fpu/math_private.h (TOINT_INTRINSICS): Define.
16536         (roundtoint, converttoint): Likewise.
16537         * sysdeps/ieee754/flt-32/e_expf.c: New implementation.
16538         * sysdeps/ieee754/flt-32/e_exp2f.c: New implementation.
16539         * sysdeps/ieee754/flt-32/e_exp2f_data.c: New file.
16540         * sysdeps/ieee754/flt-32/math_config.h: New file.
16541         * sysdeps/ieee754/flt-32/math_errf.c: New file.
16542         * sysdeps/ieee754/flt-32/t_exp2f.h: Remove.
16543         * sysdeps/i386/fpu/e_exp2f_data.c: New file.
16544         * sysdeps/i386/fpu/math_errf.c: New file.
16545         * sysdeps/ia64/fpu/e_exp2f_data.c: New file.
16546         * sysdeps/ia64/fpu/math_errf.c: New file.
16547         * sysdeps/m68k/m680x0/fpu/e_exp2f_data.c: New file.
16548         * sysdeps/m68k/m680x0/fpu/math_errf.c: New file.
16549
16550 2017-09-24  Samuel Thibault  <samuel.thibault@ens-lyon.org>
16551
16552         * sysdeps/mach/hurd/dl-sysdep.c (check_no_hidden): New macro.
16553         (__open, __close, __libc_read, __libc_write, __writev, __libc_lseek64,
16554         __mmap, __fxstat64, __xstat64, __access, __access_noerrno, __getpid,
16555         __getcwd, __sbrk, __strtoul_internal, _exit, abort): Use check_no_hidden
16556         to make sure that these symbols are defined.
16557         * sysdeps/mach/hurd/bits/socket.h: Include <bits/wordsize.h> instead
16558         of <limits.h>
16559         (__need_NULL): Do not define.
16560         (__ss_aligntype): Use __WORDSIZE instead of ULONG_MAX to determine
16561         alignment.
16562         [!__USE_MISC] (pseudo_AF_XTP, pseudo_AF_RTIP, pseudo_AF_PIP,
16563         CMGROUP_MAX, cmsgcred): Do not define.
16564         (CMSG_FIRSTHDR, __cmsg_nxthdr): Use (struct cmsghdr *) 0 instead of
16565         NULL.
16566         * bits/socket.h: Likewise.
16567         * sysdeps/unix/clock_gettime.c (realtime_gettime, __clock_gettime): Use
16568         __gettimeofday instead of gettimeofday.
16569         * sysdeps/unix/clock_settime.c (__clock_settime): Use __settimeofday
16570         instead of settimeofday.
16571
16572 2017-09-22  Joseph Myers  <joseph@codesourcery.com>
16573
16574         * sysdeps/ieee754/flt-32/s_asinhf.c: Include <libm-alias-float.h>.
16575         (asinhf): Define using libm_alias_float.
16576         * sysdeps/ieee754/flt-32/s_atanf.c: Include <libm-alias-float.h>.
16577         (atanf): Define using libm_alias_float.
16578         * sysdeps/ieee754/flt-32/s_cbrtf.c: Include <libm-alias-float.h>.
16579         (cbrtf): Define using libm_alias_float.
16580         * sysdeps/ieee754/flt-32/s_ceilf.c: Include <libm-alias-float.h>.
16581         (ceilf): Define using libm_alias_float.
16582         * sysdeps/ieee754/flt-32/s_copysignf.c: Include
16583         <libm-alias-float.h>.
16584         (copysignf): Define using libm_alias_float.
16585         * sysdeps/ieee754/flt-32/s_cosf.c: Include <libm-alias-float.h>.
16586         (cosf): Define using libm_alias_float.
16587         * sysdeps/ieee754/flt-32/s_erff.c: Include <libm-alias-float.h>.
16588         (erff): Define using libm_alias_float.
16589         (erfcf): Likewise.
16590         * sysdeps/ieee754/flt-32/s_expm1f.c: Include <libm-alias-float.h>.
16591         (expm1f): Define using libm_alias_float.
16592         * sysdeps/ieee754/flt-32/s_fabsf.c: Include <libm-alias-float.h>.
16593         (fabsf): Define using libm_alias_float.
16594         * sysdeps/ieee754/flt-32/s_floorf.c: Include <libm-alias-float.h>.
16595         (floorf): Define using libm_alias_float.
16596         * sysdeps/ieee754/flt-32/s_frexpf.c: Include <libm-alias-float.h>.
16597         (frexpf): Define using libm_alias_float.
16598         * sysdeps/ieee754/flt-32/s_fromfpf.c (fromfpf): Define using
16599         libm_alias_float.
16600         * sysdeps/ieee754/flt-32/s_fromfpf_main.c: Include
16601         <libm-alias-float.h>.
16602         * sysdeps/ieee754/flt-32/s_fromfpxf.c (fromfpxf): Define using
16603         libm_alias_float.
16604         * sysdeps/ieee754/flt-32/s_getpayloadf.c: Include
16605         <libm-alias-float.h>.
16606         (getpayloadf): Define using libm_alias_float.
16607         * sysdeps/ieee754/flt-32/s_llrintf.c: Include
16608         <libm-alias-float.h>.
16609         (llrintf): Define using libm_alias_float.
16610         * sysdeps/ieee754/flt-32/s_llroundf.c: Include
16611         <libm-alias-float.h>.
16612         (llroundf): Define using libm_alias_float.
16613         * sysdeps/ieee754/flt-32/s_logbf.c: Include <libm-alias-float.h>.
16614         (logbf): Define using libm_alias_float.
16615         * sysdeps/ieee754/flt-32/s_lrintf.c: Include <libm-alias-float.h>.
16616         (lrintf): Define using libm_alias_float.
16617         * sysdeps/ieee754/flt-32/s_lroundf.c: Include <libm-alias-float.h>.
16618         (lroundf): Define using libm_alias_float.
16619         * sysdeps/ieee754/flt-32/s_modff.c: Include <libm-alias-float.h>.
16620         (modff): Define using libm_alias_float.
16621         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Include
16622         <libm-alias-float.h>.
16623         (nearbyintf): Define using libm_alias_float.
16624         * sysdeps/ieee754/flt-32/s_nextafterf.c: Include
16625         <libm-alias-float.h>.
16626         (nextafterf): Define using libm_alias_float.
16627         * sysdeps/ieee754/flt-32/s_nextupf.c: Include
16628         <libm-alias-float.h>.
16629         (nextupf): Define using libm_alias_float.
16630         * sysdeps/ieee754/flt-32/s_remquof.c: Include
16631         <libm-alias-float.h>.
16632         (remquof): Define using libm_alias_float.
16633         * sysdeps/ieee754/flt-32/s_rintf.c: Include <libm-alias-float.h>.
16634         (rintf): Define using libm_alias_float.
16635         * sysdeps/ieee754/flt-32/s_roundevenf.c: Include
16636         <libm-alias-float.h>.
16637         (roundevenf): Define using libm_alias_float.
16638         * sysdeps/ieee754/flt-32/s_roundf.c: Include <libm-alias-float.h>.
16639         (roundf): Define using libm_alias_float.
16640         * sysdeps/ieee754/flt-32/s_setpayloadf.c (setpayloadf): Define
16641         using libm_alias_float.
16642         * sysdeps/ieee754/flt-32/s_setpayloadf_main.c: Include
16643         <libm-alias-float.h>.
16644         * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (setpayloadsigf):
16645         Define using libm_alias_float.
16646         * sysdeps/ieee754/flt-32/s_sincosf.c: Include
16647         <libm-alias-float.h>.
16648         (sincosf): Define using libm_alias_float.
16649         * sysdeps/ieee754/flt-32/s_sinf.c: Include <libm-alias-float.h>.
16650         (sinf): Define using libm_alias_float.
16651         * sysdeps/ieee754/flt-32/s_tanf.c: Include <libm-alias-float.h>.
16652         (tanf): Define using libm_alias_float.
16653         * sysdeps/ieee754/flt-32/s_tanhf.c: Include <libm-alias-float.h>.
16654         (tanhf): Define using libm_alias_float.
16655         * sysdeps/ieee754/flt-32/s_totalorderf.c: Include
16656         <libm-alias-float.h>.
16657         (totalorderf): Define using libm_alias_float.
16658         * sysdeps/ieee754/flt-32/s_totalordermagf.c: Include
16659         <libm-alias-float.h>.
16660         (totalordermagf): Define using libm_alias_float.
16661         * sysdeps/ieee754/flt-32/s_truncf.c: Include <libm-alias-float.h>.
16662         (truncf): Define using libm_alias_float.
16663         * sysdeps/ieee754/flt-32/s_ufromfpf.c (ufromfpf): Define using
16664         libm_alias_float.
16665         * sysdeps/ieee754/flt-32/s_ufromfpxf.c (ufromfpxf): Define using
16666         libm_alias_float.
16667
16668 2017-09-22  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
16669
16670         [BZ #22146]
16671         math/math.h: Let fpclassify use the builtin in C++ mode, even
16672         when optimazing for size.
16673
16674 2017-09-22  Joseph Myers  <joseph@codesourcery.com>
16675
16676         * csu/Makefile (generated): Do not add version-info.h.
16677         (before-compile): Likewise.
16678         (all-Banner-files): Remove variable.
16679         ($(objpfx)version-info.h): Remove rule.
16680         * csu/version.c (banner): Do not include "version-info.h".
16681         * libidn/Banner: Remove.
16682         * manual/contrib.texi (Simon Josefsson): New entry.
16683
16684 2017-09-21  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
16685
16686         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
16687         Remove conditionals on LDBL_MANT_DIG.
16688         * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
16689         (__ieee754_lgammal_r): Likewise.
16690
16691 2017-09-21  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
16692
16693         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Remove definitions of
16694         _Float128 and L().
16695         * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Remove definitions of
16696         _Float128 and L(). Replace _Float128 with long double and L(x)
16697         with xL, throughout the file.
16698         * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
16699         * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
16700         * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
16701         * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
16702
16703 2017-09-21  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
16704
16705         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Include tables from
16706         sysdeps/ieee754/ldbl-128ibm.
16707         * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Copy contents from the
16708         equivalent implementation in sysdeps/ieee754/ldbl-128/ instead
16709         of including it.  Keep _Float128 and L() intact.  These will be
16710         reviewed by a separate patch.
16711         * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
16712         * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
16713         * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
16714         * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
16715
16716 2017-09-21  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
16717
16718         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c
16719         (__finitef128): Define to __redirect___finitef128.
16720         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c
16721         (__isinff128): Define to __redirect___isinff128.
16722         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c
16723         (__isnanf128): Define to __redirect___isnanf128.
16724
16725 2017-09-21  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
16726
16727         * sysdeps/powerpc/powerpc64le/Makefile
16728         (CFLAGS-tst-strtod-nan-locale.c): New variable.
16729         (CFLAGS-tst-wcstod-nan-locale.c): New variable.
16730
16731 2017-09-21  Paul Pluzhnikov  <ppluzhnikov@google.com>
16732             Carlos O'Donell  <carlos@redhat.com>
16733
16734         [BZ #22180]
16735         * stdlib/Makefile (tests): Add test-dlclose-exit-race.
16736         * stdlib/test-dlclose-exit-race.c: New file.
16737         * stdlib/test-dlclose-exit-race-helper.c: New file.
16738         * stdlib/exit.c (__run_exit_handlers): Mark slot as free.
16739
16740 2017-09-21  Joseph Myers  <joseph@codesourcery.com>
16741
16742         * crypt/Banner: Remove file.
16743         * nptl/Banner: Likewise.
16744         * resolv/Banner: Likewise.
16745         * soft-fp/Banner: Likewise.
16746         * nptl/Makefile ($(objpfx)banner.h): Remove rule.
16747         ($(objpfx)version.d): Remove dependency on banner.h.
16748         ($(objpfx)version.os): Likewise.
16749         * nptl/version.c (banner): Do not include banner.h.
16750         * manual/contrib.texi: Update entries for Richard Henderson, Jakub
16751         Jelinek and BIND code.
16752
16753 2017-09-20  Paul Pluzhnikov  <ppluzhnikov@google.com>
16754             Carlos O'Donell  <carlos@redhat.com>
16755
16756         * support/xdlfcn.h: New file.
16757         * support/xdlfcn.c: New file.
16758         * support/Makefile (libsupport-routines): Add xdlfcn.
16759         * stdlib/tst-tls-atexit.c: Use xdlopen, xdlsym, xdlclose.
16760
16761 2017-09-20  Joseph Myers  <joseph@codesourcery.com>
16762
16763         [BZ #20142]
16764         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
16765         Add s_trunc-c, s_truncf-c, s_trunc-sse4_1 and s_truncf-sse4_1.
16766         * sysdeps/x86_64/fpu/multiarch/s_trunc-c.c: New file.
16767         * sysdeps/x86_64/fpu/multiarch/s_trunc-sse4_1.S: Likewise.
16768         * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Likewise.
16769         * sysdeps/x86_64/fpu/multiarch/s_truncf-c.c: Likewise.
16770         * sysdeps/x86_64/fpu/multiarch/s_truncf-sse4_1.S: Likewise.
16771         * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Likewise.
16772
16773 2017-09-20  Paul Pluzhnikov  <ppluzhnikov@google.com>
16774             Ricky Zhou  <rickyz@google.com>
16775             Anoop V Chakkalakkal  <anoop.vijayan@in.ibm.com>
16776
16777         [BZ #14333]
16778         * stdlib/cxa_atexit.c (__internal_atexit): Use __exit_funcs_lock.
16779         Remove atomics.
16780         (__new_exitfn): Fail registration when we finished at_exit processing.
16781         * stdlib/cxa_finalize.c (__cxa_finalize): Likewise.
16782         * stdlib/on_exit.c (__on_exit): Likewise.
16783         * stdlib/exit.c (__exit_funcs_done): New variable.
16784         (__run_exit_handlers): Use __exit_funcs_lock.
16785         * stdlib/exit.h (__exit_funcs_lock, __exit_funcs_done): New
16786         declarations.
16787         * stdlib/Makefile (test-atexit-race, test-quick_at_exit-race)
16788         (test-cxa_atexit-race, test-on_exit-race): New tests.
16789         * stdlib/test-atexit-race-common.c: New file.
16790         * stdlib/test-atexit-race.c: New file.
16791         * stdlib/test-at_quick_exit-race.c: New file.
16792         * stdlib/test-cxa_atexit-race.c: New file.
16793         * stdlib/test-on_exit-race.c: New file.
16794
16795 2017-09-20  Szabolcs Nagy  <szabolcs.nagy@arm.com>
16796
16797         * benchtests/Makefile: Add exp2f and log2f benchmarks.
16798         * benchtests/exp2f-inputs: Copy of expf-inputs.
16799         * benchtests/log2f-inputs: Copy of logf-inputs.
16800
16801 2017-09-19  Joseph Myers  <joseph@codesourcery.com>
16802
16803         * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]:
16804         Explicitly take address of first element of array arguments in
16805         call to INLINE_SYSCALL.
16806
16807 2017-09-19  Andreas Schwab  <schwab@suse.de>
16808
16809         [BZ #22134]
16810         * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]: Try
16811         execveat first.
16812         [!__ASSUME_EXECVEAT]: Fall back to /proc if execveat is
16813         unimplemented.
16814         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_EXECVEAT)
16815         [__LINUX_KERNEL_VERSION >= 0x031300]: Define.
16816         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
16817         (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040200]: Undef.
16818         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
16819         (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
16820         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
16821         (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
16822         * posix/Makefile (tests): Add tst-fexecve.
16823         * posix/tst-fexecve.c: New file.
16824
16825 2017-09-19  Wilco Dijkstra  <wdijkstr@arm.com>
16826
16827         * benchtests/Makefile: Add logf benchmark.
16828         * benchtests/logf-inputs: Add reduced trace from wrf_r.
16829
16830 2017-09-19  Wilco Dijkstra  <wdijkstr@arm.com>
16831
16832         * benchtests/Makefile: Add expf benchmark.
16833         * benchtests/expf-inputs: Add reduced trace from wrf_r.
16834
16835 2017-09-19  Wilco Dijkstra  <wdijkstr@arm.com>
16836
16837         * csu/Makefile: Add -funwind-tables to libc-start.c.
16838         * debug/Makefile: Add -funwind-tables to backtrace.c.
16839         * sysdeps/aarch64/Makefile: Remove CFLAGS-backtrace.c.
16840         * sysdeps/arm/Makefile: Likewise.
16841         * sysdeps/i386/Makefile: Likewise.
16842         * sysdeps/m68k/Makefile: Likewise.
16843         * sysdeps/mips/Makefile: Likewise.
16844         * sysdeps/nios2/Makefile: Likewise.
16845         * sysdeps/sh/Makefile: Likewise.
16846         * sysdeps/sparc/Makefile: Likewise.
16847
16848 2017-09-19  Joseph Myers  <joseph@codesourcery.com>
16849
16850         * benchtests/Makefile (bench-math): Add trunc and truncf.
16851         (CFLAGS-bench-trunc.c): New variable.
16852         (CFLAGS-bench-truncf.c): Likewise.
16853         * benchtests/trunc-inputs: New file.
16854         * benchtests/truncf-inputs: Likewise.
16855
16856 2017-09-19  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
16857
16858         * sysdeps/powerpc/powerpc64/power8/memset.S: Avoid misaligned stores.
16859
16860 2017-09-18  Joseph Myers  <joseph@codesourcery.com>
16861
16862         * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT &&
16863         !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)] (weak_alias): Undefine and
16864         redefine.
16865         [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
16866         (exp10l): Define as weak alias.
16867         * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c [LIBM_SVID_COMPAT
16868         && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (weak_alias): Undefine
16869         and redefine.
16870         [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)]
16871         (remainderl): Define as weak alias.
16872
16873         * math/s_fmal.c: Include <libm-alias-ldouble.h>.
16874         (fmal): Define using libm_alias_ldouble.
16875         * math/w_acoshl_compat.c: Include <libm-alias-ldouble.h>.
16876         (acoshl): Define using libm_alias_ldouble.
16877         * math/w_acosl_compat.c: Include <libm-alias-ldouble.h>.
16878         (acosl): Define using libm_alias_ldouble.
16879         * math/w_asinl_compat.c: Include <libm-alias-ldouble.h>.
16880         (asinl): Define using libm_alias_ldouble.
16881         * math/w_atan2l_compat.c: Include <libm-alias-ldouble.h>.
16882         (atan2l): Define using libm_alias_ldouble.
16883         * math/w_atanhl_compat.c: Include <libm-alias-ldouble.h>.
16884         (atanhl): Define using libm_alias_ldouble.
16885         * math/w_coshl_compat.c: Include <libm-alias-ldouble.h>.
16886         (coshl): Define using libm_alias_ldouble.
16887         * math/w_exp10l_compat.c: Include <libm-alias-ldouble.h>.
16888         (exp10l): Define using libm_alias_ldouble.
16889         * math/w_exp2l_compat.c: Include <libm-alias-ldouble.h>.
16890         (exp2l): Define using libm_alias_ldouble.
16891         * math/w_expl_compat.c: Include <libm-alias-ldouble.h>.
16892         (expl): Define using libm_alias_ldouble.
16893         * math/w_fmodl_compat.c: Include <libm-alias-ldouble.h>.
16894         (fmodl): Define using libm_alias_ldouble.
16895         * math/w_hypotl_compat.c: Include <libm-alias-ldouble.h>.
16896         (hypotl): Define using libm_alias_ldouble.
16897         * math/w_j0l_compat.c: Include <libm-alias-ldouble.h>.
16898         (j0l): Define using libm_alias_ldouble.
16899         (y0l): Likewise.
16900         * math/w_j1l_compat.c: Include <libm-alias-ldouble.h>.
16901         (j1l): Define using libm_alias_ldouble.
16902         (y1l): Likewise.
16903         * math/w_jnl_compat.c: Include <libm-alias-ldouble.h>.
16904         (jnl): Define using libm_alias_ldouble.
16905         (ynl): Likewise.
16906         * math/w_log10l_compat.c: Include <libm-alias-ldouble.h>.
16907         (log10l): Define using libm_alias_ldouble.
16908         * math/w_log2l_compat.c: Include <libm-alias-ldouble.h>.
16909         (log2l): Define using libm_alias_ldouble.
16910         * math/w_logl_compat.c: Include <libm-alias-ldouble.h>.
16911         (logl): Define using libm_alias_ldouble.
16912         * math/w_powl_compat.c: Include <libm-alias-ldouble.h>.
16913         (powl): Define using libm_alias_ldouble.
16914         * math/w_remainderl_compat.c: Include <libm-alias-ldouble.h>.
16915         (remainderl): Define using libm_alias_ldouble.
16916         * math/w_sinhl_compat.c: Include <libm-alias-ldouble.h>.
16917         (sinhl): Define using libm_alias_ldouble.
16918         * math/w_sqrtl_compat.c: Include <libm-alias-ldouble.h>.
16919         (sqrtl): Define using libm_alias_ldouble.
16920         * math/w_tgammal_compat.c: Include <libm-alias-ldouble.h>.
16921         (tgammal): Define using libm_alias_ldouble.
16922         * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT]
16923         (exp10l): Do not use long_double_symbol here.
16924         * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
16925         [LIBM_SVID_COMPAT] (remainderl): Likewise.
16926         * sysdeps/ieee754/ldbl-opt/s_fmal.c: Remove.
16927         * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
16928         * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
16929         * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
16930         * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
16931         * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
16932         * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
16933         * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
16934         * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
16935         * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
16936         * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
16937         * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
16938         * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
16939         * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
16940         * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
16941         * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
16942         * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
16943         * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
16944         * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
16945         * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
16946
16947 2017-09-18  Wang Boshi  <wangboshi@huawei.com>  (tiny change)
16948
16949         * sysdeps/aarch64/start.S: Use MOVL instead of literal pools.
16950         * sysdeps/aarch64/sysdep.h (MOVL): Add MOVL macro.
16951
16952 2017-09-17  Samuel Thibault  <samuel.thibault@ens-lyon.org>
16953
16954         * io/read.c (read): Add libc_hidden_weak.
16955         * sysdeps/mach/hurd/read.c (read): Likewise.
16956         * io/write.c (write): Likewise.
16957         * sysdeps/mach/hurd/write.c (write): Likewise.
16958         * io/pread64.c (__pread64): Likewise.
16959         * sysdeps/mach/hurd/pread64.c (__pread64): Likewise.
16960         * posix/pread64.c (__pread64): Add libc_hidden_def.
16961
16962 2017-09-16  Siddhesh Poyarekar  <siddhesh@sourceware.org>
16963
16964         * benchtests/scripts/compare_strings.py: New option -g.
16965         (draw_graph): Print a message that a graph is being generated.
16966         (process_results): Generate graph only if -g is passed.
16967         (main): Process option -g.
16968
16969         * benchtests/scripts/compare_strings.py (process_results):
16970         Better spacing for output.
16971
16972         * benchtests/scripts/compare_strings.py: Use argparse.
16973         * benchtests/README: Document existence of compare_strings.py.
16974
16975 2017-09-15  Joseph Myers  <joseph@codesourcery.com>
16976
16977         * math/s_fma.c: Include <libm-alias-double.h>.
16978         (fma): Define using libm_alias_double.
16979         * math/s_nextafter.c: Include <libm-alias-double.h>.
16980         (nextafter): Define using libm_alias_double.
16981         * math/w_acos_compat.c: Include <libm-alias-double.h>.
16982         (acos): Define using libm_alias_double.
16983         * math/w_acosh_compat.c: Include <libm-alias-double.h>.
16984         (aocsh): Define using libm_alias_double.
16985         * math/w_asin_compat.c: Include <libm-alias-double.h>.
16986         (asin): Define using libm_alias_double.
16987         * math/w_atan2_compat.c: Include <libm-alias-double.h>.
16988         (atan2): Define using libm_alias_double.
16989         * math/w_atanh_compat.c: Include <libm-alias-double.h>.
16990         (atanh): Define using libm_alias_double.
16991         * math/w_cosh_compat.c: Include <libm-alias-double.h>.
16992         (cosh): Define using libm_alias_double.
16993         * math/w_exp10_compat.c: Include <libm-alias-double.h>.
16994         (exp10): Define using libm_alias_double.
16995         * math/w_exp2_compat.c: Include <libm-alias-double.h>.
16996         (exp2): Define using libm_alias_double.
16997         * math/w_exp_compat.c: Include <libm-alias-double.h>.
16998         (exp): Define using libm_alias_double.
16999         * math/w_fmod_compat.c: Include <libm-alias-double.h>.
17000         (fmod): Define using libm_alias_double.
17001         * math/w_hypot_compat.c: Include <libm-alias-double.h>.
17002         (hypot): Define using libm_alias_double.
17003         * math/w_j0_compat.c: Include <libm-alias-double.h>.
17004         (j0): Define using libm_alias_double.
17005         (y0): Likewise.
17006         * math/w_j1_compat.c: Include <libm-alias-double.h>.
17007         (j1): Define using libm_alias_double.
17008         (y1): Likewise.
17009         * math/w_jn_compat.c: Include <libm-alias-double.h>.
17010         (jn): Define using libm_alias_double.
17011         (yn): Likewise.
17012         * math/w_log10_compat.c: Include <libm-alias-double.h>.
17013         (log10): Define using libm_alias_double.
17014         * math/w_log2_compat.c: Include <libm-alias-double.h>.
17015         (log2): Define using libm_alias_double.
17016         * math/w_log_compat.c: Include <libm-alias-double.h>.
17017         (log): Define using libm_alias_double.
17018         * math/w_pow_compat.c: Include <libm-alias-double.h>.
17019         (pow): Define using libm_alias_double.
17020         * math/w_remainder_compat.c: Include <libm-alias-double.h>.
17021         (remainder): Define using libm_alias_double.
17022         * math/w_sinh_compat.c: Include <libm-alias-double.h>.
17023         (sinh): Define using libm_alias_double.
17024         * math/w_sqrt_compat.c: Include <libm-alias-double.h>.
17025         (sqrt): Define using libm_alias_double.
17026         * math/w_tgamma_compat.c: Include <libm-alias-double.h>.
17027         (tgamma): Define using libm_alias_double.
17028         * sysdeps/ieee754/ldbl-opt/s_nextafter.c [LONG_DOUBLE_COMPAT(libm,
17029         GLIBC_2_0)] (nextafterl): Do not define compat symbol here.
17030         * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c
17031         [LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)] (exp10l): Likewise.
17032         * sysdeps/ieee754/ldbl-opt/w_remainder_compat.c
17033         [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (remainderl): Likewise.
17034         * sysdeps/ieee754/ldbl-opt/w_acos_compat.c: Remove.
17035         * sysdeps/ieee754/ldbl-opt/w_acosh_compat.c: Likewise.
17036         * sysdeps/ieee754/ldbl-opt/w_asin_compat.c: Likewise.
17037         * sysdeps/ieee754/ldbl-opt/w_atan2_compat.c: Likewise.
17038         * sysdeps/ieee754/ldbl-opt/w_atanh_compat.c: Likewise.
17039         * sysdeps/ieee754/ldbl-opt/w_cosh_compat.c: Likewise.
17040         * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Likewise.
17041         * sysdeps/ieee754/ldbl-opt/w_fmod_compat.c: Likewise.
17042         * sysdeps/ieee754/ldbl-opt/w_hypot_compat.c: Likewise.
17043         * sysdeps/ieee754/ldbl-opt/w_j0_compat.c: Likewise.
17044         * sysdeps/ieee754/ldbl-opt/w_j1_compat.c: Likewise.
17045         * sysdeps/ieee754/ldbl-opt/w_jn_compat.c: Likewise.
17046         * sysdeps/ieee754/ldbl-opt/w_log10_compat.c: Likewise.
17047         * sysdeps/ieee754/ldbl-opt/w_log2_compat.c: Likewise.
17048         * sysdeps/ieee754/ldbl-opt/w_log_compat.c: Likewise.
17049         * sysdeps/ieee754/ldbl-opt/w_pow_compat.c: Likewise.
17050         * sysdeps/ieee754/ldbl-opt/w_sinh_compat.c: Likewise.
17051         * sysdeps/ieee754/ldbl-opt/w_sqrt_compat.c: Likewise.
17052         * sysdeps/ieee754/ldbl-opt/w_tgamma_compat.c: Likewise.
17053
17054         * math/e_acoshl.c: Remove.
17055         * math/e_acosl.c: Likewise.
17056         * math/e_asinl.c: Likewise.
17057         * math/e_atan2l.c: Likewise.
17058         * math/e_atanhl.c: Likewise.
17059         * math/e_coshl.c: Likewise.
17060         * math/e_expl.c: Likewise.
17061         * math/e_fmodl.c: Likewise.
17062         * math/e_gammal_r.c: Likewise.
17063         * math/e_hypotl.c: Likewise.
17064         * math/e_j0l.c: Likewise.
17065         * math/e_j1l.c: Likewise.
17066         * math/e_jnl.c: Likewise.
17067         * math/e_lgammal_r.c: Likewise.
17068         * math/e_log10l.c: Likewise.
17069         * math/e_log2l.c: Likewise.
17070         * math/e_logl.c: Likewise.
17071         * math/e_powl.c: Likewise.
17072         * math/e_rem_pio2l.c: Likewise.
17073         * math/e_sinhl.c: Likewise.
17074         * math/e_sqrtf128.c: Likewise.
17075         * math/e_sqrtl.c: Likewise.
17076         * math/k_cosl.c: Likewise.
17077         * math/k_sinl.c: Likewise.
17078         * math/k_tanl.c: Likewise.
17079         * math/s_asinhl.c: Likewise.
17080         * math/s_atanl.c: Likewise.
17081         * math/s_cbrtl.c: Likewise.
17082         * math/s_erfl.c: Likewise.
17083         * math/s_expm1l.c: Likewise.
17084         * math/s_log1pl.c: Likewise.
17085         * math/s_tanhl.c: Likewise.
17086
17087 2017-09-15  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
17088
17089         [BZ #21745]
17090         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile:
17091         [$(subdir) = math] (sysdep_calls): New variable.  Has the
17092         previous contents of sysdep_routines, but re-sorted..
17093         [$(subdir) = math] (sysdep_routines): Re-use the contents from
17094         sysdep_calls.
17095         [$(subdir) = math] (libm-sysdep_routines): Remove the functions
17096         defined in sysdep_calls and replace by the respective m_* names.
17097         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S:
17098         (compat_symbol): Undefine to avoid duplicated compat symbols in
17099         libc.
17100
17101 2017-09-15  Joseph Myers  <joseph@codesourcery.com>
17102
17103         * math/s_fmaf.c: Include <libm-alias-float.h>.
17104         (fmaf): Define using libm_alias_float.
17105         * math/w_acosf_compat.c: Include <libm-alias-float.h>.
17106         (acosf): Define using libm_alias_float.
17107         * math/w_acoshf_compat.c: Include <libm-alias-float.h>.
17108         (acoshf): Define using libm_alias_float.
17109         * math/w_asinf_compat.c: Include <libm-alias-float.h>.
17110         (asinf): Define using libm_alias_float.
17111         * math/w_atan2f_compat.c: Include <libm-alias-float.h>.
17112         (atan2f): Define using libm_alias_float.
17113         * math/w_atanhf_compat.c: Include <libm-alias-float.h>.
17114         (atanhf): Define using libm_alias_float.
17115         * math/w_coshf_compat.c: Include <libm-alias-float.h>.
17116         (coshf): Define using libm_alias_float.
17117         * math/w_exp10f_compat.c: Include <libm-alias-float.h>.
17118         (exp10f): Define using libm_alias_float.
17119         * math/w_fmodf_compat.c: Include <libm-alias-float.h>.
17120         (fmodf): Define using libm_alias_float.
17121         * math/w_hypotf_compat.c: Include <libm-alias-float.h>.
17122         (hypotf): Define using libm_alias_float.
17123         * math/w_j0f_compat.c: Include <libm-alias-float.h>.
17124         (j0f): Define using libm_alias_float.
17125         (y0f): Likewise.
17126         * math/w_j1f_compat.c: Include <libm-alias-float.h>.
17127         (j1f): Define using libm_alias_float.
17128         (y1f): Likewise.
17129         * math/w_jnf_compat.c: Include <libm-alias-float.h>.
17130         (jnf): Define using libm_alias_float.
17131         (ynf): Likewise.
17132         * math/w_log10f_compat.c: Include <libm-alias-float.h>.
17133         (log10f): Define using libm_alias_float.
17134         * math/w_log2f_compat.c: Include <libm-alias-float.h>.
17135         (log2f): Define using libm_alias_float.
17136         * math/w_logf_compat.c: Include <libm-alias-float.h>.
17137         (logf): Define using libm_alias_float.
17138         * math/w_powf_compat.c: Include <libm-alias-float.h>.
17139         (powf): Define using libm_alias_float.
17140         * math/w_remainderf_compat.c: Include <libm-alias-float.h>.
17141         (remainderf): Define using libm_alias_float.
17142         * math/w_sinhf_compat.c: Include <libm-alias-float.h>.
17143         (sinhf): Define using libm_alias_float.
17144         * math/w_sqrtf_compat.c: Include <libm-alias-float.h>.
17145         (sqrtf): Define using libm_alias_float.
17146         * math/w_tgammaf_compat.c: Include <libm-alias-float.h>.
17147         (tgammaf): Define using libm_alias_float.
17148
17149 2017-09-14  Joseph Myers  <joseph@codesourcery.com>
17150
17151         * include/math.h (roundeven): Change hidden_proto call to
17152         __roundeven.
17153         * math/w_j0_compat.c (j0): Rename to __j0 and define as weak
17154         alias.
17155         [NO_LONG_DOUBLE] (__j0l): New strong alias.
17156         (y0): Rename to __y0 and define as weak alias.
17157         [NO_LONG_DOUBLE] (__y0l): New strong alias.
17158         * math/w_j0f_compat.c (j0f): Rename to __j0f and define as weak
17159         alias.
17160         (y0f): Rename to __y0f and define as weak alias.
17161         * math/w_j1_compat.c (j1): Rename to __j1 and define as weak
17162         alias.
17163         [NO_LONG_DOUBLE] (__j1l): New strong alias.
17164         (y1): Rename to __y1 and define as weak alias.
17165         [NO_LONG_DOUBLE] (__y1l): New strong alias.
17166         * math/w_j1f_compat.c (j1f): Rename to __j1f and define as weak
17167         alias.
17168         (y1f): Rename to __y1f and define as weak alias.
17169         * math/w_jn_compat.c (jn): Rename to __jn and define as weak
17170         alias.
17171         [NO_LONG_DOUBLE] (__jnl): New strong alias.
17172         (yn): Rename to __yn and define as weak alias.
17173         [NO_LONG_DOUBLE] (__ynl): New strong alias.
17174         * math/w_jnf_compat.c (jnf): Rename to __jnf and define as weak
17175         alias.
17176         (ynf): Rename to __ynf and define as weak alias.
17177         * sysdeps/ieee754/dbl-64/s_fromfp.c (FUNC): Define to __fromfp.
17178         (fromfp): Define as weak alias.
17179         [NO_LONG_DOUBLE] (__fromfpl): New strong alias.
17180         * sysdeps/ieee754/dbl-64/s_fromfpx.c (FUNC): Define to __fromfpx.
17181         (fromfpx): Define as weak alias.
17182         [NO_LONG_DOUBLE] (__fromfpxl): New strong alias.
17183         * sysdeps/ieee754/dbl-64/s_getpayload.c (getpayload): Rename to
17184         __getpayload and define as weak alias.
17185         [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
17186         * sysdeps/ieee754/dbl-64/s_roundeven.c (roundeven): Rename to
17187         __roundeven and define as weak alias.
17188         [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
17189         * sysdeps/ieee754/dbl-64/s_setpayload.c (FUNC): Define to
17190         __setpayload.
17191         (setpayload): Define as weak alias.
17192         [NO_LONG_DOUBLE] (__setpayloadl): New strong alias.
17193         * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (FUNC): Define to
17194         __setpayloadsig.
17195         (setpayloadsig): Define as weak alias.
17196         [NO_LONG_DOUBLE] (__setpayloadsigl): New strong alias.
17197         * sysdeps/ieee754/dbl-64/s_totalorder.c (totalorder): Rename to
17198         __totalorder and define as weak alias.
17199         [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
17200         * sysdeps/ieee754/dbl-64/s_totalordermag.c (totalordermag): Rename
17201         to __totalordermag and define as weak alias.
17202         [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
17203         * sysdeps/ieee754/dbl-64/s_ufromfp.c (FUNC): Define to __ufromfp.
17204         (ufromfp): Define as weak alias.
17205         [NO_LONG_DOUBLE] (__ufromfpl): New strong alias.
17206         * sysdeps/ieee754/dbl-64/s_ufromfpx.c (FUNC): Define to
17207         __ufromfpx.
17208         (ufromfpx): Define as weak alias.
17209         [NO_LONG_DOUBLE] (__ufromfpxl): New strong alias.
17210         * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c (getpayload):
17211         Rename to __getpayload and define as weak alias.
17212         [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
17213         * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c (roundeven):
17214         Rename to __roundeven and define as weak alias.
17215         [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
17216         * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c (totalorder):
17217         Rename to __totalorder and define as weak alias.
17218         [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
17219         * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c
17220         (totalordermag): Rename to __totalordermag and define as weak
17221         alias.
17222         [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
17223         * sysdeps/ieee754/float128/float128_private.h (__getpayloadl): New
17224         macro.
17225         (__roundevenl): Likewise.
17226         (__totalorderl): Likewise.
17227         (__totalordermagl): Likewise
17228         * sysdeps/ieee754/float128/s_fromfpf128.c (FUNC): Define to
17229         __fromfpf128.
17230         (fromfpf128): Define as weak alias.
17231         * sysdeps/ieee754/float128/s_fromfpxf128.c (FUNC): Define to
17232         __fromfpxf128.
17233         (fromfpxf128): Define as weak alias.
17234         * sysdeps/ieee754/float128/s_setpayloadf128.c (FUNC): Define to
17235         __setpayloadf128.
17236         (setpayloadf128): Define as weak alias.
17237         * sysdeps/ieee754/float128/s_setpayloadsigf128.c (FUNC): Define to
17238         __setpayloadsigf128.
17239         (setpayloadsigf128): Define as weak alias.
17240         * sysdeps/ieee754/float128/s_ufromfpf128.c (FUNC): Define to
17241         __ufromfpf128.
17242         (ufromfpf128): Define as weak alias.
17243         * sysdeps/ieee754/float128/s_ufromfpxf128.c (FUNC): Define to
17244         __ufromfpxf128.
17245         (ufromfpxf128): Define as weak alias.
17246         * sysdeps/ieee754/flt-32/s_fromfpf.c (FUNC): Define to __fromfpf.
17247         (fromfpf): Define as weak alias.
17248         * sysdeps/ieee754/flt-32/s_fromfpxf.c (FUNC): Define to
17249         __fromfpxf.
17250         (fromfpxf): Define as weak alias.
17251         * sysdeps/ieee754/flt-32/s_getpayloadf.c (getpayloadf): Rename to
17252         __getpayloadf and define as weak alias.
17253         * sysdeps/ieee754/flt-32/s_roundevenf.c (roundevenf): Rename to
17254         __roundevenf and define as weak alias.
17255         * sysdeps/ieee754/flt-32/s_setpayloadf.c (FUNC): Define to
17256         __setpayloadf.
17257         (setpayloadf): Define as weak alias.
17258         * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (FUNC): Define to
17259         __setpayloadsigf.
17260         (setpayloadsigf): Define as weak alias.
17261         * sysdeps/ieee754/flt-32/s_totalorderf.c (totalorderf): Rename to
17262         __totalorderf and define as weak alias.
17263         * sysdeps/ieee754/flt-32/s_totalordermagf.c (totalordermagf):
17264         Rename to __totalordermagf and define as weak alias.
17265         * sysdeps/ieee754/flt-32/s_ufromfpf.c (FUNC): Define to
17266         __ufromfpf.
17267         (ufromfpf): Define as weak alias.
17268         * sysdeps/ieee754/flt-32/s_ufromfpxf.c (FUNC): Define to
17269         __ufromfpxf.
17270         (ufromfpxf): Define as weak alias.
17271         * sysdeps/ieee754/ldbl-128/s_fromfpl.c (FUNC): Define to
17272         __fromfpl.
17273         (fromfpl): Define as weak alias.
17274         * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (FUNC): Define to
17275         __fromfpxl.
17276         (fromfpxl): Define as weak alias.
17277         * sysdeps/ieee754/ldbl-128/s_getpayloadl.c (getpayloadl): Rename
17278         to __getpayloadl and define as weak alias.
17279         * sysdeps/ieee754/ldbl-128/s_roundevenl.c (roundevenl): Rename to
17280         __roundevenl and define as weak alias.
17281         * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (FUNC): Define to
17282         __setpayloadl.
17283         (setpayloadl): Define as weak alias.
17284         * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (FUNC): Define to
17285         __setpayloadsigl.
17286         (setpayloadsigl): Define as weak alias.
17287         * sysdeps/ieee754/ldbl-128/s_totalorderl.c (totalorderl): Rename
17288         to __totalorderl and define as weak alias.
17289         * sysdeps/ieee754/ldbl-128/s_totalordermagl.c (totalordermagl):
17290         Rename to __totalordermagl and define as weak alias.
17291         * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (FUNC): Define to
17292         __ufromfpl.
17293         (ufromfpl): Define as weak alias.
17294         * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (FUNC): Define to
17295         __ufromfpxl.
17296         (ufromfpxl): Define as weak alias.
17297         * sysdeps/ieee754/ldbl-128ibm/s_fromfpl.c (FUNC): Define to
17298         __fromfpl.
17299         (fromfpl): Define as weak alias.
17300         * sysdeps/ieee754/ldbl-128ibm/s_fromfpxl.c (FUNC): Define to
17301         __fromfpxl.
17302         (fromfpxl): Define as weak alias.
17303         * sysdeps/ieee754/ldbl-128ibm/s_getpayloadl.c (getpayloadl):
17304         Rename to __getpayloadl and define as weak alias.
17305         * sysdeps/ieee754/ldbl-128ibm/s_roundevenl.c (roundevenl): Rename
17306         to __roundevenl and define as weak alias.  Call __roundeven
17307         instead of roundeven.
17308         * sysdeps/ieee754/ldbl-128ibm/s_setpayloadl.c (FUNC): Define to
17309         __setpayloadl.
17310         (setpayloadl): Define as weak alias.
17311         * sysdeps/ieee754/ldbl-128ibm/s_setpayloadsigl.c (FUNC): Define to
17312         __setpayloadsigl.
17313         (setpayloadsigl): Define as weak alias.
17314         * sysdeps/ieee754/ldbl-128ibm/s_totalorderl.c (totalorderl):
17315         Rename to __totalorderl and define as weak alias.
17316         * sysdeps/ieee754/ldbl-128ibm/s_totalordermagl.c (totalordermagl):
17317         Rename to __totalordermagl and define as weak alias.
17318         * sysdeps/ieee754/ldbl-128ibm/s_ufromfpl.c (FUNC): Define to
17319         __ufromfpl.
17320         (ufromfpl): Define as weak alias.
17321         * sysdeps/ieee754/ldbl-128ibm/s_ufromfpxl.c (FUNC): Define to
17322         __ufromfpxl.
17323         (ufromfpxl): Define as weak alias.
17324         * sysdeps/ieee754/ldbl-96/s_fromfpl.c (FUNC): Define to
17325         __fromfpl.
17326         (fromfpl): Define as weak alias.
17327         * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (FUNC): Define to
17328         __fromfpxl.
17329         (fromfpxl): Define as weak alias.
17330         * sysdeps/ieee754/ldbl-96/s_getpayloadl.c (getpayloadl): Rename to
17331         __getpayloadl and define as weak alias.
17332         * sysdeps/ieee754/ldbl-96/s_roundevenl.c (roundevenl): Rename to
17333         __roundevenl and define as weak alias.
17334         * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (FUNC): Define to
17335         __setpayloadl.
17336         (setpayloadl): Define as weak alias.
17337         * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c (FUNC): Define to
17338         __setpayloadsigl.
17339         (setpayloadsigl): Define as weak alias.
17340         * sysdeps/ieee754/ldbl-96/s_totalorderl.c (totalorderl): Rename to
17341         __totalorderl and define as weak alias.
17342         * sysdeps/ieee754/ldbl-96/s_totalordermagl.c (totalordermagl):
17343         Rename to __totalordermagl and define as weak alias.
17344         * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (FUNC): Define to
17345         __ufromfpl.
17346         (ufromfpl): Define as weak alias.
17347         * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (FUNC): Define to
17348         __ufromfpxl.
17349         (ufromfpxl): Define as weak alias.
17350
17351 2017-09-14  Siddhesh Poyarekar  <siddhesh@sourceware.org>
17352
17353         * benchtests/bench-string.h (realloc_bufs): New function.
17354         (test_init): Call it.
17355         * benchtests/bench-memset-large.c (do_test): Likewise.
17356         * benchtests/bench-memset.c (do_test): Likewise.
17357
17358         * benchtests/bench-memset-large.c: Print output in JSON
17359         format.
17360         * benchtests/bench-memset.c: Likewise.
17361
17362 2017-09-14  Mike FABIAN  <mfabian@redhat.com>
17363
17364         [BZ #21084]
17365         * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Add IBM858 and ibm858.c.
17366         * iconvdata/Makefile: Add IBM858.
17367         * iconvdata/gconv-modules: Likewise.
17368         * iconvdata/tst-tables.sh: Likewise.
17369         * iconvdata/ibm858.c: New file.
17370         * localedata/charmaps/IBM858: Likewise.
17371
17372 2017-09-14  Akhilesh Kumar  <akhilesh.k@samsung.com>
17373
17374         [BZ #22023]
17375         * locales/niu_NZ (LC_TIME): copy "niu_NU".
17376         * locales/niu_NZ (LC_MESSAGES): copy "niu_NU".
17377
17378 2017-09-14  Mike FABIAN  <mfabian@redhat.com>
17379
17380         [BZ #22112]
17381         * localedata/locales/az_AZ(LC_TELEPHONE): Fix int_select
17382         and add tel_int_fmt.
17383
17384 2017-09-14  Joseph Myers  <joseph@codesourcery.com>
17385
17386         * sysdeps/generic/libm-alias-float128.h: New file.
17387         * sysdeps/generic/math-type-macros-float128.h: Include
17388         <libm-alias-float128.h>.
17389         [!declare_mgen_alias] (declare_mgen_alias): Define macro.
17390
17391 2017-09-13  Joseph Myers  <joseph@codesourcery.com>
17392
17393         * sysdeps/generic/libm-alias-ldouble.h: New file.
17394         * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Likewise.
17395         * sysdeps/ieee754/ldbl-opt/math-type-macros-ldouble.h: Remove.
17396         * sysdeps/generic/math-type-macros-ldouble.h: Include
17397         <libm-alias-ldouble.h>.
17398         [!declare_mgen_alias] (declare_mgen_alias): Define to use
17399         libm_alias_ldouble.
17400
17401 2017-09-13  Szabolcs Nagy  <szabolcs.nagy@arm.com>
17402
17403         * sysdeps/ieee754/dbl-64/w_exp_compat.c: Move to...
17404         * math/w_exp_compat.c: ... here.
17405         * sysdeps/ieee754/flt-32/w_expf_compat.c: Move to...
17406         * math/w_expf_compat.c: ... here.
17407         * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Move to...
17408         * math/w_expl_compat.c: ... here.
17409         * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Remove.
17410         * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Remove.
17411         * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Use the new path.
17412         * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
17413
17414 2017-09-13  Joseph Myers  <joseph@codesourcery.com>
17415
17416         * math/w_scalbln_template.c (strong_alias): Do not undefine and
17417         redefine.
17418         * sysdeps/ieee754/ldbl-opt/s_ldexp.c (declare_mgen_alias): Remove
17419         macro.
17420         (ldexpl): Only define as compat symbol for libc, not libm.
17421         (scalbnl): Define as compat symbol for libc here.
17422         * sysdeps/ieee754/ldbl-opt/s_ldexpl.c (declare_mgen_alias): Only
17423         define for [IS_IN (libc)].
17424         (__ldexpl_2): Remove alias.
17425         (ldexpl): Only define with long_double_symbol if [IS_IN (libc)].
17426         (scalbnl): Likewise.  Use __wrap_scalbnl not __ldexpl_2 as base
17427         name in long_double_symbol call.
17428         * sysdeps/ieee754/ldbl-opt/s_log1p.c: Remove file.
17429         * sysdeps/ieee754/ldbl-opt/s_scalbln.c: Likewise.
17430         * sysdeps/ieee754/ldbl-opt/s_scalbn.c: Likewise.
17431         * sysdeps/ieee754/ldbl-opt/w_log1p.c: Likewise.
17432         * sysdeps/ieee754/ldbl-opt/w_scalbln.c (declare_mgen_alias):
17433         Remove macro.
17434         [IS_IN (libc) && LONG_DOUBLE_COMPAT (libc, GLIBC_2_1)] (scalblnl):
17435         Define as compat symbol.
17436
17437 2017-09-13  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17438
17439         * sysdeps/unix/sysv/linux/s390/s390-32/oldglob.c: New file.
17440         * sysdeps/unix/sysv/linux/alpha/Makefile
17441         [$(subdir) = csu] (sysdep_routines): Remove rule.
17442
17443 2017-09-13  Joseph Myers  <joseph@codesourcery.com>
17444
17445         * sysdeps/generic/libm-alias-double.h: New file.
17446         * sysdeps/ieee754/ldbl-opt/libm-alias-double.h: Likewise.
17447         * sysdeps/generic/math-type-macros-double.h: Include
17448         <libm-alias-double.h>.
17449         [declare_mgen_alias] (declare_mgen_alias): Define to use
17450         libm_alias_double.
17451         * sysdeps/generic/math-type-macros.h [!M_LIBM_NEED_COMPAT]
17452         (M_LIBM_NEED_COMPAT): Remove macro.
17453         [!M_LIBM_NEED_COMPAT] (declare_mgen_libm_compat): Likewise.
17454         * sysdeps/ieee754/ldbl-opt/math-type-macros-double.h: Remove.
17455         * math/cabs_template.c [M_LIBM_NEED_COMPAT]: Remove conditional
17456         code.
17457         * math/carg_template.c [M_LIBM_NEED_COMPAT]: Likewise.
17458         * math/cimag_template.c [M_LIBM_NEED_COMPAT]: Likewise.
17459         * math/conj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
17460         * math/creal_template.c [M_LIBM_NEED_COMPAT]: Likewise.
17461         * math/s_cacos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
17462         * math/s_cacosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
17463         * math/s_casin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
17464         * math/s_casinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
17465         * math/s_catan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
17466         * math/s_catanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
17467         * math/s_ccos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
17468         * math/s_ccosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
17469         * math/s_cexp_template.c [M_LIBM_NEED_COMPAT]: Likewise.
17470         * math/s_clog10_template.c [M_LIBM_NEED_COMPAT]: Likewise.
17471         * math/s_clog_template.c [M_LIBM_NEED_COMPAT]: Likewise.
17472         * math/s_cpow_template.c [M_LIBM_NEED_COMPAT]: Likewise.
17473         * math/s_cproj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
17474         * math/s_csin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
17475         * math/s_csinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
17476         * math/s_csqrt_template.c [M_LIBM_NEED_COMPAT]: Likewise.
17477         * math/s_ctan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
17478         * math/s_ctanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
17479         * math/s_fdim_template.c [M_LIBM_NEED_COMPAT]: Likewise.
17480         * math/s_fmax_template.c [M_LIBM_NEED_COMPAT]: Likewise.
17481         * math/s_fmin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
17482         * math/s_nan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
17483         * math/w_ilogb_template.c [M_LIBM_NEED_COMPAT]: Likewise.
17484         * sysdeps/ieee754/ldbl-opt/s_clog10.c: New file.
17485         * sysdeps/ieee754/ldbl-opt/s_ldexp.c (M_LIBM_NEED_COMPAT): Remove
17486         macro.
17487         (declare_mgen_alias): New macro.
17488         * sysdeps/ieee754/ldbl-opt/w_log1p.c: New file.
17489         * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Likewise.
17490         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.c
17491         (M_LIBM_NEED_COMPAT): Remove macro.
17492         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c
17493         [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h> and
17494         <first-versions.h>.
17495         [HAVE_AS_VIS3_SUPPORT && LONG_DOUBLE_COMPAT (libm,
17496         FIRST_VERSION_libm_fdiml)]: Define fdiml as compat symbol.
17497
17498 2017-09-12  Joseph Myers  <joseph@codesourcery.com>
17499
17500         * sysdeps/generic/math-type-macros.h [!declare_mgen_alias_2]
17501         (declare_mgen_alias_2): Remove.
17502         * sysdeps/generic/math-type-macros-double.h
17503         [NO_LONG_DOUBLE && !declare_mgen_alias_2] (declare_mgen_alias_2):
17504         Likewise.
17505         * math/s_ldexp_template.c (M_SUF (__wrap_scalbn)): Define strong
17506         alias.
17507         (ldexp): Define with declare_mgen_alias.
17508         (scalbn): Likewise.
17509
17510 2017-09-12  Steve Ellcey  <sellcey@cavium.com>
17511
17512         * grp/initgroups.c: Include config.h.
17513         (DEFAULT_CONFIG): New macro.
17514         (internal_getgrouplist): Use DEFAULT_CONFIG.
17515         * nscd/initgrcache.c (addinitgroupsX): Likewise.
17516         * nss/nsswitch.c (__nss_disable_nscd): Likewise.
17517         (DEFAULT_DEFCONFIG): New macro.
17518         (__nss_database_lookup): Use DEFAULT_DEFCONFIG.
17519         * nss/grp-lookup.c: Include config.h
17520         (DEFAULT_CONFIG): Set definition based on LINK_OBSOLETE_NSL.
17521         * nss/pwd-lookup.c (DEFAULT_CONFIG): Likewise.
17522         * nss/spwd-lookup.c (DEFAULT_CONFIG): Likewise.
17523         * manual/nss.texi: Update default values section.
17524
17525 2017-09-12  H.J. Lu  <hongjiu.lu@intel.com>
17526
17527         [BZ #21967]
17528         * sysdeps/x86/cpu-features.h (bit_arch_MathVec_Prefer_No_AVX512):
17529         New.
17530         (index_arch_MathVec_Prefer_No_AVX512): Likewise.
17531         * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
17532         Handle MathVec_Prefer_No_AVX512.
17533         * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h
17534         (IFUNC_SELECTOR): Return AVX2 version if MathVec_Prefer_No_AVX512
17535         is set.
17536
17537 2017-09-12  Samuel Thibault  <samuel.thibault@ens-lyon.org>
17538
17539         * posix/sched_primax.c (__sched_get_priority_max): Add
17540         libc_hidden_def.
17541         * posix/sched_primin.c (__sched_get_priority_min): Likewise.
17542         * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
17543         * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
17544         * sysdeps/mach/hurd/mprotect.c (__mprotect): Likewise.
17545         * sysdeps/mach/hurd/munmap.c (__munmap): Likewise.
17546         * sysdeps/mach/hurd/dl-sysdep.c (__GI___getpid,
17547         __GI___strtoul_internal, __GI_____strtoul_internal, __GI___chk_fail,
17548         __GI___fortify_fail, __GI___assert_fail, __GI___assert_perror_fail):
17549         Add aliases.
17550
17551 2017-09-11  Joseph Myers  <joseph@codesourcery.com>
17552
17553         * sysdeps/generic/libm-alias-float.h: New file.
17554         * sysdeps/generic/math-type-macros-float.h: Include
17555         <libm-alias-float.h>.
17556         [!declare_mgen_alias] (declare_mgen_alias): Define macro.
17557
17558 2017-09-11  H.J. Lu  <hongjiu.lu@intel.com>
17559
17560         [BZ #22093]
17561         * sysdeps/x86/cpu-features.c (init_cpu_features): Initialize
17562         GLRO(dl_hwcap) to HWCAP_X86_64 for x86-64.
17563         * sysdeps/x86/dl-hwcap.h (HWCAP_COUNT): Updated.
17564         (HWCAP_IMPORTANT): Likewise.
17565         (HWCAP_X86_64): New enum.
17566         (HWCAP_X86_AVX512_1): Updated.
17567         * sysdeps/x86/dl-procinfo.c (_dl_x86_hwcap_flags): Add "x86_64".
17568         * sysdeps/x86_64/Makefile (tests): Add tst-x86_64-1.
17569         (modules-names): Add x86_64/tst-x86_64mod-1.
17570         (LDFLAGS-tst-x86_64mod-1.so): New.
17571         ($(objpfx)tst-x86_64-1): Likewise.
17572         ($(objpfx)x86_64/tst-x86_64mod-1.os): Likewise.
17573         (tst-x86_64-1-clean): Likewise.
17574         * sysdeps/x86_64/tst-x86_64-1.c: New file.
17575         * sysdeps/x86_64/tst-x86_64mod-1.c: Likewise.
17576
17577 2017-09-11  Siddhesh Poyarekar  <siddhesh@sourceware.org>
17578
17579         * po/sv.po: Update translations.
17580         * po/fr.po: Likewise.
17581
17582 2017-09-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
17583
17584         * sunrpc/tst-udp-timeout.c (test_udp_server): Increase timeout to 2.5
17585         seconds.
17586         * sunrpc/tst-udp-nonblocking.c (do_test): Increase timeout to 0.75
17587         seconds.
17588         * elf/rtld-Rules: Fix $(error) use.
17589
17590 2017-09-09  Mike FABIAN  <mfabian@redhat.com>
17591
17592         [BZ #14925]
17593         * libio/tst-widetext.input: Change “Bengali” to “Bangla”.
17594         * locale/iso-639.def: Change “Bengali” to “Bangla”.
17595         * localedata/locales/bn_BD: “Bengali” was still used in some
17596         comments. Change it to “Bangla”.
17597
17598 2017-09-08  Markus Trippelsdorf  <markus@trippelsdorf.de>
17599
17600         * sysdeps/x86_64/fpu/libm-test-ulps: Update for AMD Ryzen.
17601
17602 2017-09-08  Steve Ellcey  <sellcey@cavium.com>
17603
17604         * manual/tunables.texi (glibc.tune.cpu): Add thunderx2t99 and
17605         thunderx2t99p1 to list of cpu names.
17606         * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
17607         Add thunderx2t99 and thunderx2t99p1 entries to cpu_list.
17608
17609 2017-09-08  Steve Ellcey  <sellcey@cavium.com>
17610
17611         * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (get_midr_from_mcpu):
17612         Use strcmp instead of tunable_is_name.
17613
17614 2017-09-08  Joseph Myers  <joseph@codesourcery.com>
17615
17616         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
17617         (F_GET_RW_HINT): New macro.
17618         [__USE_GNU] (F_SET_RW_HINT): Likewise.
17619         [__USE_GNU] (F_GET_FILE_RW_HINT): Likewise.
17620         [__USE_GNU] (F_SET_FILE_RW_HINT): Likewise.
17621         [__USE_GNU] (RWF_WRITE_LIFE_NOT_SET): Likewise.
17622         [__USE_GNU] (RWH_WRITE_LIFE_NONE): Likewise.
17623         [__USE_GNU] (RWH_WRITE_LIFE_SHORT): Likewise.
17624         [__USE_GNU] (RWH_WRITE_LIFE_MEDIUM): Likewise.
17625         [__USE_GNU] (RWH_WRITE_LIFE_LONG): Likewise.
17626         [__USE_GNU] (RWH_WRITE_LIFE_EXTREME): Likewise.
17627
17628         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
17629         (F_ADD_SEALS): New macro.
17630         [__USE_GNU] (F_GET_SEALS): Likewise.
17631         [__USE_GNU] (F_SEAL_SEAL): Likewise.
17632         [__USE_GNU] (F_SEAL_SHRINK): Likewise.
17633         [__USE_GNU] (F_SEAL_GROW): Likewise.
17634         [__USE_GNU] (F_SEAL_WRITE): Likewise.
17635
17636 2017-09-08  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17637
17638         * posix/glob_internal.h (GLOBPAT_NONE, GLOBPAT_SPECIAL)
17639         (GLOBPAT_BACKSLASH, GLOBPAT_BRACKET): New constants.
17640         * posix/glob_internal.h (__glob_pattern_type):
17641         * posix/glob.c (glob):
17642         * posix/glob_pattern_p.c (__glob_pattern_p):
17643         Use them.
17644
17645         * sysdeps/unix/sysv/linux/arm/glob64.c: Remove file.
17646         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
17647         * sysdeps/unix/sysv/linux/m68k/glob64.c: Likewise.
17648         * sysdeps/unix/sysv/linux/mips/mips64/n64/glob64.c: Likewise.
17649         * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
17650         * sysdeps/unix/sysv/linux/powerpc/powerpc32/glob64.c: Likewise.
17651         * sysdeps/unix/sysv/linux/sparc/sparc32/glob64.c: Likewise.
17652         * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: Likewise.
17653         * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
17654         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
17655         * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
17656         * sysdeps/wordsize-64/glob.c: Likewise.
17657         * sysdeps/wordsize-64/glob64.c: Likewise.
17658         * sysdeps/wordsize-64/globfree.c: Likewise.
17659         * sysdeps/wordsize-64/globfree64.c: Likewise.
17660         * sysdeps/unix/sysv/linux/glob.c: New file.
17661         * sysdeps/unix/sysv/linux/glob64.c: Likewise.
17662         * sysdeps/unix/sysv/linux/globfree.c: Likewise.
17663         * sysdeps/unix/sysv/linux/globfree64.c: Likewise.
17664         * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
17665         * sysdeps/unix/sysv/linux/oldglob.c [SHLIB_COMPAT]: Also
17666         adds !GLOB_NO_OLD_VERSION as an extra condition.
17667         * sysdeps/unix/sysv/linux/i386/alphasort64.c: Include olddirent.h
17668         using relative path instead of absolute one.
17669         * sysdeps/unix/sysv/linux/i386/getdents64.c: Likewise.
17670         * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
17671         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
17672         * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
17673         * sysdeps/unix/sysv/linux/i386/olddirent.h: Move to ...
17674         * sysdeps/unix/sysv/linux//olddirent.h: ... here.
17675
17676         [BZ #1062]
17677         * posix/glob.c (GET_LOGIN_NAME_MAX): Remove.
17678         (glob): Use the same scratch buffer for both getlogin_r and
17679         getpwnam_r.  Don’t require preallocation of the login name.  This
17680         simplifies storage allocation, and corrects the handling of
17681         long login names.
17682
17683         [BZ #1062]
17684         * posix/glob.c (glob): Port recent patches to platforms
17685         lacking getpwnam_r.
17686         (glob): Fix longstanding misuse of errno after getpwnam_r, which
17687         returns an error number rather than setting errno.
17688
17689         * include/scratch_buffer.h (scratch_buffer): Use a C99 align method
17690         instead of GCC extension.
17691         * malloc/scratch_buffer_grow.c [!_LIBC]: Include libc-config.h.
17692         * malloc/scratch_buffer_grow_preserve.c [!_LIBC]: Likewise.
17693         * malloc/scratch_buffer_set_array_size.c [!_LIBC]: Likewise.
17694
17695         [BZ #866]
17696         [BZ #1062]
17697         * posix/Makefile (tests): Remove bug-glob1 and tst-glob_symlinks.
17698         * posix/bug-glob1.c: Remove file.
17699         * posix/tst-glob_symlinks.c: New file.
17700         * posix/glob.c (__lstat64): New macro.
17701         (is_dir): New function.
17702         (glob, glob_in_dir): Match symlinks even if they are dangling.
17703         (link_stat, link_exists_p): Remove.  All uses removed.
17704
17705         [BZ #1062]
17706         [BZ #19971]
17707         * posix/glob.c (struct readdir_result): Remove skip_entry member.
17708         (readdir_result_skip_entry, D_INO_TO_RESULT): Remove.
17709         All uses removed.
17710
17711         [BZ #1062]
17712         CVE-2017-15671
17713         * posix/Makefile (routines): Add globfree, globfree64, and
17714         glob_pattern_p.
17715         * posix/flexmember.h: New file.
17716         * posix/glob_internal.h: Likewise.
17717         * posix/glob_pattern_p.c: Likewise.
17718         * posix/globfree.c: Likewise.
17719         * posix/globfree64.c: Likewise.
17720         * sysdeps/gnu/globfree64.c: Likewise.
17721         * sysdeps/unix/sysv/linux/alpha/globfree.c: Likewise.
17722         * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
17723         * sysdeps/unix/sysv/linux/oldglob.c: Likewise.
17724         * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
17725         * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
17726         * sysdeps/wordsize-64/globfree.c: Likewise.
17727         * sysdeps/wordsize-64/globfree64.c: Likewise.
17728         * posix/glob.c (HAVE_CONFIG_H): Use !_LIBC instead.
17729         [NDEBUG): Remove comments.
17730         (GLOB_ONLY_P, _AMIGA, VMS): Remove define.
17731         (dirent_type): New type.  Use uint_fast8_t not
17732         uint8_t, as C99 does not require uint8_t.
17733         (DT_UNKNOWN, DT_DIR, DT_LNK): New macros.
17734         (struct readdir_result): Use dirent_type.  Do not define skip_entry
17735         unless it is needed; this saves a byte on platforms lacking d_ino.
17736         (readdir_result_type, readdir_result_skip_entry):
17737         New functions, replacing ...
17738         (readdir_result_might_be_symlink, readdir_result_might_be_dir):
17739          these functions, which were removed.  This makes the callers
17740         easier to read.  All callers changed.
17741         (D_INO_TO_RESULT): Now empty if there is no d_ino.
17742         (size_add_wrapv, glob_use_alloca): New static functions.
17743         (glob, glob_in_dir): Check for size_t overflow in several places,
17744         and fix some size_t checks that were not quite right.
17745         Remove old code using SHELL since Bash no longer
17746         uses this.
17747         (glob, prefix_array): Separate MS code better.
17748         (glob_in_dir): Remove old Amiga and VMS code.
17749         (globfree, __glob_pattern_type, __glob_pattern_p): Move to
17750         separate files.
17751         (glob_in_dir): Do not rely on undefined behavior in accessing
17752         struct members beyond their bounds.  Use a flexible array member
17753         instead
17754         (link_stat): Rename from link_exists2_p and return -1/0 instead of
17755         0/1.  Caller changed.
17756         (glob): Fix memory leaks.
17757         * posix/glob64 (globfree64): Move to separate file.
17758         * sysdeps/gnu/glob64.c (NO_GLOB_PATTERN_P): Remove define.
17759         (globfree64): Remove hidden alias.
17760         * sysdeps/unix/sysv/linux/Makefile (sysdeps_routines): Add
17761         oldglob.
17762         * sysdeps/unix/sysv/linux/alpha/glob.c (__new_globfree): Move to
17763         separate file.
17764         * sysdeps/unix/sysv/linux/i386/glob64.c (NO_GLOB_PATTERN_P): Remove
17765         define.
17766         Move compat code to separate file.
17767         * sysdeps/wordsize-64/glob.c (globfree): Move definitions to
17768         separate file.
17769
17770 2017-09-07  H.J. Lu  <hongjiu.lu@intel.com>
17771
17772         * resolv/tst-resolv-qtypes.c (domain): Changed to
17773         "const char domain[] =".
17774
17775 2017-09-07  Joseph Myers  <joseph@codesourcery.com>
17776
17777         * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
17778         version to 3.1.6.
17779
17780         * sysdeps/gnu/netinet/tcp.h (TCP_ULP): New macro.
17781         (TCP_MD5SIG_EXT): Likewise.
17782         (TCP_MD5SIG_FLAG_PREFIX): Likewise.
17783         (struct tcp_md5sig): Replace __tcpm_pad1 by tcpm_flags and
17784         tcpm_prefixlen.  Rename __tcpm_pad2 to __tcpm_pad.
17785
17786         * sysdeps/unix/sysv/linux/bits/socket.h (SOL_TLS): New macro.
17787
17788 2017-09-07  Mike FABIAN  <mfabian@redhat.com>
17789
17790         * localedata/locales/om_ET (LC_TIME): use ASCII for better readability.
17791
17792 2017-09-07  Akhilesh Kumar  <akhilesh.k@samsung.com>
17793
17794         [BZ #22100]
17795         * localedata/locales/om_KE (LC_TIME): copy "om_ET".
17796
17797 2017-09-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
17798
17799         * hurd/get-host.c (_hurd_get_host_config): Also check that more == 0
17800         before assuming that the file is empty.  Avoid testing buffer content
17801         when nread == 0.
17802
17803 2017-09-06  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17804
17805         [BZ #18858]
17806         * sysdeps/i386/i686/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
17807         Remove define.
17808         * sysdeps/x86_64/multiarch/stpcpy.c (_HAVE_STRING_ARCH_stpcpy):
17809         Likewise.
17810         * sysdeps/x86_64/multiarch/strcspn.c (_HAVE_STRING_ARCH_strcspn):
17811         Likewise.
17812         * sysdeps/x86_64/multiarch/strncat.c (_HAVE_STRING_ARCH_strncat):
17813         Likewise.
17814         * sysdeps/x86_64/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
17815         Likewise.
17816         * sysdeps/x86_64/multiarch/strpbrk.c (_HAVE_STRING_ARCH_strpbrk):
17817         Likewise.
17818         * sysdeps/x86_64/multiarch/strspn.c (_HAVE_STRING_ARCH_strspn):
17819         Likewise.
17820
17821 2017-09-06  Florian Weimer  <fweimer@redhat.com>
17822
17823         * malloc/dynarray_emplace_enlarge.c
17824         (__libc_dynarray_emplace_enlarge): Add missing else.
17825
17826 2017-09-06  Florian Weimer  <fweimer@redhat.com>
17827
17828         [BZ #22096]
17829         * resolv/resolv_conf.c (__resolv_conf_attach): Do not free conf in
17830         case of failure to obtain the global conf object.
17831
17832 2017-09-06  Florian Weimer  <fweimer@redhat.com>
17833
17834         [BZ #22095]
17835         * resolv/res_init.c (res_vinit_1): Avoid memory leak in case of
17836         dynarray allocation failure.
17837
17838 2017-09-06  Florian Weimer  <fweimer@redhat.com>
17839
17840         Remove dead PTR IPv4-to-IPv6 mapping code from nss_dns.
17841         * resolv/nss_dns/dns-host.c (getanswer_r): Remove dead code.
17842         * resolv/tst-res_use_inet6.c (response_ptr_v4, response_ptr_v6):
17843         New functions.
17844         (response): Call them.  Add 'p', '6' flag processing.
17845         (test_reverse): New function.
17846         (test_get2_any): Call it.
17847         (test_no_inet6): Add 'p' test.
17848         (test_inet6): Likewise.
17849
17850 2017-09-06  Florian Weimer  <fweimer@redhat.com>
17851
17852         Enhance tst-res_use_inet6 to test IPv4-to-IPv6 address mapping.
17853         * resolv/tst-res_use_inet6.c (response): Process flags embedded in
17854         the QNAME.
17855         (test_gai): Adjust query names.  Add additional tests.
17856         (test_get2_any, test_get2_no_inet6, test_get2_inet6): Split from
17857         test_get2.  Adjust query names.  Add additional tests.
17858         (test_no_inet6): New function, extracted from threadfunc.
17859         (threadfunc): Call test_get2_any, test_get2_inet6, test_no_inet6.
17860         Add additional tests.
17861
17862 2017-09-06  Mike FABIAN  <mfabian@redhat.com>
17863
17864         [BZ #22070]
17865         * localedata/unicode-gen/utf8_gen.py: Set the width for
17866         characters with Prepended_Concatenation_Mark property to 1
17867         * localedata/charmaps/UTF-8: Updated using the improved script.
17868
17869 2017-09-06  Mike FABIAN  <mfabian@redhat.com>
17870
17871         [BZ #21750]
17872         * localedata/unicode-gen/utf8_gen.py: Improve the script to
17873         use the range notation for all ranges of neighbouring characters
17874         with the same width.
17875
17876 2017-09-05  Joseph Myers  <joseph@codesourcery.com>
17877
17878         * sysdeps/generic/math-type-macros-double.h: Include
17879         <math-svid-compat.h>.
17880         (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
17881         * sysdeps/generic/math-type-macros-float.h: Include
17882         <math-svid-compat.h>.
17883         (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
17884         * sysdeps/generic/math-type-macros-ldouble.h: Include
17885         <math-svid-compat.h>.
17886         (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
17887         * math/lgamma-compat.h (BUILD_LGAMMA): Include LIBM_SVID_COMPAT
17888         condition.
17889         * math/w_acos_compat.c: Condition contents on [LIBM_SVID_COMPAT].
17890         * math/w_acosf_compat.c: Likewise.
17891         * math/w_acosh_compat.c: Likewise.
17892         * math/w_acoshf_compat.c: Likewise.
17893         * math/w_acoshl_compat.c: Likewise.
17894         * math/w_acosl_compat.c: Likewise.
17895         * math/w_asin_compat.c: Likewise.
17896         * math/w_asinf_compat.c: Likewise.
17897         * math/w_asinl_compat.c: Likewise.
17898         * math/w_atan2_compat.c: Likewise.
17899         * math/w_atan2f_compat.c: Likewise.
17900         * math/w_atan2l_compat.c: Likewise.
17901         * math/w_atanh_compat.c: Likewise.
17902         * math/w_atanhf_compat.c: Likewise.
17903         * math/w_atanhl_compat.c: Likewise.
17904         * math/w_cosh_compat.c: Likewise.
17905         * math/w_coshf_compat.c: Likewise.
17906         * math/w_coshl_compat.c: Likewise.
17907         * math/w_exp10_compat.c: Likewise.
17908         * math/w_exp10f_compat.c: Likewise.
17909         * math/w_exp10l_compat.c: Likewise.
17910         * math/w_exp2_compat.c: Likewise.
17911         * math/w_exp2f_compat.c: Likewise.
17912         * math/w_exp2l_compat.c: Likewise.
17913         * math/w_fmod_compat.c: Likewise.
17914         * math/w_fmodf_compat.c: Likewise.
17915         * math/w_fmodl_compat.c: Likewise.
17916         * math/w_hypot_compat.c: Likewise.
17917         * math/w_hypotf_compat.c: Likewise.
17918         * math/w_hypotl_compat.c: Likewise.
17919         * math/w_j0_compat.c: Likewise.
17920         * math/w_j0f_compat.c: Likewise.
17921         * math/w_j0l_compat.c: Likewise.
17922         * math/w_j1_compat.c: Likewise.
17923         * math/w_j1f_compat.c: Likewise.
17924         * math/w_j1l_compat.c: Likewise.
17925         * math/w_jn_compat.c: Likewise.
17926         * math/w_jnf_compat.c: Likewise.
17927         * math/w_jnl_compat.c: Likewise.
17928         * math/w_lgamma_r_compat.c: Likewise.
17929         * math/w_lgammaf_r_compat.c: Likewise.
17930         * math/w_lgammal_r_compat.c: Likewise.
17931         * math/w_log10_compat.c: Likewise.
17932         * math/w_log10f_compat.c: Likewise.
17933         * math/w_log10l_compat.c: Likewise.
17934         * math/w_log2_compat.c: Likewise.
17935         * math/w_log2f_compat.c: Likewise.
17936         * math/w_log2l_compat.c: Likewise.
17937         * math/w_log_compat.c: Likewise.
17938         * math/w_logf_compat.c: Likewise.
17939         * math/w_logl_compat.c: Likewise.
17940         * math/w_pow_compat.c: Likewise.
17941         * math/w_powf_compat.c: Likewise.
17942         * math/w_powl_compat.c: Likewise.
17943         * math/w_remainder_compat.c: Likewise.
17944         * math/w_remainderf_compat.c: Likewise.
17945         * math/w_remainderl_compat.c: Likewise.
17946         * math/w_sinh_compat.c: Likewise.
17947         * math/w_sinhf_compat.c: Likewise.
17948         * math/w_sinhl_compat.c: Likewise.
17949         * math/w_sqrt_compat.c: Likewise.
17950         * math/w_sqrtf_compat.c: Likewise.
17951         * math/w_sqrtl_compat.c: Likewise.
17952         * math/w_tgamma_compat.c: Likewise.
17953         * math/w_tgammaf_compat.c: Likewise.
17954         * math/w_tgammal_compat.c: Likewise.
17955         * math/w_scalb_compat.c (sysv_scalb): Condition definition on
17956         [LIBM_SVID_COMPAT].
17957         (__scalb): Condition call to sysv_scalb on [LIBM_SVID_COMPAT].
17958         * math/w_scalbf_compat.c (sysv_scalbf): Condition definition on
17959         [LIBM_SVID_COMPAT].
17960         (__scalbf): Condition call to sysv_scalbf on [LIBM_SVID_COMPAT].
17961         * math/w_scalbl_compat.c (sysv_scalbl): Condition definition on
17962         [LIBM_SVID_COMPAT].
17963         (__scalbl): Condition call to sysv_scalbl on [LIBM_SVID_COMPAT].
17964         * sysdeps/i386/fpu/w_sqrt.c: New file.
17965         * sysdeps/ia64/fpu/w_acos.c: Likewise.
17966         * sysdeps/ia64/fpu/w_acosf.c: Likewise.
17967         * sysdeps/ia64/fpu/w_acosh.c: Likewise.
17968         * sysdeps/ia64/fpu/w_acoshf.c: Likewise.
17969         * sysdeps/ia64/fpu/w_acoshl.c: Likewise.
17970         * sysdeps/ia64/fpu/w_acosl.c: Likewise.
17971         * sysdeps/ia64/fpu/w_asin.c: Likewise.
17972         * sysdeps/ia64/fpu/w_asinf.c: Likewise.
17973         * sysdeps/ia64/fpu/w_asinl.c: Likewise.
17974         * sysdeps/ia64/fpu/w_atan2.c: Likewise.
17975         * sysdeps/ia64/fpu/w_atan2f.c: Likewise.
17976         * sysdeps/ia64/fpu/w_atan2l.c: Likewise.
17977         * sysdeps/ia64/fpu/w_atanh.c: Likewise.
17978         * sysdeps/ia64/fpu/w_atanhf.c: Likewise.
17979         * sysdeps/ia64/fpu/w_atanhl.c: Likewise.
17980         * sysdeps/ia64/fpu/w_cosh.c: Likewise.
17981         * sysdeps/ia64/fpu/w_coshf.c: Likewise.
17982         * sysdeps/ia64/fpu/w_coshl.c: Likewise.
17983         * sysdeps/ia64/fpu/w_exp.c: Likewise.
17984         * sysdeps/ia64/fpu/w_exp10.c: Likewise.
17985         * sysdeps/ia64/fpu/w_exp10f.c: Likewise.
17986         * sysdeps/ia64/fpu/w_exp10l.c: Likewise.
17987         * sysdeps/ia64/fpu/w_exp2.c: Likewise.
17988         * sysdeps/ia64/fpu/w_exp2f.c: Likewise.
17989         * sysdeps/ia64/fpu/w_exp2l.c: Likewise.
17990         * sysdeps/ia64/fpu/w_expf.c: Likewise.
17991         * sysdeps/ia64/fpu/w_expl.c: Likewise.
17992         * sysdeps/ia64/fpu/w_fmod.c: Likewise.
17993         * sysdeps/ia64/fpu/w_fmodf.c: Likewise.
17994         * sysdeps/ia64/fpu/w_fmodl.c: Likewise.
17995         * sysdeps/ia64/fpu/w_hypot.c: Likewise.
17996         * sysdeps/ia64/fpu/w_hypotf.c: Likewise.
17997         * sysdeps/ia64/fpu/w_hypotl.c: Likewise.
17998         * sysdeps/ia64/fpu/w_lgamma_r.c: Likewise.
17999         * sysdeps/ia64/fpu/w_lgammaf_r.c: Likewise.
18000         * sysdeps/ia64/fpu/w_lgammal_r.c: Likewise.
18001         * sysdeps/ia64/fpu/w_log.c: Likewise.
18002         * sysdeps/ia64/fpu/w_log10.c: Likewise.
18003         * sysdeps/ia64/fpu/w_log10f.c: Likewise.
18004         * sysdeps/ia64/fpu/w_log10l.c: Likewise.
18005         * sysdeps/ia64/fpu/w_log2.c: Likewise.
18006         * sysdeps/ia64/fpu/w_log2f.c: Likewise.
18007         * sysdeps/ia64/fpu/w_log2l.c: Likewise.
18008         * sysdeps/ia64/fpu/w_logf.c: Likewise.
18009         * sysdeps/ia64/fpu/w_logl.c: Likewise.
18010         * sysdeps/ia64/fpu/w_pow.c: Likewise.
18011         * sysdeps/ia64/fpu/w_powf.c: Likewise.
18012         * sysdeps/ia64/fpu/w_powl.c: Likewise.
18013         * sysdeps/ia64/fpu/w_remainder.c: Likewise.
18014         * sysdeps/ia64/fpu/w_remainderf.c: Likewise.
18015         * sysdeps/ia64/fpu/w_remainderl.c: Likewise.
18016         * sysdeps/ia64/fpu/w_sinh.c: Likewise.
18017         * sysdeps/ia64/fpu/w_sinhf.c: Likewise.
18018         * sysdeps/ia64/fpu/w_sinhl.c: Likewise.
18019         * sysdeps/ia64/fpu/w_sqrt.c: Likewise.
18020         * sysdeps/ia64/fpu/w_sqrtf.c: Likewise.
18021         * sysdeps/ia64/fpu/w_sqrtl.c: Likewise.
18022         * sysdeps/ia64/fpu/w_tgamma.c: Likewise.
18023         * sysdeps/ia64/fpu/w_tgammaf.c: Likewise.
18024         * sysdeps/ia64/fpu/w_tgammal.c: Likewise.
18025         * sysdeps/ieee754/dbl-64/w_exp_compat.c: Condition contents on
18026         [LIBM_SVID_COMPAT].
18027         * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
18028         * sysdeps/ieee754/k_standard.c: Likewise.
18029         * sysdeps/ieee754/k_standardf.c: Likewise.
18030         * sysdeps/ieee754/k_standardl.c: Likewise.
18031         * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
18032         * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
18033         * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
18034         * sysdeps/ieee754/ldbl-64-128/w_expl_compat.c: Condition
18035         long_double_symbol call on [LIBM_SVID_COMPAT].
18036         * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
18037         * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
18038         * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
18039         * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
18040         * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
18041         * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
18042         * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
18043         * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
18044         * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
18045         * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
18046         * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
18047         * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
18048         * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
18049         * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
18050         * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
18051         * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
18052         * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c: Likewise.
18053         * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
18054         * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
18055         * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
18056         * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c: Condition
18057         long_double_symbol and compat_symbol calls on [LIBM_SVID_COMPAT].
18058
18059 2017-09-05  Steve Ellcey  <sellcey@cavium.com>
18060
18061         * include/shlib-compat.h (TEST_COMPAT): New Macro.
18062         * malloc/tst-mallocstate.c: Convert from test-skeleton
18063         to test-driver.  Ifdef code using TEST_COMPAT macro.
18064         * math/test-matherr-2.c: Ifdef test using TEST_COMPAT macro.
18065         * math/test-matherr.c: Likewise.
18066
18067 2017-09-05  Joseph Myers  <joseph@codesourcery.com>
18068
18069         [BZ #22086]
18070         * debug/pcprofiledump.c (main): Use byte-swapped mask when
18071         comparing word with byte-swapped constant.
18072
18073 2017-09-05  Chris Leonard  <cjlhomeaddress@gmail.com>
18074
18075         [BZ #20498]
18076         * locale/iso-639.def: add Miskito.
18077         * localedata/SUPPORTED: Add miq_NI/UTF-8.
18078         * localedata/locales/miq_NI: New file.
18079
18080 2017-09-04  H.J. Lu  <hongjiu.lu@intel.com>
18081
18082         [BZ #18822]
18083         * include/sys/stat.h (__chmod): Add libc_hidden_proto.
18084         (__mkdir): Likewise.
18085         * io/chmod.c (__chmod): Add libc_hidden_def.
18086         * io/mkdir.c (__mkdir): Likewise.
18087         * sysdeps/mach/hurd/chmod.c (__chmod): Likewise.
18088         * sysdeps/mach/hurd/mkdir.c (__mkdir): Likewise.
18089         * sysdeps/unix/sysv/linux/generic/chmod.c (__chmod): Likewise.
18090         * sysdeps/unix/sysv/linux/generic/mkdir.c (__mkdir): Likewise.
18091
18092 2017-09-04  Joseph Myers  <joseph@codesourcery.com>
18093
18094         * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
18095         version to 4.13.
18096
18097         [BZ #22082]
18098         * math/bits/math-finite.h (exp10): Redirect if [__GLIBC_USE
18099         (IEC_60559_FUNCS_EXT)], not [__USE_GNU].
18100
18101 2017-09-04  Florian Weimer  <fweimer@redhat.com>
18102
18103         * math/math.h: Issue warning if log is defined.
18104
18105 2017-09-04  Joseph Myers  <joseph@codesourcery.com>
18106
18107         * scripts/build-many-glibcs.py (Context.checkout): Default Linux
18108         kernel version to 4.13.
18109
18110 2017-09-03  Samuel Thibault  <samuel.thibault@ens-lyon.org>
18111
18112         * sysdeps/generic/sigsetops.h: Remove spurious #endif.
18113         (__sigismember, __sigaddset, __sigdelset): Fix referencing set
18114         parameter.
18115         * sysdeps/mach/hurd/bits/socket.h: Include <sys/types.h> instead of
18116         just <bits/types.h>.
18117         * sysdeps/posix/preadv2.c: Use off_t instead of OFF_T.
18118         * sysdeps/posix/preadv64v2.c: Use off64_t instead of OFF_T.
18119         * sysdeps/posix/pwritev2.c: Use off_t instead of OFF_T.
18120         * sysdeps/posix/pwritev64v2.c: Use off64_t instead of OFF_T.
18121         * misc/preadv2.c: Include <errno.h>.
18122         * misc/preadv64v2.c: Include <errno.h>.
18123         * misc/pwritev2.c: Include <errno.h>.
18124         * misc/pwritev64v2.c: Include <errno.h>.
18125         * sysdeps/posix/preadv2.c: Include <errno.h>.
18126         * sysdeps/posix/preadv64v2.c: Include <errno.h>.
18127         Fix <unistd.h> inclusion.
18128         * sysdeps/posix/pwritev2.c: Include <errno.h>.
18129         * sysdeps/posix/pwritev64v2.c: Include <errno.h>.
18130         * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno, __sbrk,
18131         __strtoul_internal): New functions.
18132         * sysdeps/posix/pause.c: Include <sigsetops.h>.
18133         * sysdeps/posix/system.c: Include <sigsetops.h>.
18134         * sysdeps/mach/hurd/i386/Makefile
18135         [$(subdir) = csu] (sysdep_routines): New rule: divdi3 object.
18136         [$(subdir) = csu] (sysdep-only-routines): Likewise.
18137         [$(subdir) = csu] (CFLAGS-divdi3.c): Likewise.
18138         * sysdeps/x86/fpu/include/bits/fenv.h [NO_HIDDEN]: Redirect
18139         __feraiseexcept_renamed to feraiseexcept instead of
18140         __GI_feraiseexcept.
18141         * sysdeps/mach/hurd/i386/Implies: Add mach/hurd/x86.
18142         * sysdeps/mach/hurd/x86/dl-sysdep.c: New file.
18143         * misc/tst-preadvwritev2-common.c (RWF_HIPRI, RWF_DSYNC, RWF_SYNC,
18144         RWF_NOWAIT): Define to 0 if undefined already.
18145         (do_test_with_invalid_flags): Set invalid_flag to 2 if RWF_SUPPORTED
18146         boils down to 0.
18147         * resolv/tst-resolv-res_init-skeleton.c (run_res_init)
18148         [!CLONE_NEWUTS]: Fail as unsupported if hostname is not NULL.
18149
18150 2017-09-01  Joseph Myers  <joseph@codesourcery.com>
18151
18152         * manual/math.texi (pow10): Do not document.
18153         (pow10f): Likewise.
18154         (pow10l): Likewise.
18155         * math/bits/mathcalls.h [__USE_GNU] (pow10): Do not declare.
18156         * math/bits/math-finite.h [__USE_GNU] (pow10): Likewise.
18157         * math/libm-test-exp10.inc (pow10_test): Remove.
18158         (do_test): Do not call pow10.
18159         * math/w_exp10_compat.c (pow10): Make into compat symbol.
18160         [NO_LONG_DOUBLE] (pow10l): Likewise.
18161         * math/w_exp10f_compat.c (pow10f): Likewise.
18162         * math/w_exp10l_compat.c (pow10l): Likewise.
18163         * sysdeps/ia64/fpu/e_exp10.S: Include <shlib-compat.h>.
18164         (pow10): Make into compat symbol.
18165         * sysdeps/ia64/fpu/e_exp10f.S: Include <shlib-compat.h>.
18166         (pow10f): Make into compat symbol.
18167         * sysdeps/ia64/fpu/e_exp10l.S: Include <shlib-compat.h>.
18168         (pow10l): Make into compat symbol.
18169         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Remove
18170         pow10.
18171         (CFLAGS-nldbl-pow10.c): Remove variable..
18172         * sysdeps/ieee754/ldbl-opt/nldbl-pow10.c: Remove file.
18173         * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c (pow10l): Condition on
18174         [SHLIB_COMPAT (libm, GLIBC_2_1, GLIBC_2_27)].
18175         * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (compat_symbol):
18176         Undefine and redefine.
18177         (pow10l): Make into compat symbol.
18178         * sysdeps/aarch64/libm-test-ulps: Remove pow10 ulps.
18179         * sysdeps/alpha/fpu/libm-test-ulps: Likewise.
18180         * sysdeps/arm/libm-test-ulps: Likewise.
18181         * sysdeps/hppa/fpu/libm-test-ulps: Likewise.
18182         * sysdeps/i386/fpu/libm-test-ulps: Likewise.
18183         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
18184         * sysdeps/microblaze/libm-test-ulps: Likewise.
18185         * sysdeps/mips/mips32/libm-test-ulps: Likewise.
18186         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
18187         * sysdeps/nios2/libm-test-ulps: Likewise.
18188         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
18189         * sysdeps/powerpc/nofpu/libm-test-ulps: Likewise.
18190         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
18191         * sysdeps/sh/libm-test-ulps: Likewise.
18192         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
18193         * sysdeps/tile/libm-test-ulps: Likewise.
18194         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18195
18196 2017-09-01  Paul Pluzhnikov  <ppluzhnikov@google.com>
18197
18198         * stdlib/tst-atexit-common.c (crumbs): Ensure correct size.
18199
18200 2017-09-01  H.J. Lu  <hongjiu.lu@intel.com>
18201
18202         * posix/tst-regex.c (do_test): Replace "../ChangeLog.8" with
18203         "../ChangeLog.old/ChangeLog.8".
18204         * posix/tst-regex2.c (do_test): Replace "../ChangeLog.14" with
18205         "../ChangeLog.old/ChangeLog.14".
18206
18207 2017-09-01  H.J. Lu  <hongjiu.lu@intel.com>
18208
18209         * manual/contrib.texi: Credit Ulrich Drepper for the POSIX
18210         Threads Library.
18211
18212 2017-09-01  Joseph Myers  <joseph@codesourcery.com>
18213
18214         * sysdeps/unix/sysv/linux/gentempfd.c: Include <string.h>.
18215
18216 2017-09-01  H.J. Lu  <hongjiu.lu@intel.com>
18217
18218         * csu/version.c (banner): Remove "by Roland McGrath et al.".
18219         * nptl/Banner: Remove "by Ulrich Drepper et al.".
18220
18221 2017-09-01  Paul Pluzhnikov  <ppluzhnikov@google.com>
18222
18223         * stdlib/tst-atexit-common.c (do_test): Test support for at least
18224         32 atexit handlers.
18225
18226 2017-09-01  Zack Weinberg  <zackw@panix.com>
18227
18228         * math/math.h (HUGE_VAL): Improve commentary.
18229
18230 2017-09-01  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
18231             Andreas Schwab  <schwab@suse.de>
18232
18233         [BZ #21530]
18234         * include/stdio.h (__gen_tempfd): New function.
18235         * stdio-common/Makefile (routines): Add gentempfd.
18236         * stdio-common/gentempfd.c: New file.
18237         * sysdeps/unix/sysv/linux/gentempfd.c: Likewise.
18238         * stdio-common/tmpfile.c (tmpfile): First try to use a system specific
18239         unnamed file first.
18240
18241 2017-09-01  Florian Weimer  <fweimer@redhat.com>
18242
18243         [BZ #21915]
18244         [BZ #21922]
18245         * sysdeps/posix/getaddrinfo.c (gethosts): Look at NSS function
18246         result to determine success or failure, not the errno value.
18247         * nss/Makefile (tests): Add tst-nss-files-hosts-erange.
18248         (tst-nss-files-hosts-erange): Link with -ldl.
18249         * nss/tst-nss-files-hosts-erange.c: New file.
18250         * nss/tst-resolv-basic.c (response): Handle nodata.example.
18251         (do_test): Add NO_DATA tests.
18252         * resolv/tst-resolv-basic.c (test_nodata_nxdomain): New function.
18253         (do_test): Call it.
18254
18255 2017-09-01  Florian Weimer  <fweimer@redhat.com>
18256
18257         [BZ #21922]
18258         * sysdeps/posix/getaddrinfo.c (gaih_inet): Report EAI_NODATA error
18259         coming from gethostbyname2_r.
18260
18261 2017-09-01  Florian Weimer  <fweimer@redhat.com>
18262
18263         * support/namespace.h (struct support_chroot_configuration): Add
18264         hosts, host_conf.
18265         (struct support_chroot): Add path_hosts, path_host_conf.
18266         * support/support_chroot.c (write_file): New function.
18267         (support_chroot_create): Call it to process /etc/resolv.conf,
18268         /etc/hosts, /etc/host.conf.
18269         (support_chroot_free): Update.
18270
18271 2017-09-01  Florian Weimer  <fweimer@redhat.com>
18272
18273         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use h_errno if
18274         status indicates it is set.
18275
18276 2017-09-01  Florian Weimer  <fweimer@redhat.com>
18277
18278         [BZ #20532]
18279         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make reporting of NSS
18280         function lookup failures more reliable.
18281
18282 2017-09-01  Florian Weimer  <fweimer@redhat.com>
18283
18284         * sysdeps/posix/getaddrinfo.c (gethosts): Use h_errno directly.
18285         (getcanonname): Likewise.
18286         (gaih_inet): Likewise.
18287
18288 2017-09-01  Florian Weimer  <fweimer@redhat.com>
18289
18290         * sysdeps/posix/getaddrinfo.c (gethosts): Use errno directly.
18291         (getcanonname): Likewise.
18292         (gaih_inet): Likewise.
18293
18294 2017-08-31  Steve Ellcey  <sellcey@cavium.com>
18295             Richard Henderson <rth@twiddle.net>
18296
18297         * sysdeps/aarch64/fpu/s_llrint.c (OREG_SIZE): New macro.
18298         * sysdeps/aarch64/fpu/s_llround.c (OREG_SIZE): Likewise.
18299         * sysdeps/aarch64/fpu/s_llrintf.c (OREGS, IREGS): Remove.
18300         (IREG_SIZE, OREG_SIZE): New macros.
18301         * sysdeps/aarch64/fpu/s_llroundf.c: (OREGS, IREGS): Remove.
18302         (IREG_SIZE, OREG_SIZE): New macros.
18303         * sysdeps/aarch64/fpu/s_lrintf.c (IREGS): Remove.
18304         (IREG_SIZE): New macro.
18305         * sysdeps/aarch64/fpu/s_lroundf.c (IREGS): Remove.
18306         (IREG_SIZE): New macro.
18307         * sysdeps/aarch64/fpu/s_lrint.c (get-rounding-mode.h, stdint.h):
18308         New includes.
18309         (IREG_SIZE, OREG_SIZE): Initialize if not already set.
18310         (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
18311         (__CONCATX): Handle exceptions correctly on large values that may
18312         set FE_INVALID.
18313         * sysdeps/aarch64/fpu/s_lround.c (IREG_SIZE, OREG_SIZE):
18314         Initialize if not already set.
18315         (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
18316
18317 2017-08-31  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
18318
18319         * sysdeps/generic/not-cancel.h (NO_CANCELLATION): Remove macro.
18320         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (NO_CANCELLATION):
18321         Likewise.
18322         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (NO_CANCELLATION):
18323         Likewise.
18324         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (NO_CANCELLATION):
18325         Likewise.
18326         * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (NO_CANCELLATION):
18327         Likewise.
18328         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (NO_CANCELLATION):
18329         Likewise.
18330         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (NO_CANCELLATION):
18331         Likewise.
18332         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (NO_CANCELLATION):
18333         Likewise.
18334         * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h
18335         (NO_CANCELLATION): Likewise.
18336         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (NO_CANCELLATION):
18337         Likewise.
18338         * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (NO_CANCELLATION):
18339         Likewise.
18340         * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h (NO_CANCELLATION):
18341         Likewise.
18342         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h
18343         (NO_CANCELLATION): Likewise.
18344         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h
18345         (NO_CANCELLATION): Likewise.
18346         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (NO_CANCELLATION):
18347         Likewise
18348         * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h (NO_CANCELLATION):
18349         Likewise.
18350         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (NO_CANCELLATION):
18351         Likewise.
18352         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (NO_CANCELLATION):
18353         Likewise.
18354         * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): Add
18355         hidden prototype.
18356         * sysdeps/unix/sysv/linux/fcntl.c (__fcntl_nocancel): Define only
18357         for !IS_IN (rtld) and remove NO_CANCELLATION usage.
18358
18359 2017-08-31  Steve Ellcey  <sellcey@cavium.com>
18360
18361         * sysdeps/aarch64/dl-irel.h: (elf_ifunc_invoke): Change argument type
18362         in resolver call.
18363
18364 2017-08-31  Florian Weimer  <fweimer@redhat.com>
18365
18366         * include/libc-symbols.h (internal_function): Remove.
18367
18368 2017-08-31  Florian Weimer  <fweimer@redhat.com>
18369
18370         * stdlib/fmtmsg.c (internal_addseverity): Remove
18371         internal_function.
18372
18373 2017-08-31  Florian Weimer  <fweimer@redhat.com>
18374
18375         * stdio-common/printf_fp.c (group_number): Remove
18376         internal_function.
18377         * stdio-common/vfprintf.c (buffered_vfprintf): Likewise.
18378
18379 2017-08-31  Florian Weimer  <fweimer@redhat.com>
18380
18381         * posix/fnmatch.c (internal_function): Remove definition.
18382         * posix/fnmatch_loop.c (FCT, EXT, END): Remove internal_function.
18383         * posix/regcomp.c (peek_token, init_word_char)
18384         (duplicate_node_closure, fetch_token, peek_token)
18385         (peek_token_bracket, build_range_exp, build_collating_symbol):
18386         Likewise.
18387         * posix/regex_internal.c (re_string_construct_common)
18388         (create_ci_newstate, create_cd_newstate, re_string_allocate)
18389         (re_string_construct, re_string_realloc_buffers, build_wcs_buffer)
18390         (build_wcs_upper_buffer, re_string_skip_chars, build_upper_buffer)
18391         (re_string_translate_buffer, re_string_reconstruct)
18392         (re_string_peek_byte_case, re_string_fetch_byte_case)
18393         (re_string_destruct, re_string_context_at, re_node_set_alloc)
18394         (re_node_set_init_1, re_node_set_init_2, re_node_set_init_copy)
18395         (re_node_set_add_intersect, re_node_set_init_union)
18396         (re_node_set_merge, re_node_set_insert, re_node_set_insert_last)
18397         (re_node_set_compare, re_node_set_contains, re_node_set_remove_at)
18398         (re_dfa_add_node, calc_state_hash, re_acquire_state)
18399         (re_acquire_state_context): Likewise.
18400         * posix/regex_internal.h (internal_function): Remove definition.
18401         (re_string_realloc_buffers, build_wcs_buffer)
18402         (build_wcs_upper_buffer, build_upper_buffer)
18403         (re_string_translate_buffer, re_string_context_at)
18404         (re_string_char_size_at, re_string_wchar_at)
18405         (re_string_elem_size_at): Likewise.
18406         * posix/regexec.c (match_ctx_init, match_ctx_clean)
18407         (match_ctx_free, match_ctx_add_entry, search_cur_bkref_entry)
18408         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init)
18409         (re_search_internal, re_search_2_stub, re_search_stub)
18410         (re_copy_regs, prune_impossible_nodes, check_matching)
18411         (check_halt_state_context, update_regs, push_fail_stack, set_regs)
18412         (free_fail_stack_return, sift_states_iter_mb)
18413         (sift_states_backward, build_sifted_states)
18414         (update_cur_sifted_state, add_epsilon_src_nodes, check_dst_limits)
18415         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos)
18416         (check_subexp_limits, sift_states_bkref, merge_state_array)
18417         (find_recover_state, transit_state, merge_state_with_log)
18418         (check_subexp_matching_top, transit_state_sb, transit_state_sb)
18419         (transit_state_mb, transit_state_bkref, get_subexp)
18420         (get_subexp_sub, find_subexp_node, check_arrival)
18421         (check_arrival_add_next_nodes, check_arrival_expand_ecl)
18422         (check_arrival_expand_ecl_sub, expand_bkref_cache, build_trtable)
18423         (check_node_accept_bytes, find_collation_sequence_value)
18424         (group_nodes_into_DFAstates, check_node_accept, extend_buffers)
18425         (acquire_init_state_context, check_halt_node_context)
18426         (proceed_next_node, pop_fail_stack, clean_state_log_if_needed)
18427         (sub_epsilon_src_nodes): Likewise.
18428         * posix/spawn_int.h (__spawn_valid_fd): Likewise.
18429         * posix/spawn_valid_fd (__spawn_valid_fd): Likewise.
18430         * posix/wordexp.c (parse_dollars, parse_backtick, parse_dquote)
18431         (eval_expr, w_addmem, w_addstr, w_addword, parse_backslash)
18432         (parse_qtd_backslash, parse_tilde, do_parse_glob, parse_glob)
18433         (parse_squote, eval_expr_val, eval_expr_multdiv, parse_arith)
18434         (exec_comm_child, exec_comm, parse_comm, parse_param): Likewise.
18435         * sysdeps/posix/ttyname.c (getttyname): Likewise.
18436         * sysdeps/posix/ttyname_r.c (getttyname_r): Likewise.
18437         * sysdeps/unix/sysv/linux/preadv.c (__atomic_preadv_replacement)
18438         (PREADV): Likewise.
18439         * sysdeps/unix/sysv/linux/preadv64.c (__atomic_preadv64_replacement)
18440         (PREADV): Likewise.
18441         * sysdeps/unix/sysv/linux/pwritev.c (__atomic_pwritev_replacement)
18442         (PWRITEV): Likewise.
18443         * sysdeps/unix/sysv/linux/pwritev64.c (__atomic_pwritev64_replacement)
18444         (PWRITEV): Likewise.
18445         * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Likewise.
18446         * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
18447
18448 2017-08-31  Florian Weimer  <fweimer@redhat.com>
18449
18450         * nptl/allocatestack.c (change_stack_perm, __deallocate_stack)
18451         (setxid_mark_thread, setxid_unmark_thread, setxid_signal_thread):
18452         Remove internal_function.
18453         * nptl/cancellation.c (__pthread_disable_asynccancel): Likewise.
18454         * nptl/libc_pthread_init.c (__libc_pthread_init): Likewise.
18455         * nptl/pthreadP.h (__find_in_stack_list, __free_tcb)
18456         (__deallocate_stack, __libc_pthread_init)
18457         (__pthread_mutex_cond_lock, __pthread_mutex_cond_lock_adjust)
18458         (__pthread_mutex_unlock_usercnt, __pthread_disable_asynccancel)
18459         (__libc_disable_asynccancel, __librt_disable_asynccancel):
18460         Likewise.
18461         * nptl/pthread_create.c (__find_in_stack_list, __free_tcb): Likewise.
18462         * nptl/pthread_mutex_cond_lock.c (__pthread_mutex_lock): Likewise.
18463         * nptl/pthread_mutex_lock.c (__pthread_mutex_cond_lock_adjust):
18464         Likewise.
18465         * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full)
18466         (__pthread_mutex_unlock_usercnt): Likewise.
18467
18468 2017-08-31  Florian Weimer  <fweimer@redhat.com>
18469
18470         * io/fts.c (fts_alloc, fts_build, fts_lfree, fts_load)
18471         (fts_maxarglen, fts_padjust, fts_palloc, fts_sort, fts_stat)
18472         (fts_safe_changedir): Remove internal_function.
18473         * io/ftw.c (internal_function): Remove definition.
18474         (ftw_dir, process_entry, ftw_startup): Remove internal_function.
18475
18476 2017-08-31  Florian Weimer  <fweimer@redhat.com>
18477
18478         * inet/deadline.c (__deadline_current_time)
18479         (__deadline_from_timeval, __deadline_to_ms): Remove
18480         internal_function.
18481         * inet/getnameinfo.c (nrl_domainname): Likewise.
18482         * inet/getnetgrent_r.c (__internal_setnetgrent_reuse): Likewise.
18483         * inet/inet6_option.c (add_pad): Likewise.
18484         * inet/net-internal.h (__deadline_current_time)
18485         (__deadline_from_timeval, __deadline_to_ms): Likewise.
18486         * inet/rcmd.c (__checkhost_sa, __icheckuser): Likewise.
18487         * sysdeps/mach/hurd/if_index.c (__protocol_available): Likewise.
18488         * sysdeps/unix/sysv/linux/ifaddrs.c (map_newlink): Likewise.
18489
18490 2017-08-31  Joseph Myers  <joseph@codesourcery.com>
18491
18492         *  math/math.h [__USE_ISOC99] (NAN): Define directly here.  Do not
18493         include <bits/nan.h>.
18494         * math/Makefile (headers): Remove bits/nan.h.
18495         * bits/nan.h: Remove.
18496         * sysdeps/ieee754/bits/nan.h: Likewise.
18497         * sysdeps/mips/bits/nan.h: Likewise.
18498
18499         * math/math.h [__USE_ISOC99] (INFINITY): Define directly here.  Do
18500         not include <bits/inf.h>.
18501         * math/Makefile (headers): Remove bits/inf.h.
18502         * bits/inf.h: Remove.
18503         * sysdeps/ieee754/bits/inf.h: Likewise.
18504
18505         * math/math.h: Do not include bits/huge_val.h, bits/huge_valf.h,
18506         bits/huge_vall.h or bits/huge_val_flt128.h.
18507         (HUGE_VAL): Define directly here.
18508         [__USE_ISOC99] (HUGE_VALF): Likewise.
18509         [__USE_ISOC99] (HUGE_VALL): Likewise.
18510         [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
18511         (HUGE_VAL_F128): Likewise.
18512         * math/Makefile (headers): Remove bits/huge_val.h,
18513         bits/huge_valf.h, bits/huge_vall.h and bits/huge_val_flt128.h.
18514         * bits/huge_val.h: Remove.
18515         * bits/huge_val_flt128.h: Likewise.
18516         * bits/huge_valf.h: Likewise.
18517         * bits/huge_vall.h: Likewise.
18518         * sysdeps/ia64/bits/huge_vall.h: Likewise.
18519         * sysdeps/ieee754/bits/huge_val.h: Likewise.
18520         * sysdeps/ieee754/bits/huge_valf.h: Likewise.
18521         * sysdeps/m68k/m680x0/bits/huge_vall.h: Likewise.
18522         * sysdeps/sh/bits/huge_val.h: Likewise.
18523         * sysdeps/sparc/bits/huge_vall.h: Likewise.
18524         * sysdeps/x86/bits/huge_vall.h: Likewise.
18525
18526 2017-08-31  Florian Weimer  <fweimer@redhat.com>
18527
18528         * elf/dl-addr-obj.c (_dl_addr_inside_object): Remove
18529         internal_function.
18530         * elf/dl-cache.c (_dl_cache_libcmp, _dl_load_cache_lookup):
18531         Likewise.
18532         * elf/dl-debug.c (_dl_debug_initialize): Likewise.
18533         * elf/dl-deps.c (_dl_build_local_scope, _dl_map_object_deps): Likewise.
18534         * elf/dl-environ.c (_dl_next_ld_env_entry): Likewise.
18535         * elf/dl-execstack.c (_dl_make_stack_executable): Likewise.
18536         * elf/dl-fini.c (_dl_sort_fini): Likewise.
18537         * elf/dl-hwcaps.c (_dl_important_hwcaps): Likewise.
18538         * elf/dl-libc.c (dlerror_run): Likewise.
18539         * elf/dl-load.c (add_name_to_object, decompose_rpath)
18540         (_dl_init_paths, _dl_map_object, _dl_rtld_di_serinfo): Likewise.
18541         * elf/dl-lookup.c (add_dependency, _dl_debug_bindings)
18542         (_dl_lookup_symbol_x, _dl_setup_hash, _dl_debug_bindings):
18543         Likewise.
18544         * elf/dl-misc.c (_dl_sysdep_read_whole_file, _dl_name_match_p)
18545         (_dl_higher_prime_number, _dl_strtoul): Likewise.
18546         * elf/dl-object.c (_dl_add_to_namespace_list, _dl_new_object): Likewise.
18547         * elf/dl-profile.c (_dl_start_profile): Likewise.
18548         * elf/dl-reloc.c (_dl_try_allocate_static_tls)
18549         (_dl_allocate_static_tls, _dl_protect_relro, _dl_reloc_bad_type):
18550         Likewise.
18551         * elf/dl-support.c (_dl_aux_init, _dl_non_dynamic_init): Likewise.
18552         * elf/dl-sym.c (_dl_tls_symaddr, do_sym): Likewise.
18553         * elf/dl-sysdep.c (_dl_sysdep_start_cleanup, _dl_show_auxv): Likewise.
18554         * elf/dl-tls.c (_dl_next_tls_modid, _dl_count_modids)
18555         (_dl_determine_tlsoffset, allocate_dtv, _dl_get_tls_static_info)
18556         (_dl_allocate_tls_storage): Likewise.
18557         * elf/dl-version.c (match_symbol, _dl_check_map_versions)
18558         (_dl_check_all_versions): Likewise.
18559         * elf/dynamic-link.h (_dl_try_allocate_static_tls): Likewise.
18560         * elf/tlsdeschtab.h (_dl_make_tlsdesc_dynamic): Likewise.
18561         * elf/tst-_dl_addr_inside_object.c (_dl_addr_inside_object): Likewise.
18562         * sysdeps/aarch64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
18563         * sysdeps/aarch64/tlsdesc.c (_dl_unmap): Likewise.
18564         * sysdeps/arm/dl-lookupcfg.h (_dl_unmap): Likewise.
18565         * sysdeps/arm/dl-machine.h (elf_machine_load_address): Remove
18566         internal_function from __dl_start.
18567         * sysdeps/arm/dl-tlsdesc.h (_dl_unmap): Remove internal_function.
18568         * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): Likewise.
18569         * sysdeps/generic/ldsodefs.h (_dl_name_match_p)
18570         (_dl_higher_prime_number, _dl_strtoul, _dl_map_object)
18571         (_dl_map_object_deps, _dl_setup_hash, _dl_rtld_di_serinfo)
18572         (_dl_lookup_symbol_x, _dl_add_to_namespace_list, _dl_new_object)
18573         (_dl_protect_relro, _dl_reloc_bad_type, _dl_check_all_versions)
18574         (_dl_check_map_versions, _dl_sort_fini, _dl_debug_initialize)
18575         (_dl_init_paths, _dl_start_profile, _dl_show_auxv)
18576         (_dl_next_ld_env_entry, _dl_important_hwcaps)
18577         (_dl_load_cache_lookup, _dl_sysdep_read_whole_file)
18578         (_dl_sysdep_start_cleanup, _dl_next_tls_modid, _dl_count_modids)
18579         (_dl_determine_tlsoffset, _dl_get_tls_static_info)
18580         (_dl_allocate_static_tls, _dl_allocate_tls_storage)
18581         (_dl_addr_inside_object, _dl_non_dynamic_init, _dl_aux_init):
18582         Likewise.
18583         (struct rtld_global_ro): Remove internal_function from the
18584         _dl_lookup_symbol_x member.
18585         (_dl_symbol_value): Remove.  No longer defined anywhere.
18586         * sysdeps/i386/dl-lookupcfg.h (_dl_unmap): Remove
18587         internal_function.
18588         * sysdeps/i386/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
18589         * sysdeps/i386/tlsdesc.c (_dl_unmap): Likewise.
18590         * sysdeps/mach/hurd/dl-sysdep.c (_dl_show_auxv): Likewise.
18591         * sysdeps/nios2/dl-init.c (_dl_nios2_get_gp_value): Likewise.
18592         * sysdeps/tile/dl-lookupcfg.h (_dl_unmap): Likewise.
18593         * sysdeps/tile/dl-machine.h (_dl_after_load): Likewise.
18594         * sysdeps/tile/dl-runtime.c (_dl_after_load, _dl_unmap): Likewise.
18595         * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Likewise.
18596         * sysdeps/unix/sysv/linux/dl-vdso.h (_dl_vdso_vsym): Likewise.
18597         * sysdeps/x86_64/dl-lookupcfg.h (_dl_unmap): Likewise.
18598         * sysdeps/x86_64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
18599         * sysdeps/x86_64/tlsdesc.c (_dl_unmap): Likewise.
18600
18601 2017-08-31  Florian Weimer  <fweimer@redhat.com>
18602
18603         * gmon/gmon.c (write_hist, write_call_graph, write_bb_counts):
18604         Remove internal_function.
18605         * sysdeps/arm/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
18606         Likewise.
18607         * sysdeps/sparc/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
18608         Likewise.
18609
18610 2017-08-31  Florian Weimer  <fweimer@redhat.com>
18611
18612         * dlfcn/dlerror.c (_dlerror_run): Remove internal_function.
18613         * elf/dl-sym.c (_dl_vsym, _dl_sym): Likewise.
18614         * include/dlfcn.h (_dl_sym, _dl_vsym, _dlerror_run): Likewise.
18615
18616 2017-08-31  Florian Weimer  <fweimer@redhat.com>
18617
18618         * resolv/gai_misc.c (__gai_find_request, __gai_remove_request)
18619         (__gai_enqueue_request): Remove internal_function.
18620         * resolv/gai_misc.h (__gai_enqueue_request, __gai_find_request)
18621         (__gai_remove_request, __gai_notify, __gai_notify_only)
18622         (__gai_sigqueue): Likewise.
18623         * resolv/gai_notify.c (__gai_notify_only, __gai_notify): Likewise.
18624         * resolv/gai_sigqueue.c (__gai_sigqueue): Likewise.
18625         * resolv/inet_ntop.c (inet_ntop4, inet_ntop6): Likewise.
18626         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
18627         Likewise.
18628
18629 2017-08-31  Florian Weimer  <fweimer@redhat.com>
18630
18631         * dirent/scandir-tail.c (SCANDIR_TAIL): Remove internal_function.
18632         * include/dirent.h (__opendirat, __getdents, __getdents64)
18633         (__alloc_dir, __scandir_tail, __scandir64_tail): Likewise.
18634         * sysdeps/posix/opendir.c (__opendirat, __alloc_dir): Likewise.
18635         * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
18636         * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
18637         Likewise.
18638         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Likewise.
18639
18640 2017-08-31  Florian Weimer  <fweimer@redhat.com>
18641
18642         * sysdeps/unix/sysv/linux/getcwd.c (generic_getcwd): Remove
18643         internal_function.
18644         (GETCWD_RETURN_TYPE): Likewise.
18645
18646 2017-08-31  Florian Weimer  <fweimer@redhat.com>
18647
18648         * include/time.h (__tz_compute, __strptime_internal): Remove
18649         internal_function.
18650         * time/strptime_l.c (__strptime_internal): Likewise.
18651         * time/tzset.c (compute_change, update_vars, __tz_compute): Likewise.
18652
18653 2017-08-31  Florian Weimer  <fweimer@redhat.com>
18654
18655         * iconv/gconv.c (__gconv): Remove internal_function.
18656         * iconv/gconv_builtin.c (__gconv_get_builtin_trans): Likewise.
18657         * iconv/gconv_cache.c (__gconv_load_cache, find_module_idx)
18658         (find_module, __gconv_compare_alias_cache, __gconv_lookup_cache)
18659         (__gconv_release_cache): Likewise.
18660         * iconv/gconv_close.c (__gconv_close): Likewise.
18661         * iconv/gconv_conf.c (detect_conflict, insert_module, add_module)
18662         (read_conf_file, __gconv_get_path): Likewise.
18663         * iconv/gconv_db.c (derivation_lookup, add_derivation)
18664         (__gconv_release_step, gen_steps, increment_counter)
18665         (find_derivation, __gconv_compare_alias, __gconv_find_transform)
18666         (__gconv_close_transform, free_modules_db): Likewise.
18667         * iconv/gconv_dl.c (__gconv_find_shlib, __gconv_release_shlib):
18668         Likewise.
18669         * iconv/gconv_int.h (__gconv_open, __gconv_close, __gconv)
18670         (__gconv_find_transform, __gconv_lookup_cache)
18671         (__gconv_release_step, __gconv_load_cache, __gconv_get_path)
18672         (__gconv_close_transform, __gconv_release_cache)
18673         (__gconv_loaded_object, __gconv_release_shlib)
18674         (__gconv_compare_alias): Likewise.
18675         * iconv/gconv_open.c (__gconv_open): Likewise.
18676         * iconv/iconv_prog.c (print_known_names, add_known_names): Likewise.
18677         * iconv/iconvconfig.c (add_module): Likewise.
18678         * intl/dcigettext.c (plural_lookup, guess_category_value)
18679         (category_to_name, get_output_charset, _nl_find_msg): Likewise.
18680         * intl/eval-plural.h (plural_eval): Likewise.
18681         * intl/finddomain.c (_nl_find_domain): Likewise.
18682         * intl/gettextP.h (_nl_unload_domain, _nl_find_domain)
18683         (_nl_load_domain, _nl_find_msg): Likewise.
18684         (internal_function): Remove definition.
18685         * intl/loadinfo.h (internal_function): Likewise.
18686         * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Remove
18687         internal_function.
18688         * intl/localealias.c (internal_function): Remove definition.
18689         (read_alias_file): Remove internal_function.
18690         * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Likewise.
18691         * intl/plural-exp.h (internal_function): Remove definition.
18692         (FREE_EXPRESSION, EXTRACT_PLURAL_EXPRESSION): Remove
18693         internal_function.
18694         * intl/plural.c: Regenerate.
18695         * intl/plural.y (FREE_EXPRESSION): Remove internal_function.
18696         * locale/coll-lookup.c (__collidx_table_lookup)
18697         (__collseq_table_lookup): Likewise.
18698         * locale/coll-lookup.h (__collidx_table_lookup)
18699         (__collseq_table_lookup): Likewise.
18700         * locale/findlocale.c (_nl_find_locale, _nl_remove_locale): Likewise.
18701         * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
18702         * locale/loadlocale.c (_nl_intern_locale_data, _nl_load_locale)
18703         (_nl_unload_locale): Likewise.
18704         * locale/localeinfo.h (struct __locale_data): Remove
18705         internal_function from cleanup member.
18706         (_nl_find_locale, _nl_load_locale, _nl_unload_locale)
18707         (_nl_remove_locale, _nl_load_locale_from_archive)
18708         (_nl_intern_locale_data, _nl_get_era_entry, _nl_select_era_entry)
18709         (_nl_get_alt_digit, _nl_get_walt_digit, _nl_parse_alt_digit)
18710         (_nl_cleanup_time): Remove internal_function.
18711         * time/alt_digit.c (_nl_get_alt_digit, _nl_get_walt_digit)
18712         (_nl_parse_alt_digit): Likewise.
18713         * time/era.c (_nl_init_era_entries, _nl_get_era_entry)
18714         (_nl_select_era_entry): Likewise.
18715         * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
18716         * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv, __wcsmbs_clone_conv)
18717         (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
18718         * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv, __wcsmbs_clone_conv)
18719         (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
18720
18721 2017-08-31  Florian Weimer  <fweimer@redhat.com>
18722
18723         * rt/aio_sigqueue.c (__aio_sigqueue): Remove internal_function.
18724         * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
18725         * sysdeps/pthread/aio_misc.c (__aio_free_request, __aio_find_req)
18726         (__aio_find_req_fd, __aio_remove_request, __aio_enqueue_request):
18727         Likewise.
18728         * sysdeps/pthread/aio_misc.h (__aio_enqueue_request)
18729         (__aio_find_req, __aio_find_req_fd, __aio_free_request)
18730         (__aio_notify, __aio_notify_only, __aio_sigqueue): Likewise.
18731         * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
18732         Likewise.
18733         * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue): Likewise.
18734
18735 2017-08-31  Florian Weimer  <fweimer@redhat.com>
18736
18737         * misc/getttyent.c (skip, value): Remove internal_function.
18738         * misc/syslog.c (openlog_internal): Likewise.
18739         * misc/tsearch.c (trecurse, tdestroy_recurse): Likewise.
18740
18741 2017-08-31  Florian Weimer  <fweimer@redhat.com>
18742
18743         * include/nss.h (__nss_valid_field, __nss_valid_list_field)
18744         (__nss_rewrite_field): Remove internal_function.
18745         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
18746         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
18747         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
18748         * nss/nsswitch.c (nss_parse_file, nss_getline)
18749         (nss_parse_service_list, nss_new_service): Likewise.
18750         * nss/rewrite_field.c (__nss_rewrite_field): Likewise.
18751         * nss/valid_field.c (__nss_valid_field): Likewise.
18752         * nss/valid_list_field.c (__nss_valid_list_field): Likewise.
18753
18754 2017-08-31  Florian Weimer  <fweimer@redhat.com>
18755
18756         * malloc/arena.c (__malloc_fork_lock_parent)
18757         (__malloc_fork_unlock_parent, __malloc_fork_unlock_child)
18758         (next_env_entry, new_heap, heap_trim, arena_get2): Remove
18759         internal_function from defintions.
18760         * malloc/hooks.c (mem2mem_check, mem2chunk_check): Likewise.
18761         * malloc/malloc-internal.h (__malloc_fork_lock_parent)
18762         (__malloc_fork_unlock_parent, __malloc_fork_unlock_child): Remove
18763         internal_function from declarations.
18764         * malloc/malloc.c (internal_function): Do not define.
18765         (mem2mem_check): Remove internal_function from declaration.
18766         (munmap_chunk, mremap_chunk): Remove internal_function.
18767         * malloc/mtrace.c (tr_where): Likewise.
18768
18769 2017-08-31  Florian Weimer  <fweimer@redhat.com>
18770
18771         * include/rpc/pmap_clnt.h (__get_socket): Remove
18772         internal_function.
18773         * sunrpc/auth_des.c (synchronize): Likewise.
18774         * sunrpc/auth_unix.c (marshal_new_auth): Likewise.
18775         * sunrpc/clnt_perr.c (auth_errmsg): Likewise.
18776         * sunrpc/des_impl.c (des_encrypt, des_set_key): Likewise.
18777         * sunrpc/key_call.c (key_call_keyenvoy, key_call_socket)
18778         (key_call): Likewise.
18779         * sunrpc/pm_getport.c (__get_socket): Likewise.
18780         * sunrpc/pmap_rmt.c (getbroadcastnets): Likewise.
18781         * sunrpc/svc_unix.c (makefd_xprt): Likewise.
18782         * sunrpc/svc_tcp.c (makefd_xprt): Likewise.
18783         * sunrpc/svcauth_des.c (cache_init, cache_spot, cache_ref)
18784         (invalidate): Likewise.
18785         * sunrpc/xcrypt.c (hexval, hex2bin, bin2hex): Likewise.
18786         * sunrpc/xdr_rec.c (fix_buf_size, skip_input_bytes, flush_out)
18787         (set_input_fragment, get_input_bytes): Likewise.
18788
18789 2017-08-31  Florian Weimer  <fweimer@redhat.com>
18790
18791         * malloc/malloc.c (_int_free): Remove locked variable and related
18792         asserts.
18793
18794 2017-08-31  H.J. Lu  <hongjiu.lu@intel.com>
18795
18796         [BZ #22051]
18797         * Makerules (build-module-helper-objlist): Filter out
18798         $(elf-objpfx)sofini.os.
18799         (build-shlib-objlist): Append $(elf-objpfx)sofini.os if it is
18800         needed.
18801
18802 2017-08-31  Florian Weimer  <fweimer@redhat.com>
18803
18804         * libio/fcloseall.c: Assume weak_alias is defined.
18805         * libio/feof.c: Likewise.
18806         * libio/fileno.c: Likewise.
18807         * libio/fileops.c: Assume _LIBC, errno, __set_errno are defined.
18808         (_POSIX_SOURCE, open, lseek, read, write): Remove macro
18809         definitions.
18810         (_IO_file_open): Call __open directly.
18811         (_IO_new_file_sync): Assume ESPIPE is defined.
18812         (_IO_file_seekoff_maybe_mmap): Call __read directly.
18813         (_IO_new_file_write): Call __write directly.
18814         * libio/ftello.c (__ftello): Assume EIO, EOVERFLOW are defined.
18815         * libio/ftello64.c (__ftello64): Assume EIO is defined.
18816         * libio/genops.c: Assume _LIBC is defined.
18817         (save_for_backup): Remove internal_function.
18818         * libio/getc.c: Assume weak_alias is defined.
18819         * libio/getwc.c: Likewise.
18820         * libio/iofclose.c: Assume _LIBC is defined.
18821         * libio/iofdopen.c: Likewise.
18822         (_IO_fcntl): Remove macro definition.
18823         (_IO_new_fdopen): Assume F_GETFL, F_SETFL, O_ACCMODE are defined.
18824         Call __fcntl directly.
18825         * libio/iofflush.c: Assume weak_alias is defined.
18826         * libio/iofgetpos.c (_IO_new_fgetpos): Assume EIO, EOVERFLOW are
18827         defined.
18828         * libio/iofgetpos64.c (_IO_new_fgetpos64): Assume EIO is defined.
18829         * libio/iofgets.c: Likewise.
18830         * libio/iofopen.c: Assume _LIBC is defined.
18831         * libio/iofopen64.c: Assume _LIBC, weak_alias are defined.
18832         * libio/iofputs.c: Assume weak_alias is defined.
18833         * libio/iofread.c: Likewise.
18834         * libio/iofsetpos.c (_IO_new_fsetpos): Assume EIO is defined.
18835         * libio/iofsetpos64.c (_IO_new_fsetpos64): Likewise.
18836         * libio/ioftell.c: Assume weak_alias is defined.
18837         (_IO_ftell): Assume EIO, EOVERFLOW are defined.
18838         * libio/iofwide.c: Assume _LIBC is defined.
18839         (_IO_fwide): Drop SHARED conditional because it is implied by
18840         SHLIB_COMPAT.
18841         * libio/iofwrite.c: Assume weak_alias is defined.
18842         * libio/iogetdelim.c: Likewise.
18843         * libio/iogets.c: Assume _LIBC, weak_alias are defined.
18844         * libio/iogetwline.c (wmemcpy): Remove macro definition.
18845         (_IO_getwline): Call __wmemcpy directly.
18846         * libio/iopopen.c: Assume _LIBC is defined.
18847         (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
18848         (_IO_close): Remove macro definitions.
18849         (_IO_new_proc_open): Call __fork, __dup2, __close_nocancel, execl,
18850         _exit directly.
18851         (_IO_new_proc_close): Call __close_nocancel, __waitpid_nocancel
18852         directly.
18853         * libio/ioputs.c: Assume weak_alias is defined.
18854         * libio/ioseekoff.c: Assume errno, __set_errno are defined.
18855         * libio/iosetbuffer.c: Assume weak_alias is defined.
18856         * libio/iosetvbuf.c: Likewise.
18857         * libio/ioungetc.c: Likewise.
18858         * libio/libioP.h: Assume _LIBC, __GLIBC__, libc_hidden_proto,
18859         libc_hidden_def, libc_hidden_weak, NULL are defined.
18860         (mmap, munmap, ftruncate, OS_FSTAT): Remove macro definitions.
18861         * libio/oldfilepos.c: Assume _LIBC, errno, __set_errno are
18862         defined.
18863         (_POSIX_SOURCE, open, lseek, read, write): Remove macro
18864         definitions.
18865         (_IO_old_file_init_internal): Drop SHARED conditional because it
18866         is implied by SHLIB_COMPAT.
18867         (_IO_old_file_fopen): Call __open directly.
18868         (_IO_old_file_sync): Assume ESPIPE is defined.
18869         (_IO_old_file_write): Call __write directly.
18870         * libio/oldfdopen.c (_IO_fcntl): Remove macro definition.
18871         (_IO_old_fdopen): Assume F_GETFL, O_ACCMODE, F_SETFL are defined.
18872         Call __fcntl directly.
18873         * libio/oldiofgetpos.c: Assume weak_alias is defined.
18874         (_IO_old_fgetpos): Assume EIO is defined.
18875         * libio/oldiofgetpos64.c: Assume weak_alias is defined.
18876         (_IO_old_fgetpos64): Assume EIO is defined.
18877         * libio/oldiofsetpos.c: Assume weak_alias is defined.
18878         (_IO_old_fsetpos): Assume EIO is defined.
18879         * libio/oldiofsetpos64.c: Assume weak_alias is defined.
18880         (_IO_old_fsetpos64): Assume EIO is defined.
18881         * libio/oldiopopen.c:  Assume _LIBC is defined.
18882         (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
18883         (_IO_close): Remove macro definitions.
18884         (_IO_old_proc_open): Call __pipe, __close, __dup2, execl, _exit
18885         directly.
18886         (_IO_old_proc_close): Call __close, __waitpid directly.
18887         * libio/put.c: Assume weak_alias is defined.
18888         * libio/stdfiles.c: Assume _LIBC is defined.
18889         * libio/stdio.c: Likewise.
18890         * libio/wfileops.c: Likewise.
18891         (_IO_wfile_sync): Assume ESPIPE is defined.
18892         * libio/wgenops.c: Assume _LIBC is defined.
18893         (save_for_wbackup): Remove internal_function.
18894
18895 2017-08-31  Florian Weimer  <fweimer@redhat.com>
18896
18897         * malloc/malloc.c (top_check): Change return type to void.  Remove
18898         internal_function.
18899         * malloc/hooks.c (top_check): Likewise.
18900         (malloc_check, realloc_check, memalign_check): Adjust.
18901
18902 2017-08-30  Joseph Myers  <joseph@codesourcery.com>
18903
18904         [BZ #21457]
18905         * sysdeps/arm/sys/ucontext.h: Do not include <bits/sigcontext.h>.
18906         * sysdeps/generic/sys/ucontext.h: Add comment about use of struct
18907         sigcontext and namespace requirements.
18908         * sysdeps/i386/sys/ucontext.h: Do not include <bits/sigcontext.h>.
18909         * sysdeps/m68k/sys/ucontext.h: Likewise.
18910         * sysdeps/mips/sys/ucontext.h: Likewise.  Include <bits/types.h>.
18911         * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h: Do not include
18912         <bits/sigcontext.h>.
18913         (__ctx): Define earlier.
18914         (mcontext_t): Define structure contents rather than using struct
18915         sigcontext.
18916         * sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym (oEXTENSION): Use
18917         __glibc_reserved1 instead of __reserved.
18918         * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h: Do not include
18919         <bits/sigcontext.h>.
18920         (__ctx): Define earlier.
18921         (mcontext_t): Define structure contents rather than using struct
18922         sigcontext.
18923         * sysdeps/unix/sysv/linux/alpha/ucontext-offsets.sym: Use
18924         mcontext_t instead of struct sigcontext.
18925         * sysdeps/unix/sysv/linux/arm/sys/ucontext.h: Do not include
18926         <bits/sigcontext.h>.
18927         (__ctx): Define earlier.
18928         (mcontext_t): Define structure contents rather than using struct
18929         sigcontext.
18930         * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h: Do not include
18931         <bits/sigcontext.h>.
18932         (__ctx): Define earlier.
18933         (mcontext_t): Define structure contents rather than using struct
18934         sigcontext.
18935         * sysdeps/unix/sysv/linux/ia64/makecontext.c (__makecontext): Use
18936         mcontext_t instead of struct sigcontext.
18937         * sysdeps/unix/sysv/linux/ia64/sigcontext-offsets.sym: Use
18938         mcontext_t instead of struct sigcontext.
18939         * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: Do not include
18940         <bits/sigcontext.h>.
18941         (__ctx): New macro.
18942         (struct __ia64_fpreg_mcontext): New type.
18943         (mcontext_t): Define structure contents rather than using struct
18944         sigcontext.
18945         (_SC_GR0_OFFSET): Use mcontext_t instead of struct sigcontext.
18946         (uc_sigmask): Define using __ctx.
18947         (uc_stack): Likewise.
18948         * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Include
18949         <bits/sigcontext.h>.
18950         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
18951         * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h: Do not include
18952         <bits/sigcontext.h>.
18953         * sysdeps/unix/sysv/linux/microblaze/sys/ucontext.h: New file.
18954         * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Do not include
18955         <bits/sigcontext.h>.
18956         * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h: Do not include
18957         <bits/sigcontext.h>.
18958         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Do not include
18959         <bits/sigcontext.h>.
18960         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Do not include
18961         <bits/sigcontext.h>.
18962         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: Do not include
18963         <bits/sigcontext.h>.
18964         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h: Do not include
18965         <bits/sigcontext.h>.
18966         * sysdeps/unix/sysv/linux/tile/sys/ucontext.h: Do not include
18967         <bits/sigcontext.h>.
18968         (__ctx): Define earlier.
18969         (mcontext_t): Define structure contents rather than using struct
18970         sigcontext.
18971         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: Do not include
18972         <bits/sigcontext.h>.  Include <bits/types.h>.
18973         * conform/Makefile (test-xfail-XPG42/signal.h/conform): Remove.
18974         (test-xfail-XPG42/sys/wait.h/conform): Likewise.
18975         (test-xfail-XPG42/ucontext.h/conform): Likewise.
18976         (test-xfail-UNIX98/signal.h/conform): Likewise.
18977         (test-xfail-UNIX98/sys/wait.h/conform): Likewise.
18978         (test-xfail-UNIX98/ucontext.h/conform): Likewise.
18979         (test-xfail-XOPEN2K/signal.h/conform): Likewise.
18980         (test-xfail-XOPEN2K/sys/wait.h/conform): Likewise.
18981         (test-xfail-XOPEN2K/ucontext.h/conform): Likewise.
18982         (test-xfail-POSIX2008/signal.h/conform): Likewise.
18983         (test-xfail-POSIX2008/sys/wait.h/conform): Likewise.
18984         (test-xfail-XOPEN2K8/signal.h/conform): Likewise.
18985         (test-xfail-XOPEN2K8/sys/wait.h/conform): Likewise.
18986
18987 2017-08-30  Florian Weimer  <fweimer@redhat.com>
18988
18989         * malloc/dynarray_emplace_enlarge.c
18990         (__libc_dynarray_emplace_enlarge): Set errno on overflow.
18991         * malloc/dynarray_resize.c (__libc_dynarray_resize): Likewise.
18992         * malloc/tst-dynarray.c (test_long_overflow): New function.
18993         (do_test): Call it.
18994
18995 2017-08-30  Florian Weimer  <fweimer@redhat.com>
18996
18997         * malloc/malloc.c (ARENA_CORRUPTION_BIT, arena_is_corrupt)
18998         (set_arena_corrupt): Remove definitions.
18999         (mtrim): Do not check for corrupt arena.
19000         * malloc/arena.c (arena_lock, reused_arena, arena_get_retry):
19001         Likewise.
19002
19003 2017-08-30  Florian Weimer  <fweimer@redhat.com>
19004
19005         [BZ #21754]
19006         * malloc/arena.c (TUNABLE_CALLBACK set_mallopt_check): Do not set
19007         check_action.
19008         (ptmalloc_init): Do not set or use check_action.
19009         * malloc/hooks.c (malloc_check_get_size, realloc_check): Adjust
19010         call to malloc_printerr.  Remove return statement.
19011         (free_check): Likewise.  Remove arena unlock.
19012         (top_check): Update comment.  Adjust call to malloc_printerr.
19013         Remove heap repair code.
19014         * malloc/malloc.c (unlink): Adjust calls to malloc_printerr.
19015         (DEFAULT_CHECK_ACTION, check_action): Remove definitions.
19016         (sysmalloc): Adjust call to malloc_printerr.
19017         (munmap_chunk, __libc_realloc): Likewise.  Remove return
19018         statement.
19019         (_int_malloc, int_realloc): Likewise.  Remove errstr variable.
19020         Remove errout label and corresponding gotos.
19021         (_int_free): Likewise.  Remove arena unlock.
19022         (do_set_mallopt_check): Do not set check_action.
19023         (malloc_printerr): Adjust parameter list.  Do not mark arena as
19024         corrupt.
19025         * manual/memory.texi (Malloc Tunable Parameters): Remove TODO
19026         comment.
19027         * manual/probes.texi (Memory Allocation Probes): Remove
19028         memory_mallopt_check_action.
19029
19030 2017-08-30  Steve Ellcey  <sellcey@cavium.com>
19031
19032         * sysdeps/unix/sysv/linux/aarch64/makecontext.c (__makecontext):
19033         Use pointer to uint64_t instead of long int for sp.
19034
19035 2017-08-30  Florian Weimer  <fweimer@redhat.com>
19036
19037         [BZ #21754]
19038         * malloc/malloc.c (malloc_printerr): Always terminate the process,
19039         without printing a backtrace.  Do not leak any information in the
19040         error message.
19041         * manual/memory.texi (Heap Consistency Checking): Update.
19042         * manual/tunables.texi (Memory Allocation Tunables): Likewise.
19043
19044 2017-08-30  Florian Weimer  <fweimer@redhat.com>
19045
19046         Do not scale NPTL tests with available number of CPUs.
19047         * nptl/tst-cond16.c (count): Set to constant value of 8.
19048         * nptl/tst-cond18.c (count): Likewise.
19049
19050 2017-08-29  Joseph Myers  <joseph@codesourcery.com>
19051
19052         [BZ #22035]
19053         * sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__inline_functions):
19054         Define to take a second argument that is a macro that
19055         concatentates a suffix, not the suffix itself.
19056         (__CONCAT_d): New macro.
19057         (__CONCAT_f): Likewise.
19058         (__CONCAT_l): Likewise.
19059
19060 2017-08-29  Paul Pluzhnikov  <ppluzhnikov@google.com>
19061
19062         * stdlib/tst-atexit-common.c (do_test): Test handler inheritance
19063         by child.
19064
19065 2017-08-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
19066             Aurelien Jarno  <aurelien@aurel32.net>
19067             Maciej W. Rozycki  <macro@imgtec.com>
19068
19069         [BZ #21956]
19070         * sysdeps/unix/sysv/linux/mips/mips32/mips16/Makefile
19071         [subdir = misc] (sysdep_routines): Remove `mips16-syscall5',
19072         `mips16-syscall6' and `mips16-syscall7'.
19073         (CFLAGS-mips16-syscall5.c, CFLAGS-mips16-syscall6.c)
19074         (CFLAGS-mips16-syscall7.c): Remove.
19075         * sysdeps/unix/sysv/linux/mips/mips32/mips16/Versions (libc):
19076         Remove `__mips16_syscall5', `__mips16_syscall6' and
19077         `__mips16_syscall7'.
19078         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall0.c
19079         (__mips16_syscall0): Rename `__mips16_syscall_return' to
19080         `__mips_syscall_return'.
19081         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall1.c
19082         (__mips16_syscall1): Likewise.
19083         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall2.c
19084         (__mips16_syscall2): Likewise.
19085         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall3.c
19086         (__mips16_syscall3): Likewise.
19087         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall4.c
19088         (__mips16_syscall4): Likewise.
19089         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall5.c:
19090         Remove.
19091         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall6.c:
19092         Remove.
19093         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall7.c:
19094         Remove.
19095         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall.h
19096         (__mips16_syscall5): Expand to `__mips_syscall5' rather than
19097         `__mips16_syscall5'.  Remove prototype.
19098         (__mips16_syscall6): Expand to `__mips_syscall6' rather than
19099         `__mips16_syscall6'.  Remove prototype.
19100         (__mips16_syscall7): Expand to `__mips_syscall7' rather than
19101         `__mips16_syscall7'.  Remove prototype.
19102         (__nomips16, __mips16_syscall_return): Move to...
19103         * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h
19104         (__nomips16, __mips_syscall_return): ... here.
19105         [__mips16] (INTERNAL_SYSCALL_NCS): Rename
19106         `__mips16_syscall_return' to `__mips_syscall_return'.
19107         [__mips16] (INTERNAL_SYSCALL_MIPS16): Pass `number' to
19108         `internal_syscall##nr'.
19109         [!__mips16] (INTERNAL_SYSCALL): Pass `SYS_ify (name)' to
19110         `internal_syscall##nr'.
19111         (FORCE_FRAME_POINTER): Remove.
19112         (__mips_syscall5): New prototype.
19113         (internal_syscall5): Rewrite to call `__mips_syscall5'.
19114         (__mips_syscall6): New prototype.
19115         (internal_syscall6): Rewrite to call `__mips_syscall6'.
19116         (__mips_syscall7): New prototype.
19117         (internal_syscall7): Rewrite to call `__mips_syscall7'.
19118         * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall5.S: New file.
19119         * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall6.S: New file.
19120         * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall7.S: New file.
19121         * sysdeps/unix/sysv/linux/mips/mips32/Makefile [subdir = misc]
19122         (sysdep_routines): Add libc-do-syscall.
19123         * sysdeps/unix/sysv/linux/mips/mips32/Versions (libc): Add
19124         `__mips_syscall5', `__mips_syscall6' and `__mips_syscall7'.
19125
19126 2017-08-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
19127
19128         [BZ #21672]
19129         * nptl/allocatestack.c [_STACK_GROWS_DOWN] (setup_stack_prot):
19130         Set to use !NEED_SEPARATE_REGISTER_STACK as well.
19131         (advise_stack_range): New function.
19132         * nptl/pthread_create.c (START_THREAD_DEFN): Move logic to mark
19133         stack non required to advise_stack_range at allocatestack.c
19134
19135 2017-08-29  Szabolcs Nagy  <szabolcs.nagy@arm.com>
19136
19137         * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Use __uint64_t.
19138
19139 2017-08-29  Florian Weimer  <fweimer@redhat.com>
19140
19141         [BZ #22026]
19142         * iconv/gconv_db.c (gen_steps): Decrement step_cnt after resetting
19143         __end_fct.  Mangle __end_fct after setting it to NULL.
19144         * iconv/Makefile (tests): Add tst-gconv-init-failure.
19145         (modules-names, modules-names-tests): Add
19146         tst-gconv-init-failure-mod.
19147         (gconv-modules): New target.
19148         (tst-gconv-init-failure-mod.so): Link against libsupport.
19149         (tst-gconv-init-failure): Depend on gconv-modules,
19150         tst-gconv-init-failure-mod.so.
19151         * iconv/tst-gconv-init-failure-mod.c: New file.
19152         * iconv/tst-gconv-init-failure.c: Likewise.
19153         * iconv/test-gconv-modules: Likewise.
19154
19155 2017-08-29  Florian Weimer  <fweimer@redhat.com>
19156
19157         [BZ #22025]
19158         * iconv/gconv_db.c (free_derivation): Remove redundant
19159         parentheses.
19160         (gen_steps): Unconditionally mangle __btowc_fct after
19161         initialization.
19162         (increment_counter): Likewise.  Do not call init_fct for internal
19163         modules.
19164
19165 2017-08-29  Joseph Myers  <joseph@codesourcery.com>
19166
19167         [BZ #22028]
19168         * math/math.h [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
19169         (_MSUF_): Remove macro.
19170         [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (_MSUFTO_):
19171         Likewise.
19172         [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
19173         (__REDIRFROM_X): New macro.
19174         [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (__REDIRTO_X):
19175         Likewise.
19176         * math/bits/math-finite.h (__REDIRFROM_X): Remove macro.
19177         (__REDIRTO_X): Likewise.
19178         (__MATH_REDIRCALL): Do not pass _MSUF_ or _MSUFTO_ macro
19179         arguments.
19180         (__MATH_REDIRCALL_2): Likewise.
19181         (__MATH_REDIRCALL_INTERNAL): Likewise.
19182         (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
19183         (__REDIRFROM (gamma, , _MSUF_)): Likweise.
19184         (__REDIRFROM (__gamma, _r_finite, _MSUF_)): Likewise.
19185         (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
19186         * math/test-finite-macros.c: New file.
19187         * math/Makefile (tests): Add test-finite-macros.
19188         (CFLAGS-test-finite-macros.c): New variable.
19189
19190 2017-08-29  Patsy Franklin  <pfrankli@redhat.com>
19191             Jeff Law  <law@redhat.com>
19192
19193         [BZ #22025]
19194         Mangle NULL pointers in iconv/gconv.
19195         * iconv/gconv_cache.c (find_module): Demangle init_fct before
19196         checking for NULL. Mangle __btowc_fct if init_fct is non-NULL.
19197         * iconv/gconv_db.c (free_derivation): Check that __shlib_handle
19198         is non-NULL before demangling the end_fct.  Check for NULL
19199         end_fct after demangling.
19200         (__gconv_release_step): Demangle the end_fct before checking
19201         it for NULL.   Remove assert on __shlibc_handle != NULL.
19202         (gen_steps): Don't check btowc_fct for NULL before mangling.
19203         Demangle init_fct before checking for NULL.
19204         (increment_counter): Likewise.
19205         * gconv_dl.c (__gconv_find_shlib): Don't check init_fct or
19206         end_fct for NULL before mangling.
19207         * wcsmbs/btowc.c (__btowc): Demangle btowc_fct before checking
19208         for NULL.
19209
19210 2017-08-29  Akhilesh Kumar  <akhilesh.k@samsung.com>
19211
19212         [BZ #21971]
19213         * locale/iso-639.def: add Morisyen.
19214
19215 2017-08-28  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
19216
19217         [BZ #21930]
19218         * math/math.h [defined __cplusplus && defined __SUPPORT_SNAN__]
19219         (iszero): New C++ implementation that does not use
19220         fpclassify/__MATH_TG/__builtin_types_compatible_p, when
19221         signaling nans are enabled, since __builtin_types_compatible_p
19222         is a C-only feature.
19223         * math/test-math-iszero.cc: When __HAVE_DISTINCT_FLOAT128 is
19224         defined, include ieee754_float128.h for access to the union and
19225         member ieee854_float128.ieee.
19226         [__HAVE_DISTINCT_FLOAT128] (do_test): Call check_float128.
19227         [__HAVE_DISTINCT_FLOAT128] (check_float128): New function.
19228         * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
19229         (CXXFLAGS-test-math-iszero.cc): Add -mfloat128 to the build
19230         options of test-math-zero on powerpc64le.
19231
19232 2017-08-28  H.J. Lu  <hongjiu.lu@intel.com>
19233
19234         * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
19235         Change double to float.
19236
19237 2017-08-28  Joseph Myers  <joseph@codesourcery.com>
19238
19239         * math/math-svid-compat.h [!__ASSEMBLER__]: Make code
19240         unconditional.
19241         * sysdeps/ieee754/s_lib_version.c [!defined SHARED]: Remove
19242         conditional code; define contents only for [LIBM_SVID_COMPAT].
19243
19244 2017-08-28  Florian Weimer  <fweimer@redhat.com>
19245
19246         * sysdeps/unix/sysv/linux/aarch64/Makefile (abi-lp64-options)
19247         (abi-lp64_be-options): Remove.
19248         * sysdeps/unix/sysv/linux/arm/Makefile (abi-soft-options)
19249         (abi-hard-options): Likewise.
19250         * sysdeps/unix/sysv/linux/mips/Makefile(abi-o32_soft-options)
19251         (abi-o32_hard-options, abi-o32_soft_2008-options)
19252         (abi-o32_hard_2008-options, abi-n32_soft-options)
19253         (abi-n32_hard-options, abi-n32_soft_2008-options)
19254         (abi-n32_hard_2008-options, abi-n64_soft-options)
19255         (abi-n64_hard-options, abi-n64_soft_2008-options)
19256         (abi-n64_hard_2008-options): Likewise.
19257         * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-32-options)
19258         (abi-64-v1-options, abi-64-v2-options): Likewise.
19259         * sysdeps/unix/sysv/linux/s390/Makefile (abi-32-options)
19260         (abi-64-options): Likewise.
19261         * sysdeps/unix/sysv/linux/sparc/Makefile (abi-32-options)
19262         (abi-64-options): Likewise.
19263         * sysdeps/unix/sysv/linux/tile/tilegx/Makefile (abi-32-options)
19264         (abi-64-options): Likewise.
19265         * sysdeps/unix/sysv/linux/x86/Makefile (abi-32-options)
19266         (abi-64-options, abi-x32-options): Likewise.
19267
19268 2017-08-28  Florian Weimer  <fweimer@redhat.com>
19269
19270         Store supported list of SYS_* system calls in the source tree.
19271         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
19272         (bits/syscall.h): Generate from list file.
19273         [$(subdir) = misc] (before-compile): Add bits/syscall.h.
19274         [$(subdir) = misc] (tests): Add tst-syscall-list.
19275         [$(subdir) = misc] (tests-special): Add tst-syscall-list.out
19276         [$(subdir) = misc] (tst-syscall-list-macros.list)
19277         [$(subdir) = misc] (tst-syscall-list-nr.list)
19278         (tst-syscall-list-sys.list): Helper targets for new
19279         tst-syscall-list test.
19280         [$(subdir) = misc] (tst-syscall-list.out): Run test script
19281         tst-syscall-list.sh.
19282         [$(subdir) = misc] (bits/syscall%h, bits/syscall%d): Remove
19283         target. Do not include bits/syscall.d.
19284         [$(subdir) = misc] (generated): Do not update.
19285         * sysdeps/unix/sysv/linux/syscall-names.list: New file.
19286         * sysdeps/unix/sysv/linux/gen-syscall-h.awk: Likewise.
19287         * sysdeps/unix/sysv/linux/filter-nr-syscalls.awk: Likewise.
19288         * sysdeps/unix/sysv/linux/tst-syscall-list.sh: Likewise.
19289
19290 2017-08-27  Paul Pluzhnikov  <ppluzhnikov@google.com>
19291
19292         * stdlib/Makefile (tst-atexit, tst-at_quick_exit): New tests.
19293         (tst-cxa_atexit, tst-on_exit): Likewise.
19294         * stdlib/Makefile (tests): Add tst-atexit, tst-at_quick_exit,
19295         tst-cxa_atexit, and tst-on_exit.
19296         * stdlib/tst-atexit-common.c: New file.
19297         * stdlib/tst-atexit.c: New file.
19298         * stdlib/tst-at_quick_exit.c: New file.
19299         * stdlib/tst-cxa_atexit.c: New file.
19300         * stdlib/tst-on_exit.c: New file.
19301
19302 2017-08-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
19303
19304         * sysdeps/mach/hurd/bits/sysmacros.h: New file.
19305         * mach/stack_chk_fail_local.c: New file.
19306         * hurd/stack_chk_fail_local.c: New file.
19307         * mach/Machrules ($(interface-library)-routines): Add
19308         stack_chk_fail_local.
19309         * mach/Makefile (CFLAGS-mach_init.o, CFLAGS-RPC_vm_statistics.o,
19310         CFLAGS-RPC_vm_map.o, CFLAGS-RPC_vm_protect.o,
19311         CFLAGS-RPC_i386_set_gdt.o, CFLAGS-RPC_i386_set_ldt.o,
19312         CFLAGS-RPC_task_get_special_port.o): Add $(no-stack-protector).
19313         * hurd/Makefile (CFLAGS-hurdstartup.o,
19314         CFLAGS-RPC_exec_startup_get_info.o): Add $(no-stack-protector).
19315
19316 2017-08-25  H.J. Lu  <hongjiu.lu@intel.com>
19317
19318         * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
19319         (index_cpu_*, index_arch_*): Removed.
19320
19321 2017-08-25  Szabolcs Nagy  <szabolcs.nagy@arm.com>
19322
19323         * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h (elf_greg_t):
19324         Use uint64_t instead of unsigned long.
19325
19326 2017-08-25  Joseph Myers  <joseph@codesourcery.com>
19327
19328         * math/tgmath.h [__HAVE_FLOAT128]: Change conditional to
19329         [__HAVE_DISTINCT_FLOAT128].
19330
19331         * math/math.h (_MSUFTO_): Define and undefine for each inclusion
19332         of <bits/math-finite.h>.
19333         (__MATH_DECLARING_LDOUBLE): Do not define and undefine for each
19334         inclusion of <bits/math-finite.h>.
19335         * math/bits/math-finite.h (__REDIRTO_X): Do not define
19336         conditionally on [__MATH_DECLARING_LDOUBLE && defined
19337         __NO_LONG_DOUBLE_MATH].
19338         (__MATH_REDIRCALL): Use _MSUFTO_ in __REDIRTO call.
19339         (__MATH_REDIRCALL_2): Likewise.
19340         (__MATH_REDIRCALL_INTERNAL): Likewise.
19341         (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
19342         (__REDIRFROM (gamma, , _MSUF_)): Likewise.
19343         (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
19344
19345         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-power5.S:
19346         Remove file.
19347         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-ppc32.S:
19348         Likewise.
19349         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat.c:
19350         Likewise.
19351         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-power5.S:
19352         Likewise.
19353         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-ppc32.S:
19354         Likewise.
19355         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat.c:
19356         Likewise.
19357         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
19358         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
19359         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
19360         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
19361         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
19362         (libm-sysdep-routines): Remove w_sqrt_compat-power5,
19363         w_sqrt_compat-ppc32, w_sqrtf_compat-power5 and
19364         w_sqrtf_compat-ppc32.
19365
19366 2017-08-24  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
19367
19368         * math/math.h [defined __cplusplus] (issignaling): In the long
19369         double case, call __issignalingl only if __NO_LONG_DOUBLE_MATH
19370         is not defined.  Call __issignaling, otherwise.
19371
19372 2017-08-24  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
19373
19374         * sysdeps/unix/make-syscalls.sh: Remove cancellable tagging for
19375         syscall definitions and replace __builtin_expect with __glibc_likely.
19376         * sysdeps/unix/syscall-template.S: Update comment about cancellable
19377         syscall.
19378          (SYSCALL_CANCELLABLE): Removedefinition
19379         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (PSEUDO): Remove
19380         definition.
19381         (PSEUDO_END): Likewise.
19382         [IS_IN (libpthread)] (CENABLE): Likewise.
19383         [IS_IN (libpthread)] (CDISABLE): Likewise.
19384         [IS_IN (libc)] (CENABLE): Likewise.
19385         [IS_IN (libc)] (CENABLE): Likewise.
19386         [IS_IN (librt)] (CDISABLE): Likewise.
19387         [IS_IN (librt)] (CDISABLE): Likewise.
19388         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
19389         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (PSEUDO): Remove
19390         definition.
19391         (PSEUDO_END): Likewise.
19392         [IS_IN (libpthread)] (__local_enable_asynccancel): Likewise.
19393         [IS_IN (libpthread)] (__local_disable_asynccancel): Likewise.
19394         [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
19395         [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
19396         [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
19397         [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
19398         (CENABLE): Likewise.
19399         (CDISABLE): Likewise.
19400         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
19401         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (PSEUDO): Remove
19402         defintion.
19403         (PSEUDO_END): Likewise.
19404         [IS_IN (libpthread)] (CENABLE): Likewise.
19405         [IS_IN (libpthread)] (CDISABLE): Likewise.
19406         [IS_IN (libc)] (CENABLE): Likewise.
19407         [IS_IN (libc)] (CENABLE): Likewise.
19408         [IS_IN (librt)] (CDISABLE): Likewise.
19409         [IS_IN (librt)] (CDISABLE): Likewise.
19410         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
19411         * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (PSEUDO): Remove
19412         definition.
19413         (PSEUDO_END): Likewise.
19414         [IS_IN (libpthread)] (CENABLE): Likewise.
19415         [IS_IN (libpthread)] (CDISABLE): Likewise.
19416         [IS_IN (libc)] (CENABLE): Likewise.
19417         [IS_IN (libc)] (CENABLE): Likewise.
19418         [IS_IN (librt)] (CDISABLE): Likewise.
19419         [IS_IN (librt)] (CDISABLE): Likewise.
19420         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
19421         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (PSEUDO): Remove
19422         definition.
19423         (PSEUDO_END): Likewise.
19424         [IS_IN (libpthread)] (CENABLE): Likewise.
19425         [IS_IN (libpthread)] (CDISABLE): Likewise.
19426         [IS_IN (libc)] (CENABLE): Likewise.
19427         [IS_IN (libc)] (CENABLE): Likewise.
19428         [IS_IN (librt)] (CDISABLE): Likewise.
19429         [IS_IN (librt)] (CDISABLE): Likewise.
19430         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
19431         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (PSEUDO): Remove
19432         definition.
19433         (PSEUDO_END): Likewise.
19434         [IS_IN (libpthread)] (CENABLE): Likewise.
19435         [IS_IN (libpthread)] (CDISABLE): Likewise.
19436         [IS_IN (libc)] (CENABLE): Likewise.
19437         [IS_IN (libc)] (CENABLE): Likewise.
19438         [IS_IN (librt)] (CDISABLE): Likewise.
19439         [IS_IN (librt)] (CDISABLE): Likewise.
19440         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
19441         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (PSEUDO): Remove
19442         definition.
19443         (PSEUDO_END): Likewise.
19444         [IS_IN (libpthread)] (CENABLE): Likewise.
19445         [IS_IN (libpthread)] (CDISABLE): Likewise.
19446         [IS_IN (libc)] (CENABLE): Likewise.
19447         [IS_IN (libc)] (CENABLE): Likewise.
19448         [IS_IN (librt)] (CDISABLE): Likewise.
19449         [IS_IN (librt)] (CDISABLE): Likewise.
19450         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
19451         * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h (PSEUDO): Remove
19452         definition.
19453         (PSEUDO_END): Likewise.
19454         [IS_IN (libpthread)] (CENABLE): Likewise.
19455         [IS_IN (libpthread)] (CDISABLE): Likewise.
19456         [IS_IN (libc)] (CENABLE): Likewise.
19457         [IS_IN (libc)] (CENABLE): Likewise.
19458         [IS_IN (librt)] (CDISABLE): Likewise.
19459         [IS_IN (librt)] (CDISABLE): Likewise.
19460         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
19461         * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h (PSEUDO):
19462         Remove definition.
19463         (PSEUDO_END): Likewise.
19464         [IS_IN (libpthread)] (CENABLE): Likewise.
19465         [IS_IN (libpthread)] (CDISABLE): Likewise.
19466         [IS_IN (libc)] (CENABLE): Likewise.
19467         [IS_IN (libc)] (CENABLE): Likewise.
19468         [IS_IN (librt)] (CDISABLE): Likewise.
19469         [IS_IN (librt)] (CDISABLE): Likewise.
19470         (SINGLE_THREAD_P): Likewise.
19471         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (PSEUDO): Remove
19472         definition.
19473         (PSEUDO_END): Likewise.
19474         [IS_IN (libpthread)] (CENABLE): Likewise.
19475         [IS_IN (libpthread)] (CDISABLE): Likewise.
19476         [IS_IN (libc)] (CENABLE): Likewise.
19477         [IS_IN (libc)] (CENABLE): Likewise.
19478         [IS_IN (librt)] (CDISABLE): Likewise.
19479         [IS_IN (librt)] (CDISABLE): Likewise.
19480         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
19481         * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (PSEUDO): Remove
19482         definition.
19483         (PSEUDO_END): Likewise.
19484         [IS_IN (libpthread)] (CENABLE): Likewise.
19485         [IS_IN (libpthread)] (CDISABLE): Likewise.
19486         [IS_IN (libc)] (CENABLE): Likewise.
19487         [IS_IN (libc)] (CENABLE): Likewise.
19488         [IS_IN (librt)] (CDISABLE): Likewise.
19489         [IS_IN (librt)] (CDISABLE): Likewise.
19490         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
19491         * sysdeps/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Remove file.
19492         * sysdeps/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
19493         * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: New file.
19494         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h (PSEUDO): Remove
19495         definition.
19496         (PSEUDO_END): Likewise.
19497         [IS_IN (libpthread)] (CENABLE): Likewise.
19498         [IS_IN (libpthread)] (CDISABLE): Likewise.
19499         [IS_IN (libc)] (CENABLE): Likewise.
19500         [IS_IN (libc)] (CENABLE): Likewise.
19501         [IS_IN (librt)] (CDISABLE): Likewise.
19502         [IS_IN (librt)] (CDISABLE): Likewise.
19503         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
19504         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h (PSEUDO): Remove
19505         definition.
19506         (PSEUDO_END): Likewise.
19507         [IS_IN (libpthread)] (CENABLE): Likewise.
19508         [IS_IN (libpthread)] (CDISABLE): Likewise.
19509         [IS_IN (libc)] (CENABLE): Likewise.
19510         [IS_IN (libc)] (CENABLE): Likewise.
19511         [IS_IN (librt)] (CDISABLE): Likewise.
19512         [IS_IN (librt)] (CDISABLE): Likewise.
19513         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
19514         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (PSEUDO): Remove
19515         definition.
19516         (PSEUDO_END): Likewise.
19517         [IS_IN (libpthread)] (CENABLE): Likewise.
19518         [IS_IN (libpthread)] (CDISABLE): Likewise.
19519         [IS_IN (libc)] (CENABLE): Likewise.
19520         [IS_IN (libc)] (CENABLE): Likewise.
19521         [IS_IN (librt)] (CDISABLE): Likewise.
19522         [IS_IN (librt)] (CDISABLE): Likewise.
19523         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
19524         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Remove file.
19525         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
19526         * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: New file.
19527         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (PSEUDO): Remove
19528         definition.
19529         (PSEUDO_END): Likewise.
19530         [IS_IN (libpthread)] (CENABLE): Likewise.
19531         [IS_IN (libpthread)] (CDISABLE): Likewise.
19532         [IS_IN (libc)] (CENABLE): Likewise.
19533         [IS_IN (libc)] (CENABLE): Likewise.
19534         [IS_IN (librt)] (CDISABLE): Likewise.
19535         [IS_IN (librt)] (CDISABLE): Likewise.
19536         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
19537         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (PSEUDO): Remove
19538         definition.
19539         (PSEUDO_END): Likewise.
19540         [IS_IN (libpthread)] (CENABLE): Likewise.
19541         [IS_IN (libpthread)] (CDISABLE): Likewise.
19542         [IS_IN (libc)] (CENABLE): Likewise.
19543         [IS_IN (libc)] (CENABLE): Likewise.
19544         [IS_IN (librt)] (CDISABLE): Likewise.
19545         [IS_IN (librt)] (CDISABLE): Likewise.
19546         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
19547
19548 2017-08-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
19549
19550         * sysdeps/ieee754/dbl-64/Makefile: Don't override CFLAGS.
19551
19552 2017-08-23  H.J. Lu  <hongjiu.lu@intel.com>
19553
19554         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
19555
19556 2017-08-23  H.J. Lu  <hongjiu.lu@intel.com>
19557
19558         [BZ #21982]
19559         * string/stratcliff.c (do_test): Declare size, nchars, inner,
19560         middle and outer with size_t instead of int.  Repleace %d and
19561         %Zd with %zu in printf.  Update "MAX (0, nchars - 128)" and
19562         "MAX (outer, nchars - 64)" to support unsigned outer and
19563         nchars.  Also exit loop when outer == 0.
19564
19565 2017-08-23  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
19566
19567         * include/fcntl.h (__fcntl_nocancel): Remove definition.
19568         * include/signal.h (__sigsuspend_nocancel): Likewise.
19569         * include/time.h (__nanosleep_nocancel): Likewise.
19570         * sysdeps/generic/not-cancel.h (__fcntl_nocancel): New macro.
19571         * login/utmp_file.c: Include non cancellable syscall header.
19572         * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): New
19573         prototype.
19574
19575 2017-08-23  H.J. Lu  <hongjiu.lu@intel.com>
19576
19577         * sysdeps/x86_64/fpu/svml_d_sincos8_core.S: Replace AVX512F
19578         .byte sequences with AVX512F instructions.
19579         * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Likewise.
19580         * sysdeps/x86_64/fpu/svml_s_sincosf16_core.S: Likewise.
19581         * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Likewise.
19582         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S:
19583         Likewise.
19584         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
19585         Likewise.
19586
19587 2017-08-22  Szabolcs Nagy  <szabolcs.nagy@arm.com>
19588             Steve Ellcey  <sellcey@cavium.com>
19589
19590         * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic):
19591         Use PTR_REG macro in cmp instruction.
19592
19593 2017-08-22  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
19594
19595         * include/libc-symbols.h: [!defined HAVE_GCC_IFUNC] (__ifunc):
19596         Change the return type of the ifunc resolver to match the return
19597         type of the target function.
19598
19599 2017-08-22  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
19600
19601         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (pread64): Remove.
19602         (preadv64): Likewise.
19603         (pwrite64(: Likewise.
19604         (pwritev64): Likewise.
19605
19606         * sysdeps/unix/sysv/linux/x86_64/sysdep.h
19607         (INTERNAL_SYSCALL_NCS_TYPES): Remove define.
19608         (LOAD_ARGS_0): Likewise.
19609         (LOAD_ARGS_1): Likewise.
19610         (LOAD_ARGS_2): Likewise.
19611         (LOAD_ARGS_3): Likewise.
19612         (LOAD_ARGS_4): Likewise.
19613         (LOAD_ARGS_5): Likewise.
19614         (LOAD_ARGS_6): Likewise.
19615         (LOAD_REGS_0): Likewise.
19616         (LOAD_REGS_1): Likewise.
19617         (LOAD_REGS_2): Likewise.
19618         (LOAD_REGS_3): Likewise.
19619         (LOAD_REGS_4): Likewise.
19620         (LOAD_REGS_5): Likewise.
19621         (LOAD_REGS_6): Likewise.
19622         (ASM_ARGS_0): Likewise.
19623         (ASM_ARGS_1): Likewise.
19624         (ASM_ARGS_2): Likewise.
19625         (ASM_ARGS_3): Likewise.
19626         (ASM_ARGS_4): Likewise.
19627         (ASM_ARGS_5): Likewise.
19628         (ASM_ARGS_6): Likewise.
19629         (LOAD_ARGS_TYPES_1): Likewise.
19630         (LOAD_ARGS_TYPES_2): Likewise.
19631         (LOAD_ARGS_TYPES_3): Likewise.
19632         (LOAD_ARGS_TYPES_4): Likewise.
19633         (LOAD_ARGS_TYPES_5): Likewise.
19634         (LOAD_ARGS_TYPES_6): Likewise.
19635         (LOAD_REGS_TYPES_1): Likewise.
19636         (LOAD_REGS_TYPES_2): Likewise.
19637         (LOAD_REGS_TYPES_3): Likewise.
19638         (LOAD_REGS_TYPES_4): Likewise.
19639         (LOAD_REGS_TYPES_5): Likewise.
19640         (LOAD_REGS_TYPES_6): Likewise.
19641         (TYPEFY): New define.
19642         (ARGIFY): Likewise.
19643         (internal_syscall0): Likewise.
19644         (internal_syscall1): Likewise.
19645         (internal_syscall2): Likewise.
19646         (internal_syscall3): Likewise.
19647         (internal_syscall4): Likewise.
19648         (internal_syscall5): Likewise.
19649         (internal_syscall6): Likewise.
19650         * sysdeps/unix/sysv/linux/x86_64/x32/times.c
19651         (INTERNAL_SYSCALL_NCS): Remove define.
19652         (internal_syscall1): Add define.
19653
19654 2017-08-22  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
19655
19656         * math/w_remainder_compat.c: Remove duplicate inclusion of
19657         math-svid-compat.h.
19658         * math/w_remainderf_compat.c: Likewise.
19659         * math/w_remainderl_compat.c: Likewise.
19660
19661 2017-08-22  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
19662
19663         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
19664
19665 2017-08-22  Joseph Myers  <joseph@codesourcery.com>
19666
19667         [BZ #21684]
19668         * math/tgmath.h (__floating_type): Simplify definitions.
19669         (__real_integer_type): New macro.
19670         (__complex_integer_type): Likewise.
19671         (__expr_is_real): Likewise.
19672         (__tgmath_real_type_sub): Update comment to describe handling of
19673         complex types.
19674         (__tgmath_complex_type_sub): New macro.
19675         (__tgmath_complex_type): Likewise.
19676         [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
19677         (__TGMATH_CF128): Use __expr_is_real.
19678         (__TGMATH_UNARY_REAL_IMAG): Use __tgmath_complex_type and
19679         __expr_is_real.
19680         (__TGMATH_BINARY_REAL_IMAG): Likewise.
19681         (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Use __expr_is_real.
19682         * math/gen-tgmath-tests.py (Type.create_type): Create complex
19683         integer types.
19684
19685 2017-08-22  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
19686
19687         * sysdeps/generic/not-cancel.h (sigsuspend_not_cancel): Remove
19688         macro.
19689         * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Remove
19690         alias.
19691         * sysdeps/unix/sysv/linux/not-cancel.h (sigsuspend_not_cancel):
19692         Likewise.
19693
19694         * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Replace
19695         nanosleep_not_cancel with __nanosleep_nocancel.
19696         * sysdeps/generic/not-cancel.h (nanosleep_not_cancel): Remove macro.
19697         (__nanosleep_nocancel): New macro.
19698         * sysdeps/unix/sysv/linux/nanosleep.c (__nanosleep_nocancel): New
19699         function.
19700         * sysdeps/unix/sysv/linux/not-cancel.h (nanosleep_not_cancel): Remove
19701         macro.
19702         (__nanosleep_nocancel): New prototype.
19703
19704         * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full): Replace
19705         pause_not_cancel with __pause_nocancel.
19706         * sysdeps/generic/not-cancel.h (pause_not_cancel): Remove macro.
19707         (__pause_nocancel): New macro.
19708         * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): Remove
19709         macro.
19710         (__pause_nocancel): New prototype.
19711         * sysdeps/unix/sysv/linux/pause.c (__pause_nocancel): New function.
19712
19713 2017-08-22  Martin Sebor  <msebor@redhat.com>
19714
19715         * include/libc-symbols.h (__ifunc_resolver): Declare resolver
19716         to return a pointer to the same type as the target function.
19717
19718 2017-08-22  H.J. Lu  <hongjiu.lu@intel.com>
19719
19720         [BZ #18822]
19721         [BZ #21986]
19722         * include/printf.h (__printf_fphex): Add attribute_hidden.
19723         (__guess_grouping): New prototype.
19724         * stdio-common/printf_fp.c (__guess_grouping): Removed.
19725         * stdio-common/reg-printf.c (__register_printf_specifier): Add
19726         libc_hidden_proto and libc_hidden_def.
19727         * stdlib/strfmon_l.c (__guess_grouping): Removed.
19728         (__vstrfmon_l): Remove the third argument passed to
19729         __guess_grouping.
19730
19731 2017-08-22  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
19732
19733         * math/math.h [defined __cplusplus] (issignaling): Provide a C++
19734         definition for issignaling that does not rely on __MATH_TG,
19735         since __MATH_TG uses __builtin_types_compatible_p, which is only
19736         available in C mode.
19737         (CFLAGS-test-math-issignaling.cc): New variable.
19738         * math/Makefile [CXX] (tests): Add test-math-issignaling.
19739         * math/test-math-issignaling.cc: New test for C++ implementation
19740         of type-generic issignaling.
19741         * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
19742         (CXXFLAGS-test-math-issignaling.cc): Add -mfloat128 to the build
19743         options of test-math-issignaling on powerpc64le.
19744
19745 2017-08-22  H.J. Lu  <hongjiu.lu@intel.com>
19746
19747         * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
19748         building libc.a.
19749         (hidden_proto): Likewise.
19750         (hidden_tls_proto): Likewise.
19751         (__hidden_proto): Likewise.
19752
19753 2017-08-22  Florian Weimer  <fweimer@redhat.com>
19754
19755         math: Statically link tests of internal functionality.
19756         * math/Makefile (tests): Remove atest-exp, atest-sincos,
19757         atest-exp2.
19758         (tests-static): Add atest-exp, atest-sincos, atest-exp2.
19759         (gmp-objs): Remove assignment.
19760         (atest-exp, atest-sincos, atest-exp2): Remove targets.
19761
19762 2017-08-22  Joseph Myers  <joseph@codesourcery.com>
19763
19764         [BZ #21987]
19765         * sysdeps/unix/sysv/linux/sparc/bits/long-double.h: Remove file
19766         and copy to ...
19767         * sysdeps/unix/sysv/linux/sparc/sparc32/bits/long-double.h:
19768         ... here.
19769         * sysdeps/unix/sysv/linux/sparc/sparc64/bits/long-double.h:
19770         ... and here.
19771
19772         * assert/Makefile [$(have-cxx-thread_local)]: Move conditional
19773         variable definitions above inclusion of ../Rules.
19774
19775 2017-08-21  Joseph Myers  <joseph@codesourcery.com>
19776
19777         * sysdeps/ieee754/k_standard.c (__kernel_standard): Add default
19778         case calling __builtin_unreachable.
19779
19780 2017-08-21  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
19781
19782         * libio/ioopen.c (_IO_waitpid): Replace waitpid_not_cancel with
19783         __waitpid_nocancel.
19784         * sysdeps/generic/not-cancel.h (waitpid_not_cancel): Remove macro.
19785         (__waitpid_nocancel): New macro.
19786         * sysdeps/unix/sysv/linux/not-cancel.h (waitpid_not_cancel): Remove
19787         macro.
19788         (__waitpid_nocancel): Replace macro with a function.
19789         * sysdeps/unix/sysv/linux/waitpid.c (__waitpid_nocancel): New
19790         function.
19791
19792         * login/utmp_file.c (timeout_handler): Replace fcntl_not_cancel with
19793         __fcntl_nocancel.
19794         * sysdeps/generic/not-cancel.h (fcntl_not_cancel): Remove macro.
19795         * sysdeps/unix/sysv/linux/not-cancel.h (fcntl_not_cancel): Likewise.
19796
19797         * gmon/gmon.c (write_hist): Replace writev_not_cancel_no_status with
19798         __writev_nocancel_nostatus.
19799         (write_call_graph): Likewise.
19800         (write_bb_counts): Likewise.
19801         * resolv/herror.c (herror): Likewise.
19802         * sysdeps/generic/not-cancel.h (writev_not_cancel_no_status): Remove
19803         macro.
19804         (__writev_nocancel_nostatus): New macro.
19805         * sysdeps/unix/sysv/linux/not-cancel.h (writev_not_cancel_no_status):
19806         Remove macro.
19807         (__writev_nocancel_nostatus): New function.
19808
19809 2017-08-21  Joseph Myers  <joseph@codesourcery.com>
19810
19811         Revert:
19812         2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
19813
19814         * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
19815         building libc.a.
19816         (hidden_proto): Likewise.
19817         (hidden_tls_proto): Likewise.
19818         (__hidden_proto): Likewise.
19819
19820         [BZ #21973]
19821         * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Remove file.
19822         * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
19823         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
19824         Likewise.
19825         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat.S:
19826         Likewise.
19827         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
19828         Likewise.
19829         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat.S:
19830         Likewise.
19831         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S : Likewise.
19832         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
19833         * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
19834         * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
19835         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
19836         GLIBC_2.0 sqrtl symbol.
19837
19838         * math/math.h [__USE_MISC] (_LIB_VERSION_TYPE): Remove.
19839         [__USE_MISC] (_LIB_VERSION): Likewise.
19840         [__USE_MISC] (struct exception): Likewise.
19841         [__USE_MISC] (matherr): Likewise.
19842         [__USE_MISC] (DOMAIN): Likewise.
19843         [__USE_MISC] (SING): Likewise.
19844         [__USE_MISC] (OVERFLOW): Likewise.
19845         [__USE_MISC] (UNDERFLOW): Likewise.
19846         [__USE_MISC] (TLOSS): Likewise.
19847         [__USE_MISC] (PLOSS): Likewise.
19848         [__USE_MISC] (HUGE): Likewise.
19849         [__USE_XOPEN] (MAXFLOAT): Define even if [__USE_MISC].
19850         * math/math-svid-compat.h: New file.
19851         * conform/linknamespace.pl (@whitelist): Remove matherr, matherrf
19852         and matherrl.
19853         * include/math.h [!_ISOMAC] (__matherr): Remove.
19854         * manual/arith.texi (FP Exceptions): Do not document matherr.
19855         * math/Makefile (tests): Change test-matherr to test-matherr-3.
19856         (tests-internal): New variable.
19857         (install-lib): Do not add libieee.a.
19858         (non-lib.a): Likewise.
19859         (extra-objs): Do not add libieee.a and ieee-math.o.
19860         (CPPFLAGS-s_lib_version.c): Remove variable.
19861         ($(objpfx)libieee.a): Remove rule.
19862         ($(addprefix $(objpfx), $(tests-internal)): Depend on $(libm).
19863         * math/ieee-math.c: Remove.
19864         * math/libm-test-support.c (matherr): Remove.
19865         * math/test-matherr.c: Use <support/test-driver.c>.  Add copyright
19866         and license notices.  Include <math-svid-compat.h> and
19867         <shlib-compat.h>.
19868         (matherr): Undefine as macro.  Use compat_symbol_reference.
19869         (_LIB_VERSION): Likewise.
19870         * math/test-matherr-2.c: New file.
19871         * math/test-matherr-3.c: Likewise.
19872         * sysdeps/generic/math_private.h (__kernel_standard): Remove
19873         declaration.
19874         (__kernel_standard_f): Likewise.
19875         (__kernel_standard_l): Likewise.
19876         * sysdeps/ieee754/s_lib_version.c: Do not include <math.h> or
19877         <math_private.h>.  Include <math-svid-compat.h>.
19878         (_LIB_VERSION): Undefine as macro.
19879         (_LIB_VERSION_INTERNAL): Always initialize to _POSIX_.  Define
19880         only if [LIBM_SVID_COMPAT || !defined SHARED].  If
19881         [LIBM_SVID_COMPAT], use compat_symbol.
19882         * sysdeps/ieee754/s_matherr.c: Do not include <math.h> or
19883         <math_private.h>.  Include <math-svid-compat.h>.
19884         (matherr): Undefine as macro.
19885         (__matherr): Define only if [LIBM_SVID_COMPAT].  Use
19886         compat_symbol.
19887         * sysdeps/ia64/fpu/libm_error.c: Include <math-svid-compat.h>.
19888         [_LIBC && LIBM_SVID_COMPAT] (matherrf): Use
19889         compat_symbol_reference.
19890         [_LIBC && LIBM_SVID_COMPAT] (matherrl): Likewise.
19891         [_LIBC && !LIBM_SVID_COMPAT] (matherrf): Define as macro.
19892         [_LIBC && !LIBM_SVID_COMPAT] (matherrl): Likewise.
19893         * sysdeps/ia64/fpu/libm_support.h: Include <math-svid-compat.h>.
19894         (MATHERR_D): Remove declaration.
19895         [!_LIBC] (_LIB_VERSION_TYPE): Likewise
19896         [!LIBM_BUILD] (_LIB_VERSIONIMF): Likewise.
19897         [LIBM_BUILD] (pmatherrf): Likewise.
19898         [LIBM_BUILD] (pmatherr): Likewise.
19899         [LIBM_BUILD] (pmatherrl): Likewise.
19900         (DOMAIN): Likewise.
19901         (SING): Likewise.
19902         (OVERFLOW): Likewise.
19903         (UNDERFLOW): Likewise.
19904         (TLOSS): Likewise.
19905         (PLOSS): Likewise.
19906         * sysdeps/ia64/fpu/s_matherrf.c: Include <math-svid-compat.h>.
19907         (__matherrf): Define only if [LIBM_SVID_COMPAT].  Use
19908         compat_symbol.
19909         * sysdeps/ia64/fpu/s_matherrl.c: Include <math-svid-compat.h>.
19910         (__matherrl): Define only if [LIBM_SVID_COMPAT].  Use
19911         compat_symbol.
19912         * math/lgamma-compat.h: Include <math-svid-compat.h>.
19913         * math/w_acos_compat.c: Likewise.
19914         * math/w_acosf_compat.c: Likewise.
19915         * math/w_acosh_compat.c: Likewise.
19916         * math/w_acoshf_compat.c: Likewise.
19917         * math/w_acoshl_compat.c: Likewise.
19918         * math/w_acosl_compat.c: Likewise.
19919         * math/w_asin_compat.c: Likewise.
19920         * math/w_asinf_compat.c: Likewise.
19921         * math/w_asinl_compat.c: Likewise.
19922         * math/w_atan2_compat.c: Likewise.
19923         * math/w_atan2f_compat.c: Likewise.
19924         * math/w_atan2l_compat.c: Likewise.
19925         * math/w_atanh_compat.c: Likewise.
19926         * math/w_atanhf_compat.c: Likewise.
19927         * math/w_atanhl_compat.c: Likewise.
19928         * math/w_cosh_compat.c: Likewise.
19929         * math/w_coshf_compat.c: Likewise.
19930         * math/w_coshl_compat.c: Likewise.
19931         * math/w_exp10_compat.c: Likewise.
19932         * math/w_exp10f_compat.c: Likewise.
19933         * math/w_exp10l_compat.c: Likewise.
19934         * math/w_exp2_compat.c: Likewise.
19935         * math/w_exp2f_compat.c: Likewise.
19936         * math/w_exp2l_compat.c: Likewise.
19937         * math/w_fmod_compat.c: Likewise.
19938         * math/w_fmodf_compat.c: Likewise.
19939         * math/w_fmodl_compat.c: Likewise.
19940         * math/w_hypot_compat.c: Likewise.
19941         * math/w_hypotf_compat.c: Likewise.
19942         * math/w_hypotl_compat.c: Likewise.
19943         * math/w_j0_compat.c: Likewise.
19944         * math/w_j0f_compat.c: Likewise.
19945         * math/w_j0l_compat.c: Likewise.
19946         * math/w_j1_compat.c: Likewise.
19947         * math/w_j1f_compat.c: Likewise.
19948         * math/w_j1l_compat.c: Likewise.
19949         * math/w_jn_compat.c: Likewise.
19950         * math/w_jnf_compat.c: Likewise.
19951         * math/w_jnl_compat.c: Likewise.
19952         * math/w_lgamma_main.c: Likewise.
19953         * math/w_lgamma_r_compat.c: Likewise.
19954         * math/w_lgammaf_main.c: Likewise.
19955         * math/w_lgammaf_r_compat.c: Likewise.
19956         * math/w_lgammal_main.c: Likewise.
19957         * math/w_lgammal_r_compat.c: Likewise.
19958         * math/w_log10_compat.c: Likewise.
19959         * math/w_log10f_compat.c: Likewise.
19960         * math/w_log10l_compat.c: Likewise.
19961         * math/w_log2_compat.c: Likewise.
19962         * math/w_log2f_compat.c: Likewise.
19963         * math/w_log2l_compat.c: Likewise.
19964         * math/w_log_compat.c: Likewise.
19965         * math/w_logf_compat.c: Likewise.
19966         * math/w_logl_compat.c: Likewise.
19967         * math/w_pow_compat.c: Likewise.
19968         * math/w_powf_compat.c: Likewise.
19969         * math/w_powl_compat.c: Likewise.
19970         * math/w_remainder_compat.c: Likewise.
19971         * math/w_remainderf_compat.c: Likewise.
19972         * math/w_remainderl_compat.c: Likewise.
19973         * math/w_scalb_compat.c: Likewise.
19974         * math/w_scalbf_compat.c: Likewise.
19975         * math/w_scalbl_compat.c: Likewise.
19976         * math/w_sinh_compat.c: Likewise.
19977         * math/w_sinhf_compat.c: Likewise.
19978         * math/w_sinhl_compat.c: Likewise.
19979         * math/w_sqrt_compat.c: Likewise.
19980         * math/w_sqrtf_compat.c: Likewise.
19981         * math/w_sqrtl_compat.c: Likewise.
19982         * math/w_tgamma_compat.c: Likewise.
19983         * math/w_tgammaf_compat.c: Likewise.
19984         * math/w_tgammal_compat.c: Likewise.
19985         * sysdeps/ieee754/dbl-64/w_exp_compat.c: Likewise.
19986         * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
19987         * sysdeps/ieee754/k_standard.c: Likewise.
19988         * sysdeps/ieee754/k_standardf.c: Likewise.
19989         * sysdeps/ieee754/k_standardl.c: Likewise.
19990         * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
19991         * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
19992         * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
19993         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
19994         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
19995         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
19996         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
19997         * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Likewise.
19998         * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
19999         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
20000         Likewise.
20001         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
20002         Likewise.
20003         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S: Likewise.
20004         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
20005         * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
20006         * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
20007
20008 2017-08-21  Florian Weimer  <fweimer@redhat.com>
20009
20010         [BZ #21864]
20011         Do not compile benchmark helper objects with -DMODULE_NAME=libc.
20012         * benchtests/Makefile (others-extras): Set to $(bench-extra-objs).
20013         Move before inclusion of ../Rules.
20014
20015 2017-08-21  Florian Weimer  <fweimer@redhat.com>
20016
20017         [BZ #21972]
20018         * assert/assert.h (assert): Use static_cast (bool) for C++.
20019         Use the ternary operator in the warning branch for GNU C.
20020         * assert/Makefile (tests): Add tst-assert-c++, tst-assert-g++.
20021         (CFLAGS-tst-assert-c++.o): Compile in C++11 mode.
20022         (CFLAGS-tst-assert-g++.o): Compile in GnU C++11 mode.
20023         (LDLIBS-tst-assert-c++, LDLIBS-tst-assert-g++): Link with libstdc++.
20024         * assert/tst-assert-c++.cc, assert/tst-assert-g++.cc: New files.
20025
20026 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
20027
20028         [BZ #18822]
20029         * sysdeps/unix/sysv/linux/x86_64/init-first.c
20030         (__syscall_clock_gettime): Add attribute_hidden.
20031         * sysdeps/unix/sysv/linux/x86_64/makecontext.c
20032         (__start_context): Likewise.
20033
20034 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
20035
20036         * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
20037         building libc.a.
20038         (hidden_proto): Likewise.
20039         (hidden_tls_proto): Likewise.
20040         (__hidden_proto): Likewise.
20041
20042 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
20043
20044         * include/libc-symbols.h (attribute_hidden): Enable hidden
20045         visibility in libc.a compiled with PIE.
20046
20047 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
20048
20049         [BZ #18822]
20050         * sysdeps/unix/sysv/linux/x86/libc-vdso.h (VDSO_SYMBOL(getcpu)):
20051         Add attribute_hidden.
20052
20053 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
20054
20055         [BZ #21864]
20056         * Makerules (all-nonlib): Add $(others-extras).
20057         * catgets/Makefile (others-extras): New.
20058         * elf/Makefile (others-extras): Likewise.
20059         * nss/Makefile (others-extras): Likewise.
20060
20061 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
20062
20063         [BZ #18822]
20064         * csu/libc-start.c (__libc_multiple_libcs): Removed.
20065         * elf/dl-open.c: Include <libc-internal.h>.
20066         (__libc_multiple_libcs): Removed.
20067         * elf/dl-sysdep.c: Include <libc-internal.h> instead of
20068         <hp-timing.h>.
20069         * include/libc-internal.h (__libc_multiple_libcs): New.
20070         * misc/sbrk.c: Include <libc-internal.h>.
20071         (__libc_multiple_libcs): Removed.
20072
20073 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
20074
20075         [BZ #18822]
20076         * grp/initgroups.c (__nss_group_database): Removed.
20077         (__nss_initgroups_database): Likewise.
20078         * nscd/gai.c (__nss_hosts_database): Likewise.
20079         * nss/XXX-lookup.c (DATABASE_NAME_SYMBOL): Likewise.
20080         * posix/tst-rfc3484-2.c (__nss_hosts_database): Likewise.
20081         * posix/tst-rfc3484-3.c (__nss_hosts_database): Likewise.
20082         * posix/tst-rfc3484.c (__nss_hosts_database): Likewise.
20083         * sysdeps/posix/getaddrinfo.c (__nss_hosts_database): Likewise.
20084         * nss/getXXent.c (INTERNAL (REENTRANT_GETNAME)): Add
20085         attribute_hidden.
20086         * nss/nsswitch.c (__nss_database_custom): Define only if
20087         USE_NSCD is defined.
20088         (__nss_configure_lookup): Use __nss_database_custom only if
20089         USE_NSCD is defined.
20090         * nss/nsswitch.h (__nss_database_custom): Declare only if
20091         USE_NSCD is defined.  Add attribute_hidden.
20092         (__nss_setent): Add attribute_hidden.
20093         (__nss_endent): Likewise.
20094         (__nss_getent_r): Likewise.
20095         (__nss_getent): Likewise.
20096         (DEFINE_DATABASE): Declare __nss_##arg##_database.
20097
20098 2017-08-20  H.J. Lu  <hongjiu.lu@intel.com>
20099
20100         [BZ #18822]
20101         * sysdeps/unix/sysv/linux/i386/glob64.c (__old_glob64): Add
20102         libc_hidden_proto and libc_hidden_def.
20103
20104 2017-08-20  H.J. Lu  <hongjiu.lu@intel.com>
20105
20106         [BZ #18822]
20107         * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_readdir64):
20108         Add libc_hidden_proto.
20109         * sysdeps/unix/sysv/linux/i386/readdir64.c (__old_readdir64):
20110         Add libc_hidden_def.
20111
20112 2017-08-20  H.J. Lu  <hongjiu.lu@intel.com>
20113
20114         [BZ #21974]
20115         * gmon/Makefile (routines): Remove bb_init_func and
20116         bb_exit_func.
20117         (elide-routines.os): Removed.
20118         * gmon/bb_exit_func.c: Likewise.
20119         * gmon/bb_init_func.c: Likewise.
20120         * include/sys/gmon.h (__bb): Likewise.
20121         (__bb_init_func): Likewise.
20122         (__bb_exit_func): Likewise.
20123         * sysdeps/alpha/bb_init_func.S: Likewise.
20124
20125 2017-08-20  H.J. Lu  <hongjiu.lu@intel.com>
20126
20127         * debug/longjmp_chk.c (____longjmp_chk): Moved to ...
20128         * include/setjmp.h (____longjmp_chk): Here.  Add
20129         attribute_hidden.
20130
20131 2017-08-19  H.J. Lu  <hongjiu.lu@intel.com>
20132
20133         [BZ #18822]
20134         * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE2): Add
20135         attribute_hidden.
20136         (__strspn_sse2): Likewise.
20137
20138 2017-08-18  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
20139
20140         * sysdeps/generic/not-cancel.h (close_not_cancel): Remove macro.
20141         (close_not_cancel_no_status): Likewise.
20142         (__close_nocancel): New macro.
20143         (__close_nocancel_nostatus): Likewise.
20144         * sysdeps/unix/sysv/linux/not-cancel.h (__close_nocancel): Remove
20145         macro.
20146         (close_not_cancel): Likewise.
20147         (close_not_cancel_no_status): Likewise.
20148         (__close_nocancel): New prototype.
20149         (__close_nocancel_nostatus): New function.
20150         * sysdeps/unix/sysv/linux/close.c (__close_nocancel): New function.
20151         * catgets/open_catalog.c (__open_catalog): Replace
20152         close_not_cancel{_no_status) with __close_nocancel{_nostatus}.
20153         * gmon/gmon.c (write_gmon): Likewise.
20154         * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
20155         * intl/loadmsgcat.c (close): Likewise.
20156         * io/ftw.c (open_dir_stream): Likewise.
20157         (ftw_startup): Likewise.
20158         * libio/fileops.c (_IO_file_open): Likewise.
20159         (_IO_file_close_mmap): Likewise.
20160         (_IO_file_close): Likewise.
20161         * libio/iopopen.c (_IO_dup2): Likewise.
20162         * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
20163         * locale/loadlocale.c (_nl_load_locale): Likewise.
20164         * login/utmp_file.c (pututline_file): Likewise.
20165         (endutent_file): Likewise.
20166         * misc/daemon.c (daemon): Likewise.
20167         * nscd/nscd_getai.c (__nscd_getai): Likewise.
20168         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
20169         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
20170         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
20171         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
20172         * nscd/nscd_helper.c (open_socket): Likewise.
20173         (__nscd_open_socket): Likewise.
20174         * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
20175         * nscd/nscd_netgroup.c (__nscd_setnetgrent): Likewise.
20176         (__nscd_innetgr): Likewise.
20177         * nss/nss_db/db-open.c (internal_setent): Likewise.
20178         * resolv/res-close.c (__res_iclose): Likewise.
20179         * sunrpc/pm_getmaps.c (pmap_getmaps): Likewise.
20180         * sysdeps/posix/closedir.c (__closedir): Likewise.
20181         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Likewise.
20182         * sysdeps/posix/getcwd.c (__getcwd): Likewise.
20183         * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
20184         (opendir_tail): Likewise.
20185         * sysdeps/posix/spawni.c (__spawni_child): Likewise.
20186         * sysdeps/unix/sysv/linux/check_native.c (__check_native): Likewise.
20187         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Likewise.
20188         * sysdeps/unix/sysv/linux/fips-private.h (fips_enabled_p): Likewise.
20189         * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
20190         (gethostid): Likewise.
20191         * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
20192         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
20193         Likewise.
20194         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
20195         * sysdeps/unix/sysv/linux/grantpt.c (close_all_fds): Likewise.
20196         * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
20197         * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
20198         Likewise.
20199         * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex): Likewise.
20200         * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps): Likewise.
20201         * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
20202         Likewise.
20203         * sysdeps/unix/sysv/linux/mq_notify.c (init_mq_netlink): Likewise.
20204         * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
20205         Likewise.
20206         * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
20207         Likewise.
20208         * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
20209         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
20210         * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
20211         __close_nocancel.
20212
20213         * sysdeps/generic/not-cancel.h (openat_not_cancel): Remove macro.
20214         (openat_not_cancel_3): Likewise.
20215         (openat64_not_cancel_3): Likewise).
20216         (openat_not_cancel_3): Likewise).
20217         * sysdeps/unix/sysv/linux/not-cancel.h (openat_not_cancel): Remove
20218         macro.
20219         (openat_not_cancel_3): Likewise.
20220         (openat64_not_cancel): Likewise.
20221         (openat64_not_cancel_3): Likewise.
20222         * sysdeps/unix/sysv/linux/openat.c (__openat_nocancel): New function.
20223         * sysdeps/unix/sysv/linux/openat64.c (__openat64_nocancel): Likewise.
20224         * io/ftw.c (open_dir_stream): Replace openat{64}_not_cancel{_3} with
20225         __open{64}_nocancel.
20226         * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
20227         * sysdeps/posix/getcwd.c (__getcwd): Likewise.
20228         * sysdeps/posix/opendir.c (__opendirat): Likewise.
20229
20230 2017-08-18  H.J. Lu  <hongjiu.lu@intel.com>
20231
20232         [BZ #18822]
20233         * include/argz.h (__argz_create_sep): New function prototype.
20234         (__argz_append): Likewise.
20235         (__argz_add): Likewise.
20236         (__argz_add_sep): Likewise.
20237         (__argz_delete): Likewise.
20238         (__argz_insert): Likewise.
20239         (__argz_replace): Likewise.
20240         * string/argz.h (__argz_create_sep): Removed.
20241         (__argz_append): Likewise.
20242         (__argz_add): Likewise.
20243         (__argz_add_sep): Likewise.
20244         (__argz_delete): Likewise.
20245         (__argz_insert): Likewise.
20246         (__argz_replace): Likewise.
20247
20248 2017-08-18  H.J. Lu  <hongjiu.lu@intel.com>
20249
20250         * elf/elf.h (NT_GNU_PROPERTY_TYPE_0): New.
20251         (NOTE_GNU_PROPERTY_SECTION_NAME): Likewise.
20252         (GNU_PROPERTY_STACK_SIZE): Likewie.
20253         (GNU_PROPERTY_NO_COPY_ON_PROTECTED): Likewie.
20254         (GNU_PROPERTY_LOPROC): Likewise.
20255         (GNU_PROPERTY_HIPROC): Likewise.
20256         (GNU_PROPERTY_LOUSER): Likewise.
20257         (GNU_PROPERTY_HIUSER): Likewise.
20258         (GNU_PROPERTY_X86_ISA_1_USED): Likwise.
20259         (GNU_PROPERTY_X86_ISA_1_NEEDED): Likwise.
20260         (GNU_PROPERTY_X86_FEATURE_1_AND): Likwise.
20261         (GNU_PROPERTY_X86_ISA_1_486): Likwise.
20262         (GNU_PROPERTY_X86_ISA_1_586): Likwise.
20263         (GNU_PROPERTY_X86_ISA_1_686): Likwise.
20264         (GNU_PROPERTY_X86_ISA_1_SSE): Likwise.
20265         (GNU_PROPERTY_X86_ISA_1_SSE2): Likwise.
20266         (GNU_PROPERTY_X86_ISA_1_SSE3): Likwise.
20267         (GNU_PROPERTY_X86_ISA_1_SSSE3): Likwise.
20268         (GNU_PROPERTY_X86_ISA_1_SSE4_1): Likwise.
20269         (GNU_PROPERTY_X86_ISA_1_SSE4_2): Likwise.
20270         (GNU_PROPERTY_X86_ISA_1_AVX): Likwise.
20271         (GNU_PROPERTY_X86_ISA_1_AVX2): Likwise.
20272         (GNU_PROPERTY_X86_ISA_1_AVX512F): Likwise.
20273         (GNU_PROPERTY_X86_ISA_1_AVX512CD): Likwise.
20274         (GNU_PROPERTY_X86_ISA_1_AVX512ER): Likwise.
20275         (GNU_PROPERTY_X86_ISA_1_AVX512PF): Likwise.
20276         (GNU_PROPERTY_X86_ISA_1_AVX512VL): Likwise.
20277         (GNU_PROPERTY_X86_ISA_1_AVX512DQ): Likwise.
20278         (GNU_PROPERTY_X86_ISA_1_AVX512BW): Likwise.
20279         (GNU_PROPERTY_X86_FEATURE_1_IBT): Likwise.
20280         (GNU_PROPERTY_X86_FEATURE_1_SHSTK): Likwise.
20281
20282 2017-08-18  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
20283
20284         * misc/sys/cdefs.h (__HAVE_GENERIC_SELECTION): Define to 0, if
20285         in C++ mode.
20286
20287 2017-08-18  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
20288
20289         [BZ #21930]
20290         * math/math.h (isinf): Check if in C or C++ mode before using
20291         __builtin_types_compatible_p, since this is a C mode feature.
20292
20293 2017-08-18  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
20294
20295         * sysdeps/generic/not-cancel.h (write_not_cancel): Remove macro.
20296         (__write_nocancel): New macro.
20297         * sysdeps/unix/sysv/linux/not-cancel.h (__write_nocancel):
20298         Rewrite as a function prototype.
20299         (write_not_cancel): Remove macro.
20300         * sysdeps/unix/sysv/linux/write.c (__write_nocancel): New function.
20301         * gmon/gmon.c (ERR): Replace write_not_cancel with __write_nocancel.
20302         (write_gmon): Likewise.
20303         * libio/fileops.c (_IO_new_file_write): Likewise.
20304         * login/utmp_file.c (pututline_file): Likewise.
20305         (updwtmp_file): Likewise.
20306         * stdio-common/psiginfo.c (psiginfo): Likewise.
20307         * sysdeps/posix/spawni.c (__spawni_child): Likewise.
20308         * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
20309         * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
20310         Likewise.
20311         * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
20312         Likewise.
20313
20314         * sysdeps/generic/not-cancel.h (read_not_cancel): Remove macro.
20315         (__read_nocancel): New macro.
20316         * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
20317         __read_nocancel.
20318         * sysdeps/unix/sysv/linux/not-cancel.h (__read_nocancel): Remove
20319         macro.
20320         (__read_nocancel): New prototype.
20321         * sysdeps/unix/sysv/linux/read.c (__read_nocancel): New function.
20322         * catgets/open_catalog.c (__open_catalog): Replace read_not_cancel
20323         with __read_nocancel.
20324         * intl/loadmsgcat.c (read): Likewise.
20325         * libio/fileops.c (_IO_file_read): Likewise.
20326         * locale/loadlocale.c (_nl_load_locale): Likewise.
20327         * login/utmp_file.c (getutent_r_file): Likewise.
20328         (internal_getut_r): Likewise.
20329         (getutline_r_file): Likewise.
20330         * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
20331         * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
20332         * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
20333         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
20334         Likewise.
20335         * sysdeps/unix/sysv/linux/getsysstats.c (next_line): Likewise.
20336         * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
20337         * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
20338         Likewise.
20339         * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
20340         Likewise.
20341         * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
20342         Likewise.
20343         * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
20344         Likewise.
20345         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
20346
20347 2017-08-18  H.J. Lu  <hongjiu.lu@intel.com>
20348
20349         [BZ #21966]
20350         * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h
20351         (IFUNC_SELECTOR): Don't use the AVX2 version if FMA isn't
20352         usable.
20353
20354 2017-08-17  DJ Delorie  <dj@redhat.com>
20355
20356         * bug17079.c: Update to new test harness.
20357         * test-digits-dots.c: Likewise.
20358         * test-netdb.c: Likewise.
20359         * tst-field.c: Likewise.
20360         * tst-nss-getpwent.c: Likewise.
20361         * tst-nss-static.c: Likewise.
20362         * tst-nss-test1.c: Likewise.
20363         * tst-nss-test2.c: Likewise.
20364         * tst-nss-test3.c: Likewise.
20365         * tst-nss-test4.c: Likewise.
20366         * tst-nss-test5.c: Likewise.
20367
20368 2017-08-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
20369
20370         * sysdeps/generic/not-cancel.h (open_not_cancel): Remove macro.
20371         (open_not_cancel_2): Likewise.
20372         (open_nocancel): New macro.
20373         (open64_nocancel): Likewise.
20374         * sysdeps/unix/sysv/linux/not-cancel.h (open_not_cancel): Remove macro.
20375         (open_not_cancel_2): Likewise.
20376         (__open_nocancel): New prototype.
20377         (__open64_nocancel): Likewise.
20378         * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
20379         __open_nocancel.
20380         * sysdeps/unix/sysv/linux/open.c (__open_nocancel): New function.
20381         * sysdeps/unix/sysv/linux/open64.c (__open64_nocancel): Likewise.
20382         * catgets/open_catalog.c (__open_catalog): Replace open_not_cancel{_2}
20383         with __open_nocancel.
20384         * csu/check_fds.c (check_one_fd): Likewise.
20385         * gmon/gmon.c (write_gmon): Likewise.
20386         * iconv/gconv_cache.c (__gconv_load_cached): Likewise.
20387         * intl/loadmsgcat.c (open): Likewise.
20388         * libio/fileops.c (_IO_file_open): Likewise.
20389         * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
20390         * locale/loadlocale.c (_nl_load_locale): Likewise.
20391         * login/utmp_file.c (setutent_file): Likewise.
20392         * misc/daemon.c (daemon): Likewise.
20393         * nss/nss_db/db-open.c (internal_setent): Likewise.
20394         * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
20395         * sysdeps/posix/libc_fatal.c (__libc_message): Likewise.
20396         * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
20397         (__opendir): Likewise.
20398         * sysdeps/posix/spawni.c (__spawni_child): Likewise.
20399         * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
20400         * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
20401         (gethostid): Likewise.
20402         * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
20403         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
20404         Likewise.
20405         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
20406         * sysdeps/unix/sysv/linux/grantpt.c (__close_all_fds): Likewise.
20407         * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
20408         * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
20409         Likewise.
20410         * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
20411         Likewise.
20412         * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
20413         Likewise.
20414         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c (__get_clockfreq):
20415         Likewise.
20416         * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
20417         Likewise.
20418         * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
20419         Likewise.
20420         * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
20421         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
20422
20423 2017-08-17  Wilco Dijkstra  <wdijkstr@arm.com>
20424
20425         * benchtests/bench-skeleton.c (main): Add support for
20426         latency benchmarking.
20427         * benchtests/scripts/bench.py: Add support for latency benchmarking.
20428
20429 2017-08-17  H.J. Lu  <hongjiu.lu@intel.com>
20430
20431         * Makeconfig (+link-pie-before-libc): Add CRT-* hook to override
20432         the startup object.
20433
20434 2017-08-17  Florian Weimer  <fweimer@redhat.com>
20435
20436         * include/sys/socket.h (__opensock): Remove internal_function.
20437         * socket/opensock.c (__opensock): Likewise.
20438         * sysdeps/unix/sysv/linux/opensock.c (__opensock): Likewise.
20439
20440 2017-08-16  Joseph Myers  <joseph@codesourcery.com>
20441
20442         [BZ #21944]
20443         * signal/bits/types/__sigval_t.h: New file.
20444         * signal/Makefile (headers): Add bits/types/__sigval_t.h.
20445         * signal/bits/types/sigval_t.h: Include <bits/types/__sigval_t.h>
20446         and define sigval_t using __sigval_t.
20447         * include/bits/types/__sigval_t.h: New file.
20448         * bits/types/sigevent_t.h: Include <bits/types/__sigval_t.h>
20449         instead of <bits/types/__sigval_t.h>.
20450         (struct sigevent): Use __sigval_t instead of sigval_t.
20451         * bits/types/siginfo_t.h: Include <bits/types/__sigval_t.h>
20452         instead of <bits/types/__sigval_t.h>.
20453         (siginfo_t): Use __sigval_t instead of sigval_t.
20454         * sysdeps/unix/sysv/linux/bits/types/sigevent_t.h: Include
20455         <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
20456         (struct sigevent): Use __sigval_t instead of sigval_t.
20457         * sysdeps/unix/sysv/linux/bits/types/siginfo_t.h: Include
20458         <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
20459         (siginfo_t): Use __sigval_t instead of sigval_t.
20460         * signal/signal.h [__USE_MISC]: Include <bits/types/sigval_t.h>.
20461
20462 2017-08-16  H.J. Lu  <hongjiu.lu@intel.com>
20463
20464         * NEWS: Remove "[Add new features here]" for 2.27.
20465
20466 2017-08-16  Joseph Myers  <joseph@codesourcery.com>
20467
20468         * sysdeps/unix/sysv/linux/sh/localplt.data: Allow abort in
20469         libc.so.
20470
20471 2017-08-16  H.J. Lu  <hongjiu.lu@intel.com>
20472
20473         * NEWS: Mention x86-64 FMA optimization.
20474
20475 2017-08-16  H.J. Lu  <hongjiu.lu@intel.com>
20476
20477         [BZ #21912]
20478         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
20479         Add e_expf-fma.
20480         * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: New file.
20481         * sysdeps/x86_64/fpu/multiarch/e_expf.c: Likewise.
20482         * sysdeps/x86_64/fpu/multiarch/ifunc-fma.h: Likewise.
20483
20484 2017-08-16  Andreas Schwab  <schwab@suse.de>
20485
20486         [BZ #16750]
20487         CVE-2009-5064
20488         * elf/ldd.bash.in: Never run file directly.
20489
20490 2017-08-15  H.J. Lu  <hongjiu.lu@intel.com>
20491
20492         [BZ #21955]
20493         * sysdeps/x86_64/fpu/e_expf.S (L(SP_RANGE)): Aligned to 8 bytes.
20494         (L(SP_INF_0)): Likewise.
20495
20496 2017-08-15  Florian Weimer  <fweimer@redhat.com>
20497
20498         * gmon/Makefile (tests-special): Add tst-gmon-prof only if
20499         run-built-tests.
20500
20501 2017-08-15  Florian Weimer  <fweimer@redhat.com>
20502
20503         Remove BROKEN_THREAD_SIGNALS support for LinuxThreads.
20504         * sysdeps/pthread/aio_misc.c (__aio_enqueue_request): Remove
20505         BROKEN_THREAD_SIGNALS code.
20506         * sysdeps/ppthread/aio_misc.h (struct waitlist, struct
20507         request_list): Remove caller_pid member used for
20508         BROKEN_THREAD_SIGNALS.
20509         [BROKEN_THREAD_SIGNALS] (__aio_notify_only): Remove declaration.
20510         * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
20511         Remove BROKEN_THREAD_SIGNALS support.
20512         * sysdeps/pthread/aio_suspend.c (aio_suspend): Likewise.
20513         * sysdeps/pthread/lio_listio.c (lio_listio_internal): Likewise.
20514
20515 2017-08-15  Florian Weimer  <fweimer@redhat.com>
20516
20517         * gmon/Makefile (tests): Add tst-gmon.
20518         (CFLAGS-tst-gmon.c, LDFLAGS-tst-gmon, CRT-tst-gmon, tst-gmon-ENV):
20519         Set.
20520         (tests-special): Add tst-gmon-prof.out.
20521         (tst-gmon.out): Depend on clean-tst-gmon-data.
20522         (clean-tst-gmon-data, tst-gmon-gprof.out): New targets.
20523         * gmon/tst-gmon.c, gmon/tst-gmon-gprof.sh: New files.
20524         * Makeconfig (+link-before-libc): Add CRT-* hook to override the
20525         startup object.
20526         * aclocal.m4 (GPROF): Set and substitute.
20527         * config.amke.in (GPROF): Set.
20528         * configure: Regenerate.
20529
20530 2017-08-15  Gustavo Romero  <gromero@linux.vnet.ibm.com>
20531
20532         * elf/elf.h A (NT_PPC_TAR): New macro.
20533         (NT_PPC_PPR): Likewise.
20534         (NT_PPC_DSCR): Likewise.
20535         (NT_PPC_EBB): Likewise.
20536         (NT_PPC_PMU): Likewise.
20537         (NT_PPC_TM_CGPR): Likewise.
20538         (NT_PPC_TM_CFPR): Likewise.
20539         (NT_PPC_TM_CVMX): Likewise.
20540         (NT_PPC_TM_CVSX): Likewise.
20541         (NT_PPC_TM_SPR): Likewise.
20542         (NT_PPC_TM_CTAR): Likewise.
20543         (NT_PPC_TM_CPPR): Likewise.
20544         (NT_PPC_TM_CDSCR): Likewise.
20545
20546 2017-08-15  Florian Weimer  <fweimer@redhat.com>
20547
20548         * sysdeps/i386/machine-gmon.h (mcount_internal): Declare with
20549         regparm (2) instead of internal_function.
20550         (_MCOUNT_DECL): Adjust.
20551
20552 2017-08-15  Stefan Liebler  <stli@linux.vnet.ibm.com>
20553
20554         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add z14.
20555         * sysdeps/s390/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increased.
20556
20557 2017-08-14  Joseph Myers  <joseph@codesourcery.com>
20558
20559         * conform/data/sys/wait.h-data (si_value): Do not expect for
20560         XPG42.
20561
20562 2017-08-14  Florian Weimer  <fweimer@redhat.com>
20563
20564         [BZ #21962]
20565         NSS: Create stubs for accidentally exported lookup functions.
20566         * grp/initgroups.c (__nss_group_lookup, __nss_lookup_function):
20567         Remove declaration.
20568         * inet/ether_hton.c (__nss_ethers_lookup): Likewise.
20569         (ether_hostton): Call __nss_ethers_lookup2 instead.
20570         * inet/ether_ntoh.c (__nss_ethers_lookup): Remove declaration.
20571         (ether_ntohost): Call __nss_ethers_lookup2 instead.
20572         * inet/getnetgrent_r.c (__nss_netgroup_lookup): Remove declaration.
20573         (setup): Call __nss_netgroup_lookup2 instead.
20574         * nss/Makefile (routines): Add compat-lookup.
20575         * nss/Versions (GLIBC_2.27): Add symbol version.
20576         * nss/XXX-lookup (DB_LOOKUP_FCT): Remove declaration.  Now provided by <nsswitch.h>.
20577         (DB_COMPAT_FCT): Remove.
20578         * nss/compat-lookup.c: New file.
20579         * nss/nsswitch.h: Generate __nss_*_lookup2 function prototypes
20580         from databases.def.
20581         * nss/service-lookup.c (NO_COMPAT): Remove definition.
20582         * sunrpc/netname.c (__nss_publickey_lookup): Remove declaration.
20583         (netname2user): Call __nss_publickey_lookup2 instead.
20584         * sunrpc/publickey.c (__nss_publickey_lookup): Remove declaration.
20585         (getpublickey, getsecretkey): Call __nss_publickey_lookup2
20586         instead.
20587
20588 2017-08-14  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
20589             Sergei Trofimovich  <slyfox@inbox.ru>
20590
20591         [BZ #21908]
20592         * sysdeps/unix/sysv/linux/m68k/mmap_internal.h (MMAP2_PAGE_SHIFT):
20593         Rename to MMAP2_PAGE_UNIT.
20594         * sysdeps/unix/sysv/linux/mmap.c: Include mmap_internal iff
20595         __OFF_T_MATCHES_OFF64_T is not defined.
20596         * sysdeps/unix/sysv/linux/mmap_internal.h (page_unit): Declare as
20597         uint64_t.
20598         (MMAP2_PAGE_UNIT) [MMAP2_PAGE_UNIT == -1]: Redefine to page_unit.
20599         (page_unit) [MMAP2_PAGE_UNIT != -1]: Remove definition.
20600
20601 2017-08-14  Florian Weimer  <fweimer@redhat.com>
20602
20603         i386: Do not set internal_function.
20604         * config.h.in (USE_REGPARMS, internal_function): Remove.
20605         * sysdeps/i386/configure.ac (USE_REGPARMS): Likewise.
20606         * sysdeps/i386/configure (USE_REGPARMS): Likewise.
20607
20608 2017-08-14  Florian Weimer  <fweimer@redhat.com>
20609
20610         * elf/dl-init.c (_dl_init): Remove internal_function.
20611         * sysdeps/generic/ldsodefs.h (_dl_init): Likewise.
20612         * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to _dl_init.
20613
20614 2017-08-14  Florian Weimer  <fweimer@redhat.com>
20615
20616         * elf/rtld.c (_dl_start): Remove internal_function.
20617         * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to
20618         _dl_start.
20619
20620 2017-08-14  Florian Weimer  <fweimer@redhat.com>
20621
20622         * elf/dl-fini.c (_dl_fini): Remove internal_function
20623         * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
20624
20625 2017-08-14  H.J. Lu  <hongjiu.lu@intel.com>
20626
20627         * sysdeps/x86/cpu-features.h (bit_cpu_IBT): New.
20628         (bit_cpu_SHSTK): Likewise.
20629         (index_cpu_IBT): Likewise.
20630         (index_cpu_SHSTK): Likewise.
20631         (reg_IBT): Likewise.
20632         (reg_SHSTK): Likewise.
20633         * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
20634         Handle index_cpu_IBT and index_cpu_SHSTK.
20635
20636 2017-08-14  Mike FABIAN  <mfabian@redhat.com>
20637
20638         [BZ #19982]
20639         * po/fr.po: Fix spelling mistake.
20640
20641 2017-08-13  Florian Weimer  <fweimer@redhat.com>
20642
20643         * elf/dl-addr.c (_dl_addr): Remove internal_function.
20644         * elf/dl-error-skeleton.c (_dl_signal_error, _dl_signal_cerror)
20645         (_dl_catch_error, _dl_receive_error): Likewise.
20646         * elf/dl-open.c (_dl_find_dso_for_object): Likewise.
20647         * elf/dl-tls.c (_dl_allocate_tls_init, _dl_allocate_tls)
20648         (_dl_deallocate_tls): Likewise.
20649         * include/dlfcn.h (_dl_addr): Likewise.
20650         * sysdeps/generic/ldsodefs.h (_dl_signal_error, _dl_signal_cerror)
20651         (_dl_catch_error, _dl_receive_error, _dl_find_dso_for_object)
20652         (_dl_allocate_tls_init, _dl_allocate_tls, _dl_deallocate_tls):
20653         Likewise.
20654
20655 2017-08-13  Florian Weimer  <fweimer@redhat.com>
20656
20657         * include/stdlib.h: (__strtof_nan, __strtod_nan, __strtold_nan)
20658         (__wcstof_nan, __wcstod_nan, __wcstold_nan): Remove
20659         internal_function.
20660         * stdlib/sttod_nan_main.c (STRTOD_NAN): Likewise.
20661
20662 2017-08-13  Florian Weimer  <fweimer@redhat.com>
20663
20664         * elf/dl-support.c (_dl_make_stack_executable_hook): Remove
20665         internal_function.
20666         * nptl/allocatestack.c (__make_stacks_executable): Likewise.
20667         * nptl/pthreadP.h (__make_stacks_executable): Likewise.
20668         * sysdeps/generic/ldsodefs.h (_rtld_global): Remove
20669         internal_function from _dl_make_stack_executable_hook member.
20670         (_dl_make_stack_executable): Remove internal_function.
20671         * sysdeps/mach/hurd/dl-execstack.c (_dl_make_stack_executable):
20672         Likewise.
20673         * sysdeps/unix/sysv/linux/dl-execstack.c
20674         (_dl_make_stack_executable): Likewise.
20675
20676 2017-08-13  Florian Weimer  <fweimer@redhat.com>
20677
20678         * sysdeps/unix/sysv/linux/netlinkaccess.h
20679         (__netlink_assert_response): Remove internal_function.
20680         * sysdeps/unix/sysv/linux/netlink_assert_response.c
20681         (__netlink_assert_response): Likewise.
20682
20683 2017-08-13  Florian Weimer  <fweimer@redhat.com>
20684
20685         * include/rpc/pmap_clnt.h (__libc_rpc_getport): Remove
20686         internal_function.
20687         * sunrpoc/pm_getport.c (__libc_rpc_getport): Likewise.
20688
20689 2017-08-13  Florian Weimer  <fweimer@redhat.com>
20690
20691         * grp/grp-merge.h (__copy_grp, __merge_grp): Remove
20692         internal_function.
20693         * grp/grp-merge.c (__copy_grp, __merge_grp): Likewise.
20694         * inet/netgroup.h (__internal_setnetgrent)
20695         (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
20696         * inet/getnetgrent_r.c (__internal_setnetgrent)
20697         (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
20698         * nss/XXX-lookup.c (DB_LOOKUP_FCT, DB_COMPAT_FCT): Likewise.
20699         * nss/getXXbyYY_r.c (DB_LOOKUP_FCT): Likewise.
20700         * nss/getXXent_r.c (DB_LOOKUP_FCT): Likewise.
20701         * nss/nsswitch.h (db_lookup_function): Likewise.
20702
20703 2017-08-13  Florian Weimer  <fweimer@redhat.com>
20704
20705         * debug/fortify_fail.c (__fortify_fail, __fortify_fail_abort):
20706         Remove internal_function.
20707         * include/stdio.h (__fortify_fail, __fortify_fail_abort): Likewise.
20708         * sysdeps/mach/hurd/i386/____longjmp_chk.S (CALL_FAIL): Pass
20709         message argument on the stack.
20710         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S (CALL_FAIL):
20711         Likeweise.
20712
20713 2017-08-12  Mike FABIAN  <mfabian@redhat.com>
20714
20715         Adapt test case data to the changes in the thousands
20716         separators.
20717
20718         [BZ #20756]
20719         * localedata/tst-langinfo.sh: Adapt test case data.
20720         * stdlib/tst-strfmon_l.c: Likewise.
20721         * stdlib/tst-strtod4.c: Likewise.
20722         * stdlib/tst-strtod5i.c: Likewise.
20723
20724 2017-08-11  Florian Weimer  <fweimer@redhat.com>
20725
20726         [BZ #21242]
20727         * assert/assert.h [__GNUC__ && !__STRICT_ANSI__] (assert):
20728         Suppress pedantic warning resulting from statement expression.
20729         (__ASSERT_FUNCTION): Add missing __extension__.
20730
20731 2017-08-11  Siddhesh Poyarekar  <siddhesh@sourceware.org>
20732
20733         * benchtests/bench-memmove-large.c: Print output in JSON
20734         format.
20735         * benchtests/bench-memmove.c: Likewise.
20736
20737         * benchtests/bench-memccpy.c (do_one_test): Remove checks.
20738         * benchtests/bench-memchr.c (do_one_test): Likewise.
20739         * benchtests/bench-memcpy-large.c (do_one_test): Likewise.
20740         * benchtests/bench-memcpy.c (do_one_test): Likewise.
20741         * benchtests/bench-memmove-large.c (do_one_test): Likewise.
20742         * benchtests/bench-memmove.c (do_one_test): Likewise.
20743         * benchtests/bench-memset-large.c (do_one_test): Likewise.
20744         * benchtests/bench-memset.c (do_one_test): Likewise.
20745         * benchtests/bench-string.h (test_init): Remove memsets.
20746
20747 2017-08-10  Rical Jasan  <ricaljasan@pacific.net>
20748
20749         * manual/lang.texi
20750         (Computing the Width of an Integer Data Type): Rename section to
20751         "Width of an Integer Type".  Remove inaccurate statement regarding
20752         lack of C language facilities for determining width of integer
20753         types, and reorder content to improve flow and context of
20754         discussion.
20755
20756 2017-08-10  Rical Jasan  <ricaljasan@pacific.net>
20757
20758         * lang.texi (va_copy): Change standard from ISO to C99.
20759         (__va_copy): Add standard and header annotation.
20760         Update description for clarity of origins and current use.
20761
20762 2017-08-10  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
20763
20764         [BZ #21941]
20765         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrtf128): Since
20766         xssqrtqp requires operands to be in Vector Registers
20767         (Altivec/VMX), replace the register constraint 'wq' with 'v'.
20768         * sysdeps/powerpc/powerpc64le/power9/fpu/e_sqrtf128.c
20769         (__ieee754_sqrtf128): Likewise.
20770
20771 2017-08-10  Wilco Dijkstra  <wdijkstr@arm.com>
20772
20773         * sysdeps/aarch64/memcmp.S (memcmp):
20774         Rewrite of optimized memcmp.
20775
20776 2017-08-10  Florian Weimer  <fweimer@redhat.com>
20777
20778         Introduce ld.so exceptions.
20779         * sysdeps/generic/ldsodefs.h (struct dl_exception): Define.
20780         (_dl_exception_create, _dl_exception_create_format)
20781         (_dl_exception_free, _dl_signal_exception, _dl_signal_cexception)
20782         (_dl_catch_exception): Declare.
20783         (_dl_catch_error): Update comment.
20784         * elf/dl-error-skeleton.c (struct catch): Replace objname,
20785         errstring, malloced members with exception member.
20786         (_dl_out_of_memory): Remove.
20787         (fatal_error): New function, extracted from _dl_signal_error.
20788         (_dl_signal_exception, _dl_signal_cexception): New functions.
20789         (_dl_signal_error): Call _dl_exception_create to allocate an
20790         exception object.
20791         (_dl_catch_exception): New function, based on _dl_catch_error.
20792         (_dl_catch_error): Implement using _dl_catch_exception.
20793         * elf/dl-exception.c: New file.
20794         * elf/Makefile (dl-routines): Add dl-exception.
20795         (elide-routines.os): Likewise.
20796         * elf/Version (ld/GLIBC_PRIVATE): Add _dl_exception_create,
20797         _dl_exception_create_format, _dl_exception_free.
20798         * elf/dl-deps.c (_dl_map_object_deps): Use _dl_catch_exception and
20799         _dl_signal_exception.
20800         * elf/dl-lookup.c (make_string): Remove.
20801         (_dl_lookup_symbol_x): Use _dl_exception_create_format,
20802         _dl_signal_cexception, _dl_exception_free.
20803         * elf/dl-open.c (_dl_open): Use _dl_catch_exception and
20804         _dl_signal_exception.
20805         * elf/dl-sym.c (do_sym): Likewise.
20806         * elf/dl-version.c (make_string): Remove.
20807         (match_symbol): Use _dl_exception_create_format,
20808         _dl_signal_cexception, _dl_exception_free.
20809         (_dl_check_map_versions): Likewise.
20810         * sysdeps/generic/localplt.data (ld.so): Add _dl_signal_exception,
20811         _dl_catch_exception.
20812         * sysdeps/unix/sysv/linux/aarch64/localplt.data (ld.so): Likewise.
20813         * sysdeps/unix/sysv/linux/alpha/localplt.data (ld.so): Likewise.
20814         * sysdeps/unix/sysv/linux/arm/localplt.data (ld.so): Likewise.
20815         * sysdeps/unix/sysv/linux/hppa/localplt.data (ld.so): Likewise.
20816         * sysdeps/unix/sysv/linux/i386/localplt.data (ld.so): Likewise.
20817         * sysdeps/unix/sysv/linux/ia64/localplt.data (ld.so): Likewise.
20818         * sysdeps/unix/sysv/linux/m68k/localplt.data (ld.so): Likewise.
20819         * sysdeps/unix/sysv/linux/microblaze/localplt.data (ld.so):
20820         Likewise.
20821         * sysdeps/unix/sysv/linux/nios2/localplt.data (ld.so): Likewise.
20822         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data
20823         (ld.so): Likewise.
20824         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data
20825         (ld.so): Likewise.
20826         * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data (ld.so):
20827         Likewise.
20828         * sysdeps/unix/sysv/linux/s390/localplt.data (ld.so): Likewise.
20829         * sysdeps/unix/sysv/linux/sh/localplt.data (ld.so): Likewise.
20830         * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data (ld.so):
20831         Likewise.
20832         * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data (ld.so):
20833         Likewise.
20834         * sysdeps/x86_64/localplt.data (ld.so): Likewise.
20835
20836 2017-08-10  Florian Weimer  <fweimer@redhat.com>
20837
20838         * inet/net-internal.h (__inet6_scopeid_pton): Remove
20839         attribute_hidden, internal_function.
20840         * inet/inet6_scopeid_pton.c (__inet6_scopeid_pton): Remove
20841         internal_function.
20842
20843 2017-08-10  Florian Weimer  <fweimer@redhat.com>
20844
20845         * malloc/malloc.c (get_max_fast): Reimplement as an inline
20846         function which calls __builtin_unreachable.
20847
20848 2017-08-10  Mike FABIAN  <mfabian@redhat.com>
20849
20850         * stdlib/tst-strfmon_l.c: Fix test cases to agree with the changes in
20851         Indian monetary formatting
20852         * stdlib/Makefile: Adapt list of locales needed for the tst-strfmon_l.c
20853         test cases.
20854
20855 2017-08-09  Dmitry V. Levin  <ldv@altlinux.org>
20856
20857         * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (enum __ptrace_request):
20858         Fix typo in comment.
20859
20860         [BZ #21928]
20861         * sysdeps/unix/sysv/linux/sys/ptrace.h (enum __ptrace_flags,
20862         PTRACE_SEIZE_DEVEL): Remove.
20863         * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Likewise.
20864         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
20865         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
20866         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
20867         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
20868
20869 2017-08-09  Joseph Myers  <joseph@codesourcery.com>
20870
20871         * posix/bits/types.h (__qaddr_t): Remove.
20872
20873         [BZ #21457]
20874         * sysdeps/arm/sys/ucontext.h (__ctx): Move undefine further down.
20875         (ucontext_t): Use __ctx with uc_flags.  Rename uc_filler to
20876         __glibc_reserved1.
20877         * sysdeps/generic/sys/ucontext.h (__ctx): New macro.
20878         (ucontext_t): Use __ctx with uc_flags.
20879         * sysdeps/i386/sys/ucontext.h (__ctx): Move undefine further down.
20880         (__ctxt): Likewise.
20881         (ucontext_t): Use __ctx with uc_flags.  Rename uc_filler to
20882         __glibc_reserved1.
20883         * sysdeps/m68k/sys/ucontext.h (__ctx): Move undefine further down.
20884         (ucontext_t): Use __ctx with uc_flags.  Rename uc_filler to
20885         __glibc_reserved1.
20886         * sysdeps/mips/sys/ucontext.h (__ctx): Move undefine further down.
20887         (ucontext_t): Use __ctx with uc_flags.  Rename uc_filler to
20888         __glibc_reserved1.
20889         * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (__ctx): New
20890         macro.
20891         (ucontext_t): Use __ctx with uc_flags.
20892         * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h (__ctx): New macro.
20893         (ucontext_t): Use __ctx with uc_flags.
20894         * sysdeps/unix/sysv/linux/arm/sys/ucontext.h (__ctx): New macro.
20895         (ucontext_t): Use __ctx with uc_flags and uc_regspace.
20896         * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h (__ctx): New macro.
20897         (ucontext_t): Use __ctx with uc_flags.
20898         * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h (__ctx): Move
20899         undefine further down.
20900         (ucontext_t): Use __ctx with uc_flags.  Rename uc_filler to
20901         __glibc_reserved1.
20902         * sysdeps/unix/sysv/linux/mips/sys/ucontext.h (__ctx): Move
20903         undefine further down.
20904         (ucontext_t): Use __ctx with uc_flags.
20905         * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h (__ctx): Move
20906         undefine further down.
20907         (ucontext_t): Use __ctx with uc_flags.
20908         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (ucontext_t): Use
20909         __ctx with uc_flags, uc_regs_ptr, uc_regs and uc_reg_space.
20910         Rename uc_pad to __glibc_reserved1.
20911         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__ctx): Move
20912         undefine further down.
20913         (ucontext_t): Use __ctx with uc_flags.
20914         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h (__ctx): Move undefine
20915         further down.
20916         (ucontext_t): Use __ctx with uc_flags.
20917         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (ucontext_t): Use
20918         __ctx with uc_flags.
20919         * sysdeps/unix/sysv/linux/tile/sys/ucontext.h (__ctx): New macro.
20920         (ucontext_t): Use __ctx with uc_flags.
20921         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h (ucontext_t): Use
20922         __ctx with uc_flags.
20923
20924 2017-08-09  Florian Weimer  <fweimer@redhat.com>
20925
20926         [BZ #21932]
20927         * nss/getXXbyYY_r.c (REENTRANT_NAME): Call __resolv_context_put
20928         before early return.
20929
20930 2017-08-09  Andreas Schwab  <schwab@suse.de>
20931
20932         [BZ #21041]
20933         * sysdeps/unix/sysv/linux/s390/pt-longjmp.c: Update reference to
20934         renamed alias.
20935
20936         [BZ #21041]
20937         * nptl/Makefile (tests) [$(build-shared) = yes]: Add
20938         tst-compat-forwarder.
20939         (modules-names): Add tst-compat-forwarder-mod.
20940         ($(objpfx)tst-compat-forwarder): Depend on
20941         $(objpfx)tst-compat-forwarder-mod.so.
20942         * nptl/tst-compat-forwarder.c: New file.
20943         * nptl/tst-compat-forwarder-mod.c: New file.
20944
20945 2017-08-09  Siddhesh Poyarekar  <siddhesh@sourceware.org>
20946
20947         * sysdeps/aarch64/multiarch/memcpy_falkor.S: Fix code style in
20948         comments.
20949
20950         * manual/tunables.texi (Tunable glibc.tune.cpu): Add falkor.
20951         * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
20952         memcpy_falkor.
20953         * sysdeps/aarch64/multiarch/ifunc-impl-list.c (MAX_IFUNC):
20954         Bump.
20955         (__libc_ifunc_impl_list): Add __memcpy_falkor.
20956         * sysdeps/aarch64/multiarch/memcpy.c: Likewise.
20957         * sysdeps/aarch64/multiarch/memcpy_falkor.S: New file.
20958         * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
20959         Add falkor.
20960         * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_FALKOR):
20961         New macro.
20962
20963 2017-08-08  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
20964
20965         [BZ #759]
20966         * manual/setjmp.texi (getcontex): Document uc_stack value
20967         compatibility differences.
20968
20969 2017-08-08  Joseph Myers  <joseph@codesourcery.com>
20970
20971         * malloc/mcheck.c (old_free_hook): Use void * instead of __ptr_t.
20972         (old_malloc_hook): Likewise.
20973         (old_memalign_hook): Likewise.
20974         (old_realloc_hook): Likewise.
20975         (struct hdr): Likewise.
20976         (flood): Likewise.
20977         (freehook): Likewise.
20978         (mallochook): Likewise.
20979         (memalignhook): Likewise.
20980         (reallochook): Likewise.
20981         (mprobe): Likewise.
20982         * malloc/mtrace.c (mallwatch): Likewise.
20983         (tr_old_free_hook): Likewise.
20984         (tr_old_malloc_hook): Likewise.
20985         (tr_old_realloc_hook): Likewise.
20986         (tr_old_memalign_hook): Likewise.
20987         (tr_where): Likewise.
20988         (lock_and_info): Likewise.
20989         (tr_freehook): Likewise.
20990         (tr_mallochook): Likewise.
20991         (tr_reallochook): Likewise.
20992         (tr_memalignhook): Likewise.
20993         * misc/err.h [!__GNUC_VA_LIST] (__gnuc_va_list): Likewise.
20994         * misc/mmap.c (__mmap): Likewise.
20995         * misc/mmap64.c (__mmap64): Likewise.
20996         * misc/mprotect.c (__mprotect): Likewise.
20997         * misc/msync.c (msync): Likewise.
20998         * misc/munmap.c (__munmap): Likewise.
20999         * posix/posix_madvise.c (posix_madvise): Likewise.
21000         * socket/send.c (__send): Likewise.
21001         * socket/sendto.c (__sendto): Likewise.
21002         * socket/setsockopt.c (__setsockopt): Likewise.
21003         * string/memcmp.c (__ptr_t): Remove macro.
21004         (MEMCMP): Use void * instead of ptr_t.
21005         * string/memrchr.c (__ptr_t): Remove macro.
21006         (__memrchr): Use void * instead of ptr_t.
21007         * sysdeps/mach/hurd/dl-sysdep.c (__mmap): Likewise.
21008         * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
21009         * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
21010         * sysdeps/mach/mprotect.c (__mprotect): Likewise.
21011         * sysdeps/mach/msync.c (msync): Likewise.
21012         * sysdeps/mach/munmap.c (__munmap): Likewise.
21013         * sysdeps/mips/bits/setjmp.h (struct __jmp_buf_internal_tag):
21014         Likewise.
21015         * sysdeps/posix/getcwd.c (__getcwd): Likewise.
21016         * sysdeps/powerpc/powerpc32/memset.S (memset): Likewise.
21017         * sysdeps/powerpc/powerpc32/power4/memcpy.S (memcpy): Likewise.
21018         * sysdeps/powerpc/powerpc32/power4/memset.S (memset): Likewise.
21019         * sysdeps/powerpc/powerpc32/power6/memcpy.S (memcpy): Likewise.
21020         * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
21021         * sysdeps/powerpc/powerpc32/power7/memcpy.S (memcpy): Likewise.
21022         * sysdeps/powerpc/powerpc32/power7/mempcpy.S (__mempcpy):
21023         Likewise.
21024         * sysdeps/powerpc/powerpc32/power7/memset.S (memset): Likewise.
21025         * sysdeps/powerpc/powerpc64/memcpy.S (memcpy): Likewise.
21026         * sysdeps/powerpc/powerpc64/memset.S (memset): Likewise.
21027         * sysdeps/powerpc/powerpc64/power4/memcpy.S (memcpy): Likewise.
21028         * sysdeps/powerpc/powerpc64/power4/memset.S (memset): Likewise.
21029         * sysdeps/powerpc/powerpc64/power6/memcpy.S (memcpy): Likewise.
21030         * sysdeps/powerpc/powerpc64/power6/memset.S (memset): Likewise.
21031         * sysdeps/powerpc/powerpc64/power7/memcpy.S (memcpy): Likewise.
21032         * sysdeps/powerpc/powerpc64/power7/mempcpy.S (__mempcpy):
21033         Likewise.
21034         * sysdeps/powerpc/powerpc64/power7/memset.S (memset): Likewise.
21035         * sysdeps/powerpc/powerpc64/power8/memset.S (memset): Likewise.
21036         * sysdeps/tile/memcmp.c (__ptr_t): Remove macro.
21037         (MEMCMP): Use void * instead of ptr_t.
21038         * sysdeps/unix/sysv/linux/alpha/oldglob.c (old_glob_t): Likewise.
21039         * sysdeps/unix/sysv/linux/mmap.c (__mmap): Likewise.
21040
21041 2017-08-08  Florian Weimer  <fweimer@redhat.com>
21042
21043         * sysdeps/posix/getaddrinfo.c (gaih_inet): Remove unreachable
21044         return statement.
21045
21046 2017-08-08  H.J. Lu  <hongjiu.lu@intel.com>
21047
21048         [BZ #21913]
21049         * csu/libc-tls.c: Include <startup.h> first.
21050         (__libc_setup_tls): Call _startup_fatal instead of __libc_fatal.
21051         * elf/dl-tunables.c: Include <startup.h> first.
21052         * include/libc-symbols.h (BUILD_PIE_DEFAULT): New.
21053         * sysdeps/generic/startup.h: New file.
21054         * sysdeps/unix/sysv/linux/i386/startup.h: Likewise.
21055         * sysdeps/unix/sysv/linux/i386/brk.c [BUILD_PIE_DEFAULT != 0]
21056         (I386_USE_SYSENTER): New.  Defined to 0.
21057
21058 2017-08-08  Andreas Schwab  <schwab@suse.de>
21059
21060         [BZ #21041]
21061         * nptl/pt-longjmp.c (longjmp, siglongjmp): Don't use IFUNC resolver.
21062         * nptl/pt-system.c (system): Likewise.
21063
21064 2017-08-07  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
21065
21066         [BZ #21780]
21067         * sysdeps/posix/preadv2.c (preadv2): Use ENOTSUP instead of
21068         EOPNOTSUPP.
21069         * sysdeps/posix/preadv64v2.c (preadv64v2): Likewise.
21070         * sysdeps/posix/pwritev2.c (pwritev2): Likewise.
21071         * sysdeps/posix/pwritev64v2.c (pwritev64v2): Likewise.
21072         * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Likewise.
21073         * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
21074         * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
21075         * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likewise.
21076
21077 2017-08-07  Joseph Myers  <joseph@codesourcery.com>
21078
21079         [BZ #21899]
21080         * bits/sigaction.h (struct sigaction): Define sa_handler and
21081         sa_sigaction using union also for [__USE_XOPEN_EXTENDED].
21082         (SA_ONSTACK): Change [__USE_UNIX98] condition to
21083         [__USE_XOPEN_EXTENDED].
21084         (SA_RESTART): Likewise.
21085         (SA_NODEFER): Likewise.
21086         (SA_RESETHAND): Likewise.
21087         * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h
21088         (struct sigaction): Define sa_handler and sa_sigaction using union
21089         also for [__USE_XOPEN_EXTENDED].
21090         (SA_ONSTACK): Change [__USE_UNIX98] condition to
21091         [__USE_XOPEN_EXTENDED].
21092         (SA_RESTART): Likewise.
21093         (SA_NODEFER): Likewise.
21094         (SA_RESETHAND): Likewise.
21095         * sysdeps/unix/sysv/linux/bits/sigaction.h
21096         (struct sigaction): Define sa_handler and sa_sigaction using union
21097         also for [__USE_XOPEN_EXTENDED].
21098         (SA_ONSTACK): Change [__USE_UNIX98] condition to
21099         [__USE_XOPEN_EXTENDED].
21100         (SA_RESTART): Likewise.
21101         (SA_NODEFER): Likewise.
21102         (SA_RESETHAND): Likewise.
21103         * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h
21104         (struct sigaction): Define sa_handler and sa_sigaction using union
21105         also for [__USE_XOPEN_EXTENDED].
21106         (SA_ONSTACK): Change [__USE_UNIX98] condition to
21107         [__USE_XOPEN_EXTENDED].
21108         (SA_RESTART): Likewise.
21109         (SA_NODEFER): Likewise.
21110         (SA_RESETHAND): Likewise.
21111         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h
21112         (struct sigaction): Define sa_handler and sa_sigaction using union
21113         also for [__USE_XOPEN_EXTENDED].
21114         (SA_ONSTACK): Change [__USE_UNIX98] condition to
21115         [__USE_XOPEN_EXTENDED].
21116         (SA_RESTART): Likewise.
21117         (SA_NODEFER): Likewise.
21118         (SA_RESETHAND): Likewise.
21119         * sysdeps/unix/sysv/linux/mips/bits/sigaction.h
21120         (struct sigaction): Define sa_handler and sa_sigaction using union
21121         also for [__USE_XOPEN_EXTENDED].
21122         (SA_ONSTACK): Change [__USE_UNIX98] condition to
21123         [__USE_XOPEN_EXTENDED].
21124         (SA_RESTART): Likewise.
21125         (SA_NODEFER): Likewise.
21126         (SA_RESETHAND): Likewise.
21127         * sysdeps/unix/sysv/linux/s390/bits/sigaction.h
21128         (struct sigaction): Define sa_handler and sa_sigaction using union
21129         also for [__USE_XOPEN_EXTENDED].
21130         (SA_ONSTACK): Change [__USE_UNIX98] condition to
21131         [__USE_XOPEN_EXTENDED].
21132         (SA_RESTART): Likewise.
21133         (SA_NODEFER): Likewise.
21134         (SA_RESETHAND): Likewise.
21135         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h
21136         (struct sigaction): Define sa_handler and sa_sigaction using union
21137         also for [__USE_XOPEN_EXTENDED].
21138         (SA_ONSTACK): Change [__USE_UNIX98] condition to
21139         [__USE_XOPEN_EXTENDED].
21140         (SA_RESTART): Likewise.
21141         (SA_NODEFER): Likewise.  Define directly rather than as alias.
21142         (SA_RESETHAND): Likewise.
21143         (SA_INTERRUPT): Define only for [__USE_MISC].
21144         (SA_NOMASK): Define as alias of SA_NODEFER, only for [__USE_MISC].
21145         (SA_ONESHOT): Define as alias of SA_RESETHAND, only for
21146         [__USE_MISC].
21147         (SA_STACK): Define only for [__USE_MISC].
21148         * sysdeps/unix/sysv/linux/tile/bits/sigaction.h
21149         (struct sigaction): Define sa_handler and sa_sigaction using union
21150         also for [__USE_XOPEN_EXTENDED].
21151         (SA_ONSTACK): Change [__USE_UNIX98] condition to
21152         [__USE_XOPEN_EXTENDED].
21153         (SA_RESTART): Likewise.
21154         (SA_NODEFER): Likewise.
21155         (SA_RESETHAND): Likewise.
21156         (SA_NOPTRACE): Define only for [__USE_MISC].
21157
21158         * catgets/catgets.c (catgets): Use uintN_t instead of u_intN_t.
21159         * catgets/catgetsinfo.h (struct catalog_obj): Likewise.
21160         (struct catalog_info): Likewise.
21161         * inet/htontest.c (lo): Likewise.
21162         (foo): Likewise.
21163         * inet/inet_lnaof.c (inet_lnaof): Likewise.
21164         * inet/inet_net.c (inet_network): Likewise.
21165         * inet/inet_netof.c (inet_netof): Likewise.
21166         * inet/rcmd.c (__ivaliduser): Likewise.
21167         (iruserok): Likewise.
21168         * locale/loadlocale.c (_nl_intern_locale_data): Likewise.
21169         * locale/programs/locale-spec.c (locale_special): Likewise.
21170         * nis/nis_findserv.c (struct findserv_req): Likewise.
21171         (__nis_findfastest_with_timeout): Likewise.
21172         * nss/test-netdb.c (test_network): Likewise.
21173         * resolv/inet_neta.c (inet_neta): Likewise.
21174         * resolv/ns_date.c (ns_datetosecs): Likewise.
21175         (SECS_PER_DAY): Likewise.
21176         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r):
21177         Likewise.
21178         * resolv/res_comp.c (__putlong): Likewise.
21179         (__putshort): Likewise.
21180         (_getlong): Likewise.
21181         (_getshort): Likewise.
21182         * resolv/res_debug.c (p_time): Likewise.
21183         (precsize_ntoa): Likewise.
21184         (precsize_aton): Likewise.
21185         (latlon2ul): Likewise.
21186         (loc_aton): Likewise.
21187         (loc_ntoa): Likewise.
21188         * resolv/res_hconf.c (struct netaddr): Likewise.
21189         (_res_hconf_reorder_addrs): Likewise.
21190         * sunrpc/clnt_tcp.c (clnttcp_call): Likewise.
21191         (clnttcp_control): Likewise.
21192         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
21193         (clntudp_control): Likewise.
21194         * sunrpc/clnt_unix.c (clntunix_call): Likewise.
21195         (clntunix_control): Likewise.
21196         * sunrpc/pmap_rmt.c (clnt_broadcast): Likewise.
21197         * sunrpc/rpc/auth.h (union des_block): Likewise.
21198         * sunrpc/tst-udp-nonblocking.c (do_test): Likewise.
21199         * sunrpc/xdr_rec.c (struct rec_strm): Likewise.
21200         (xdrrec_create): Likewise.
21201         (xdrrec_endofrecord): Likewise.
21202         (flush_out): Likewise.
21203         * sunrpc/xdr_stdio.c (xdrstdio_getlong): Likewise.
21204         (xdrstdio_putlong): Likewise.
21205         * sysdeps/unix/sysv/linux/errqueue.h (struct sock_extended_err):
21206         Likewise.
21207
21208         * misc/sys/cdefs.h (__long_double_t): Remove.
21209         * stdio-common/printf_fp.c (__printf_fp_l): Use long double
21210         instead of __long_double_t,
21211         * stdlib/strfmon_l.c (__vstrfmon_l): Likewise.
21212
21213 2017-08-07  Siddhesh Poyarekar  <siddhesh@sourceware.org>
21214
21215         * benchtests/scripts/compare_strings.py: Avoid display error when
21216         running on a text terminal.
21217
21218         * benchtests/scripts/compare_strings.py (main): Add an
21219         optional -base option.
21220         (process_results): New argument base_func.
21221
21222         * benchtests/bench-memcpy.c (test_main): Use TEST_NAME instead of
21223         hardcoding memcpy.
21224         * benchtests/bench-memcpy-large.c (test_name): Likewise.
21225         * benchtests/bench-memcpy-random.c (test_name): Likewise.
21226
21227 2017-08-07  Andreas Schwab  <schwab@suse.de>
21228
21229         * elf/Makefile ($(objpfx)tst-pathopt.out): Redirect output to target.
21230         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Likewise.
21231         * intl/Makefile ($(objpfx)tst-gettext.out)
21232         ($(objpfx)tst-translit.out, $(objpfx)tst-gettext2.out)
21233         ($(objpfx)tst-gettext4.out, $(objpfx)tst-gettext6.out): Likewise.
21234         * libio/Makefile ($(objpfx)test-freopen.out): Likewise.
21235         * malloc/Makefile ($(objpfx)tst-mtrace.out): Likewise.
21236         * nptl/Makefile ($(objpfx)tst-tls6.out): Likewise.
21237         * posix/Makefile ($(objpfx)globtest.out)
21238         ($(objpfx)wordexp-tst.out, $(objpfx)tst-getconf.out): Likewise.
21239         * stdio-common/Makefile ($(objpfx)tst-unbputc.out)
21240         ($(objpfx)tst-printf.out): Likewise.
21241         * stdlib/Makefile ($(objpfx)tst-fmtmsg.out)
21242         ($(objpfx)tst-setcontext3.out): Likewise.
21243
21244 2017-08-07  H.J. Lu  <hongjiu.lu@intel.com>
21245
21246         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
21247         Add e_exp-fma, e_log-fma, e_pow-fma, s_atan-fma, e_asin-fma,
21248         e_atan2-fma, s_sin-fma, s_tan-fma, mplog-fma, mpa-fma,
21249         slowexp-fma, slowpow-fma, sincos32-fma, doasin-fma, dosincos-fma,
21250         halfulp-fma, mpexp-fma, mpatan2-fma, mpatan-fma, mpsqrt-fma,
21251         and mptan-fma.
21252         (CFLAGS-doasin-fma.c): New.
21253         (CFLAGS-dosincos-fma.c): Likewise.
21254         (CFLAGS-e_asin-fma.c): Likewise.
21255         (CFLAGS-e_atan2-fma.c): Likewise.
21256         (CFLAGS-e_exp-fma.c): Likewise.
21257         (CFLAGS-e_log-fma.c): Likewise.
21258         (CFLAGS-e_pow-fma.c): Likewise.
21259         (CFLAGS-halfulp-fma.c): Likewise.
21260         (CFLAGS-mpa-fma.c): Likewise.
21261         (CFLAGS-mpatan-fma.c): Likewise.
21262         (CFLAGS-mpatan2-fma.c): Likewise.
21263         (CFLAGS-mpexp-fma.c): Likewise.
21264         (CFLAGS-mplog-fma.c): Likewise.
21265         (CFLAGS-mpsqrt-fma.c): Likewise.
21266         (CFLAGS-mptan-fma.c): Likewise.
21267         (CFLAGS-s_atan-fma.c): Likewise.
21268         (CFLAGS-sincos32-fma.c): Likewise.
21269         (CFLAGS-slowexp-fma.c): Likewise.
21270         (CFLAGS-slowpow-fma.c): Likewise.
21271         (CFLAGS-s_sin-fma.c): Likewise.
21272         (CFLAGS-s_tan-fma.c): Likewise.
21273         * sysdeps/x86_64/fpu/multiarch/doasin-fma.c: New file.
21274         * sysdeps/x86_64/fpu/multiarch/dosincos-fma.c: Likewise.
21275         * sysdeps/x86_64/fpu/multiarch/e_asin-fma.c: Likewise.
21276         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma.c: Likewise.
21277         * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c: Likewise.
21278         * sysdeps/x86_64/fpu/multiarch/e_log-fma.c: Likewise.
21279         * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c: Likewise.
21280         * sysdeps/x86_64/fpu/multiarch/halfulp-fma.c: Likewise.
21281         * sysdeps/x86_64/fpu/multiarch/ifunc-avx-fma4.h: Likewise.
21282         * sysdeps/x86_64/fpu/multiarch/ifunc-fma4.h: Likewise.
21283         * sysdeps/x86_64/fpu/multiarch/mpa-fma.c: Likewise.
21284         * sysdeps/x86_64/fpu/multiarch/mpatan-fma.c: Likewise.
21285         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma.c: Likewise.
21286         * sysdeps/x86_64/fpu/multiarch/mpexp-fma.c: Likewise.
21287         * sysdeps/x86_64/fpu/multiarch/mplog-fma.c: Likewise.
21288         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma.c: Likewise.
21289         * sysdeps/x86_64/fpu/multiarch/mptan-fma.c: Likewise.
21290         * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c: Likewise.
21291         * sysdeps/x86_64/fpu/multiarch/s_sin-fma.c: Likewise.
21292         * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c: Likewise.
21293         * sysdeps/x86_64/fpu/multiarch/sincos32-fma.c: Likewise.
21294         * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
21295         * sysdeps/x86_64/fpu/multiarch/slowpow-fma.c: Likewise.
21296         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Rewrite.
21297         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
21298         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
21299         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
21300         * sysdeps/x86_64/fpu/multiarch/e_pow.c: Likewise.
21301         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
21302         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
21303         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
21304
21305 2017-08-04  Joseph Myers  <joseph@codesourcery.com>
21306
21307         * sysdeps/generic/math_private.h (__EXPR_FLT128): Remove macro.
21308         (min_of_type_f): New macro.
21309         (min_of_type_): Likewise.
21310         (min_of_type_l): Likewise.
21311         (min_of_type_f128): Likewise.
21312         (min_of_type): Define using __MATH_TG and taking an expression
21313         argument.
21314         (math_check_force_underflow): Pass expression instead of type to
21315         min_of_type.
21316         (math_check_force_underflow_nonneg): Likewise.
21317
21318 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
21319
21320         * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
21321         (LOAD_RTLD_GLOBAL_RO_RDX, HAS_FEATURE, LOAD_FUNC_GOT_EAX,
21322         HAS_CPU_FEATURE, HAS_ARCH_FEATURE): Removed.
21323
21324 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
21325
21326         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
21327         bcopy-ia32, bzero-ia32, rawmemchr-ia32 memchr-ia32,
21328         memcmp-ia32, memcpy-ia32, memmove-ia32, mempcpy-ia32,
21329         memset-ia32, strcat-ia32, strchr-ia32, strrchr-ia32,
21330         strcpy-ia32, strcmp-ia32, strcspn-ia32, strpbrk-ia32,
21331         strspn-ia32, strlen-ia32, stpcpy-ia32, stpncpy-ia32,
21332         memcpy_chk-nonshared, mempcpy_chk-nonshared,
21333         memmove_chk-nonshared and memset_chk-nonshared
21334         * sysdeps/i386/i686/multiarch/bcopy-ia32.S: New file.
21335         * sysdeps/i386/i686/multiarch/bcopy.c: Likewise.
21336         * sysdeps/i386/i686/multiarch/bzero-ia32.S: Likewise.
21337         * sysdeps/i386/i686/multiarch/bzero.c: Likewise.
21338         * sysdeps/i386/i686/multiarch/ifunc-memmove.h: Likewise.
21339         * sysdeps/i386/i686/multiarch/ifunc-memset.h: Likewise.
21340         * sysdeps/i386/i686/multiarch/ifunc-sse2-bsf.h: Likewise.
21341         * sysdeps/i386/i686/multiarch/ifunc-sse2-ssse3.h: Likewise.
21342         * sysdeps/i386/i686/multiarch/ifunc-sse2.h: Likewise.
21343         * sysdeps/i386/i686/multiarch/ifunc-sse4_2.h: Likewise.
21344         * sysdeps/i386/i686/multiarch/ifunc-ssse3-sse4_2.h: Likewise.
21345         * sysdeps/i386/i686/multiarch/memchr-ia32.S: Likewise.
21346         * sysdeps/i386/i686/multiarch/memchr.c: Likewise.
21347         * sysdeps/i386/i686/multiarch/memcmp-ia32.S: Likewise.
21348         * sysdeps/i386/i686/multiarch/memcmp.c: Likewise.
21349         * sysdeps/i386/i686/multiarch/memcpy-ia32.S: Likewise.
21350         * sysdeps/i386/i686/multiarch/memcpy.c: Likewise.
21351         * sysdeps/i386/i686/multiarch/memcpy_chk-nonshared.S: Likewise.
21352         * sysdeps/i386/i686/multiarch/memcpy_chk.c: Likewise.
21353         * sysdeps/i386/i686/multiarch/memmove-ia32.S: Likewise.
21354         * sysdeps/i386/i686/multiarch/memmove.c: Likewise.
21355         * sysdeps/i386/i686/multiarch/memmove_chk-nonshared.S: Likewise.
21356         * sysdeps/i386/i686/multiarch/memmove_chk.c: Likewise.
21357         * sysdeps/i386/i686/multiarch/mempcpy-ia32.S: Likewise.
21358         * sysdeps/i386/i686/multiarch/mempcpy.c: Likewise.
21359         * sysdeps/i386/i686/multiarch/mempcpy_chk-nonshared.S: Likewise.
21360         * sysdeps/i386/i686/multiarch/mempcpy_chk.c: Likewise.
21361         * sysdeps/i386/i686/multiarch/memrchr.c: Likewise.
21362         * sysdeps/i386/i686/multiarch/memset-ia32.S: Likewise.
21363         * sysdeps/i386/i686/multiarch/memset.c: Likewise.
21364         * sysdeps/i386/i686/multiarch/memset_chk-nonshared.S: Likewise.
21365         * sysdeps/i386/i686/multiarch/rawmemchr-ia32.S: Likewise.
21366         * sysdeps/i386/i686/multiarch/rawmemchr.c: Likewise.
21367         * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
21368         * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
21369         * sysdeps/i386/i686/multiarch/stpcpy.c: Likewise.
21370         * sysdeps/i386/i686/multiarch/stpncpy-ia32.S: Likewise.
21371         * sysdeps/i386/i686/multiarch/stpncpy.c: Likewise.
21372         * sysdeps/i386/i686/multiarch/strcasecmp.c: Likewise.
21373         * sysdeps/i386/i686/multiarch/strcasecmp_l.c: Likewise.
21374         * sysdeps/i386/i686/multiarch/strcat-ia32.S: Likewise.
21375         * sysdeps/i386/i686/multiarch/strcat.c: Likewise.
21376         * sysdeps/i386/i686/multiarch/strchr-ia32.S: Likewise.
21377         * sysdeps/i386/i686/multiarch/strchr.c: Likewise.
21378         * sysdeps/i386/i686/multiarch/strcmp-ia32.S: Likewise.
21379         * sysdeps/i386/i686/multiarch/strcmp.c: Likewise.
21380         * sysdeps/i386/i686/multiarch/strcpy-ia32.S: Likewise.
21381         * sysdeps/i386/i686/multiarch/strcpy.c: Likewise.
21382         * sysdeps/i386/i686/multiarch/strcspn-ia32.S: Likewise.
21383         * sysdeps/i386/i686/multiarch/strcspn.c: Likewise.
21384         * sysdeps/i386/i686/multiarch/strlen-ia32.S: Likewise.
21385         * sysdeps/i386/i686/multiarch/strlen.c: Likewise.
21386         * sysdeps/i386/i686/multiarch/strncase.c: Likewise.
21387         * sysdeps/i386/i686/multiarch/strncase_l.c: Likewise.
21388         * sysdeps/i386/i686/multiarch/strncat.c: Likewise.
21389         * sysdeps/i386/i686/multiarch/strncmp.c: Likewise.
21390         * sysdeps/i386/i686/multiarch/strncpy.c: Likewise.
21391         * sysdeps/i386/i686/multiarch/strnlen.c: Likewise.
21392         * sysdeps/i386/i686/multiarch/strpbrk-ia32.S: Likewise.
21393         * sysdeps/i386/i686/multiarch/strpbrk.c: Likewise.
21394         * sysdeps/i386/i686/multiarch/strrchr-ia32.S: Likewise.
21395         * sysdeps/i386/i686/multiarch/strrchr.c: Likewise.
21396         * sysdeps/i386/i686/multiarch/strspn-ia32.S: Likewise.
21397         * sysdeps/i386/i686/multiarch/strspn.c: Likewise.
21398         * sysdeps/i386/i686/multiarch/wcschr.c: Likewise.
21399         * sysdeps/i386/i686/multiarch/wcscmp.c: Likewise.
21400         * sysdeps/i386/i686/multiarch/wcscpy.c: Likewise.
21401         * sysdeps/i386/i686/multiarch/wcslen.c: Likewise.
21402         * sysdeps/i386/i686/multiarch/wcsrchr.c: Likewise.
21403         * sysdeps/i386/i686/multiarch/wmemcmp.c: Likewise.
21404         * sysdeps/i386/i686/multiarch/bcopy.S: Removed.
21405         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
21406         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
21407         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
21408         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
21409         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
21410         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
21411         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
21412         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
21413         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
21414         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
21415         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
21416         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
21417         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
21418         * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
21419         * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
21420         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
21421         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
21422         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
21423         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
21424         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
21425         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
21426         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
21427         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
21428         * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
21429         * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
21430         * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
21431         * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
21432         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
21433         * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
21434         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
21435         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
21436         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
21437         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
21438         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
21439         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
21440         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
21441         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
21442
21443 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
21444
21445         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines)
21446         Add svml_d_cos2_core-sse2, svml_d_cos4_core-sse,
21447         svml_d_cos8_core-avx2, svml_d_exp2_core-sse2,
21448         svml_d_exp4_core-sse, svml_d_exp8_core-avx2,
21449         svml_d_log2_core-sse2, svml_d_log4_core-sse,
21450         svml_d_log8_core-avx2, svml_d_pow2_core-sse2,
21451         svml_d_pow4_core-sse, svml_d_pow8_core-avx2
21452         svml_d_sin2_core-sse2, svml_d_sin4_core-sse,
21453         svml_d_sin8_core-avx2, svml_d_sincos2_core-sse2,
21454         svml_d_sincos4_core-sse, svml_d_sincos8_core-avx2,
21455         svml_s_cosf16_core-avx2, svml_s_cosf4_core-sse2,
21456         svml_s_cosf8_core-sse, svml_s_expf16_core-avx2,
21457         svml_s_expf4_core-sse2, svml_s_expf8_core-sse,
21458         svml_s_logf16_core-avx2, svml_s_logf4_core-sse2,
21459         svml_s_logf8_core-sse, svml_s_powf16_core-avx2,
21460         svml_s_powf4_core-sse2, svml_s_powf8_core-sse,
21461         svml_s_sincosf16_core-avx2, svml_s_sincosf4_core-sse2,
21462         svml_s_sincosf8_core-sse, svml_s_sinf16_core-avx2,
21463         svml_s_sinf4_core-sse2 and svml_s_sinf8_core-sse.
21464         * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h: New file.
21465         * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h: Likewise.
21466         * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-sse4_1.h: Likewise.
21467         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.c: Likewise.
21468         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.c: Likewise.
21469         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.c: Likewise.
21470         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.c: Likewise.
21471         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.c: Likewise.
21472         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.c: Likewise.
21473         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.c: Likewise.
21474         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.c: Likewise.
21475         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.c: Likewise.
21476         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.c: Likewise.
21477         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.c: Likewise.
21478         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.c: Likewise.
21479         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.c: Likewise.
21480         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.c: Likewise.
21481         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.c: Likewise.
21482         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.c: Likewise.
21483         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.c: Likewise.
21484         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.c: Likewise.
21485         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.c: Likewise.
21486         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.c: Likewise.
21487         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.c: Likewise.
21488         * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.c: Likewise.
21489         * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.c: Likewise.
21490         * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.c: Likewise.
21491         * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.c: Likewise.
21492         * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.c: Likewise.
21493         * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.c: Likewise.
21494         * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.c: Likewise.
21495         * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.c: Likewise.
21496         * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.c: Likewise.
21497         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.c: Likewise.
21498         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.c: Likewise.
21499         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.c: Likewise.
21500         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.c: Likewise.
21501         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.c: Likewise.
21502         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.c: Likewise.
21503         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.S:  Renamed to
21504         ...
21505         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core-sse2.S: This.
21506         Don't include <sysdep.h> nor <init-arch.h>.
21507         (_ZGVbN2v_cos): Removed.
21508         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.S:  Renamed to
21509         ...
21510         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core-sse.S: This.
21511         Don't include <sysdep.h> nor <init-arch.h>.
21512         (_ZGVdN4v_cos): Removed.
21513         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S:  Renamed to
21514         ...
21515         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core-avx2.S: This.
21516         Don't include <sysdep.h> nor <init-arch.h>.
21517         (_ZGVeN8v_cos): Removed.
21518         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.S:  Renamed to
21519         ...
21520         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core-sse2.S: This.
21521         Don't include <sysdep.h> nor <init-arch.h>.
21522         (_ZGVbN2v_exp): Removed.
21523         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.S:  Renamed to
21524         ...
21525         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core-sse.S: This.
21526         Don't include <sysdep.h> nor <init-arch.h>.
21527         (_ZGVdN4v_exp): Removed.
21528         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S:  Renamed to
21529         ...
21530         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core-avx2.S: This.
21531         Don't include <sysdep.h> nor <init-arch.h>.
21532         (_ZGVeN8v_exp): Removed.
21533         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.S:  Renamed to
21534         ...
21535         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core-sse2.S: This.
21536         Don't include <sysdep.h> nor <init-arch.h>.
21537         (_ZGVbN2v_log): Removed.
21538         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.S:  Renamed to
21539         ...
21540         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core-sse.S: This.
21541         Don't include <sysdep.h> nor <init-arch.h>.
21542         (_ZGVdN4v_log): Removed.
21543         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S:  Renamed to
21544         ...
21545         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core-avx2.S: This.
21546         Don't include <sysdep.h> nor <init-arch.h>.
21547         (_ZGVeN8v_log): Removed.
21548         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.S:  Renamed to
21549         ...
21550         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core-sse2.S: This.
21551         Don't include <sysdep.h> nor <init-arch.h>.
21552         (_ZGVbN2vv_pow): Removed.
21553         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.S:  Renamed to
21554         ...
21555         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core-sse.S: This.
21556         Don't include <sysdep.h> nor <init-arch.h>.
21557         (_ZGVdN4vv_pow): Removed.
21558         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S:  Renamed to
21559         ...
21560         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core-avx2.S: This.
21561         Don't include <sysdep.h> nor <init-arch.h>.
21562         (_ZGVeN8vv_pow): Removed.
21563         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.S:  Renamed to
21564         ...
21565         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core-sse2.S: This.
21566         Don't include <sysdep.h> nor <init-arch.h>.
21567         (_ZGVbN2v_sin): Removed.
21568         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.S:  Renamed to
21569         ...
21570         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core-sse.S: This.
21571         Don't include <sysdep.h> nor <init-arch.h>.
21572         (_ZGVbN4v_sin): Removed.
21573         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S:  Renamed to
21574         ...
21575         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core-avx2.S: This.
21576         Don't include <sysdep.h> nor <init-arch.h>.
21577         (_ZGVbN8v_sin): Removed.
21578         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.S:  Renamed to
21579         ...
21580         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core-sse2.S: This.
21581         Don't include <sysdep.h> nor <init-arch.h>.
21582         (_ZGVbN2vvv_sincos): Removed.
21583         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.S:  Renamed to
21584         ...
21585         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core-sse.S: This.
21586         Don't include <sysdep.h> nor <init-arch.h>.
21587         (_ZGVdN4vvv_sincos): Removed.
21588         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S:  Renamed to
21589         ...
21590         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core-avx2.S: This.
21591         Don't include <sysdep.h> nor <init-arch.h>.
21592         (_ZGVeN8vvv_sincos): Removed.
21593         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.S:  Renamed to
21594         ...
21595         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core-avx2.S: This.
21596         Don't include <sysdep.h> nor <init-arch.h>.
21597         (_ZGVeN16v_cosf): Removed.
21598         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.S:  Renamed to
21599         ...
21600         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core-sse2.S: This.
21601         Don't include <sysdep.h> nor <init-arch.h>.
21602         (_ZGVbN4v_cosf): Removed.
21603         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.S:  Renamed to
21604         ...
21605         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core-sse.S: This.
21606         Don't include <sysdep.h> nor <init-arch.h>.
21607         (_ZGVdN8v_cosf): Removed.
21608         * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.S:  Renamed to
21609         ...
21610         * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core-avx2.S: This.
21611         Don't include <sysdep.h> nor <init-arch.h>.
21612         (_ZGVeN16v_expf): Removed.
21613         * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.S:  Renamed to
21614         ...
21615         * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core-sse2.S: This.
21616         Don't include <sysdep.h> nor <init-arch.h>.
21617         (_ZGVbN4v_expf): Removed.
21618         * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.S:  Renamed to
21619         ...
21620         * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core-sse.S: This.
21621         Don't include <sysdep.h> nor <init-arch.h>.
21622         (_ZGVdN8v_expf): Removed.
21623         * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.S:  Renamed to
21624         ...
21625         * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core-avx2.S: This.
21626         Don't include <sysdep.h> nor <init-arch.h>.
21627         (_ZGVeN16v_logf): Removed.
21628         * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.S:  Renamed to
21629         ...
21630         * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core-sse2.S: This.
21631         Don't include <sysdep.h> nor <init-arch.h>.
21632         (_ZGVbN4v_logf): Removed.
21633         * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.S:  Renamed to
21634         ...
21635         * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core-sse.S: This.
21636         Don't include <sysdep.h> nor <init-arch.h>.
21637         (_ZGVdN8v_logf): Removed.
21638         * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.S:  Renamed to
21639         ...
21640         * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core-avx2.S: This.
21641         Don't include <sysdep.h> nor <init-arch.h>.
21642         (_ZGVeN16vv_powf): Removed.
21643         * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.S:  Renamed to
21644         ...
21645         * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core-sse2.S: This.
21646         Don't include <sysdep.h> nor <init-arch.h>.
21647         (_ZGVbN4vv_powf): Removed.
21648         * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.S:  Renamed to
21649         ...
21650         * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core-sse.S: This.
21651         Don't include <sysdep.h> nor <init-arch.h>.
21652         (_ZGVdN8vv_powf): Removed.
21653         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.S:  Renamed to
21654         ...
21655         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core-avx2.S: This.
21656         Don't include <sysdep.h> nor <init-arch.h>.
21657         (_ZGVeN16vvv_sincosf): Removed.
21658         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.S:  Renamed to
21659         ...
21660         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core-sse2.S: This.
21661         Don't include <sysdep.h> nor <init-arch.h>.
21662         (_ZGVbN4vvv_sincosf): Removed.
21663         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.S:  Renamed to
21664         ...
21665         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core-sse.S: This.
21666         Don't include <sysdep.h> nor <init-arch.h>.
21667         (_ZGVdN8vvv_sincosf): Removed.
21668         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.S:  Renamed to
21669         ...
21670         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core-avx2.S: This.
21671         Don't include <sysdep.h> nor <init-arch.h>.
21672         (_ZGVeN16v_sinf): Removed.
21673         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.S:  Renamed to
21674         ...
21675         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core-sse2.S: This.
21676         Don't include <sysdep.h> nor <init-arch.h>.
21677         (_ZGVbN4v_sinf): Removed.
21678         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.S:  Renamed to
21679         ...
21680         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core-sse.S: This.
21681         Don't include <sysdep.h> nor <init-arch.h>.
21682         (_ZGVdN8v_sinf): Removed.
21683
21684 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
21685
21686         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
21687         Add s_ceil-sse4_1, s_ceilf-sse4_1, s_floor-sse4_1,
21688         s_floorf-sse4_1, s_nearbyint-sse4_1, s_nearbyintf-sse4_1,
21689         s_rint-sse4_1 and s_rintf-sse4_1.
21690         * sysdeps/x86_64/fpu/multiarch/ifunc-sse4_1.h: New file.
21691         * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Likewise.
21692         * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Likewise.
21693         * sysdeps/x86_64/fpu/multiarch/s_floor.c: Likewise.
21694         * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Likewise.
21695         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Likewise.
21696         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Likewise.
21697         * sysdeps/x86_64/fpu/multiarch/s_rint.c: Likewise.
21698         * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Likewise.
21699         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: Renamed to ...
21700         * sysdeps/x86_64/fpu/multiarch/s_ceil-sse4_1.S: This.  Don't
21701         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
21702         (__ceil): Removed.
21703         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: Renamed to ...
21704         * sysdeps/x86_64/fpu/multiarch/s_ceilf-sse4_1.S: This.  Don't
21705         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
21706         (__ceilf): Removed.
21707         * sysdeps/x86_64/fpu/multiarch/s_floor.S: Renamed to ...
21708         * sysdeps/x86_64/fpu/multiarch/s_floor-sse4_1.S: This.  Don't
21709         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
21710         (__floor): Removed.
21711         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: Renamed to ...
21712         * sysdeps/x86_64/fpu/multiarch/s_floorf-sse4_1.S: This.  Don't
21713         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
21714         (__floorf): Removed.
21715         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: Renamed to ...
21716         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-sse4_1.S: This.  Don't
21717         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
21718         (__nearbyint): Removed.
21719         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: Renamed to ...
21720         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-sse4_1.S: This.  Don't
21721         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
21722         (__nearbyintf): Removed.
21723         * sysdeps/x86_64/fpu/multiarch/s_rint.S: Renamed to ...
21724         * sysdeps/x86_64/fpu/multiarch/s_rint-sse4_1.S: This.  Don't
21725         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
21726         (__rint): Removed.
21727         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: Renamed to ...
21728         * sysdeps/x86_64/fpu/multiarch/s_rintf-sse4_1.S: This.  Don't
21729         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
21730         (__rintf): Removed.
21731
21732 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
21733
21734         * sysdeps/i386/start.S (_start): Check Check PIC instead of
21735         SHARED.  Avoid dynamic relocation against main in static PIE.
21736
21737 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
21738
21739         [BZ #21815]
21740         * elf/Makefile (CFLAGS-tst-prelink.c): New.
21741         (LDFLAGS-tst-prelink): Likewise.
21742
21743 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
21744
21745         * sysdeps/unix/sysv/linux/i386/sysdep.h (I386_USE_SYSENTER):
21746         Define to I386_USE_SYSENTER to 0 or 1 if not defined.
21747         (ENTER_KERNEL): Check if I386_USE_SYSENTER is 1 and check PIC.
21748         (INTERNAL_SYSCALL_MAIN_INLINE): Likewise.
21749         (INTERNAL_SYSCALL_NCS): Likewise.
21750         (LOADARGS_1): Likewise.
21751         (LOADARGS_5): Likewise.
21752         (RESTOREARGS_1): Likewise.
21753         (RESTOREARGS_5): Likewise.
21754
21755 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
21756
21757         * sysdeps/x86_64/memmove.S (MEMCPY_SYMBOL): Don't check SHARED.
21758         (MEMPCPY_SYMBOL): Likewise.
21759         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
21760         (__libc_ifunc_impl_list): Test memcpy and mempcpy in libc.a.
21761         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Also include
21762         in libc.a.
21763         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
21764         * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
21765         Likewise.
21766         * sysdeps/x86_64/multiarch/memcpy.c: Also include in libc.a.
21767         (__hidden_ver1): Don't use in libc.a.
21768         * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S
21769         (__mempcpy): Don't create a weak alias in libc.a.
21770         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S: Support
21771         libc.a.
21772         * sysdeps/x86_64/multiarch/mempcpy.c: Also include in libc.a.
21773         (__hidden_ver1): Don't use in libc.a.
21774
21775 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
21776
21777         * config.make.in (have-insert): New.
21778         * configure.ac (libc_cv_insert): New.  Set to yes if linker
21779         supports INSERT in linker script.
21780         (AC_SUBST(libc_cv_insert): New.
21781         * configure: Regenerated.
21782         * sysdeps/x86_64/Makefile (tests): Add tst-split-dynreloc only
21783         if $(have-insert) == yes.
21784
21785 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
21786
21787         * elf/Makefile (tests): Add vismain only if
21788         $(have-protected-data) == yes.
21789         (tests-pie): Likewise.
21790
21791 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
21792
21793         [BZ #21871]
21794         * sysdeps/x86/cpu-features.c (init_cpu_features): Set
21795         bit_arch_Use_dl_runtime_resolve_opt only with AVX512F.
21796
21797 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
21798
21799         [BZ #21790]
21800         * sysdeps/i386/i586/memset.S
21801         (__memset_zero_constant_len_parameter): Removed.
21802         * sysdeps/i386/i686/memset.S
21803         (__memset_zero_constant_len_parameter): Likewise.
21804         * sysdeps/i386/i686/multiarch/memset_chk.S
21805         (__memset_zero_constant_len_parameter): Likewise.
21806         * sysdeps/x86_64/memset.S (__memset_zero_constant_len_parameter):
21807         Likewise.
21808
21809 2017-08-03  Aurelien Jarno  <aurelien@aurel32.net>
21810
21811         * stdlib/getentropy.c (getentropy): Change return type to int.
21812
21813 2017-08-03  Aurelien Jarno  <aurelien@aurel32.net>
21814
21815         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Regenerated.
21816
21817 2017-08-03  Joseph Myers  <joseph@codesourcery.com>
21818
21819         * math/s_nextafter.c (__nextafter): Use uintN_t instead of
21820         u_intN_t.
21821         * math/s_nexttowardf.c (__nexttowardf): Likewise.
21822         * sysdeps/generic/math_private.h (ieee_double_shape_type):
21823         Likewise.
21824         (ieee_float_shape_type): Likewise.
21825         * sysdeps/i386/fpu/s_fpclassifyl.c (__fpclassifyl): Likewise.
21826         * sysdeps/i386/fpu/s_isnanl.c (__isnanl): Likewise.
21827         * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Likewise.
21828         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
21829         * sysdeps/i386/fpu/s_nexttowardf.c (__nexttowardf): Likewise.
21830         * sysdeps/ieee754/dbl-64/e_acosh.c (__ieee754_acosh): Likewise.
21831         * sysdeps/ieee754/dbl-64/e_cosh.c (__ieee754_cosh): Likewise.
21832         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Likewise.
21833         * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
21834         Likewise.
21835         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
21836         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
21837         (__ieee754_yn): Likewise.
21838         * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
21839         * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
21840         * sysdeps/ieee754/dbl-64/e_rem_pio2.c (__ieee754_rem_pio2):
21841         Likewise.
21842         * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
21843         * sysdeps/ieee754/dbl-64/s_ceil.c (__ceil): Likewise.
21844         * sysdeps/ieee754/dbl-64/s_copysign.c (__copysign): Likewise.
21845         * sysdeps/ieee754/dbl-64/s_erf.c (__erf): Likewise.
21846         (__erfc): Likewise.
21847         * sysdeps/ieee754/dbl-64/s_expm1.c (__expm1): Likewise.
21848         * sysdeps/ieee754/dbl-64/s_finite.c (FINITE): Likewise.
21849         * sysdeps/ieee754/dbl-64/s_floor.c (__floor): Likewise.
21850         * sysdeps/ieee754/dbl-64/s_fpclassify.c (__fpclassify): Likewise.
21851         * sysdeps/ieee754/dbl-64/s_isnan.c (__isnan): Likewise.
21852         * sysdeps/ieee754/dbl-64/s_issignaling.c (__issignaling):
21853         Likewise.
21854         * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Likewise.
21855         * sysdeps/ieee754/dbl-64/s_llround.c (__llround): Likewise.
21856         * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
21857         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Likewise.
21858         * sysdeps/ieee754/dbl-64/s_modf.c (__modf): Likewise.
21859         * sysdeps/ieee754/dbl-64/s_nextup.c (__nextup): Likewise.
21860         * sysdeps/ieee754/dbl-64/s_remquo.c (__remquo): Likewise.
21861         * sysdeps/ieee754/dbl-64/s_round.c (__round): Likewise.
21862         * sysdeps/ieee754/dbl-64/s_trunc.c (__trunc): Likewise.
21863         * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c
21864         (__issignaling): Likewise.
21865         * sysdeps/ieee754/flt-32/e_atan2f.c (__ieee754_atan2f): Likewise.
21866         * sysdeps/ieee754/flt-32/e_fmodf.c (__ieee754_fmodf): Likewise.
21867         * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
21868         Likewise.
21869         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
21870         * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
21871         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Likewise.
21872         * sysdeps/ieee754/flt-32/e_rem_pio2f.c (__ieee754_rem_pio2f):
21873         Likewise.
21874         * sysdeps/ieee754/flt-32/e_remainderf.c (__ieee754_remainderf):
21875         Likewise.
21876         * sysdeps/ieee754/flt-32/e_sqrtf.c (__ieee754_sqrtf): Likewise.
21877         * sysdeps/ieee754/flt-32/s_ceilf.c (__ceilf): Likewise.
21878         * sysdeps/ieee754/flt-32/s_copysignf.c (__copysignf): Likewise.
21879         * sysdeps/ieee754/flt-32/s_erff.c (__erff): Likewise.
21880         (__erfcf): Likewise.
21881         * sysdeps/ieee754/flt-32/s_expm1f.c (__expm1f): Likewise.
21882         * sysdeps/ieee754/flt-32/s_finitef.c (FINITEF): Likewise.
21883         * sysdeps/ieee754/flt-32/s_floorf.c (__floorf): Likewise.
21884         * sysdeps/ieee754/flt-32/s_fpclassifyf.c (__fpclassifyf):
21885         Likewise.
21886         * sysdeps/ieee754/flt-32/s_isnanf.c (__isnanf): Likewise.
21887         * sysdeps/ieee754/flt-32/s_issignalingf.c (__issignalingf):
21888         Likewise.
21889         * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
21890         * sysdeps/ieee754/flt-32/s_llroundf.c (__llroundf): Likewise.
21891         * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
21892         * sysdeps/ieee754/flt-32/s_lroundf.c (__lroundf): Likewise.
21893         * sysdeps/ieee754/flt-32/s_modff.c (__modff): Likewise.
21894         * sysdeps/ieee754/flt-32/s_remquof.c (__remquof): Likewise.
21895         * sysdeps/ieee754/flt-32/s_roundf.c (__roundf): Likewise.
21896         * sysdeps/ieee754/ldbl-128/e_acoshl.c (__ieee754_acoshl):
21897         Likewise.
21898         * sysdeps/ieee754/ldbl-128/e_atan2l.c (__ieee754_atan2l):
21899         Likewise.
21900         * sysdeps/ieee754/ldbl-128/e_atanhl.c (__ieee754_atanhl):
21901         Likewise.
21902         * sysdeps/ieee754/ldbl-128/e_fmodl.c (__ieee754_fmodl): Likewise.
21903         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
21904         Likewise.
21905         * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
21906         Likewise.
21907         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
21908         (__ieee754_ynl): Likewise.
21909         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
21910         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c (__ieee754_rem_pio2l):
21911         Likewise.
21912         * sysdeps/ieee754/ldbl-128/e_remainderl.c (__ieee754_remainderl):
21913         Likewise.
21914         * sysdeps/ieee754/ldbl-128/e_sinhl.c (__ieee754_sinhl): Likewise.
21915         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Likewise.
21916         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
21917         Likewise.
21918         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Likewise.
21919         * sysdeps/ieee754/ldbl-128/s_ceill.c (__ceill): Likewise.
21920         * sysdeps/ieee754/ldbl-128/s_copysignl.c (__copysignl): Likewise.
21921         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Likewise.
21922         * sysdeps/ieee754/ldbl-128/s_fabsl.c (__fabsl): Likewise.
21923         * sysdeps/ieee754/ldbl-128/s_finitel.c (__finitel): Likewise.
21924         * sysdeps/ieee754/ldbl-128/s_floorl.c (__floorl): Likewise.
21925         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c (__fpclassifyl):
21926         Likewise.
21927         * sysdeps/ieee754/ldbl-128/s_frexpl.c (__frexpl): Likewise.
21928         * sysdeps/ieee754/ldbl-128/s_isnanl.c (__isnanl): Likewise.
21929         * sysdeps/ieee754/ldbl-128/s_issignalingl.c (__issignalingl):
21930         Likewise.
21931         * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
21932         * sysdeps/ieee754/ldbl-128/s_llroundl.c (__llroundl): Likewise.
21933         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
21934         * sysdeps/ieee754/ldbl-128/s_lroundl.c (__lroundl): Likewise.
21935         * sysdeps/ieee754/ldbl-128/s_modfl.c (__modfl): Likewise.
21936         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
21937         Likewise.
21938         * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl):
21939         Likewise.
21940         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
21941         Likewise.
21942         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
21943         Likewise.
21944         * sysdeps/ieee754/ldbl-128/s_nextupl.c (__nextupl): Likewise.
21945         * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Likewise.
21946         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
21947         * sysdeps/ieee754/ldbl-128/s_roundl.c (__roundl): Likewise.
21948         * sysdeps/ieee754/ldbl-128/s_tanhl.c (__tanhl): Likewise.
21949         * sysdeps/ieee754/ldbl-128/s_truncl.c (__truncl): Likewise.
21950         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl):
21951         Likewise.
21952         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
21953         Likewise.
21954         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
21955         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
21956         Likewise.
21957         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c
21958         (__ieee754_remainderl): Likewise.
21959         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
21960         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
21961         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Likewise.
21962         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c (___fpclassifyl):
21963         Likewise.
21964         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c (__modfl): Likewise.
21965         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
21966         Likewise.
21967         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
21968         * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Likewise.
21969         * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
21970         * sysdeps/ieee754/ldbl-96/e_atanhl.c (__ieee754_atanhl): Likewise.
21971         * sysdeps/ieee754/ldbl-96/e_coshl.c (__ieee754_coshl): Likewise.
21972         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
21973         Likewise.
21974         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
21975         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Likewise.
21976         (__ieee754_y0l): Likewise.
21977         (pzero): Likewise.
21978         (qzero): Likewise.
21979         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
21980         (__ieee754_y1l): Likewise.
21981         (pone): Likewise.
21982         (qone): Likewise.
21983         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
21984         (__ieee754_ynl): Likewise.
21985         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Likewise.
21986         (__ieee754_lgammal_r): Likewise.
21987         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c (__ieee754_rem_pio2l):
21988         Likewise.
21989         * sysdeps/ieee754/ldbl-96/e_sinhl.c (__ieee754_sinhl): Likewise.
21990         * sysdeps/ieee754/ldbl-96/s_copysignl.c (__copysignl): Likewise.
21991         * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfl): Likewise.
21992         (__erfcl): Likewise.
21993         * sysdeps/ieee754/ldbl-96/s_frexpl.c (__frexpl): Likewise.
21994         * sysdeps/ieee754/ldbl-96/s_issignalingl.c (__issignalingl):
21995         Likewise.
21996         * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
21997         * sysdeps/ieee754/ldbl-96/s_llroundl.c (__llroundl): Likewise.
21998         * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
21999         * sysdeps/ieee754/ldbl-96/s_lroundl.c (__lroundl): Likewise.
22000         * sysdeps/ieee754/ldbl-96/s_modfl.c (__modfl): Likewise.
22001         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
22002         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
22003         Likewise.
22004         * sysdeps/ieee754/ldbl-96/s_nextupl.c (__nextupl): Likewise.
22005         * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Likewise.
22006         * sysdeps/ieee754/ldbl-96/s_roundl.c (__roundl): Likewise.
22007         * sysdeps/ieee754/ldbl-96/s_tanhl.c (__tanhl): Likewise.
22008         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
22009         Likewise.
22010         * sysdeps/m68k/m680x0/fpu/e_pow.c (s(__ieee754_pow)): Likewise.
22011         * sysdeps/m68k/m680x0/fpu/s_fpclassifyl.c (__fpclassifyl):
22012         Likewise.
22013         * sysdeps/m68k/m680x0/fpu/s_llrint.c (__llrint): Likewise.
22014         * sysdeps/m68k/m680x0/fpu/s_llrintf.c (__llrintf): Likewise.
22015         * sysdeps/m68k/m680x0/fpu/s_llrintl.c (__llrintl): Likewise.
22016         * sysdeps/m68k/m680x0/fpu/s_nextafterl.c (__nextafterl): Likewise.
22017         * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Likewise.
22018
22019 2017-08-03  Florian Weimer  <fweimer@redhat.com>
22020
22021         [BZ #21885]
22022         * sysdeps/posix/getaddrinfo.c (gethosts): Release resolver context
22023         on memory allocation failure.
22024
22025 2017-08-03  Alan Modra  <amodra@gmail.com>
22026
22027         * sysdeps/powerpc/mod-tlsopt-powerpc.c: Extract from
22028         tst-tlsopt-powerpc.c with function name change and no test harness.
22029         * sysdeps/powerpc/tst-tlsopt-powerpc.c: Remove body of test.
22030         Call tls_get_addr_opt_test.
22031         * sysdeps/powerpc/Makefile (LDFLAGS-tst-tlsopt-powerpc): Don't define.
22032         (modules-names): Add mod-tlsopt-powerpc.
22033         (mod-tlsopt-powerpc.so-no-z-defs): Define.
22034         (tst-tlsopt-powerpc): Depend on .so.
22035         * sysdeps/powerpc/powerpc64/tls-macros.h (__TLS_GET_ADDR): Don't
22036         define.  Expand use in TLS_GD and TLS_LD.
22037
22038 2017-08-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
22039
22040         * sysdeps/mach/hurd/enbl-secure.c (__libc_init_secure): Define
22041         function.
22042         * sysdeps/posix/shm_open.c: Include <pthread.h>.
22043
22044 2017-08-02  Joseph Myers  <joseph@codesourcery.com>
22045
22046         [BZ #21686]
22047         * math/tgmath.h (__TGMATH_BINARY_REAL_ONLY): Add arguments before
22048         comparing size with that of double.
22049         (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
22050         (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
22051         (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
22052         (__TGMATH_TERNARY_REAL_ONLY): Likewise.
22053         (__TGMATH_BINARY_REAL_IMAG): Likewise.
22054         * math/gen-tgmath-tests.py (Type.init_types): Create __int128 and
22055         unsigned __int128 types.
22056
22057 2017-08-02  Steve Ellcey  <sellcey@cavium.com>
22058
22059         * localedata/Makefile (CFLAGS-tst_iswalnum.c, CFLAGS-tst_iswalpha.c
22060         CFLAGS-tst_iswcntrl.c, CFLAGS-tst_iswdigit.c, CFLAGS-tst_iswgraph.c,
22061         CFLAGS-tst_iswlower.c, CFLAGS-tst_iswprint.c, CFLAGS-tst_iswpunct.c,
22062         CFLAGS-tst_iswspace.c, CFLAGS-tst_iswupper.c, CFLAGS-tst_iswxdigit.c,
22063         CFLAGS-tst_towlower.c, CFLAGS-tst_towupper.c): Remove.
22064
22065 2017-08-02  H.J. Lu  <hongjiu.lu@intel.com>
22066
22067         * sysdeps/x86_64/start.S (_start): Check PIC instead of SHARED.
22068
22069 2017-08-02  H.J. Lu  <hongjiu.lu@intel.com>
22070
22071         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Check PIC instead
22072         of SHARED.
22073         * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Likewise.
22074         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
22075         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
22076         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
22077         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
22078         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
22079         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
22080
22081 2017-08-02  Joseph Myers  <joseph@codesourcery.com>
22082
22083         [BZ #21685]
22084         * math/tgmath.h (__tgmath_real_type): Use unary + on potentially
22085         bit-field expressions passed to sizeof or typeof.
22086         [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
22087         (__TGMATH_F128): Likewise.
22088         [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
22089         (__TGMATH_CF128): Likewise.
22090         (__TGMATH_UNARY_REAL_ONLY): Likewise.
22091         (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
22092         (__TGMATH_BINARY_FIRST_REAL_ONLY): Likewise.
22093         (__TGMATH_BINARY_FIRST_REAL_STD_ONLY): Likewise.
22094         (__TGMATH_BINARY_REAL_ONLY): Likewise.
22095         (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
22096         (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
22097         (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
22098         (__TGMATH_TERNARY_REAL_ONLY): Likewise.
22099         (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY): Likewise.
22100         (__TGMATH_UNARY_REAL_IMAG): Likewise.
22101         (__TGMATH_UNARY_IMAG): Likewise.
22102         (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
22103         (__TGMATH_BINARY_REAL_IMAG): Likewise.
22104         * math/gen-tgmath-tests.py (Type.init_types): Create bit_field
22105         type.
22106         (define_vars_for_type): Handle bit_field type specially.
22107         (Tests.__init__): Declare structure with bit-field element.
22108
22109 2017-08-02  H.J. Lu  <hongjiu.lu@intel.com>
22110
22111         [BZ #21791]
22112         * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S
22113         (MEMCPY_CHK): Define only if SHARED is defined.
22114         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S (MEMCPY_CHK):
22115         Likewise.
22116         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S (MEMCPY_CHK):
22117         Likewise.
22118
22119 See ChangeLog.18 for earlier changes.