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