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