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