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