Move nss_compat from nis to nss subdir and install it unconditionally
[glibc.git] / ChangeLog
blobda2728a43c0fdfbe4c6987db81c778c342714247
1 2017-10-04  Andreas Schwab  <schwab@suse.de>
3         * nis/Makefile (services): Remove compat.
4         (libnss_compat-routines, libnss_compat-inhibit-o): Don't define.
5         ($(objpfx)libnss_compat.so): Remove rule.
6         * nis/Versions (libnss_compat): Remove.
7         * nss/Makefile (services): Add compat.
8         (libnss_compat-routines, libnss_compat-inhibit-o): Define.
9         * nss/Versions (libnss_compat): Define.
10         * nss/nss_compat/compat-grp.c: Moved here from nis/nss_compat.
11         Don't include <rpc/types.h>.  Replace bool_t by bool.
12         * nss/nss_compat/compat-initgroups.c: Likewise.
13         * nss/nss_compat/compat-pwd.c: Likewise.  Include "nisdomain.h"
14         instead of <rpcsrv/ypclnt.h>.
15         (getpwent_next_nss_netgr): Use __nss_get_default_domain instead of
16         yp_get_default_domain.
17         * nss/nss_compat/compat-pwd.c: Likewise.
18         (getspent_next_nss_netgr): Use __nss_get_default_domain instead of
19         yp_get_default_domain.
20         * nss/nss_compat/nisdomain.c: New file.
21         * nss/nss_compat/nisdomain.h: Likewise.
23 2017-10-04  Szabolcs Nagy  <szabolcs.nagy@arm.com>
25         [BZ #22244]
26         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Fix x == 0 case.
27         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
29 2017-10-04  Szabolcs Nagy  <szabolcs.nagy@arm.com>
31         [BZ #22243]
32         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c (__ieee754_log10): Use fabs.
33         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c (__ieee754_log2): Likewise.
35 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
37         * sysdeps/i386/start.S: Replace "leal main@GOT(%ebx), %eax" with
38         "movl main@GOTOFF(%ebx), %eax".
40 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
42         * sysdeps/i386/dl-machine.h (elf_machine_load_address): Don't
43         allow undefined _DYNAMIC in PIE libc.a.
44         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
45         Likewse.
47 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
49         * sysdeps/mips/dl-machine.h (elf_machine_load_address): Don't
50         check _DYNAMIC.
52 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
54         * sysdeps/arm/dl-machine.h (elf_machine_load_address): Don't
55         check _DYNAMIC.
57 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
59         * math/test-math-iscanonical.cc (error): Replace bool with int.
61 2017-10-03  Joseph Myers  <joseph@codesourcery.com>
63         * sysdeps/ieee754/dbl-64/s_modf.c: Include <libm-alias-double.h>.
64         (modf): Define using libm_alias_double, only if [!__modf].
65         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Include
66         <libm-alias-double.h>.
67         (modf): Define using libm_alias_double, only if [!__modf].
68         * sysdeps/ieee754/ldbl-opt/s_modf.c (modfl): Only define libc
69         compat symbol here.
70         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-ppc32.c
71         (weak_alias): Do not undefine and redefine.
72         (strong_alias): Likewise.
73         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-ppc64.c
74         (weak_alias): Likewise.
75         (strong_alias): Likewise.
77         * sysdeps/ieee754/dbl-64/s_logb.c: Include <libm-alias-double.h>.
78         (logb): Define using libm_alias_double, only if [!__logb].
79         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Include
80         <libm-alias-double.h>.
81         (logb): Define using libm_alias_double, only if [!__logb].
82         * sysdeps/ieee754/ldbl-opt/s_logb.c: Remove file.
83         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-ppc32.c
84         (weak_alias): Do not undefine and redefine.
85         (strong_alias): Likewise.
86         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-ppc64.c
87         (weak_alias): Likewise.
88         (strong_alias): Likewise.
90 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
92         * sysdeps/unix/sysv/linux/tile/sysdep.h (SYSCALL_ERROR_NAME):
93         Check SHARED instead PIC.
95 2017-10-03  Joseph Myers  <joseph@codesourcery.com>
97         * sysdeps/ieee754/dbl-64/s_fmaf.c: Include <libm-alias-float.h>.
98         [!__fmaf] (fmaf): Define using libm_alias_float.
100         * sysdeps/ieee754/dbl-64/s_frexp.c: Include <libm-alias-double.h>.
101         (frexp): Define using libm_alias_double.
102         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Include
103         <libm-alias-double.h>.
104         (frexp): Define using libm_alias_double.
105         * sysdeps/ieee754/ldbl-opt/s_frexp.c (frexpl): Only define libc
106         compat symbol here.
108 2017-10-03  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
110         [BZ #22235]
111         * math/math.h: Trivial fix for unbalanced parentheses in comment.
112         * math/Makefile [CXX] (tests): Add test-math-iscanonical.cc.
113         (CFLAGS-test-math-iscanonical.cc): New variable.
114         * math/test-math-iscanonical.cc: New file.
115         * sysdeps/ieee754/ldbl-96/bits/iscanonical.h (iscanonical):
116         Provide a C++ implementation based on function overloading,
117         rather than using __MATH_TG, which uses C-only builtins.
118         * sysdeps/ieee754/ldbl-128ibm/bits/iscanonical.h (iscanonical):
119         Likewise.
120         * sysdeps/powerpc/powerpc64le/Makefile
121         (CFLAGS-test-math-iscanonical.cc): New variable.
123 2017-10-03  Joseph Myers  <joseph@codesourcery.com>
125         * sysdeps/ieee754/dbl-64/s_ceil.c: Include <libm-alias-double.h>.
126         (ceil): Define using libm_alias_double.
127         * sysdeps/ieee754/dbl-64/s_floor.c: Include <libm-alias-double.h>.
128         (floor): Define using libm_alias_double.
129         * sysdeps/ieee754/dbl-64/s_llround.c: Include
130         <libm-alias-double.h>.
131         (llround): Define using libm_alias_double.
132         * sysdeps/ieee754/dbl-64/s_lround.c: Include
133         <libm-alias-double.h>.
134         (lround): Define using libm_alias_double.
135         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Include
136         <libm-alias-double.h>.
137         (nearbyint): Define using libm_alias_double.
138         * sysdeps/ieee754/dbl-64/s_remquo.c: Include
139         <libm-alias-double.h>.
140         (remquo): Define using libm_alias_double.
141         * sysdeps/ieee754/dbl-64/s_rint.c: Include <libm-alias-double.h>.
142         (rint): Define using libm_alias_double.
143         * sysdeps/ieee754/dbl-64/s_round.c: Include <libm-alias-double.h>.
144         (round): Define using libm_alias_double.
145         * sysdeps/ieee754/dbl-64/s_trunc.c: Include <libm-alias-double.h>.
146         (trunc): Define using libm_alias_double.
147         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Include
148         <libm-alias-double.h>.
149         (ceil): Define using libm_alias_double.
150         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Include
151         <libm-alias-double.h>.
152         (floor): Define using libm_alias_double.
153         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: Include
154         <libm-alias-double.h>.
155         (llround): Define using libm_alias_double.
156         [_LP64] (lround): Likewise.
157         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Include
158         <libm-alias-double.h>.
159         [!_LP64] (lround): Define using libm_alias_double.
160         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Include
161         <libm-alias-double.h>.
162         (nearbyint): Define using libm_alias_double.
163         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Include
164         <libm-alias-double.h>.
165         (remquo): Define using libm_alias_double.
166         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Include
167         <libm-alias-double.h>.
168         (rint): Define using libm_alias_double.
169         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Include
170         <libm-alias-double.h>.
171         (round): Define using libm_alias_double.
172         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Include
173         <libm-alias-double.h>.
174         (trunc): Define using libm_alias_double.
175         * sysdeps/ieee754/ldbl-opt/s_ceil.c: Remove file.
176         * sysdeps/ieee754/ldbl-opt/s_floor.c: Likewise.
177         * sysdeps/ieee754/ldbl-opt/s_llround.c: Likewise.
178         * sysdeps/ieee754/ldbl-opt/s_lround.c: Likewise.
179         * sysdeps/ieee754/ldbl-opt/s_nearbyint.c: Likewise.
180         * sysdeps/ieee754/ldbl-opt/s_remquo.c: Likewise.
181         * sysdeps/ieee754/ldbl-opt/s_rint.c: Likewise.
182         * sysdeps/ieee754/ldbl-opt/s_round.c: Likewise.
183         * sysdeps/ieee754/ldbl-opt/s_trunc.c: Likewise.
185 2017-10-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
187         * math/w_remainder.c: New file.
188         * math/w_remainderf.c: New file.
189         * math/w_remainderl.c: New file.
191 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
193         * elf/rtld.c (BOOTSTRAP_MAP): New.
194         (RESOLVE_MAP): Replace (&bootstrap_map) with BOOTSTRAP_MAP.
195         * sysdeps/hppa/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
196         Likewise.
197         * sysdeps/ia64/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
198         Likewise.
199         * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
200         Likewise.
202 2017-10-03  Samuel Thibault  <samuel.thibault@ens-lyon.org>
204         * include/libc-symbols.h [NO_RTLD_HIDDEN] (rtld_hidden_proto,
205         rtld_hidden_tls_proto, rtld_hidden_def, rtld_hidden_weak,
206         rtld_hidden_rtld_hidden_ver, data_def, rtld_hidden_data_weak,
207         rtld_hidden_data_ver): Define to empty.
208         * include/assert.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__assert_fail,
209         __assert_perror_fail): Likewise.
210         * include/dirent.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
211         (__rewinddir): Likewise.
212         * include/libc-internal.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
213         (__profile_frequency): Likewise.
214         * include/setjmp.h (__sigsetjmp): Likewise.
215         * include/signal.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__sigaction,
216         __libc_sigaction): Likewise.
217         * include/stdlib.h [NO_RTLD_HIDDEN] (unsetenv, __strtoul_internal): Do
218         not set hidden attribute.
219         * include/string.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__stpcpy, __strdup,
220         __strerror_t, __strsep_g, memchr, memcmp, memcpy, memmove, memset,
221         rawmemchr, stpcpy, strchr, strcmp, strlen, strnlen, strsep): Likewise.
222         * include/sys/stat.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__fxstat,
223         __fxstat64, __lxstat, __lxstat64, __xstat, __xstat64,
224         __fxstatat64): Likewise.
225         * include/sys/utsname.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
226         (__uname): Likewise.
227         * include/sysdeps/generic/_itoa.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
228         (_itoa_upper_digits, _itoa_lower_digits): Likewise.
229         * sysdeps/mach/hurd/configure.ac (NO_HIDDEN): Do not set.
230         (NO_RTLD_HIDDEN): Set.
231         * sysdeps/mach/hurd/configure: Refresh.
232         * config.h.in: Refresh.
234 2017-10-02  Joseph Myers  <joseph@codesourcery.com>
236         * sysdeps/ieee754/dbl-64/s_atan.c: Include <libm-alias-double.h>.
237         (atan): Define using libm_alias_double.
238         * sysdeps/ieee754/dbl-64/s_tan.c: Include <libm-alias-double.h>.
239         (tan): Define using libm_alias_double.
240         * sysdeps/ieee754/ldbl-opt/s_atan.c: Remove file.
241         * sysdeps/ieee754/ldbl-opt/s_tan.c: Likewise.
243         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Rename to __atan and
244         define as weak alias of __atan.  Do not define any aliases if
245         [__atan].
246         [NO_LONG_DOUBLE] (__atanl): Define as strong alias of __atan.
247         [NO_LONG_DOUBLE] (atanl): Define as weak alias of __atanl.
248         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Rename to __tan and define
249         as weak alias of __tan.  Do not define any aliases if [__tan].
250         [NO_LONG_DOUBLE] (__tanl): Define as strong alias of __tan.
251         [NO_LONG_DOUBLE] (tanl): Define as weak alias of __tanl.
252         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c (atan): Rename to
253         __atan.
254         * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c (atan): Likewise.
255         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c (atan): Likewise.
256         * sysdeps/x86_64/fpu/multiarch/s_atan.c (atan): Rename to __atan
257         and define as weak alias of __atan.
258         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c (tan): Rename to
259         __atan.
260         * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c (tan): Likewise.
261         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (tan): Likewise.
262         * sysdeps/x86_64/fpu/multiarch/s_tan.c (tan): Rename to __tan and
263         define as weak alias of __tan.
265 2017-10-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
267         * math/w_lgamma.c: New file.
268         * math/w_lgammaf.c: New file.
269         * math/w_lgammal.c: New file.
271 2017-10-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
273         * sysdeps/ieee754/flt-32/e_log2f.c (__log2f): Define without wrapper.
274         * sysdeps/ieee754/flt-32/e_logf.c (__logf): Likewise
275         * sysdeps/ieee754/flt-32/e_powf.c (__powf): Likewise
276         * sysdeps/ieee754/flt-32/w_log2f.c: New file.
277         * sysdeps/ieee754/flt-32/w_logf.c: New file.
278         * sysdeps/ieee754/flt-32/w_powf.c: New file.
279         * sysdeps/i386/fpu/w_log2f.c: New file.
280         * sysdeps/i386/fpu/w_logf.c: New file.
281         * sysdeps/i386/fpu/w_powf.c: New file.
282         * sysdeps/m68k/m680x0/fpu/w_log2f.c: New file.
283         * sysdeps/m68k/m680x0/fpu/w_logf.c: New file.
284         * sysdeps/m68k/m680x0/fpu/w_powf.c: New file.
286 2017-10-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
287             H.J. Lu  <hongjiu.lu@intel.com>
289         * sysdeps/ieee754/flt-32/e_exp2f.c (__exp2f): Define without wrapper.
290         * sysdeps/ieee754/flt-32/e_expf.c (__expf): Likewise
291         * sysdeps/ieee754/flt-32/w_exp2f.c: New file.
292         * sysdeps/ieee754/flt-32/w_expf.c: New file.
293         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-ppc64.c: Update for
294         the new expf code.
295         * sysdeps/powerpc/powerpc64/fpu/multiarch/w_expf.c: New file.
296         * sysdeps/powerpc/powerpc64/power8/fpu/w_expf.c: New file.
297         * sysdeps/m68k/m680x0/fpu/w_exp2f.c: New file.
298         * sysdeps/m68k/m680x0/fpu/w_expf.c: New file.
299         * sysdeps/i386/fpu/w_exp2f.c: New file.
300         * sysdeps/i386/fpu/w_expf.c: New file.
301         * sysdeps/i386/i686/fpu/multiarch/w_expf.c: New file.
302         * sysdeps/x86_64/fpu/w_expf.c: New file.
304 2017-10-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
306         * math/Versions (logf): New libm symbol at GLIBC_2.27.
307         (log2f): Likewise.
308         (powf): Likewise.
309         * math/w_log2f.c: New file.
310         * math/w_logf.c: New file.
311         * math/w_powf.c: New file.
312         * math/w_log2f_compat.c (__log2f_compat): For compat symbol only.
313         * math/w_logf_compat.c (__logf_compat): Likewise.
314         * math/w_powf_compat.c (__powf_compat): Likewise.
315         * sysdeps/ia64/fpu/e_log2f.S: Add versioned symbols.
316         * sysdeps/ia64/fpu/e_logf.S: Likewise.
317         * sysdeps/ia64/fpu/e_powf.S: Likewise.
318         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
319         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
320         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
321         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
322         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
323         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
324         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
325         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
326         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
327         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
328         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
329         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
330         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
331         Likewise.
332         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
333         Likewise.
334         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
335         Likewise.
336         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
337         Likewise.
338         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
339         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
340         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
341         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
342         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
343         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
344         Likewise.
345         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
346         Likewise.
347         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
348         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
349         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
351 2017-10-02  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
353         * sysdeps/powerpc/powerpc64/multiarch/Makefile
354         (sysdep_routines): Add memrchr_power8.
355         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
356         (memrchr): Add __memrchr_power8 to list of memrchr functions.
357         * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S:
358         New file.
359         * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
360         (memrchr): Add __memrchr_power8 to ifunc list.
361         * sysdeps/powerpc/powerpc64/power8/memrchr.S: New file.
363 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
365         [BZ #18822]
366         * sysdeps/unix/sysv/linux/posix_fadvise64.c
367         (__posix_fadvise64_l64): Add Add libc_hidden_proto and
368         libc_hidden_def.
369         * sysdeps/unix/sysv/linux/posix_fallocate64.c
370         (__posix_fallocate64_l64): Likewise.
372 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
374         [BZ #18822]
375         * sysdeps/unix/sysv/linux/sched_setaffinity.c
376         (__sched_setaffinity_new): Add libc_hidden_proto and
377         libc_hidden_def.
379 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
381         [BZ #18822]
382         * include/glob.h (__glob64): Add libc_hidden_proto.
383         * sysdeps/unix/sysv/linux/glob64.c (__glob64): Add
384         libc_hidden_def.
386 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
388         [BZ #18822]
389         * sysdeps/unix/sysv/linux/getrlimit64.c (__new_getrlimit): Add
390         attribute_hidden.
392 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
394         [BZ #18822]
395         * stdlib/exit.h (__new_exitfn): Add attribute_hidden.
397 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
399         [BZ #18822]
400         * mon/gmon.c (__moncontrol): Add libc_hidden_proto and
401         libc_hidden_def.
403 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
405         [BZ #18822]
406         * csu/version.c (__libc_print_version): Add attribute_hidden.
408 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
410         [BZ #18822]
411         * include/libc-internal.h (__init_misc): Add attribute_hidden.
413 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
415         [BZ #18822]
416         * include/fpu_control.h (__setfpucw): Add attribute_hidden.
418 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
420         [BZ #18822]
421         * nscd/nscd_helper.c (__nis_hash): New prototype.
423 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
425         [BZ #18822]
426         * include/termios.h (__tcgetattr): Add libc_hidden_proto.
427         * sysdeps/unix/bsd/tcgetattr.c (__tcgetattr): Add
428         libc_hidden_def.
429         * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Likewise.
430         * termios/tcgetattr.c (__tcgetattr): Likewise.
432 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
434         [BZ #18822]
435         * include/sys/resource.h (__setrlimit): Add libc_hidden_proto.
436         * resource/setrlimit.c (__setrlimit): Add libc_hidden_def.
437         * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Likewise.
438         * sysdeps/unix/sysv/linux/setrlimit.c (__setrlimit): Likewise.
439         * sysdeps/unix/sysv/linux/setrlimit64.c (__GI___setrlimit): New.
441 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
443         [BZ #18822]
444         * include/monetary.h (__vstrfmon_l): Add attribute_hidden.
446 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
448         [BZ #18822]
449         * include/sched.h (__sched_setparam): Add libc_hidden_proto.
450         * posix/sched_setp.c (__sched_setparam): Add libc_hidden_def.
452 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
454         [BZ #18822]
455         * intl/hash-string.h (__hash_string): Add attribute_hidden.
457 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
459         [BZ #18822]
460         * include/mntent.h (__hasmntopt): Add libc_hidden_proto.
461         * misc/mntent_r.c (__hasmntopt): Add libc_hidden_def.
463 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
465         [BZ #18822]
466         * include/ifreq.h: New file.
467         * sysdeps/generic/ifreq.h (__if_nextreq): Removed.
468         (__ifreq): Likewise.
469         * sysdeps/mach/hurd/ifreq.h (__if_nextreq): Removed.
470         (__ifreq): Likewise.
472 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
474         [BZ #18822]
475         * include/idna.h: New file.
476         * inet/getnameinfo.c: Include <idna.h> instead of
477         <libidn/idna.h>.
478         (__idna_to_unicode_lzlz): Removed.
479         * sysdeps/posix/getaddrinfo.c: Include <idna.h> instead of
480         <libidn/idna.h>.
481         (__idna_to_ascii_lz): Removed.
482         (__idna_to_unicode_lzlz): Likewise.
484 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
486         [BZ #18822]
487         * include/plural-exp.h: New file.
488         * intl/plural-exp.c: Include <plural-exp.h> instead of
489         "plural-exp.h".
491 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
493         [BZ #18822]
494         * sysdeps/unix/sysv/linux/getsourcefilter.c: Include
495         "getsourcefilter.h".
496         * sysdeps/unix/sysv/linux/getsourcefilter.h: New file.
497         * sysdeps/unix/sysv/linux/setsourcefilter.c: Include
498         "getsourcefilter.h".
499         (__get_sol): Removed.
501 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
503         [BZ #18822]
504         * elf/dl-iteratephdr.c (hidden_proto (__dl_iterate_phdr)): Moved
505         to ...
506         * include/link.h (hidden_proto (__dl_iterate_phdr)): Here.
508 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
510         [BZ #18822]
511         * sysdeps/unix/sysv/linux/getpt.c (__bsd_getpt): Add
512         attribute_hidden.
514 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
516         [BZ #18822]
517         * libio/iolibio.h (__fopen_maybe_mmap): Add attribute_hidden.
519 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
521         [BZ #18822]
522         * include/search.h (__tdestroy): Add libc_hidden_proto.
523         * misc/tsearch.c (__tdestroy): Add libc_hidden_def.
525 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
527         [BZ #18822]
528         * include/assert.h (__assert_fail_base): Add attribute_hidden.
530 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
532         [BZ #18822]
533         * sysdeps/unix/sysv/linux/include/sys/sysinfo.h (__sysinfo): Add
534         attribute_hidden.
536 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
538         [BZ #18822]
539         * include/signal.h (__kill): Add libc_hidden_proto.
540         (__sigblock): Likewise.
541         (__sigprocmask): Likewise.
542         (__sigaltstack): Likewise.
543         * signal/kill.c (__kill): Add libc_hidden_def.
544         * signal/sigblock.c (__sigblock): Likewise.
545         * signal/sigprocmask.c (__sigprocmask): Likewise.
546         * sysdeps/mach/hurd/kill.c (__kill): Likewise.
547         * sysdeps/mach/hurd/sigaltstack.c (__sigaltstack): Likewise.
548         * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Likewise.
549         * sysdeps/posix/sigblock.c (__sigblock): Likewise.
550         * sysdeps/unix/sysv/linux/alpha/sigprocmask.c (__sigprocmask):
551         Likewise.
552         * sysdeps/unix/sysv/linux/ia64/sigprocmask.c (__sigprocmask):
553         Likewise.
554         * sysdeps/unix/sysv/linux/s390/s390-64/sigprocmask.c
555         (__sigprocmask): Likewise.
556         * sysdeps/unix/sysv/linux/sigprocmask.c (__sigprocmask):
557         Likewise.
558         * /sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c
559         (__sigprocmask): Likewise.
560         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c (__sigprocmask):
561         Likewise.
563 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
565         [BZ #18822]
566         * include/string.h (__strsep): Add libc_hidden_proto.
567         * string/strsep.c (__strsep): Add libc_hidden_def.
569 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
571         [BZ #18822]
572         * posix/spawn_int.h (__posix_spawn_file_actions_realloc): Add
573         attribute_hidden.
574         (__spawni): Likewise.
576 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
578         [BZ #18822]
579         * include/sys/mman.h (__mremap): Add libc_hidden_proto.
580         * sysdeps/unix/sysv/linux/m68k/mremap.S (__mremap): Add
581         libc_hidden_def.
583 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
585         [BZ #18822]
586         * include/malloc.h (__malloc_check_init): Add attribute_hidden.
588 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
590         [BZ #18822]
591         * include/sys/ioctl.h (__ioctl): Add libc_hidden_proto.
592         * misc/ioctl.c (__ioctl): Add libc_hidden_def.
593         * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
594         * sysdeps/unix/sysv/linux/aarch64/ioctl.S (__ioctl): Likewise.
595         * sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S (__ioctl):
596         Likewise.
597         * sysdeps/unix/sysv/linux/powerpc/ioctl.c (__ioctl): Likewise.
598         * sysdeps/unix/sysv/linux/tile/tilegx/ioctl.S (__ioctl): Likewise.
600 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
602         [BZ #18822]
603         * intl/gettextP.h (__dcngettext): Add attribute_hidden.
604         (__dcigettext): Likewise.
606 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
608         [BZ #18822]
609         * include/sys/sysinfo.h (__get_nprocs_conf): Add
610         libc_hidden_proto.
611         (__get_nprocs): Likewise.
612         (__get_phys_pages): Likewise.
613         (__get_avphys_pages): Likewise.
614         (__get_child_max): Add attribute_hidden.
615         * misc/getsysstats.c (__get_nprocs_conf): Add libc_hidden_def.
616         (__get_nprocs): Likewise.
617         (__get_phys_pages): Likewise.
618         (__get_avphys_pages): Likewise.
619         * sysdeps/mach/getsysstats.c (__get_nprocs_conf): Add
620         libc_hidden_def.
621         (__get_nprocs): Likewise.
622         (__get_phys_pages): Likewise.
623         (__get_avphys_pages): Likewise.
624         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Add
625         libc_hidden_def.
626         (__get_nprocs_conf): Likewise.
627         (__get_phys_pages): Likewise.
628         (__get_avphys_pages): Likewise.
630 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
632         [BZ #18822]
633         * sysdeps/unix/sysv/linux/netlinkaccess.h (__netlink_open): Add
634         attribute_hidden.
635         (__netlink_close): Likewise.
636         (__netlink_free_handle): Likewise.
637         (__netlink_request): Likewise.
639 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
641         [BZ #18822]
642         * include/rpc/rpc.h (__rpc_thread_variables): Add
643         attribute_hidden.
644         (__rpc_thread_svc_cleanup): Likewise.
645         (__rpc_thread_clnt_cleanup): Likewise.
646         (__rpc_thread_key_cleanup): Likewise.
648 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
650         [BZ #18822]
651         * include/sys/uio.h (__readv): Add libc_hidden_proto.
652         (__writev): Likewise.
653         * misc/readv.c (__readv): Add libc_hidden_def.
654         * misc/writev.c (__writev): Likewise.
655         * sysdeps/posix/readv.c (__readv): Likewise.
656         * sysdeps/posix/writev.c (__writev): Likewise.
657         * sysdeps/unix/sysv/linux/readv.c: Include <sys/uio.h>.
658         (__readv): Likewise.
659         * sysdeps/unix/sysv/linux/writev.c: Include <sys/uio.h>.
660         (__writev): Likewise.
662 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
664         [BZ #18822]
665         * include/regex.h (__re_compile_fastmap): Add attribute_hidden.
666         (__regcomp): Add libc_hidden_proto.
667         (__regexec): Likewise.
668         (__regfree): Likewise.
669         * posix/regcomp.c (__regcomp): Add libc_hidden_def.
670         (__regfree): Likewise.
671         * posix/regexec.c (__regexec): Likewise.
673 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
675         [BZ #18822]
676         * include/utmp.h (__updwtmp): Add libc_hidden_proto.
677         (__getutent): Likewise.
678         (__getutid): Likewise.
679         (__getutline): Likewise.
680         (__pututline): Likewise.
681         (__getutent_r): Likewise.
682         (__getutid_r): Likewise.
683         (__getutline_r): Likewise.
684         (__utmpname): Add attribute_hidden.
685         (__setutent): Likewise.
686         (__endutent): Likewise.
687         * login/getutent.c (__getutent): Add libc_hidden_def.
688         * login/getutent_r.c (__getutent_r): Likewise.
689         (__pututline): Likewise.
690         * login/getutid.c (__getutid): Likewise.
691         * login/getutid_r.c (__getutid_r): Likewise.
692         * login/getutline.c (__getutline): Likewise.
693         * login/getutline_r.c (__getutline_r): Likewise.
694         * login/updwtmp.c (__updwtmp): Likewise.
696 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
698         [BZ #18822]
699         * include/dirent.h (__opendir): Always add attribute_hidden.
700         (__fdopendir): Likewise.
701         (__closedir): Likewise.
702         (__readdir): Likewise.
703         (__readdir64): Add libc_hidden_proto.
704         * sysdeps/mach/hurd/readdir64.c (__readdir64): Add libc_hidden_def.
705         * sysdeps/unix/sysv/linux/i386/readdir64.c (__readdir64): Likewise.
706         * sysdeps/unix/sysv/linux/readdir64.c (__readdir64): Likewise.
707         * sysdeps/unix/sysv/linux/wordsize-64/readdir.c (__GI___readdir64):
708         New alias.
710 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
712         [BZ #18822]
713         * include/aliases.h (__getaliasbyname_r): Add attribute_hidden.
714         * include/netdb.h (__gethostbyaddr_r): Likewise.
715         (__gethostbyname_r): Likewise.
716         (__gethostbyname2_r): Likewise.
717         (__getnetbyaddr_r): Likewise.
718         (__getnetbyname_r): Likewise.
719         (__getservbyname_r): Likewise.
720         (__getservbyport_r): Likewise.
721         (__getprotobyname_r): Likewise.
722         (__getprotobynumber_r): Likewise.
723         (__getnetgrent_r): Likewise.
724         * include/rpc/netdb.h (__getrpcbyname_r): Likewise.
725         (__getrpcbynumber_r): Likewise.
726         * nss/getXXbyYY.c (INTERNAL (REENTRANT_NAME)): Likewise.
728 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
730         [BZ #18822]
731         * include/stdio.h (__fcloseall): Add attribute_hidden.
732         (__getline): Likewise.
733         (__path_search): Likewise.
734         (__gen_tempname): Likewise.
735         (__libc_message): Likewise.
736         (__flockfile): Likewise.
737         (__funlockfile): Likewise.
738         (__fxprintf): Likewise.
739         (__fxprintf_nocancel): Likewise.
741 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
743         [BZ #18822]
744         * include/gshadow.h (__fgetsgent_r): Add attribute_hidden.
745         (__sgetsgent_r): Likewise.
747 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
749         [BZ #18822]
750         * include/sys/statfs.h (__fstatfs): Add attribute_hidden.
751         (__statfs64): Likewise.
752         (__fstatfs64): Likewise.
753         * include/sys/statvfs.h (__statvfs64): Likewise.
754         (__fstatvfs64): Likewise.
755         * sysdeps/unix/sysv/linux/pathconf.h (__statfs_link_max): Likewise.
756         (__statfs_filesize_max): Likewise.
757         (__statfs_symlinks): Likewise.
758         (__statfs_chown_restricted): Likewise.
760 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
762         [BZ #18822]
763         * include/time.h (__tzstring): Add attribute_hidden.
764         (__tzfile_read): Likewise.
765         (__tzfile_compute): Likewise.
766         (__tzfile_default): Likewise.
767         (__tzset_parse_tz): Likewise.
768         (__offtime): Likewise.
769         (__asctime_r): Likewise.
770         (__tzset): Likewise.
771         (__tz_convert): Likewise.
772         (__getdate_r): Likewise.
773         (__getclktck): Likewise.
775 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
777         [BZ #18822]
778         * nscd/nscd-client.h (__nscd_get_map_ref): Add attribute_hidden.
779         (__nscd_unmap): Likewise.
780         (__nscd_cache_search): Likewise.
781         (__nscd_get_nl_timestamp): Likewise.
782         (__nscd_getpwnam_r): Likewise.
783         (__nscd_getpwuid_r): Likewise.
784         (__nscd_getgrnam_r): Likewise.
785         (__nscd_getgrgid_r): Likewise.
786         (__nscd_gethostbyname_r): Likewise.
787         (__nscd_gethostbyname2_r): Likewise.
788         (__nscd_gethostbyaddr_r): Likewise.
789         (__nscd_getai): Likewise.
790         (__nscd_getgrouplist): Likewise.
791         (__nscd_getservbyname_r): Likewise.
792         (__nscd_getservbyport_r): Likewise.
793         (__nscd_innetgr): Likewise.
794         (__nscd_setnetgrent): Likewise.
796 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
798         [BZ #18822]
799         * include/gmp.h: Declare internal functions only if _ISOMAC is
800         undefined.
801         (__mpn_extract_double): Add attribute_hidden.
802         (__mpn_extract_long_double): Likewise.
803         (__mpn_extract_float128): Likewise.
804         (__mpn_construct_float): Likewise.
805         (__mpn_construct_double): Likewise.
806         (__mpn_construct_long_double): Likewise.
807         (__mpn_construct_float128): Likewise.
808         (mpn_add_1): Likewise.
809         (mpn_addmul_1): Likewise.
810         (mpn_add_n): Likewise.
811         (mpn_cmp): Likewise.
812         (mpn_divrem): Likewise.
813         (mpn_lshift): Likewise.
814         (mpn_mul): Likewise.
815         (mpn_mul_1): Likewise.
816         (mpn_rshift): Likewise.
817         (mpn_sub_1): Likewise.
818         (mpn_submul_1): Likewise.
819         (mpn_sub_n): Likewise.
821 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
823         [BZ #18822]
824         * include/wchar.h (__wcsnlen): Add attribute_hidden.
825         (__wcscat): Likewise.
826         (__btowc): Likewise.
827         (__wcrtomb): Likewise.
828         (__mbsrtowcs): Likewise.
829         (__wcsrtombs): Likewise.
830         (__mbsnrtowcs): Likewise.
831         (__wcsnrtombs): Likewise.
832         (__wcsncpy): Likewise.
833         (__wcpncpy): Likewise.
834         (__wmemcpy): Likewise.
835         (__wmempcpy): Likewise.
836         (__wmemmove): Likewise.
837         (__wcschrnul): Likewise.
838         (__vfwscanf): Likewise.
839         (__vswprintf): Likewise.
840         (__fwprintf): Likewise.
841         (__vfwprintf): Likewise.
843 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
845         [BZ #18822]
846         * include/grp.h (__fgetgrent_r): Add attribute_hidden.
847         (__getgrgid_r): Likewise.
848         (__getgrnam_r): Likewise.
849         * include/pwd.h (__getpwuid_r): Likewise.
850         (__getpwnam_r): Likewise.
851         (__fgetpwent_r): Likewise.
852         * include/shadow.h (__getspnam_r): Likewise.
853         (__sgetspent_r): Likewise.
854         (__fgetspent_r): Likewise.
856 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
858         [BZ #18822]
859         * include/unistd.h (__access): Add attribute_hidden.
860         (__lseek64): Likewise.
861         (__libc_pread64): Likewise.
862         (__pipe2): Likewise.
863         (__sleep): Likewise.
864         (__chdir): Likewise.
865         (__fchdir): Likewise.
866         (__getcwd): Likewise.
867         (__rmdir): Likewise.
868         (__execvpe): Likewise.
869         (__execve): Likewise.
870         (__setsid): Likewise.
871         (__getuid): Likewise.
872         (__geteuid): Likewise.
873         (__getgid): Likewise.
874         (__getegid): Likewise.
875         (__getgroups): Likewise.
876         (__group_member): Likewise.
877         (__ttyname_r): Likewise.
878         (__isatty): Likewise.
879         (__readlink): Likewise.
880         (__unlink): Likewise.
881         (__gethostname): Likewise.
882         (__profil): Likewise.
883         (__getdtablesize): Likewise.
884         (__brk): Likewise.
885         (__ftruncate): Likewise.
886         (__ftruncate64): Likewise.
888 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
890         [BZ #18822]
891         * argp/argp-fmtstream.c: Include <argp-fmtstream.h>.
892         * argp/argp-fs-xinl.c: Likewise.
893         * argp/argp-help.c: Include <argp.h> and <argp-fmtstream.h>.
894         * argp/argp-parse.c: Include <argp.h>.
895         * argp/argp-xinl.c: Likewise.
896         * include/argp-fmtstream.h: New file.
897         * include/argp.h (__argp_error): Add attribute_hidden.
898         (__argp_failure): Likewise.
899         (__argp_input): Likewise.
900         (__argp_state_help): Likewise.
902 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
904         [BZ #18822]
905         * include/wchar.h (____wcstof_l_internal): New prototype.
906         (____wcstod_l_internal): Likewise.
907         (____wcstold_l_internal): Likewise.
908         (____wcstol_l_internal): Likewise.
909         (____wcstoul_l_internal): Likewise.
910         (____wcstoll_l_internal): Likewise.
911         (____wcstoull_l_internal): Likewise.
912         (____wcstof128_l_internal): Likewise.
913         * sysdeps/ieee754/float128/wcstof128.c
914         (____wcstof128_l_internal): Removed.
915         * sysdeps/ieee754/float128/wcstof128_l.c
916         (____wcstof128_l_internal): Likewise.
917         * wcsmbs/wcstod.c (____wcstod_l_internal): Likewise.
918         * wcsmbs/wcstod_l.c (____wcstod_l_internal): Likewise.
919         * wcsmbs/wcstof.c (____wcstof_l_internal): Likewise.
920         * wcsmbs/wcstof_l.c (____wcstof_l_internal): Likewise.
921         * wcsmbs/wcstol_l.c (____wcstol_l_internal): Likewise.
922         * wcsmbs/wcstold.c (____wcstold_l_internal): Likewise.
923         * wcsmbs/wcstold_l.c (____wcstold_l_internal): Likewise.
924         * wcsmbs/wcstoll_l.c (____wcstoll_l_internal): Likewise.
925         * wcsmbs/wcstoul_l.c (____wcstoul_l_internal): Likewise.
926         * wcsmbs/wcstoull_l.c (____wcstoull_l_internal): Likewise.
928 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
930         [BZ #18822]
931         * sysdeps/unix/sysv/linux/fstatvfs.c: Include "internal_statvfs.h"
932         instead of <sys/statvfs.h>.
933         (__internal_statvfs): Removed.
934         * sysdeps/unix/sysv/linux/fstatvfs64.c Include "internal_statvfs.h"
935         instead of <sys/statvfs.h>.
936         (__internal_statvfs64): Removed.
937         * sysdeps/unix/sysv/linux/internal_statvfs.c: Include
938         "internal_statvfs.h" instead of <sys/statvfs.h>.
939         * sysdeps/unix/sysv/linux/internal_statvfs.h: New file.
940         * sysdeps/unix/sysv/linux/statvfs.c Include "internal_statvfs.h"
941         instead of <sys/statvfs.h>.
942         (__internal_statvfs): Removed.
943         * sysdeps/unix/sysv/linux/statvfs64.c Include "internal_statvfs.h"
944         instead of <sys/statvfs.h>.
945         (__internal_statvfs64): Removed.
947 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
949         [BZ #18822]
950         * iconv/gconv_int.h (__gconv_open): Add attribute_hidden.
951         (__gconv_close): Likewise.
952         (__gconv): Likewise.
953         (__gconv_find_transform): Likewise.
954         (__gconv_lookup_cache): Likewise.
955         (__gconv_compare_alias_cache): Likewise.
956         (__gconv_load_cache): Likewise.
957         (__gconv_get_path): Likewise.
958         (__gconv_close_transform): Likewise.
959         (__gconv_release_cache): Likewise.
960         (__gconv_find_shlib): Likewise.
961         (__gconv_release_shlib): Likewise.
962         (__gconv_get_builtin_trans): Likewise.
963         (__gconv_compare_alias): Likewise.
964         * include/dlfcn.h (_dlerror_run): Likewise.
965         * include/stdio.h (__fortify_fail_abort): Likewise.
966         * include/time.h (__tz_compute): Likewise.
967         (__strptime_internal): Likewise.
968         * intl/gettextP.h (_nl_find_domain): Likewise.
969         (_nl_load_domain): Likewise.
970         (_nl_find_msg): Likewise.
971         * intl/plural-exp.h (FREE_EXPRESSION): Likewise.
972         (EXTRACT_PLURAL_EXPRESSION): Likewise.
973         * locale/coll-lookup.h (__collidx_table_lookup): Likewise.
974         * resolv/gai_misc.h (__gai_enqueue_request): Likewise.
975         (__gai_find_request): Likewise.
976         (__gai_remove_request): Likewise.
977         (__gai_notify): Likewise.
978         (__gai_notify_only): Likewise.
979         * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
980         * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
981         (_dl_non_dynamic_init): Likewise.
982         (_dl_aux_init): Likewise.
983         * sysdeps/i386/machine-gmon.h (mcount_internal): Likewise.
984         * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
985         Likewise.
986         * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv): Likewise.
987         (__wcsmbs_clone_conv): Likewise.
988         (__wcsmbs_named_conv): Likewise.
990 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
992         [BZ #18822]
993         * include/stdlib.h (__random): Add attribute_hidden.
994         (__random_r): Likewise.
995         (__srandom_r): Likewise.
996         (__initstate_r): Likewise.
997         (__setstate_r): Likewise.
998         (__erand48_r): Likewise.
999         (__nrand48_r): Likewise.
1000         (__jrand48_r): Likewise.
1001         (__srand48_r): Likewise.
1002         (__seed48_r): Likewise.
1003         (__lcong48_r): Likewise.
1004         (__drand48_iterate): Likewise.
1005         (__setenv): Likewise.
1006         (__unsetenv): Likewise.
1007         (__clearenv): Likewise.
1008         (__ptsname_r): Likewise.
1009         (__posix_openpt): Likewise.
1010         (__add_to_environ): Likewise.
1011         (__realpath): Add libc_hidden_proto.
1012         (__ecvt_r): Likewise.
1013         (__fcvt_r): Likewise.
1014         (__qecvt_r): Likewise.
1015         (__qfcvt_r): Likewise.
1016         * misc/efgcvt_r.c (cvt_symbol_1): Add libc_hidden_def (local).
1017         * stdlib/canonicalize.c (__realpath): Add libc_hidden_def.
1019 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
1021         [BZ #18822]
1022         * include/stdlib.h (__ptsname_internal): Add attribute_hidden.
1023         * include/time.h (__mktime_internal): Likewise.
1024         * libio/iolibio.h (__fopen_internal): Likewise.
1026 2017-10-01  John David Anglin  <danglin@gcc.gnu.org>
1028         * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Save return
1029         pointer in frame.
1030         * sysdeps/unix/sysv/linux/hppa/setcontext.S (__setcontext): Likewise.
1031         Correct offset used to restore PIC register.
1033 2017-09-30  John David Anglin  <danglin@gcc.gnu.org>
1035         [BZ libc/22165]
1036         * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Use PIC
1037         code to load address of __getcontext_ret when generating PIC code.
1039 2017-09-30  H.J. Lu  <hongjiu.lu@intel.com>
1041         * elf/Makefile (tests-static-internal): Add
1042         tst-tls1-static-non-pie.
1043         (LDFLAGS-tst-tls1-static-non-pie): New.
1044         * elf/tst-tls1-static-non-pie.c: New file.
1046 2017-09-29  Joseph Myers  <joseph@codesourcery.com>
1048         * sysdeps/ieee754/dbl-64/s_asinh.c: Include <libm-alias-double.h>.
1049         (asinh): Define using libm_alias_double.
1050         * sysdeps/ieee754/dbl-64/s_cbrt.c: Include <libm-alias-double.h>.
1051         (cbrt): Define using libm_alias_double.
1052         * sysdeps/ieee754/dbl-64/s_copysign.c: Include
1053         <libm-alias-double.h>.
1054         (copysign): Define using libm_alias_double.
1055         * sysdeps/ieee754/dbl-64/s_erf.c: Include <libm-alias-double.h>.
1056         (erf): Define using libm_alias_double.
1057         (erfc): Likewise.
1058         * sysdeps/ieee754/dbl-64/s_expm1.c: Include <libm-alias-double.h>.
1059         (expm1): Define using libm_alias_double.
1060         * sysdeps/ieee754/dbl-64/s_fabs.c: Include <libm-alias-double.h>.
1061         (fabs): Define using libm_alias_double.
1062         * sysdeps/ieee754/dbl-64/s_fromfp.c (fromfp): Define using
1063         libm_alias_double.
1064         * sysdeps/ieee754/dbl-64/s_fromfp_main.c: Include
1065         <libm-alias-double.h>.
1066         * sysdeps/ieee754/dbl-64/s_fromfpx.c (fromfpx): Define using
1067         libm_alias_double.
1068         * sysdeps/ieee754/dbl-64/s_getpayload.c: Include
1069         <libm-alias-double.h>.
1070         (getpayload): Define using libm_alias_double.
1071         * sysdeps/ieee754/dbl-64/s_llrint.c: Include
1072         <libm-alias-double.h>.
1073         (llrint): Define using libm_alias_double.
1074         * sysdeps/ieee754/dbl-64/s_lrint.c: Include <libm-alias-double.h>.
1075         (lrint): Define using libm_alias_double.
1076         * sysdeps/ieee754/dbl-64/s_nextup.c: Include
1077         <libm-alias-double.h>.
1078         (nextup): Define using libm_alias_double.
1079         * sysdeps/ieee754/dbl-64/s_roundeven.c: Include
1080         <libm-alias-double.h>.
1081         (roundeven): Define using libm_alias_double.
1082         * sysdeps/ieee754/dbl-64/s_setpayload.c (setpayload): Define using
1083         libm_alias_double.
1084         * sysdeps/ieee754/dbl-64/s_setpayload_main.c: Include
1085         <libm-alias-double.h>.
1086         * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (setpayloadsig): Define
1087         using libm_alias_double.
1088         * sysdeps/ieee754/dbl-64/s_sin.c: Include <libm-alias-double.h>.
1089         (cos): Define using libm_alias_double.
1090         (sin): Likewise.
1091         * sysdeps/ieee754/dbl-64/s_sincos.c: Include
1092         <libm-alias-double.h>.
1093         (sincos): Define using libm_alias_double.
1094         * sysdeps/ieee754/dbl-64/s_tanh.c: Include <libm-alias-double.h>.
1095         (tanh): Define using libm_alias_double.
1096         * sysdeps/ieee754/dbl-64/s_totalorder.c: Include
1097         <libm-alias-double.h>.
1098         (totalorder): Define using libm_alias_double.
1099         * sysdeps/ieee754/dbl-64/s_totalordermag.c: Include
1100         <libm-alias-double.h>.
1101         (totalordermag): Define using libm_alias_double.
1102         * sysdeps/ieee754/dbl-64/s_ufromfp.c (ufromfp): Define using
1103         libm_alias_double.
1104         * sysdeps/ieee754/dbl-64/s_ufromfpx.c (ufromfpx): Define using
1105         libm_alias_double.
1106         * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c: Include
1107         <libm-alias-double.h>.
1108         (getpayload): Define using libm_alias_double.
1109         * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c: Include
1110         <libm-alias-double.h>.
1111         (roundeven): Define using libm_alias_double.
1112         * sysdeps/ieee754/dbl-64/wordsize-64/s_setpayload_main.c: Include
1113         <libm-alias-double.h>.
1114         * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c: Include
1115         <libm-alias-double.h>.
1116         (totalorder): Define using libm_alias_double.
1117         * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c: Include
1118         <libm-alias-double.h>.
1119         (totalordermag): Define using libm_alias_double.
1120         * sysdeps/ieee754/ldbl-opt/s_copysign.c (copysignl): Only define
1121         libc compat symbol here.
1122         * sysdeps/ieee754/ldbl-opt/s_asinh.c: Remove file.
1123         * sysdeps/ieee754/ldbl-opt/s_cbrt.c: Likewise.
1124         * sysdeps/ieee754/ldbl-opt/s_erf.c: Likewise.
1125         * sysdeps/ieee754/ldbl-opt/s_expm1.c: Likewise.
1126         * sysdeps/ieee754/ldbl-opt/s_fabs.c: Likewise.
1127         * sysdeps/ieee754/ldbl-opt/s_llrint.c: Likewise.
1128         * sysdeps/ieee754/ldbl-opt/s_lrint.c: Likewise.
1129         * sysdeps/ieee754/ldbl-opt/s_sin.c: Likewise.
1130         * sysdeps/ieee754/ldbl-opt/s_sincos.c: Likewise.
1131         * sysdeps/ieee754/ldbl-opt/s_tanh.c: Likewise.
1133 2017-09-29  H.J. Lu  <hongjiu.lu@intel.com>
1135         * sysdeps/arm/dl-machine.h (elf_machine_load_address): Use
1136         _dl_relocate_static_pie instead of _dl_start to compute load
1137         address in static PIE.  Return 0 if _DYNAMIC is undefined for
1138         static executable.
1140 2017-09-29  H.J. Lu  <hongjiu.lu@intel.com>
1142         * sysdeps/mips/dl-machine.h (elf_machine_dynamic): Return 0 if
1143         _DYNAMIC is undefined for static executable.
1145 2017-09-29  H.J. Lu  <hongjiu.lu@intel.com>
1147         * sysdeps/arm/start.S (_start): Check PIC instead of SHARED.
1149 2017-09-29  Joseph Myers  <joseph@codesourcery.com>
1151         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
1153 2017-09-29  Wilco Dijkstra  <wdijkstr@arm.com>
1155         * sysdeps/ieee754/dbl-64/e_lgamma_r.c
1156         (__ieee754_lgamma_r): Use fabs rather than __fabs.
1157         * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
1158         * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
1159         * sysdeps/ieee754/flt-32/e_lgammaf_r.c
1160         (__ieee754_lgammaf_r): Use fabsf rather than __fabsf.
1161         * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
1162         * sysdeps/ieee754/flt-32/e_log2f.c (__ieee754_log2f): Likewise.
1163         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c
1164         (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
1165         * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Likewise.
1166         * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Likewise.
1167         * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
1168         (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
1169         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l): Likewise.
1170         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l): Likewise.
1171         * sysdeps/powerpc/nofpu/Makefile: Add -fno-builtin-fabsl for BZ #29253.
1173 2017-09-29  Wilco Dijkstra  <wdijkstr@arm.com>
1175         * math/bits/cmathcalls.h (cimag): Remove inline.
1176         (creal): Remove inline.
1177         (conj): Remove inline.
1179 2017-09-29  Szabolcs Nagy  <szabolcs.nagy@arm.com>
1181         * math/Makefile (type-float-routines): Add e_powf_log2_data.
1182         * sysdeps/ieee754/flt-32/e_powf.c: New implementation.
1183         * sysdeps/ieee754/flt-32/e_powf_log2_data.c: New file.
1184         * sysdeps/ieee754/flt-32/math_config.h (__powf_log2_data): Define.
1185         (issignalingf_inline): Likewise.
1186         (POWF_LOG2_TABLE_BITS): Likewise.
1187         (POWF_LOG2_POLY_ORDER): Likewise.
1188         (POWF_SCALE_BITS): Likewise.
1189         (POWF_SCALE): Likewise.
1190         * sysdeps/i386/fpu/e_powf_log2_data.c: New file.
1191         * sysdeps/ia64/fpu/e_powf_log2_data.c: New file.
1192         * sysdeps/m68k/m680x0/fpu/e_powf_log2_data.c: New file.
1194 2017-09-29  Szabolcs Nagy  <szabolcs.nagy@arm.com>
1196         * math/Makefile (type-float-routines): Add e_log2f_data.
1197         * sysdeps/ieee754/flt-32/e_log2f.c: New implementation.
1198         * sysdeps/ieee754/flt-32/e_log2f_data.c: New file.
1199         * sysdeps/ieee754/flt-32/math_config.h (__log2f_data): Define.
1200         (LOG2F_TABLE_BITS, LOG2F_POLY_ORDER): Define.
1201         * sysdeps/i386/fpu/e_log2f_data.c: New file.
1202         * sysdeps/ia64/fpu/e_log2f_data.c: New file.
1203         * sysdeps/m68k/m680x0/fpu/e_log2f_data.c: New file.
1205 2017-09-29  Szabolcs Nagy  <szabolcs.nagy@arm.com>
1207         * math/Makefile (type-float-routines): Add e_logf_data.
1208         * sysdeps/ieee754/flt-32/e_logf.c: New implementation.
1209         * sysdeps/ieee754/flt-32/e_logf_data.c: New file.
1210         * sysdeps/ieee754/flt-32/math_config.h (__logf_data): Define.
1211         (LOGF_TABLE_BITS, LOGF_POLY_ORDER): Define.
1212         * sysdeps/i386/fpu/e_logf_data.c: New file.
1213         * sysdeps/ia64/fpu/e_logf_data.c: New file.
1214         * sysdeps/m68k/m680x0/fpu/e_logf_data.c: New file.
1216 2017-09-28  H.J. Lu  <hongjiu.lu@intel.com>
1218         * sysdeps/i386/dl-machine.h (elf_machine_load_address): Allow
1219         undefined _DYNAMIC in PIE libc.a.
1220         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
1221         Likewse.
1223 2017-09-28  Wilco Dijkstra  <wdijkstr@arm.com>
1225         * sysdeps/alpha/fpu/bits/mathinline.h: Delete file.
1226         * sysdeps/ia64/fpu/bits/mathinline.h: Delete file.
1227         * sysdeps/m68k/coldfire/fpu/bits/mathinline.h: Delete file.
1228         * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: (__signbitf): Remove.
1229         (__signbit): Remove.
1230         (__signbitl): Remove.
1231         * sysdeps/powerpc/bits/mathinline.h (__signbitf): Remove.
1232         (__signbit): Remove.
1233         (__signbitl): Remove.
1234         * sysdeps/s390/fpu/bits/mathinline.h: (__signbitf): Remove.
1235         (__signbit): Remove.
1236         (__signbitl): Remove.
1237         * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf): Remove.
1238         (__signbit): Remove.
1239         (__signbitl): Remove.
1240         * sysdeps/tile/bits/mathinline.h: Delete file.
1241         * sysdeps/x86/fpu/bits/mathinline.h (__signbitf): Remove.
1242         (__signbit): Remove.
1243         (__signbitl): Remove.
1245 2017-09-28  Wilco Dijkstra  <wdijkstr@arm.com>
1247         * math/math.h: Improve handling of C99 isgreater macros.
1248         * sysdeps/alpha/fpu/bits/mathinline.h: Remove isgreater macros.
1249         * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: Likewise.
1250         * sysdeps/powerpc/bits/mathinline.h: Likewise.
1251         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
1252         * sysdeps/x86/fpu/bits/mathinline.h: Likewise.
1254 2017-09-28  Szabolcs Nagy  <szabolcs.nagy@arm.com>
1256         * sysdeps/aarch64/libm-test-ulps: Update.
1258 2017-09-28  Joseph Myers  <joseph@codesourcery.com>
1260         [BZ #22225]
1261         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
1262         math_opt_barrier on argument when doing arithmetic on it.
1263         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
1264         Likewise.  Use math_force_eval not math_opt_barrier after
1265         arithmetic.
1266         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Use
1267         math_opt_barrier on argument when doing arithmetic on it.
1268         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
1269         Likewise.
1271 2017-09-27  H.J. Lu  <hongjiu.lu@intel.com>
1273         * sysdeps/unix/sysv/linux/ifaddrs.c (__getifaddrs): Add
1274         libc_hidden_def.
1275         (__freeifaddrs): Likewise.
1277 2017-09-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1279         * include/dirent.h (__dirfd): New declaration.
1280         * dirent/dirfd.c (dirfd): Rename to __dirfd, and redefine as weak
1281         alias.
1282         * sysdeps/posix/dirfd/dirfd.c (dirfd): Likewise.
1283         * sysdeps/mach/hurd/dirfd.c (dirfd): Likewise.
1284         * io/ftw.c (open_dir_stream, ftw_dir): Use __dirfd instead of dirfd.
1285         * include/unistd.h (__revoke): New declaration.
1286         * misc/revoke.c (revoke): Rename to __revoke, and redefine as weak
1287         alias.
1288         * sysdeps/mach/hurd/revoke.c (revoke): Likewise.
1289         * sysdeps/unix/bsd/unlockpt.c (unlockpt): Use __revoke instead of
1290         revoke.
1291         * include/dirent.h (__seekdir): New declaration.
1292         * sysdeps/mach/hurd/seekdir.c (seekdir): Rename to __seekdir and
1293         redefine as weak alias.
1294         * sysdeps/mach/hurd/rewinddir.c (__rewinddir): Use __seekdir instead
1295         of seekdir.
1296         * include/ifaddrs.h (__getifaddrs, __freeifaddrs): New declarations,
1297         and use libc_hidden_def on them.
1298         * inet/ifaddrs.c (__getifaddrs, __freeifaddrs): Use libc_hidden_def on
1299         them.
1300         * sysdeps/gnu/ifaddrs.c (__getifaddrs, __freeifaddrs): Likewise.
1301         * inet/check_pf.c (__check_pf): Use __getifaddrs and __freeifaddrs
1302         instead of getifaddrs and freeifaddrs.
1304 2017-09-26  H.J. Lu  <hongjiu.lu@intel.com>
1306         [BZ #18822]
1307         * dlfcn/modatexit.c (foo): Remove __dso_handle check.
1308         * dlfcn/modcxaatexit.c: Include <dso_handle.h>.
1309         (__dso_handle): Remove declaration.
1310         * dlfcn/tstatexit.c (__dso_handle): Removed.
1311         (main): Don't check __dso_handle.
1312         * dlfcn/tstcxaatexit.c (__dso_handle): Removed.
1313         (main): Don't check __dso_handle.
1314         * include/dso_handle.h: New file.
1315         * malloc/mtrace.c: Include <dso_handle.h>.
1316         (mtrace): Pass __dso_handle directly.
1317         * nptl/pthread_atfork.c: Include <dso_handle.h>.
1318         (__dso_handle): Remove declaration.
1319         (__pthread_atfork): Pass __dso_handle directly.
1320         * nptl/tst-atfork2mod.c: Include <dso_handle.h>.
1321         (__dso_handle): Removed.
1322         * posix/wordexp-test.c: Include <dso_handle.h>.
1323         (__dso_handle): Remove declaration.
1324         (__app_register_atfork): Pass __dso_handle directly.
1325         * stdlib/at_quick_exit.c: Include <dso_handle.h>.
1326         (__dso_handle): Remove declaration.
1327         (at_quick_exit): Pass __dso_handle directly.
1328         * stdlib/atexit.c: Include <dso_handle.h>.
1329         (__dso_handle): Remove declaration.
1330         (atexit): Pass __dso_handle directly.
1331         * stdlib/tst-tls-atexit-lib.c: Include <dso_handle.h>.
1332         (__dso_handle): Removed.
1334 2017-09-26  Joseph Myers  <joseph@codesourcery.com>
1336         * sysdeps/unix/make-syscalls.sh: Use __ifunc to define symbols
1337         using VDSO.
1339 2017-09-26  Alexey Makhalov  <amakhalov@vmware.com>
1341         * elf/dl-tunables.c (do_tunable_update_val): Range checking fix.
1342         * scripts/gen-tunables.awk: Set unspecified minval and/or maxval
1343         values to correct default value for given type.
1345 2017-09-26  H.J. Lu  <hongjiu.lu@intel.com>
1347         [BZ #22101]
1348         * elf/Makefile (tests): Add tst-debug1.
1349         ($(objpfx)tst-debug1): New.
1350         ($(objpfx)tst-debug1.out): Likewise.
1351         ($(objpfx)tst-debug1mod1.so): Likewise.
1352         * elf/dl-load.c (_dl_map_object_from_fd): Skip PT_DYNAMIC segment
1353         with p_filesz == 0.
1354         * elf/tst-debug1.c: New file.
1356 2017-09-26  Joseph Myers  <joseph@codesourcery.com>
1358         * sysdeps/sparc/sparc-ifunc.h [!__ASSEMBLER__] (sparc_libm_ifunc):
1359         Define using __ifunc.
1361 2017-09-26  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
1363         * sysdeps/powerpc/fpu/libm-test-ulps: Regenerate expf() and
1364         exp2f() values.
1366 2017-09-26  Joseph Myers  <joseph@codesourcery.com>
1368         [BZ #22156]
1369         * sysdeps/ia64/stackinfo.h (DEFAULT_STACK_PERMS): Likewise.
1371 2017-09-26  Florian Weimer  <fweimer@redhat.com>
1373         * resolv/Makefile (tests-internal): Fix typo in comment.
1375 2017-09-26  Florian Weimer  <fweimer@redhat.com>
1377         * resolv/nss_dns/dns-host.c: Fix typo in comment.
1379 2017-09-25  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1381         * lib/malloc/scratch_buffer.h (struct scratch_buffer):
1382         Use an union instead of a max_align_t array for __space,
1383         so that __space is the same size on all platforms.
1384         * malloc/scratch_buffer_grow_preserve.c
1385         (__libc_scratch_buffer_grow_preserve): Likewise.
1387         [BZ #22183]
1388         * include/gnu-versions.h (_GNU_GLOB_INTERFACE_VERSION): Increase
1389         version to 2.
1390         * posix/Makefile (routines): Add glob-lstat-compat and
1391         glob64-lstat-compat.
1392         * posix/Versions (GLIBC_2.27, glob, glob64): Add symbol version.
1393         * posix/glob-lstat-compat.c: New file.
1394         * posix/glob64-lstat-compat.c: Likewise.
1395         * posix/tst-glob_lstat_compat.c: Likewise.
1396         * sysdeps/unix/sysv/linux/glob-lstat-compat.c: Likewise.
1397         * sysdeps/unix/sysv/linux/alpha/glob-lstat-compat.c: Likewise.
1398         * sysdeps/unix/sysv/linux/glob64-lstat-compat.c: Likewise.
1399         * sysdeps/unix/sysv/linux/s390/s390-32/glob64-lstat-compat.c:
1400         Likewise.
1401         * sysdeps/unix/sysv/linux/alpha/glob.c: Remove file.
1402         * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
1403         * posix/glob.c (glob_lstat): New function.
1404         (glob): Rename to __glob and add versioned symbol to 2.27.
1405         (glob_in_dir): Use glob_lstat.
1406         * posix/glob64.c (glob64): Add GLOB_ATTRIBUTE.
1407         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
1408         * sysdeps/unix/sysv/linux/glob.c (glob): Add versioned symbol for
1409         2.27.
1410         * sysdeps/unix/sysv/linux/glob64.c (glob64): Likewise.
1411         * sysdeps/unix/sysv/linux/oldglob.c (GLOB_NO_LSTAT): Define.
1412         * sysdeps/unix/sysv/linux/alpha/oldglob.c (__old_glob): Do not use
1413         gl_lstat on glob call.
1414         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add GLIBC_2.27 glob
1415         and glob64 symbols.
1416         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
1417         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
1418         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
1419         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
1420         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
1421         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
1422         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
1423         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
1424         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
1425         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
1426         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
1427         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
1428         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
1429         Likewise.
1430         * sysdeps/unix/linux/powerpc/powerpc32/nofpu/libc.abilist: Likewise.
1431         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
1432         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
1433         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
1434         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
1435         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
1436         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
1437         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
1438         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
1439         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
1440         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
1441         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
1443 2017-09-25  H.J. Lu  <hongjiu.lu@intel.com>
1445         * configure.ac (AS): Require binutils 2.25 or later.
1446         * configure: Regenerated.
1448 2017-09-25  Paul Pluzhnikov  <ppluzhnikov@google.com>
1450         [BZ #22207]
1451         * stdlib/test-atexit-race-common.c (do_test): Minimize required
1452         VM size.
1454 2017-09-25  DJ Delorie  <dj@redhat.com>
1456         [BZ #22161]
1457         * nscd/netgroupcache.c (addinnetgrX): Release read lock after
1458         resetting timeout.
1460 2017-09-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
1462         * sysdeps/ieee754/dbl-64/sincos32.h
1463         [SINCCOS32_H]: Remove define.
1464         [SINCOS32_H]: Define.
1466 2017-09-25  Szabolcs Nagy  <szabolcs.nagy@arm.com>
1468         * math/Versions (expf): New libm symbol at GLIBC_2.27.
1469         (exp2f): Likewise.
1470         * math/w_exp2f.c: New file.
1471         * math/w_expf.c: New file.
1472         * math/w_exp2f_compat.c (__exp2f_compat): For compat symbol only.
1473         * math/w_expf_compat.c (__expf_compat): Likewise.
1474         * sysdeps/ia64/fpu/e_exp2f.S: Add versioned symbols.
1475         * sysdeps/ia64/fpu/e_expf.S: Likewise.
1476         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
1477         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
1478         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
1479         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
1480         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
1481         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
1482         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
1483         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
1484         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
1485         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
1486         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
1487         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
1488         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
1489         Likewise.
1490         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
1491         Likewise.
1492         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
1493         Likewise.
1494         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
1495         Likewise.
1496         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
1497         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
1498         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
1499         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
1500         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
1501         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
1502         Likewise.
1503         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
1504         Likewise.
1505         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
1506         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
1507         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
1509 2017-09-25  Szabolcs Nagy  <szabolcs.nagy@arm.com>
1511         * math/Makefile (type-float-routines): Add math_errf and e_exp2f_data.
1512         * sysdeps/aarch64/fpu/math_private.h (TOINT_INTRINSICS): Define.
1513         (roundtoint, converttoint): Likewise.
1514         * sysdeps/ieee754/flt-32/e_expf.c: New implementation.
1515         * sysdeps/ieee754/flt-32/e_exp2f.c: New implementation.
1516         * sysdeps/ieee754/flt-32/e_exp2f_data.c: New file.
1517         * sysdeps/ieee754/flt-32/math_config.h: New file.
1518         * sysdeps/ieee754/flt-32/math_errf.c: New file.
1519         * sysdeps/ieee754/flt-32/t_exp2f.h: Remove.
1520         * sysdeps/i386/fpu/e_exp2f_data.c: New file.
1521         * sysdeps/i386/fpu/math_errf.c: New file.
1522         * sysdeps/ia64/fpu/e_exp2f_data.c: New file.
1523         * sysdeps/ia64/fpu/math_errf.c: New file.
1524         * sysdeps/m68k/m680x0/fpu/e_exp2f_data.c: New file.
1525         * sysdeps/m68k/m680x0/fpu/math_errf.c: New file.
1527 2017-09-24  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1529         * sysdeps/mach/hurd/dl-sysdep.c (check_no_hidden): New macro.
1530         (__open, __close, __libc_read, __libc_write, __writev, __libc_lseek64,
1531         __mmap, __fxstat64, __xstat64, __access, __access_noerrno, __getpid,
1532         __getcwd, __sbrk, __strtoul_internal, _exit, abort): Use check_no_hidden
1533         to make sure that these symbols are defined.
1534         * sysdeps/mach/hurd/bits/socket.h: Include <bits/wordsize.h> instead
1535         of <limits.h>
1536         (__need_NULL): Do not define.
1537         (__ss_aligntype): Use __WORDSIZE instead of ULONG_MAX to determine
1538         alignment.
1539         [!__USE_MISC] (pseudo_AF_XTP, pseudo_AF_RTIP, pseudo_AF_PIP,
1540         CMGROUP_MAX, cmsgcred): Do not define.
1541         (CMSG_FIRSTHDR, __cmsg_nxthdr): Use (struct cmsghdr *) 0 instead of
1542         NULL.
1543         * bits/socket.h: Likewise.
1544         * sysdeps/unix/clock_gettime.c (realtime_gettime, __clock_gettime): Use
1545         __gettimeofday instead of gettimeofday.
1546         * sysdeps/unix/clock_settime.c (__clock_settime): Use __settimeofday
1547         instead of settimeofday.
1549 2017-09-22  Joseph Myers  <joseph@codesourcery.com>
1551         * sysdeps/ieee754/flt-32/s_asinhf.c: Include <libm-alias-float.h>.
1552         (asinhf): Define using libm_alias_float.
1553         * sysdeps/ieee754/flt-32/s_atanf.c: Include <libm-alias-float.h>.
1554         (atanf): Define using libm_alias_float.
1555         * sysdeps/ieee754/flt-32/s_cbrtf.c: Include <libm-alias-float.h>.
1556         (cbrtf): Define using libm_alias_float.
1557         * sysdeps/ieee754/flt-32/s_ceilf.c: Include <libm-alias-float.h>.
1558         (ceilf): Define using libm_alias_float.
1559         * sysdeps/ieee754/flt-32/s_copysignf.c: Include
1560         <libm-alias-float.h>.
1561         (copysignf): Define using libm_alias_float.
1562         * sysdeps/ieee754/flt-32/s_cosf.c: Include <libm-alias-float.h>.
1563         (cosf): Define using libm_alias_float.
1564         * sysdeps/ieee754/flt-32/s_erff.c: Include <libm-alias-float.h>.
1565         (erff): Define using libm_alias_float.
1566         (erfcf): Likewise.
1567         * sysdeps/ieee754/flt-32/s_expm1f.c: Include <libm-alias-float.h>.
1568         (expm1f): Define using libm_alias_float.
1569         * sysdeps/ieee754/flt-32/s_fabsf.c: Include <libm-alias-float.h>.
1570         (fabsf): Define using libm_alias_float.
1571         * sysdeps/ieee754/flt-32/s_floorf.c: Include <libm-alias-float.h>.
1572         (floorf): Define using libm_alias_float.
1573         * sysdeps/ieee754/flt-32/s_frexpf.c: Include <libm-alias-float.h>.
1574         (frexpf): Define using libm_alias_float.
1575         * sysdeps/ieee754/flt-32/s_fromfpf.c (fromfpf): Define using
1576         libm_alias_float.
1577         * sysdeps/ieee754/flt-32/s_fromfpf_main.c: Include
1578         <libm-alias-float.h>.
1579         * sysdeps/ieee754/flt-32/s_fromfpxf.c (fromfpxf): Define using
1580         libm_alias_float.
1581         * sysdeps/ieee754/flt-32/s_getpayloadf.c: Include
1582         <libm-alias-float.h>.
1583         (getpayloadf): Define using libm_alias_float.
1584         * sysdeps/ieee754/flt-32/s_llrintf.c: Include
1585         <libm-alias-float.h>.
1586         (llrintf): Define using libm_alias_float.
1587         * sysdeps/ieee754/flt-32/s_llroundf.c: Include
1588         <libm-alias-float.h>.
1589         (llroundf): Define using libm_alias_float.
1590         * sysdeps/ieee754/flt-32/s_logbf.c: Include <libm-alias-float.h>.
1591         (logbf): Define using libm_alias_float.
1592         * sysdeps/ieee754/flt-32/s_lrintf.c: Include <libm-alias-float.h>.
1593         (lrintf): Define using libm_alias_float.
1594         * sysdeps/ieee754/flt-32/s_lroundf.c: Include <libm-alias-float.h>.
1595         (lroundf): Define using libm_alias_float.
1596         * sysdeps/ieee754/flt-32/s_modff.c: Include <libm-alias-float.h>.
1597         (modff): Define using libm_alias_float.
1598         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Include
1599         <libm-alias-float.h>.
1600         (nearbyintf): Define using libm_alias_float.
1601         * sysdeps/ieee754/flt-32/s_nextafterf.c: Include
1602         <libm-alias-float.h>.
1603         (nextafterf): Define using libm_alias_float.
1604         * sysdeps/ieee754/flt-32/s_nextupf.c: Include
1605         <libm-alias-float.h>.
1606         (nextupf): Define using libm_alias_float.
1607         * sysdeps/ieee754/flt-32/s_remquof.c: Include
1608         <libm-alias-float.h>.
1609         (remquof): Define using libm_alias_float.
1610         * sysdeps/ieee754/flt-32/s_rintf.c: Include <libm-alias-float.h>.
1611         (rintf): Define using libm_alias_float.
1612         * sysdeps/ieee754/flt-32/s_roundevenf.c: Include
1613         <libm-alias-float.h>.
1614         (roundevenf): Define using libm_alias_float.
1615         * sysdeps/ieee754/flt-32/s_roundf.c: Include <libm-alias-float.h>.
1616         (roundf): Define using libm_alias_float.
1617         * sysdeps/ieee754/flt-32/s_setpayloadf.c (setpayloadf): Define
1618         using libm_alias_float.
1619         * sysdeps/ieee754/flt-32/s_setpayloadf_main.c: Include
1620         <libm-alias-float.h>.
1621         * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (setpayloadsigf):
1622         Define using libm_alias_float.
1623         * sysdeps/ieee754/flt-32/s_sincosf.c: Include
1624         <libm-alias-float.h>.
1625         (sincosf): Define using libm_alias_float.
1626         * sysdeps/ieee754/flt-32/s_sinf.c: Include <libm-alias-float.h>.
1627         (sinf): Define using libm_alias_float.
1628         * sysdeps/ieee754/flt-32/s_tanf.c: Include <libm-alias-float.h>.
1629         (tanf): Define using libm_alias_float.
1630         * sysdeps/ieee754/flt-32/s_tanhf.c: Include <libm-alias-float.h>.
1631         (tanhf): Define using libm_alias_float.
1632         * sysdeps/ieee754/flt-32/s_totalorderf.c: Include
1633         <libm-alias-float.h>.
1634         (totalorderf): Define using libm_alias_float.
1635         * sysdeps/ieee754/flt-32/s_totalordermagf.c: Include
1636         <libm-alias-float.h>.
1637         (totalordermagf): Define using libm_alias_float.
1638         * sysdeps/ieee754/flt-32/s_truncf.c: Include <libm-alias-float.h>.
1639         (truncf): Define using libm_alias_float.
1640         * sysdeps/ieee754/flt-32/s_ufromfpf.c (ufromfpf): Define using
1641         libm_alias_float.
1642         * sysdeps/ieee754/flt-32/s_ufromfpxf.c (ufromfpxf): Define using
1643         libm_alias_float.
1645 2017-09-22  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
1647         [BZ #22146]
1648         math/math.h: Let fpclassify use the builtin in C++ mode, even
1649         when optimazing for size.
1651 2017-09-22  Joseph Myers  <joseph@codesourcery.com>
1653         * csu/Makefile (generated): Do not add version-info.h.
1654         (before-compile): Likewise.
1655         (all-Banner-files): Remove variable.
1656         ($(objpfx)version-info.h): Remove rule.
1657         * csu/version.c (banner): Do not include "version-info.h".
1658         * libidn/Banner: Remove.
1659         * manual/contrib.texi (Simon Josefsson): New entry.
1661 2017-09-21  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
1663         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
1664         Remove conditionals on LDBL_MANT_DIG.
1665         * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
1666         (__ieee754_lgammal_r): Likewise.
1668 2017-09-21  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
1670         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Remove definitions of
1671         _Float128 and L().
1672         * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Remove definitions of
1673         _Float128 and L(). Replace _Float128 with long double and L(x)
1674         with xL, throughout the file.
1675         * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
1676         * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
1677         * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
1678         * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
1680 2017-09-21  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
1682         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Include tables from
1683         sysdeps/ieee754/ldbl-128ibm.
1684         * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Copy contents from the
1685         equivalent implementation in sysdeps/ieee754/ldbl-128/ instead
1686         of including it.  Keep _Float128 and L() intact.  These will be
1687         reviewed by a separate patch.
1688         * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
1689         * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
1690         * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
1691         * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
1693 2017-09-21  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
1695         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c
1696         (__finitef128): Define to __redirect___finitef128.
1697         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c
1698         (__isinff128): Define to __redirect___isinff128.
1699         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c
1700         (__isnanf128): Define to __redirect___isnanf128.
1702 2017-09-21  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
1704         * sysdeps/powerpc/powerpc64le/Makefile
1705         (CFLAGS-tst-strtod-nan-locale.c): New variable.
1706         (CFLAGS-tst-wcstod-nan-locale.c): New variable.
1708 2017-09-21  Paul Pluzhnikov  <ppluzhnikov@google.com>
1709             Carlos O'Donell  <carlos@redhat.com>
1711         [BZ #22180]
1712         * stdlib/Makefile (tests): Add test-dlclose-exit-race.
1713         * stdlib/test-dlclose-exit-race.c: New file.
1714         * stdlib/test-dlclose-exit-race-helper.c: New file.
1715         * stdlib/exit.c (__run_exit_handlers): Mark slot as free.
1717 2017-09-21  Joseph Myers  <joseph@codesourcery.com>
1719         * crypt/Banner: Remove file.
1720         * nptl/Banner: Likewise.
1721         * resolv/Banner: Likewise.
1722         * soft-fp/Banner: Likewise.
1723         * nptl/Makefile ($(objpfx)banner.h): Remove rule.
1724         ($(objpfx)version.d): Remove dependency on banner.h.
1725         ($(objpfx)version.os): Likewise.
1726         * nptl/version.c (banner): Do not include banner.h.
1727         * manual/contrib.texi: Update entries for Richard Henderson, Jakub
1728         Jelinek and BIND code.
1730 2017-09-20  Paul Pluzhnikov  <ppluzhnikov@google.com>
1731             Carlos O'Donell  <carlos@redhat.com>
1733         * support/xdlfcn.h: New file.
1734         * support/xdlfcn.c: New file.
1735         * support/Makefile (libsupport-routines): Add xdlfcn.
1736         * stdlib/tst-tls-atexit.c: Use xdlopen, xdlsym, xdlclose.
1738 2017-09-20  Joseph Myers  <joseph@codesourcery.com>
1740         [BZ #20142]
1741         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
1742         Add s_trunc-c, s_truncf-c, s_trunc-sse4_1 and s_truncf-sse4_1.
1743         * sysdeps/x86_64/fpu/multiarch/s_trunc-c.c: New file.
1744         * sysdeps/x86_64/fpu/multiarch/s_trunc-sse4_1.S: Likewise.
1745         * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Likewise.
1746         * sysdeps/x86_64/fpu/multiarch/s_truncf-c.c: Likewise.
1747         * sysdeps/x86_64/fpu/multiarch/s_truncf-sse4_1.S: Likewise.
1748         * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Likewise.
1750 2017-09-20  Paul Pluzhnikov  <ppluzhnikov@google.com>
1751             Ricky Zhou  <rickyz@google.com>
1752             Anoop V Chakkalakkal  <anoop.vijayan@in.ibm.com>
1754         [BZ #14333]
1755         * stdlib/cxa_atexit.c (__internal_atexit): Use __exit_funcs_lock.
1756         Remove atomics.
1757         (__new_exitfn): Fail registration when we finished at_exit processing.
1758         * stdlib/cxa_finalize.c (__cxa_finalize): Likewise.
1759         * stdlib/on_exit.c (__on_exit): Likewise.
1760         * stdlib/exit.c (__exit_funcs_done): New variable.
1761         (__run_exit_handlers): Use __exit_funcs_lock.
1762         * stdlib/exit.h (__exit_funcs_lock, __exit_funcs_done): New
1763         declarations.
1764         * stdlib/Makefile (test-atexit-race, test-quick_at_exit-race)
1765         (test-cxa_atexit-race, test-on_exit-race): New tests.
1766         * stdlib/test-atexit-race-common.c: New file.
1767         * stdlib/test-atexit-race.c: New file.
1768         * stdlib/test-at_quick_exit-race.c: New file.
1769         * stdlib/test-cxa_atexit-race.c: New file.
1770         * stdlib/test-on_exit-race.c: New file.
1772 2017-09-20  Szabolcs Nagy  <szabolcs.nagy@arm.com>
1774         * benchtests/Makefile: Add exp2f and log2f benchmarks.
1775         * benchtests/exp2f-inputs: Copy of expf-inputs.
1776         * benchtests/log2f-inputs: Copy of logf-inputs.
1778 2017-09-19  Joseph Myers  <joseph@codesourcery.com>
1780         * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]:
1781         Explicitly take address of first element of array arguments in
1782         call to INLINE_SYSCALL.
1784 2017-09-19  Andreas Schwab  <schwab@suse.de>
1786         [BZ #22134]
1787         * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]: Try
1788         execveat first.
1789         [!__ASSUME_EXECVEAT]: Fall back to /proc if execveat is
1790         unimplemented.
1791         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_EXECVEAT)
1792         [__LINUX_KERNEL_VERSION >= 0x031300]: Define.
1793         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
1794         (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040200]: Undef.
1795         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
1796         (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
1797         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
1798         (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
1799         * posix/Makefile (tests): Add tst-fexecve.
1800         * posix/tst-fexecve.c: New file.
1802 2017-09-19  Wilco Dijkstra  <wdijkstr@arm.com>
1804         * benchtests/Makefile: Add logf benchmark.
1805         * benchtests/logf-inputs: Add reduced trace from wrf_r.
1807 2017-09-19  Wilco Dijkstra  <wdijkstr@arm.com>
1809         * benchtests/Makefile: Add expf benchmark.
1810         * benchtests/expf-inputs: Add reduced trace from wrf_r.
1812 2017-09-19  Wilco Dijkstra  <wdijkstr@arm.com>
1814         * csu/Makefile: Add -funwind-tables to libc-start.c.
1815         * debug/Makefile: Add -funwind-tables to backtrace.c.
1816         * sysdeps/aarch64/Makefile: Remove CFLAGS-backtrace.c.
1817         * sysdeps/arm/Makefile: Likewise.
1818         * sysdeps/i386/Makefile: Likewise.
1819         * sysdeps/m68k/Makefile: Likewise.
1820         * sysdeps/mips/Makefile: Likewise.
1821         * sysdeps/nios2/Makefile: Likewise.
1822         * sysdeps/sh/Makefile: Likewise.
1823         * sysdeps/sparc/Makefile: Likewise.
1825 2017-09-19  Joseph Myers  <joseph@codesourcery.com>
1827         * benchtests/Makefile (bench-math): Add trunc and truncf.
1828         (CFLAGS-bench-trunc.c): New variable.
1829         (CFLAGS-bench-truncf.c): Likewise.
1830         * benchtests/trunc-inputs: New file.
1831         * benchtests/truncf-inputs: Likewise.
1833 2017-09-19  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
1835         * sysdeps/powerpc/powerpc64/power8/memset.S: Avoid misaligned stores.
1837 2017-09-18  Joseph Myers  <joseph@codesourcery.com>
1839         * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT &&
1840         !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)] (weak_alias): Undefine and
1841         redefine.
1842         [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
1843         (exp10l): Define as weak alias.
1844         * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c [LIBM_SVID_COMPAT
1845         && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (weak_alias): Undefine
1846         and redefine.
1847         [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)]
1848         (remainderl): Define as weak alias.
1850         * math/s_fmal.c: Include <libm-alias-ldouble.h>.
1851         (fmal): Define using libm_alias_ldouble.
1852         * math/w_acoshl_compat.c: Include <libm-alias-ldouble.h>.
1853         (acoshl): Define using libm_alias_ldouble.
1854         * math/w_acosl_compat.c: Include <libm-alias-ldouble.h>.
1855         (acosl): Define using libm_alias_ldouble.
1856         * math/w_asinl_compat.c: Include <libm-alias-ldouble.h>.
1857         (asinl): Define using libm_alias_ldouble.
1858         * math/w_atan2l_compat.c: Include <libm-alias-ldouble.h>.
1859         (atan2l): Define using libm_alias_ldouble.
1860         * math/w_atanhl_compat.c: Include <libm-alias-ldouble.h>.
1861         (atanhl): Define using libm_alias_ldouble.
1862         * math/w_coshl_compat.c: Include <libm-alias-ldouble.h>.
1863         (coshl): Define using libm_alias_ldouble.
1864         * math/w_exp10l_compat.c: Include <libm-alias-ldouble.h>.
1865         (exp10l): Define using libm_alias_ldouble.
1866         * math/w_exp2l_compat.c: Include <libm-alias-ldouble.h>.
1867         (exp2l): Define using libm_alias_ldouble.
1868         * math/w_expl_compat.c: Include <libm-alias-ldouble.h>.
1869         (expl): Define using libm_alias_ldouble.
1870         * math/w_fmodl_compat.c: Include <libm-alias-ldouble.h>.
1871         (fmodl): Define using libm_alias_ldouble.
1872         * math/w_hypotl_compat.c: Include <libm-alias-ldouble.h>.
1873         (hypotl): Define using libm_alias_ldouble.
1874         * math/w_j0l_compat.c: Include <libm-alias-ldouble.h>.
1875         (j0l): Define using libm_alias_ldouble.
1876         (y0l): Likewise.
1877         * math/w_j1l_compat.c: Include <libm-alias-ldouble.h>.
1878         (j1l): Define using libm_alias_ldouble.
1879         (y1l): Likewise.
1880         * math/w_jnl_compat.c: Include <libm-alias-ldouble.h>.
1881         (jnl): Define using libm_alias_ldouble.
1882         (ynl): Likewise.
1883         * math/w_log10l_compat.c: Include <libm-alias-ldouble.h>.
1884         (log10l): Define using libm_alias_ldouble.
1885         * math/w_log2l_compat.c: Include <libm-alias-ldouble.h>.
1886         (log2l): Define using libm_alias_ldouble.
1887         * math/w_logl_compat.c: Include <libm-alias-ldouble.h>.
1888         (logl): Define using libm_alias_ldouble.
1889         * math/w_powl_compat.c: Include <libm-alias-ldouble.h>.
1890         (powl): Define using libm_alias_ldouble.
1891         * math/w_remainderl_compat.c: Include <libm-alias-ldouble.h>.
1892         (remainderl): Define using libm_alias_ldouble.
1893         * math/w_sinhl_compat.c: Include <libm-alias-ldouble.h>.
1894         (sinhl): Define using libm_alias_ldouble.
1895         * math/w_sqrtl_compat.c: Include <libm-alias-ldouble.h>.
1896         (sqrtl): Define using libm_alias_ldouble.
1897         * math/w_tgammal_compat.c: Include <libm-alias-ldouble.h>.
1898         (tgammal): Define using libm_alias_ldouble.
1899         * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT]
1900         (exp10l): Do not use long_double_symbol here.
1901         * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
1902         [LIBM_SVID_COMPAT] (remainderl): Likewise.
1903         * sysdeps/ieee754/ldbl-opt/s_fmal.c: Remove.
1904         * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
1905         * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
1906         * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
1907         * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
1908         * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
1909         * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
1910         * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
1911         * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
1912         * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
1913         * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
1914         * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
1915         * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
1916         * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
1917         * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
1918         * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
1919         * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
1920         * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
1921         * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
1922         * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
1924 2017-09-18  Wang Boshi  <wangboshi@huawei.com>  (tiny change)
1926         * sysdeps/aarch64/start.S: Use MOVL instead of literal pools.
1927         * sysdeps/aarch64/sysdep.h (MOVL): Add MOVL macro.
1929 2017-09-17  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1931         * io/read.c (read): Add libc_hidden_weak.
1932         * sysdeps/mach/hurd/read.c (read): Likewise.
1933         * io/write.c (write): Likewise.
1934         * sysdeps/mach/hurd/write.c (write): Likewise.
1935         * io/pread64.c (__pread64): Likewise.
1936         * sysdeps/mach/hurd/pread64.c (__pread64): Likewise.
1937         * posix/pread64.c (__pread64): Add libc_hidden_def.
1939 2017-09-16  Siddhesh Poyarekar  <siddhesh@sourceware.org>
1941         * benchtests/scripts/compare_strings.py: New option -g.
1942         (draw_graph): Print a message that a graph is being generated.
1943         (process_results): Generate graph only if -g is passed.
1944         (main): Process option -g.
1946         * benchtests/scripts/compare_strings.py (process_results):
1947         Better spacing for output.
1949         * benchtests/scripts/compare_strings.py: Use argparse.
1950         * benchtests/README: Document existence of compare_strings.py.
1952 2017-09-15  Joseph Myers  <joseph@codesourcery.com>
1954         * math/s_fma.c: Include <libm-alias-double.h>.
1955         (fma): Define using libm_alias_double.
1956         * math/s_nextafter.c: Include <libm-alias-double.h>.
1957         (nextafter): Define using libm_alias_double.
1958         * math/w_acos_compat.c: Include <libm-alias-double.h>.
1959         (acos): Define using libm_alias_double.
1960         * math/w_acosh_compat.c: Include <libm-alias-double.h>.
1961         (aocsh): Define using libm_alias_double.
1962         * math/w_asin_compat.c: Include <libm-alias-double.h>.
1963         (asin): Define using libm_alias_double.
1964         * math/w_atan2_compat.c: Include <libm-alias-double.h>.
1965         (atan2): Define using libm_alias_double.
1966         * math/w_atanh_compat.c: Include <libm-alias-double.h>.
1967         (atanh): Define using libm_alias_double.
1968         * math/w_cosh_compat.c: Include <libm-alias-double.h>.
1969         (cosh): Define using libm_alias_double.
1970         * math/w_exp10_compat.c: Include <libm-alias-double.h>.
1971         (exp10): Define using libm_alias_double.
1972         * math/w_exp2_compat.c: Include <libm-alias-double.h>.
1973         (exp2): Define using libm_alias_double.
1974         * math/w_exp_compat.c: Include <libm-alias-double.h>.
1975         (exp): Define using libm_alias_double.
1976         * math/w_fmod_compat.c: Include <libm-alias-double.h>.
1977         (fmod): Define using libm_alias_double.
1978         * math/w_hypot_compat.c: Include <libm-alias-double.h>.
1979         (hypot): Define using libm_alias_double.
1980         * math/w_j0_compat.c: Include <libm-alias-double.h>.
1981         (j0): Define using libm_alias_double.
1982         (y0): Likewise.
1983         * math/w_j1_compat.c: Include <libm-alias-double.h>.
1984         (j1): Define using libm_alias_double.
1985         (y1): Likewise.
1986         * math/w_jn_compat.c: Include <libm-alias-double.h>.
1987         (jn): Define using libm_alias_double.
1988         (yn): Likewise.
1989         * math/w_log10_compat.c: Include <libm-alias-double.h>.
1990         (log10): Define using libm_alias_double.
1991         * math/w_log2_compat.c: Include <libm-alias-double.h>.
1992         (log2): Define using libm_alias_double.
1993         * math/w_log_compat.c: Include <libm-alias-double.h>.
1994         (log): Define using libm_alias_double.
1995         * math/w_pow_compat.c: Include <libm-alias-double.h>.
1996         (pow): Define using libm_alias_double.
1997         * math/w_remainder_compat.c: Include <libm-alias-double.h>.
1998         (remainder): Define using libm_alias_double.
1999         * math/w_sinh_compat.c: Include <libm-alias-double.h>.
2000         (sinh): Define using libm_alias_double.
2001         * math/w_sqrt_compat.c: Include <libm-alias-double.h>.
2002         (sqrt): Define using libm_alias_double.
2003         * math/w_tgamma_compat.c: Include <libm-alias-double.h>.
2004         (tgamma): Define using libm_alias_double.
2005         * sysdeps/ieee754/ldbl-opt/s_nextafter.c [LONG_DOUBLE_COMPAT(libm,
2006         GLIBC_2_0)] (nextafterl): Do not define compat symbol here.
2007         * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c
2008         [LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)] (exp10l): Likewise.
2009         * sysdeps/ieee754/ldbl-opt/w_remainder_compat.c
2010         [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (remainderl): Likewise.
2011         * sysdeps/ieee754/ldbl-opt/w_acos_compat.c: Remove.
2012         * sysdeps/ieee754/ldbl-opt/w_acosh_compat.c: Likewise.
2013         * sysdeps/ieee754/ldbl-opt/w_asin_compat.c: Likewise.
2014         * sysdeps/ieee754/ldbl-opt/w_atan2_compat.c: Likewise.
2015         * sysdeps/ieee754/ldbl-opt/w_atanh_compat.c: Likewise.
2016         * sysdeps/ieee754/ldbl-opt/w_cosh_compat.c: Likewise.
2017         * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Likewise.
2018         * sysdeps/ieee754/ldbl-opt/w_fmod_compat.c: Likewise.
2019         * sysdeps/ieee754/ldbl-opt/w_hypot_compat.c: Likewise.
2020         * sysdeps/ieee754/ldbl-opt/w_j0_compat.c: Likewise.
2021         * sysdeps/ieee754/ldbl-opt/w_j1_compat.c: Likewise.
2022         * sysdeps/ieee754/ldbl-opt/w_jn_compat.c: Likewise.
2023         * sysdeps/ieee754/ldbl-opt/w_log10_compat.c: Likewise.
2024         * sysdeps/ieee754/ldbl-opt/w_log2_compat.c: Likewise.
2025         * sysdeps/ieee754/ldbl-opt/w_log_compat.c: Likewise.
2026         * sysdeps/ieee754/ldbl-opt/w_pow_compat.c: Likewise.
2027         * sysdeps/ieee754/ldbl-opt/w_sinh_compat.c: Likewise.
2028         * sysdeps/ieee754/ldbl-opt/w_sqrt_compat.c: Likewise.
2029         * sysdeps/ieee754/ldbl-opt/w_tgamma_compat.c: Likewise.
2031         * math/e_acoshl.c: Remove.
2032         * math/e_acosl.c: Likewise.
2033         * math/e_asinl.c: Likewise.
2034         * math/e_atan2l.c: Likewise.
2035         * math/e_atanhl.c: Likewise.
2036         * math/e_coshl.c: Likewise.
2037         * math/e_expl.c: Likewise.
2038         * math/e_fmodl.c: Likewise.
2039         * math/e_gammal_r.c: Likewise.
2040         * math/e_hypotl.c: Likewise.
2041         * math/e_j0l.c: Likewise.
2042         * math/e_j1l.c: Likewise.
2043         * math/e_jnl.c: Likewise.
2044         * math/e_lgammal_r.c: Likewise.
2045         * math/e_log10l.c: Likewise.
2046         * math/e_log2l.c: Likewise.
2047         * math/e_logl.c: Likewise.
2048         * math/e_powl.c: Likewise.
2049         * math/e_rem_pio2l.c: Likewise.
2050         * math/e_sinhl.c: Likewise.
2051         * math/e_sqrtf128.c: Likewise.
2052         * math/e_sqrtl.c: Likewise.
2053         * math/k_cosl.c: Likewise.
2054         * math/k_sinl.c: Likewise.
2055         * math/k_tanl.c: Likewise.
2056         * math/s_asinhl.c: Likewise.
2057         * math/s_atanl.c: Likewise.
2058         * math/s_cbrtl.c: Likewise.
2059         * math/s_erfl.c: Likewise.
2060         * math/s_expm1l.c: Likewise.
2061         * math/s_log1pl.c: Likewise.
2062         * math/s_tanhl.c: Likewise.
2064 2017-09-15  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
2066         [BZ #21745]
2067         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile:
2068         [$(subdir) = math] (sysdep_calls): New variable.  Has the
2069         previous contents of sysdep_routines, but re-sorted..
2070         [$(subdir) = math] (sysdep_routines): Re-use the contents from
2071         sysdep_calls.
2072         [$(subdir) = math] (libm-sysdep_routines): Remove the functions
2073         defined in sysdep_calls and replace by the respective m_* names.
2074         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S:
2075         (compat_symbol): Undefine to avoid duplicated compat symbols in
2076         libc.
2078 2017-09-15  Joseph Myers  <joseph@codesourcery.com>
2080         * math/s_fmaf.c: Include <libm-alias-float.h>.
2081         (fmaf): Define using libm_alias_float.
2082         * math/w_acosf_compat.c: Include <libm-alias-float.h>.
2083         (acosf): Define using libm_alias_float.
2084         * math/w_acoshf_compat.c: Include <libm-alias-float.h>.
2085         (acoshf): Define using libm_alias_float.
2086         * math/w_asinf_compat.c: Include <libm-alias-float.h>.
2087         (asinf): Define using libm_alias_float.
2088         * math/w_atan2f_compat.c: Include <libm-alias-float.h>.
2089         (atan2f): Define using libm_alias_float.
2090         * math/w_atanhf_compat.c: Include <libm-alias-float.h>.
2091         (atanhf): Define using libm_alias_float.
2092         * math/w_coshf_compat.c: Include <libm-alias-float.h>.
2093         (coshf): Define using libm_alias_float.
2094         * math/w_exp10f_compat.c: Include <libm-alias-float.h>.
2095         (exp10f): Define using libm_alias_float.
2096         * math/w_fmodf_compat.c: Include <libm-alias-float.h>.
2097         (fmodf): Define using libm_alias_float.
2098         * math/w_hypotf_compat.c: Include <libm-alias-float.h>.
2099         (hypotf): Define using libm_alias_float.
2100         * math/w_j0f_compat.c: Include <libm-alias-float.h>.
2101         (j0f): Define using libm_alias_float.
2102         (y0f): Likewise.
2103         * math/w_j1f_compat.c: Include <libm-alias-float.h>.
2104         (j1f): Define using libm_alias_float.
2105         (y1f): Likewise.
2106         * math/w_jnf_compat.c: Include <libm-alias-float.h>.
2107         (jnf): Define using libm_alias_float.
2108         (ynf): Likewise.
2109         * math/w_log10f_compat.c: Include <libm-alias-float.h>.
2110         (log10f): Define using libm_alias_float.
2111         * math/w_log2f_compat.c: Include <libm-alias-float.h>.
2112         (log2f): Define using libm_alias_float.
2113         * math/w_logf_compat.c: Include <libm-alias-float.h>.
2114         (logf): Define using libm_alias_float.
2115         * math/w_powf_compat.c: Include <libm-alias-float.h>.
2116         (powf): Define using libm_alias_float.
2117         * math/w_remainderf_compat.c: Include <libm-alias-float.h>.
2118         (remainderf): Define using libm_alias_float.
2119         * math/w_sinhf_compat.c: Include <libm-alias-float.h>.
2120         (sinhf): Define using libm_alias_float.
2121         * math/w_sqrtf_compat.c: Include <libm-alias-float.h>.
2122         (sqrtf): Define using libm_alias_float.
2123         * math/w_tgammaf_compat.c: Include <libm-alias-float.h>.
2124         (tgammaf): Define using libm_alias_float.
2126 2017-09-14  Joseph Myers  <joseph@codesourcery.com>
2128         * include/math.h (roundeven): Change hidden_proto call to
2129         __roundeven.
2130         * math/w_j0_compat.c (j0): Rename to __j0 and define as weak
2131         alias.
2132         [NO_LONG_DOUBLE] (__j0l): New strong alias.
2133         (y0): Rename to __y0 and define as weak alias.
2134         [NO_LONG_DOUBLE] (__y0l): New strong alias.
2135         * math/w_j0f_compat.c (j0f): Rename to __j0f and define as weak
2136         alias.
2137         (y0f): Rename to __y0f and define as weak alias.
2138         * math/w_j1_compat.c (j1): Rename to __j1 and define as weak
2139         alias.
2140         [NO_LONG_DOUBLE] (__j1l): New strong alias.
2141         (y1): Rename to __y1 and define as weak alias.
2142         [NO_LONG_DOUBLE] (__y1l): New strong alias.
2143         * math/w_j1f_compat.c (j1f): Rename to __j1f and define as weak
2144         alias.
2145         (y1f): Rename to __y1f and define as weak alias.
2146         * math/w_jn_compat.c (jn): Rename to __jn and define as weak
2147         alias.
2148         [NO_LONG_DOUBLE] (__jnl): New strong alias.
2149         (yn): Rename to __yn and define as weak alias.
2150         [NO_LONG_DOUBLE] (__ynl): New strong alias.
2151         * math/w_jnf_compat.c (jnf): Rename to __jnf and define as weak
2152         alias.
2153         (ynf): Rename to __ynf and define as weak alias.
2154         * sysdeps/ieee754/dbl-64/s_fromfp.c (FUNC): Define to __fromfp.
2155         (fromfp): Define as weak alias.
2156         [NO_LONG_DOUBLE] (__fromfpl): New strong alias.
2157         * sysdeps/ieee754/dbl-64/s_fromfpx.c (FUNC): Define to __fromfpx.
2158         (fromfpx): Define as weak alias.
2159         [NO_LONG_DOUBLE] (__fromfpxl): New strong alias.
2160         * sysdeps/ieee754/dbl-64/s_getpayload.c (getpayload): Rename to
2161         __getpayload and define as weak alias.
2162         [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
2163         * sysdeps/ieee754/dbl-64/s_roundeven.c (roundeven): Rename to
2164         __roundeven and define as weak alias.
2165         [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
2166         * sysdeps/ieee754/dbl-64/s_setpayload.c (FUNC): Define to
2167         __setpayload.
2168         (setpayload): Define as weak alias.
2169         [NO_LONG_DOUBLE] (__setpayloadl): New strong alias.
2170         * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (FUNC): Define to
2171         __setpayloadsig.
2172         (setpayloadsig): Define as weak alias.
2173         [NO_LONG_DOUBLE] (__setpayloadsigl): New strong alias.
2174         * sysdeps/ieee754/dbl-64/s_totalorder.c (totalorder): Rename to
2175         __totalorder and define as weak alias.
2176         [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
2177         * sysdeps/ieee754/dbl-64/s_totalordermag.c (totalordermag): Rename
2178         to __totalordermag and define as weak alias.
2179         [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
2180         * sysdeps/ieee754/dbl-64/s_ufromfp.c (FUNC): Define to __ufromfp.
2181         (ufromfp): Define as weak alias.
2182         [NO_LONG_DOUBLE] (__ufromfpl): New strong alias.
2183         * sysdeps/ieee754/dbl-64/s_ufromfpx.c (FUNC): Define to
2184         __ufromfpx.
2185         (ufromfpx): Define as weak alias.
2186         [NO_LONG_DOUBLE] (__ufromfpxl): New strong alias.
2187         * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c (getpayload):
2188         Rename to __getpayload and define as weak alias.
2189         [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
2190         * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c (roundeven):
2191         Rename to __roundeven and define as weak alias.
2192         [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
2193         * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c (totalorder):
2194         Rename to __totalorder and define as weak alias.
2195         [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
2196         * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c
2197         (totalordermag): Rename to __totalordermag and define as weak
2198         alias.
2199         [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
2200         * sysdeps/ieee754/float128/float128_private.h (__getpayloadl): New
2201         macro.
2202         (__roundevenl): Likewise.
2203         (__totalorderl): Likewise.
2204         (__totalordermagl): Likewise
2205         * sysdeps/ieee754/float128/s_fromfpf128.c (FUNC): Define to
2206         __fromfpf128.
2207         (fromfpf128): Define as weak alias.
2208         * sysdeps/ieee754/float128/s_fromfpxf128.c (FUNC): Define to
2209         __fromfpxf128.
2210         (fromfpxf128): Define as weak alias.
2211         * sysdeps/ieee754/float128/s_setpayloadf128.c (FUNC): Define to
2212         __setpayloadf128.
2213         (setpayloadf128): Define as weak alias.
2214         * sysdeps/ieee754/float128/s_setpayloadsigf128.c (FUNC): Define to
2215         __setpayloadsigf128.
2216         (setpayloadsigf128): Define as weak alias.
2217         * sysdeps/ieee754/float128/s_ufromfpf128.c (FUNC): Define to
2218         __ufromfpf128.
2219         (ufromfpf128): Define as weak alias.
2220         * sysdeps/ieee754/float128/s_ufromfpxf128.c (FUNC): Define to
2221         __ufromfpxf128.
2222         (ufromfpxf128): Define as weak alias.
2223         * sysdeps/ieee754/flt-32/s_fromfpf.c (FUNC): Define to __fromfpf.
2224         (fromfpf): Define as weak alias.
2225         * sysdeps/ieee754/flt-32/s_fromfpxf.c (FUNC): Define to
2226         __fromfpxf.
2227         (fromfpxf): Define as weak alias.
2228         * sysdeps/ieee754/flt-32/s_getpayloadf.c (getpayloadf): Rename to
2229         __getpayloadf and define as weak alias.
2230         * sysdeps/ieee754/flt-32/s_roundevenf.c (roundevenf): Rename to
2231         __roundevenf and define as weak alias.
2232         * sysdeps/ieee754/flt-32/s_setpayloadf.c (FUNC): Define to
2233         __setpayloadf.
2234         (setpayloadf): Define as weak alias.
2235         * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (FUNC): Define to
2236         __setpayloadsigf.
2237         (setpayloadsigf): Define as weak alias.
2238         * sysdeps/ieee754/flt-32/s_totalorderf.c (totalorderf): Rename to
2239         __totalorderf and define as weak alias.
2240         * sysdeps/ieee754/flt-32/s_totalordermagf.c (totalordermagf):
2241         Rename to __totalordermagf and define as weak alias.
2242         * sysdeps/ieee754/flt-32/s_ufromfpf.c (FUNC): Define to
2243         __ufromfpf.
2244         (ufromfpf): Define as weak alias.
2245         * sysdeps/ieee754/flt-32/s_ufromfpxf.c (FUNC): Define to
2246         __ufromfpxf.
2247         (ufromfpxf): Define as weak alias.
2248         * sysdeps/ieee754/ldbl-128/s_fromfpl.c (FUNC): Define to
2249         __fromfpl.
2250         (fromfpl): Define as weak alias.
2251         * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (FUNC): Define to
2252         __fromfpxl.
2253         (fromfpxl): Define as weak alias.
2254         * sysdeps/ieee754/ldbl-128/s_getpayloadl.c (getpayloadl): Rename
2255         to __getpayloadl and define as weak alias.
2256         * sysdeps/ieee754/ldbl-128/s_roundevenl.c (roundevenl): Rename to
2257         __roundevenl and define as weak alias.
2258         * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (FUNC): Define to
2259         __setpayloadl.
2260         (setpayloadl): Define as weak alias.
2261         * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (FUNC): Define to
2262         __setpayloadsigl.
2263         (setpayloadsigl): Define as weak alias.
2264         * sysdeps/ieee754/ldbl-128/s_totalorderl.c (totalorderl): Rename
2265         to __totalorderl and define as weak alias.
2266         * sysdeps/ieee754/ldbl-128/s_totalordermagl.c (totalordermagl):
2267         Rename to __totalordermagl and define as weak alias.
2268         * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (FUNC): Define to
2269         __ufromfpl.
2270         (ufromfpl): Define as weak alias.
2271         * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (FUNC): Define to
2272         __ufromfpxl.
2273         (ufromfpxl): Define as weak alias.
2274         * sysdeps/ieee754/ldbl-128ibm/s_fromfpl.c (FUNC): Define to
2275         __fromfpl.
2276         (fromfpl): Define as weak alias.
2277         * sysdeps/ieee754/ldbl-128ibm/s_fromfpxl.c (FUNC): Define to
2278         __fromfpxl.
2279         (fromfpxl): Define as weak alias.
2280         * sysdeps/ieee754/ldbl-128ibm/s_getpayloadl.c (getpayloadl):
2281         Rename to __getpayloadl and define as weak alias.
2282         * sysdeps/ieee754/ldbl-128ibm/s_roundevenl.c (roundevenl): Rename
2283         to __roundevenl and define as weak alias.  Call __roundeven
2284         instead of roundeven.
2285         * sysdeps/ieee754/ldbl-128ibm/s_setpayloadl.c (FUNC): Define to
2286         __setpayloadl.
2287         (setpayloadl): Define as weak alias.
2288         * sysdeps/ieee754/ldbl-128ibm/s_setpayloadsigl.c (FUNC): Define to
2289         __setpayloadsigl.
2290         (setpayloadsigl): Define as weak alias.
2291         * sysdeps/ieee754/ldbl-128ibm/s_totalorderl.c (totalorderl):
2292         Rename to __totalorderl and define as weak alias.
2293         * sysdeps/ieee754/ldbl-128ibm/s_totalordermagl.c (totalordermagl):
2294         Rename to __totalordermagl and define as weak alias.
2295         * sysdeps/ieee754/ldbl-128ibm/s_ufromfpl.c (FUNC): Define to
2296         __ufromfpl.
2297         (ufromfpl): Define as weak alias.
2298         * sysdeps/ieee754/ldbl-128ibm/s_ufromfpxl.c (FUNC): Define to
2299         __ufromfpxl.
2300         (ufromfpxl): Define as weak alias.
2301         * sysdeps/ieee754/ldbl-96/s_fromfpl.c (FUNC): Define to
2302         __fromfpl.
2303         (fromfpl): Define as weak alias.
2304         * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (FUNC): Define to
2305         __fromfpxl.
2306         (fromfpxl): Define as weak alias.
2307         * sysdeps/ieee754/ldbl-96/s_getpayloadl.c (getpayloadl): Rename to
2308         __getpayloadl and define as weak alias.
2309         * sysdeps/ieee754/ldbl-96/s_roundevenl.c (roundevenl): Rename to
2310         __roundevenl and define as weak alias.
2311         * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (FUNC): Define to
2312         __setpayloadl.
2313         (setpayloadl): Define as weak alias.
2314         * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c (FUNC): Define to
2315         __setpayloadsigl.
2316         (setpayloadsigl): Define as weak alias.
2317         * sysdeps/ieee754/ldbl-96/s_totalorderl.c (totalorderl): Rename to
2318         __totalorderl and define as weak alias.
2319         * sysdeps/ieee754/ldbl-96/s_totalordermagl.c (totalordermagl):
2320         Rename to __totalordermagl and define as weak alias.
2321         * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (FUNC): Define to
2322         __ufromfpl.
2323         (ufromfpl): Define as weak alias.
2324         * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (FUNC): Define to
2325         __ufromfpxl.
2326         (ufromfpxl): Define as weak alias.
2328 2017-09-14  Siddhesh Poyarekar  <siddhesh@sourceware.org>
2330         * benchtests/bench-string.h (realloc_bufs): New function.
2331         (test_init): Call it.
2332         * benchtests/bench-memset-large.c (do_test): Likewise.
2333         * benchtests/bench-memset.c (do_test): Likewise.
2335         * benchtests/bench-memset-large.c: Print output in JSON
2336         format.
2337         * benchtests/bench-memset.c: Likewise.
2339 2017-09-14  Mike FABIAN  <mfabian@redhat.com>
2341         [BZ #21084]
2342         * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Add IBM858 and ibm858.c.
2343         * iconvdata/Makefile: Add IBM858.
2344         * iconvdata/gconv-modules: Likewise.
2345         * iconvdata/tst-tables.sh: Likewise.
2346         * iconvdata/ibm858.c: New file.
2347         * localedata/charmaps/IBM858: Likewise.
2349 2017-09-14  Akhilesh Kumar  <akhilesh.k@samsung.com>
2351         [BZ #22023]
2352         * locales/niu_NZ (LC_TIME): copy "niu_NU".
2353         * locales/niu_NZ (LC_MESSAGES): copy "niu_NU".
2355 2017-09-14  Mike FABIAN  <mfabian@redhat.com>
2357         [BZ #22112]
2358         * localedata/locales/az_AZ(LC_TELEPHONE): Fix int_select
2359         and add tel_int_fmt.
2361 2017-09-14  Joseph Myers  <joseph@codesourcery.com>
2363         * sysdeps/generic/libm-alias-float128.h: New file.
2364         * sysdeps/generic/math-type-macros-float128.h: Include
2365         <libm-alias-float128.h>.
2366         [!declare_mgen_alias] (declare_mgen_alias): Define macro.
2368 2017-09-13  Joseph Myers  <joseph@codesourcery.com>
2370         * sysdeps/generic/libm-alias-ldouble.h: New file.
2371         * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Likewise.
2372         * sysdeps/ieee754/ldbl-opt/math-type-macros-ldouble.h: Remove.
2373         * sysdeps/generic/math-type-macros-ldouble.h: Include
2374         <libm-alias-ldouble.h>.
2375         [!declare_mgen_alias] (declare_mgen_alias): Define to use
2376         libm_alias_ldouble.
2378 2017-09-13  Szabolcs Nagy  <szabolcs.nagy@arm.com>
2380         * sysdeps/ieee754/dbl-64/w_exp_compat.c: Move to...
2381         * math/w_exp_compat.c: ... here.
2382         * sysdeps/ieee754/flt-32/w_expf_compat.c: Move to...
2383         * math/w_expf_compat.c: ... here.
2384         * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Move to...
2385         * math/w_expl_compat.c: ... here.
2386         * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Remove.
2387         * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Remove.
2388         * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Use the new path.
2389         * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
2391 2017-09-13  Joseph Myers  <joseph@codesourcery.com>
2393         * math/w_scalbln_template.c (strong_alias): Do not undefine and
2394         redefine.
2395         * sysdeps/ieee754/ldbl-opt/s_ldexp.c (declare_mgen_alias): Remove
2396         macro.
2397         (ldexpl): Only define as compat symbol for libc, not libm.
2398         (scalbnl): Define as compat symbol for libc here.
2399         * sysdeps/ieee754/ldbl-opt/s_ldexpl.c (declare_mgen_alias): Only
2400         define for [IS_IN (libc)].
2401         (__ldexpl_2): Remove alias.
2402         (ldexpl): Only define with long_double_symbol if [IS_IN (libc)].
2403         (scalbnl): Likewise.  Use __wrap_scalbnl not __ldexpl_2 as base
2404         name in long_double_symbol call.
2405         * sysdeps/ieee754/ldbl-opt/s_log1p.c: Remove file.
2406         * sysdeps/ieee754/ldbl-opt/s_scalbln.c: Likewise.
2407         * sysdeps/ieee754/ldbl-opt/s_scalbn.c: Likewise.
2408         * sysdeps/ieee754/ldbl-opt/w_log1p.c: Likewise.
2409         * sysdeps/ieee754/ldbl-opt/w_scalbln.c (declare_mgen_alias):
2410         Remove macro.
2411         [IS_IN (libc) && LONG_DOUBLE_COMPAT (libc, GLIBC_2_1)] (scalblnl):
2412         Define as compat symbol.
2414 2017-09-13  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2416         * sysdeps/unix/sysv/linux/s390/s390-32/oldglob.c: New file.
2417         * sysdeps/unix/sysv/linux/alpha/Makefile
2418         [$(subdir) = csu] (sysdep_routines): Remove rule.
2420 2017-09-13  Joseph Myers  <joseph@codesourcery.com>
2422         * sysdeps/generic/libm-alias-double.h: New file.
2423         * sysdeps/ieee754/ldbl-opt/libm-alias-double.h: Likewise.
2424         * sysdeps/generic/math-type-macros-double.h: Include
2425         <libm-alias-double.h>.
2426         [declare_mgen_alias] (declare_mgen_alias): Define to use
2427         libm_alias_double.
2428         * sysdeps/generic/math-type-macros.h [!M_LIBM_NEED_COMPAT]
2429         (M_LIBM_NEED_COMPAT): Remove macro.
2430         [!M_LIBM_NEED_COMPAT] (declare_mgen_libm_compat): Likewise.
2431         * sysdeps/ieee754/ldbl-opt/math-type-macros-double.h: Remove.
2432         * math/cabs_template.c [M_LIBM_NEED_COMPAT]: Remove conditional
2433         code.
2434         * math/carg_template.c [M_LIBM_NEED_COMPAT]: Likewise.
2435         * math/cimag_template.c [M_LIBM_NEED_COMPAT]: Likewise.
2436         * math/conj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
2437         * math/creal_template.c [M_LIBM_NEED_COMPAT]: Likewise.
2438         * math/s_cacos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
2439         * math/s_cacosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
2440         * math/s_casin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
2441         * math/s_casinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
2442         * math/s_catan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
2443         * math/s_catanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
2444         * math/s_ccos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
2445         * math/s_ccosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
2446         * math/s_cexp_template.c [M_LIBM_NEED_COMPAT]: Likewise.
2447         * math/s_clog10_template.c [M_LIBM_NEED_COMPAT]: Likewise.
2448         * math/s_clog_template.c [M_LIBM_NEED_COMPAT]: Likewise.
2449         * math/s_cpow_template.c [M_LIBM_NEED_COMPAT]: Likewise.
2450         * math/s_cproj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
2451         * math/s_csin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
2452         * math/s_csinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
2453         * math/s_csqrt_template.c [M_LIBM_NEED_COMPAT]: Likewise.
2454         * math/s_ctan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
2455         * math/s_ctanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
2456         * math/s_fdim_template.c [M_LIBM_NEED_COMPAT]: Likewise.
2457         * math/s_fmax_template.c [M_LIBM_NEED_COMPAT]: Likewise.
2458         * math/s_fmin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
2459         * math/s_nan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
2460         * math/w_ilogb_template.c [M_LIBM_NEED_COMPAT]: Likewise.
2461         * sysdeps/ieee754/ldbl-opt/s_clog10.c: New file.
2462         * sysdeps/ieee754/ldbl-opt/s_ldexp.c (M_LIBM_NEED_COMPAT): Remove
2463         macro.
2464         (declare_mgen_alias): New macro.
2465         * sysdeps/ieee754/ldbl-opt/w_log1p.c: New file.
2466         * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Likewise.
2467         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.c
2468         (M_LIBM_NEED_COMPAT): Remove macro.
2469         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c
2470         [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h> and
2471         <first-versions.h>.
2472         [HAVE_AS_VIS3_SUPPORT && LONG_DOUBLE_COMPAT (libm,
2473         FIRST_VERSION_libm_fdiml)]: Define fdiml as compat symbol.
2475 2017-09-12  Joseph Myers  <joseph@codesourcery.com>
2477         * sysdeps/generic/math-type-macros.h [!declare_mgen_alias_2]
2478         (declare_mgen_alias_2): Remove.
2479         * sysdeps/generic/math-type-macros-double.h
2480         [NO_LONG_DOUBLE && !declare_mgen_alias_2] (declare_mgen_alias_2):
2481         Likewise.
2482         * math/s_ldexp_template.c (M_SUF (__wrap_scalbn)): Define strong
2483         alias.
2484         (ldexp): Define with declare_mgen_alias.
2485         (scalbn): Likewise.
2487 2017-09-12  Steve Ellcey  <sellcey@cavium.com>
2489         * grp/initgroups.c: Include config.h.
2490         (DEFAULT_CONFIG): New macro.
2491         (internal_getgrouplist): Use DEFAULT_CONFIG.
2492         * nscd/initgrcache.c (addinitgroupsX): Likewise.
2493         * nss/nsswitch.c (__nss_disable_nscd): Likewise.
2494         (DEFAULT_DEFCONFIG): New macro.
2495         (__nss_database_lookup): Use DEFAULT_DEFCONFIG.
2496         * nss/grp-lookup.c: Include config.h
2497         (DEFAULT_CONFIG): Set definition based on LINK_OBSOLETE_NSL.
2498         * nss/pwd-lookup.c (DEFAULT_CONFIG): Likewise.
2499         * nss/spwd-lookup.c (DEFAULT_CONFIG): Likewise.
2500         * manual/nss.texi: Update default values section.
2502 2017-09-12  H.J. Lu  <hongjiu.lu@intel.com>
2504         [BZ #21967]
2505         * sysdeps/x86/cpu-features.h (bit_arch_MathVec_Prefer_No_AVX512):
2506         New.
2507         (index_arch_MathVec_Prefer_No_AVX512): Likewise.
2508         * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
2509         Handle MathVec_Prefer_No_AVX512.
2510         * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h
2511         (IFUNC_SELECTOR): Return AVX2 version if MathVec_Prefer_No_AVX512
2512         is set.
2514 2017-09-12  Samuel Thibault  <samuel.thibault@ens-lyon.org>
2516         * posix/sched_primax.c (__sched_get_priority_max): Add
2517         libc_hidden_def.
2518         * posix/sched_primin.c (__sched_get_priority_min): Likewise.
2519         * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
2520         * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
2521         * sysdeps/mach/hurd/mprotect.c (__mprotect): Likewise.
2522         * sysdeps/mach/hurd/munmap.c (__munmap): Likewise.
2523         * sysdeps/mach/hurd/dl-sysdep.c (__GI___getpid,
2524         __GI___strtoul_internal, __GI_____strtoul_internal, __GI___chk_fail,
2525         __GI___fortify_fail, __GI___assert_fail, __GI___assert_perror_fail):
2526         Add aliases.
2528 2017-09-11  Joseph Myers  <joseph@codesourcery.com>
2530         * sysdeps/generic/libm-alias-float.h: New file.
2531         * sysdeps/generic/math-type-macros-float.h: Include
2532         <libm-alias-float.h>.
2533         [!declare_mgen_alias] (declare_mgen_alias): Define macro.
2535 2017-09-11  H.J. Lu  <hongjiu.lu@intel.com>
2537         [BZ #22093]
2538         * sysdeps/x86/cpu-features.c (init_cpu_features): Initialize
2539         GLRO(dl_hwcap) to HWCAP_X86_64 for x86-64.
2540         * sysdeps/x86/dl-hwcap.h (HWCAP_COUNT): Updated.
2541         (HWCAP_IMPORTANT): Likewise.
2542         (HWCAP_X86_64): New enum.
2543         (HWCAP_X86_AVX512_1): Updated.
2544         * sysdeps/x86/dl-procinfo.c (_dl_x86_hwcap_flags): Add "x86_64".
2545         * sysdeps/x86_64/Makefile (tests): Add tst-x86_64-1.
2546         (modules-names): Add x86_64/tst-x86_64mod-1.
2547         (LDFLAGS-tst-x86_64mod-1.so): New.
2548         ($(objpfx)tst-x86_64-1): Likewise.
2549         ($(objpfx)x86_64/tst-x86_64mod-1.os): Likewise.
2550         (tst-x86_64-1-clean): Likewise.
2551         * sysdeps/x86_64/tst-x86_64-1.c: New file.
2552         * sysdeps/x86_64/tst-x86_64mod-1.c: Likewise.
2554 2017-09-11  Siddhesh Poyarekar  <siddhesh@sourceware.org>
2556         * po/sv.po: Update translations.
2557         * po/fr.po: Likewise.
2559 2017-09-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
2561         * sunrpc/tst-udp-timeout.c (test_udp_server): Increase timeout to 2.5
2562         seconds.
2563         * sunrpc/tst-udp-nonblocking.c (do_test): Increase timeout to 0.75
2564         seconds.
2565         * elf/rtld-Rules: Fix $(error) use.
2567 2017-09-09  Mike FABIAN  <mfabian@redhat.com>
2569         [BZ #14925]
2570         * libio/tst-widetext.input: Change “Bengali” to “Bangla”.
2571         * locale/iso-639.def: Change “Bengali” to “Bangla”.
2572         * localedata/locales/bn_BD: “Bengali” was still used in some
2573         comments. Change it to “Bangla”.
2575 2017-09-08  Markus Trippelsdorf  <markus@trippelsdorf.de>
2577         * sysdeps/x86_64/fpu/libm-test-ulps: Update for AMD Ryzen.
2579 2017-09-08  Steve Ellcey  <sellcey@cavium.com>
2581         * manual/tunables.texi (glibc.tune.cpu): Add thunderx2t99 and
2582         thunderx2t99p1 to list of cpu names.
2583         * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
2584         Add thunderx2t99 and thunderx2t99p1 entries to cpu_list.
2586 2017-09-08  Steve Ellcey  <sellcey@cavium.com>
2588         * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (get_midr_from_mcpu):
2589         Use strcmp instead of tunable_is_name.
2591 2017-09-08  Joseph Myers  <joseph@codesourcery.com>
2593         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
2594         (F_GET_RW_HINT): New macro.
2595         [__USE_GNU] (F_SET_RW_HINT): Likewise.
2596         [__USE_GNU] (F_GET_FILE_RW_HINT): Likewise.
2597         [__USE_GNU] (F_SET_FILE_RW_HINT): Likewise.
2598         [__USE_GNU] (RWF_WRITE_LIFE_NOT_SET): Likewise.
2599         [__USE_GNU] (RWH_WRITE_LIFE_NONE): Likewise.
2600         [__USE_GNU] (RWH_WRITE_LIFE_SHORT): Likewise.
2601         [__USE_GNU] (RWH_WRITE_LIFE_MEDIUM): Likewise.
2602         [__USE_GNU] (RWH_WRITE_LIFE_LONG): Likewise.
2603         [__USE_GNU] (RWH_WRITE_LIFE_EXTREME): Likewise.
2605         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
2606         (F_ADD_SEALS): New macro.
2607         [__USE_GNU] (F_GET_SEALS): Likewise.
2608         [__USE_GNU] (F_SEAL_SEAL): Likewise.
2609         [__USE_GNU] (F_SEAL_SHRINK): Likewise.
2610         [__USE_GNU] (F_SEAL_GROW): Likewise.
2611         [__USE_GNU] (F_SEAL_WRITE): Likewise.
2613 2017-09-08  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2615         * posix/glob_internal.h (GLOBPAT_NONE, GLOBPAT_SPECIAL)
2616         (GLOBPAT_BACKSLASH, GLOBPAT_BRACKET): New constants.
2617         * posix/glob_internal.h (__glob_pattern_type):
2618         * posix/glob.c (glob):
2619         * posix/glob_pattern_p.c (__glob_pattern_p):
2620         Use them.
2622         * sysdeps/unix/sysv/linux/arm/glob64.c: Remove file.
2623         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
2624         * sysdeps/unix/sysv/linux/m68k/glob64.c: Likewise.
2625         * sysdeps/unix/sysv/linux/mips/mips64/n64/glob64.c: Likewise.
2626         * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
2627         * sysdeps/unix/sysv/linux/powerpc/powerpc32/glob64.c: Likewise.
2628         * sysdeps/unix/sysv/linux/sparc/sparc32/glob64.c: Likewise.
2629         * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: Likewise.
2630         * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
2631         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
2632         * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
2633         * sysdeps/wordsize-64/glob.c: Likewise.
2634         * sysdeps/wordsize-64/glob64.c: Likewise.
2635         * sysdeps/wordsize-64/globfree.c: Likewise.
2636         * sysdeps/wordsize-64/globfree64.c: Likewise.
2637         * sysdeps/unix/sysv/linux/glob.c: New file.
2638         * sysdeps/unix/sysv/linux/glob64.c: Likewise.
2639         * sysdeps/unix/sysv/linux/globfree.c: Likewise.
2640         * sysdeps/unix/sysv/linux/globfree64.c: Likewise.
2641         * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
2642         * sysdeps/unix/sysv/linux/oldglob.c [SHLIB_COMPAT]: Also
2643         adds !GLOB_NO_OLD_VERSION as an extra condition.
2644         * sysdeps/unix/sysv/linux/i386/alphasort64.c: Include olddirent.h
2645         using relative path instead of absolute one.
2646         * sysdeps/unix/sysv/linux/i386/getdents64.c: Likewise.
2647         * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
2648         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
2649         * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
2650         * sysdeps/unix/sysv/linux/i386/olddirent.h: Move to ...
2651         * sysdeps/unix/sysv/linux//olddirent.h: ... here.
2653         [BZ #1062]
2654         * posix/glob.c (GET_LOGIN_NAME_MAX): Remove.
2655         (glob): Use the same scratch buffer for both getlogin_r and
2656         getpwnam_r.  Don’t require preallocation of the login name.  This
2657         simplifies storage allocation, and corrects the handling of
2658         long login names.
2660         [BZ #1062]
2661         * posix/glob.c (glob): Port recent patches to platforms
2662         lacking getpwnam_r.
2663         (glob): Fix longstanding misuse of errno after getpwnam_r, which
2664         returns an error number rather than setting errno.
2666         * include/scratch_buffer.h (scratch_buffer): Use a C99 align method
2667         instead of GCC extension.
2668         * malloc/scratch_buffer_grow.c [!_LIBC]: Include libc-config.h.
2669         * malloc/scratch_buffer_grow_preserve.c [!_LIBC]: Likewise.
2670         * malloc/scratch_buffer_set_array_size.c [!_LIBC]: Likewise.
2672         [BZ #866]
2673         [BZ #1062]
2674         * posix/Makefile (tests): Remove bug-glob1 and tst-glob_symlinks.
2675         * posix/bug-glob1.c: Remove file.
2676         * posix/tst-glob_symlinks.c: New file.
2677         * posix/glob.c (__lstat64): New macro.
2678         (is_dir): New function.
2679         (glob, glob_in_dir): Match symlinks even if they are dangling.
2680         (link_stat, link_exists_p): Remove.  All uses removed.
2682         [BZ #1062]
2683         [BZ #19971]
2684         * posix/glob.c (struct readdir_result): Remove skip_entry member.
2685         (readdir_result_skip_entry, D_INO_TO_RESULT): Remove.
2686         All uses removed.
2688         [BZ #1062]
2689         * posix/Makefile (routines): Add globfree, globfree64, and
2690         glob_pattern_p.
2691         * posix/flexmember.h: New file.
2692         * posix/glob_internal.h: Likewise.
2693         * posix/glob_pattern_p.c: Likewise.
2694         * posix/globfree.c: Likewise.
2695         * posix/globfree64.c: Likewise.
2696         * sysdeps/gnu/globfree64.c: Likewise.
2697         * sysdeps/unix/sysv/linux/alpha/globfree.c: Likewise.
2698         * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
2699         * sysdeps/unix/sysv/linux/oldglob.c: Likewise.
2700         * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
2701         * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
2702         * sysdeps/wordsize-64/globfree.c: Likewise.
2703         * sysdeps/wordsize-64/globfree64.c: Likewise.
2704         * posix/glob.c (HAVE_CONFIG_H): Use !_LIBC instead.
2705         [NDEBUG): Remove comments.
2706         (GLOB_ONLY_P, _AMIGA, VMS): Remove define.
2707         (dirent_type): New type.  Use uint_fast8_t not
2708         uint8_t, as C99 does not require uint8_t.
2709         (DT_UNKNOWN, DT_DIR, DT_LNK): New macros.
2710         (struct readdir_result): Use dirent_type.  Do not define skip_entry
2711         unless it is needed; this saves a byte on platforms lacking d_ino.
2712         (readdir_result_type, readdir_result_skip_entry):
2713         New functions, replacing ...
2714         (readdir_result_might_be_symlink, readdir_result_might_be_dir):
2715          these functions, which were removed.  This makes the callers
2716         easier to read.  All callers changed.
2717         (D_INO_TO_RESULT): Now empty if there is no d_ino.
2718         (size_add_wrapv, glob_use_alloca): New static functions.
2719         (glob, glob_in_dir): Check for size_t overflow in several places,
2720         and fix some size_t checks that were not quite right.
2721         Remove old code using SHELL since Bash no longer
2722         uses this.
2723         (glob, prefix_array): Separate MS code better.
2724         (glob_in_dir): Remove old Amiga and VMS code.
2725         (globfree, __glob_pattern_type, __glob_pattern_p): Move to
2726         separate files.
2727         (glob_in_dir): Do not rely on undefined behavior in accessing
2728         struct members beyond their bounds.  Use a flexible array member
2729         instead
2730         (link_stat): Rename from link_exists2_p and return -1/0 instead of
2731         0/1.  Caller changed.
2732         (glob): Fix memory leaks.
2733         * posix/glob64 (globfree64): Move to separate file.
2734         * sysdeps/gnu/glob64.c (NO_GLOB_PATTERN_P): Remove define.
2735         (globfree64): Remove hidden alias.
2736         * sysdeps/unix/sysv/linux/Makefile (sysdeps_routines): Add
2737         oldglob.
2738         * sysdeps/unix/sysv/linux/alpha/glob.c (__new_globfree): Move to
2739         separate file.
2740         * sysdeps/unix/sysv/linux/i386/glob64.c (NO_GLOB_PATTERN_P): Remove
2741         define.
2742         Move compat code to separate file.
2743         * sysdeps/wordsize-64/glob.c (globfree): Move definitions to
2744         separate file.
2746 2017-09-07  H.J. Lu  <hongjiu.lu@intel.com>
2748         * resolv/tst-resolv-qtypes.c (domain): Changed to
2749         "const char domain[] =".
2751 2017-09-07  Joseph Myers  <joseph@codesourcery.com>
2753         * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
2754         version to 3.1.6.
2756         * sysdeps/gnu/netinet/tcp.h (TCP_ULP): New macro.
2757         (TCP_MD5SIG_EXT): Likewise.
2758         (TCP_MD5SIG_FLAG_PREFIX): Likewise.
2759         (struct tcp_md5sig): Replace __tcpm_pad1 by tcpm_flags and
2760         tcpm_prefixlen.  Rename __tcpm_pad2 to __tcpm_pad.
2762         * sysdeps/unix/sysv/linux/bits/socket.h (SOL_TLS): New macro.
2764 2017-09-07  Mike FABIAN  <mfabian@redhat.com>
2766         * localedata/locales/om_ET (LC_TIME): use ASCII for better readability.
2768 2017-09-07  Akhilesh Kumar  <akhilesh.k@samsung.com>
2770         [BZ #22100]
2771         * localedata/locales/om_KE (LC_TIME): copy "om_ET".
2773 2017-09-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
2775         * hurd/get-host.c (_hurd_get_host_config): Also check that more == 0
2776         before assuming that the file is empty.  Avoid testing buffer content
2777         when nread == 0.
2779 2017-09-06  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2781         [BZ #18858]
2782         * sysdeps/i386/i686/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
2783         Remove define.
2784         * sysdeps/x86_64/multiarch/stpcpy.c (_HAVE_STRING_ARCH_stpcpy):
2785         Likewise.
2786         * sysdeps/x86_64/multiarch/strcspn.c (_HAVE_STRING_ARCH_strcspn):
2787         Likewise.
2788         * sysdeps/x86_64/multiarch/strncat.c (_HAVE_STRING_ARCH_strncat):
2789         Likewise.
2790         * sysdeps/x86_64/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
2791         Likewise.
2792         * sysdeps/x86_64/multiarch/strpbrk.c (_HAVE_STRING_ARCH_strpbrk):
2793         Likewise.
2794         * sysdeps/x86_64/multiarch/strspn.c (_HAVE_STRING_ARCH_strspn):
2795         Likewise.
2797 2017-09-06  Florian Weimer  <fweimer@redhat.com>
2799         * malloc/dynarray_emplace_enlarge.c
2800         (__libc_dynarray_emplace_enlarge): Add missing else.
2802 2017-09-06  Florian Weimer  <fweimer@redhat.com>
2804         [BZ #22096]
2805         * resolv/resolv_conf.c (__resolv_conf_attach): Do not free conf in
2806         case of failure to obtain the global conf object.
2808 2017-09-06  Florian Weimer  <fweimer@redhat.com>
2810         [BZ #22095]
2811         * resolv/res_init.c (res_vinit_1): Avoid memory leak in case of
2812         dynarray allocation failure.
2814 2017-09-06  Florian Weimer  <fweimer@redhat.com>
2816         Remove dead PTR IPv4-to-IPv6 mapping code from nss_dns.
2817         * resolv/nss_dns/dns-host.c (getanswer_r): Remove dead code.
2818         * resolv/tst-res_use_inet6.c (response_ptr_v4, response_ptr_v6):
2819         New functions.
2820         (response): Call them.  Add 'p', '6' flag processing.
2821         (test_reverse): New function.
2822         (test_get2_any): Call it.
2823         (test_no_inet6): Add 'p' test.
2824         (test_inet6): Likewise.
2826 2017-09-06  Florian Weimer  <fweimer@redhat.com>
2828         Enhance tst-res_use_inet6 to test IPv4-to-IPv6 address mapping.
2829         * resolv/tst-res_use_inet6.c (response): Process flags embedded in
2830         the QNAME.
2831         (test_gai): Adjust query names.  Add additional tests.
2832         (test_get2_any, test_get2_no_inet6, test_get2_inet6): Split from
2833         test_get2.  Adjust query names.  Add additional tests.
2834         (test_no_inet6): New function, extracted from threadfunc.
2835         (threadfunc): Call test_get2_any, test_get2_inet6, test_no_inet6.
2836         Add additional tests.
2838 2017-09-06  Mike FABIAN  <mfabian@redhat.com>
2840         [BZ #22070]
2841         * localedata/unicode-gen/utf8_gen.py: Set the width for
2842         characters with Prepended_Concatenation_Mark property to 1
2843         * localedata/charmaps/UTF-8: Updated using the improved script.
2845 2017-09-06  Mike FABIAN  <mfabian@redhat.com>
2847         [BZ #21750]
2848         * localedata/unicode-gen/utf8_gen.py: Improve the script to
2849         use the range notation for all ranges of neighbouring characters
2850         with the same width.
2852 2017-09-05  Joseph Myers  <joseph@codesourcery.com>
2854         * sysdeps/generic/math-type-macros-double.h: Include
2855         <math-svid-compat.h>.
2856         (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
2857         * sysdeps/generic/math-type-macros-float.h: Include
2858         <math-svid-compat.h>.
2859         (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
2860         * sysdeps/generic/math-type-macros-ldouble.h: Include
2861         <math-svid-compat.h>.
2862         (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
2863         * math/lgamma-compat.h (BUILD_LGAMMA): Include LIBM_SVID_COMPAT
2864         condition.
2865         * math/w_acos_compat.c: Condition contents on [LIBM_SVID_COMPAT].
2866         * math/w_acosf_compat.c: Likewise.
2867         * math/w_acosh_compat.c: Likewise.
2868         * math/w_acoshf_compat.c: Likewise.
2869         * math/w_acoshl_compat.c: Likewise.
2870         * math/w_acosl_compat.c: Likewise.
2871         * math/w_asin_compat.c: Likewise.
2872         * math/w_asinf_compat.c: Likewise.
2873         * math/w_asinl_compat.c: Likewise.
2874         * math/w_atan2_compat.c: Likewise.
2875         * math/w_atan2f_compat.c: Likewise.
2876         * math/w_atan2l_compat.c: Likewise.
2877         * math/w_atanh_compat.c: Likewise.
2878         * math/w_atanhf_compat.c: Likewise.
2879         * math/w_atanhl_compat.c: Likewise.
2880         * math/w_cosh_compat.c: Likewise.
2881         * math/w_coshf_compat.c: Likewise.
2882         * math/w_coshl_compat.c: Likewise.
2883         * math/w_exp10_compat.c: Likewise.
2884         * math/w_exp10f_compat.c: Likewise.
2885         * math/w_exp10l_compat.c: Likewise.
2886         * math/w_exp2_compat.c: Likewise.
2887         * math/w_exp2f_compat.c: Likewise.
2888         * math/w_exp2l_compat.c: Likewise.
2889         * math/w_fmod_compat.c: Likewise.
2890         * math/w_fmodf_compat.c: Likewise.
2891         * math/w_fmodl_compat.c: Likewise.
2892         * math/w_hypot_compat.c: Likewise.
2893         * math/w_hypotf_compat.c: Likewise.
2894         * math/w_hypotl_compat.c: Likewise.
2895         * math/w_j0_compat.c: Likewise.
2896         * math/w_j0f_compat.c: Likewise.
2897         * math/w_j0l_compat.c: Likewise.
2898         * math/w_j1_compat.c: Likewise.
2899         * math/w_j1f_compat.c: Likewise.
2900         * math/w_j1l_compat.c: Likewise.
2901         * math/w_jn_compat.c: Likewise.
2902         * math/w_jnf_compat.c: Likewise.
2903         * math/w_jnl_compat.c: Likewise.
2904         * math/w_lgamma_r_compat.c: Likewise.
2905         * math/w_lgammaf_r_compat.c: Likewise.
2906         * math/w_lgammal_r_compat.c: Likewise.
2907         * math/w_log10_compat.c: Likewise.
2908         * math/w_log10f_compat.c: Likewise.
2909         * math/w_log10l_compat.c: Likewise.
2910         * math/w_log2_compat.c: Likewise.
2911         * math/w_log2f_compat.c: Likewise.
2912         * math/w_log2l_compat.c: Likewise.
2913         * math/w_log_compat.c: Likewise.
2914         * math/w_logf_compat.c: Likewise.
2915         * math/w_logl_compat.c: Likewise.
2916         * math/w_pow_compat.c: Likewise.
2917         * math/w_powf_compat.c: Likewise.
2918         * math/w_powl_compat.c: Likewise.
2919         * math/w_remainder_compat.c: Likewise.
2920         * math/w_remainderf_compat.c: Likewise.
2921         * math/w_remainderl_compat.c: Likewise.
2922         * math/w_sinh_compat.c: Likewise.
2923         * math/w_sinhf_compat.c: Likewise.
2924         * math/w_sinhl_compat.c: Likewise.
2925         * math/w_sqrt_compat.c: Likewise.
2926         * math/w_sqrtf_compat.c: Likewise.
2927         * math/w_sqrtl_compat.c: Likewise.
2928         * math/w_tgamma_compat.c: Likewise.
2929         * math/w_tgammaf_compat.c: Likewise.
2930         * math/w_tgammal_compat.c: Likewise.
2931         * math/w_scalb_compat.c (sysv_scalb): Condition definition on
2932         [LIBM_SVID_COMPAT].
2933         (__scalb): Condition call to sysv_scalb on [LIBM_SVID_COMPAT].
2934         * math/w_scalbf_compat.c (sysv_scalbf): Condition definition on
2935         [LIBM_SVID_COMPAT].
2936         (__scalbf): Condition call to sysv_scalbf on [LIBM_SVID_COMPAT].
2937         * math/w_scalbl_compat.c (sysv_scalbl): Condition definition on
2938         [LIBM_SVID_COMPAT].
2939         (__scalbl): Condition call to sysv_scalbl on [LIBM_SVID_COMPAT].
2940         * sysdeps/i386/fpu/w_sqrt.c: New file.
2941         * sysdeps/ia64/fpu/w_acos.c: Likewise.
2942         * sysdeps/ia64/fpu/w_acosf.c: Likewise.
2943         * sysdeps/ia64/fpu/w_acosh.c: Likewise.
2944         * sysdeps/ia64/fpu/w_acoshf.c: Likewise.
2945         * sysdeps/ia64/fpu/w_acoshl.c: Likewise.
2946         * sysdeps/ia64/fpu/w_acosl.c: Likewise.
2947         * sysdeps/ia64/fpu/w_asin.c: Likewise.
2948         * sysdeps/ia64/fpu/w_asinf.c: Likewise.
2949         * sysdeps/ia64/fpu/w_asinl.c: Likewise.
2950         * sysdeps/ia64/fpu/w_atan2.c: Likewise.
2951         * sysdeps/ia64/fpu/w_atan2f.c: Likewise.
2952         * sysdeps/ia64/fpu/w_atan2l.c: Likewise.
2953         * sysdeps/ia64/fpu/w_atanh.c: Likewise.
2954         * sysdeps/ia64/fpu/w_atanhf.c: Likewise.
2955         * sysdeps/ia64/fpu/w_atanhl.c: Likewise.
2956         * sysdeps/ia64/fpu/w_cosh.c: Likewise.
2957         * sysdeps/ia64/fpu/w_coshf.c: Likewise.
2958         * sysdeps/ia64/fpu/w_coshl.c: Likewise.
2959         * sysdeps/ia64/fpu/w_exp.c: Likewise.
2960         * sysdeps/ia64/fpu/w_exp10.c: Likewise.
2961         * sysdeps/ia64/fpu/w_exp10f.c: Likewise.
2962         * sysdeps/ia64/fpu/w_exp10l.c: Likewise.
2963         * sysdeps/ia64/fpu/w_exp2.c: Likewise.
2964         * sysdeps/ia64/fpu/w_exp2f.c: Likewise.
2965         * sysdeps/ia64/fpu/w_exp2l.c: Likewise.
2966         * sysdeps/ia64/fpu/w_expf.c: Likewise.
2967         * sysdeps/ia64/fpu/w_expl.c: Likewise.
2968         * sysdeps/ia64/fpu/w_fmod.c: Likewise.
2969         * sysdeps/ia64/fpu/w_fmodf.c: Likewise.
2970         * sysdeps/ia64/fpu/w_fmodl.c: Likewise.
2971         * sysdeps/ia64/fpu/w_hypot.c: Likewise.
2972         * sysdeps/ia64/fpu/w_hypotf.c: Likewise.
2973         * sysdeps/ia64/fpu/w_hypotl.c: Likewise.
2974         * sysdeps/ia64/fpu/w_lgamma_r.c: Likewise.
2975         * sysdeps/ia64/fpu/w_lgammaf_r.c: Likewise.
2976         * sysdeps/ia64/fpu/w_lgammal_r.c: Likewise.
2977         * sysdeps/ia64/fpu/w_log.c: Likewise.
2978         * sysdeps/ia64/fpu/w_log10.c: Likewise.
2979         * sysdeps/ia64/fpu/w_log10f.c: Likewise.
2980         * sysdeps/ia64/fpu/w_log10l.c: Likewise.
2981         * sysdeps/ia64/fpu/w_log2.c: Likewise.
2982         * sysdeps/ia64/fpu/w_log2f.c: Likewise.
2983         * sysdeps/ia64/fpu/w_log2l.c: Likewise.
2984         * sysdeps/ia64/fpu/w_logf.c: Likewise.
2985         * sysdeps/ia64/fpu/w_logl.c: Likewise.
2986         * sysdeps/ia64/fpu/w_pow.c: Likewise.
2987         * sysdeps/ia64/fpu/w_powf.c: Likewise.
2988         * sysdeps/ia64/fpu/w_powl.c: Likewise.
2989         * sysdeps/ia64/fpu/w_remainder.c: Likewise.
2990         * sysdeps/ia64/fpu/w_remainderf.c: Likewise.
2991         * sysdeps/ia64/fpu/w_remainderl.c: Likewise.
2992         * sysdeps/ia64/fpu/w_sinh.c: Likewise.
2993         * sysdeps/ia64/fpu/w_sinhf.c: Likewise.
2994         * sysdeps/ia64/fpu/w_sinhl.c: Likewise.
2995         * sysdeps/ia64/fpu/w_sqrt.c: Likewise.
2996         * sysdeps/ia64/fpu/w_sqrtf.c: Likewise.
2997         * sysdeps/ia64/fpu/w_sqrtl.c: Likewise.
2998         * sysdeps/ia64/fpu/w_tgamma.c: Likewise.
2999         * sysdeps/ia64/fpu/w_tgammaf.c: Likewise.
3000         * sysdeps/ia64/fpu/w_tgammal.c: Likewise.
3001         * sysdeps/ieee754/dbl-64/w_exp_compat.c: Condition contents on
3002         [LIBM_SVID_COMPAT].
3003         * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
3004         * sysdeps/ieee754/k_standard.c: Likewise.
3005         * sysdeps/ieee754/k_standardf.c: Likewise.
3006         * sysdeps/ieee754/k_standardl.c: Likewise.
3007         * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
3008         * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
3009         * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
3010         * sysdeps/ieee754/ldbl-64-128/w_expl_compat.c: Condition
3011         long_double_symbol call on [LIBM_SVID_COMPAT].
3012         * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
3013         * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
3014         * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
3015         * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
3016         * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
3017         * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
3018         * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
3019         * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
3020         * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
3021         * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
3022         * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
3023         * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
3024         * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
3025         * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
3026         * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
3027         * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
3028         * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c: Likewise.
3029         * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
3030         * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
3031         * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
3032         * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c: Condition
3033         long_double_symbol and compat_symbol calls on [LIBM_SVID_COMPAT].
3035 2017-09-05  Steve Ellcey  <sellcey@cavium.com>
3037         * include/shlib-compat.h (TEST_COMPAT): New Macro.
3038         * malloc/tst-mallocstate.c: Convert from test-skeleton
3039         to test-driver.  Ifdef code using TEST_COMPAT macro.
3040         * math/test-matherr-2.c: Ifdef test using TEST_COMPAT macro.
3041         * math/test-matherr.c: Likewise.
3043 2017-09-05  Joseph Myers  <joseph@codesourcery.com>
3045         [BZ #22086]
3046         * debug/pcprofiledump.c (main): Use byte-swapped mask when
3047         comparing word with byte-swapped constant.
3049 2017-09-05  Chris Leonard  <cjlhomeaddress@gmail.com>
3051         [BZ #20498]
3052         * locale/iso-639.def: add Miskito.
3053         * localedata/SUPPORTED: Add miq_NI/UTF-8.
3054         * localedata/locales/miq_NI: New file.
3056 2017-09-04  H.J. Lu  <hongjiu.lu@intel.com>
3058         [BZ #18822]
3059         * include/sys/stat.h (__chmod): Add libc_hidden_proto.
3060         (__mkdir): Likewise.
3061         * io/chmod.c (__chmod): Add libc_hidden_def.
3062         * io/mkdir.c (__mkdir): Likewise.
3063         * sysdeps/mach/hurd/chmod.c (__chmod): Likewise.
3064         * sysdeps/mach/hurd/mkdir.c (__mkdir): Likewise.
3065         * sysdeps/unix/sysv/linux/generic/chmod.c (__chmod): Likewise.
3066         * sysdeps/unix/sysv/linux/generic/mkdir.c (__mkdir): Likewise.
3068 2017-09-04  Joseph Myers  <joseph@codesourcery.com>
3070         * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
3071         version to 4.13.
3073         [BZ #22082]
3074         * math/bits/math-finite.h (exp10): Redirect if [__GLIBC_USE
3075         (IEC_60559_FUNCS_EXT)], not [__USE_GNU].
3077 2017-09-04  Florian Weimer  <fweimer@redhat.com>
3079         * math/math.h: Issue warning if log is defined.
3081 2017-09-04  Joseph Myers  <joseph@codesourcery.com>
3083         * scripts/build-many-glibcs.py (Context.checkout): Default Linux
3084         kernel version to 4.13.
3086 2017-09-03  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3088         * sysdeps/generic/sigsetops.h: Remove spurious #endif.
3089         (__sigismember, __sigaddset, __sigdelset): Fix referencing set
3090         parameter.
3091         * sysdeps/mach/hurd/bits/socket.h: Include <sys/types.h> instead of
3092         just <bits/types.h>.
3093         * sysdeps/posix/preadv2.c: Use off_t instead of OFF_T.
3094         * sysdeps/posix/preadv64v2.c: Use off64_t instead of OFF_T.
3095         * sysdeps/posix/pwritev2.c: Use off_t instead of OFF_T.
3096         * sysdeps/posix/pwritev64v2.c: Use off64_t instead of OFF_T.
3097         * misc/preadv2.c: Include <errno.h>.
3098         * misc/preadv64v2.c: Include <errno.h>.
3099         * misc/pwritev2.c: Include <errno.h>.
3100         * misc/pwritev64v2.c: Include <errno.h>.
3101         * sysdeps/posix/preadv2.c: Include <errno.h>.
3102         * sysdeps/posix/preadv64v2.c: Include <errno.h>.
3103         Fix <unistd.h> inclusion.
3104         * sysdeps/posix/pwritev2.c: Include <errno.h>.
3105         * sysdeps/posix/pwritev64v2.c: Include <errno.h>.
3106         * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno, __sbrk,
3107         __strtoul_internal): New functions.
3108         * sysdeps/posix/pause.c: Include <sigsetops.h>.
3109         * sysdeps/posix/system.c: Include <sigsetops.h>.
3110         * sysdeps/mach/hurd/i386/Makefile
3111         [$(subdir) = csu] (sysdep_routines): New rule: divdi3 object.
3112         [$(subdir) = csu] (sysdep-only-routines): Likewise.
3113         [$(subdir) = csu] (CFLAGS-divdi3.c): Likewise.
3114         * sysdeps/x86/fpu/include/bits/fenv.h [NO_HIDDEN]: Redirect
3115         __feraiseexcept_renamed to feraiseexcept instead of
3116         __GI_feraiseexcept.
3117         * sysdeps/mach/hurd/i386/Implies: Add mach/hurd/x86.
3118         * sysdeps/mach/hurd/x86/dl-sysdep.c: New file.
3119         * misc/tst-preadvwritev2-common.c (RWF_HIPRI, RWF_DSYNC, RWF_SYNC,
3120         RWF_NOWAIT): Define to 0 if undefined already.
3121         (do_test_with_invalid_flags): Set invalid_flag to 2 if RWF_SUPPORTED
3122         boils down to 0.
3123         * resolv/tst-resolv-res_init-skeleton.c (run_res_init)
3124         [!CLONE_NEWUTS]: Fail as unsupported if hostname is not NULL.
3126 2017-09-01  Joseph Myers  <joseph@codesourcery.com>
3128         * manual/math.texi (pow10): Do not document.
3129         (pow10f): Likewise.
3130         (pow10l): Likewise.
3131         * math/bits/mathcalls.h [__USE_GNU] (pow10): Do not declare.
3132         * math/bits/math-finite.h [__USE_GNU] (pow10): Likewise.
3133         * math/libm-test-exp10.inc (pow10_test): Remove.
3134         (do_test): Do not call pow10.
3135         * math/w_exp10_compat.c (pow10): Make into compat symbol.
3136         [NO_LONG_DOUBLE] (pow10l): Likewise.
3137         * math/w_exp10f_compat.c (pow10f): Likewise.
3138         * math/w_exp10l_compat.c (pow10l): Likewise.
3139         * sysdeps/ia64/fpu/e_exp10.S: Include <shlib-compat.h>.
3140         (pow10): Make into compat symbol.
3141         * sysdeps/ia64/fpu/e_exp10f.S: Include <shlib-compat.h>.
3142         (pow10f): Make into compat symbol.
3143         * sysdeps/ia64/fpu/e_exp10l.S: Include <shlib-compat.h>.
3144         (pow10l): Make into compat symbol.
3145         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Remove
3146         pow10.
3147         (CFLAGS-nldbl-pow10.c): Remove variable..
3148         * sysdeps/ieee754/ldbl-opt/nldbl-pow10.c: Remove file.
3149         * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c (pow10l): Condition on
3150         [SHLIB_COMPAT (libm, GLIBC_2_1, GLIBC_2_27)].
3151         * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (compat_symbol):
3152         Undefine and redefine.
3153         (pow10l): Make into compat symbol.
3154         * sysdeps/aarch64/libm-test-ulps: Remove pow10 ulps.
3155         * sysdeps/alpha/fpu/libm-test-ulps: Likewise.
3156         * sysdeps/arm/libm-test-ulps: Likewise.
3157         * sysdeps/hppa/fpu/libm-test-ulps: Likewise.
3158         * sysdeps/i386/fpu/libm-test-ulps: Likewise.
3159         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
3160         * sysdeps/microblaze/libm-test-ulps: Likewise.
3161         * sysdeps/mips/mips32/libm-test-ulps: Likewise.
3162         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
3163         * sysdeps/nios2/libm-test-ulps: Likewise.
3164         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
3165         * sysdeps/powerpc/nofpu/libm-test-ulps: Likewise.
3166         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
3167         * sysdeps/sh/libm-test-ulps: Likewise.
3168         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
3169         * sysdeps/tile/libm-test-ulps: Likewise.
3170         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3172 2017-09-01  Paul Pluzhnikov  <ppluzhnikov@google.com>
3174         * stdlib/tst-atexit-common.c (crumbs): Ensure correct size.
3176 2017-09-01  H.J. Lu  <hongjiu.lu@intel.com>
3178         * posix/tst-regex.c (do_test): Replace "../ChangeLog.8" with
3179         "../ChangeLog.old/ChangeLog.8".
3180         * posix/tst-regex2.c (do_test): Replace "../ChangeLog.14" with
3181         "../ChangeLog.old/ChangeLog.14".
3183 2017-09-01  H.J. Lu  <hongjiu.lu@intel.com>
3185         * manual/contrib.texi: Credit Ulrich Drepper for the POSIX
3186         Threads Library.
3188 2017-09-01  Joseph Myers  <joseph@codesourcery.com>
3190         * sysdeps/unix/sysv/linux/gentempfd.c: Include <string.h>.
3192 2017-09-01  H.J. Lu  <hongjiu.lu@intel.com>
3194         * csu/version.c (banner): Remove "by Roland McGrath et al.".
3195         * nptl/Banner: Remove "by Ulrich Drepper et al.".
3197 2017-09-01  Paul Pluzhnikov  <ppluzhnikov@google.com>
3199         * stdlib/tst-atexit-common.c (do_test): Test support for at least
3200         32 atexit handlers.
3202 2017-09-01  Zack Weinberg  <zackw@panix.com>
3204         * math/math.h (HUGE_VAL): Improve commentary.
3206 2017-09-01  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3207             Andreas Schwab  <schwab@suse.de>
3209         [BZ #21530]
3210         * include/stdio.h (__gen_tempfd): New function.
3211         * stdio-common/Makefile (routines): Add gentempfd.
3212         * stdio-common/gentempfd.c: New file.
3213         * sysdeps/unix/sysv/linux/gentempfd.c: Likewise.
3214         * stdio-common/tmpfile.c (tmpfile): First try to use a system specific
3215         unnamed file first.
3217 2017-09-01  Florian Weimer  <fweimer@redhat.com>
3219         [BZ #21915]
3220         [BZ #21922]
3221         * sysdeps/posix/getaddrinfo.c (gethosts): Look at NSS function
3222         result to determine success or failure, not the errno value.
3223         * nss/Makefile (tests): Add tst-nss-files-hosts-erange.
3224         (tst-nss-files-hosts-erange): Link with -ldl.
3225         * nss/tst-nss-files-hosts-erange.c: New file.
3226         * nss/tst-resolv-basic.c (response): Handle nodata.example.
3227         (do_test): Add NO_DATA tests.
3228         * resolv/tst-resolv-basic.c (test_nodata_nxdomain): New function.
3229         (do_test): Call it.
3231 2017-09-01  Florian Weimer  <fweimer@redhat.com>
3233         [BZ #21922]
3234         * sysdeps/posix/getaddrinfo.c (gaih_inet): Report EAI_NODATA error
3235         coming from gethostbyname2_r.
3237 2017-09-01  Florian Weimer  <fweimer@redhat.com>
3239         * support/namespace.h (struct support_chroot_configuration): Add
3240         hosts, host_conf.
3241         (struct support_chroot): Add path_hosts, path_host_conf.
3242         * support/support_chroot.c (write_file): New function.
3243         (support_chroot_create): Call it to process /etc/resolv.conf,
3244         /etc/hosts, /etc/host.conf.
3245         (support_chroot_free): Update.
3247 2017-09-01  Florian Weimer  <fweimer@redhat.com>
3249         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use h_errno if
3250         status indicates it is set.
3252 2017-09-01  Florian Weimer  <fweimer@redhat.com>
3254         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make reporting of NSS
3255         function lookup failures more reliable.
3257 2017-09-01  Florian Weimer  <fweimer@redhat.com>
3259         * sysdeps/posix/getaddrinfo.c (gethosts): Use h_errno directly.
3260         (getcanonname): Likewise.
3261         (gaih_inet): Likewise.
3263 2017-09-01  Florian Weimer  <fweimer@redhat.com>
3265         * sysdeps/posix/getaddrinfo.c (gethosts): Use errno directly.
3266         (getcanonname): Likewise.
3267         (gaih_inet): Likewise.
3269 2017-08-31  Steve Ellcey  <sellcey@cavium.com>
3270             Richard Henderson <rth@twiddle.net>
3272         * sysdeps/aarch64/fpu/s_llrint.c (OREG_SIZE): New macro.
3273         * sysdeps/aarch64/fpu/s_llround.c (OREG_SIZE): Likewise.
3274         * sysdeps/aarch64/fpu/s_llrintf.c (OREGS, IREGS): Remove.
3275         (IREG_SIZE, OREG_SIZE): New macros.
3276         * sysdeps/aarch64/fpu/s_llroundf.c: (OREGS, IREGS): Remove.
3277         (IREG_SIZE, OREG_SIZE): New macros.
3278         * sysdeps/aarch64/fpu/s_lrintf.c (IREGS): Remove.
3279         (IREG_SIZE): New macro.
3280         * sysdeps/aarch64/fpu/s_lroundf.c (IREGS): Remove.
3281         (IREG_SIZE): New macro.
3282         * sysdeps/aarch64/fpu/s_lrint.c (get-rounding-mode.h, stdint.h):
3283         New includes.
3284         (IREG_SIZE, OREG_SIZE): Initialize if not already set.
3285         (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
3286         (__CONCATX): Handle exceptions correctly on large values that may
3287         set FE_INVALID.
3288         * sysdeps/aarch64/fpu/s_lround.c (IREG_SIZE, OREG_SIZE):
3289         Initialize if not already set.
3290         (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
3292 2017-08-31  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3294         * sysdeps/generic/not-cancel.h (NO_CANCELLATION): Remove macro.
3295         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (NO_CANCELLATION):
3296         Likewise.
3297         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (NO_CANCELLATION):
3298         Likewise.
3299         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (NO_CANCELLATION):
3300         Likewise.
3301         * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (NO_CANCELLATION):
3302         Likewise.
3303         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (NO_CANCELLATION):
3304         Likewise.
3305         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (NO_CANCELLATION):
3306         Likewise.
3307         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (NO_CANCELLATION):
3308         Likewise.
3309         * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h
3310         (NO_CANCELLATION): Likewise.
3311         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (NO_CANCELLATION):
3312         Likewise.
3313         * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (NO_CANCELLATION):
3314         Likewise.
3315         * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h (NO_CANCELLATION):
3316         Likewise.
3317         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h
3318         (NO_CANCELLATION): Likewise.
3319         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h
3320         (NO_CANCELLATION): Likewise.
3321         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (NO_CANCELLATION):
3322         Likewise
3323         * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h (NO_CANCELLATION):
3324         Likewise.
3325         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (NO_CANCELLATION):
3326         Likewise.
3327         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (NO_CANCELLATION):
3328         Likewise.
3329         * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): Add
3330         hidden prototype.
3331         * sysdeps/unix/sysv/linux/fcntl.c (__fcntl_nocancel): Define only
3332         for !IS_IN (rtld) and remove NO_CANCELLATION usage.
3334 2017-08-31  Steve Ellcey  <sellcey@cavium.com>
3336         * sysdeps/aarch64/dl-irel.h: (elf_ifunc_invoke): Change argument type
3337         in resolver call.
3339 2017-08-31  Florian Weimer  <fweimer@redhat.com>
3341         * include/libc-symbols.h (internal_function): Remove.
3343 2017-08-31  Florian Weimer  <fweimer@redhat.com>
3345         * stdlib/fmtmsg.c (internal_addseverity): Remove
3346         internal_function.
3348 2017-08-31  Florian Weimer  <fweimer@redhat.com>
3350         * stdio-common/printf_fp.c (group_number): Remove
3351         internal_function.
3352         * stdio-common/vfprintf.c (buffered_vfprintf): Likewise.
3354 2017-08-31  Florian Weimer  <fweimer@redhat.com>
3356         * posix/fnmatch.c (internal_function): Remove definition.
3357         * posix/fnmatch_loop.c (FCT, EXT, END): Remove internal_function.
3358         * posix/regcomp.c (peek_token, init_word_char)
3359         (duplicate_node_closure, fetch_token, peek_token)
3360         (peek_token_bracket, build_range_exp, build_collating_symbol):
3361         Likewise.
3362         * posix/regex_internal.c (re_string_construct_common)
3363         (create_ci_newstate, create_cd_newstate, re_string_allocate)
3364         (re_string_construct, re_string_realloc_buffers, build_wcs_buffer)
3365         (build_wcs_upper_buffer, re_string_skip_chars, build_upper_buffer)
3366         (re_string_translate_buffer, re_string_reconstruct)
3367         (re_string_peek_byte_case, re_string_fetch_byte_case)
3368         (re_string_destruct, re_string_context_at, re_node_set_alloc)
3369         (re_node_set_init_1, re_node_set_init_2, re_node_set_init_copy)
3370         (re_node_set_add_intersect, re_node_set_init_union)
3371         (re_node_set_merge, re_node_set_insert, re_node_set_insert_last)
3372         (re_node_set_compare, re_node_set_contains, re_node_set_remove_at)
3373         (re_dfa_add_node, calc_state_hash, re_acquire_state)
3374         (re_acquire_state_context): Likewise.
3375         * posix/regex_internal.h (internal_function): Remove definition.
3376         (re_string_realloc_buffers, build_wcs_buffer)
3377         (build_wcs_upper_buffer, build_upper_buffer)
3378         (re_string_translate_buffer, re_string_context_at)
3379         (re_string_char_size_at, re_string_wchar_at)
3380         (re_string_elem_size_at): Likewise.
3381         * posix/regexec.c (match_ctx_init, match_ctx_clean)
3382         (match_ctx_free, match_ctx_add_entry, search_cur_bkref_entry)
3383         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init)
3384         (re_search_internal, re_search_2_stub, re_search_stub)
3385         (re_copy_regs, prune_impossible_nodes, check_matching)
3386         (check_halt_state_context, update_regs, push_fail_stack, set_regs)
3387         (free_fail_stack_return, sift_states_iter_mb)
3388         (sift_states_backward, build_sifted_states)
3389         (update_cur_sifted_state, add_epsilon_src_nodes, check_dst_limits)
3390         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos)
3391         (check_subexp_limits, sift_states_bkref, merge_state_array)
3392         (find_recover_state, transit_state, merge_state_with_log)
3393         (check_subexp_matching_top, transit_state_sb, transit_state_sb)
3394         (transit_state_mb, transit_state_bkref, get_subexp)
3395         (get_subexp_sub, find_subexp_node, check_arrival)
3396         (check_arrival_add_next_nodes, check_arrival_expand_ecl)
3397         (check_arrival_expand_ecl_sub, expand_bkref_cache, build_trtable)
3398         (check_node_accept_bytes, find_collation_sequence_value)
3399         (group_nodes_into_DFAstates, check_node_accept, extend_buffers)
3400         (acquire_init_state_context, check_halt_node_context)
3401         (proceed_next_node, pop_fail_stack, clean_state_log_if_needed)
3402         (sub_epsilon_src_nodes): Likewise.
3403         * posix/spawn_int.h (__spawn_valid_fd): Likewise.
3404         * posix/spawn_valid_fd (__spawn_valid_fd): Likewise.
3405         * posix/wordexp.c (parse_dollars, parse_backtick, parse_dquote)
3406         (eval_expr, w_addmem, w_addstr, w_addword, parse_backslash)
3407         (parse_qtd_backslash, parse_tilde, do_parse_glob, parse_glob)
3408         (parse_squote, eval_expr_val, eval_expr_multdiv, parse_arith)
3409         (exec_comm_child, exec_comm, parse_comm, parse_param): Likewise.
3410         * sysdeps/posix/ttyname.c (getttyname): Likewise.
3411         * sysdeps/posix/ttyname_r.c (getttyname_r): Likewise.
3412         * sysdeps/unix/sysv/linux/preadv.c (__atomic_preadv_replacement)
3413         (PREADV): Likewise.
3414         * sysdeps/unix/sysv/linux/preadv64.c (__atomic_preadv64_replacement)
3415         (PREADV): Likewise.
3416         * sysdeps/unix/sysv/linux/pwritev.c (__atomic_pwritev_replacement)
3417         (PWRITEV): Likewise.
3418         * sysdeps/unix/sysv/linux/pwritev64.c (__atomic_pwritev64_replacement)
3419         (PWRITEV): Likewise.
3420         * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Likewise.
3421         * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
3423 2017-08-31  Florian Weimer  <fweimer@redhat.com>
3425         * nptl/allocatestack.c (change_stack_perm, __deallocate_stack)
3426         (setxid_mark_thread, setxid_unmark_thread, setxid_signal_thread):
3427         Remove internal_function.
3428         * nptl/cancellation.c (__pthread_disable_asynccancel): Likewise.
3429         * nptl/libc_pthread_init.c (__libc_pthread_init): Likewise.
3430         * nptl/pthreadP.h (__find_in_stack_list, __free_tcb)
3431         (__deallocate_stack, __libc_pthread_init)
3432         (__pthread_mutex_cond_lock, __pthread_mutex_cond_lock_adjust)
3433         (__pthread_mutex_unlock_usercnt, __pthread_disable_asynccancel)
3434         (__libc_disable_asynccancel, __librt_disable_asynccancel):
3435         Likewise.
3436         * nptl/pthread_create.c (__find_in_stack_list, __free_tcb): Likewise.
3437         * nptl/pthread_mutex_cond_lock.c (__pthread_mutex_lock): Likewise.
3438         * nptl/pthread_mutex_lock.c (__pthread_mutex_cond_lock_adjust):
3439         Likewise.
3440         * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full)
3441         (__pthread_mutex_unlock_usercnt): Likewise.
3443 2017-08-31  Florian Weimer  <fweimer@redhat.com>
3445         * io/fts.c (fts_alloc, fts_build, fts_lfree, fts_load)
3446         (fts_maxarglen, fts_padjust, fts_palloc, fts_sort, fts_stat)
3447         (fts_safe_changedir): Remove internal_function.
3448         * io/ftw.c (internal_function): Remove definition.
3449         (ftw_dir, process_entry, ftw_startup): Remove internal_function.
3451 2017-08-31  Florian Weimer  <fweimer@redhat.com>
3453         * inet/deadline.c (__deadline_current_time)
3454         (__deadline_from_timeval, __deadline_to_ms): Remove
3455         internal_function.
3456         * inet/getnameinfo.c (nrl_domainname): Likewise.
3457         * inet/getnetgrent_r.c (__internal_setnetgrent_reuse): Likewise.
3458         * inet/inet6_option.c (add_pad): Likewise.
3459         * inet/net-internal.h (__deadline_current_time)
3460         (__deadline_from_timeval, __deadline_to_ms): Likewise.
3461         * inet/rcmd.c (__checkhost_sa, __icheckuser): Likewise.
3462         * sysdeps/mach/hurd/if_index.c (__protocol_available): Likewise.
3463         * sysdeps/unix/sysv/linux/ifaddrs.c (map_newlink): Likewise.
3465 2017-08-31  Joseph Myers  <joseph@codesourcery.com>
3467         *  math/math.h [__USE_ISOC99] (NAN): Define directly here.  Do not
3468         include <bits/nan.h>.
3469         * math/Makefile (headers): Remove bits/nan.h.
3470         * bits/nan.h: Remove.
3471         * sysdeps/ieee754/bits/nan.h: Likewise.
3472         * sysdeps/mips/bits/nan.h: Likewise.
3474         * math/math.h [__USE_ISOC99] (INFINITY): Define directly here.  Do
3475         not include <bits/inf.h>.
3476         * math/Makefile (headers): Remove bits/inf.h.
3477         * bits/inf.h: Remove.
3478         * sysdeps/ieee754/bits/inf.h: Likewise.
3480         * math/math.h: Do not include bits/huge_val.h, bits/huge_valf.h,
3481         bits/huge_vall.h or bits/huge_val_flt128.h.
3482         (HUGE_VAL): Define directly here.
3483         [__USE_ISOC99] (HUGE_VALF): Likewise.
3484         [__USE_ISOC99] (HUGE_VALL): Likewise.
3485         [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
3486         (HUGE_VAL_F128): Likewise.
3487         * math/Makefile (headers): Remove bits/huge_val.h,
3488         bits/huge_valf.h, bits/huge_vall.h and bits/huge_val_flt128.h.
3489         * bits/huge_val.h: Remove.
3490         * bits/huge_val_flt128.h: Likewise.
3491         * bits/huge_valf.h: Likewise.
3492         * bits/huge_vall.h: Likewise.
3493         * sysdeps/ia64/bits/huge_vall.h: Likewise.
3494         * sysdeps/ieee754/bits/huge_val.h: Likewise.
3495         * sysdeps/ieee754/bits/huge_valf.h: Likewise.
3496         * sysdeps/m68k/m680x0/bits/huge_vall.h: Likewise.
3497         * sysdeps/sh/bits/huge_val.h: Likewise.
3498         * sysdeps/sparc/bits/huge_vall.h: Likewise.
3499         * sysdeps/x86/bits/huge_vall.h: Likewise.
3501 2017-08-31  Florian Weimer  <fweimer@redhat.com>
3503         * elf/dl-addr-obj.c (_dl_addr_inside_object): Remove
3504         internal_function.
3505         * elf/dl-cache.c (_dl_cache_libcmp, _dl_load_cache_lookup):
3506         Likewise.
3507         * elf/dl-debug.c (_dl_debug_initialize): Likewise.
3508         * elf/dl-deps.c (_dl_build_local_scope, _dl_map_object_deps): Likewise.
3509         * elf/dl-environ.c (_dl_next_ld_env_entry): Likewise.
3510         * elf/dl-execstack.c (_dl_make_stack_executable): Likewise.
3511         * elf/dl-fini.c (_dl_sort_fini): Likewise.
3512         * elf/dl-hwcaps.c (_dl_important_hwcaps): Likewise.
3513         * elf/dl-libc.c (dlerror_run): Likewise.
3514         * elf/dl-load.c (add_name_to_object, decompose_rpath)
3515         (_dl_init_paths, _dl_map_object, _dl_rtld_di_serinfo): Likewise.
3516         * elf/dl-lookup.c (add_dependency, _dl_debug_bindings)
3517         (_dl_lookup_symbol_x, _dl_setup_hash, _dl_debug_bindings):
3518         Likewise.
3519         * elf/dl-misc.c (_dl_sysdep_read_whole_file, _dl_name_match_p)
3520         (_dl_higher_prime_number, _dl_strtoul): Likewise.
3521         * elf/dl-object.c (_dl_add_to_namespace_list, _dl_new_object): Likewise.
3522         * elf/dl-profile.c (_dl_start_profile): Likewise.
3523         * elf/dl-reloc.c (_dl_try_allocate_static_tls)
3524         (_dl_allocate_static_tls, _dl_protect_relro, _dl_reloc_bad_type):
3525         Likewise.
3526         * elf/dl-support.c (_dl_aux_init, _dl_non_dynamic_init): Likewise.
3527         * elf/dl-sym.c (_dl_tls_symaddr, do_sym): Likewise.
3528         * elf/dl-sysdep.c (_dl_sysdep_start_cleanup, _dl_show_auxv): Likewise.
3529         * elf/dl-tls.c (_dl_next_tls_modid, _dl_count_modids)
3530         (_dl_determine_tlsoffset, allocate_dtv, _dl_get_tls_static_info)
3531         (_dl_allocate_tls_storage): Likewise.
3532         * elf/dl-version.c (match_symbol, _dl_check_map_versions)
3533         (_dl_check_all_versions): Likewise.
3534         * elf/dynamic-link.h (_dl_try_allocate_static_tls): Likewise.
3535         * elf/tlsdeschtab.h (_dl_make_tlsdesc_dynamic): Likewise.
3536         * elf/tst-_dl_addr_inside_object.c (_dl_addr_inside_object): Likewise.
3537         * sysdeps/aarch64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
3538         * sysdeps/aarch64/tlsdesc.c (_dl_unmap): Likewise.
3539         * sysdeps/arm/dl-lookupcfg.h (_dl_unmap): Likewise.
3540         * sysdeps/arm/dl-machine.h (elf_machine_load_address): Remove
3541         internal_function from __dl_start.
3542         * sysdeps/arm/dl-tlsdesc.h (_dl_unmap): Remove internal_function.
3543         * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): Likewise.
3544         * sysdeps/generic/ldsodefs.h (_dl_name_match_p)
3545         (_dl_higher_prime_number, _dl_strtoul, _dl_map_object)
3546         (_dl_map_object_deps, _dl_setup_hash, _dl_rtld_di_serinfo)
3547         (_dl_lookup_symbol_x, _dl_add_to_namespace_list, _dl_new_object)
3548         (_dl_protect_relro, _dl_reloc_bad_type, _dl_check_all_versions)
3549         (_dl_check_map_versions, _dl_sort_fini, _dl_debug_initialize)
3550         (_dl_init_paths, _dl_start_profile, _dl_show_auxv)
3551         (_dl_next_ld_env_entry, _dl_important_hwcaps)
3552         (_dl_load_cache_lookup, _dl_sysdep_read_whole_file)
3553         (_dl_sysdep_start_cleanup, _dl_next_tls_modid, _dl_count_modids)
3554         (_dl_determine_tlsoffset, _dl_get_tls_static_info)
3555         (_dl_allocate_static_tls, _dl_allocate_tls_storage)
3556         (_dl_addr_inside_object, _dl_non_dynamic_init, _dl_aux_init):
3557         Likewise.
3558         (struct rtld_global_ro): Remove internal_function from the
3559         _dl_lookup_symbol_x member.
3560         (_dl_symbol_value): Remove.  No longer defined anywhere.
3561         * sysdeps/i386/dl-lookupcfg.h (_dl_unmap): Remove
3562         internal_function.
3563         * sysdeps/i386/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
3564         * sysdeps/i386/tlsdesc.c (_dl_unmap): Likewise.
3565         * sysdeps/mach/hurd/dl-sysdep.c (_dl_show_auxv): Likewise.
3566         * sysdeps/nios2/dl-init.c (_dl_nios2_get_gp_value): Likewise.
3567         * sysdeps/tile/dl-lookupcfg.h (_dl_unmap): Likewise.
3568         * sysdeps/tile/dl-machine.h (_dl_after_load): Likewise.
3569         * sysdeps/tile/dl-runtime.c (_dl_after_load, _dl_unmap): Likewise.
3570         * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Likewise.
3571         * sysdeps/unix/sysv/linux/dl-vdso.h (_dl_vdso_vsym): Likewise.
3572         * sysdeps/x86_64/dl-lookupcfg.h (_dl_unmap): Likewise.
3573         * sysdeps/x86_64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
3574         * sysdeps/x86_64/tlsdesc.c (_dl_unmap): Likewise.
3576 2017-08-31  Florian Weimer  <fweimer@redhat.com>
3578         * gmon/gmon.c (write_hist, write_call_graph, write_bb_counts):
3579         Remove internal_function.
3580         * sysdeps/arm/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
3581         Likewise.
3582         * sysdeps/sparc/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
3583         Likewise.
3585 2017-08-31  Florian Weimer  <fweimer@redhat.com>
3587         * dlfcn/dlerror.c (_dlerror_run): Remove internal_function.
3588         * elf/dl-sym.c (_dl_vsym, _dl_sym): Likewise.
3589         * include/dlfcn.h (_dl_sym, _dl_vsym, _dlerror_run): Likewise.
3591 2017-08-31  Florian Weimer  <fweimer@redhat.com>
3593         * resolv/gai_misc.c (__gai_find_request, __gai_remove_request)
3594         (__gai_enqueue_request): Remove internal_function.
3595         * resolv/gai_misc.h (__gai_enqueue_request, __gai_find_request)
3596         (__gai_remove_request, __gai_notify, __gai_notify_only)
3597         (__gai_sigqueue): Likewise.
3598         * resolv/gai_notify.c (__gai_notify_only, __gai_notify): Likewise.
3599         * resolv/gai_sigqueue.c (__gai_sigqueue): Likewise.
3600         * resolv/inet_ntop.c (inet_ntop4, inet_ntop6): Likewise.
3601         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
3602         Likewise.
3604 2017-08-31  Florian Weimer  <fweimer@redhat.com>
3606         * dirent/scandir-tail.c (SCANDIR_TAIL): Remove internal_function.
3607         * include/dirent.h (__opendirat, __getdents, __getdents64)
3608         (__alloc_dir, __scandir_tail, __scandir64_tail): Likewise.
3609         * sysdeps/posix/opendir.c (__opendirat, __alloc_dir): Likewise.
3610         * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
3611         * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
3612         Likewise.
3613         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Likewise.
3615 2017-08-31  Florian Weimer  <fweimer@redhat.com>
3617         * sysdeps/unix/sysv/linux/getcwd.c (generic_getcwd): Remove
3618         internal_function.
3619         (GETCWD_RETURN_TYPE): Likewise.
3621 2017-08-31  Florian Weimer  <fweimer@redhat.com>
3623         * include/time.h (__tz_compute, __strptime_internal): Remove
3624         internal_function.
3625         * time/strptime_l.c (__strptime_internal): Likewise.
3626         * time/tzset.c (compute_change, update_vars, __tz_compute): Likewise.
3628 2017-08-31  Florian Weimer  <fweimer@redhat.com>
3630         * iconv/gconv.c (__gconv): Remove internal_function.
3631         * iconv/gconv_builtin.c (__gconv_get_builtin_trans): Likewise.
3632         * iconv/gconv_cache.c (__gconv_load_cache, find_module_idx)
3633         (find_module, __gconv_compare_alias_cache, __gconv_lookup_cache)
3634         (__gconv_release_cache): Likewise.
3635         * iconv/gconv_close.c (__gconv_close): Likewise.
3636         * iconv/gconv_conf.c (detect_conflict, insert_module, add_module)
3637         (read_conf_file, __gconv_get_path): Likewise.
3638         * iconv/gconv_db.c (derivation_lookup, add_derivation)
3639         (__gconv_release_step, gen_steps, increment_counter)
3640         (find_derivation, __gconv_compare_alias, __gconv_find_transform)
3641         (__gconv_close_transform, free_modules_db): Likewise.
3642         * iconv/gconv_dl.c (__gconv_find_shlib, __gconv_release_shlib):
3643         Likewise.
3644         * iconv/gconv_int.h (__gconv_open, __gconv_close, __gconv)
3645         (__gconv_find_transform, __gconv_lookup_cache)
3646         (__gconv_release_step, __gconv_load_cache, __gconv_get_path)
3647         (__gconv_close_transform, __gconv_release_cache)
3648         (__gconv_loaded_object, __gconv_release_shlib)
3649         (__gconv_compare_alias): Likewise.
3650         * iconv/gconv_open.c (__gconv_open): Likewise.
3651         * iconv/iconv_prog.c (print_known_names, add_known_names): Likewise.
3652         * iconv/iconvconfig.c (add_module): Likewise.
3653         * intl/dcigettext.c (plural_lookup, guess_category_value)
3654         (category_to_name, get_output_charset, _nl_find_msg): Likewise.
3655         * intl/eval-plural.h (plural_eval): Likewise.
3656         * intl/finddomain.c (_nl_find_domain): Likewise.
3657         * intl/gettextP.h (_nl_unload_domain, _nl_find_domain)
3658         (_nl_load_domain, _nl_find_msg): Likewise.
3659         (internal_function): Remove definition.
3660         * intl/loadinfo.h (internal_function): Likewise.
3661         * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Remove
3662         internal_function.
3663         * intl/localealias.c (internal_function): Remove definition.
3664         (read_alias_file): Remove internal_function.
3665         * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Likewise.
3666         * intl/plural-exp.h (internal_function): Remove definition.
3667         (FREE_EXPRESSION, EXTRACT_PLURAL_EXPRESSION): Remove
3668         internal_function.
3669         * intl/plural.c: Regenerate.
3670         * intl/plural.y (FREE_EXPRESSION): Remove internal_function.
3671         * locale/coll-lookup.c (__collidx_table_lookup)
3672         (__collseq_table_lookup): Likewise.
3673         * locale/coll-lookup.h (__collidx_table_lookup)
3674         (__collseq_table_lookup): Likewise.
3675         * locale/findlocale.c (_nl_find_locale, _nl_remove_locale): Likewise.
3676         * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
3677         * locale/loadlocale.c (_nl_intern_locale_data, _nl_load_locale)
3678         (_nl_unload_locale): Likewise.
3679         * locale/localeinfo.h (struct __locale_data): Remove
3680         internal_function from cleanup member.
3681         (_nl_find_locale, _nl_load_locale, _nl_unload_locale)
3682         (_nl_remove_locale, _nl_load_locale_from_archive)
3683         (_nl_intern_locale_data, _nl_get_era_entry, _nl_select_era_entry)
3684         (_nl_get_alt_digit, _nl_get_walt_digit, _nl_parse_alt_digit)
3685         (_nl_cleanup_time): Remove internal_function.
3686         * time/alt_digit.c (_nl_get_alt_digit, _nl_get_walt_digit)
3687         (_nl_parse_alt_digit): Likewise.
3688         * time/era.c (_nl_init_era_entries, _nl_get_era_entry)
3689         (_nl_select_era_entry): Likewise.
3690         * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
3691         * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv, __wcsmbs_clone_conv)
3692         (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
3693         * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv, __wcsmbs_clone_conv)
3694         (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
3696 2017-08-31  Florian Weimer  <fweimer@redhat.com>
3698         * rt/aio_sigqueue.c (__aio_sigqueue): Remove internal_function.
3699         * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
3700         * sysdeps/pthread/aio_misc.c (__aio_free_request, __aio_find_req)
3701         (__aio_find_req_fd, __aio_remove_request, __aio_enqueue_request):
3702         Likewise.
3703         * sysdeps/pthread/aio_misc.h (__aio_enqueue_request)
3704         (__aio_find_req, __aio_find_req_fd, __aio_free_request)
3705         (__aio_notify, __aio_notify_only, __aio_sigqueue): Likewise.
3706         * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
3707         Likewise.
3708         * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue): Likewise.
3710 2017-08-31  Florian Weimer  <fweimer@redhat.com>
3712         * misc/getttyent.c (skip, value): Remove internal_function.
3713         * misc/syslog.c (openlog_internal): Likewise.
3714         * misc/tsearch.c (trecurse, tdestroy_recurse): Likewise.
3716 2017-08-31  Florian Weimer  <fweimer@redhat.com>
3718         * include/nss.h (__nss_valid_field, __nss_valid_list_field)
3719         (__nss_rewrite_field): Remove internal_function.
3720         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
3721         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
3722         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
3723         * nss/nsswitch.c (nss_parse_file, nss_getline)
3724         (nss_parse_service_list, nss_new_service): Likewise.
3725         * nss/rewrite_field.c (__nss_rewrite_field): Likewise.
3726         * nss/valid_field.c (__nss_valid_field): Likewise.
3727         * nss/valid_list_field.c (__nss_valid_list_field): Likewise.
3729 2017-08-31  Florian Weimer  <fweimer@redhat.com>
3731         * malloc/arena.c (__malloc_fork_lock_parent)
3732         (__malloc_fork_unlock_parent, __malloc_fork_unlock_child)
3733         (next_env_entry, new_heap, heap_trim, arena_get2): Remove
3734         internal_function from defintions.
3735         * malloc/hooks.c (mem2mem_check, mem2chunk_check): Likewise.
3736         * malloc/malloc-internal.h (__malloc_fork_lock_parent)
3737         (__malloc_fork_unlock_parent, __malloc_fork_unlock_child): Remove
3738         internal_function from declarations.
3739         * malloc/malloc.c (internal_function): Do not define.
3740         (mem2mem_check): Remove internal_function from declaration.
3741         (munmap_chunk, mremap_chunk): Remove internal_function.
3742         * malloc/mtrace.c (tr_where): Likewise.
3744 2017-08-31  Florian Weimer  <fweimer@redhat.com>
3746         * include/rpc/pmap_clnt.h (__get_socket): Remove
3747         internal_function.
3748         * sunrpc/auth_des.c (synchronize): Likewise.
3749         * sunrpc/auth_unix.c (marshal_new_auth): Likewise.
3750         * sunrpc/clnt_perr.c (auth_errmsg): Likewise.
3751         * sunrpc/des_impl.c (des_encrypt, des_set_key): Likewise.
3752         * sunrpc/key_call.c (key_call_keyenvoy, key_call_socket)
3753         (key_call): Likewise.
3754         * sunrpc/pm_getport.c (__get_socket): Likewise.
3755         * sunrpc/pmap_rmt.c (getbroadcastnets): Likewise.
3756         * sunrpc/svc_unix.c (makefd_xprt): Likewise.
3757         * sunrpc/svc_tcp.c (makefd_xprt): Likewise.
3758         * sunrpc/svcauth_des.c (cache_init, cache_spot, cache_ref)
3759         (invalidate): Likewise.
3760         * sunrpc/xcrypt.c (hexval, hex2bin, bin2hex): Likewise.
3761         * sunrpc/xdr_rec.c (fix_buf_size, skip_input_bytes, flush_out)
3762         (set_input_fragment, get_input_bytes): Likewise.
3764 2017-08-31  Florian Weimer  <fweimer@redhat.com>
3766         * malloc/malloc.c (_int_free): Remove locked variable and related
3767         asserts.
3769 2017-08-31  H.J. Lu  <hongjiu.lu@intel.com>
3771         [BZ #22051]
3772         * Makerules (build-module-helper-objlist): Filter out
3773         $(elf-objpfx)sofini.os.
3774         (build-shlib-objlist): Append $(elf-objpfx)sofini.os if it is
3775         needed.
3777 2017-08-31  Florian Weimer  <fweimer@redhat.com>
3779         * libio/fcloseall.c: Assume weak_alias is defined.
3780         * libio/feof.c: Likewise.
3781         * libio/fileno.c: Likewise.
3782         * libio/fileops.c: Assume _LIBC, errno, __set_errno are defined.
3783         (_POSIX_SOURCE, open, lseek, read, write): Remove macro
3784         definitions.
3785         (_IO_file_open): Call __open directly.
3786         (_IO_new_file_sync): Assume ESPIPE is defined.
3787         (_IO_file_seekoff_maybe_mmap): Call __read directly.
3788         (_IO_new_file_write): Call __write directly.
3789         * libio/ftello.c (__ftello): Assume EIO, EOVERFLOW are defined.
3790         * libio/ftello64.c (__ftello64): Assume EIO is defined.
3791         * libio/genops.c: Assume _LIBC is defined.
3792         (save_for_backup): Remove internal_function.
3793         * libio/getc.c: Assume weak_alias is defined.
3794         * libio/getwc.c: Likewise.
3795         * libio/iofclose.c: Assume _LIBC is defined.
3796         * libio/iofdopen.c: Likewise.
3797         (_IO_fcntl): Remove macro definition.
3798         (_IO_new_fdopen): Assume F_GETFL, F_SETFL, O_ACCMODE are defined.
3799         Call __fcntl directly.
3800         * libio/iofflush.c: Assume weak_alias is defined.
3801         * libio/iofgetpos.c (_IO_new_fgetpos): Assume EIO, EOVERFLOW are
3802         defined.
3803         * libio/iofgetpos64.c (_IO_new_fgetpos64): Assume EIO is defined.
3804         * libio/iofgets.c: Likewise.
3805         * libio/iofopen.c: Assume _LIBC is defined.
3806         * libio/iofopen64.c: Assume _LIBC, weak_alias are defined.
3807         * libio/iofputs.c: Assume weak_alias is defined.
3808         * libio/iofread.c: Likewise.
3809         * libio/iofsetpos.c (_IO_new_fsetpos): Assume EIO is defined.
3810         * libio/iofsetpos64.c (_IO_new_fsetpos64): Likewise.
3811         * libio/ioftell.c: Assume weak_alias is defined.
3812         (_IO_ftell): Assume EIO, EOVERFLOW are defined.
3813         * libio/iofwide.c: Assume _LIBC is defined.
3814         (_IO_fwide): Drop SHARED conditional because it is implied by
3815         SHLIB_COMPAT.
3816         * libio/iofwrite.c: Assume weak_alias is defined.
3817         * libio/iogetdelim.c: Likewise.
3818         * libio/iogets.c: Assume _LIBC, weak_alias are defined.
3819         * libio/iogetwline.c (wmemcpy): Remove macro definition.
3820         (_IO_getwline): Call __wmemcpy directly.
3821         * libio/iopopen.c: Assume _LIBC is defined.
3822         (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
3823         (_IO_close): Remove macro definitions.
3824         (_IO_new_proc_open): Call __fork, __dup2, __close_nocancel, execl,
3825         _exit directly.
3826         (_IO_new_proc_close): Call __close_nocancel, __waitpid_nocancel
3827         directly.
3828         * libio/ioputs.c: Assume weak_alias is defined.
3829         * libio/ioseekoff.c: Assume errno, __set_errno are defined.
3830         * libio/iosetbuffer.c: Assume weak_alias is defined.
3831         * libio/iosetvbuf.c: Likewise.
3832         * libio/ioungetc.c: Likewise.
3833         * libio/libioP.h: Assume _LIBC, __GLIBC__, libc_hidden_proto,
3834         libc_hidden_def, libc_hidden_weak, NULL are defined.
3835         (mmap, munmap, ftruncate, OS_FSTAT): Remove macro definitions.
3836         * libio/oldfilepos.c: Assume _LIBC, errno, __set_errno are
3837         defined.
3838         (_POSIX_SOURCE, open, lseek, read, write): Remove macro
3839         definitions.
3840         (_IO_old_file_init_internal): Drop SHARED conditional because it
3841         is implied by SHLIB_COMPAT.
3842         (_IO_old_file_fopen): Call __open directly.
3843         (_IO_old_file_sync): Assume ESPIPE is defined.
3844         (_IO_old_file_write): Call __write directly.
3845         * libio/oldfdopen.c (_IO_fcntl): Remove macro definition.
3846         (_IO_old_fdopen): Assume F_GETFL, O_ACCMODE, F_SETFL are defined.
3847         Call __fcntl directly.
3848         * libio/oldiofgetpos.c: Assume weak_alias is defined.
3849         (_IO_old_fgetpos): Assume EIO is defined.
3850         * libio/oldiofgetpos64.c: Assume weak_alias is defined.
3851         (_IO_old_fgetpos64): Assume EIO is defined.
3852         * libio/oldiofsetpos.c: Assume weak_alias is defined.
3853         (_IO_old_fsetpos): Assume EIO is defined.
3854         * libio/oldiofsetpos64.c: Assume weak_alias is defined.
3855         (_IO_old_fsetpos64): Assume EIO is defined.
3856         * libio/oldiopopen.c:  Assume _LIBC is defined.
3857         (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
3858         (_IO_close): Remove macro definitions.
3859         (_IO_old_proc_open): Call __pipe, __close, __dup2, execl, _exit
3860         directly.
3861         (_IO_old_proc_close): Call __close, __waitpid directly.
3862         * libio/put.c: Assume weak_alias is defined.
3863         * libio/stdfiles.c: Assume _LIBC is defined.
3864         * libio/stdio.c: Likewise.
3865         * libio/wfileops.c: Likewise.
3866         (_IO_wfile_sync): Assume ESPIPE is defined.
3867         * libio/wgenops.c: Assume _LIBC is defined.
3868         (save_for_wbackup): Remove internal_function.
3870 2017-08-31  Florian Weimer  <fweimer@redhat.com>
3872         * malloc/malloc.c (top_check): Change return type to void.  Remove
3873         internal_function.
3874         * malloc/hooks.c (top_check): Likewise.
3875         (malloc_check, realloc_check, memalign_check): Adjust.
3877 2017-08-30  Joseph Myers  <joseph@codesourcery.com>
3879         [BZ #21457]
3880         * sysdeps/arm/sys/ucontext.h: Do not include <bits/sigcontext.h>.
3881         * sysdeps/generic/sys/ucontext.h: Add comment about use of struct
3882         sigcontext and namespace requirements.
3883         * sysdeps/i386/sys/ucontext.h: Do not include <bits/sigcontext.h>.
3884         * sysdeps/m68k/sys/ucontext.h: Likewise.
3885         * sysdeps/mips/sys/ucontext.h: Likewise.  Include <bits/types.h>.
3886         * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h: Do not include
3887         <bits/sigcontext.h>.
3888         (__ctx): Define earlier.
3889         (mcontext_t): Define structure contents rather than using struct
3890         sigcontext.
3891         * sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym (oEXTENSION): Use
3892         __glibc_reserved1 instead of __reserved.
3893         * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h: Do not include
3894         <bits/sigcontext.h>.
3895         (__ctx): Define earlier.
3896         (mcontext_t): Define structure contents rather than using struct
3897         sigcontext.
3898         * sysdeps/unix/sysv/linux/alpha/ucontext-offsets.sym: Use
3899         mcontext_t instead of struct sigcontext.
3900         * sysdeps/unix/sysv/linux/arm/sys/ucontext.h: Do not include
3901         <bits/sigcontext.h>.
3902         (__ctx): Define earlier.
3903         (mcontext_t): Define structure contents rather than using struct
3904         sigcontext.
3905         * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h: Do not include
3906         <bits/sigcontext.h>.
3907         (__ctx): Define earlier.
3908         (mcontext_t): Define structure contents rather than using struct
3909         sigcontext.
3910         * sysdeps/unix/sysv/linux/ia64/makecontext.c (__makecontext): Use
3911         mcontext_t instead of struct sigcontext.
3912         * sysdeps/unix/sysv/linux/ia64/sigcontext-offsets.sym: Use
3913         mcontext_t instead of struct sigcontext.
3914         * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: Do not include
3915         <bits/sigcontext.h>.
3916         (__ctx): New macro.
3917         (struct __ia64_fpreg_mcontext): New type.
3918         (mcontext_t): Define structure contents rather than using struct
3919         sigcontext.
3920         (_SC_GR0_OFFSET): Use mcontext_t instead of struct sigcontext.
3921         (uc_sigmask): Define using __ctx.
3922         (uc_stack): Likewise.
3923         * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Include
3924         <bits/sigcontext.h>.
3925         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
3926         * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h: Do not include
3927         <bits/sigcontext.h>.
3928         * sysdeps/unix/sysv/linux/microblaze/sys/ucontext.h: New file.
3929         * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Do not include
3930         <bits/sigcontext.h>.
3931         * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h: Do not include
3932         <bits/sigcontext.h>.
3933         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Do not include
3934         <bits/sigcontext.h>.
3935         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Do not include
3936         <bits/sigcontext.h>.
3937         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: Do not include
3938         <bits/sigcontext.h>.
3939         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h: Do not include
3940         <bits/sigcontext.h>.
3941         * sysdeps/unix/sysv/linux/tile/sys/ucontext.h: Do not include
3942         <bits/sigcontext.h>.
3943         (__ctx): Define earlier.
3944         (mcontext_t): Define structure contents rather than using struct
3945         sigcontext.
3946         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: Do not include
3947         <bits/sigcontext.h>.  Include <bits/types.h>.
3948         * conform/Makefile (test-xfail-XPG42/signal.h/conform): Remove.
3949         (test-xfail-XPG42/sys/wait.h/conform): Likewise.
3950         (test-xfail-XPG42/ucontext.h/conform): Likewise.
3951         (test-xfail-UNIX98/signal.h/conform): Likewise.
3952         (test-xfail-UNIX98/sys/wait.h/conform): Likewise.
3953         (test-xfail-UNIX98/ucontext.h/conform): Likewise.
3954         (test-xfail-XOPEN2K/signal.h/conform): Likewise.
3955         (test-xfail-XOPEN2K/sys/wait.h/conform): Likewise.
3956         (test-xfail-XOPEN2K/ucontext.h/conform): Likewise.
3957         (test-xfail-POSIX2008/signal.h/conform): Likewise.
3958         (test-xfail-POSIX2008/sys/wait.h/conform): Likewise.
3959         (test-xfail-XOPEN2K8/signal.h/conform): Likewise.
3960         (test-xfail-XOPEN2K8/sys/wait.h/conform): Likewise.
3962 2017-08-30  Florian Weimer  <fweimer@redhat.com>
3964         * malloc/dynarray_emplace_enlarge.c
3965         (__libc_dynarray_emplace_enlarge): Set errno on overflow.
3966         * malloc/dynarray_resize.c (__libc_dynarray_resize): Likewise.
3967         * malloc/tst-dynarray.c (test_long_overflow): New function.
3968         (do_test): Call it.
3970 2017-08-30  Florian Weimer  <fweimer@redhat.com>
3972         * malloc/malloc.c (ARENA_CORRUPTION_BIT, arena_is_corrupt)
3973         (set_arena_corrupt): Remove definitions.
3974         (mtrim): Do not check for corrupt arena.
3975         * malloc/arena.c (arena_lock, reused_arena, arena_get_retry):
3976         Likewise.
3978 2017-08-30  Florian Weimer  <fweimer@redhat.com>
3980         [BZ #21754]
3981         * malloc/arena.c (TUNABLE_CALLBACK set_mallopt_check): Do not set
3982         check_action.
3983         (ptmalloc_init): Do not set or use check_action.
3984         * malloc/hooks.c (malloc_check_get_size, realloc_check): Adjust
3985         call to malloc_printerr.  Remove return statement.
3986         (free_check): Likewise.  Remove arena unlock.
3987         (top_check): Update comment.  Adjust call to malloc_printerr.
3988         Remove heap repair code.
3989         * malloc/malloc.c (unlink): Adjust calls to malloc_printerr.
3990         (DEFAULT_CHECK_ACTION, check_action): Remove definitions.
3991         (sysmalloc): Adjust call to malloc_printerr.
3992         (munmap_chunk, __libc_realloc): Likewise.  Remove return
3993         statement.
3994         (_int_malloc, int_realloc): Likewise.  Remove errstr variable.
3995         Remove errout label and corresponding gotos.
3996         (_int_free): Likewise.  Remove arena unlock.
3997         (do_set_mallopt_check): Do not set check_action.
3998         (malloc_printerr): Adjust parameter list.  Do not mark arena as
3999         corrupt.
4000         * manual/memory.texi (Malloc Tunable Parameters): Remove TODO
4001         comment.
4002         * manual/probes.texi (Memory Allocation Probes): Remove
4003         memory_mallopt_check_action.
4005 2017-08-30  Steve Ellcey  <sellcey@cavium.com>
4007         * sysdeps/unix/sysv/linux/aarch64/makecontext.c (__makecontext):
4008         Use pointer to uint64_t instead of long int for sp.
4010 2017-08-30  Florian Weimer  <fweimer@redhat.com>
4012         [BZ #21754]
4013         * malloc/malloc.c (malloc_printerr): Always terminate the process,
4014         without printing a backtrace.  Do not leak any information in the
4015         error message.
4016         * manual/memory.texi (Heap Consistency Checking): Update.
4017         * manual/tunables.texi (Memory Allocation Tunables): Likewise.
4019 2017-08-30  Florian Weimer  <fweimer@redhat.com>
4021         Do not scale NPTL tests with available number of CPUs.
4022         * nptl/tst-cond16.c (count): Set to constant value of 8.
4023         * nptl/tst-cond18.c (count): Likewise.
4025 2017-08-29  Joseph Myers  <joseph@codesourcery.com>
4027         [BZ #22035]
4028         * sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__inline_functions):
4029         Define to take a second argument that is a macro that
4030         concatentates a suffix, not the suffix itself.
4031         (__CONCAT_d): New macro.
4032         (__CONCAT_f): Likewise.
4033         (__CONCAT_l): Likewise.
4035 2017-08-29  Paul Pluzhnikov  <ppluzhnikov@google.com>
4037         * stdlib/tst-atexit-common.c (do_test): Test handler inheritance
4038         by child.
4040 2017-08-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4041             Aurelien Jarno  <aurelien@aurel32.net>
4042             Maciej W. Rozycki  <macro@imgtec.com>
4044         [BZ #21956]
4045         * sysdeps/unix/sysv/linux/mips/mips32/mips16/Makefile
4046         [subdir = misc] (sysdep_routines): Remove `mips16-syscall5',
4047         `mips16-syscall6' and `mips16-syscall7'.
4048         (CFLAGS-mips16-syscall5.c, CFLAGS-mips16-syscall6.c)
4049         (CFLAGS-mips16-syscall7.c): Remove.
4050         * sysdeps/unix/sysv/linux/mips/mips32/mips16/Versions (libc):
4051         Remove `__mips16_syscall5', `__mips16_syscall6' and
4052         `__mips16_syscall7'.
4053         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall0.c
4054         (__mips16_syscall0): Rename `__mips16_syscall_return' to
4055         `__mips_syscall_return'.
4056         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall1.c
4057         (__mips16_syscall1): Likewise.
4058         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall2.c
4059         (__mips16_syscall2): Likewise.
4060         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall3.c
4061         (__mips16_syscall3): Likewise.
4062         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall4.c
4063         (__mips16_syscall4): Likewise.
4064         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall5.c:
4065         Remove.
4066         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall6.c:
4067         Remove.
4068         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall7.c:
4069         Remove.
4070         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall.h
4071         (__mips16_syscall5): Expand to `__mips_syscall5' rather than
4072         `__mips16_syscall5'.  Remove prototype.
4073         (__mips16_syscall6): Expand to `__mips_syscall6' rather than
4074         `__mips16_syscall6'.  Remove prototype.
4075         (__mips16_syscall7): Expand to `__mips_syscall7' rather than
4076         `__mips16_syscall7'.  Remove prototype.
4077         (__nomips16, __mips16_syscall_return): Move to...
4078         * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h
4079         (__nomips16, __mips_syscall_return): ... here.
4080         [__mips16] (INTERNAL_SYSCALL_NCS): Rename
4081         `__mips16_syscall_return' to `__mips_syscall_return'.
4082         [__mips16] (INTERNAL_SYSCALL_MIPS16): Pass `number' to
4083         `internal_syscall##nr'.
4084         [!__mips16] (INTERNAL_SYSCALL): Pass `SYS_ify (name)' to
4085         `internal_syscall##nr'.
4086         (FORCE_FRAME_POINTER): Remove.
4087         (__mips_syscall5): New prototype.
4088         (internal_syscall5): Rewrite to call `__mips_syscall5'.
4089         (__mips_syscall6): New prototype.
4090         (internal_syscall6): Rewrite to call `__mips_syscall6'.
4091         (__mips_syscall7): New prototype.
4092         (internal_syscall7): Rewrite to call `__mips_syscall7'.
4093         * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall5.S: New file.
4094         * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall6.S: New file.
4095         * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall7.S: New file.
4096         * sysdeps/unix/sysv/linux/mips/mips32/Makefile [subdir = misc]
4097         (sysdep_routines): Add libc-do-syscall.
4098         * sysdeps/unix/sysv/linux/mips/mips32/Versions (libc): Add
4099         `__mips_syscall5', `__mips_syscall6' and `__mips_syscall7'.
4101 2017-08-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4103         [BZ #21672]
4104         * nptl/allocatestack.c [_STACK_GROWS_DOWN] (setup_stack_prot):
4105         Set to use !NEED_SEPARATE_REGISTER_STACK as well.
4106         (advise_stack_range): New function.
4107         * nptl/pthread_create.c (START_THREAD_DEFN): Move logic to mark
4108         stack non required to advise_stack_range at allocatestack.c
4110 2017-08-29  Szabolcs Nagy  <szabolcs.nagy@arm.com>
4112         * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Use __uint64_t.
4114 2017-08-29  Florian Weimer  <fweimer@redhat.com>
4116         [BZ #22026]
4117         * iconv/gconv_db.c (gen_steps): Decrement step_cnt after resetting
4118         __end_fct.  Mangle __end_fct after setting it to NULL.
4119         * iconv/Makefile (tests): Add tst-gconv-init-failure.
4120         (modules-names, modules-names-tests): Add
4121         tst-gconv-init-failure-mod.
4122         (gconv-modules): New target.
4123         (tst-gconv-init-failure-mod.so): Link against libsupport.
4124         (tst-gconv-init-failure): Depend on gconv-modules,
4125         tst-gconv-init-failure-mod.so.
4126         * iconv/tst-gconv-init-failure-mod.c: New file.
4127         * iconv/tst-gconv-init-failure.c: Likewise.
4128         * iconv/test-gconv-modules: Likewise.
4130 2017-08-29  Florian Weimer  <fweimer@redhat.com>
4132         [BZ #22025]
4133         * iconv/gconv_db.c (free_derivation): Remove redundant
4134         parentheses.
4135         (gen_steps): Unconditionally mangle __btowc_fct after
4136         initialization.
4137         (increment_counter): Likewise.  Do not call init_fct for internal
4138         modules.
4140 2017-08-29  Joseph Myers  <joseph@codesourcery.com>
4142         [BZ #22028]
4143         * math/math.h [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
4144         (_MSUF_): Remove macro.
4145         [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (_MSUFTO_):
4146         Likewise.
4147         [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
4148         (__REDIRFROM_X): New macro.
4149         [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (__REDIRTO_X):
4150         Likewise.
4151         * math/bits/math-finite.h (__REDIRFROM_X): Remove macro.
4152         (__REDIRTO_X): Likewise.
4153         (__MATH_REDIRCALL): Do not pass _MSUF_ or _MSUFTO_ macro
4154         arguments.
4155         (__MATH_REDIRCALL_2): Likewise.
4156         (__MATH_REDIRCALL_INTERNAL): Likewise.
4157         (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
4158         (__REDIRFROM (gamma, , _MSUF_)): Likweise.
4159         (__REDIRFROM (__gamma, _r_finite, _MSUF_)): Likewise.
4160         (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
4161         * math/test-finite-macros.c: New file.
4162         * math/Makefile (tests): Add test-finite-macros.
4163         (CFLAGS-test-finite-macros.c): New variable.
4165 2017-08-29  Patsy Franklin  <pfrankli@redhat.com>
4166             Jeff Law  <law@redhat.com>
4168         [BZ #22025]
4169         Mangle NULL pointers in iconv/gconv.
4170         * iconv/gconv_cache.c (find_module): Demangle init_fct before
4171         checking for NULL. Mangle __btowc_fct if init_fct is non-NULL.
4172         * iconv/gconv_db.c (free_derivation): Check that __shlib_handle
4173         is non-NULL before demangling the end_fct.  Check for NULL
4174         end_fct after demangling.
4175         (__gconv_release_step): Demangle the end_fct before checking
4176         it for NULL.   Remove assert on __shlibc_handle != NULL.
4177         (gen_steps): Don't check btowc_fct for NULL before mangling.
4178         Demangle init_fct before checking for NULL.
4179         (increment_counter): Likewise.
4180         * gconv_dl.c (__gconv_find_shlib): Don't check init_fct or
4181         end_fct for NULL before mangling.
4182         * wcsmbs/btowc.c (__btowc): Demangle btowc_fct before checking
4183         for NULL.
4185 2017-08-29  Akhilesh Kumar  <akhilesh.k@samsung.com>
4187         [BZ #21971]
4188         * locale/iso-639.def: add Morisyen.
4190 2017-08-28  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
4192         [BZ #21930]
4193         * math/math.h [defined __cplusplus && defined __SUPPORT_SNAN__]
4194         (iszero): New C++ implementation that does not use
4195         fpclassify/__MATH_TG/__builtin_types_compatible_p, when
4196         signaling nans are enabled, since __builtin_types_compatible_p
4197         is a C-only feature.
4198         * math/test-math-iszero.cc: When __HAVE_DISTINCT_FLOAT128 is
4199         defined, include ieee754_float128.h for access to the union and
4200         member ieee854_float128.ieee.
4201         [__HAVE_DISTINCT_FLOAT128] (do_test): Call check_float128.
4202         [__HAVE_DISTINCT_FLOAT128] (check_float128): New function.
4203         * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
4204         (CXXFLAGS-test-math-iszero.cc): Add -mfloat128 to the build
4205         options of test-math-zero on powerpc64le.
4207 2017-08-28  H.J. Lu  <hongjiu.lu@intel.com>
4209         * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
4210         Change double to float.
4212 2017-08-28  Joseph Myers  <joseph@codesourcery.com>
4214         * math/math-svid-compat.h [!__ASSEMBLER__]: Make code
4215         unconditional.
4216         * sysdeps/ieee754/s_lib_version.c [!defined SHARED]: Remove
4217         conditional code; define contents only for [LIBM_SVID_COMPAT].
4219 2017-08-28  Florian Weimer  <fweimer@redhat.com>
4221         * sysdeps/unix/sysv/linux/aarch64/Makefile (abi-lp64-options)
4222         (abi-lp64_be-options): Remove.
4223         * sysdeps/unix/sysv/linux/arm/Makefile (abi-soft-options)
4224         (abi-hard-options): Likewise.
4225         * sysdeps/unix/sysv/linux/mips/Makefile(abi-o32_soft-options)
4226         (abi-o32_hard-options, abi-o32_soft_2008-options)
4227         (abi-o32_hard_2008-options, abi-n32_soft-options)
4228         (abi-n32_hard-options, abi-n32_soft_2008-options)
4229         (abi-n32_hard_2008-options, abi-n64_soft-options)
4230         (abi-n64_hard-options, abi-n64_soft_2008-options)
4231         (abi-n64_hard_2008-options): Likewise.
4232         * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-32-options)
4233         (abi-64-v1-options, abi-64-v2-options): Likewise.
4234         * sysdeps/unix/sysv/linux/s390/Makefile (abi-32-options)
4235         (abi-64-options): Likewise.
4236         * sysdeps/unix/sysv/linux/sparc/Makefile (abi-32-options)
4237         (abi-64-options): Likewise.
4238         * sysdeps/unix/sysv/linux/tile/tilegx/Makefile (abi-32-options)
4239         (abi-64-options): Likewise.
4240         * sysdeps/unix/sysv/linux/x86/Makefile (abi-32-options)
4241         (abi-64-options, abi-x32-options): Likewise.
4243 2017-08-28  Florian Weimer  <fweimer@redhat.com>
4245         Store supported list of SYS_* system calls in the source tree.
4246         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
4247         (bits/syscall.h): Generate from list file.
4248         [$(subdir) = misc] (before-compile): Add bits/syscall.h.
4249         [$(subdir) = misc] (tests): Add tst-syscall-list.
4250         [$(subdir) = misc] (tests-special): Add tst-syscall-list.out
4251         [$(subdir) = misc] (tst-syscall-list-macros.list)
4252         [$(subdir) = misc] (tst-syscall-list-nr.list)
4253         (tst-syscall-list-sys.list): Helper targets for new
4254         tst-syscall-list test.
4255         [$(subdir) = misc] (tst-syscall-list.out): Run test script
4256         tst-syscall-list.sh.
4257         [$(subdir) = misc] (bits/syscall%h, bits/syscall%d): Remove
4258         target. Do not include bits/syscall.d.
4259         [$(subdir) = misc] (generated): Do not update.
4260         * sysdeps/unix/sysv/linux/syscall-names.list: New file.
4261         * sysdeps/unix/sysv/linux/gen-syscall-h.awk: Likewise.
4262         * sysdeps/unix/sysv/linux/filter-nr-syscalls.awk: Likewise.
4263         * sysdeps/unix/sysv/linux/tst-syscall-list.sh: Likewise.
4265 2017-08-27  Paul Pluzhnikov  <ppluzhnikov@google.com>
4267         * stdlib/Makefile (tst-atexit, tst-at_quick_exit): New tests.
4268         (tst-cxa_atexit, tst-on_exit): Likewise.
4269         * stdlib/Makefile (tests): Add tst-atexit, tst-at_quick_exit,
4270         tst-cxa_atexit, and tst-on_exit.
4271         * stdlib/tst-atexit-common.c: New file.
4272         * stdlib/tst-atexit.c: New file.
4273         * stdlib/tst-at_quick_exit.c: New file.
4274         * stdlib/tst-cxa_atexit.c: New file.
4275         * stdlib/tst-on_exit.c: New file.
4277 2017-08-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4279         * sysdeps/mach/hurd/bits/sysmacros.h: New file.
4280         * mach/stack_chk_fail_local.c: New file.
4281         * hurd/stack_chk_fail_local.c: New file.
4282         * mach/Machrules ($(interface-library)-routines): Add
4283         stack_chk_fail_local.
4284         * mach/Makefile (CFLAGS-mach_init.o, CFLAGS-RPC_vm_statistics.o,
4285         CFLAGS-RPC_vm_map.o, CFLAGS-RPC_vm_protect.o,
4286         CFLAGS-RPC_i386_set_gdt.o, CFLAGS-RPC_i386_set_ldt.o,
4287         CFLAGS-RPC_task_get_special_port.o): Add $(no-stack-protector).
4288         * hurd/Makefile (CFLAGS-hurdstartup.o,
4289         CFLAGS-RPC_exec_startup_get_info.o): Add $(no-stack-protector).
4291 2017-08-25  H.J. Lu  <hongjiu.lu@intel.com>
4293         * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
4294         (index_cpu_*, index_arch_*): Removed.
4296 2017-08-25  Szabolcs Nagy  <szabolcs.nagy@arm.com>
4298         * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h (elf_greg_t):
4299         Use uint64_t instead of unsigned long.
4301 2017-08-25  Joseph Myers  <joseph@codesourcery.com>
4303         * math/tgmath.h [__HAVE_FLOAT128]: Change conditional to
4304         [__HAVE_DISTINCT_FLOAT128].
4306         * math/math.h (_MSUFTO_): Define and undefine for each inclusion
4307         of <bits/math-finite.h>.
4308         (__MATH_DECLARING_LDOUBLE): Do not define and undefine for each
4309         inclusion of <bits/math-finite.h>.
4310         * math/bits/math-finite.h (__REDIRTO_X): Do not define
4311         conditionally on [__MATH_DECLARING_LDOUBLE && defined
4312         __NO_LONG_DOUBLE_MATH].
4313         (__MATH_REDIRCALL): Use _MSUFTO_ in __REDIRTO call.
4314         (__MATH_REDIRCALL_2): Likewise.
4315         (__MATH_REDIRCALL_INTERNAL): Likewise.
4316         (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
4317         (__REDIRFROM (gamma, , _MSUF_)): Likewise.
4318         (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
4320         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-power5.S:
4321         Remove file.
4322         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-ppc32.S:
4323         Likewise.
4324         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat.c:
4325         Likewise.
4326         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-power5.S:
4327         Likewise.
4328         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-ppc32.S:
4329         Likewise.
4330         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat.c:
4331         Likewise.
4332         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
4333         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
4334         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
4335         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
4336         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
4337         (libm-sysdep-routines): Remove w_sqrt_compat-power5,
4338         w_sqrt_compat-ppc32, w_sqrtf_compat-power5 and
4339         w_sqrtf_compat-ppc32.
4341 2017-08-24  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
4343         * math/math.h [defined __cplusplus] (issignaling): In the long
4344         double case, call __issignalingl only if __NO_LONG_DOUBLE_MATH
4345         is not defined.  Call __issignaling, otherwise.
4347 2017-08-24  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4349         * sysdeps/unix/make-syscalls.sh: Remove cancellable tagging for
4350         syscall definitions and replace __builtin_expect with __glibc_likely.
4351         * sysdeps/unix/syscall-template.S: Update comment about cancellable
4352         syscall.
4353          (SYSCALL_CANCELLABLE): Removedefinition
4354         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (PSEUDO): Remove
4355         definition.
4356         (PSEUDO_END): Likewise.
4357         [IS_IN (libpthread)] (CENABLE): Likewise.
4358         [IS_IN (libpthread)] (CDISABLE): Likewise.
4359         [IS_IN (libc)] (CENABLE): Likewise.
4360         [IS_IN (libc)] (CENABLE): Likewise.
4361         [IS_IN (librt)] (CDISABLE): Likewise.
4362         [IS_IN (librt)] (CDISABLE): Likewise.
4363         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
4364         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (PSEUDO): Remove
4365         definition.
4366         (PSEUDO_END): Likewise.
4367         [IS_IN (libpthread)] (__local_enable_asynccancel): Likewise.
4368         [IS_IN (libpthread)] (__local_disable_asynccancel): Likewise.
4369         [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
4370         [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
4371         [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
4372         [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
4373         (CENABLE): Likewise.
4374         (CDISABLE): Likewise.
4375         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
4376         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (PSEUDO): Remove
4377         defintion.
4378         (PSEUDO_END): Likewise.
4379         [IS_IN (libpthread)] (CENABLE): Likewise.
4380         [IS_IN (libpthread)] (CDISABLE): Likewise.
4381         [IS_IN (libc)] (CENABLE): Likewise.
4382         [IS_IN (libc)] (CENABLE): Likewise.
4383         [IS_IN (librt)] (CDISABLE): Likewise.
4384         [IS_IN (librt)] (CDISABLE): Likewise.
4385         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
4386         * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (PSEUDO): Remove
4387         definition.
4388         (PSEUDO_END): Likewise.
4389         [IS_IN (libpthread)] (CENABLE): Likewise.
4390         [IS_IN (libpthread)] (CDISABLE): Likewise.
4391         [IS_IN (libc)] (CENABLE): Likewise.
4392         [IS_IN (libc)] (CENABLE): Likewise.
4393         [IS_IN (librt)] (CDISABLE): Likewise.
4394         [IS_IN (librt)] (CDISABLE): Likewise.
4395         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
4396         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (PSEUDO): Remove
4397         definition.
4398         (PSEUDO_END): Likewise.
4399         [IS_IN (libpthread)] (CENABLE): Likewise.
4400         [IS_IN (libpthread)] (CDISABLE): Likewise.
4401         [IS_IN (libc)] (CENABLE): Likewise.
4402         [IS_IN (libc)] (CENABLE): Likewise.
4403         [IS_IN (librt)] (CDISABLE): Likewise.
4404         [IS_IN (librt)] (CDISABLE): Likewise.
4405         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
4406         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (PSEUDO): Remove
4407         definition.
4408         (PSEUDO_END): Likewise.
4409         [IS_IN (libpthread)] (CENABLE): Likewise.
4410         [IS_IN (libpthread)] (CDISABLE): Likewise.
4411         [IS_IN (libc)] (CENABLE): Likewise.
4412         [IS_IN (libc)] (CENABLE): Likewise.
4413         [IS_IN (librt)] (CDISABLE): Likewise.
4414         [IS_IN (librt)] (CDISABLE): Likewise.
4415         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
4416         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (PSEUDO): Remove
4417         definition.
4418         (PSEUDO_END): Likewise.
4419         [IS_IN (libpthread)] (CENABLE): Likewise.
4420         [IS_IN (libpthread)] (CDISABLE): Likewise.
4421         [IS_IN (libc)] (CENABLE): Likewise.
4422         [IS_IN (libc)] (CENABLE): Likewise.
4423         [IS_IN (librt)] (CDISABLE): Likewise.
4424         [IS_IN (librt)] (CDISABLE): Likewise.
4425         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
4426         * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h (PSEUDO): Remove
4427         definition.
4428         (PSEUDO_END): Likewise.
4429         [IS_IN (libpthread)] (CENABLE): Likewise.
4430         [IS_IN (libpthread)] (CDISABLE): Likewise.
4431         [IS_IN (libc)] (CENABLE): Likewise.
4432         [IS_IN (libc)] (CENABLE): Likewise.
4433         [IS_IN (librt)] (CDISABLE): Likewise.
4434         [IS_IN (librt)] (CDISABLE): Likewise.
4435         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
4436         * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h (PSEUDO):
4437         Remove definition.
4438         (PSEUDO_END): Likewise.
4439         [IS_IN (libpthread)] (CENABLE): Likewise.
4440         [IS_IN (libpthread)] (CDISABLE): Likewise.
4441         [IS_IN (libc)] (CENABLE): Likewise.
4442         [IS_IN (libc)] (CENABLE): Likewise.
4443         [IS_IN (librt)] (CDISABLE): Likewise.
4444         [IS_IN (librt)] (CDISABLE): Likewise.
4445         (SINGLE_THREAD_P): Likewise.
4446         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (PSEUDO): Remove
4447         definition.
4448         (PSEUDO_END): Likewise.
4449         [IS_IN (libpthread)] (CENABLE): Likewise.
4450         [IS_IN (libpthread)] (CDISABLE): Likewise.
4451         [IS_IN (libc)] (CENABLE): Likewise.
4452         [IS_IN (libc)] (CENABLE): Likewise.
4453         [IS_IN (librt)] (CDISABLE): Likewise.
4454         [IS_IN (librt)] (CDISABLE): Likewise.
4455         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
4456         * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (PSEUDO): Remove
4457         definition.
4458         (PSEUDO_END): Likewise.
4459         [IS_IN (libpthread)] (CENABLE): Likewise.
4460         [IS_IN (libpthread)] (CDISABLE): Likewise.
4461         [IS_IN (libc)] (CENABLE): Likewise.
4462         [IS_IN (libc)] (CENABLE): Likewise.
4463         [IS_IN (librt)] (CDISABLE): Likewise.
4464         [IS_IN (librt)] (CDISABLE): Likewise.
4465         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
4466         * sysdeps/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Remove file.
4467         * sysdeps/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
4468         * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: New file.
4469         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h (PSEUDO): Remove
4470         definition.
4471         (PSEUDO_END): Likewise.
4472         [IS_IN (libpthread)] (CENABLE): Likewise.
4473         [IS_IN (libpthread)] (CDISABLE): Likewise.
4474         [IS_IN (libc)] (CENABLE): Likewise.
4475         [IS_IN (libc)] (CENABLE): Likewise.
4476         [IS_IN (librt)] (CDISABLE): Likewise.
4477         [IS_IN (librt)] (CDISABLE): Likewise.
4478         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
4479         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h (PSEUDO): Remove
4480         definition.
4481         (PSEUDO_END): Likewise.
4482         [IS_IN (libpthread)] (CENABLE): Likewise.
4483         [IS_IN (libpthread)] (CDISABLE): Likewise.
4484         [IS_IN (libc)] (CENABLE): Likewise.
4485         [IS_IN (libc)] (CENABLE): Likewise.
4486         [IS_IN (librt)] (CDISABLE): Likewise.
4487         [IS_IN (librt)] (CDISABLE): Likewise.
4488         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
4489         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (PSEUDO): Remove
4490         definition.
4491         (PSEUDO_END): Likewise.
4492         [IS_IN (libpthread)] (CENABLE): Likewise.
4493         [IS_IN (libpthread)] (CDISABLE): Likewise.
4494         [IS_IN (libc)] (CENABLE): Likewise.
4495         [IS_IN (libc)] (CENABLE): Likewise.
4496         [IS_IN (librt)] (CDISABLE): Likewise.
4497         [IS_IN (librt)] (CDISABLE): Likewise.
4498         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
4499         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Remove file.
4500         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
4501         * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: New file.
4502         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (PSEUDO): Remove
4503         definition.
4504         (PSEUDO_END): Likewise.
4505         [IS_IN (libpthread)] (CENABLE): Likewise.
4506         [IS_IN (libpthread)] (CDISABLE): Likewise.
4507         [IS_IN (libc)] (CENABLE): Likewise.
4508         [IS_IN (libc)] (CENABLE): Likewise.
4509         [IS_IN (librt)] (CDISABLE): Likewise.
4510         [IS_IN (librt)] (CDISABLE): Likewise.
4511         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
4512         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (PSEUDO): Remove
4513         definition.
4514         (PSEUDO_END): Likewise.
4515         [IS_IN (libpthread)] (CENABLE): Likewise.
4516         [IS_IN (libpthread)] (CDISABLE): Likewise.
4517         [IS_IN (libc)] (CENABLE): Likewise.
4518         [IS_IN (libc)] (CENABLE): Likewise.
4519         [IS_IN (librt)] (CDISABLE): Likewise.
4520         [IS_IN (librt)] (CDISABLE): Likewise.
4521         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
4523 2017-08-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
4525         * sysdeps/ieee754/dbl-64/Makefile: Don't override CFLAGS.
4527 2017-08-23  H.J. Lu  <hongjiu.lu@intel.com>
4529         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
4531 2017-08-23  H.J. Lu  <hongjiu.lu@intel.com>
4533         [BZ #21982]
4534         * string/stratcliff.c (do_test): Declare size, nchars, inner,
4535         middle and outer with size_t instead of int.  Repleace %d and
4536         %Zd with %zu in printf.  Update "MAX (0, nchars - 128)" and
4537         "MAX (outer, nchars - 64)" to support unsigned outer and
4538         nchars.  Also exit loop when outer == 0.
4540 2017-08-23  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4542         * include/fcntl.h (__fcntl_nocancel): Remove definition.
4543         * include/signal.h (__sigsuspend_nocancel): Likewise.
4544         * include/time.h (__nanosleep_nocancel): Likewise.
4545         * sysdeps/generic/not-cancel.h (__fcntl_nocancel): New macro.
4546         * login/utmp_file.c: Include non cancellable syscall header.
4547         * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): New
4548         prototype.
4550 2017-08-23  H.J. Lu  <hongjiu.lu@intel.com>
4552         * sysdeps/x86_64/fpu/svml_d_sincos8_core.S: Replace AVX512F
4553         .byte sequences with AVX512F instructions.
4554         * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Likewise.
4555         * sysdeps/x86_64/fpu/svml_s_sincosf16_core.S: Likewise.
4556         * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Likewise.
4557         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S:
4558         Likewise.
4559         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
4560         Likewise.
4562 2017-08-22  Szabolcs Nagy  <szabolcs.nagy@arm.com>
4563             Steve Ellcey  <sellcey@cavium.com>
4565         * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic):
4566         Use PTR_REG macro in cmp instruction.
4568 2017-08-22  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
4570         * include/libc-symbols.h: [!defined HAVE_GCC_IFUNC] (__ifunc):
4571         Change the return type of the ifunc resolver to match the return
4572         type of the target function.
4574 2017-08-22  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4576         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (pread64): Remove.
4577         (preadv64): Likewise.
4578         (pwrite64(: Likewise.
4579         (pwritev64): Likewise.
4581         * sysdeps/unix/sysv/linux/x86_64/sysdep.h
4582         (INTERNAL_SYSCALL_NCS_TYPES): Remove define.
4583         (LOAD_ARGS_0): Likewise.
4584         (LOAD_ARGS_1): Likewise.
4585         (LOAD_ARGS_2): Likewise.
4586         (LOAD_ARGS_3): Likewise.
4587         (LOAD_ARGS_4): Likewise.
4588         (LOAD_ARGS_5): Likewise.
4589         (LOAD_ARGS_6): Likewise.
4590         (LOAD_REGS_0): Likewise.
4591         (LOAD_REGS_1): Likewise.
4592         (LOAD_REGS_2): Likewise.
4593         (LOAD_REGS_3): Likewise.
4594         (LOAD_REGS_4): Likewise.
4595         (LOAD_REGS_5): Likewise.
4596         (LOAD_REGS_6): Likewise.
4597         (ASM_ARGS_0): Likewise.
4598         (ASM_ARGS_1): Likewise.
4599         (ASM_ARGS_2): Likewise.
4600         (ASM_ARGS_3): Likewise.
4601         (ASM_ARGS_4): Likewise.
4602         (ASM_ARGS_5): Likewise.
4603         (ASM_ARGS_6): Likewise.
4604         (LOAD_ARGS_TYPES_1): Likewise.
4605         (LOAD_ARGS_TYPES_2): Likewise.
4606         (LOAD_ARGS_TYPES_3): Likewise.
4607         (LOAD_ARGS_TYPES_4): Likewise.
4608         (LOAD_ARGS_TYPES_5): Likewise.
4609         (LOAD_ARGS_TYPES_6): Likewise.
4610         (LOAD_REGS_TYPES_1): Likewise.
4611         (LOAD_REGS_TYPES_2): Likewise.
4612         (LOAD_REGS_TYPES_3): Likewise.
4613         (LOAD_REGS_TYPES_4): Likewise.
4614         (LOAD_REGS_TYPES_5): Likewise.
4615         (LOAD_REGS_TYPES_6): Likewise.
4616         (TYPEFY): New define.
4617         (ARGIFY): Likewise.
4618         (internal_syscall0): Likewise.
4619         (internal_syscall1): Likewise.
4620         (internal_syscall2): Likewise.
4621         (internal_syscall3): Likewise.
4622         (internal_syscall4): Likewise.
4623         (internal_syscall5): Likewise.
4624         (internal_syscall6): Likewise.
4625         * sysdeps/unix/sysv/linux/x86_64/x32/times.c
4626         (INTERNAL_SYSCALL_NCS): Remove define.
4627         (internal_syscall1): Add define.
4629 2017-08-22  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
4631         * math/w_remainder_compat.c: Remove duplicate inclusion of
4632         math-svid-compat.h.
4633         * math/w_remainderf_compat.c: Likewise.
4634         * math/w_remainderl_compat.c: Likewise.
4636 2017-08-22  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
4638         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
4640 2017-08-22  Joseph Myers  <joseph@codesourcery.com>
4642         [BZ #21684]
4643         * math/tgmath.h (__floating_type): Simplify definitions.
4644         (__real_integer_type): New macro.
4645         (__complex_integer_type): Likewise.
4646         (__expr_is_real): Likewise.
4647         (__tgmath_real_type_sub): Update comment to describe handling of
4648         complex types.
4649         (__tgmath_complex_type_sub): New macro.
4650         (__tgmath_complex_type): Likewise.
4651         [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
4652         (__TGMATH_CF128): Use __expr_is_real.
4653         (__TGMATH_UNARY_REAL_IMAG): Use __tgmath_complex_type and
4654         __expr_is_real.
4655         (__TGMATH_BINARY_REAL_IMAG): Likewise.
4656         (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Use __expr_is_real.
4657         * math/gen-tgmath-tests.py (Type.create_type): Create complex
4658         integer types.
4660 2017-08-22  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4662         * sysdeps/generic/not-cancel.h (sigsuspend_not_cancel): Remove
4663         macro.
4664         * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Remove
4665         alias.
4666         * sysdeps/unix/sysv/linux/not-cancel.h (sigsuspend_not_cancel):
4667         Likewise.
4669         * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Replace
4670         nanosleep_not_cancel with __nanosleep_nocancel.
4671         * sysdeps/generic/not-cancel.h (nanosleep_not_cancel): Remove macro.
4672         (__nanosleep_nocancel): New macro.
4673         * sysdeps/unix/sysv/linux/nanosleep.c (__nanosleep_nocancel): New
4674         function.
4675         * sysdeps/unix/sysv/linux/not-cancel.h (nanosleep_not_cancel): Remove
4676         macro.
4677         (__nanosleep_nocancel): New prototype.
4679         * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full): Replace
4680         pause_not_cancel with __pause_nocancel.
4681         * sysdeps/generic/not-cancel.h (pause_not_cancel): Remove macro.
4682         (__pause_nocancel): New macro.
4683         * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): Remove
4684         macro.
4685         (__pause_nocancel): New prototype.
4686         * sysdeps/unix/sysv/linux/pause.c (__pause_nocancel): New function.
4688 2017-08-22  Martin Sebor  <msebor@redhat.com>
4690         * include/libc-symbols.h (__ifunc_resolver): Declare resolver
4691         to return a pointer to the same type as the target function.
4693 2017-08-22  H.J. Lu  <hongjiu.lu@intel.com>
4695         [BZ #18822]
4696         [BZ #21986]
4697         * include/printf.h (__printf_fphex): Add attribute_hidden.
4698         (__guess_grouping): New prototype.
4699         * stdio-common/printf_fp.c (__guess_grouping): Removed.
4700         * stdio-common/reg-printf.c (__register_printf_specifier): Add
4701         libc_hidden_proto and libc_hidden_def.
4702         * stdlib/strfmon_l.c (__guess_grouping): Removed.
4703         (__vstrfmon_l): Remove the third argument passed to
4704         __guess_grouping.
4706 2017-08-22  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
4708         * math/math.h [defined __cplusplus] (issignaling): Provide a C++
4709         definition for issignaling that does not rely on __MATH_TG,
4710         since __MATH_TG uses __builtin_types_compatible_p, which is only
4711         available in C mode.
4712         (CFLAGS-test-math-issignaling.cc): New variable.
4713         * math/Makefile [CXX] (tests): Add test-math-issignaling.
4714         * math/test-math-issignaling.cc: New test for C++ implementation
4715         of type-generic issignaling.
4716         * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
4717         (CXXFLAGS-test-math-issignaling.cc): Add -mfloat128 to the build
4718         options of test-math-issignaling on powerpc64le.
4720 2017-08-22  H.J. Lu  <hongjiu.lu@intel.com>
4722         * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
4723         building libc.a.
4724         (hidden_proto): Likewise.
4725         (hidden_tls_proto): Likewise.
4726         (__hidden_proto): Likewise.
4728 2017-08-22  Florian Weimer  <fweimer@redhat.com>
4730         math: Statically link tests of internal functionality.
4731         * math/Makefile (tests): Remove atest-exp, atest-sincos,
4732         atest-exp2.
4733         (tests-static): Add atest-exp, atest-sincos, atest-exp2.
4734         (gmp-objs): Remove assignment.
4735         (atest-exp, atest-sincos, atest-exp2): Remove targets.
4737 2017-08-22  Joseph Myers  <joseph@codesourcery.com>
4739         [BZ #21987]
4740         * sysdeps/unix/sysv/linux/sparc/bits/long-double.h: Remove file
4741         and copy to ...
4742         * sysdeps/unix/sysv/linux/sparc/sparc32/bits/long-double.h:
4743         ... here.
4744         * sysdeps/unix/sysv/linux/sparc/sparc64/bits/long-double.h:
4745         ... and here.
4747         * assert/Makefile [$(have-cxx-thread_local)]: Move conditional
4748         variable definitions above inclusion of ../Rules.
4750 2017-08-21  Joseph Myers  <joseph@codesourcery.com>
4752         * sysdeps/ieee754/k_standard.c (__kernel_standard): Add default
4753         case calling __builtin_unreachable.
4755 2017-08-21  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4757         * libio/ioopen.c (_IO_waitpid): Replace waitpid_not_cancel with
4758         __waitpid_nocancel.
4759         * sysdeps/generic/not-cancel.h (waitpid_not_cancel): Remove macro.
4760         (__waitpid_nocancel): New macro.
4761         * sysdeps/unix/sysv/linux/not-cancel.h (waitpid_not_cancel): Remove
4762         macro.
4763         (__waitpid_nocancel): Replace macro with a function.
4764         * sysdeps/unix/sysv/linux/waitpid.c (__waitpid_nocancel): New
4765         function.
4767         * login/utmp_file.c (timeout_handler): Replace fcntl_not_cancel with
4768         __fcntl_nocancel.
4769         * sysdeps/generic/not-cancel.h (fcntl_not_cancel): Remove macro.
4770         * sysdeps/unix/sysv/linux/not-cancel.h (fcntl_not_cancel): Likewise.
4772         * gmon/gmon.c (write_hist): Replace writev_not_cancel_no_status with
4773         __writev_nocancel_nostatus.
4774         (write_call_graph): Likewise.
4775         (write_bb_counts): Likewise.
4776         * resolv/herror.c (herror): Likewise.
4777         * sysdeps/generic/not-cancel.h (writev_not_cancel_no_status): Remove
4778         macro.
4779         (__writev_nocancel_nostatus): New macro.
4780         * sysdeps/unix/sysv/linux/not-cancel.h (writev_not_cancel_no_status):
4781         Remove macro.
4782         (__writev_nocancel_nostatus): New function.
4784 2017-08-21  Joseph Myers  <joseph@codesourcery.com>
4786         Revert:
4787         2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
4789         * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
4790         building libc.a.
4791         (hidden_proto): Likewise.
4792         (hidden_tls_proto): Likewise.
4793         (__hidden_proto): Likewise.
4795         [BZ #21973]
4796         * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Remove file.
4797         * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
4798         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
4799         Likewise.
4800         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat.S:
4801         Likewise.
4802         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
4803         Likewise.
4804         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat.S:
4805         Likewise.
4806         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S : Likewise.
4807         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
4808         * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
4809         * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
4810         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
4811         GLIBC_2.0 sqrtl symbol.
4813         * math/math.h [__USE_MISC] (_LIB_VERSION_TYPE): Remove.
4814         [__USE_MISC] (_LIB_VERSION): Likewise.
4815         [__USE_MISC] (struct exception): Likewise.
4816         [__USE_MISC] (matherr): Likewise.
4817         [__USE_MISC] (DOMAIN): Likewise.
4818         [__USE_MISC] (SING): Likewise.
4819         [__USE_MISC] (OVERFLOW): Likewise.
4820         [__USE_MISC] (UNDERFLOW): Likewise.
4821         [__USE_MISC] (TLOSS): Likewise.
4822         [__USE_MISC] (PLOSS): Likewise.
4823         [__USE_MISC] (HUGE): Likewise.
4824         [__USE_XOPEN] (MAXFLOAT): Define even if [__USE_MISC].
4825         * math/math-svid-compat.h: New file.
4826         * conform/linknamespace.pl (@whitelist): Remove matherr, matherrf
4827         and matherrl.
4828         * include/math.h [!_ISOMAC] (__matherr): Remove.
4829         * manual/arith.texi (FP Exceptions): Do not document matherr.
4830         * math/Makefile (tests): Change test-matherr to test-matherr-3.
4831         (tests-internal): New variable.
4832         (install-lib): Do not add libieee.a.
4833         (non-lib.a): Likewise.
4834         (extra-objs): Do not add libieee.a and ieee-math.o.
4835         (CPPFLAGS-s_lib_version.c): Remove variable.
4836         ($(objpfx)libieee.a): Remove rule.
4837         ($(addprefix $(objpfx), $(tests-internal)): Depend on $(libm).
4838         * math/ieee-math.c: Remove.
4839         * math/libm-test-support.c (matherr): Remove.
4840         * math/test-matherr.c: Use <support/test-driver.c>.  Add copyright
4841         and license notices.  Include <math-svid-compat.h> and
4842         <shlib-compat.h>.
4843         (matherr): Undefine as macro.  Use compat_symbol_reference.
4844         (_LIB_VERSION): Likewise.
4845         * math/test-matherr-2.c: New file.
4846         * math/test-matherr-3.c: Likewise.
4847         * sysdeps/generic/math_private.h (__kernel_standard): Remove
4848         declaration.
4849         (__kernel_standard_f): Likewise.
4850         (__kernel_standard_l): Likewise.
4851         * sysdeps/ieee754/s_lib_version.c: Do not include <math.h> or
4852         <math_private.h>.  Include <math-svid-compat.h>.
4853         (_LIB_VERSION): Undefine as macro.
4854         (_LIB_VERSION_INTERNAL): Always initialize to _POSIX_.  Define
4855         only if [LIBM_SVID_COMPAT || !defined SHARED].  If
4856         [LIBM_SVID_COMPAT], use compat_symbol.
4857         * sysdeps/ieee754/s_matherr.c: Do not include <math.h> or
4858         <math_private.h>.  Include <math-svid-compat.h>.
4859         (matherr): Undefine as macro.
4860         (__matherr): Define only if [LIBM_SVID_COMPAT].  Use
4861         compat_symbol.
4862         * sysdeps/ia64/fpu/libm_error.c: Include <math-svid-compat.h>.
4863         [_LIBC && LIBM_SVID_COMPAT] (matherrf): Use
4864         compat_symbol_reference.
4865         [_LIBC && LIBM_SVID_COMPAT] (matherrl): Likewise.
4866         [_LIBC && !LIBM_SVID_COMPAT] (matherrf): Define as macro.
4867         [_LIBC && !LIBM_SVID_COMPAT] (matherrl): Likewise.
4868         * sysdeps/ia64/fpu/libm_support.h: Include <math-svid-compat.h>.
4869         (MATHERR_D): Remove declaration.
4870         [!_LIBC] (_LIB_VERSION_TYPE): Likewise
4871         [!LIBM_BUILD] (_LIB_VERSIONIMF): Likewise.
4872         [LIBM_BUILD] (pmatherrf): Likewise.
4873         [LIBM_BUILD] (pmatherr): Likewise.
4874         [LIBM_BUILD] (pmatherrl): Likewise.
4875         (DOMAIN): Likewise.
4876         (SING): Likewise.
4877         (OVERFLOW): Likewise.
4878         (UNDERFLOW): Likewise.
4879         (TLOSS): Likewise.
4880         (PLOSS): Likewise.
4881         * sysdeps/ia64/fpu/s_matherrf.c: Include <math-svid-compat.h>.
4882         (__matherrf): Define only if [LIBM_SVID_COMPAT].  Use
4883         compat_symbol.
4884         * sysdeps/ia64/fpu/s_matherrl.c: Include <math-svid-compat.h>.
4885         (__matherrl): Define only if [LIBM_SVID_COMPAT].  Use
4886         compat_symbol.
4887         * math/lgamma-compat.h: Include <math-svid-compat.h>.
4888         * math/w_acos_compat.c: Likewise.
4889         * math/w_acosf_compat.c: Likewise.
4890         * math/w_acosh_compat.c: Likewise.
4891         * math/w_acoshf_compat.c: Likewise.
4892         * math/w_acoshl_compat.c: Likewise.
4893         * math/w_acosl_compat.c: Likewise.
4894         * math/w_asin_compat.c: Likewise.
4895         * math/w_asinf_compat.c: Likewise.
4896         * math/w_asinl_compat.c: Likewise.
4897         * math/w_atan2_compat.c: Likewise.
4898         * math/w_atan2f_compat.c: Likewise.
4899         * math/w_atan2l_compat.c: Likewise.
4900         * math/w_atanh_compat.c: Likewise.
4901         * math/w_atanhf_compat.c: Likewise.
4902         * math/w_atanhl_compat.c: Likewise.
4903         * math/w_cosh_compat.c: Likewise.
4904         * math/w_coshf_compat.c: Likewise.
4905         * math/w_coshl_compat.c: Likewise.
4906         * math/w_exp10_compat.c: Likewise.
4907         * math/w_exp10f_compat.c: Likewise.
4908         * math/w_exp10l_compat.c: Likewise.
4909         * math/w_exp2_compat.c: Likewise.
4910         * math/w_exp2f_compat.c: Likewise.
4911         * math/w_exp2l_compat.c: Likewise.
4912         * math/w_fmod_compat.c: Likewise.
4913         * math/w_fmodf_compat.c: Likewise.
4914         * math/w_fmodl_compat.c: Likewise.
4915         * math/w_hypot_compat.c: Likewise.
4916         * math/w_hypotf_compat.c: Likewise.
4917         * math/w_hypotl_compat.c: Likewise.
4918         * math/w_j0_compat.c: Likewise.
4919         * math/w_j0f_compat.c: Likewise.
4920         * math/w_j0l_compat.c: Likewise.
4921         * math/w_j1_compat.c: Likewise.
4922         * math/w_j1f_compat.c: Likewise.
4923         * math/w_j1l_compat.c: Likewise.
4924         * math/w_jn_compat.c: Likewise.
4925         * math/w_jnf_compat.c: Likewise.
4926         * math/w_jnl_compat.c: Likewise.
4927         * math/w_lgamma_main.c: Likewise.
4928         * math/w_lgamma_r_compat.c: Likewise.
4929         * math/w_lgammaf_main.c: Likewise.
4930         * math/w_lgammaf_r_compat.c: Likewise.
4931         * math/w_lgammal_main.c: Likewise.
4932         * math/w_lgammal_r_compat.c: Likewise.
4933         * math/w_log10_compat.c: Likewise.
4934         * math/w_log10f_compat.c: Likewise.
4935         * math/w_log10l_compat.c: Likewise.
4936         * math/w_log2_compat.c: Likewise.
4937         * math/w_log2f_compat.c: Likewise.
4938         * math/w_log2l_compat.c: Likewise.
4939         * math/w_log_compat.c: Likewise.
4940         * math/w_logf_compat.c: Likewise.
4941         * math/w_logl_compat.c: Likewise.
4942         * math/w_pow_compat.c: Likewise.
4943         * math/w_powf_compat.c: Likewise.
4944         * math/w_powl_compat.c: Likewise.
4945         * math/w_remainder_compat.c: Likewise.
4946         * math/w_remainderf_compat.c: Likewise.
4947         * math/w_remainderl_compat.c: Likewise.
4948         * math/w_scalb_compat.c: Likewise.
4949         * math/w_scalbf_compat.c: Likewise.
4950         * math/w_scalbl_compat.c: Likewise.
4951         * math/w_sinh_compat.c: Likewise.
4952         * math/w_sinhf_compat.c: Likewise.
4953         * math/w_sinhl_compat.c: Likewise.
4954         * math/w_sqrt_compat.c: Likewise.
4955         * math/w_sqrtf_compat.c: Likewise.
4956         * math/w_sqrtl_compat.c: Likewise.
4957         * math/w_tgamma_compat.c: Likewise.
4958         * math/w_tgammaf_compat.c: Likewise.
4959         * math/w_tgammal_compat.c: Likewise.
4960         * sysdeps/ieee754/dbl-64/w_exp_compat.c: Likewise.
4961         * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
4962         * sysdeps/ieee754/k_standard.c: Likewise.
4963         * sysdeps/ieee754/k_standardf.c: Likewise.
4964         * sysdeps/ieee754/k_standardl.c: Likewise.
4965         * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
4966         * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
4967         * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
4968         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
4969         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
4970         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
4971         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
4972         * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Likewise.
4973         * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
4974         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
4975         Likewise.
4976         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
4977         Likewise.
4978         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S: Likewise.
4979         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
4980         * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
4981         * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
4983 2017-08-21  Florian Weimer  <fweimer@redhat.com>
4985         [BZ #21864]
4986         Do not compile benchmark helper objects with -DMODULE_NAME=libc.
4987         * benchtests/Makefile (others-extras): Set to $(bench-extra-objs).
4988         Move before inclusion of ../Rules.
4990 2017-08-21  Florian Weimer  <fweimer@redhat.com>
4992         [BZ #21972]
4993         * assert/assert.h (assert): Use static_cast (bool) for C++.
4994         Use the ternary operator in the warning branch for GNU C.
4995         * assert/Makefile (tests): Add tst-assert-c++, tst-assert-g++.
4996         (CFLAGS-tst-assert-c++.o): Compile in C++11 mode.
4997         (CFLAGS-tst-assert-g++.o): Compile in GnU C++11 mode.
4998         (LDLIBS-tst-assert-c++, LDLIBS-tst-assert-g++): Link with libstdc++.
4999         * assert/tst-assert-c++.cc, assert/tst-assert-g++.cc: New files.
5001 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
5003         [BZ #18822]
5004         * sysdeps/unix/sysv/linux/x86_64/init-first.c
5005         (__syscall_clock_gettime): Add attribute_hidden.
5006         * sysdeps/unix/sysv/linux/x86_64/makecontext.c
5007         (__start_context): Likewise.
5009 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
5011         * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
5012         building libc.a.
5013         (hidden_proto): Likewise.
5014         (hidden_tls_proto): Likewise.
5015         (__hidden_proto): Likewise.
5017 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
5019         * include/libc-symbols.h (attribute_hidden): Enable hidden
5020         visibility in libc.a compiled with PIE.
5022 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
5024         [BZ #18822]
5025         * sysdeps/unix/sysv/linux/x86/libc-vdso.h (VDSO_SYMBOL(getcpu)):
5026         Add attribute_hidden.
5028 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
5030         [BZ #21864]
5031         * Makerules (all-nonlib): Add $(others-extras).
5032         * catgets/Makefile (others-extras): New.
5033         * elf/Makefile (others-extras): Likewise.
5034         * nss/Makefile (others-extras): Likewise.
5036 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
5038         [BZ #18822]
5039         * csu/libc-start.c (__libc_multiple_libcs): Removed.
5040         * elf/dl-open.c: Include <libc-internal.h>.
5041         (__libc_multiple_libcs): Removed.
5042         * elf/dl-sysdep.c: Include <libc-internal.h> instead of
5043         <hp-timing.h>.
5044         * include/libc-internal.h (__libc_multiple_libcs): New.
5045         * misc/sbrk.c: Include <libc-internal.h>.
5046         (__libc_multiple_libcs): Removed.
5048 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
5050         [BZ #18822]
5051         * grp/initgroups.c (__nss_group_database): Removed.
5052         (__nss_initgroups_database): Likewise.
5053         * nscd/gai.c (__nss_hosts_database): Likewise.
5054         * nss/XXX-lookup.c (DATABASE_NAME_SYMBOL): Likewise.
5055         * posix/tst-rfc3484-2.c (__nss_hosts_database): Likewise.
5056         * posix/tst-rfc3484-3.c (__nss_hosts_database): Likewise.
5057         * posix/tst-rfc3484.c (__nss_hosts_database): Likewise.
5058         * sysdeps/posix/getaddrinfo.c (__nss_hosts_database): Likewise.
5059         * nss/getXXent.c (INTERNAL (REENTRANT_GETNAME)): Add
5060         attribute_hidden.
5061         * nss/nsswitch.c (__nss_database_custom): Define only if
5062         USE_NSCD is defined.
5063         (__nss_configure_lookup): Use __nss_database_custom only if
5064         USE_NSCD is defined.
5065         * nss/nsswitch.h (__nss_database_custom): Declare only if
5066         USE_NSCD is defined.  Add attribute_hidden.
5067         (__nss_setent): Add attribute_hidden.
5068         (__nss_endent): Likewise.
5069         (__nss_getent_r): Likewise.
5070         (__nss_getent): Likewise.
5071         (DEFINE_DATABASE): Declare __nss_##arg##_database.
5073 2017-08-20  H.J. Lu  <hongjiu.lu@intel.com>
5075         [BZ #18822]
5076         * sysdeps/unix/sysv/linux/i386/glob64.c (__old_glob64): Add
5077         libc_hidden_proto and libc_hidden_def.
5079 2017-08-20  H.J. Lu  <hongjiu.lu@intel.com>
5081         [BZ #18822]
5082         * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_readdir64):
5083         Add libc_hidden_proto.
5084         * sysdeps/unix/sysv/linux/i386/readdir64.c (__old_readdir64):
5085         Add libc_hidden_def.
5087 2017-08-20  H.J. Lu  <hongjiu.lu@intel.com>
5089         [BZ #21974]
5090         * gmon/Makefile (routines): Remove bb_init_func and
5091         bb_exit_func.
5092         (elide-routines.os): Removed.
5093         * gmon/bb_exit_func.c: Likewise.
5094         * gmon/bb_init_func.c: Likewise.
5095         * include/sys/gmon.h (__bb): Likewise.
5096         (__bb_init_func): Likewise.
5097         (__bb_exit_func): Likewise.
5098         * sysdeps/alpha/bb_init_func.S: Likewise.
5100 2017-08-20  H.J. Lu  <hongjiu.lu@intel.com>
5102         * debug/longjmp_chk.c (____longjmp_chk): Moved to ...
5103         * include/setjmp.h (____longjmp_chk): Here.  Add
5104         attribute_hidden.
5106 2017-08-19  H.J. Lu  <hongjiu.lu@intel.com>
5108         [BZ #18822]
5109         * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE2): Add
5110         attribute_hidden.
5111         (__strspn_sse2): Likewise.
5113 2017-08-18  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
5115         * sysdeps/generic/not-cancel.h (close_not_cancel): Remove macro.
5116         (close_not_cancel_no_status): Likewise.
5117         (__close_nocancel): New macro.
5118         (__close_nocancel_nostatus): Likewise.
5119         * sysdeps/unix/sysv/linux/not-cancel.h (__close_nocancel): Remove
5120         macro.
5121         (close_not_cancel): Likewise.
5122         (close_not_cancel_no_status): Likewise.
5123         (__close_nocancel): New prototype.
5124         (__close_nocancel_nostatus): New function.
5125         * sysdeps/unix/sysv/linux/close.c (__close_nocancel): New function.
5126         * catgets/open_catalog.c (__open_catalog): Replace
5127         close_not_cancel{_no_status) with __close_nocancel{_nostatus}.
5128         * gmon/gmon.c (write_gmon): Likewise.
5129         * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
5130         * intl/loadmsgcat.c (close): Likewise.
5131         * io/ftw.c (open_dir_stream): Likewise.
5132         (ftw_startup): Likewise.
5133         * libio/fileops.c (_IO_file_open): Likewise.
5134         (_IO_file_close_mmap): Likewise.
5135         (_IO_file_close): Likewise.
5136         * libio/iopopen.c (_IO_dup2): Likewise.
5137         * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
5138         * locale/loadlocale.c (_nl_load_locale): Likewise.
5139         * login/utmp_file.c (pututline_file): Likewise.
5140         (endutent_file): Likewise.
5141         * misc/daemon.c (daemon): Likewise.
5142         * nscd/nscd_getai.c (__nscd_getai): Likewise.
5143         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
5144         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
5145         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
5146         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
5147         * nscd/nscd_helper.c (open_socket): Likewise.
5148         (__nscd_open_socket): Likewise.
5149         * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
5150         * nscd/nscd_netgroup.c (__nscd_setnetgrent): Likewise.
5151         (__nscd_innetgr): Likewise.
5152         * nss/nss_db/db-open.c (internal_setent): Likewise.
5153         * resolv/res-close.c (__res_iclose): Likewise.
5154         * sunrpc/pm_getmaps.c (pmap_getmaps): Likewise.
5155         * sysdeps/posix/closedir.c (__closedir): Likewise.
5156         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Likewise.
5157         * sysdeps/posix/getcwd.c (__getcwd): Likewise.
5158         * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
5159         (opendir_tail): Likewise.
5160         * sysdeps/posix/spawni.c (__spawni_child): Likewise.
5161         * sysdeps/unix/sysv/linux/check_native.c (__check_native): Likewise.
5162         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Likewise.
5163         * sysdeps/unix/sysv/linux/fips-private.h (fips_enabled_p): Likewise.
5164         * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
5165         (gethostid): Likewise.
5166         * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
5167         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
5168         Likewise.
5169         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
5170         * sysdeps/unix/sysv/linux/grantpt.c (close_all_fds): Likewise.
5171         * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
5172         * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
5173         Likewise.
5174         * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex): Likewise.
5175         * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps): Likewise.
5176         * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
5177         Likewise.
5178         * sysdeps/unix/sysv/linux/mq_notify.c (init_mq_netlink): Likewise.
5179         * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
5180         Likewise.
5181         * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
5182         Likewise.
5183         * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
5184         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
5185         * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
5186         __close_nocancel.
5188         * sysdeps/generic/not-cancel.h (openat_not_cancel): Remove macro.
5189         (openat_not_cancel_3): Likewise.
5190         (openat64_not_cancel_3): Likewise).
5191         (openat_not_cancel_3): Likewise).
5192         * sysdeps/unix/sysv/linux/not-cancel.h (openat_not_cancel): Remove
5193         macro.
5194         (openat_not_cancel_3): Likewise.
5195         (openat64_not_cancel): Likewise.
5196         (openat64_not_cancel_3): Likewise.
5197         * sysdeps/unix/sysv/linux/openat.c (__openat_nocancel): New function.
5198         * sysdeps/unix/sysv/linux/openat64.c (__openat64_nocancel): Likewise.
5199         * io/ftw.c (open_dir_stream): Replace openat{64}_not_cancel{_3} with
5200         __open{64}_nocancel.
5201         * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
5202         * sysdeps/posix/getcwd.c (__getcwd): Likewise.
5203         * sysdeps/posix/opendir.c (__opendirat): Likewise.
5205 2017-08-18  H.J. Lu  <hongjiu.lu@intel.com>
5207         [BZ #18822]
5208         * include/argz.h (__argz_create_sep): New function prototype.
5209         (__argz_append): Likewise.
5210         (__argz_add): Likewise.
5211         (__argz_add_sep): Likewise.
5212         (__argz_delete): Likewise.
5213         (__argz_insert): Likewise.
5214         (__argz_replace): Likewise.
5215         * string/argz.h (__argz_create_sep): Removed.
5216         (__argz_append): Likewise.
5217         (__argz_add): Likewise.
5218         (__argz_add_sep): Likewise.
5219         (__argz_delete): Likewise.
5220         (__argz_insert): Likewise.
5221         (__argz_replace): Likewise.
5223 2017-08-18  H.J. Lu  <hongjiu.lu@intel.com>
5225         * elf/elf.h (NT_GNU_PROPERTY_TYPE_0): New.
5226         (NOTE_GNU_PROPERTY_SECTION_NAME): Likewise.
5227         (GNU_PROPERTY_STACK_SIZE): Likewie.
5228         (GNU_PROPERTY_NO_COPY_ON_PROTECTED): Likewie.
5229         (GNU_PROPERTY_LOPROC): Likewise.
5230         (GNU_PROPERTY_HIPROC): Likewise.
5231         (GNU_PROPERTY_LOUSER): Likewise.
5232         (GNU_PROPERTY_HIUSER): Likewise.
5233         (GNU_PROPERTY_X86_ISA_1_USED): Likwise.
5234         (GNU_PROPERTY_X86_ISA_1_NEEDED): Likwise.
5235         (GNU_PROPERTY_X86_FEATURE_1_AND): Likwise.
5236         (GNU_PROPERTY_X86_ISA_1_486): Likwise.
5237         (GNU_PROPERTY_X86_ISA_1_586): Likwise.
5238         (GNU_PROPERTY_X86_ISA_1_686): Likwise.
5239         (GNU_PROPERTY_X86_ISA_1_SSE): Likwise.
5240         (GNU_PROPERTY_X86_ISA_1_SSE2): Likwise.
5241         (GNU_PROPERTY_X86_ISA_1_SSE3): Likwise.
5242         (GNU_PROPERTY_X86_ISA_1_SSSE3): Likwise.
5243         (GNU_PROPERTY_X86_ISA_1_SSE4_1): Likwise.
5244         (GNU_PROPERTY_X86_ISA_1_SSE4_2): Likwise.
5245         (GNU_PROPERTY_X86_ISA_1_AVX): Likwise.
5246         (GNU_PROPERTY_X86_ISA_1_AVX2): Likwise.
5247         (GNU_PROPERTY_X86_ISA_1_AVX512F): Likwise.
5248         (GNU_PROPERTY_X86_ISA_1_AVX512CD): Likwise.
5249         (GNU_PROPERTY_X86_ISA_1_AVX512ER): Likwise.
5250         (GNU_PROPERTY_X86_ISA_1_AVX512PF): Likwise.
5251         (GNU_PROPERTY_X86_ISA_1_AVX512VL): Likwise.
5252         (GNU_PROPERTY_X86_ISA_1_AVX512DQ): Likwise.
5253         (GNU_PROPERTY_X86_ISA_1_AVX512BW): Likwise.
5254         (GNU_PROPERTY_X86_FEATURE_1_IBT): Likwise.
5255         (GNU_PROPERTY_X86_FEATURE_1_SHSTK): Likwise.
5257 2017-08-18  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
5259         * misc/sys/cdefs.h (__HAVE_GENERIC_SELECTION): Define to 0, if
5260         in C++ mode.
5262 2017-08-18  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
5264         [BZ #21930]
5265         * math/math.h (isinf): Check if in C or C++ mode before using
5266         __builtin_types_compatible_p, since this is a C mode feature.
5268 2017-08-18  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
5270         * sysdeps/generic/not-cancel.h (write_not_cancel): Remove macro.
5271         (__write_nocancel): New macro.
5272         * sysdeps/unix/sysv/linux/not-cancel.h (__write_nocancel):
5273         Rewrite as a function prototype.
5274         (write_not_cancel): Remove macro.
5275         * sysdeps/unix/sysv/linux/write.c (__write_nocancel): New function.
5276         * gmon/gmon.c (ERR): Replace write_not_cancel with __write_nocancel.
5277         (write_gmon): Likewise.
5278         * libio/fileops.c (_IO_new_file_write): Likewise.
5279         * login/utmp_file.c (pututline_file): Likewise.
5280         (updwtmp_file): Likewise.
5281         * stdio-common/psiginfo.c (psiginfo): Likewise.
5282         * sysdeps/posix/spawni.c (__spawni_child): Likewise.
5283         * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
5284         * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
5285         Likewise.
5286         * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
5287         Likewise.
5289         * sysdeps/generic/not-cancel.h (read_not_cancel): Remove macro.
5290         (__read_nocancel): New macro.
5291         * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
5292         __read_nocancel.
5293         * sysdeps/unix/sysv/linux/not-cancel.h (__read_nocancel): Remove
5294         macro.
5295         (__read_nocancel): New prototype.
5296         * sysdeps/unix/sysv/linux/read.c (__read_nocancel): New function.
5297         * catgets/open_catalog.c (__open_catalog): Replace read_not_cancel
5298         with __read_nocancel.
5299         * intl/loadmsgcat.c (read): Likewise.
5300         * libio/fileops.c (_IO_file_read): Likewise.
5301         * locale/loadlocale.c (_nl_load_locale): Likewise.
5302         * login/utmp_file.c (getutent_r_file): Likewise.
5303         (internal_getut_r): Likewise.
5304         (getutline_r_file): Likewise.
5305         * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
5306         * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
5307         * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
5308         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
5309         Likewise.
5310         * sysdeps/unix/sysv/linux/getsysstats.c (next_line): Likewise.
5311         * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
5312         * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
5313         Likewise.
5314         * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
5315         Likewise.
5316         * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
5317         Likewise.
5318         * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
5319         Likewise.
5320         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
5322 2017-08-18  H.J. Lu  <hongjiu.lu@intel.com>
5324         [BZ #21966]
5325         * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h
5326         (IFUNC_SELECTOR): Don't use the AVX2 version if FMA isn't
5327         usable.
5329 2017-08-17  DJ Delorie  <dj@redhat.com>
5331         * bug17079.c: Update to new test harness.
5332         * test-digits-dots.c: Likewise.
5333         * test-netdb.c: Likewise.
5334         * tst-field.c: Likewise.
5335         * tst-nss-getpwent.c: Likewise.
5336         * tst-nss-static.c: Likewise.
5337         * tst-nss-test1.c: Likewise.
5338         * tst-nss-test2.c: Likewise.
5339         * tst-nss-test3.c: Likewise.
5340         * tst-nss-test4.c: Likewise.
5341         * tst-nss-test5.c: Likewise.
5343 2017-08-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
5345         * sysdeps/generic/not-cancel.h (open_not_cancel): Remove macro.
5346         (open_not_cancel_2): Likewise.
5347         (open_nocancel): New macro.
5348         (open64_nocancel): Likewise.
5349         * sysdeps/unix/sysv/linux/not-cancel.h (open_not_cancel): Remove macro.
5350         (open_not_cancel_2): Likewise.
5351         (__open_nocancel): New prototype.
5352         (__open64_nocancel): Likewise.
5353         * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
5354         __open_nocancel.
5355         * sysdeps/unix/sysv/linux/open.c (__open_nocancel): New function.
5356         * sysdeps/unix/sysv/linux/open64.c (__open64_nocancel): Likewise.
5357         * catgets/open_catalog.c (__open_catalog): Replace open_not_cancel{_2}
5358         with __open_nocancel.
5359         * csu/check_fds.c (check_one_fd): Likewise.
5360         * gmon/gmon.c (write_gmon): Likewise.
5361         * iconv/gconv_cache.c (__gconv_load_cached): Likewise.
5362         * intl/loadmsgcat.c (open): Likewise.
5363         * libio/fileops.c (_IO_file_open): Likewise.
5364         * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
5365         * locale/loadlocale.c (_nl_load_locale): Likewise.
5366         * login/utmp_file.c (setutent_file): Likewise.
5367         * misc/daemon.c (daemon): Likewise.
5368         * nss/nss_db/db-open.c (internal_setent): Likewise.
5369         * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
5370         * sysdeps/posix/libc_fatal.c (__libc_message): Likewise.
5371         * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
5372         (__opendir): Likewise.
5373         * sysdeps/posix/spawni.c (__spawni_child): Likewise.
5374         * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
5375         * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
5376         (gethostid): Likewise.
5377         * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
5378         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
5379         Likewise.
5380         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
5381         * sysdeps/unix/sysv/linux/grantpt.c (__close_all_fds): Likewise.
5382         * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
5383         * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
5384         Likewise.
5385         * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
5386         Likewise.
5387         * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
5388         Likewise.
5389         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c (__get_clockfreq):
5390         Likewise.
5391         * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
5392         Likewise.
5393         * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
5394         Likewise.
5395         * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
5396         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
5398 2017-08-17  Wilco Dijkstra  <wdijkstr@arm.com>
5400         * benchtests/bench-skeleton.c (main): Add support for
5401         latency benchmarking.
5402         * benchtests/scripts/bench.py: Add support for latency benchmarking.
5404 2017-08-17  H.J. Lu  <hongjiu.lu@intel.com>
5406         * Makeconfig (+link-pie-before-libc): Add CRT-* hook to override
5407         the startup object.
5409 2017-08-17  Florian Weimer  <fweimer@redhat.com>
5411         * include/sys/socket.h (__opensock): Remove internal_function.
5412         * socket/opensock.c (__opensock): Likewise.
5413         * sysdeps/unix/sysv/linux/opensock.c (__opensock): Likewise.
5415 2017-08-16  Joseph Myers  <joseph@codesourcery.com>
5417         [BZ #21944]
5418         * signal/bits/types/__sigval_t.h: New file.
5419         * signal/Makefile (headers): Add bits/types/__sigval_t.h.
5420         * signal/bits/types/sigval_t.h: Include <bits/types/__sigval_t.h>
5421         and define sigval_t using __sigval_t.
5422         * include/bits/types/__sigval_t.h: New file.
5423         * bits/types/sigevent_t.h: Include <bits/types/__sigval_t.h>
5424         instead of <bits/types/__sigval_t.h>.
5425         (struct sigevent): Use __sigval_t instead of sigval_t.
5426         * bits/types/siginfo_t.h: Include <bits/types/__sigval_t.h>
5427         instead of <bits/types/__sigval_t.h>.
5428         (siginfo_t): Use __sigval_t instead of sigval_t.
5429         * sysdeps/unix/sysv/linux/bits/types/sigevent_t.h: Include
5430         <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
5431         (struct sigevent): Use __sigval_t instead of sigval_t.
5432         * sysdeps/unix/sysv/linux/bits/types/siginfo_t.h: Include
5433         <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
5434         (siginfo_t): Use __sigval_t instead of sigval_t.
5435         * signal/signal.h [__USE_MISC]: Include <bits/types/sigval_t.h>.
5437 2017-08-16  H.J. Lu  <hongjiu.lu@intel.com>
5439         * NEWS: Remove "[Add new features here]" for 2.27.
5441 2017-08-16  Joseph Myers  <joseph@codesourcery.com>
5443         * sysdeps/unix/sysv/linux/sh/localplt.data: Allow abort in
5444         libc.so.
5446 2017-08-16  H.J. Lu  <hongjiu.lu@intel.com>
5448         * NEWS: Mention x86-64 FMA optimization.
5450 2017-08-16  H.J. Lu  <hongjiu.lu@intel.com>
5452         [BZ #21912]
5453         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
5454         Add e_expf-fma.
5455         * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: New file.
5456         * sysdeps/x86_64/fpu/multiarch/e_expf.c: Likewise.
5457         * sysdeps/x86_64/fpu/multiarch/ifunc-fma.h: Likewise.
5459 2017-08-16  Andreas Schwab  <schwab@suse.de>
5461         [BZ #16750]
5462         CVE-2009-5064
5463         * elf/ldd.bash.in: Never run file directly.
5465 2017-08-15  H.J. Lu  <hongjiu.lu@intel.com>
5467         [BZ #21955]
5468         * sysdeps/x86_64/fpu/e_expf.S (L(SP_RANGE)): Aligned to 8 bytes.
5469         (L(SP_INF_0)): Likewise.
5471 2017-08-15  Florian Weimer  <fweimer@redhat.com>
5473         * gmon/Makefile (tests-special): Add tst-gmon-prof only if
5474         run-built-tests.
5476 2017-08-15  Florian Weimer  <fweimer@redhat.com>
5478         Remove BROKEN_THREAD_SIGNALS support for LinuxThreads.
5479         * sysdeps/pthread/aio_misc.c (__aio_enqueue_request): Remove
5480         BROKEN_THREAD_SIGNALS code.
5481         * sysdeps/ppthread/aio_misc.h (struct waitlist, struct
5482         request_list): Remove caller_pid member used for
5483         BROKEN_THREAD_SIGNALS.
5484         [BROKEN_THREAD_SIGNALS] (__aio_notify_only): Remove declaration.
5485         * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
5486         Remove BROKEN_THREAD_SIGNALS support.
5487         * sysdeps/pthread/aio_suspend.c (aio_suspend): Likewise.
5488         * sysdeps/pthread/lio_listio.c (lio_listio_internal): Likewise.
5490 2017-08-15  Florian Weimer  <fweimer@redhat.com>
5492         * gmon/Makefile (tests): Add tst-gmon.
5493         (CFLAGS-tst-gmon.c, LDFLAGS-tst-gmon, CRT-tst-gmon, tst-gmon-ENV):
5494         Set.
5495         (tests-special): Add tst-gmon-prof.out.
5496         (tst-gmon.out): Depend on clean-tst-gmon-data.
5497         (clean-tst-gmon-data, tst-gmon-gprof.out): New targets.
5498         * gmon/tst-gmon.c, gmon/tst-gmon-gprof.sh: New files.
5499         * Makeconfig (+link-before-libc): Add CRT-* hook to override the
5500         startup object.
5501         * aclocal.m4 (GPROF): Set and substitute.
5502         * config.amke.in (GPROF): Set.
5503         * configure: Regenerate.
5505 2017-08-15  Gustavo Romero  <gromero@linux.vnet.ibm.com>
5507         * elf/elf.h A (NT_PPC_TAR): New macro.
5508         (NT_PPC_PPR): Likewise.
5509         (NT_PPC_DSCR): Likewise.
5510         (NT_PPC_EBB): Likewise.
5511         (NT_PPC_PMU): Likewise.
5512         (NT_PPC_TM_CGPR): Likewise.
5513         (NT_PPC_TM_CFPR): Likewise.
5514         (NT_PPC_TM_CVMX): Likewise.
5515         (NT_PPC_TM_CVSX): Likewise.
5516         (NT_PPC_TM_SPR): Likewise.
5517         (NT_PPC_TM_CTAR): Likewise.
5518         (NT_PPC_TM_CPPR): Likewise.
5519         (NT_PPC_TM_CDSCR): Likewise.
5521 2017-08-15  Florian Weimer  <fweimer@redhat.com>
5523         * sysdeps/i386/machine-gmon.h (mcount_internal): Declare with
5524         regparm (2) instead of internal_function.
5525         (_MCOUNT_DECL): Adjust.
5527 2017-08-15  Stefan Liebler  <stli@linux.vnet.ibm.com>
5529         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add z14.
5530         * sysdeps/s390/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increased.
5532 2017-08-14  Joseph Myers  <joseph@codesourcery.com>
5534         * conform/data/sys/wait.h-data (si_value): Do not expect for
5535         XPG42.
5537 2017-08-14  Florian Weimer  <fweimer@redhat.com>
5539         [BZ #21962]
5540         NSS: Create stubs for accidentally exported lookup functions.
5541         * grp/initgroups.c (__nss_group_lookup, __nss_lookup_function):
5542         Remove declaration.
5543         * inet/ether_hton.c (__nss_ethers_lookup): Likewise.
5544         (ether_hostton): Call __nss_ethers_lookup2 instead.
5545         * inet/ether_ntoh.c (__nss_ethers_lookup): Remove declaration.
5546         (ether_ntohost): Call __nss_ethers_lookup2 instead.
5547         * inet/getnetgrent_r.c (__nss_netgroup_lookup): Remove declaration.
5548         (setup): Call __nss_netgroup_lookup2 instead.
5549         * nss/Makefile (routines): Add compat-lookup.
5550         * nss/Versions (GLIBC_2.27): Add symbol version.
5551         * nss/XXX-lookup (DB_LOOKUP_FCT): Remove declaration.  Now provided by <nsswitch.h>.
5552         (DB_COMPAT_FCT): Remove.
5553         * nss/compat-lookup.c: New file.
5554         * nss/nsswitch.h: Generate __nss_*_lookup2 function prototypes
5555         from databases.def.
5556         * nss/service-lookup.c (NO_COMPAT): Remove definition.
5557         * sunrpc/netname.c (__nss_publickey_lookup): Remove declaration.
5558         (netname2user): Call __nss_publickey_lookup2 instead.
5559         * sunrpc/publickey.c (__nss_publickey_lookup): Remove declaration.
5560         (getpublickey, getsecretkey): Call __nss_publickey_lookup2
5561         instead.
5563 2017-08-14  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
5564             Sergei Trofimovich  <slyfox@inbox.ru>
5566         [BZ #21908]
5567         * sysdeps/unix/sysv/linux/m68k/mmap_internal.h (MMAP2_PAGE_SHIFT):
5568         Rename to MMAP2_PAGE_UNIT.
5569         * sysdeps/unix/sysv/linux/mmap.c: Include mmap_internal iff
5570         __OFF_T_MATCHES_OFF64_T is not defined.
5571         * sysdeps/unix/sysv/linux/mmap_internal.h (page_unit): Declare as
5572         uint64_t.
5573         (MMAP2_PAGE_UNIT) [MMAP2_PAGE_UNIT == -1]: Redefine to page_unit.
5574         (page_unit) [MMAP2_PAGE_UNIT != -1]: Remove definition.
5576 2017-08-14  Florian Weimer  <fweimer@redhat.com>
5578         i386: Do not set internal_function.
5579         * config.h.in (USE_REGPARMS, internal_function): Remove.
5580         * sysdeps/i386/configure.ac (USE_REGPARMS): Likewise.
5581         * sysdeps/i386/configure (USE_REGPARMS): Likewise.
5583 2017-08-14  Florian Weimer  <fweimer@redhat.com>
5585         * elf/dl-init.c (_dl_init): Remove internal_function.
5586         * sysdeps/generic/ldsodefs.h (_dl_init): Likewise.
5587         * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to _dl_init.
5589 2017-08-14  Florian Weimer  <fweimer@redhat.com>
5591         * elf/rtld.c (_dl_start): Remove internal_function.
5592         * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to
5593         _dl_start.
5595 2017-08-14  Florian Weimer  <fweimer@redhat.com>
5597         * elf/dl-fini.c (_dl_fini): Remove internal_function
5598         * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
5600 2017-08-14  H.J. Lu  <hongjiu.lu@intel.com>
5602         * sysdeps/x86/cpu-features.h (bit_cpu_BIT): New.
5603         (bit_cpu_SHSTK): Likewise.
5604         (index_cpu_IBT): Likewise.
5605         (index_cpu_SHSTK): Likewise.
5606         (reg_IBT): Likewise.
5607         (reg_SHSTK): Likewise.
5608         * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
5609         Handle index_cpu_IBT and index_cpu_SHSTK.
5611 2017-08-14  Mike FABIAN  <mfabian@redhat.com>
5613         [BZ #19982]
5614         * po/fr.po: Fix spelling mistake.
5616 2017-08-13  Florian Weimer  <fweimer@redhat.com>
5618         * elf/dl-addr.c (_dl_addr): Remove internal_function.
5619         * elf/dl-error-skeleton.c (_dl_signal_error, _dl_signal_cerror)
5620         (_dl_catch_error, _dl_receive_error): Likewise.
5621         * elf/dl-open.c (_dl_find_dso_for_object): Likewise.
5622         * elf/dl-tls.c (_dl_allocate_tls_init, _dl_allocate_tls)
5623         (_dl_deallocate_tls): Likewise.
5624         * include/dlfcn.h (_dl_addr): Likewise.
5625         * sysdeps/generic/ldsodefs.h (_dl_signal_error, _dl_signal_cerror)
5626         (_dl_catch_error, _dl_receive_error, _dl_find_dso_for_object)
5627         (_dl_allocate_tls_init, _dl_allocate_tls, _dl_deallocate_tls):
5628         Likewise.
5630 2017-08-13  Florian Weimer  <fweimer@redhat.com>
5632         * include/stdlib.h: (__strtof_nan, __strtod_nan, __strtold_nan)
5633         (__wcstof_nan, __wcstod_nan, __wcstold_nan): Remove
5634         internal_function.
5635         * stdlib/sttod_nan_main.c (STRTOD_NAN): Likewise.
5637 2017-08-13  Florian Weimer  <fweimer@redhat.com>
5639         * elf/dl-support.c (_dl_make_stack_executable_hook): Remove
5640         internal_function.
5641         * nptl/allocatestack.c (__make_stacks_executable): Likewise.
5642         * nptl/pthreadP.h (__make_stacks_executable): Likewise.
5643         * sysdeps/generic/ldsodefs.h (_rtld_global): Remove
5644         internal_function from _dl_make_stack_executable_hook member.
5645         (_dl_make_stack_executable): Remove internal_function.
5646         * sysdeps/mach/hurd/dl-execstack.c (_dl_make_stack_executable):
5647         Likewise.
5648         * sysdeps/unix/sysv/linux/dl-execstack.c
5649         (_dl_make_stack_executable): Likewise.
5651 2017-08-13  Florian Weimer  <fweimer@redhat.com>
5653         * sysdeps/unix/sysv/linux/netlinkaccess.h
5654         (__netlink_assert_response): Remove internal_function.
5655         * sysdeps/unix/sysv/linux/netlink_assert_response.c
5656         (__netlink_assert_response): Likewise.
5658 2017-08-13  Florian Weimer  <fweimer@redhat.com>
5660         * include/rpc/pmap_clnt.h (__libc_rpc_getport): Remove
5661         internal_function.
5662         * sunrpoc/pm_getport.c (__libc_rpc_getport): Likewise.
5664 2017-08-13  Florian Weimer  <fweimer@redhat.com>
5666         * grp/grp-merge.h (__copy_grp, __merge_grp): Remove
5667         internal_function.
5668         * grp/grp-merge.c (__copy_grp, __merge_grp): Likewise.
5669         * inet/netgroup.h (__internal_setnetgrent)
5670         (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
5671         * inet/getnetgrent_r.c (__internal_setnetgrent)
5672         (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
5673         * nss/XXX-lookup.c (DB_LOOKUP_FCT, DB_COMPAT_FCT): Likewise.
5674         * nss/getXXbyYY_r.c (DB_LOOKUP_FCT): Likewise.
5675         * nss/getXXent_r.c (DB_LOOKUP_FCT): Likewise.
5676         * nss/nsswitch.h (db_lookup_function): Likewise.
5678 2017-08-13  Florian Weimer  <fweimer@redhat.com>
5680         * debug/fortify_fail.c (__fortify_fail, __fortify_fail_abort):
5681         Remove internal_function.
5682         * include/stdio.h (__fortify_fail, __fortify_fail_abort): Likewise.
5683         * sysdeps/mach/hurd/i386/____longjmp_chk.S (CALL_FAIL): Pass
5684         message argument on the stack.
5685         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S (CALL_FAIL):
5686         Likeweise.
5688 2017-08-12  Mike FABIAN  <mfabian@redhat.com>
5690         Adapt test case data to the changes in the thousands
5691         separators.
5693         [BZ #20756]
5694         * localedata/tst-langinfo.sh: Adapt test case data.
5695         * stdlib/tst-strfmon_l.c: Likewise.
5696         * stdlib/tst-strtod4.c: Likewise.
5697         * stdlib/tst-strtod5i.c: Likewise.
5699 2017-08-11  Florian Weimer  <fweimer@redhat.com>
5701         [BZ #21242]
5702         * assert/assert.h [__GNUC__ && !__STRICT_ANSI__] (assert):
5703         Suppress pedantic warning resulting from statement expression.
5704         (__ASSERT_FUNCTION): Add missing __extension__.
5706 2017-08-11  Siddhesh Poyarekar  <siddhesh@sourceware.org>
5708         * benchtests/bench-memmove-large.c: Print output in JSON
5709         format.
5710         * benchtests/bench-memmove.c: Likewise.
5712         * benchtests/bench-memccpy.c (do_one_test): Remove checks.
5713         * benchtests/bench-memchr.c (do_one_test): Likewise.
5714         * benchtests/bench-memcpy-large.c (do_one_test): Likewise.
5715         * benchtests/bench-memcpy.c (do_one_test): Likewise.
5716         * benchtests/bench-memmove-large.c (do_one_test): Likewise.
5717         * benchtests/bench-memmove.c (do_one_test): Likewise.
5718         * benchtests/bench-memset-large.c (do_one_test): Likewise.
5719         * benchtests/bench-memset.c (do_one_test): Likewise.
5720         * benchtests/bench-string.h (test_init): Remove memsets.
5722 2017-08-10  Rical Jasan  <ricaljasan@pacific.net>
5724         * manual/lang.texi
5725         (Computing the Width of an Integer Data Type): Rename section to
5726         "Width of an Integer Type".  Remove inaccurate statement regarding
5727         lack of C language facilities for determining width of integer
5728         types, and reorder content to improve flow and context of
5729         discussion.
5731 2017-08-10  Rical Jasan  <ricaljasan@pacific.net>
5733         * lang.texi (va_copy): Change standard from ISO to C99.
5734         (__va_copy): Add standard and header annotation.
5735         Update description for clarity of origins and current use.
5737 2017-08-10  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
5739         [BZ #21941]
5740         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrtf128): Since
5741         xssqrtqp requires operands to be in Vector Registers
5742         (Altivec/VMX), replace the register constraint 'wq' with 'v'.
5743         * sysdeps/powerpc/powerpc64le/power9/fpu/e_sqrtf128.c
5744         (__ieee754_sqrtf128): Likewise.
5746 2017-08-10  Wilco Dijkstra  <wdijkstr@arm.com>
5748         * sysdeps/aarch64/memcmp.S (memcmp):
5749         Rewrite of optimized memcmp.
5751 2017-08-10  Florian Weimer  <fweimer@redhat.com>
5753         Introduce ld.so exceptions.
5754         * sysdeps/generic/ldsodefs.h (struct dl_exception): Define.
5755         (_dl_exception_create, _dl_exception_create_format)
5756         (_dl_exception_free, _dl_signal_exception, _dl_signal_cexception)
5757         (_dl_catch_exception): Declare.
5758         (_dl_catch_error): Update comment.
5759         * elf/dl-error-skeleton.c (struct catch): Replace objname,
5760         errstring, malloced members with exception member.
5761         (_dl_out_of_memory): Remove.
5762         (fatal_error): New function, extracted from _dl_signal_error.
5763         (_dl_signal_exception, _dl_signal_cexception): New functions.
5764         (_dl_signal_error): Call _dl_exception_create to allocate an
5765         exception object.
5766         (_dl_catch_exception): New function, based on _dl_catch_error.
5767         (_dl_catch_error): Implement using _dl_catch_exception.
5768         * elf/dl-exception.c: New file.
5769         * elf/Makefile (dl-routines): Add dl-exception.
5770         (elide-routines.os): Likewise.
5771         * elf/Version (ld/GLIBC_PRIVATE): Add _dl_exception_create,
5772         _dl_exception_create_format, _dl_exception_free.
5773         * elf/dl-deps.c (_dl_map_object_deps): Use _dl_catch_exception and
5774         _dl_signal_exception.
5775         * elf/dl-lookup.c (make_string): Remove.
5776         (_dl_lookup_symbol_x): Use _dl_exception_create_format,
5777         _dl_signal_cexception, _dl_exception_free.
5778         * elf/dl-open.c (_dl_open): Use _dl_catch_exception and
5779         _dl_signal_exception.
5780         * elf/dl-sym.c (do_sym): Likewise.
5781         * elf/dl-version.c (make_string): Remove.
5782         (match_symbol): Use _dl_exception_create_format,
5783         _dl_signal_cexception, _dl_exception_free.
5784         (_dl_check_map_versions): Likewise.
5785         * sysdeps/generic/localplt.data (ld.so): Add _dl_signal_exception,
5786         _dl_catch_exception.
5787         * sysdeps/unix/sysv/linux/aarch64/localplt.data (ld.so): Likewise.
5788         * sysdeps/unix/sysv/linux/alpha/localplt.data (ld.so): Likewise.
5789         * sysdeps/unix/sysv/linux/arm/localplt.data (ld.so): Likewise.
5790         * sysdeps/unix/sysv/linux/hppa/localplt.data (ld.so): Likewise.
5791         * sysdeps/unix/sysv/linux/i386/localplt.data (ld.so): Likewise.
5792         * sysdeps/unix/sysv/linux/ia64/localplt.data (ld.so): Likewise.
5793         * sysdeps/unix/sysv/linux/m68k/localplt.data (ld.so): Likewise.
5794         * sysdeps/unix/sysv/linux/microblaze/localplt.data (ld.so):
5795         Likewise.
5796         * sysdeps/unix/sysv/linux/nios2/localplt.data (ld.so): Likewise.
5797         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data
5798         (ld.so): Likewise.
5799         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data
5800         (ld.so): Likewise.
5801         * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data (ld.so):
5802         Likewise.
5803         * sysdeps/unix/sysv/linux/s390/localplt.data (ld.so): Likewise.
5804         * sysdeps/unix/sysv/linux/sh/localplt.data (ld.so): Likewise.
5805         * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data (ld.so):
5806         Likewise.
5807         * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data (ld.so):
5808         Likewise.
5809         * sysdeps/x86_64/localplt.data (ld.so): Likewise.
5811 2017-08-10  Florian Weimer  <fweimer@redhat.com>
5813         * inet/net-internal.h (__inet6_scopeid_pton): Remove
5814         attribute_hidden, internal_function.
5815         * inet/inet6_scopeid_pton.c (__inet6_scopeid_pton): Remove
5816         internal_function.
5818 2017-08-10  Florian Weimer  <fweimer@redhat.com>
5820         * malloc/malloc.c (get_max_fast): Reimplement as an inline
5821         function which calls __builtin_unreachable.
5823 2017-08-10  Mike FABIAN  <mfabian@redhat.com>
5825         * stdlib/tst-strfmon_l.c: Fix test cases to agree with the changes in
5826         Indian monetary formatting
5827         * stdlib/Makefile: Adapt list of locales needed for the tst-strfmon_l.c
5828         test cases.
5830 2017-08-09  Dmitry V. Levin  <ldv@altlinux.org>
5832         * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (enum __ptrace_request):
5833         Fix typo in comment.
5835         [BZ #21928]
5836         * sysdeps/unix/sysv/linux/sys/ptrace.h (enum __ptrace_flags,
5837         PTRACE_SEIZE_DEVEL): Remove.
5838         * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Likewise.
5839         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
5840         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
5841         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
5842         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
5844 2017-08-09  Joseph Myers  <joseph@codesourcery.com>
5846         * posix/bits/types.h (__qaddr_t): Remove.
5848         [BZ #21457]
5849         * sysdeps/arm/sys/ucontext.h (__ctx): Move undefine further down.
5850         (ucontext_t): Use __ctx with uc_flags.  Rename uc_filler to
5851         __glibc_reserved1.
5852         * sysdeps/generic/sys/ucontext.h (__ctx): New macro.
5853         (ucontext_t): Use __ctx with uc_flags.
5854         * sysdeps/i386/sys/ucontext.h (__ctx): Move undefine further down.
5855         (__ctxt): Likewise.
5856         (ucontext_t): Use __ctx with uc_flags.  Rename uc_filler to
5857         __glibc_reserved1.
5858         * sysdeps/m68k/sys/ucontext.h (__ctx): Move undefine further down.
5859         (ucontext_t): Use __ctx with uc_flags.  Rename uc_filler to
5860         __glibc_reserved1.
5861         * sysdeps/mips/sys/ucontext.h (__ctx): Move undefine further down.
5862         (ucontext_t): Use __ctx with uc_flags.  Rename uc_filler to
5863         __glibc_reserved1.
5864         * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (__ctx): New
5865         macro.
5866         (ucontext_t): Use __ctx with uc_flags.
5867         * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h (__ctx): New macro.
5868         (ucontext_t): Use __ctx with uc_flags.
5869         * sysdeps/unix/sysv/linux/arm/sys/ucontext.h (__ctx): New macro.
5870         (ucontext_t): Use __ctx with uc_flags and uc_regspace.
5871         * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h (__ctx): New macro.
5872         (ucontext_t): Use __ctx with uc_flags.
5873         * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h (__ctx): Move
5874         undefine further down.
5875         (ucontext_t): Use __ctx with uc_flags.  Rename uc_filler to
5876         __glibc_reserved1.
5877         * sysdeps/unix/sysv/linux/mips/sys/ucontext.h (__ctx): Move
5878         undefine further down.
5879         (ucontext_t): Use __ctx with uc_flags.
5880         * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h (__ctx): Move
5881         undefine further down.
5882         (ucontext_t): Use __ctx with uc_flags.
5883         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (ucontext_t): Use
5884         __ctx with uc_flags, uc_regs_ptr, uc_regs and uc_reg_space.
5885         Rename uc_pad to __glibc_reserved1.
5886         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__ctx): Move
5887         undefine further down.
5888         (ucontext_t): Use __ctx with uc_flags.
5889         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h (__ctx): Move undefine
5890         further down.
5891         (ucontext_t): Use __ctx with uc_flags.
5892         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (ucontext_t): Use
5893         __ctx with uc_flags.
5894         * sysdeps/unix/sysv/linux/tile/sys/ucontext.h (__ctx): New macro.
5895         (ucontext_t): Use __ctx with uc_flags.
5896         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h (ucontext_t): Use
5897         __ctx with uc_flags.
5899 2017-08-09  Florian Weimer  <fweimer@redhat.com>
5901         [BZ #21932]
5902         * nss/getXXbyYY_r.c (REENTRANT_NAME): Call __resolv_context_put
5903         before early return.
5905 2017-08-09  Andreas Schwab  <schwab@suse.de>
5907         [BZ #21041]
5908         * sysdeps/unix/sysv/linux/s390/pt-longjmp.c: Update reference to
5909         renamed alias.
5911         [BZ #21041]
5912         * nptl/Makefile (tests) [$(build-shared) = yes]: Add
5913         tst-compat-forwarder.
5914         (modules-names): Add tst-compat-forwarder-mod.
5915         ($(objpfx)tst-compat-forwarder): Depend on
5916         $(objpfx)tst-compat-forwarder-mod.so.
5917         * nptl/tst-compat-forwarder.c: New file.
5918         * nptl/tst-compat-forwarder-mod.c: New file.
5920 2017-08-09  Siddhesh Poyarekar  <siddhesh@sourceware.org>
5922         * sysdeps/aarch64/multiarch/memcpy_falkor.S: Fix code style in
5923         comments.
5925         * manual/tunables.texi (Tunable glibc.tune.cpu): Add falkor.
5926         * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
5927         memcpy_falkor.
5928         * sysdeps/aarch64/multiarch/ifunc-impl-list.c (MAX_IFUNC):
5929         Bump.
5930         (__libc_ifunc_impl_list): Add __memcpy_falkor.
5931         * sysdeps/aarch64/multiarch/memcpy.c: Likewise.
5932         * sysdeps/aarch64/multiarch/memcpy_falkor.S: New file.
5933         * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
5934         Add falkor.
5935         * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_FALKOR):
5936         New macro.
5938 2017-08-08  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
5940         [BZ #759]
5941         * manual/setjmp.texi (getcontex): Document uc_stack value
5942         compatibility differences.
5944 2017-08-08  Joseph Myers  <joseph@codesourcery.com>
5946         * malloc/mcheck.c (old_free_hook): Use void * instead of __ptr_t.
5947         (old_malloc_hook): Likewise.
5948         (old_memalign_hook): Likewise.
5949         (old_realloc_hook): Likewise.
5950         (struct hdr): Likewise.
5951         (flood): Likewise.
5952         (freehook): Likewise.
5953         (mallochook): Likewise.
5954         (memalignhook): Likewise.
5955         (reallochook): Likewise.
5956         (mprobe): Likewise.
5957         * malloc/mtrace.c (mallwatch): Likewise.
5958         (tr_old_free_hook): Likewise.
5959         (tr_old_malloc_hook): Likewise.
5960         (tr_old_realloc_hook): Likewise.
5961         (tr_old_memalign_hook): Likewise.
5962         (tr_where): Likewise.
5963         (lock_and_info): Likewise.
5964         (tr_freehook): Likewise.
5965         (tr_mallochook): Likewise.
5966         (tr_reallochook): Likewise.
5967         (tr_memalignhook): Likewise.
5968         * misc/err.h [!__GNUC_VA_LIST] (__gnuc_va_list): Likewise.
5969         * misc/mmap.c (__mmap): Likewise.
5970         * misc/mmap64.c (__mmap64): Likewise.
5971         * misc/mprotect.c (__mprotect): Likewise.
5972         * misc/msync.c (msync): Likewise.
5973         * misc/munmap.c (__munmap): Likewise.
5974         * posix/posix_madvise.c (posix_madvise): Likewise.
5975         * socket/send.c (__send): Likewise.
5976         * socket/sendto.c (__sendto): Likewise.
5977         * socket/setsockopt.c (__setsockopt): Likewise.
5978         * string/memcmp.c (__ptr_t): Remove macro.
5979         (MEMCMP): Use void * instead of ptr_t.
5980         * string/memrchr.c (__ptr_t): Remove macro.
5981         (__memrchr): Use void * instead of ptr_t.
5982         * sysdeps/mach/hurd/dl-sysdep.c (__mmap): Likewise.
5983         * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
5984         * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
5985         * sysdeps/mach/mprotect.c (__mprotect): Likewise.
5986         * sysdeps/mach/msync.c (msync): Likewise.
5987         * sysdeps/mach/munmap.c (__munmap): Likewise.
5988         * sysdeps/mips/bits/setjmp.h (struct __jmp_buf_internal_tag):
5989         Likewise.
5990         * sysdeps/posix/getcwd.c (__getcwd): Likewise.
5991         * sysdeps/powerpc/powerpc32/memset.S (memset): Likewise.
5992         * sysdeps/powerpc/powerpc32/power4/memcpy.S (memcpy): Likewise.
5993         * sysdeps/powerpc/powerpc32/power4/memset.S (memset): Likewise.
5994         * sysdeps/powerpc/powerpc32/power6/memcpy.S (memcpy): Likewise.
5995         * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
5996         * sysdeps/powerpc/powerpc32/power7/memcpy.S (memcpy): Likewise.
5997         * sysdeps/powerpc/powerpc32/power7/mempcpy.S (__mempcpy):
5998         Likewise.
5999         * sysdeps/powerpc/powerpc32/power7/memset.S (memset): Likewise.
6000         * sysdeps/powerpc/powerpc64/memcpy.S (memcpy): Likewise.
6001         * sysdeps/powerpc/powerpc64/memset.S (memset): Likewise.
6002         * sysdeps/powerpc/powerpc64/power4/memcpy.S (memcpy): Likewise.
6003         * sysdeps/powerpc/powerpc64/power4/memset.S (memset): Likewise.
6004         * sysdeps/powerpc/powerpc64/power6/memcpy.S (memcpy): Likewise.
6005         * sysdeps/powerpc/powerpc64/power6/memset.S (memset): Likewise.
6006         * sysdeps/powerpc/powerpc64/power7/memcpy.S (memcpy): Likewise.
6007         * sysdeps/powerpc/powerpc64/power7/mempcpy.S (__mempcpy):
6008         Likewise.
6009         * sysdeps/powerpc/powerpc64/power7/memset.S (memset): Likewise.
6010         * sysdeps/powerpc/powerpc64/power8/memset.S (memset): Likewise.
6011         * sysdeps/tile/memcmp.c (__ptr_t): Remove macro.
6012         (MEMCMP): Use void * instead of ptr_t.
6013         * sysdeps/unix/sysv/linux/alpha/oldglob.c (old_glob_t): Likewise.
6014         * sysdeps/unix/sysv/linux/mmap.c (__mmap): Likewise.
6016 2017-08-08  Florian Weimer  <fweimer@redhat.com>
6018         * sysdeps/posix/getaddrinfo.c (gaih_inet): Remove unreachable
6019         return statement.
6021 2017-08-08  H.J. Lu  <hongjiu.lu@intel.com>
6023         [BZ #21913]
6024         * csu/libc-tls.c: Include <startup.h> first.
6025         (__libc_setup_tls): Call _startup_fatal instead of __libc_fatal.
6026         * elf/dl-tunables.c: Include <startup.h> first.
6027         * include/libc-symbols.h (BUILD_PIE_DEFAULT): New.
6028         * sysdeps/generic/startup.h: New file.
6029         * sysdeps/unix/sysv/linux/i386/startup.h: Likewise.
6030         * sysdeps/unix/sysv/linux/i386/brk.c [BUILD_PIE_DEFAULT != 0]
6031         (I386_USE_SYSENTER): New.  Defined to 0.
6033 2017-08-08  Andreas Schwab  <schwab@suse.de>
6035         [BZ #21041]
6036         * nptl/pt-longjmp.c (longjmp, siglongjmp): Don't use IFUNC resolver.
6037         * nptl/pt-system.c (system): Likewise.
6039 2017-08-07  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6041         [BZ #21780]
6042         * sysdeps/posix/preadv2.c (preadv2): Use ENOTSUP instead of
6043         EOPNOTSUPP.
6044         * sysdeps/posix/preadv64v2.c (preadv64v2): Likewise.
6045         * sysdeps/posix/pwritev2.c (pwritev2): Likewise.
6046         * sysdeps/posix/pwritev64v2.c (pwritev64v2): Likewise.
6047         * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Likewise.
6048         * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
6049         * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
6050         * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likewise.
6052 2017-08-07  Joseph Myers  <joseph@codesourcery.com>
6054         [BZ #21899]
6055         * bits/sigaction.h (struct sigaction): Define sa_handler and
6056         sa_sigaction using union also for [__USE_XOPEN_EXTENDED].
6057         (SA_ONSTACK): Change [__USE_UNIX98] condition to
6058         [__USE_XOPEN_EXTENDED].
6059         (SA_RESTART): Likewise.
6060         (SA_NODEFER): Likewise.
6061         (SA_RESETHAND): Likewise.
6062         * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h
6063         (struct sigaction): Define sa_handler and sa_sigaction using union
6064         also for [__USE_XOPEN_EXTENDED].
6065         (SA_ONSTACK): Change [__USE_UNIX98] condition to
6066         [__USE_XOPEN_EXTENDED].
6067         (SA_RESTART): Likewise.
6068         (SA_NODEFER): Likewise.
6069         (SA_RESETHAND): Likewise.
6070         * sysdeps/unix/sysv/linux/bits/sigaction.h
6071         (struct sigaction): Define sa_handler and sa_sigaction using union
6072         also for [__USE_XOPEN_EXTENDED].
6073         (SA_ONSTACK): Change [__USE_UNIX98] condition to
6074         [__USE_XOPEN_EXTENDED].
6075         (SA_RESTART): Likewise.
6076         (SA_NODEFER): Likewise.
6077         (SA_RESETHAND): Likewise.
6078         * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h
6079         (struct sigaction): Define sa_handler and sa_sigaction using union
6080         also for [__USE_XOPEN_EXTENDED].
6081         (SA_ONSTACK): Change [__USE_UNIX98] condition to
6082         [__USE_XOPEN_EXTENDED].
6083         (SA_RESTART): Likewise.
6084         (SA_NODEFER): Likewise.
6085         (SA_RESETHAND): Likewise.
6086         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h
6087         (struct sigaction): Define sa_handler and sa_sigaction using union
6088         also for [__USE_XOPEN_EXTENDED].
6089         (SA_ONSTACK): Change [__USE_UNIX98] condition to
6090         [__USE_XOPEN_EXTENDED].
6091         (SA_RESTART): Likewise.
6092         (SA_NODEFER): Likewise.
6093         (SA_RESETHAND): Likewise.
6094         * sysdeps/unix/sysv/linux/mips/bits/sigaction.h
6095         (struct sigaction): Define sa_handler and sa_sigaction using union
6096         also for [__USE_XOPEN_EXTENDED].
6097         (SA_ONSTACK): Change [__USE_UNIX98] condition to
6098         [__USE_XOPEN_EXTENDED].
6099         (SA_RESTART): Likewise.
6100         (SA_NODEFER): Likewise.
6101         (SA_RESETHAND): Likewise.
6102         * sysdeps/unix/sysv/linux/s390/bits/sigaction.h
6103         (struct sigaction): Define sa_handler and sa_sigaction using union
6104         also for [__USE_XOPEN_EXTENDED].
6105         (SA_ONSTACK): Change [__USE_UNIX98] condition to
6106         [__USE_XOPEN_EXTENDED].
6107         (SA_RESTART): Likewise.
6108         (SA_NODEFER): Likewise.
6109         (SA_RESETHAND): Likewise.
6110         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h
6111         (struct sigaction): Define sa_handler and sa_sigaction using union
6112         also for [__USE_XOPEN_EXTENDED].
6113         (SA_ONSTACK): Change [__USE_UNIX98] condition to
6114         [__USE_XOPEN_EXTENDED].
6115         (SA_RESTART): Likewise.
6116         (SA_NODEFER): Likewise.  Define directly rather than as alias.
6117         (SA_RESETHAND): Likewise.
6118         (SA_INTERRUPT): Define only for [__USE_MISC].
6119         (SA_NOMASK): Define as alias of SA_NODEFER, only for [__USE_MISC].
6120         (SA_ONESHOT): Define as alias of SA_RESETHAND, only for
6121         [__USE_MISC].
6122         (SA_STACK): Define only for [__USE_MISC].
6123         * sysdeps/unix/sysv/linux/tile/bits/sigaction.h
6124         (struct sigaction): Define sa_handler and sa_sigaction using union
6125         also for [__USE_XOPEN_EXTENDED].
6126         (SA_ONSTACK): Change [__USE_UNIX98] condition to
6127         [__USE_XOPEN_EXTENDED].
6128         (SA_RESTART): Likewise.
6129         (SA_NODEFER): Likewise.
6130         (SA_RESETHAND): Likewise.
6131         (SA_NOPTRACE): Define only for [__USE_MISC].
6133         * catgets/catgets.c (catgets): Use uintN_t instead of u_intN_t.
6134         * catgets/catgetsinfo.h (struct catalog_obj): Likewise.
6135         (struct catalog_info): Likewise.
6136         * inet/htontest.c (lo): Likewise.
6137         (foo): Likewise.
6138         * inet/inet_lnaof.c (inet_lnaof): Likewise.
6139         * inet/inet_net.c (inet_network): Likewise.
6140         * inet/inet_netof.c (inet_netof): Likewise.
6141         * inet/rcmd.c (__ivaliduser): Likewise.
6142         (iruserok): Likewise.
6143         * locale/loadlocale.c (_nl_intern_locale_data): Likewise.
6144         * locale/programs/locale-spec.c (locale_special): Likewise.
6145         * nis/nis_findserv.c (struct findserv_req): Likewise.
6146         (__nis_findfastest_with_timeout): Likewise.
6147         * nss/test-netdb.c (test_network): Likewise.
6148         * resolv/inet_neta.c (inet_neta): Likewise.
6149         * resolv/ns_date.c (ns_datetosecs): Likewise.
6150         (SECS_PER_DAY): Likewise.
6151         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r):
6152         Likewise.
6153         * resolv/res_comp.c (__putlong): Likewise.
6154         (__putshort): Likewise.
6155         (_getlong): Likewise.
6156         (_getshort): Likewise.
6157         * resolv/res_debug.c (p_time): Likewise.
6158         (precsize_ntoa): Likewise.
6159         (precsize_aton): Likewise.
6160         (latlon2ul): Likewise.
6161         (loc_aton): Likewise.
6162         (loc_ntoa): Likewise.
6163         * resolv/res_hconf.c (struct netaddr): Likewise.
6164         (_res_hconf_reorder_addrs): Likewise.
6165         * sunrpc/clnt_tcp.c (clnttcp_call): Likewise.
6166         (clnttcp_control): Likewise.
6167         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
6168         (clntudp_control): Likewise.
6169         * sunrpc/clnt_unix.c (clntunix_call): Likewise.
6170         (clntunix_control): Likewise.
6171         * sunrpc/pmap_rmt.c (clnt_broadcast): Likewise.
6172         * sunrpc/rpc/auth.h (union des_block): Likewise.
6173         * sunrpc/tst-udp-nonblocking.c (do_test): Likewise.
6174         * sunrpc/xdr_rec.c (struct rec_strm): Likewise.
6175         (xdrrec_create): Likewise.
6176         (xdrrec_endofrecord): Likewise.
6177         (flush_out): Likewise.
6178         * sunrpc/xdr_stdio.c (xdrstdio_getlong): Likewise.
6179         (xdrstdio_putlong): Likewise.
6180         * sysdeps/unix/sysv/linux/errqueue.h (struct sock_extended_err):
6181         Likewise.
6183         * misc/sys/cdefs.h (__long_double_t): Remove.
6184         * stdio-common/printf_fp.c (__printf_fp_l): Use long double
6185         instead of __long_double_t,
6186         * stdlib/strfmon_l.c (__vstrfmon_l): Likewise.
6188 2017-08-07  Siddhesh Poyarekar  <siddhesh@sourceware.org>
6190         * benchtests/scripts/compare_strings.py: Avoid display error when
6191         running on a text terminal.
6193         * benchtests/scripts/compare_strings.py (main): Add an
6194         optional -base option.
6195         (process_results): New argument base_func.
6197         * benchtests/bench-memcpy.c (test_main): Use TEST_NAME instead of
6198         hardcoding memcpy.
6199         * benchtests/bench-memcpy-large.c (test_name): Likewise.
6200         * benchtests/bench-memcpy-random.c (test_name): Likewise.
6202 2017-08-07  Andreas Schwab  <schwab@suse.de>
6204         * elf/Makefile ($(objpfx)tst-pathopt.out): Redirect output to target.
6205         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Likewise.
6206         * intl/Makefile ($(objpfx)tst-gettext.out)
6207         ($(objpfx)tst-translit.out, $(objpfx)tst-gettext2.out)
6208         ($(objpfx)tst-gettext4.out, $(objpfx)tst-gettext6.out): Likewise.
6209         * libio/Makefile ($(objpfx)test-freopen.out): Likewise.
6210         * malloc/Makefile ($(objpfx)tst-mtrace.out): Likewise.
6211         * nptl/Makefile ($(objpfx)tst-tls6.out): Likewise.
6212         * posix/Makefile ($(objpfx)globtest.out)
6213         ($(objpfx)wordexp-tst.out, $(objpfx)tst-getconf.out): Likewise.
6214         * stdio-common/Makefile ($(objpfx)tst-unbputc.out)
6215         ($(objpfx)tst-printf.out): Likewise.
6216         * stdlib/Makefile ($(objpfx)tst-fmtmsg.out)
6217         ($(objpfx)tst-setcontext3.out): Likewise.
6219 2017-08-07  H.J. Lu  <hongjiu.lu@intel.com>
6221         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
6222         Add e_exp-fma, e_log-fma, e_pow-fma, s_atan-fma, e_asin-fma,
6223         e_atan2-fma, s_sin-fma, s_tan-fma, mplog-fma, mpa-fma,
6224         slowexp-fma, slowpow-fma, sincos32-fma, doasin-fma, dosincos-fma,
6225         halfulp-fma, mpexp-fma, mpatan2-fma, mpatan-fma, mpsqrt-fma,
6226         and mptan-fma.
6227         (CFLAGS-doasin-fma.c): New.
6228         (CFLAGS-dosincos-fma.c): Likewise.
6229         (CFLAGS-e_asin-fma.c): Likewise.
6230         (CFLAGS-e_atan2-fma.c): Likewise.
6231         (CFLAGS-e_exp-fma.c): Likewise.
6232         (CFLAGS-e_log-fma.c): Likewise.
6233         (CFLAGS-e_pow-fma.c): Likewise.
6234         (CFLAGS-halfulp-fma.c): Likewise.
6235         (CFLAGS-mpa-fma.c): Likewise.
6236         (CFLAGS-mpatan-fma.c): Likewise.
6237         (CFLAGS-mpatan2-fma.c): Likewise.
6238         (CFLAGS-mpexp-fma.c): Likewise.
6239         (CFLAGS-mplog-fma.c): Likewise.
6240         (CFLAGS-mpsqrt-fma.c): Likewise.
6241         (CFLAGS-mptan-fma.c): Likewise.
6242         (CFLAGS-s_atan-fma.c): Likewise.
6243         (CFLAGS-sincos32-fma.c): Likewise.
6244         (CFLAGS-slowexp-fma.c): Likewise.
6245         (CFLAGS-slowpow-fma.c): Likewise.
6246         (CFLAGS-s_sin-fma.c): Likewise.
6247         (CFLAGS-s_tan-fma.c): Likewise.
6248         * sysdeps/x86_64/fpu/multiarch/doasin-fma.c: New file.
6249         * sysdeps/x86_64/fpu/multiarch/dosincos-fma.c: Likewise.
6250         * sysdeps/x86_64/fpu/multiarch/e_asin-fma.c: Likewise.
6251         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma.c: Likewise.
6252         * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c: Likewise.
6253         * sysdeps/x86_64/fpu/multiarch/e_log-fma.c: Likewise.
6254         * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c: Likewise.
6255         * sysdeps/x86_64/fpu/multiarch/halfulp-fma.c: Likewise.
6256         * sysdeps/x86_64/fpu/multiarch/ifunc-avx-fma4.h: Likewise.
6257         * sysdeps/x86_64/fpu/multiarch/ifunc-fma4.h: Likewise.
6258         * sysdeps/x86_64/fpu/multiarch/mpa-fma.c: Likewise.
6259         * sysdeps/x86_64/fpu/multiarch/mpatan-fma.c: Likewise.
6260         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma.c: Likewise.
6261         * sysdeps/x86_64/fpu/multiarch/mpexp-fma.c: Likewise.
6262         * sysdeps/x86_64/fpu/multiarch/mplog-fma.c: Likewise.
6263         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma.c: Likewise.
6264         * sysdeps/x86_64/fpu/multiarch/mptan-fma.c: Likewise.
6265         * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c: Likewise.
6266         * sysdeps/x86_64/fpu/multiarch/s_sin-fma.c: Likewise.
6267         * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c: Likewise.
6268         * sysdeps/x86_64/fpu/multiarch/sincos32-fma.c: Likewise.
6269         * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
6270         * sysdeps/x86_64/fpu/multiarch/slowpow-fma.c: Likewise.
6271         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Rewrite.
6272         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
6273         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
6274         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
6275         * sysdeps/x86_64/fpu/multiarch/e_pow.c: Likewise.
6276         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
6277         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
6278         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
6280 2017-08-04  Joseph Myers  <joseph@codesourcery.com>
6282         * sysdeps/generic/math_private.h (__EXPR_FLT128): Remove macro.
6283         (min_of_type_f): New macro.
6284         (min_of_type_): Likewise.
6285         (min_of_type_l): Likewise.
6286         (min_of_type_f128): Likewise.
6287         (min_of_type): Define using __MATH_TG and taking an expression
6288         argument.
6289         (math_check_force_underflow): Pass expression instead of type to
6290         min_of_type.
6291         (math_check_force_underflow_nonneg): Likewise.
6293 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
6295         * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
6296         (LOAD_RTLD_GLOBAL_RO_RDX, HAS_FEATURE, LOAD_FUNC_GOT_EAX,
6297         HAS_CPU_FEATURE, HAS_ARCH_FEATURE): Removed.
6299 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
6301         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
6302         bcopy-ia32, bzero-ia32, rawmemchr-ia32 memchr-ia32,
6303         memcmp-ia32, memcpy-ia32, memmove-ia32, mempcpy-ia32,
6304         memset-ia32, strcat-ia32, strchr-ia32, strrchr-ia32,
6305         strcpy-ia32, strcmp-ia32, strcspn-ia32, strpbrk-ia32,
6306         strspn-ia32, strlen-ia32, stpcpy-ia32, stpncpy-ia32,
6307         memcpy_chk-nonshared, mempcpy_chk-nonshared,
6308         memmove_chk-nonshared and memset_chk-nonshared
6309         * sysdeps/i386/i686/multiarch/bcopy-ia32.S: New file.
6310         * sysdeps/i386/i686/multiarch/bcopy.c: Likewise.
6311         * sysdeps/i386/i686/multiarch/bzero-ia32.S: Likewise.
6312         * sysdeps/i386/i686/multiarch/bzero.c: Likewise.
6313         * sysdeps/i386/i686/multiarch/ifunc-memmove.h: Likewise.
6314         * sysdeps/i386/i686/multiarch/ifunc-memset.h: Likewise.
6315         * sysdeps/i386/i686/multiarch/ifunc-sse2-bsf.h: Likewise.
6316         * sysdeps/i386/i686/multiarch/ifunc-sse2-ssse3.h: Likewise.
6317         * sysdeps/i386/i686/multiarch/ifunc-sse2.h: Likewise.
6318         * sysdeps/i386/i686/multiarch/ifunc-sse4_2.h: Likewise.
6319         * sysdeps/i386/i686/multiarch/ifunc-ssse3-sse4_2.h: Likewise.
6320         * sysdeps/i386/i686/multiarch/memchr-ia32.S: Likewise.
6321         * sysdeps/i386/i686/multiarch/memchr.c: Likewise.
6322         * sysdeps/i386/i686/multiarch/memcmp-ia32.S: Likewise.
6323         * sysdeps/i386/i686/multiarch/memcmp.c: Likewise.
6324         * sysdeps/i386/i686/multiarch/memcpy-ia32.S: Likewise.
6325         * sysdeps/i386/i686/multiarch/memcpy.c: Likewise.
6326         * sysdeps/i386/i686/multiarch/memcpy_chk-nonshared.S: Likewise.
6327         * sysdeps/i386/i686/multiarch/memcpy_chk.c: Likewise.
6328         * sysdeps/i386/i686/multiarch/memmove-ia32.S: Likewise.
6329         * sysdeps/i386/i686/multiarch/memmove.c: Likewise.
6330         * sysdeps/i386/i686/multiarch/memmove_chk-nonshared.S: Likewise.
6331         * sysdeps/i386/i686/multiarch/memmove_chk.c: Likewise.
6332         * sysdeps/i386/i686/multiarch/mempcpy-ia32.S: Likewise.
6333         * sysdeps/i386/i686/multiarch/mempcpy.c: Likewise.
6334         * sysdeps/i386/i686/multiarch/mempcpy_chk-nonshared.S: Likewise.
6335         * sysdeps/i386/i686/multiarch/mempcpy_chk.c: Likewise.
6336         * sysdeps/i386/i686/multiarch/memrchr.c: Likewise.
6337         * sysdeps/i386/i686/multiarch/memset-ia32.S: Likewise.
6338         * sysdeps/i386/i686/multiarch/memset.c: Likewise.
6339         * sysdeps/i386/i686/multiarch/memset_chk-nonshared.S: Likewise.
6340         * sysdeps/i386/i686/multiarch/rawmemchr-ia32.S: Likewise.
6341         * sysdeps/i386/i686/multiarch/rawmemchr.c: Likewise.
6342         * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
6343         * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
6344         * sysdeps/i386/i686/multiarch/stpcpy.c: Likewise.
6345         * sysdeps/i386/i686/multiarch/stpncpy-ia32.S: Likewise.
6346         * sysdeps/i386/i686/multiarch/stpncpy.c: Likewise.
6347         * sysdeps/i386/i686/multiarch/strcasecmp.c: Likewise.
6348         * sysdeps/i386/i686/multiarch/strcasecmp_l.c: Likewise.
6349         * sysdeps/i386/i686/multiarch/strcat-ia32.S: Likewise.
6350         * sysdeps/i386/i686/multiarch/strcat.c: Likewise.
6351         * sysdeps/i386/i686/multiarch/strchr-ia32.S: Likewise.
6352         * sysdeps/i386/i686/multiarch/strchr.c: Likewise.
6353         * sysdeps/i386/i686/multiarch/strcmp-ia32.S: Likewise.
6354         * sysdeps/i386/i686/multiarch/strcmp.c: Likewise.
6355         * sysdeps/i386/i686/multiarch/strcpy-ia32.S: Likewise.
6356         * sysdeps/i386/i686/multiarch/strcpy.c: Likewise.
6357         * sysdeps/i386/i686/multiarch/strcspn-ia32.S: Likewise.
6358         * sysdeps/i386/i686/multiarch/strcspn.c: Likewise.
6359         * sysdeps/i386/i686/multiarch/strlen-ia32.S: Likewise.
6360         * sysdeps/i386/i686/multiarch/strlen.c: Likewise.
6361         * sysdeps/i386/i686/multiarch/strncase.c: Likewise.
6362         * sysdeps/i386/i686/multiarch/strncase_l.c: Likewise.
6363         * sysdeps/i386/i686/multiarch/strncat.c: Likewise.
6364         * sysdeps/i386/i686/multiarch/strncmp.c: Likewise.
6365         * sysdeps/i386/i686/multiarch/strncpy.c: Likewise.
6366         * sysdeps/i386/i686/multiarch/strnlen.c: Likewise.
6367         * sysdeps/i386/i686/multiarch/strpbrk-ia32.S: Likewise.
6368         * sysdeps/i386/i686/multiarch/strpbrk.c: Likewise.
6369         * sysdeps/i386/i686/multiarch/strrchr-ia32.S: Likewise.
6370         * sysdeps/i386/i686/multiarch/strrchr.c: Likewise.
6371         * sysdeps/i386/i686/multiarch/strspn-ia32.S: Likewise.
6372         * sysdeps/i386/i686/multiarch/strspn.c: Likewise.
6373         * sysdeps/i386/i686/multiarch/wcschr.c: Likewise.
6374         * sysdeps/i386/i686/multiarch/wcscmp.c: Likewise.
6375         * sysdeps/i386/i686/multiarch/wcscpy.c: Likewise.
6376         * sysdeps/i386/i686/multiarch/wcslen.c: Likewise.
6377         * sysdeps/i386/i686/multiarch/wcsrchr.c: Likewise.
6378         * sysdeps/i386/i686/multiarch/wmemcmp.c: Likewise.
6379         * sysdeps/i386/i686/multiarch/bcopy.S: Removed.
6380         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
6381         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
6382         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
6383         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
6384         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
6385         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
6386         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
6387         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
6388         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
6389         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
6390         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
6391         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
6392         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
6393         * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
6394         * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
6395         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
6396         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
6397         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
6398         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
6399         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
6400         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
6401         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
6402         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
6403         * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
6404         * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
6405         * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
6406         * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
6407         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
6408         * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
6409         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
6410         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
6411         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
6412         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
6413         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
6414         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
6415         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
6416         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
6418 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
6420         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines)
6421         Add svml_d_cos2_core-sse2, svml_d_cos4_core-sse,
6422         svml_d_cos8_core-avx2, svml_d_exp2_core-sse2,
6423         svml_d_exp4_core-sse, svml_d_exp8_core-avx2,
6424         svml_d_log2_core-sse2, svml_d_log4_core-sse,
6425         svml_d_log8_core-avx2, svml_d_pow2_core-sse2,
6426         svml_d_pow4_core-sse, svml_d_pow8_core-avx2
6427         svml_d_sin2_core-sse2, svml_d_sin4_core-sse,
6428         svml_d_sin8_core-avx2, svml_d_sincos2_core-sse2,
6429         svml_d_sincos4_core-sse, svml_d_sincos8_core-avx2,
6430         svml_s_cosf16_core-avx2, svml_s_cosf4_core-sse2,
6431         svml_s_cosf8_core-sse, svml_s_expf16_core-avx2,
6432         svml_s_expf4_core-sse2, svml_s_expf8_core-sse,
6433         svml_s_logf16_core-avx2, svml_s_logf4_core-sse2,
6434         svml_s_logf8_core-sse, svml_s_powf16_core-avx2,
6435         svml_s_powf4_core-sse2, svml_s_powf8_core-sse,
6436         svml_s_sincosf16_core-avx2, svml_s_sincosf4_core-sse2,
6437         svml_s_sincosf8_core-sse, svml_s_sinf16_core-avx2,
6438         svml_s_sinf4_core-sse2 and svml_s_sinf8_core-sse.
6439         * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h: New file.
6440         * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h: Likewise.
6441         * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-sse4_1.h: Likewise.
6442         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.c: Likewise.
6443         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.c: Likewise.
6444         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.c: Likewise.
6445         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.c: Likewise.
6446         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.c: Likewise.
6447         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.c: Likewise.
6448         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.c: Likewise.
6449         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.c: Likewise.
6450         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.c: Likewise.
6451         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.c: Likewise.
6452         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.c: Likewise.
6453         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.c: Likewise.
6454         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.c: Likewise.
6455         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.c: Likewise.
6456         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.c: Likewise.
6457         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.c: Likewise.
6458         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.c: Likewise.
6459         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.c: Likewise.
6460         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.c: Likewise.
6461         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.c: Likewise.
6462         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.c: Likewise.
6463         * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.c: Likewise.
6464         * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.c: Likewise.
6465         * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.c: Likewise.
6466         * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.c: Likewise.
6467         * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.c: Likewise.
6468         * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.c: Likewise.
6469         * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.c: Likewise.
6470         * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.c: Likewise.
6471         * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.c: Likewise.
6472         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.c: Likewise.
6473         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.c: Likewise.
6474         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.c: Likewise.
6475         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.c: Likewise.
6476         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.c: Likewise.
6477         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.c: Likewise.
6478         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.S:  Renamed to
6479         ...
6480         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core-sse2.S: This.
6481         Don't include <sysdep.h> nor <init-arch.h>.
6482         (_ZGVbN2v_cos): Removed.
6483         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.S:  Renamed to
6484         ...
6485         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core-sse.S: This.
6486         Don't include <sysdep.h> nor <init-arch.h>.
6487         (_ZGVdN4v_cos): Removed.
6488         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S:  Renamed to
6489         ...
6490         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core-avx2.S: This.
6491         Don't include <sysdep.h> nor <init-arch.h>.
6492         (_ZGVeN8v_cos): Removed.
6493         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.S:  Renamed to
6494         ...
6495         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core-sse2.S: This.
6496         Don't include <sysdep.h> nor <init-arch.h>.
6497         (_ZGVbN2v_exp): Removed.
6498         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.S:  Renamed to
6499         ...
6500         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core-sse.S: This.
6501         Don't include <sysdep.h> nor <init-arch.h>.
6502         (_ZGVdN4v_exp): Removed.
6503         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S:  Renamed to
6504         ...
6505         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core-avx2.S: This.
6506         Don't include <sysdep.h> nor <init-arch.h>.
6507         (_ZGVeN8v_exp): Removed.
6508         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.S:  Renamed to
6509         ...
6510         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core-sse2.S: This.
6511         Don't include <sysdep.h> nor <init-arch.h>.
6512         (_ZGVbN2v_log): Removed.
6513         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.S:  Renamed to
6514         ...
6515         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core-sse.S: This.
6516         Don't include <sysdep.h> nor <init-arch.h>.
6517         (_ZGVdN4v_log): Removed.
6518         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S:  Renamed to
6519         ...
6520         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core-avx2.S: This.
6521         Don't include <sysdep.h> nor <init-arch.h>.
6522         (_ZGVeN8v_log): Removed.
6523         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.S:  Renamed to
6524         ...
6525         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core-sse2.S: This.
6526         Don't include <sysdep.h> nor <init-arch.h>.
6527         (_ZGVbN2vv_pow): Removed.
6528         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.S:  Renamed to
6529         ...
6530         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core-sse.S: This.
6531         Don't include <sysdep.h> nor <init-arch.h>.
6532         (_ZGVdN4vv_pow): Removed.
6533         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S:  Renamed to
6534         ...
6535         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core-avx2.S: This.
6536         Don't include <sysdep.h> nor <init-arch.h>.
6537         (_ZGVeN8vv_pow): Removed.
6538         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.S:  Renamed to
6539         ...
6540         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core-sse2.S: This.
6541         Don't include <sysdep.h> nor <init-arch.h>.
6542         (_ZGVbN2v_sin): Removed.
6543         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.S:  Renamed to
6544         ...
6545         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core-sse.S: This.
6546         Don't include <sysdep.h> nor <init-arch.h>.
6547         (_ZGVbN4v_sin): Removed.
6548         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S:  Renamed to
6549         ...
6550         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core-avx2.S: This.
6551         Don't include <sysdep.h> nor <init-arch.h>.
6552         (_ZGVbN8v_sin): Removed.
6553         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.S:  Renamed to
6554         ...
6555         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core-sse2.S: This.
6556         Don't include <sysdep.h> nor <init-arch.h>.
6557         (_ZGVbN2vvv_sincos): Removed.
6558         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.S:  Renamed to
6559         ...
6560         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core-sse.S: This.
6561         Don't include <sysdep.h> nor <init-arch.h>.
6562         (_ZGVdN4vvv_sincos): Removed.
6563         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S:  Renamed to
6564         ...
6565         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core-avx2.S: This.
6566         Don't include <sysdep.h> nor <init-arch.h>.
6567         (_ZGVeN8vvv_sincos): Removed.
6568         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.S:  Renamed to
6569         ...
6570         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core-avx2.S: This.
6571         Don't include <sysdep.h> nor <init-arch.h>.
6572         (_ZGVeN16v_cosf): Removed.
6573         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.S:  Renamed to
6574         ...
6575         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core-sse2.S: This.
6576         Don't include <sysdep.h> nor <init-arch.h>.
6577         (_ZGVbN4v_cosf): Removed.
6578         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.S:  Renamed to
6579         ...
6580         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core-sse.S: This.
6581         Don't include <sysdep.h> nor <init-arch.h>.
6582         (_ZGVdN8v_cosf): Removed.
6583         * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.S:  Renamed to
6584         ...
6585         * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core-avx2.S: This.
6586         Don't include <sysdep.h> nor <init-arch.h>.
6587         (_ZGVeN16v_expf): Removed.
6588         * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.S:  Renamed to
6589         ...
6590         * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core-sse2.S: This.
6591         Don't include <sysdep.h> nor <init-arch.h>.
6592         (_ZGVbN4v_expf): Removed.
6593         * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.S:  Renamed to
6594         ...
6595         * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core-sse.S: This.
6596         Don't include <sysdep.h> nor <init-arch.h>.
6597         (_ZGVdN8v_expf): Removed.
6598         * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.S:  Renamed to
6599         ...
6600         * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core-avx2.S: This.
6601         Don't include <sysdep.h> nor <init-arch.h>.
6602         (_ZGVeN16v_logf): Removed.
6603         * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.S:  Renamed to
6604         ...
6605         * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core-sse2.S: This.
6606         Don't include <sysdep.h> nor <init-arch.h>.
6607         (_ZGVbN4v_logf): Removed.
6608         * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.S:  Renamed to
6609         ...
6610         * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core-sse.S: This.
6611         Don't include <sysdep.h> nor <init-arch.h>.
6612         (_ZGVdN8v_logf): Removed.
6613         * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.S:  Renamed to
6614         ...
6615         * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core-avx2.S: This.
6616         Don't include <sysdep.h> nor <init-arch.h>.
6617         (_ZGVeN16vv_powf): Removed.
6618         * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.S:  Renamed to
6619         ...
6620         * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core-sse2.S: This.
6621         Don't include <sysdep.h> nor <init-arch.h>.
6622         (_ZGVbN4vv_powf): Removed.
6623         * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.S:  Renamed to
6624         ...
6625         * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core-sse.S: This.
6626         Don't include <sysdep.h> nor <init-arch.h>.
6627         (_ZGVdN8vv_powf): Removed.
6628         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.S:  Renamed to
6629         ...
6630         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core-avx2.S: This.
6631         Don't include <sysdep.h> nor <init-arch.h>.
6632         (_ZGVeN16vvv_sincosf): Removed.
6633         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.S:  Renamed to
6634         ...
6635         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core-sse2.S: This.
6636         Don't include <sysdep.h> nor <init-arch.h>.
6637         (_ZGVbN4vvv_sincosf): Removed.
6638         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.S:  Renamed to
6639         ...
6640         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core-sse.S: This.
6641         Don't include <sysdep.h> nor <init-arch.h>.
6642         (_ZGVdN8vvv_sincosf): Removed.
6643         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.S:  Renamed to
6644         ...
6645         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core-avx2.S: This.
6646         Don't include <sysdep.h> nor <init-arch.h>.
6647         (_ZGVeN16v_sinf): Removed.
6648         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.S:  Renamed to
6649         ...
6650         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core-sse2.S: This.
6651         Don't include <sysdep.h> nor <init-arch.h>.
6652         (_ZGVbN4v_sinf): Removed.
6653         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.S:  Renamed to
6654         ...
6655         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core-sse.S: This.
6656         Don't include <sysdep.h> nor <init-arch.h>.
6657         (_ZGVdN8v_sinf): Removed.
6659 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
6661         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
6662         Add s_ceil-sse4_1, s_ceilf-sse4_1, s_floor-sse4_1,
6663         s_floorf-sse4_1, s_nearbyint-sse4_1, s_nearbyintf-sse4_1,
6664         s_rint-sse4_1 and s_rintf-sse4_1.
6665         * sysdeps/x86_64/fpu/multiarch/ifunc-sse4_1.h: New file.
6666         * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Likewise.
6667         * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Likewise.
6668         * sysdeps/x86_64/fpu/multiarch/s_floor.c: Likewise.
6669         * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Likewise.
6670         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Likewise.
6671         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Likewise.
6672         * sysdeps/x86_64/fpu/multiarch/s_rint.c: Likewise.
6673         * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Likewise.
6674         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: Renamed to ...
6675         * sysdeps/x86_64/fpu/multiarch/s_ceil-sse4_1.S: This.  Don't
6676         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
6677         (__ceil): Removed.
6678         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: Renamed to ...
6679         * sysdeps/x86_64/fpu/multiarch/s_ceilf-sse4_1.S: This.  Don't
6680         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
6681         (__ceilf): Removed.
6682         * sysdeps/x86_64/fpu/multiarch/s_floor.S: Renamed to ...
6683         * sysdeps/x86_64/fpu/multiarch/s_floor-sse4_1.S: This.  Don't
6684         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
6685         (__floor): Removed.
6686         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: Renamed to ...
6687         * sysdeps/x86_64/fpu/multiarch/s_floorf-sse4_1.S: This.  Don't
6688         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
6689         (__floorf): Removed.
6690         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: Renamed to ...
6691         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-sse4_1.S: This.  Don't
6692         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
6693         (__nearbyint): Removed.
6694         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: Renamed to ...
6695         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-sse4_1.S: This.  Don't
6696         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
6697         (__nearbyintf): Removed.
6698         * sysdeps/x86_64/fpu/multiarch/s_rint.S: Renamed to ...
6699         * sysdeps/x86_64/fpu/multiarch/s_rint-sse4_1.S: This.  Don't
6700         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
6701         (__rint): Removed.
6702         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: Renamed to ...
6703         * sysdeps/x86_64/fpu/multiarch/s_rintf-sse4_1.S: This.  Don't
6704         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
6705         (__rintf): Removed.
6707 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
6709         * sysdeps/i386/start.S (_start): Check Check PIC instead of
6710         SHARED.  Avoid dynamic relocation against main in static PIE.
6712 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
6714         [BZ #21815]
6715         * elf/Makefile (CFLAGS-tst-prelink.c): New.
6716         (LDFLAGS-tst-prelink): Likewise.
6718 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
6720         * sysdeps/unix/sysv/linux/i386/sysdep.h (I386_USE_SYSENTER):
6721         Define to I386_USE_SYSENTER to 0 or 1 if not defined.
6722         (ENTER_KERNEL): Check if I386_USE_SYSENTER is 1 and check PIC.
6723         (INTERNAL_SYSCALL_MAIN_INLINE): Likewise.
6724         (INTERNAL_SYSCALL_NCS): Likewise.
6725         (LOADARGS_1): Likewise.
6726         (LOADARGS_5): Likewise.
6727         (RESTOREARGS_1): Likewise.
6728         (RESTOREARGS_5): Likewise.
6730 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
6732         * sysdeps/x86_64/memmove.S (MEMCPY_SYMBOL): Don't check SHARED.
6733         (MEMPCPY_SYMBOL): Likewise.
6734         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
6735         (__libc_ifunc_impl_list): Test memcpy and mempcpy in libc.a.
6736         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Also include
6737         in libc.a.
6738         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
6739         * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
6740         Likewise.
6741         * sysdeps/x86_64/multiarch/memcpy.c: Also include in libc.a.
6742         (__hidden_ver1): Don't use in libc.a.
6743         * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S
6744         (__mempcpy): Don't create a weak alias in libc.a.
6745         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S: Support
6746         libc.a.
6747         * sysdeps/x86_64/multiarch/mempcpy.c: Also include in libc.a.
6748         (__hidden_ver1): Don't use in libc.a.
6750 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
6752         * config.make.in (have-insert): New.
6753         * configure.ac (libc_cv_insert): New.  Set to yes if linker
6754         supports INSERT in linker script.
6755         (AC_SUBST(libc_cv_insert): New.
6756         * configure: Regenerated.
6757         * sysdeps/x86_64/Makefile (tests): Add tst-split-dynreloc only
6758         if $(have-insert) == yes.
6760 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
6762         * elf/Makefile (tests): Add vismain only if
6763         $(have-protected-data) == yes.
6764         (tests-pie): Likewise.
6766 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
6768         [BZ #21871]
6769         * sysdeps/x86/cpu-features.c (init_cpu_features): Set
6770         bit_arch_Use_dl_runtime_resolve_opt only with AVX512F.
6772 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
6774         [BZ #21790]
6775         * sysdeps/i386/i586/memset.S
6776         (__memset_zero_constant_len_parameter): Removed.
6777         * sysdeps/i386/i686/memset.S
6778         (__memset_zero_constant_len_parameter): Likewise.
6779         * sysdeps/i386/i686/multiarch/memset_chk.S
6780         (__memset_zero_constant_len_parameter): Likewise.
6781         * sysdeps/x86_64/memset.S (__memset_zero_constant_len_parameter):
6782         Likewise.
6784 2017-08-03  Aurelien Jarno  <aurelien@aurel32.net>
6786         * stdlib/getentropy.c (getentropy): Change return type to int.
6788 2017-08-03  Aurelien Jarno  <aurelien@aurel32.net>
6790         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Regenerated.
6792 2017-08-03  Joseph Myers  <joseph@codesourcery.com>
6794         * math/s_nextafter.c (__nextafter): Use uintN_t instead of
6795         u_intN_t.
6796         * math/s_nexttowardf.c (__nexttowardf): Likewise.
6797         * sysdeps/generic/math_private.h (ieee_double_shape_type):
6798         Likewise.
6799         (ieee_float_shape_type): Likewise.
6800         * sysdeps/i386/fpu/s_fpclassifyl.c (__fpclassifyl): Likewise.
6801         * sysdeps/i386/fpu/s_isnanl.c (__isnanl): Likewise.
6802         * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Likewise.
6803         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
6804         * sysdeps/i386/fpu/s_nexttowardf.c (__nexttowardf): Likewise.
6805         * sysdeps/ieee754/dbl-64/e_acosh.c (__ieee754_acosh): Likewise.
6806         * sysdeps/ieee754/dbl-64/e_cosh.c (__ieee754_cosh): Likewise.
6807         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Likewise.
6808         * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
6809         Likewise.
6810         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
6811         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
6812         (__ieee754_yn): Likewise.
6813         * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
6814         * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
6815         * sysdeps/ieee754/dbl-64/e_rem_pio2.c (__ieee754_rem_pio2):
6816         Likewise.
6817         * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
6818         * sysdeps/ieee754/dbl-64/s_ceil.c (__ceil): Likewise.
6819         * sysdeps/ieee754/dbl-64/s_copysign.c (__copysign): Likewise.
6820         * sysdeps/ieee754/dbl-64/s_erf.c (__erf): Likewise.
6821         (__erfc): Likewise.
6822         * sysdeps/ieee754/dbl-64/s_expm1.c (__expm1): Likewise.
6823         * sysdeps/ieee754/dbl-64/s_finite.c (FINITE): Likewise.
6824         * sysdeps/ieee754/dbl-64/s_floor.c (__floor): Likewise.
6825         * sysdeps/ieee754/dbl-64/s_fpclassify.c (__fpclassify): Likewise.
6826         * sysdeps/ieee754/dbl-64/s_isnan.c (__isnan): Likewise.
6827         * sysdeps/ieee754/dbl-64/s_issignaling.c (__issignaling):
6828         Likewise.
6829         * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Likewise.
6830         * sysdeps/ieee754/dbl-64/s_llround.c (__llround): Likewise.
6831         * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
6832         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Likewise.
6833         * sysdeps/ieee754/dbl-64/s_modf.c (__modf): Likewise.
6834         * sysdeps/ieee754/dbl-64/s_nextup.c (__nextup): Likewise.
6835         * sysdeps/ieee754/dbl-64/s_remquo.c (__remquo): Likewise.
6836         * sysdeps/ieee754/dbl-64/s_round.c (__round): Likewise.
6837         * sysdeps/ieee754/dbl-64/s_trunc.c (__trunc): Likewise.
6838         * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c
6839         (__issignaling): Likewise.
6840         * sysdeps/ieee754/flt-32/e_atan2f.c (__ieee754_atan2f): Likewise.
6841         * sysdeps/ieee754/flt-32/e_fmodf.c (__ieee754_fmodf): Likewise.
6842         * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
6843         Likewise.
6844         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
6845         * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
6846         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Likewise.
6847         * sysdeps/ieee754/flt-32/e_rem_pio2f.c (__ieee754_rem_pio2f):
6848         Likewise.
6849         * sysdeps/ieee754/flt-32/e_remainderf.c (__ieee754_remainderf):
6850         Likewise.
6851         * sysdeps/ieee754/flt-32/e_sqrtf.c (__ieee754_sqrtf): Likewise.
6852         * sysdeps/ieee754/flt-32/s_ceilf.c (__ceilf): Likewise.
6853         * sysdeps/ieee754/flt-32/s_copysignf.c (__copysignf): Likewise.
6854         * sysdeps/ieee754/flt-32/s_erff.c (__erff): Likewise.
6855         (__erfcf): Likewise.
6856         * sysdeps/ieee754/flt-32/s_expm1f.c (__expm1f): Likewise.
6857         * sysdeps/ieee754/flt-32/s_finitef.c (FINITEF): Likewise.
6858         * sysdeps/ieee754/flt-32/s_floorf.c (__floorf): Likewise.
6859         * sysdeps/ieee754/flt-32/s_fpclassifyf.c (__fpclassifyf):
6860         Likewise.
6861         * sysdeps/ieee754/flt-32/s_isnanf.c (__isnanf): Likewise.
6862         * sysdeps/ieee754/flt-32/s_issignalingf.c (__issignalingf):
6863         Likewise.
6864         * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
6865         * sysdeps/ieee754/flt-32/s_llroundf.c (__llroundf): Likewise.
6866         * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
6867         * sysdeps/ieee754/flt-32/s_lroundf.c (__lroundf): Likewise.
6868         * sysdeps/ieee754/flt-32/s_modff.c (__modff): Likewise.
6869         * sysdeps/ieee754/flt-32/s_remquof.c (__remquof): Likewise.
6870         * sysdeps/ieee754/flt-32/s_roundf.c (__roundf): Likewise.
6871         * sysdeps/ieee754/ldbl-128/e_acoshl.c (__ieee754_acoshl):
6872         Likewise.
6873         * sysdeps/ieee754/ldbl-128/e_atan2l.c (__ieee754_atan2l):
6874         Likewise.
6875         * sysdeps/ieee754/ldbl-128/e_atanhl.c (__ieee754_atanhl):
6876         Likewise.
6877         * sysdeps/ieee754/ldbl-128/e_fmodl.c (__ieee754_fmodl): Likewise.
6878         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
6879         Likewise.
6880         * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
6881         Likewise.
6882         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
6883         (__ieee754_ynl): Likewise.
6884         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
6885         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c (__ieee754_rem_pio2l):
6886         Likewise.
6887         * sysdeps/ieee754/ldbl-128/e_remainderl.c (__ieee754_remainderl):
6888         Likewise.
6889         * sysdeps/ieee754/ldbl-128/e_sinhl.c (__ieee754_sinhl): Likewise.
6890         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Likewise.
6891         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
6892         Likewise.
6893         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Likewise.
6894         * sysdeps/ieee754/ldbl-128/s_ceill.c (__ceill): Likewise.
6895         * sysdeps/ieee754/ldbl-128/s_copysignl.c (__copysignl): Likewise.
6896         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Likewise.
6897         * sysdeps/ieee754/ldbl-128/s_fabsl.c (__fabsl): Likewise.
6898         * sysdeps/ieee754/ldbl-128/s_finitel.c (__finitel): Likewise.
6899         * sysdeps/ieee754/ldbl-128/s_floorl.c (__floorl): Likewise.
6900         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c (__fpclassifyl):
6901         Likewise.
6902         * sysdeps/ieee754/ldbl-128/s_frexpl.c (__frexpl): Likewise.
6903         * sysdeps/ieee754/ldbl-128/s_isnanl.c (__isnanl): Likewise.
6904         * sysdeps/ieee754/ldbl-128/s_issignalingl.c (__issignalingl):
6905         Likewise.
6906         * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
6907         * sysdeps/ieee754/ldbl-128/s_llroundl.c (__llroundl): Likewise.
6908         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
6909         * sysdeps/ieee754/ldbl-128/s_lroundl.c (__lroundl): Likewise.
6910         * sysdeps/ieee754/ldbl-128/s_modfl.c (__modfl): Likewise.
6911         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
6912         Likewise.
6913         * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl):
6914         Likewise.
6915         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
6916         Likewise.
6917         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
6918         Likewise.
6919         * sysdeps/ieee754/ldbl-128/s_nextupl.c (__nextupl): Likewise.
6920         * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Likewise.
6921         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
6922         * sysdeps/ieee754/ldbl-128/s_roundl.c (__roundl): Likewise.
6923         * sysdeps/ieee754/ldbl-128/s_tanhl.c (__tanhl): Likewise.
6924         * sysdeps/ieee754/ldbl-128/s_truncl.c (__truncl): Likewise.
6925         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl):
6926         Likewise.
6927         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
6928         Likewise.
6929         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
6930         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
6931         Likewise.
6932         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c
6933         (__ieee754_remainderl): Likewise.
6934         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
6935         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
6936         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Likewise.
6937         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c (___fpclassifyl):
6938         Likewise.
6939         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c (__modfl): Likewise.
6940         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
6941         Likewise.
6942         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
6943         * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Likewise.
6944         * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
6945         * sysdeps/ieee754/ldbl-96/e_atanhl.c (__ieee754_atanhl): Likewise.
6946         * sysdeps/ieee754/ldbl-96/e_coshl.c (__ieee754_coshl): Likewise.
6947         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
6948         Likewise.
6949         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
6950         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Likewise.
6951         (__ieee754_y0l): Likewise.
6952         (pzero): Likewise.
6953         (qzero): Likewise.
6954         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
6955         (__ieee754_y1l): Likewise.
6956         (pone): Likewise.
6957         (qone): Likewise.
6958         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
6959         (__ieee754_ynl): Likewise.
6960         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Likewise.
6961         (__ieee754_lgammal_r): Likewise.
6962         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c (__ieee754_rem_pio2l):
6963         Likewise.
6964         * sysdeps/ieee754/ldbl-96/e_sinhl.c (__ieee754_sinhl): Likewise.
6965         * sysdeps/ieee754/ldbl-96/s_copysignl.c (__copysignl): Likewise.
6966         * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfl): Likewise.
6967         (__erfcl): Likewise.
6968         * sysdeps/ieee754/ldbl-96/s_frexpl.c (__frexpl): Likewise.
6969         * sysdeps/ieee754/ldbl-96/s_issignalingl.c (__issignalingl):
6970         Likewise.
6971         * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
6972         * sysdeps/ieee754/ldbl-96/s_llroundl.c (__llroundl): Likewise.
6973         * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
6974         * sysdeps/ieee754/ldbl-96/s_lroundl.c (__lroundl): Likewise.
6975         * sysdeps/ieee754/ldbl-96/s_modfl.c (__modfl): Likewise.
6976         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
6977         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
6978         Likewise.
6979         * sysdeps/ieee754/ldbl-96/s_nextupl.c (__nextupl): Likewise.
6980         * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Likewise.
6981         * sysdeps/ieee754/ldbl-96/s_roundl.c (__roundl): Likewise.
6982         * sysdeps/ieee754/ldbl-96/s_tanhl.c (__tanhl): Likewise.
6983         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
6984         Likewise.
6985         * sysdeps/m68k/m680x0/fpu/e_pow.c (s(__ieee754_pow)): Likewise.
6986         * sysdeps/m68k/m680x0/fpu/s_fpclassifyl.c (__fpclassifyl):
6987         Likewise.
6988         * sysdeps/m68k/m680x0/fpu/s_llrint.c (__llrint): Likewise.
6989         * sysdeps/m68k/m680x0/fpu/s_llrintf.c (__llrintf): Likewise.
6990         * sysdeps/m68k/m680x0/fpu/s_llrintl.c (__llrintl): Likewise.
6991         * sysdeps/m68k/m680x0/fpu/s_nextafterl.c (__nextafterl): Likewise.
6992         * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Likewise.
6994 2017-08-03  Florian Weimer  <fweimer@redhat.com>
6996         [BZ #21885]
6997         * sysdeps/posix/getaddrinfo.c (gethosts): Release resolver context
6998         on memory allocation failure.
7000 2017-08-03  Alan Modra  <amodra@gmail.com>
7002         * sysdeps/powerpc/mod-tlsopt-powerpc.c: Extract from
7003         tst-tlsopt-powerpc.c with function name change and no test harness.
7004         * sysdeps/powerpc/tst-tlsopt-powerpc.c: Remove body of test.
7005         Call tls_get_addr_opt_test.
7006         * sysdeps/powerpc/Makefile (LDFLAGS-tst-tlsopt-powerpc): Don't define.
7007         (modules-names): Add mod-tlsopt-powerpc.
7008         (mod-tlsopt-powerpc.so-no-z-defs): Define.
7009         (tst-tlsopt-powerpc): Depend on .so.
7010         * sysdeps/powerpc/powerpc64/tls-macros.h (__TLS_GET_ADDR): Don't
7011         define.  Expand use in TLS_GD and TLS_LD.
7013 2017-08-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7015         * sysdeps/mach/hurd/enbl-secure.c (__libc_init_secure): Define
7016         function.
7017         * sysdeps/posix/shm_open.c: Include <pthread.h>.
7019 2017-08-02  Joseph Myers  <joseph@codesourcery.com>
7021         [BZ #21686]
7022         * math/tgmath.h (__TGMATH_BINARY_REAL_ONLY): Add arguments before
7023         comparing size with that of double.
7024         (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
7025         (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
7026         (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
7027         (__TGMATH_TERNARY_REAL_ONLY): Likewise.
7028         (__TGMATH_BINARY_REAL_IMAG): Likewise.
7029         * math/gen-tgmath-tests.py (Type.init_types): Create __int128 and
7030         unsigned __int128 types.
7032 2017-08-02  Steve Ellcey  <sellcey@cavium.com>
7034         * localedata/Makefile (CFLAGS-tst_iswalnum.c, CFLAGS-tst_iswalpha.c
7035         CFLAGS-tst_iswcntrl.c, CFLAGS-tst_iswdigit.c, CFLAGS-tst_iswgraph.c,
7036         CFLAGS-tst_iswlower.c, CFLAGS-tst_iswprint.c, CFLAGS-tst_iswpunct.c,
7037         CFLAGS-tst_iswspace.c, CFLAGS-tst_iswupper.c, CFLAGS-tst_iswxdigit.c,
7038         CFLAGS-tst_towlower.c, CFLAGS-tst_towupper.c): Remove.
7040 2017-08-02  H.J. Lu  <hongjiu.lu@intel.com>
7042         * sysdeps/x86_64/start.S (_start): Check PIC instead of SHARED.
7044 2017-08-02  H.J. Lu  <hongjiu.lu@intel.com>
7046         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Check PIC instead
7047         of SHARED.
7048         * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Likewise.
7049         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
7050         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
7051         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
7052         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
7053         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
7054         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
7056 2017-08-02  Joseph Myers  <joseph@codesourcery.com>
7058         [BZ #21685]
7059         * math/tgmath.h (__tgmath_real_type): Use unary + on potentially
7060         bit-field expressions passed to sizeof or typeof.
7061         [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
7062         (__TGMATH_F128): Likewise.
7063         [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
7064         (__TGMATH_CF128): Likewise.
7065         (__TGMATH_UNARY_REAL_ONLY): Likewise.
7066         (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
7067         (__TGMATH_BINARY_FIRST_REAL_ONLY): Likewise.
7068         (__TGMATH_BINARY_FIRST_REAL_STD_ONLY): Likewise.
7069         (__TGMATH_BINARY_REAL_ONLY): Likewise.
7070         (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
7071         (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
7072         (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
7073         (__TGMATH_TERNARY_REAL_ONLY): Likewise.
7074         (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY): Likewise.
7075         (__TGMATH_UNARY_REAL_IMAG): Likewise.
7076         (__TGMATH_UNARY_IMAG): Likewise.
7077         (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
7078         (__TGMATH_BINARY_REAL_IMAG): Likewise.
7079         * math/gen-tgmath-tests.py (Type.init_types): Create bit_field
7080         type.
7081         (define_vars_for_type): Handle bit_field type specially.
7082         (Tests.__init__): Declare structure with bit-field element.
7084 2017-08-02  H.J. Lu  <hongjiu.lu@intel.com>
7086         [BZ #21791]
7087         * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S
7088         (MEMCPY_CHK): Define only if SHARED is defined.
7089         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S (MEMCPY_CHK):
7090         Likewise.
7091         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S (MEMCPY_CHK):
7092         Likewise.
7094 See ChangeLog.18 for earlier changes.