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