]> git.ipfire.org Git - thirdparty/glibc.git/blob - ChangeLog
acd573cfc3623baccb3efee054f7afb4be9fc6fc
[thirdparty/glibc.git] / ChangeLog
1 2017-11-06 Joseph Myers <joseph@codesourcery.com>
2
3 [BZ #22402]
4 * sysdeps/powerpc/bits/floatn.h: Include <bits/long-double.h>.
5 [__NO_LONG_DOUBLE_MATH] (__HAVE_FLOAT128): Define to 0.
6
7 2017-11-04 Mike FABIAN <mfabian@redhat.com>
8
9 * localedata/locales/tpi_PG (LC_TIME): Fix wrong d_fmt, / needs
10 to be escaped.
11
12 2017-11-04 Florian Weimer <fweimer@redhat.com>
13
14 * manual/llio.texi (Open-time Flags): Document O_TMPFILE.
15
16 2017-11-03 Joseph Myers <joseph@codesourcery.com>
17
18 * math/math.h [__HAVE_DISTINCT_FLOAT16
19 || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
20 || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
21 || __HAVE_DISTINCT_FLOAT128X]: Use #error.
22 [__NO_LONG_DOUBLE_MATH && __HAVE_DISTINCT_FLOAT128]: Likewise.
23 [__HAVE_DISTINCT_FLOAT128 && !__HAVE_GENERIC_SELECTION
24 && __HAVE_FLOATN_NOT_TYPEDEF]: Likewise.
25 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
26 (__MATH_TG_F32): New macro.
27 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
28 (__MATH_TG_F64X): Likewise.
29 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
30 (__MATH_TG): Use __MATH_TG_F32 and __MATH_TG_F64X.
31
32 2017-11-03 Dmitry V. Levin <ldv@altlinux.org>
33
34 * po/de.po: Update translations.
35 * po/ru.po: Likewise.
36
37 2017-11-03 Florian Weimer <fweimer@redhat.com>
38
39 * manual/filesys.texi (Hard Links): Document linkat.
40
41 2017-11-03 Joseph Myers <joseph@codesourcery.com>
42
43 * math/tgmath.h [__HAVE_DISTINCT_FLOAT16
44 || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
45 || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
46 || __HAVE_DISTINCT_FLOAT128X]: Use #error.
47 [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
48 && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
49 && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_F128): Handle _Float64x
50 the same as _Float128.
51 [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
52 && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
53 && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_CF128): Likewise.
54
55 * stdlib/stdlib.h
56 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof16):
57 Declare.
58 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof32):
59 Likewise.
60 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof64):
61 Likewise.
62 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
63 (strtof32x): Likewise.
64 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
65 (strtof64x): Likewise.
66 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
67 (strtof128x): Likewise.
68 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
69 (strfromf16): Likewise.
70 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
71 (strfromf32): Likewise.
72 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
73 (strfromf64): Likewise.
74 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
75 (strfromf32x): Likewise.
76 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
77 (strfromf64x): Likewise.
78 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
79 (strfromf128x): Likewise.
80 [__USE_GNU && __HAVE_FLOAT16] (strtof16_l): Likewise.
81 [__USE_GNU && __HAVE_FLOAT32] (strtof32_l): Likewise.
82 [__USE_GNU && __HAVE_FLOAT64] (strtof64_l): Likewise.
83 [__USE_GNU && __HAVE_FLOAT32X] (strtof32x_l): Likewise.
84 [__USE_GNU && __HAVE_FLOAT64X] (strtof64x_l): Likewise.
85 [__USE_GNU && __HAVE_FLOAT128X] (strtof128x_l): Likewise.
86
87 2017-11-03 Richard Henderson <rth@twiddle.net>
88
89 * sysdeps/unix/sysv/linux/aarch64/sysconf.c: New file.
90
91 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
92
93 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Optimize.
94
95 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
96
97 * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Remove
98 DT_TLSDESC_GOT initialization.
99 * sysdeps/arm/dl-tlsdesc.S (_dl_tlsdesc_lazy_resolver): Remove.
100 (_dl_tlsdesc_resolve_hold): Likewise.
101 * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_lazy_resolver): Remove.
102 (_dl_tlsdesc_resolve_hold): Likewise.
103 * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_lazy_resolver_fixup): Remove.
104 (_dl_tlsdesc_resolve_hold_fixup): Likewise.
105
106 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
107
108 * sysdeps/arm/dl-machine.h (elf_machine_rel): Remove volatile.
109
110 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
111
112 [BZ #18572]
113 * sysdeps/arm/dl-machine.h (elf_machine_lazy_rel): Do symbol binding
114 non-lazily for R_ARM_TLS_DESC.
115
116 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
117
118 [BZ #17078]
119 * sysdeps/arm/dl-machine.h (elf_machine_rela): Remove the
120 R_ARM_TLS_DESC case.
121 (elf_machine_lazy_rel): Remove the prelink check.
122
123 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
124
125 * sysdeps/aarch64/dl-machine.h (elf_machine_runtime_setup): Remove
126 DT_TLSDESC_GOT initialization.
127 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_return_lazy): Remove.
128 (_dl_tlsdesc_resolve_rela): Likewise.
129 (_dl_tlsdesc_resolve_hold): Likewise.
130 (_dl_tlsdesc_undefweak): Remove ldar.
131 (_dl_tlsdesc_dynamic): Likewise.
132 * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_return_lazy): Remove.
133 (_dl_tlsdesc_resolve_rela): Likewise.
134 (_dl_tlsdesc_resolve_hold): Likewise.
135 * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_resolve_rela_fixup): Remove.
136 (_dl_tlsdesc_resolve_hold_fixup): Likewise.
137 (_dl_tlsdesc_resolve_rela): Likewise.
138 (_dl_tlsdesc_resolve_hold): Likewise.
139
140 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
141
142 * sysdeps/aarch64/dl-machine.h (elf_machine_lazy_rel): Do symbol
143 binding and initialization non-lazily for R_AARCH64_TLSDESC.
144
145 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
146
147 * elf/tlsdeschtab.h (_dl_tls_resolve_early_return_p): Mark unused.
148 (_dl_tlsdesc_wake_up_held_fixups): Likewise.
149
150 2017-11-02 Joseph Myers <joseph@codesourcery.com>
151
152 * wcsmbs/wchar.h [__HAVE_FLOAT16 && __USE_GNU] (wcstof16):
153 Declare.
154 [__HAVE_FLOAT32 && __USE_GNU] (wcstof32): Likewise.
155 [__HAVE_FLOAT64 && __USE_GNU] (wcstof64): Likewise.
156 [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x): Likewise.
157 [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x): Likewise.
158 [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x): Likewise.
159 [__HAVE_FLOAT16 && __USE_GNU] (wcstof16_l): Likewise.
160 [__HAVE_FLOAT32 && __USE_GNU] (wcstof32_l): Likewise.
161 [__HAVE_FLOAT64 && __USE_GNU] (wcstof64_l): Likewise.
162 [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x_l): Likewise.
163 [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x_l): Likewise.
164 [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x_l): Likewise.
165
166 2017-11-02 Mike FABIAN <mfabian@redhat.com>
167
168 [BZ #22382]
169 * localedata/locales/tpi_PG (LC_TIME): Fix syntax error.
170 * localedata/locales/tpi_PG: Add standard header.
171
172 2017-11-02 Florian Weimer <fweimer@redhat.com>
173
174 test-errno-linux: quotactl can fail with EPERM in containers.
175 * sysdeps/unix/sysv/linux/test-errno-linux.c
176 (LIST, LIST_FORWARD): New macros.
177 (check_error_in_list): New function.
178 (test_wrp_rv): Accept list of permitted error codes.
179 (test_wrp_rv2): Remove.
180 (test_wrp): Call test_wrp_rv with list of error codes.
181 (test_wrp2): Accept list of error codes.
182 (do_test): Adjust. Allow EPERM for quotactl.
183
184 2017-11-02 Florian Weimer <fweimer@redhat.com>
185
186 * stdio-common/bug16.c (do_test): Use array_length.
187 * stdio-common/errlist.c (_sys_nerr): Likewise.
188 * stdio-common/printf_fp.c (PRINTF_FP_FETCH): Likewise.
189 * stdio-common/printf_fphex.c (__printf_fphex): Use array_end.
190 * stdio-common/psiginfo.c (psiginfo): Use array_length.
191 * stdio-common/test-vfprintf.c (nlocs): Remove definition.
192 (do_test): Use array_length.
193 * stdio-common/tst-fphex.c (do_test): Use array_end, array_length.
194 * stdio-common/tst-long-dbl-fphex.c (do_test): Use array_length.
195 * stdio-common/tst-printf-round.c (do_test): Likewise.
196 * stdio-common/tst-swprintf.c (nbuf): Remove definition.
197 (CHECK): Use array_length.
198 * stdio-common/tstdiomisc.c (t3, F): Likewise.
199 * stdio-common/tstscanf.c (main): Likewise.
200 * stdio-common/vfprintf.c (process_string_arg): Likewise.
201
202 2017-11-02 Florian Weimer <fweimer@redhat.com>
203
204 Add array_length and array_end macros.
205 * include/array_length.h: New file.
206
207 2017-11-02 Florian Weimer <fweimer@redhat.com>
208
209 [BZ #22332]
210 * posix/tst-glob-tilde.c (do_noescape): New variable.
211 (one_test): Process it.
212 (do_test): Set do_noescape. Add unescaping test case.
213
214 2017-11-01 Joseph Myers <joseph@codesourcery.com>
215
216 * math/complex.h
217 [(__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC))
218 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Include <bits/cmathcalls.h>
219 with appropriate macros defined and undefined.
220 [(__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC))
221 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
222 [(__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC))
223 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
224 [(__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC))
225 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
226 [(__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC))
227 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
228 [(__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC))
229 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
230
231 * math/complex.h
232 [(__HAVE_DISTINCT_FLOAT128 || (__HAVE_FLOAT128 && !LIBC))
233 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Move conditional code after
234 that for long double. Do not condition define and undefine of
235 _Mdouble_complex_ on [__CFLOAT128].
236
237 2017-11-01 H.J. Lu <hongjiu.lu@intel.com>
238
239 * sysdeps/i386/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
240 of <sysdeps/generic/sysdep.h>.
241 (ALIGNARG): Removed.
242 (ASM_SIZE_DIRECTIVE): Likewise.
243 (ENTRY): Likewise.
244 (END): Likewise.
245 (ENTRY_CHK): Likewise.
246 (END_CHK): Likewise.
247 (syscall_error): Likewise.
248 (mcount): Likewise.
249 (PSEUDO_END): Likewise.
250 (L): Likewise.
251 (atom_text_section): Likewise.
252 * sysdeps/x86/sysdep.h: New file.
253 * sysdeps/x86_64/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
254 of <sysdeps/generic/sysdep.h>.
255 (ALIGNARG): Removed.
256 (ASM_SIZE_DIRECTIVE): Likewise.
257 (ENTRY): Likewise.
258 (END): Likewise.
259 (ENTRY_CHK): Likewise.
260 (END_CHK): Likewise.
261 (syscall_error): Likewise.
262 (mcount): Likewise.
263 (PSEUDO_END): Likewise.
264 (L): Likewise.
265 (atom_text_section): Likewise.
266
267 2017-10-31 Rafal Luzynski <digitalfreak@lingonborough.com>
268
269 * localedata/unicode-gen/gen_unicode_ctype.py (output_head):
270 category of LC_CTYPE set to "i18n:2012".
271 * localedata/locales/i18n_ctype: Regenerate.
272
273 2017-10-31 Yury Norov <ynorov@caviumnetworks.com>
274
275 * sysdeps/unix/sysv/linux/sigprocmask.c: Remove useless #ifdefs.
276 * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
277 * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
278 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
279
280 * sysdeps/unix/sysv/linux/ia64/sigpending.c: Remove file.
281 * sysdeps/unix/sysv/linux/s390/s390-64/sigpending.c: Likewise.
282 * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Likewise.
283 * sysdeps/unix/sysv/linux/x86_64/sigpending.c: Likewise.
284
285 2017-10-31 Joseph Myers <joseph@codesourcery.com>
286
287 * math/complex.h
288 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF16):
289 New macro.
290 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF32):
291 Likewise.
292 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF64):
293 Likewise.
294 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
295 (CMPLXF32X): Likewise.
296 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
297 (CMPLXF64X): Likewise.
298 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
299 (CMPLXF128X): Likewise.
300
301 * math/math.h
302 [__FLT_EVAL_METHOD__ == 0 || __FLT_EVAL_METHOD__ == 32]
303 (__MATH_EVAL_FMT2): Define to add 0.0f.
304
305 2017-10-31 Alan Modra <amodra@gmail.com>
306
307 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-power8.S: Don't
308 include sysdep.h.
309 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-power5+.S: Likewise.
310 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-ppc64.S: Likewise.
311 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-power8.S: Likewise.
312 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-ppc64.c: Likewise.
313 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power7.S: Likewise.
314 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power8.S: Likewise.
315 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-power5+.S: Likewise.
316 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-ppc64.S: Likewise.
317 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-power5+.S: Likewise.
318 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-ppc64.S: Likewise.
319 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: Likewise.
320 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
321 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-power5+.S: Likewise.
322 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-ppc64.S: Likewise.
323 * sysdeps/powerpc/powerpc64/multiarch/memchr-power7.S: Likewise.
324 * sysdeps/powerpc/powerpc64/multiarch/memchr-power8.S: Likewise.
325 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power4.S: Likewise.
326 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power7.S: Likewise.
327 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power8.S: Likewise.
328 * sysdeps/powerpc/powerpc64/multiarch/memcpy-a2.S: Likewise.
329 * sysdeps/powerpc/powerpc64/multiarch/memcpy-cell.S: Likewise.
330 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power4.S: Likewise.
331 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power6.S: Likewise.
332 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power7.S: Likewise.
333 * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S: Likewise.
334 * sysdeps/powerpc/powerpc64/multiarch/memmove-power7.S: Likewise.
335 * sysdeps/powerpc/powerpc64/multiarch/mempcpy-power7.S: Likewise.
336 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power7.S: Likewise.
337 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S: Likewise.
338 * sysdeps/powerpc/powerpc64/multiarch/memset-power4.S: Likewise.
339 * sysdeps/powerpc/powerpc64/multiarch/memset-power6.S: Likewise.
340 * sysdeps/powerpc/powerpc64/multiarch/memset-power7.S: Likewise.
341 * sysdeps/powerpc/powerpc64/multiarch/memset-power8.S: Likewise.
342 * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-power7.S: Likewise.
343 * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power8.S: Likewise.
344 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power7.S: Likewise.
345 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Likewise.
346 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: Likewise.
347 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power8.S: Likewise.
348 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: Likewise.
349 * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S: Likewise.
350 * sysdeps/powerpc/powerpc64/multiarch/strchr-power7.S: Likewise.
351 * sysdeps/powerpc/powerpc64/multiarch/strchr-power8.S: Likewise.
352 * sysdeps/powerpc/powerpc64/multiarch/strchr-ppc64.S: Likewise.
353 * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power7.S: Likewise.
354 * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power8.S: Likewise.
355 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power7.S: Likewise.
356 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Likewise.
357 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
358 * sysdeps/powerpc/powerpc64/multiarch/strcmp-ppc64.S: Likewise.
359 * sysdeps/powerpc/powerpc64/multiarch/strcpy-power8.S: Likewise.
360 * sysdeps/powerpc/powerpc64/multiarch/strcspn-power8.S: Likewise.
361 * sysdeps/powerpc/powerpc64/multiarch/strlen-power7.S: Likewise.
362 * sysdeps/powerpc/powerpc64/multiarch/strlen-power8.S: Likewise.
363 * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S: Likewise.
364 * sysdeps/powerpc/powerpc64/multiarch/strncase-power8.S: Likewise.
365 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power4.S: Likewise.
366 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power7.S: Likewise.
367 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
368 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
369 * sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.S: Likewise.
370 * sysdeps/powerpc/powerpc64/multiarch/strncpy-power7.S: Likewise.
371 * sysdeps/powerpc/powerpc64/multiarch/strncpy-power8.S: Likewise.
372 * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: Likewise.
373 * sysdeps/powerpc/powerpc64/multiarch/strnlen-power8.S: Likewise.
374 * sysdeps/powerpc/powerpc64/multiarch/strrchr-power7.S: Likewise.
375 * sysdeps/powerpc/powerpc64/multiarch/strrchr-power8.S: Likewise.
376 * sysdeps/powerpc/powerpc64/multiarch/strspn-power8.S: Likewise.
377 * sysdeps/powerpc/powerpc64/multiarch/strstr-power7.S: Likewise.
378
379 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-ppc64.S: Don't
380 include sysdep.h and math_ldbl_opt.h.
381
382 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-power5+.S: Don't
383 include sysdep.h and math_ldbl_opt.h. Include shlib-compat.h.
384 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-ppc64.S: Likewise.
385 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-power6.S: Likewise.
386 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-ppc64.S: Likewise.
387 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-power5+.S: Likewise.
388 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power7.S: Likewise.
389 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power8.S: Likewise.
390 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power5.S: Likewise.
391 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6.S: Likewise.
392 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6x.S: Likewise.
393 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power7.S: Likewise.
394 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power8.S: Likewise.
395 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S: Likewise.
396 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power6x.S: Likewise.
397 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power8.S: Likewise.
398 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-ppc64.S: Likewise.
399 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power5+.S: Likewise.
400 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power6x.S: Likewise.
401 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power8.S: Likewise.
402 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-ppc64.S: Likewise.
403 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf-ppc64.S: Likewise.
404 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-power5+.S: Likewise.
405 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-ppc64.S: Likewise.
406 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-power5+.S: Likewise.
407 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-ppc64.S: Likewise.
408
409 2017-10-31 Alan Modra <amodra@gmail.com>
410
411 * sysdeps/powerpc/powerpc64/multiarch/strncase_l-power7.c: Include
412 string/strncase_l.c, not string/strncase.c.
413 (USE_IN_EXTENDED_LOCALE_MODEL): Don't define.
414 (libc_hidden_def): Redefine.
415
416 2017-10-31 Alan Modra <amodra@gmail.com>
417
418 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S:
419 (__STRCMP, STRCMP, __strcasecmp_l): Define.
420 (__strcasecmp): Don't define.
421
422 2017-10-31 Alan Modra <amodra@gmail.com>
423
424 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Wrap in
425 IS_IN (libc).
426 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
427 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
428 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
429
430 2017-10-31 Alan Modra <amodra@gmail.com>
431
432 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Don't define
433 USE_AS_STPNCPY.
434
435 2017-10-31 Alan Modra <amodra@gmail.com>
436
437 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S (hidden_def):
438 Redefine only when SHARED.
439
440 2017-10-30 Joseph Myers <joseph@codesourcery.com>
441
442 * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
443 Include <bits/math-finite.h> with appropriate macros defined and
444 undefined.
445 [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
446 [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
447 [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
448 [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
449 [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
450
451 * math/math.h [!_Mfloat_] (_Mfloat_): Do not define.
452 [!_Mlong_double_] (_Mlong_double_): Likewise.
453 [!_Mfloat16_] (_Mfloat16_): Likewise.
454 [!_Mfloat32_] (_Mfloat32_): Likewise.
455 [!_Mfloat64_] (_Mfloat64_): Likewise.
456 [!_Mfloat128_] (_Mfloat128_): Likewise.
457 [!_Mfloat32x_] (_Mfloat32x_): Likewise.
458 [!_Mfloat64x_] (_Mfloat64x_): Likewise.
459 [!_Mfloat128x_] (_Mfloat128x_): Likewise.
460 (_Mdouble_): Define without indirection through those macros.
461 * math/complex.h [!_Mfloat_] (_Mfloat_): Do not define.
462 [!_Mfloat128_] (_Mfloat128_): Likewise.
463 [_Mlong_double_] (_Mlong_double_): Likewise.
464 (_Mdouble_): Define without indirection through those macros.
465 * math/Makefile [$(long-double-fcts) != yes] (math-CPPFLAGS): Do
466 not add -D_Mlong_double_=double.
467 * include/math.h [_ISOMAC] (_Mlong_double_): Do not undefine.
468 * math/test-signgam-finite-c99.c (_Mlong_double_): Likewise.
469
470 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
471
472 * sysdeps/x86/libc-start.c: Add /* !SHARED */.
473
474 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
475
476 * sysdeps/x86/libc-start.c: Reformat.
477
478 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
479
480 [BZ #22353]
481 * sysdeps/i386/i586/strcpy.S (STRCPY): Use conditional branches.
482 (1): Renamed to ...
483 (L(Src0)): This.
484 (L(Src1)): New.
485 (L(Src2)): Likewise.
486 (L(1)): Renamed to ...
487 (L(Src3)): This.
488
489 2017-10-30 Joseph Myers <joseph@codesourcery.com>
490
491 * math/math.h [__HAVE_FLOAT16 && __USE_GNU] (M_Ef16): New macro.
492 [__HAVE_FLOAT16 && __USE_GNU] (M_LOG2Ef16): Likewise.
493 [__HAVE_FLOAT16 && __USE_GNU] (M_LOG10Ef16): Likewise.
494 [__HAVE_FLOAT16 && __USE_GNU] (M_LN2f16): Likewise.
495 [__HAVE_FLOAT16 && __USE_GNU] (M_LN10f16): Likewise.
496 [__HAVE_FLOAT16 && __USE_GNU] (M_PIf16): Likewise.
497 [__HAVE_FLOAT16 && __USE_GNU] (M_PI_2f16): Likewise.
498 [__HAVE_FLOAT16 && __USE_GNU] (M_PI_4f16): Likewise.
499 [__HAVE_FLOAT16 && __USE_GNU] (M_1_PIf16): Likewise.
500 [__HAVE_FLOAT16 && __USE_GNU] (M_2_PIf16): Likewise.
501 [__HAVE_FLOAT16 && __USE_GNU] (M_2_SQRTPIf16): Likewise.
502 [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT2f16): Likewise.
503 [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT1_2f16): Likewise.
504 [__HAVE_FLOAT32 && __USE_GNU] (M_Ef32): Likewise.
505 [__HAVE_FLOAT32 && __USE_GNU] (M_LOG2Ef32): Likewise.
506 [__HAVE_FLOAT32 && __USE_GNU] (M_LOG10Ef32): Likewise.
507 [__HAVE_FLOAT32 && __USE_GNU] (M_LN2f32): Likewise.
508 [__HAVE_FLOAT32 && __USE_GNU] (M_LN10f32): Likewise.
509 [__HAVE_FLOAT32 && __USE_GNU] (M_PIf32): Likewise.
510 [__HAVE_FLOAT32 && __USE_GNU] (M_PI_2f32): Likewise.
511 [__HAVE_FLOAT32 && __USE_GNU] (M_PI_4f32): Likewise.
512 [__HAVE_FLOAT32 && __USE_GNU] (M_1_PIf32): Likewise.
513 [__HAVE_FLOAT32 && __USE_GNU] (M_2_PIf32): Likewise.
514 [__HAVE_FLOAT32 && __USE_GNU] (M_2_SQRTPIf32): Likewise.
515 [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT2f32): Likewise.
516 [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT1_2f32): Likewise.
517 [__HAVE_FLOAT64 && __USE_GNU] (M_Ef64): Likewise.
518 [__HAVE_FLOAT64 && __USE_GNU] (M_LOG2Ef64): Likewise.
519 [__HAVE_FLOAT64 && __USE_GNU] (M_LOG10Ef64): Likewise.
520 [__HAVE_FLOAT64 && __USE_GNU] (M_LN2f64): Likewise.
521 [__HAVE_FLOAT64 && __USE_GNU] (M_LN10f64): Likewise.
522 [__HAVE_FLOAT64 && __USE_GNU] (M_PIf64): Likewise.
523 [__HAVE_FLOAT64 && __USE_GNU] (M_PI_2f64): Likewise.
524 [__HAVE_FLOAT64 && __USE_GNU] (M_PI_4f64): Likewise.
525 [__HAVE_FLOAT64 && __USE_GNU] (M_1_PIf64): Likewise.
526 [__HAVE_FLOAT64 && __USE_GNU] (M_2_PIf64): Likewise.
527 [__HAVE_FLOAT64 && __USE_GNU] (M_2_SQRTPIf64): Likewise.
528 [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT2f64): Likewise.
529 [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT1_2f64): Likewise.
530 [__HAVE_FLOAT32X && __USE_GNU] (M_Ef32x): Likewise.
531 [__HAVE_FLOAT32X && __USE_GNU] (M_LOG2Ef32x): Likewise.
532 [__HAVE_FLOAT32X && __USE_GNU] (M_LOG10Ef32x): Likewise.
533 [__HAVE_FLOAT32X && __USE_GNU] (M_LN2f32x): Likewise.
534 [__HAVE_FLOAT32X && __USE_GNU] (M_LN10f32x): Likewise.
535 [__HAVE_FLOAT32X && __USE_GNU] (M_PIf32x): Likewise.
536 [__HAVE_FLOAT32X && __USE_GNU] (M_PI_2f32x): Likewise.
537 [__HAVE_FLOAT32X && __USE_GNU] (M_PI_4f32x): Likewise.
538 [__HAVE_FLOAT32X && __USE_GNU] (M_1_PIf32x): Likewise.
539 [__HAVE_FLOAT32X && __USE_GNU] (M_2_PIf32x): Likewise.
540 [__HAVE_FLOAT32X && __USE_GNU] (M_2_SQRTPIf32x): Likewise.
541 [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT2f32x): Likewise.
542 [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT1_2f32x): Likewise.
543 [__HAVE_FLOAT64X && __USE_GNU] (M_Ef64x): Likewise.
544 [__HAVE_FLOAT64X && __USE_GNU] (M_LOG2Ef64x): Likewise.
545 [__HAVE_FLOAT64X && __USE_GNU] (M_LOG10Ef64x): Likewise.
546 [__HAVE_FLOAT64X && __USE_GNU] (M_LN2f64x): Likewise.
547 [__HAVE_FLOAT64X && __USE_GNU] (M_LN10f64x): Likewise.
548 [__HAVE_FLOAT64X && __USE_GNU] (M_PIf64x): Likewise.
549 [__HAVE_FLOAT64X && __USE_GNU] (M_PI_2f64x): Likewise.
550 [__HAVE_FLOAT64X && __USE_GNU] (M_PI_4f64x): Likewise.
551 [__HAVE_FLOAT64X && __USE_GNU] (M_1_PIf64x): Likewise.
552 [__HAVE_FLOAT64X && __USE_GNU] (M_2_PIf64x): Likewise.
553 [__HAVE_FLOAT64X && __USE_GNU] (M_2_SQRTPIf64x): Likewise.
554 [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT2f64x): Likewise.
555 [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT1_2f64x): Likewise.
556 [__HAVE_FLOAT128X && __USE_GNU]: Use #error.
557
558 2017-10-30 Florian Weimer <fweimer@redhat.com>
559
560 * elf/ldconfig.c (search_dir): Assume that _DIRENT_HAVE_D_TYPE is
561 always defined.
562 * io/tst-mkdirat.c (do_test): Likewise.
563 * io/tst-mkfifoat.c (do_test): Likewise.
564 * io/tst-mknodat.c (do_test): Likewise.
565 * locale/programs/charmap-dir.c (charmap_readdir): Likewise.
566 * locale/programs/locale.c (select_dirs): Likewise.
567 * locale/programs/locarchive.c (add_locales_to_archive): Likewise.
568 * posix/bug-glob2.c (my_readdir): Likewise.
569 * posix/tst-dir.c (main): Likewise.
570 * posix/tst-glob_lstat_compat.c (my_readdir): Likewise.
571 * posix/tst-gnuglob-skeleton.c (my_readdir): Likewise.
572
573 2017-10-30 Florian Weimer <fweimer@redhat.com>
574
575 * string/strings.h (ffsl, ffsll): Declare under __USE_MISC, not
576 just __USE_GNU.
577
578 2017-10-30 Florian Weimer <fweimer@redhat.com>
579
580 * posix/tst-gnuglob-skeleton.c: Renamed from tst-gnuglob.c.
581 Convert to support/test-driver.c.
582 (GLOB_FUNC, GLOB_TYPE, GLOBFREE_FUNC, DIRENT_STRUCT, STAT_STRUCT):
583 New macro parameters.
584 (PRINTF): Remove macro. Use test_verbose conditionals instead.
585 * posix/tst-gnuglob.c: New file.
586 * posix/tst-gnuglob64.c: Likewise.
587 * posix/Makefile (tests): Add tst-gnuglob64.
588
589 2017-10-30 Michal Ostrowski <ostrowski.michal@gmail.com>
590
591 [BZ #19485]
592 * localedata/locales/csb_PL (LC_TIME): Fix “abmon” for March
593 and use a better translation for March in “mon”.
594 * localedata/locales/csb_PL: Use more ASCII to improve the
595 readability of the source.
596
597 2017-10-30 Mike FABIAN <mfabian@redhat.com>
598
599 [BZ #13953]
600 * localedata/locales/km_KH: Use ASCII as much
601 as possible for better readability of the source and
602 remove useless comments.
603 * localedata/locales/km_KH (LC_TIME): Remove era stuff, it
604 was commented out and apparently wrong anyway because it was
605 using Lao characters. If Buddhist era should be used
606 for km_KH, a native speaker should write the correct formaat
607 for Khmer.
608 * localedata/locales/km_KH (LC_TIME): Add first_weekday 1
609 (According to CLDR, the first weekday for Cambodia is Sunday).
610 * localedata/locales/km_KH (LC_NAME): Remove name_mr and name_mrs
611 (These were using Lao characters which must be wrong. If we get
612 the correct data from a native speaker, we could add it back, until
613 then it is better not to have name_mr and name_mrs at all than
614 having it wrong).
615
616 2017-10-27 Rafal Luzynski <digitalfreak@lingonborough.com>
617
618 * locale/loadlocale.c: Correct size of
619 _nl_value_type_LC_<category> arrays.
620
621 2017-10-27 Joseph Myers <joseph@codesourcery.com>
622
623 * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
624 Include <bits/mathcalls-helper-functions.h> and <bits/mathcalls.h>
625 with appropriate macros defined and undefined.
626 [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
627 [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
628 [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
629 [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
630 [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
631
632 2017-10-27 H.J. Lu <hongjiu.lu@intel.com>
633
634 * sysdeps/i386/fpu/libm-test-ulps: Regenerated for GCC 7 with
635 "-O2 -march=i586".
636
637 2017-10-27 Mike FABIAN <mfabian@redhat.com>
638
639 * localedata/locales/tt_RU (LC_MESSAGES): Start yesstr and nostr
640 with lowercase letters to make it agree with CLDR.
641
642 2017-10-27 Mike FABIAN <mfabian@redhat.com>
643
644 [BZ #15260]
645 * localedata/locales/doi_IN (LC_MESSAGES): Match only for the
646 first letters of yesstr and nostr in yesexpr and noexpr,
647 not for the full words.
648 * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
649 * localedata/locales/kok_IN (LC_MESSAGES): Likewise.
650 * localedata/locales/mr_IN (LC_MESSAGES): Likewise.
651 * localedata/locales/sat_IN (LC_MESSAGES): Likewise.
652 * localedata/locales/km_KH (LC_MESSAGES): Match also for the
653 first letters of yesstr and nostr in yesexpr and noexpr,
654 until now only English was matched in yesexpr and noexpr.
655 * localedata/locales/tl_PH (LC_MESSAGES): Use “copy "fil_PH"”
656 instead of “copy "en_US"”. CLDR has yesstr and nostr data for
657 fil but not for tl. As tl and fil are very similar, using fil
658 is probably better than using English.
659
660 2017-10-27 Thierry Vignaud <thierry.vignaud@gmail.com>
661
662 [BZ #21706]
663 * localedata/locales/br_FR (LC_MESSAGES): Use all lowercase
664 in yesstr and nostr.
665
666 2017-10-26 Joseph Myers <joseph@codesourcery.com>
667
668 * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
669 (IEC_60559_TYPES_EXT)] (SNANF16): New macro.
670 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32):
671 Likewise.
672 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64):
673 Likewise.
674 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32X):
675 Likewise.
676 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64X):
677 Likewise.
678 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
679 (SNANF128X): Likewise.
680
681 * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
682 (IEC_60559_TYPES_EXT)] (HUGE_VAL_F16): New macro.
683 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
684 (HUGE_VAL_F32): Likewise.
685 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
686 (HUGE_VAL_F64): Likewise.
687 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
688 (HUGE_VAL_F32X): Likewise.
689 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
690 (HUGE_VAL_F64X): Likewise.
691 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
692 (HUGE_VAL_F128X): Likewise.
693
694 2017-10-26 Thierry Vignaud <thierry.vignaud@gmail.com>
695
696 * localedata/locales/br_FR (LC_IDENTIFICATON): Add
697 Thierry Vignaud <thierry.vignaud@gmail.com> as the contact
698 for the br_FR locale.
699
700 2017-10-26 Thierry Vignaud <thierry.vignaud@gmail.com>
701
702 [BZ #21706]
703 * localedata/locales/br_FR (LC_MESSAGES): Fix nostr.
704
705 2017-10-25 Carlos O'Donell <carlos@redhat.com>
706
707 * locale/programs/record-status.h: Define globals, and function
708 prototypes. Move function bodies...
709 * locale/programs/record-status.c: ... to here. New file.
710 * iconv/Makefile (iconv_prog-modules): Add record-status.
711 * locale/Makefile (lib-modules): Likewise.
712 * iconv/iconv_prog.c: Remove verbose.
713 * iconv/iconv_prog.h: Include record-status.h (defines verbose).
714 * locale/programs/charmap.c (charmap_read): If warn_ascii is true then
715 record a warning about ASCII compatibility.
716 * locale/programs/ld-monetary.c (monetary_finish): If
717 warn_int_curr_symbol is true then record a warning about the symbol
718 not being in our ISO 4217 list.
719 * locale/programs/locale.c: Include record-status.h. Remove verbose.
720 * locale/programs/localedef.c: Include ctype.h. Remove delcaration of
721 verbose, recorded_warning_count, recorded_error_count, and be_quiet.
722 (OPT_NO_WARN): Define.
723 (OPT_WARN): Define.
724 (options): Add entry for --no-warnings, and --warnings.
725 (set_warnings): New function to enable/disable warnings.
726 (parse_opt): Call set_warnings for OPT_NO_WARN and OPT_WARN.
727 * locale/programs/localedef.h: Remove warn_int_curr_symbol.
728 * localedata/gen-locale.sh: Default flags to `--quiet -c'.
729 Add `--no-warnings=ascii' to locales using SHIFT_JIS or SHIFT_JIXX0213.
730 Pass flags to generate_locale.
731 (generate_locale): Accept new flag argument and pass it to localedef
732 invocation.
733 * localedata/Makefile (INSTALL-SUPPORTED-LOCALES): Use
734 --no-warnings=ascii for SHIFT_JIS and SHIFT_JISX0213 charmaps.
735
736 * localedata/Makefile (test-input-data): Use full file name.
737 * localedata/da_DK.in: Rename to...
738 * localedata/da_DK.ISO-8859-1.in: ...this.
739 * localedata/de_DE.in: Rename to...
740 * localedata/de_DE.ISO-8859-1.in: ...this.
741 * localedata/en_US.in: Rename to...
742 * localedata/en_US.ISO-8859-1.in: ...this.
743 * localedata/fr_FR.in: Rename to...
744 * localedata/fr_FR.UTF-8.in: ... this.
745 * localedata/hr_HR.in: Rename to...
746 * localedata/hr_HR.ISO-8859-2.in: ...this.
747 * localedata/hu_HU.in: Rename to...
748 * localedata/hu_HU.UTF-8.in: ...this.
749 * localedata/si_LK.in: Rename to...
750 * localedata/si_LK.UTF-8.in: ...this.
751 * localedata/sv_SE.in: Rename to...
752 * localedata/sv_SE.ISO-8859-1.in: ...this.
753 * localedata/tr_TR.in: Rename to...
754 * localedata/tr_TR.UTF-8.in: ...this.
755 * localedata/uk_UA.in: Rename to...
756 * localedata/uk_UA.UTF-8.in: ...this.
757 * localedata/sort-test.sh: Test file is locale name with the
758 suffix.
759
760 * localedata/unicode-gen/Makefile (check_i18n): Rename to
761 check_i18n_ctype. Depend on i18n_ctype-report. Check i18n_ctype-report
762 file.
763 * localedata/locales/i18n_ctype: Regenerate.
764 * localedata/locales/tr_TR: Likewise.
765 * localedata/locales/translit_circle: Likewise.
766 * localedata/locales/translit_cjk_compat: Likewise.
767 * localedata/locales/translit_combining: Likewise.
768 * localedata/locales/translit_compat: Likewise.
769 * localedata/locales/translit_font: Likewise.
770 * localedata/locales/translit_fraction: Likewise.
771
772 2017-10-25 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
773
774 * sysdeps/powerpc/powerpc64/power7/memcpy.S: Replace
775 lxvd2x/stxvd2x with lvx/stvx.
776 * sysdeps/powerpc/powerpc64/power7/memmove.S: Likewise.
777
778 2017-10-25 H.J. Lu <hongjiu.lu@intel.com>
779
780 * include/alloc_buffer.h: Replace "if if " with "if " in
781 comments.
782 * sysdeps/mips/memcpy.S: Likkewise.
783 * sysdeps/mips/memset.S: Likewise.
784 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
785 Likewise.
786 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S:
787 Likewise.
788 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S:
789 Likewise.
790
791 2017-10-25 Mike FABIAN <mfabian@redhat.com>
792
793 [BZ #15261]
794 * localedata/locales/cmn_TW (LC_MESSAGES): Add fullwidth yYnN to
795 yesexpr and noexpr.
796 * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
797 * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
798 * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
799 * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
800 * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
801 * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
802 * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
803
804 2017-10-25 Mike FABIAN <mfabian@redhat.com>
805
806 * localedata/locales/am_ET (LC_MESSAGES): Sync with CLDR.
807 * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
808 * localedata/locales/el_GR (LC_MESSAGES): Likewise.
809 * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
810 * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
811 * localedata/locales/mfe_MU (LC_MESSAGES): Likewise.
812 * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
813 * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
814 * localedata/locales/os_RU (LC_MESSAGES): Likewise.
815 * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
816 * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
817 * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
818
819 2017-10-25 Mike FABIAN <mfabian@redhat.com>
820
821 * localedata/locales/aa_ET (LC_MESSAGES): Use ASCII as much
822 as possible for better readability of the source.
823 * localedata/locales/af_ZA (LC_MESSAGES): Likewise.
824 * localedata/locales/ak_GH (LC_MESSAGES): Likewise.
825 * localedata/locales/am_ET (LC_MESSAGES): Likewise.
826 * localedata/locales/anp_IN (LC_MESSAGES): Likewise.
827 * localedata/locales/ar_EG (LC_MESSAGES): Likewise.
828 * localedata/locales/as_IN (LC_MESSAGES): Likewise.
829 * localedata/locales/ast_ES (LC_MESSAGES): Likewise.
830 * localedata/locales/ayc_PE (LC_MESSAGES): Likewise.
831 * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
832 * localedata/locales/az_IR (LC_MESSAGES): Likewise.
833 * localedata/locales/be_BY (LC_MESSAGES): Likewise.
834 * localedata/locales/be_BY@latin (LC_MESSAGES): Likewise.
835 * localedata/locales/bem_ZM (LC_MESSAGES): Likewise.
836 * localedata/locales/ber_MA (LC_MESSAGES): Likewise.
837 * localedata/locales/bg_BG (LC_MESSAGES): Likewise.
838 * localedata/locales/bhb_IN (LC_MESSAGES): Likewise.
839 * localedata/locales/bi_VU (LC_MESSAGES): Likewise.
840 * localedata/locales/bo_CN (LC_MESSAGES): Likewise.
841 * localedata/locales/br_FR (LC_MESSAGES): Likewise.
842 * localedata/locales/bs_BA (LC_MESSAGES): Likewise.
843 * localedata/locales/ca_ES (LC_MESSAGES): Likewise.
844 * localedata/locales/ce_RU (LC_MESSAGES): Likewise.
845 * localedata/locales/crh_UA (LC_MESSAGES): Likewise.
846 * localedata/locales/cs_CZ (LC_MESSAGES): Likewise.
847 * localedata/locales/csb_PL (LC_MESSAGES): Likewise.
848 * localedata/locales/cv_RU (LC_MESSAGES): Likewise.
849 * localedata/locales/cy_GB (LC_MESSAGES): Likewise.
850 * localedata/locales/da_DK (LC_MESSAGES): Likewise.
851 * localedata/locales/de_DE (LC_MESSAGES): Likewise.
852 * localedata/locales/dv_MV (LC_MESSAGES): Likewise.
853 * localedata/locales/dz_BT (LC_MESSAGES): Likewise.
854 * localedata/locales/el_GR (LC_MESSAGES): Likewise.
855 * localedata/locales/en_CA (LC_MESSAGES): Likewise.
856 * localedata/locales/en_US (LC_MESSAGES): Likewise.
857 * localedata/locales/es_ES (LC_MESSAGES): Likewise.
858 * localedata/locales/et_EE (LC_MESSAGES): Likewise.
859 * localedata/locales/eu_ES (LC_MESSAGES): Likewise.
860 * localedata/locales/fa_IR (LC_MESSAGES): Likewise.
861 * localedata/locales/ff_SN (LC_MESSAGES): Likewise.
862 * localedata/locales/fi_FI (LC_MESSAGES): Likewise.
863 * localedata/locales/fil_PH (LC_MESSAGES): Likewise.
864 * localedata/locales/fo_FO (LC_MESSAGES): Likewise.
865 * localedata/locales/fr_BE (LC_MESSAGES): Likewise.
866 * localedata/locales/fr_CH (LC_MESSAGES): Likewise.
867 * localedata/locales/fr_FR (LC_MESSAGES): Likewise.
868 * localedata/locales/fr_LU (LC_MESSAGES): Likewise.
869 * localedata/locales/fur_IT (LC_MESSAGES): Likewise.
870 * localedata/locales/fy_DE (LC_MESSAGES): Likewise.
871 * localedata/locales/ga_IE (LC_MESSAGES): Likewise.
872 * localedata/locales/gd_GB (LC_MESSAGES): Likewise.
873 * localedata/locales/gl_ES (LC_MESSAGES): Likewise.
874 * localedata/locales/gu_IN (LC_MESSAGES): Likewise.
875 * localedata/locales/gv_GB (LC_MESSAGES): Likewise.
876 * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
877 * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
878 * localedata/locales/he_IL (LC_MESSAGES): Likewise.
879 * localedata/locales/hif_FJ (LC_MESSAGES): Likewise.
880 * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
881 * localedata/locales/hr_HR (LC_MESSAGES): Likewise.
882 * localedata/locales/hsb_DE (LC_MESSAGES): Likewise.
883 * localedata/locales/ht_HT (LC_MESSAGES): Likewise.
884 * localedata/locales/hu_HU (LC_MESSAGES): Likewise.
885 * localedata/locales/hy_AM (LC_MESSAGES): Likewise.
886 * localedata/locales/ia_FR (LC_MESSAGES): Likewise.
887 * localedata/locales/id_ID (LC_MESSAGES): Likewise.
888 * localedata/locales/ig_NG (LC_MESSAGES): Likewise.
889 * localedata/locales/ik_CA (LC_MESSAGES): Likewise.
890 * localedata/locales/is_IS (LC_MESSAGES): Likewise.
891 * localedata/locales/it_CH (LC_MESSAGES): Likewise.
892 * localedata/locales/it_IT (LC_MESSAGES): Likewise.
893 * localedata/locales/iu_CA (LC_MESSAGES): Likewise.
894 * localedata/locales/ja_JP (LC_MESSAGES): Likewise.
895 * localedata/locales/kk_KZ (LC_MESSAGES): Likewise.
896 * localedata/locales/kl_GL (LC_MESSAGES): Likewise.
897 * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
898 * localedata/locales/ks_IN (LC_MESSAGES): Likewise.
899 * localedata/locales/ku_TR (LC_MESSAGES): Likewise.
900 * localedata/locales/kw_GB (LC_MESSAGES): Likewise.
901 * localedata/locales/ky_KG (LC_MESSAGES): Likewise.
902 * localedata/locales/lb_LU (LC_MESSAGES): Likewise.
903 * localedata/locales/lg_UG (LC_MESSAGES): Likewise.
904 * localedata/locales/li_NL (LC_MESSAGES): Likewise.
905 * localedata/locales/lij_IT (LC_MESSAGES): Likewise.
906 * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
907 * localedata/locales/lo_LA (LC_MESSAGES): Likewise.
908 * localedata/locales/lt_LT (LC_MESSAGES): Likewise.
909 * localedata/locales/lv_LV (LC_MESSAGES): Likewise.
910 * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
911 * localedata/locales/mg_MG (LC_MESSAGES): Likewise.
912 * localedata/locales/mhr_RU (LC_MESSAGES): Likewise.
913 * localedata/locales/mi_NZ (LC_MESSAGES): Likewise.
914 * localedata/locales/mk_MK (LC_MESSAGES): Likewise.
915 * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
916 * localedata/locales/mn_MN (LC_MESSAGES): Likewise.
917 * localedata/locales/ms_MY (LC_MESSAGES): Likewise.
918 * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
919 * localedata/locales/my_MM (LC_MESSAGES): Likewise.
920 * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
921 * localedata/locales/nan_TW@latin (LC_MESSAGES): Likewise.
922 * localedata/locales/nb_NO (LC_MESSAGES): Likewise.
923 * localedata/locales/nds_DE (LC_MESSAGES): Likewise.
924 * localedata/locales/nds_NL (LC_MESSAGES): Likewise.
925 * localedata/locales/ne_NP (LC_MESSAGES): Likewise.
926 * localedata/locales/nhn_MX (LC_MESSAGES): Likewise.
927 * localedata/locales/niu_NU (LC_MESSAGES): Likewise.
928 * localedata/locales/nl_NL (LC_MESSAGES): Likewise.
929 * localedata/locales/nn_NO (LC_MESSAGES): Likewise.
930 * localedata/locales/nr_ZA (LC_MESSAGES): Likewise.
931 * localedata/locales/nso_ZA (LC_MESSAGES): Likewise.
932 * localedata/locales/oc_FR (LC_MESSAGES): Likewise.
933 * localedata/locales/om_ET (LC_MESSAGES): Likewise.
934 * localedata/locales/or_IN (LC_MESSAGES): Likewise.
935 * localedata/locales/os_RU (LC_MESSAGES): Likewise.
936 * localedata/locales/pa_IN (LC_MESSAGES): Likewise.
937 * localedata/locales/pa_PK (LC_MESSAGES): Likewise.
938 * localedata/locales/pap_AW (LC_MESSAGES): Likewise.
939 * localedata/locales/pap_CW (LC_MESSAGES): Likewise.
940 * localedata/locales/pl_PL (LC_MESSAGES): Likewise.
941 * localedata/locales/ps_AF (LC_MESSAGES): Likewise.
942 * localedata/locales/pt_BR (LC_MESSAGES): Likewise.
943 * localedata/locales/quz_PE (LC_MESSAGES): Likewise.
944 * localedata/locales/raj_IN (LC_MESSAGES): Likewise.
945 * localedata/locales/ro_RO (LC_MESSAGES): Likewise.
946 * localedata/locales/ru_RU (LC_MESSAGES): Likewise.
947 * localedata/locales/ru_UA (LC_MESSAGES): Likewise.
948 * localedata/locales/rw_RW (LC_MESSAGES): Likewise.
949 * localedata/locales/sa_IN (LC_MESSAGES): Likewise.
950 * localedata/locales/sc_IT (LC_MESSAGES): Likewise.
951 * localedata/locales/sd_IN@devanagari (LC_MESSAGES): Likewise.
952 * localedata/locales/se_NO (LC_MESSAGES): Likewise.
953 * localedata/locales/sgs_LT (LC_MESSAGES): Likewise.
954 * localedata/locales/si_LK (LC_MESSAGES): Likewise.
955 * localedata/locales/sk_SK (LC_MESSAGES): Likewise.
956 * localedata/locales/sl_SI (LC_MESSAGES): Likewise.
957 * localedata/locales/sm_WS (LC_MESSAGES): Likewise.
958 * localedata/locales/so_DJ (LC_MESSAGES): Likewise.
959 * localedata/locales/sq_AL (LC_MESSAGES): Likewise.
960 * localedata/locales/sr_RS (LC_MESSAGES): Likewise.
961 * localedata/locales/sr_RS@latin (LC_MESSAGES): Likewise.
962 * localedata/locales/ss_ZA (LC_MESSAGES): Likewise.
963 * localedata/locales/st_ZA (LC_MESSAGES): Likewise.
964 * localedata/locales/sv_SE (LC_MESSAGES): Likewise.
965 * localedata/locales/sw_KE (LC_MESSAGES): Likewise.
966 * localedata/locales/szl_PL (LC_MESSAGES): Likewise.
967 * localedata/locales/tcy_IN (LC_MESSAGES): Likewise.
968 * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
969 * localedata/locales/th_TH (LC_MESSAGES): Likewise.
970 * localedata/locales/the_NP (LC_MESSAGES): Likewise.
971 * localedata/locales/ti_ER (LC_MESSAGES): Likewise.
972 * localedata/locales/tk_TM (LC_MESSAGES): Likewise.
973 * localedata/locales/tn_ZA (LC_MESSAGES): Likewise.
974 * localedata/locales/to_TO (LC_MESSAGES): Likewise.
975 * localedata/locales/tr_TR (LC_MESSAGES): Likewise.
976 * localedata/locales/ts_ZA (LC_MESSAGES): Likewise.
977 * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
978 * localedata/locales/tt_RU@iqtelif (LC_MESSAGES): Likewise.
979 * localedata/locales/uk_UA (LC_MESSAGES): Likewise.
980 * localedata/locales/unm_US (LC_MESSAGES): Likewise.
981 * localedata/locales/ur_IN (LC_MESSAGES): Likewise.
982 * localedata/locales/ur_PK (LC_MESSAGES): Likewise.
983 * localedata/locales/uz_UZ (LC_MESSAGES): Likewise.
984 * localedata/locales/uz_UZ@cyrillic (LC_MESSAGES): Likewise.
985 * localedata/locales/ve_ZA (LC_MESSAGES): Likewise.
986 * localedata/locales/vi_VN (LC_MESSAGES): Likewise.
987 * localedata/locales/wa_BE (LC_MESSAGES): Likewise.
988 * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
989 * localedata/locales/xh_ZA (LC_MESSAGES): Likewise.
990 * localedata/locales/yi_US (LC_MESSAGES): Likewise.
991 * localedata/locales/yo_NG (LC_MESSAGES): Likewise.
992 * localedata/locales/yue_HK (LC_MESSAGES): Likewise.
993 * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
994 * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
995 * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
996 * localedata/locales/zu_ZA (LC_MESSAGES): Likewise.
997
998 2017-10-25 Mike FABIAN <mfabian@redhat.com>
999
1000 * localedata/locales/brx_IN (LC_MESSAGES): Fix yesexpr and noexpr
1001 (Use first letters of yesstr and nostr correctly instead of using
1002 full words).
1003
1004 2017-10-25 Mike FABIAN <mfabian@redhat.com>
1005
1006 * localedata/locales/ta_IN (LC_MESSAGES): Fix yesexpr and noexpr
1007 (Use first letters of yesstr and nostr correctly).
1008
1009 2017-10-25 Mike FABIAN <mfabian@redhat.com>
1010
1011 * localedata/locales/hi_IN (LC_MESSAGES): In yesexpr and noexpr,
1012 also check for the first characters of yesstr and nostr.
1013 * localedata/locales/kn_IN (LC_MESSAGES): Likewise.
1014 * localedata/locales/ks_IN@devanagari (LC_MESSAGES): Likewise.
1015
1016 2017-10-25 Mike FABIAN <mfabian@redhat.com>
1017
1018 * localedata/locales/cmn_TW (LC_MESSAGES): In yesexpr and noexpr,
1019 also check for Chinese characters.
1020
1021 2017-10-25 Mike FABIAN <mfabian@redhat.com>
1022
1023 * localedata/locales/chr_US (LC_MESSAGES): In yesexpr and noexpr,
1024 match also for the contents of yesstr and nostr. As the first letter
1025 of yesstr and nostr is equal, checking only for the first letter
1026 is not enough.
1027
1028 2017-10-25 Mike FABIAN <mfabian@redhat.com>
1029
1030 * localedata/locales/ber_DZ (LC_MESSAGES): Use copy "kab_DZ",
1031 it is the same according to Belkacem Mohammed <belkacem77@gmail.com>.
1032
1033 2017-10-25 Mike FABIAN <mfabian@redhat.com>
1034
1035 * localedata/locales/kab_DZ (LC_IDENTIFICATION): Add e-mail
1036 of main contributor.
1037
1038 2017-10-25 Mike FABIAN <mfabian@redhat.com>
1039
1040 * localedata/locales/zh_SG (LC_MESSAGES): Use copy "zh_CN"
1041 instead of using English.
1042
1043 2017-10-25 Mike FABIAN <mfabian@redhat.com>
1044
1045 * localedata/locales/ug_CN (LC_MESSAGES): Fix noexpr and yesexpr
1046 by including the first letters of nostr and yesexpr in the regexp.
1047 Also make it more readable by using ASCII where possible.
1048
1049 2017-10-25 Mike FABIAN <mfabian@redhat.com>
1050
1051 * localedata/locales/te_IN (LC_MESSAGES): Fix noexpr by including
1052 the first letter of nostr in the regexp. It agrees with CLDR now.
1053 Also make it more readable by using ASCII where possible.
1054
1055 2017-10-24 Mike FABIAN <mfabian@redhat.com>
1056
1057 * localedata/locales/km_KH (LC_MESSAGES): Fix yestr and nostr.
1058 The yesstr and nostr apparently came from CLDR. And CLDR has a bug there:
1059 these strings contain a U+17D6 (which somewhat looks like a colon)
1060 instead of a real colon to separate the full words for “yes”
1061 and “no” from the single letter responses.
1062
1063 2017-10-24 Mike FABIAN <mfabian@redhat.com>
1064
1065 * localedata/locales/ka_GE (LC_MESSAGES): Fix yesexp to make
1066 it agree with CLDR (include the first letter of yesstr).
1067 Also make it more readable by using ASCII where possible.
1068
1069 2017-10-24 Mike FABIAN <mfabian@redhat.com>
1070
1071 * localedata/locales/mr_IN (LC_MESSAGES): Fix yesstr and nostr
1072 and improve yesexpr and noexpr. The yesstr and nostr apparently
1073 came from CLDR. And CLDR has a bug there: these strings contain
1074 a U+0903 (which looks like a colon) instead of a real colon
1075 to separate the full words for “yes” and “no” from the single
1076 letter responses.
1077
1078 2017-10-24 Mike FABIAN <mfabian@redhat.com>
1079
1080 * localedata/locales/bn_BD (LC_MESSAGES): Use only the first
1081 letters of the full yesstr and nostr in yesexpr and noexpr.
1082
1083 2017-10-24 Mike FABIAN <mfabian@redhat.com>
1084
1085 * localedata/locales/an_ES (LC_MESSAGES): Add yesstr and nostr.
1086 * localedata/locales/an_ES (LC_ADDRESS): Add lang_term and lang_lib.
1087 * localedata/locales/an_ES: Make source more readable by using ASCII
1088 where possible.
1089
1090 2017-10-24 Mike FABIAN <mfabian@redhat.com>
1091
1092 [BZ #20952]
1093 * localedata/locales/yuw_PG: New file.
1094 * localedata/SUPPORTED: Add yuw_PG/UTF-8.
1095 * locale/iso-639.def: Add Yau (Uruwa).
1096
1097 2017-10-23 Wilco Dijkstra <wdijkstr@arm.com>
1098
1099 * malloc/malloc.c (_int_malloc): Add SINGLE_THREAD_P path.
1100
1101 2017-10-23 Wilco Dijkstra <wdijkstr@arm.com>
1102
1103 * malloc/malloc.c (__libc_malloc): Add SINGLE_THREAD_P path.
1104 (__libc_realloc): Likewise.
1105 (_mid_memalign): Likewise.
1106 (__libc_calloc): Likewise.
1107
1108 2017-10-23 Mike FABIAN <mfabian@redhat.com>
1109
1110 * localedata/locales/tpi_PG (LC_MESSAGES): Fix yesexpr and noexpr
1111 by adding the generic +1 and -0 as in all other locales.
1112 * localedata/locales/tpi_PG (LC_TIME): Fix some typos in the month and
1113 day names and make it more readable by using ASCII where possible.
1114
1115 2017-10-24 Joseph Myers <joseph@codesourcery.com>
1116
1117 * sysdeps/x86/fpu/fix-fp-int-compare-invalid.h
1118 (FIX_COMPARE_INVALID): Define to 0 if [__GNUC_PREREQ (8, 0)].
1119
1120 2017-10-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1121
1122 * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Use 0 instead of
1123 WNOHANG in waitpid call.
1124
1125 2017-10-23 Siddhesh Poyarekar <siddhesh@sourceware.org>
1126
1127 * manual/conf.texi (_SC_LEVEL1_DCACHE_LINESIZE,
1128 _SC_LEVEL1_ICACHE_LINESIZE): Document aarch64 caveat.
1129
1130 * manual/conf.texi (_SC_LEVEL1_ICACHE_SIZE,
1131 _SC_LEVEL1_ICACHE_ASSOC, _SC_LEVEL1_ICACHE_LINESIZE,
1132 _SC_LEVEL1_DCACHE_SIZE, _SC_LEVEL1_DCACHE_ASSOC,
1133 _SC_LEVEL1_DCACHE_LINESIZE, _SC_LEVEL2_CACHE_SIZE,
1134 _SC_LEVEL2_CACHE_ASSOC, _SC_LEVEL2_CACHE_LINESIZE,
1135 _SC_LEVEL3_CACHE_SIZE, _SC_LEVEL3_CACHE_ASSOC,
1136 _SC_LEVEL3_CACHE_LINESIZE, _SC_LEVEL4_CACHE_SIZE,
1137 _SC_LEVEL4_CACHE_ASSOC, _SC_LEVEL4_CACHE_LINESIZE): New
1138 variables.
1139
1140 2017-10-23 Michael Collison <michael.collison@arm.com>
1141
1142 * sysdeps/aarch64/fpu/e_sqrt.c (ieee754_sqrt): Replace asm statements
1143 with __builtin_sqrt.
1144 * sysdeps/aarch64/fpu/e_sqrtf.c (ieee754_sqrtf): Replace asm statements
1145 with __builtin_sqrtf.
1146 * sysdeps/aarch64/fpu/s_ceil.c (__ceil): Replace asm statements
1147 with __builtin_ceil.
1148 * sysdeps/aarch64/fpu/s_ceilf.c (__ceilf): Replace asm statements
1149 with __builtin_ceilf.
1150 * sysdeps/aarch64/fpu/s_floor.c (__floor): Replace asm statements
1151 with __builtin_floor.
1152 * sysdeps/aarch64/fpu/s_floorf.c (__floorf): Replace asm statements
1153 with __builtin_floorf.
1154 * sysdeps/aarch64/fpu/s_fma.c (__fma): Replace asm statements
1155 with __builtin_fma.
1156 * sysdeps/aarch64/fpu/s_fmaf.c (__fmaf): Replace asm statements
1157 with __builtin_fmaf.
1158 * sysdeps/aarch64/fpu/s_fmax.c (__fmax): Replace asm statements
1159 with __builtin_fmax.
1160 * sysdeps/aarch64/fpu/s_fmaxf.c (__fmaxf): Replace asm statements
1161 with __builtin_fmaxf.
1162 * sysdeps/aarch64/fpu/s_fmin.c (__fmin): Replace asm statements
1163 with __builtin_fmin.
1164 * sysdeps/aarch64/fpu/s_fminf.c (__fminf): Replace asm statements
1165 with __builtin_fminf.
1166 * sysdeps/aarch64/fpu/s_frint.c: Delete file.
1167 * sysdeps/aarch64/fpu/s_frintf.c: Delete file.
1168 * sysdeps/aarch64/fpu/s_llrint.c (__llrint): Replace asm statements
1169 with builtin_rint and conversion to int.
1170 * sysdeps/aarch64/fpu/s_llrintf.c (__llrintf): Likewise.
1171 * sysdeps/aarch64/fpu/s_llround.c (__llround): Replace asm statements
1172 with builtin_llround.
1173 * sysdeps/aarch64/fpu/s_llroundf.c (__llroundf): Likewise.
1174 * sysdeps/aarch64/fpu/s_lrint.c (__lrint): Replace asm statements
1175 with builtin_rint and conversion to long int.
1176 * sysdeps/aarch64/fpu/s_lrintf.c (__lrintf): Likewise.
1177 * sysdeps/aarch64/fpu/s_lround.c (__lround): Replace asm statements
1178 with builtin_lround.
1179 * sysdeps/aarch64/fpu/s_lroundf.c (__lroundf): Replace asm statements
1180 with builtin_lroundf.
1181 * sysdeps/aarch64/fpu/s_nearbyint.c (__nearbyint): Replace asm
1182 statements with __builtin_nearbyint.
1183 * sysdeps/aarch64/fpu/s_nearbyintf.c (__nearbyintf): Replace asm
1184 statements with __builtin_nearbyintf.
1185 * sysdeps/aarch64/fpu/s_rint.c (__rint): Replace asm statements
1186 with __builtin_rint.
1187 * sysdeps/aarch64/fpu/s_rintf.c (__rintf): Replace asm statements
1188 with __builtin_rintf.
1189 * sysdeps/aarch64/fpu/s_round.c (__round): Replace asm statements
1190 with __builtin_round.
1191 * sysdeps/aarch64/fpu/s_roundf.c (__roundf): Replace asm statements
1192 with __builtin_roundf.
1193 * sysdeps/aarch64/fpu/s_trunc.c (__trunc): Replace asm statements
1194 with __builtin_trunc.
1195 * sysdeps/aarch64/fpu/s_truncf.c (__truncf): Replace asm statements
1196 with __builtin_truncf.
1197 * sysdeps/aarch64/fpu/Makefile: Build e_sqrt[f].c with -fno-math-errno,
1198 and s_l[l]round[f].c too.
1199
1200 2017-10-23 Alan Modra <amodra@gmail.com>
1201
1202 * sysdeps/powerpc/powerpc64/power8/strncpy.S: Move LR cfi.
1203 Adjust stack after restoring regs. Add missing LR cfi_restore.
1204
1205 2017-10-23 Alan Modra <amodra@gmail.com>
1206
1207 * sysdeps/powerpc/powerpc64/power7/strncpy.S: Decrease FRAMESIZE.
1208 Move LR save and frame setup/teardown and LR restore to
1209 immediately around memset call. Provide cfi.
1210
1211 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
1212
1213 * sysdeps/i386/fpu/e_powf.S: Removed.
1214 * sysdeps/i386/fpu/e_powf_log2_data.c: Likewise.
1215 * sysdeps/i386/fpu/w_powf.c: Likewise.
1216 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_powf.c.
1217 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
1218 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
1219 Add e_powf-sse2.
1220 (CFLAGS-e_powf-sse2.c): New.
1221 * sysdeps/i386/i686/fpu/multiarch/e_powf-sse2.c: New file.
1222 * sysdeps/i386/i686/fpu/multiarch/e_powf.c: Likewise.
1223
1224 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
1225
1226 * sysdeps/i386/fpu/e_log2f.S: Removed.
1227 * sysdeps/i386/fpu/e_log2f_data.c: Likewise.
1228 * sysdeps/i386/fpu/w_log2f.c: Likewise.
1229 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_log2f.c.
1230 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
1231 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
1232 Add e_log2f-sse2.
1233 (CFLAGS-e_log2f-sse2.c): New.
1234 * sysdeps/i386/i686/fpu/multiarch/e_log2f-sse2.c: New file.
1235 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c: Likewise.
1236
1237 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
1238
1239 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
1240 Add e_powf-fma.
1241 (CFLAGS-e_powf-fma.c): New.
1242 * sysdeps/x86_64/fpu/multiarch/e_powf-fma.c: New file.
1243 * sysdeps/x86_64/fpu/multiarch/e_powf.c: Likewise.
1244
1245 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
1246
1247 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
1248 Add e_log2f-fma.
1249 (CFLAGS-e_log2f-fma.c): New.
1250 * sysdeps/x86_64/fpu/multiarch/e_log2f-fma.c: New file.
1251 * sysdeps/x86_64/fpu/multiarch/e_log2f.c: Likewise.
1252
1253 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
1254
1255 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
1256 Add e_logf-fma.
1257 (CFLAGS-e_logf-fma.c): New.
1258 * sysdeps/x86_64/fpu/multiarch/e_logf-fma.c: New file.
1259 * sysdeps/x86_64/fpu/multiarch/e_logf.c: Likewise.
1260
1261 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
1262
1263 * sysdeps/i386/fpu/e_logf.S: Removed.
1264 * sysdeps/i386/fpu/e_logf_data.c: Likewise.
1265 * sysdeps/i386/fpu/w_logf.c: Likewise.
1266 * sysdeps/i386/i686/fpu/e_logf.S: Likewise.
1267 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_logf.c.
1268 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
1269 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
1270 Add e_logf-sse2.
1271 (CFLAGS-e_logf-sse2.c): New.
1272 * sysdeps/i386/i686/fpu/multiarch/e_logf-sse2.c: New file.
1273 * sysdeps/i386/i686/fpu/multiarch/e_logf.c: Likewise.
1274
1275 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
1276
1277 * sysdeps/i386/fpu/e_exp2f.S: Removed.
1278 * sysdeps/i386/fpu/w_exp2f.c: Likewise.
1279 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_exp2f.c.
1280 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
1281 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
1282 Add e_exp2f-sse2.
1283 (CFLAGS-e_exp2f-sse2.c): New.
1284 * sysdeps/i386/i686/fpu/multiarch/e_exp2f-sse2.c: New file.
1285 * sysdeps/i386/i686/fpu/multiarch/e_exp2f.c: Likewise.
1286
1287 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
1288
1289 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
1290 Add e_exp2f-fma.
1291 (CFLAGS-e_exp2f-fma.c): New.
1292 * sysdeps/x86_64/fpu/multiarch/e_exp2f-fma.c: New file.
1293 * sysdeps/x86_64/fpu/multiarch/e_exp2f.c: Likewise.
1294
1295 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
1296
1297 * sysdeps/i386/fpu/e_exp2f_data.c: Removed.
1298 * sysdeps/i386/fpu/e_expf.S: Likewise.
1299 * sysdeps/i386/fpu/math_errf.c: Likewise.
1300 * sysdeps/i386/fpu/w_expf.c: Likewise.
1301 * sysdeps/i386/i686/fpu/multiarch/e_expf-ia32.S: Likewise.
1302 * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
1303 * sysdeps/i386/i686/fpu/multiarch/w_expf.c: Likewise.
1304 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_expf.c.
1305 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
1306 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
1307 Remove e_expf-ia32.
1308 (CFLAGS-e_expf-sse2.c): New.
1309 * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.c: New file.
1310 * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Rewritten.
1311
1312 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
1313
1314 * sysdeps/x86_64/fpu/e_expf.S: Removed.
1315 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: Likewise.
1316 * sysdeps/x86_64/fpu/w_expf.c: Likewise.
1317 * sysdeps/x86_64/fpu/libm-test-ulps: Updated for generic
1318 e_expf.c.
1319 * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_expf-fma.c):
1320 New.
1321 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.c: New file.
1322 * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
1323 Renamed to ...
1324 (__redirect_expf): This.
1325 (SYMBOL_NAME): Changed to expf.
1326 (__ieee754_expf): Renamed to ...
1327 (__expf): This.
1328 (__GI___expf): This.
1329 (__ieee754_expf): Add strong_alias.
1330 (__expf_finite): Likewise.
1331 (__expf): New.
1332 Include <sysdeps/ieee754/flt-32/e_expf.c>.
1333
1334 2017-10-22 Paul Eggert <eggert@cs.ucla.edu>
1335
1336 [BZ #22332]
1337 * posix/glob.c (__glob): Fix buffer overflow during GLOB_TILDE
1338 unescaping.
1339
1340 2017-10-21 Florian Weimer <fweimer@redhat.com>
1341
1342 * posix/Makefile (tests): Add tst-glob-tilde.
1343 (tests-special): Add tst-glob-tilde-mem.out
1344 (tst-glob-tilde-ENV): Set MALLOC_TRACE.
1345 (tst-glob-tilde-mem.out): Add mtrace check.
1346 * posix/tst-glob-tilde.c: New file.
1347
1348 2017-10-20 Joseph Myers <joseph@codesourcery.com>
1349
1350 * bits/floatn-common.h: New file.
1351 * math/Makefile (headers): Add bits/floatn-common.h.
1352 * bits/floatn.h: Include <bits/floatn-common.h>.
1353 * sysdeps/ia64/bits/floatn.h: Likewise.
1354 * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
1355 * sysdeps/mips/ieee754/bits/floatn.h: Likewise.
1356 * sysdeps/powerpc/bits/floatn.h: Likewise.
1357 * sysdeps/x86/bits/floatn.h: Likewise.
1358
1359 2017-10-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1360
1361 * configure.ac (libc_cv_gcc_incompatbile_alias): New define:
1362 indicates whether compiler emits an warning for alias for
1363 functions with incompatible types.
1364
1365 [BZ #22273]
1366 * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Handle the case where
1367 the auxiliary process is terminated by a signal before calling _exit
1368 or execve.
1369
1370 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
1371
1372 [BZ #21265]
1373 * sysdeps/x86/cpu-features-offsets.sym (XSAVE_STATE_SIZE_OFFSET):
1374 New.
1375 * sysdeps/x86/cpu-features.c: Include <libc-pointer-arith.h>.
1376 (get_common_indeces): Set xsave_state_size, xsave_state_full_size
1377 and bit_arch_XSAVEC_Usable if needed.
1378 (init_cpu_features): Remove bit_arch_Use_dl_runtime_resolve_slow
1379 and bit_arch_Use_dl_runtime_resolve_opt.
1380 * sysdeps/x86/cpu-features.h (bit_arch_Use_dl_runtime_resolve_opt):
1381 Removed.
1382 (bit_arch_Use_dl_runtime_resolve_slow): Likewise.
1383 (bit_arch_Prefer_No_AVX512): Updated.
1384 (bit_arch_MathVec_Prefer_No_AVX512): Likewise.
1385 (bit_arch_XSAVEC_Usable): New.
1386 (STATE_SAVE_OFFSET): Likewise.
1387 (STATE_SAVE_MASK): Likewise.
1388 [__ASSEMBLER__]: Include <cpu-features-offsets.h>.
1389 (cpu_features): Add xsave_state_size and xsave_state_full_size.
1390 (index_arch_Use_dl_runtime_resolve_opt): Removed.
1391 (index_arch_Use_dl_runtime_resolve_slow): Likewise.
1392 (index_arch_XSAVEC_Usable): New.
1393 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
1394 Support XSAVEC_Usable. Remove Use_dl_runtime_resolve_slow.
1395 * sysdeps/x86_64/Makefile (tst-x86_64-1-ENV): New if tunables
1396 is enabled.
1397 * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup):
1398 Replace _dl_runtime_resolve_sse, _dl_runtime_resolve_avx,
1399 _dl_runtime_resolve_avx_slow, _dl_runtime_resolve_avx_opt,
1400 _dl_runtime_resolve_avx512 and _dl_runtime_resolve_avx512_opt
1401 with _dl_runtime_resolve_fxsave, _dl_runtime_resolve_xsave and
1402 _dl_runtime_resolve_xsavec.
1403 * sysdeps/x86_64/dl-trampoline.S (DL_RUNTIME_UNALIGNED_VEC_SIZE):
1404 Removed.
1405 (DL_RUNTIME_RESOLVE_REALIGN_STACK): Check STATE_SAVE_ALIGNMENT
1406 instead of VEC_SIZE.
1407 (REGISTER_SAVE_BND0): Removed.
1408 (REGISTER_SAVE_BND1): Likewise.
1409 (REGISTER_SAVE_BND3): Likewise.
1410 (REGISTER_SAVE_RAX): Always defined to 0.
1411 (VMOV): Removed.
1412 (_dl_runtime_resolve_avx): Likewise.
1413 (_dl_runtime_resolve_avx_slow): Likewise.
1414 (_dl_runtime_resolve_avx_opt): Likewise.
1415 (_dl_runtime_resolve_avx512): Likewise.
1416 (_dl_runtime_resolve_avx512_opt): Likewise.
1417 (_dl_runtime_resolve_sse): Likewise.
1418 (_dl_runtime_resolve_sse_vex): Likewise.
1419 (USE_FXSAVE): New.
1420 (_dl_runtime_resolve_fxsave): Likewise.
1421 (USE_XSAVE): Likewise.
1422 (_dl_runtime_resolve_xsave): Likewise.
1423 (USE_XSAVEC): Likewise.
1424 (_dl_runtime_resolve_xsavec): Likewise.
1425 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve_avx512):
1426 Removed.
1427 (_dl_runtime_resolve_avx512_opt): Likewise.
1428 (_dl_runtime_resolve_avx): Likewise.
1429 (_dl_runtime_resolve_avx_opt): Likewise.
1430 (_dl_runtime_resolve_sse): Likewise.
1431 (_dl_runtime_resolve_sse_vex): Likewise.
1432 (_dl_runtime_resolve_fxsave): New.
1433 (_dl_runtime_resolve_xsave): Likewise.
1434 (_dl_runtime_resolve_xsavec): Likewise.
1435
1436 2017-10-20 Paul Eggert <eggert@cs.ucla.edu>
1437
1438 [BZ #22320]
1439 CVE-2017-15670
1440 * posix/glob.c (__glob): Fix one-byte overflow.
1441
1442 2017-10-20 Wilco Dijkstra <wdijkstr@arm.com>
1443
1444 * malloc/malloc.c (sysdep-cancel.h): Add include.
1445
1446 2017-10-20 Wilco Dijkstra <wdijkstr@arm.com>
1447
1448 * malloc/malloc.c (_int_free): Add SINGLE_THREAD_P fast paths.
1449
1450 2017-10-20 Will Hawkins <hawkinsw@borlaugic.com>
1451
1452 * resolv/Makefile [$(build-shared)$(have-thread-library) == yesyes]
1453 (tests): Remove $(objpfx)ga_test depdendency.
1454 * resolv/ga_test.c: Remove file.
1455
1456 2017-10-20 Mike FABIAN <mfabian@redhat.com>
1457
1458 [BZ #18812]
1459 * localedata/SUPPORTED: Add kab_DZ/UTF-8.
1460 * localedata/locales/kab_DZ: New file.
1461
1462 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
1463
1464 * sysdeps/m68k/dl-machine.h (elf_machine_load_address): Use
1465 _dl_relocate_static_pie instead of _dl_start to compute load
1466 address in static PIE.
1467
1468 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
1469
1470 * sysdeps/m68k/start.S (_start): Check PIC instead of SHARED.
1471
1472 2017-10-20 Mike FABIAN <mfabian@redhat.com>
1473
1474 [BZ #13605]
1475 * localedata/SUPPORTED: Add shn_MM/UTF-8.
1476 * localedata/locales/shn_MM: New file.
1477
1478 2017-10-20 Florian Weimer <fweimer@redhat.com>
1479
1480 [BZ #22321]
1481 sysconf: Fix missing definition of UIO_MAXIOV on Linux.
1482 * sysdeps/posix/sysconf.c: Include <sys/uio.h>.
1483 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-sysconf-iov_max.
1484 (tst-sysconf-iov_max): Link with tst-sysconf-iov_max-uapi.o.
1485 * sysdeps/unix/sysv/linux/tst-sysconf-iov_max.c: New file.
1486 * sysdeps/unix/sysv/linux/tst-sysconf-iov_max-uapi.c: Likewise.
1487
1488 2017-10-19 H.J. Lu <hongjiu.lu@intel.com>
1489
1490 * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
1491
1492 2017-10-19 Joseph Myers <joseph@codesourcery.com>
1493
1494 * sysdeps/mips/ieee754/bits/floatn.h: New file.
1495
1496 [BZ #22322]
1497 * sysdeps/mips/bits/long-double.h: Move to ....
1498 * sysdeps/mips/ieee754/bits/long-double.h: ... here.
1499
1500 2017-10-19 Wilco Dijkstra <wdijkstr@arm.com>
1501
1502 * malloc/malloc.c (_int_free): Fix deadlock bug in consistency check.
1503
1504 2017-10-19 Valery Reznic <valery_reznic@yahoo.com>
1505 H.J. Lu <hongjiu.lu@intel.com>
1506
1507 [BZ #22299]
1508 * sysdeps/x86/cpu-features.c (init_cpu_features): Don't set
1509 GLRO(dl_platform) to NULL.
1510 * sysdeps/x86_64/Makefile (tests): Add tst-platform-1.
1511 (modules-names): Add tst-platformmod-1 and
1512 x86_64/tst-platformmod-2.
1513 (CFLAGS-tst-platform-1.c): New.
1514 (CFLAGS-tst-platformmod-1.c): Likewise.
1515 (CFLAGS-tst-platformmod-2.c): Likewise.
1516 (LDFLAGS-tst-platformmod-2.so): Likewise.
1517 ($(objpfx)tst-platform-1): Likewise.
1518 ($(objpfx)tst-platform-1.out): Likewise.
1519 (tst-platform-1-ENV): Likewise.
1520 ($(objpfx)x86_64/tst-platformmod-2.os): Likewise.
1521 * sysdeps/x86_64/tst-platform-1.c: New file.
1522 * sysdeps/x86_64/tst-platformmod-1.c: Likewise.
1523 * sysdeps/x86_64/tst-platformmod-2.c: Likewise.
1524
1525 2017-10-19 Mike FABIAN <mfabian@redhat.com>
1526
1527 [BZ #13994]
1528 * locale/iso-639.def: Add Karbi.
1529 * localedata/SUPPORTED: Add mjw_IN/UTF-8.
1530 * localedata/locales/mjw_IN: New file.
1531
1532 2017-10-18 Joseph Myers <joseph@codesourcery.com>
1533
1534 * sysdeps/ieee754/ldbl-128/Makeconfig: New file.
1535 * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
1536 * sysdeps/ieee754/ldbl-128/float128-abi.h: Likewise.
1537 * sysdeps/generic/libm-alias-ldouble.h: Include <bits/floatn.h>.
1538 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
1539 (libm_alias_ldouble_other_r): Also create _Float128 alias.
1540 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Include
1541 <bits/floatn.h>.
1542 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
1543 (libm_alias_ldouble_other_r): Also create _Float128 alias.
1544 * manual/math.texi (Mathematics): Document additional architecture
1545 support for _Float128.
1546 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
1547 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
1548 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
1549 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
1550 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
1551 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
1552 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
1553 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
1554 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
1555 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
1556 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
1557 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
1558 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
1559 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
1560 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
1561
1562 2017-10-18 Renlin Li <renlin.li@arm.com>
1563
1564 * sysdeps/aarch64/dl-machine.h (elf_machine_load_address): Use
1565 _DYNAMIC symbol to calculate load address.
1566
1567 2017-10-18 Paul A. Clarke <pc@us.ibm.com>
1568
1569 * sysdeps/powerpc/fpu/fenv_private.h (_FPU_MASK_TRAPS_RN):
1570 (_FPU_MASK_FRAC_INEX_RET_CC): Fix masks to more properly handle
1571 summary bits.
1572 (_FPU_MASK_RN): Expand _FPU_MASK_RN to 64bit hex.
1573 (_FPU_MASK_NOT_RN_NI): Treat bit 52 (left-to-right) as reserved.
1574
1575 2017-10-18 Mike FABIAN <mfabian@redhat.com>
1576
1577 [BZ #16777]
1578 * localedata/locales/pl_PL (LC_MONETARY): Use U+202F as mon_thousands_sep
1579 and improve readability by using more ASCII.
1580 * localedata/locales/pl_PL (LC_NUMERIC): Use U+202F as thousands_sep
1581 and improve readability by using more ASCII.
1582
1583 2017-10-18 Wilco Dijkstra <wdijkstr@arm.com>
1584
1585 * malloc/malloc.c (malloc_state): Use int for have_fastchunks since
1586 not all targets support atomics on bool.
1587
1588 2017-10-17 Joseph Myers <joseph@codesourcery.com>
1589
1590 * include/float.h [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 &&
1591 __GLIBC_USE (IEC_60559_TYPES_EXT)] (FLT128_MAX): Define using
1592 __f128.
1593 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
1594 (IEC_60559_TYPES_EXT)] (FLT128_EPSILON): Likewise.
1595 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
1596 (IEC_60559_TYPES_EXT)] (FLT128_MIN): Likewise.
1597 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
1598 (IEC_60559_TYPES_EXT)] (FLT128_TRUE_MIN): Likewise.
1599
1600 2017-10-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1601
1602 * bits/uio-ext.h (RWF_HIPRI, RWF_DSYNC, RWF_SYNC, RWF_NOWAIT): New
1603 defines.
1604
1605 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
1606
1607 [BZ #22159]
1608 * malloc/arena.c (ptmalloc_init): Call malloc_init_state.
1609 * malloc/malloc.c (do_check_free_chunk): Fix build bug.
1610 (do_check_remalloced_chunk): Fix build bug.
1611 (do_check_malloc_state): Add assert that checks arena->top.
1612 (malloc_consolidate): Remove initialization.
1613 (int_mallinfo): Remove call to malloc_consolidate.
1614 (__libc_mallopt): Clarify why malloc_consolidate is needed.
1615
1616 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
1617
1618 * malloc/malloc.c (FASTCHUNKS_BIT): Remove.
1619 (have_fastchunks): Remove.
1620 (clear_fastchunks): Remove.
1621 (set_fastchunks): Remove.
1622 (malloc_state): Add have_fastchunks.
1623 (malloc_init_state): Use have_fastchunks.
1624 (do_check_malloc_state): Remove incorrect invariant checks.
1625 (_int_malloc): Use have_fastchunks.
1626 (_int_free): Likewise.
1627 (malloc_consolidate): Likewise.
1628
1629 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
1630
1631 * malloc/malloc.c (tcache_put): Inline.
1632 (tcache_get): Inline.
1633
1634 2017-10-17 Jordi Mallach <jordi@gnu.org>
1635
1636 Aurelien Jarno <aurelien@aurel32.net>
1637 [BZ #2522]
1638 * localedata/locales/ca_ES@valencia: New file.
1639 * localedata/SUPPORTED: Add ca_ES@valencia/UTF-8.
1640
1641 2017-10-17 Romain Naour <romain.naour@gmail.com> (tiny change)
1642
1643 [BZ #22296]
1644 * math/math.h: Let signbit use the builtin in C++ mode with gcc
1645 < 6.x
1646
1647 2017-10-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1648
1649 * scripts/build-many-glibcs.py (Context.add_all_configs):
1650 Add arm-linux-gnueabihf multiarch extra_glibcs.
1651
1652 * sysdeps/generic/ifunc-init.h: New file.
1653 * sysdeps/x86/init-arch.h: Use generic ifunc-init.h.
1654
1655 2017-10-17 Mike FABIAN <mfabian@redhat.com>
1656
1657 [BZ #22019]
1658 * localedata/locales/el_GR: Set n_cs_precedes to 0.
1659 * localedata/locales/el_CY: copy "el_GR" because it is identical.
1660 * stdlib/tst-strfmon_l.c: adapt test case.
1661
1662 2017-10-16 Joseph Myers <joseph@codesourcery.com>
1663
1664 * sysdeps/generic/float128-abi.h: New file.
1665 * sysdeps/ieee754/float128/Versions (FLOAT128_VERSION): Move
1666 non-__prefixed symbols to ....
1667 * math/Versions: ... here. Include <float128-abi.h>.
1668 * stdlib/Versions ... and here. Include <float128-abi.h>
1669
1670 2017-10-16 Florian Weimer <fweimer@redhat.com>
1671
1672 * version.h (VERSION): Switch to ".9000" as the development
1673 version suffix.
1674
1675 2017-10-16 Florian Weimer <fweimer@redhat.com>
1676
1677 [BZ #22050]
1678 * malloc/mcheck-init.c (__malloc_initialize_hook): Use
1679 compat_symbol_reference to access non-default version.
1680
1681 2017-10-16 Florian Weimer <fweimer@redhat.com>
1682
1683 * malloc/Makefile (others-extras): Set to mcheck-init.o.
1684
1685 2017-10-16 Carlos O'Donell <carlos@redhat.com>
1686
1687 * include/shlib-compat.h (compat_symbol_reference): Update
1688 comment.
1689
1690 2017-10-16 Joseph Myers <joseph@codesourcery.com>
1691
1692 * math/Makefile (test-types): Add
1693 $(type-float128-$(float128-alias-fcts)).
1694 * math/test-float128.h (TYPE_STR): Define conditional on
1695 [FLT128_MANT_DIG == LDBL_MANT_DIG].
1696 (ULP_IDX): Likewise.
1697 (ULP_I_IDX): Likewise.
1698
1699 * stdlib/strtold.c: Include <bits/floatn.h>
1700 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128): Define
1701 and later undefine as macro. Define as weak alias if
1702 [!USE_WIDE_CHAR].
1703 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128): Define
1704 and later undefine as macro. Define as weak alias if
1705 [USE_WIDE_CHAR].
1706 * sysdeps/ieee754/ldbl-128/strtold_l.c [__HAVE_FLOAT128 &&
1707 !__HAVE_DISTINCT_FLOAT128] (strtof128_l): Define and later
1708 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
1709 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
1710 Define and later undefine as macro. Define as weak alias if
1711 [USE_WIDE_CHAR].
1712 * sysdeps/ieee754/ldbl-64-128/strtold_l.c: Include
1713 <bits/floatn.h>.
1714 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128_l):
1715 Define and later undefine as macro. Define as weak alias if
1716 [!USE_WIDE_CHAR].
1717 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
1718 Define and later undefine as macro. Define as weak alias if
1719 [USE_WIDE_CHAR].
1720
1721 2017-10-15 Carlos O'Donell <carlos@redhat.com>
1722
1723 * localedata/collate-test.c (allocate_arrays): Don't use \n in
1724 record_verbose messages.
1725
1726 2017-10-15 H.J. Lu <hongjiu.lu@intel.com>
1727
1728 [BZ #22052]
1729 * malloc/hooks.c (realloc_check): Use DIAG_IGNORE_NEEDS_COMMENT
1730 to silence -O3 -Wall warning with GCC 7.
1731
1732 2017-10-14 H.J. Lu <hongjiu.lu@intel.com>
1733
1734 * Makeconfig (+link-static-before-libc): Use the first of
1735 $(CRT-$(@F)) and $(csu-objpfx)$(static-start-installed-name).
1736 * gmon/Makefile (tests): Add tst-gmon-static.
1737 (tests-static): Likewise.
1738 (CFLAGS-tst-gmon-static.c): New.
1739 (CRT-tst-gmon-static): Likewise.
1740 (DEFAULT-LDFLAGS-tst-gmon-static): Likewise.
1741 (tst-gmon-static-ENV): Likewise.
1742 (tests-special): Likewise.
1743 ($(objpfx)tst-gmon-static.out): Likewise.
1744 (clean-tst-gmon-static-data): Likewise.
1745 ($(objpfx)tst-gmon-static-gprof.out): Likewise.
1746 * gmon/tst-gmon-static-gprof.sh: New file.
1747 * gmon/tst-gmon-static.c: Likewise.
1748
1749 2017-10-13 Carlos O'Donell <carlos@redhat.com>
1750
1751 [BZ #22295]
1752 * locale/programs/linereader.c (get_string): Don't warn on
1753 non-symbolic character.
1754
1755 [BZ #22294]
1756 * locale/programs/ld-monetary.c (monetary_finish): Allow ""
1757 int_curr_symbol.
1758
1759 [BZ #22292]
1760 * locale/programs/record-status.h: New file
1761 * locale/programs/locale.c: Add comment.
1762 * locale/programs/charmap-dir.c: Don't include error.h.
1763 (charmap_opendir): Use record_error.
1764 * locale/programs/charmap.c: Don't include error.h.
1765 (charmap_read): Use record_error, and record_warning.
1766 (parse_charmap): Likewise.
1767 * locale/programs/ld-address.c: Don't include error.h.
1768 (address_finish): Use record_error, and record_warning.
1769 * locale/programs/ld-collate.c: Don't include error.h.
1770 (collate_finish): Use record_error, and record_error_at_line.
1771 * locale/programs/ld-ctype.c (ctype_finish): Use record_error.
1772 (ctype_class_new): Likewise.
1773 (ctype_map_new): Likewise.
1774 (set_one_default): Likewise.
1775 (set_class_defaults): Likewise.
1776 (translit_flatten): Likewise.
1777 (allocate_arrays): Use record_error, and record_verbose.
1778 * locale/programs/ld-identification.c: Don't include error.h.
1779 (indentation_finish): Use record_error and record_warning.
1780 * locale/programs/ld-measurement.c: Don't include error.h.
1781 (measurement_finish): Use record_error.
1782 * locale/programs/ld-messages.c
1783 (message_finish): Likewise.
1784 * locale/programs/ld-monetary.c
1785 (monetary_finish): Likewise.
1786 * locale/programs/ld-name.c (name_finish): Use record_error
1787 and record_warning.
1788 * locale/programs/ld-numeric.c
1789 (numeric_finish): Use record_error.
1790 * locale/programs/ld-paper.c: Don't include error.h.
1791 (paper_finish): Use record_error.
1792 * locale/programs/ld-telephone.c: Don't include error.h.
1793 (telephone_finish): Use record_error.
1794 * locale/programs/ld-time.c (time_finish): Likewise.
1795 * locale/programs/linereader.h (lr_error): Make inline func.
1796 * locale/programs/localedef.c: Define recorded_warning_count,
1797 and recorded_error_count.
1798 (main): Use record_error. Use recorded_error_count and
1799 recorded_warning_count to issue correct error returns.
1800 (add_to_readlist): Use record_error.
1801 (find_locale): Likewise.
1802 (load_locale): Likewise.
1803 * locale/programs/localedef.h: Remove be_quiet
1804 and WITH_CUR_LOCALE.
1805 * locale/programs/locarchive.c (compare_from_file): Use
1806 record_error.
1807 * locale/programs/locfile.c (write_locale_data): Use
1808 record_error.
1809 * locale/programs/repertoire.c: Dont include error.h.
1810 (repertoire_complain): Use record_error.
1811 * localedata/tst-fmon.sh: Expect failures from localedef.
1812 * localedata/tst-locale.sh: Likewise.
1813 * localedata/gen-locale.sh: Expect failures from SHIFT_JIS.
1814
1815 * localedata/unicode-gen/Makefile (GENERATED): Use i18n_ctype.
1816 (REPORTS): Likewise.
1817 (check): Likewise.
1818 (i18n): Rename to...
1819 (i18n_ctype): ...this.
1820 (i18n-report): Rename to...
1821 (i18n_ctype-report): ...this.
1822 * localedata/locales/i18n_ctype: Regenerate.
1823 * localedata/locales/i18n: copy i18n_ctype.
1824
1825 2017-10-13 Joseph Myers <joseph@codesourcery.com>
1826
1827 * stdlib/strfroml.c: Include <bits/floatn.h>.
1828 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strfromf128):
1829 Define before include of <stdlib.h> and undefine afterwards, then
1830 define as weak alias.
1831
1832 * sysdeps/ieee754/ldbl-64-128/s_nextafterl.c (weak_alias):
1833 Undefine and restore default definition. Use
1834 libm_alias_ldouble_other.
1835
1836 2017-10-13 Peter Zelezny <peter.zelezny@dektech.com.au>
1837
1838 [BZ #22153]
1839 * nptl/allocatestack.c (__nptl_setxid_error): Preserve error code
1840 in coredumps.
1841
1842 2017-10-13 James Clarke <jrtc27@jrtc27.com>
1843
1844 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
1845 Assign sym_map to be map for local symbols, as TLS relocations
1846 use sym_map to determine whether the symbol is defined and to
1847 extract the TLS information.
1848 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
1849 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
1850
1851 2017-10-13 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
1852
1853 [BZ #22189]
1854 * sysdeps/powerpc/fpu/math_private.h (math_opt_barrier):
1855 (math_force_eval): Add powerpc version.
1856
1857 [BZ #22142]
1858 * stdio-common/tst-printf.c (fp_test): Add tests for DBL_MAX and
1859 -DBL_MAX.
1860 (do_test): Likewise.
1861 * stdio-common/tst-printf.sh: Likewise.
1862 * sysdeps/powerpc/powerpc64/power7/add_n.S: Invert the initial
1863 ifdef clause in order to set the carry bit right. Replace r0 by
1864 0 without changing the behavior.
1865
1866 2017-10-13 Joseph Myers <joseph@codesourcery.com>
1867
1868 * sysdeps/sparc/sparc32/fpu/s_fabsl.c: Include
1869 <libm-alias-ldouble.h>.
1870 (fabsl): Define using libm_alias_ldouble.
1871 * sysdeps/sparc/sparc64/fpu/s_fabsl.c: Include
1872 <libm-alias-ldouble.h>.
1873 (fabsl): Define using libm_alias_ldouble.
1874
1875 * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]:
1876 Remove conditional code.
1877
1878 * sysdeps/ieee754/ldbl-opt/s_clog10l.c (__clog10l__internal):
1879 Rename to __clog10_internal_l.
1880 (__clog10_internal_l): Define aliases using
1881 libm_alias_ldouble_other instead of using libm_alias_ldouble_other
1882 with __clog10.
1883
1884 2017-10-13 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
1885
1886 * benchtests/Makefile (bench-math): Add sinf, cosf and sincosf.
1887 * benchtests/sincosf-inputs: New file.
1888 * benchtests/cosf-inputs: New file.
1889 * benchtests/sinf-inputs: New file.
1890
1891 2017-10-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
1892
1893 * posix/tst-spawn.c (do_test): Wait for both children.
1894
1895 2017-10-12 H.J. Lu <hongjiu.lu@intel.com>
1896
1897 [BZ #22284]
1898 * gmon/Makefile [$(have-fpie)$(build-shared) == yesyes] (tests,
1899 tests-pie): Add tst-gmon-pie.
1900 (CFLAGS-tst-gmon-pie.c): New.
1901 (CRT-tst-gmon-pie): Likewise.
1902 (tst-gmon-pie-ENV): Likewise.
1903 [$(have-fpie)$(build-shared) == yesyes] (tests-special): Likewise.
1904 ($(objpfx)tst-gmon-pie.out): Likewise.
1905 (clean-tst-gmon-pie-data): Likewise.
1906 ($(objpfx)tst-gmon-pie-gprof.out): Likewise.
1907 * gmon/gmon.c [PIC]: Include <link.h>.
1908 [PIC] (callback): New function.
1909 (write_hist): Add an argument for load address. Subtract load
1910 address from PCs.
1911 (write_call_graph): Likewise.
1912 (write_gmon): Call __dl_iterate_phdr to get load address, pass
1913 it to write_hist and write_call_graph.
1914 * gmon/tst-gmon-pie.c: New file.
1915
1916 2017-10-11 Joseph Myers <joseph@codesourcery.com>
1917
1918 * math/Makefile (test-types-basic): New variable.
1919 (test-types): Likewise.
1920 (libm-test-support): Use $(test-types) instead of $(types).
1921 (libm-tests-base-normal): Likewise.
1922 (libm-tests-base-finite): Likewise.
1923 (libm-tests-base-inline): Likewise.
1924 (generated): Likewise.
1925 ($(objpfx)libm-test-support-$(t).c): Likewise.
1926 (libm-tests-for-type iterator): Likewise.
1927 (libm-test-support iterator): Likewise.
1928 * math/libm-test-support.c (ulp_i_idx): Use ULP_I_IDX.
1929 (ulp_idx): Use ULP_IDX.
1930 * math/test-ldouble.h: Include <float.h>.
1931 (TYPE_STR): Define conditional on [LDBL_MANT_DIG == DBL_MANT_DIG].
1932 (ULP_IDX): New macro.
1933 (ULP_I_IDX): Likewise.
1934 * math/test-double.h (ULP_IDX): Likewise.
1935 (ULP_I_IDX): Likewise.
1936 * math/test-float.h (ULP_IDX): Likewise.
1937 (ULP_I_IDX): Likewise.
1938 * math/test-float128.h (ULP_IDX): Likewise.
1939 (ULP_I_IDX): Likewise.
1940
1941 2017-10-11 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1942
1943 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Remove file.
1944 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
1945 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
1946 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h: Likewise.
1947 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
1948 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h: Likewise.
1949 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: Likewise.
1950 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
1951 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
1952 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
1953 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: Likewise.
1954 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
1955 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
1956 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
1957 (SINGLE_THREAD_BY_GLOBAL): Define.
1958 * sysdeps/unix/sysv/linux/aarch64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
1959 Likewise.
1960 * sysdeps/unix/sysv/linux/alpha/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
1961 Likewise.
1962 * sysdeps/unix/sysv/linux/arm/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
1963 Likewise.
1964 * sysdeps/unix/sysv/linux/hppa/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
1965 Likewise.
1966 * sysdeps/unix/sysv/linux/microblaze/sysdep.h
1967 (SINGLE_THREAD_BY_GLOBAL): Likewise.
1968 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
1969 Likewise.
1970
1971 2017-10-11 Andreas Schwab <schwab@suse.de>
1972
1973 * nis/Makefile (aux): Remove.
1974 * nscd/Makefile (aux): Add nscd_hash.
1975 (nscd-modules): Likewise.
1976 ($(objpfx)nscd): Don't depend on libnsl.
1977 * nscd/nscd_hash.c: New file.
1978 * nscd/nscd_hash.h: Likewise.
1979 * nscd/cache.c: Include "nscd_hash.h" instead of <rpcsvc/nis.h>.
1980 (cache_search, cache_add): Use __nscd_hash instead of __nis_hash.
1981 * nscd/nscd_helper.c: Include <sys/param.h> and "nscd_hash.h"
1982 instead of <nis/rpcsvc/nis.h>.
1983 (__nscd_cache_search): Use __nscd_hash instead of __nis_hash.
1984
1985 2017-10-11 Florian Weimer <fweimer@redhat.com>
1986
1987 [BZ #22078]
1988 Avoid large NSS buffers with many addresses, aliases.
1989 * nss/nss_files/files-hosts.c (gethostbyname3_multi): Rewrite
1990 using dynarrays and struct alloc_buffer.
1991 * nss/Makefile (tests): Add tst-nss-files-hosts-multi.
1992 (tst-nss-files-hosts-multi): Link with -ldl.
1993 * nss/tst-nss-files-hosts-multi.c: New file.
1994
1995 2017-10-11 Florian Weimer <fweimer@redhat.com>
1996
1997 [BZ #18023]
1998 * nss/nss_files/files-hosts.c (gethostbyname3_multi): Use struct
1999 scratch_buffer. Eliminate gotos.
2000
2001 2017-10-11 Joseph Myers <joseph@codesourcery.com>
2002
2003 * sysdeps/ieee754/ldbl-opt/s_clog10l.c: Use
2004 libm_alias_ldouble_other.
2005 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (weak_alias): Do not
2006 undefine and redefine.
2007 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
2008 (exp10l): Do not define here.
2009 * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]
2010 (weak_alias): Undefine and redefine.
2011 [BUILD_LGAMMA]: Use libm_alias_ldouble_other.
2012 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
2013 [LIBM_SVID_COMPAT] (weak_alias): Undefine and redefine here.
2014 [LIBM_SVID_COMPAT]: Use libm_alias_ldouble_other.
2015
2016 * soft-fp/fmadf4.c: Include <libm-alias-double.h>.
2017 [!__fma] (fma): Define using libm_alias_double.
2018 * soft-fp/fmasf4.c: Include <libm-alias-float.h>.
2019 [!__fmaf] (fmaf): Define using libm_alias_float.
2020 * soft-fp/fmatf4.c: Include <libm-alias-ldouble.h>.
2021 (fmal): Define using libm_alias_ldouble.
2022
2023 2017-10-10 Joseph Myers <joseph@codesourcery.com>
2024
2025 * sysdeps/generic/libm-alias-double.h (libm_alias_double_other_r):
2026 New macro.
2027 (libm_alias_double_other): Likewise.
2028 (libm_alias_double_r): Use libm_alias_double_other_r.
2029 * sysdeps/generic/libm-alias-float.h (libm_alias_float_other_r):
2030 New macro.
2031 (libm_alias_float_other): Likewise.
2032 (libm_alias_float_r): Use libm_alias_float_other_r.
2033 * sysdeps/generic/libm-alias-float128.h
2034 (libm_alias_float128_other_r): New macro.
2035 (libm_alias_float128_other): Likewise.
2036 (libm_alias_float128_r): Use libm_alias_float128_other_r.
2037 * sysdeps/generic/libm-alias-ldouble.h
2038 (libm_alias_ldouble_other_r): New macro.
2039 (libm_alias_ldouble_other): Likewise.
2040 (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
2041 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h
2042 (libm_alias_double_other_r): New macro.
2043 (libm_alias_double_other): Likewise.
2044 (libm_alias_double_r): Use libm_alias_double_other_r.
2045 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h
2046 (libm_alias_ldouble_other_r): New macro.
2047 (libm_alias_ldouble_other): Likewise.
2048 (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
2049 * math/w_lgamma_main.c: Include <libm-alias-double.h>.
2050 [!USE_AS_COMPAT]: Use libm_alias_double_other.
2051 * math/w_lgammaf_main.c: Include <libm-alias-float.h>.
2052 [!USE_AS_COMPAT]: Use libm_alias_float_other.
2053 * math/w_lgammal_main.c: Include <libm-alias-ldouble.h>.
2054 [!USE_AS_COMPAT]: Use libm_alias_ldouble_other.
2055 * math/w_exp2f.c: Use libm_alias_float_other.
2056 * math/w_expf.c: Likewise.
2057 * math/w_log2f.c: Likewise.
2058 * math/w_logf.c: Likewise.
2059 * math/w_powf.c: Likewise.
2060 * sysdeps/ieee754/flt-32/e_exp2f.c: Include <libm-alias-float.h>.
2061 [!__exp2f]: Use libm_alias_float_other.
2062 * sysdeps/ieee754/flt-32/e_expf.c: Include <libm-alias-float.h>.
2063 [!__expf]: Use libm_alias_float_other.
2064 * sysdeps/ieee754/flt-32/e_log2f.c: Include <libm-alias-float.h>.
2065 [!__log2f]: Use libm_alias_float_other.
2066 * sysdeps/ieee754/flt-32/e_logf.c: Include <libm-alias-float.h>.
2067 [!__logf]: Use libm_alias_float_other.
2068 * sysdeps/ieee754/flt-32/e_powf.c: Include <libm-alias-float.h>.
2069 [!__powf]: Use libm_alias_float_other.
2070
2071 2017-10-10 Florian Weimer <fweimer@redhat.com>
2072
2073 * nss/nss_files/files-hosts.c (gethostbyname3_multi): New
2074 function.
2075 (_nss_files_gethostbyname3_r): Call it.
2076
2077 2017-10-09 Joseph Myers <joseph@codesourcery.com>
2078
2079 * sysdeps/generic/math-type-macros.h [!declare_mgen_alias]: Give
2080 error. Remove default definition of declare_mgen_alias.
2081 [!declare_mgen_alias_r]: Likewise.
2082 * sysdeps/generic/math-type-macros-double.h
2083 [!declare_mgen_alias_r] (declare_mgen_alias_r): New macro.
2084 * sysdeps/generic/math-type-macros-float.h [!declare_mgen_alias_r]
2085 (declare_mgen_alias_r): Likewise.
2086 * sysdeps/generic/math-type-macros-float128.h
2087 [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
2088 * sysdeps/generic/math-type-macros-ldouble.h
2089 [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
2090 * math/w_lgamma_r_template.c (declare_mgen_alias_r_x): Remove
2091 macro.
2092 (declare_mgen_alias_r_s): Likewise.
2093 (declare_mgen_alias_r): Likewise.
2094 * math/w_lgamma_r_compat.c: Include <libm-alias-double.h>.
2095 (lgamma_r): Define using libm_alias_double_r.
2096 * math/w_lgammaf_r_compat.c: Include <libm-alias-float.h>.
2097 (lgammaf_r): Define using libm_alias_float_r.
2098 * math/w_lgammal_r_compat.c: Include <libm-alias-ldouble.h>.
2099 (lgammal_r): Define using libm_alias_ldouble_r.
2100 * sysdeps/ieee754/ldbl-opt/w_lgamma_r_compat.c: Remove file.
2101 * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
2102
2103 2017-10-09 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2104
2105 * lib/glob.c (__glob_pattern_type): Remove now-spurious
2106 extern declaration.
2107
2108 2017-10-09 Joseph Myers <joseph@codesourcery.com>
2109
2110 * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Remove file.
2111
2112 2017-10-09 Jonathan Wakely <jwakely@redhat.com>
2113
2114 [BZ #21326]
2115 * include/features.h [__cplusplus >= 201703] (__USE_ISOC11): Define.
2116 [__cplusplus >= 201103] (__USE_ISOC99): Define.
2117 * math/Makefile (test-math-cxx11): New test.
2118 * math/test-math-cxx11.cc: New file.
2119
2120 2017-10-08 Christian Brauner <christian.brauner@ubuntu.com>
2121
2122 * login/openpty.c (openpty): Close slave pty file descriptor on error.
2123
2124 * login/openpty.c (openpty): If defined, use the TIOCGPTPEER ioctl()
2125 call to allocate the slave pty file descriptor.
2126
2127 2017-10-06 Joseph Myers <joseph@codesourcery.com>
2128
2129 * sysdeps/ieee754/ldbl-128/s_fma.c: Include <libm-alias-double.h>.
2130 [!__fma] (fma): Define using libm_alias_double.
2131 * sysdeps/ieee754/ldbl-96/s_fma.c: Include <libm-alias-double.h>.
2132 [!__fma] (fma): Define using libm_alias_double.
2133
2134 * sysdeps/ieee754/float128/float128_private.h: Include
2135 <libm-alias-ldouble.h> and <libm-alias-float128.h>.
2136 (libm_alias_ldouble_r): Undefine and redefine.
2137 * sysdeps/ieee754/ldbl-128/s_asinhl.c: Include
2138 <libm-alias-ldouble.h>.
2139 (asinhl): Define using libm_alias_ldouble.
2140 * sysdeps/ieee754/ldbl-128/s_atanl.c: Include
2141 <libm-alias-ldouble.h>.
2142 (atanl): Define using libm_alias_ldouble.
2143 * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Include
2144 <libm-alias-ldouble.h>.
2145 (cbrtl): Define using libm_alias_ldouble.
2146 * sysdeps/ieee754/ldbl-128/s_ceill.c: Include
2147 <libm-alias-ldouble.h>.
2148 (ceill): Define using libm_alias_ldouble.
2149 * sysdeps/ieee754/ldbl-128/s_copysignl.c: Include
2150 <libm-alias-ldouble.h>.
2151 (copysignl): Define using libm_alias_ldouble.
2152 * sysdeps/ieee754/ldbl-128/s_cosl.c: Include
2153 <libm-alias-ldouble.h>.
2154 (cosl): Define using libm_alias_ldouble.
2155 * sysdeps/ieee754/ldbl-128/s_erfl.c: Include
2156 <libm-alias-ldouble.h>.
2157 (erfl): Define using libm_alias_ldouble.
2158 (erfcl): Likewise.
2159 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Include
2160 <libm-alias-ldouble.h>.
2161 (expm1l): Define using libm_alias_ldouble.
2162 * sysdeps/ieee754/ldbl-128/s_fabsl.c: Include
2163 <libm-alias-ldouble.h>.
2164 (fabsl): Define using libm_alias_ldouble.
2165 * sysdeps/ieee754/ldbl-128/s_floorl.c: Include
2166 <libm-alias-ldouble.h>.
2167 (floorl): Define using libm_alias_ldouble.
2168 * sysdeps/ieee754/ldbl-128/s_fmal.c: Include
2169 <libm-alias-ldouble.h>.
2170 (fmal): Define using libm_alias_ldouble.
2171 * sysdeps/ieee754/ldbl-128/s_frexpl.c: Include
2172 <libm-alias-ldouble.h>.
2173 (frexpl): Define using libm_alias_ldouble.
2174 * sysdeps/ieee754/ldbl-128/s_fromfpl.c (fromfpl): Define using
2175 libm_alias_ldouble.
2176 * sysdeps/ieee754/ldbl-128/s_fromfpl_main.c: Include
2177 <libm-alias-ldouble.h>.
2178 * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (fromfpxl): Define using
2179 libm_alias_ldouble.
2180 * sysdeps/ieee754/ldbl-128/s_getpayloadl.c: Include
2181 <libm-alias-ldouble.h>.
2182 (getpayloadl): Define using libm_alias_ldouble.
2183 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Include
2184 <libm-alias-ldouble.h>.
2185 (llrintl): Define using libm_alias_ldouble.
2186 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Include
2187 <libm-alias-ldouble.h>.
2188 (llroundl): Define using libm_alias_ldouble.
2189 * sysdeps/ieee754/ldbl-128/s_logbl.c: Include
2190 <libm-alias-ldouble.h>.
2191 (logbl): Define using libm_alias_ldouble.
2192 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Include
2193 <libm-alias-ldouble.h>.
2194 (lrintl): Define using libm_alias_ldouble.
2195 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Include
2196 <libm-alias-ldouble.h>.
2197 (lroundl): Define using libm_alias_ldouble.
2198 * sysdeps/ieee754/ldbl-128/s_modfl.c: Include
2199 <libm-alias-ldouble.h>.
2200 (modfl): Define using libm_alias_ldouble.
2201 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Include
2202 <libm-alias-ldouble.h>.
2203 (nearbyintl): Define using libm_alias_ldouble.
2204 * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Include
2205 <libm-alias-ldouble.h>.
2206 (nextafterl): Define using libm_alias_ldouble.
2207 * sysdeps/ieee754/ldbl-128/s_nextupl.c: Include
2208 <libm-alias-ldouble.h>.
2209 (nextupl): Define using libm_alias_ldouble.
2210 * sysdeps/ieee754/ldbl-128/s_remquol.c: Include
2211 <libm-alias-ldouble.h>.
2212 (remquol): Define using libm_alias_ldouble.
2213 * sysdeps/ieee754/ldbl-128/s_rintl.c: Include
2214 <libm-alias-ldouble.h>.
2215 (rintl): Define using libm_alias_ldouble.
2216 * sysdeps/ieee754/ldbl-128/s_roundevenl.c: Include
2217 <libm-alias-ldouble.h>.
2218 (roundevenl): Define using libm_alias_ldouble.
2219 * sysdeps/ieee754/ldbl-128/s_roundl.c: Include
2220 <libm-alias-ldouble.h>.
2221 (roundl): Define using libm_alias_ldouble.
2222 * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (setpayloadl): Define
2223 using libm_alias_ldouble.
2224 * sysdeps/ieee754/ldbl-128/s_setpayloadl_main.c: Include
2225 <libm-alias-ldouble.h>.
2226 * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (setpayloadsigl):
2227 Define using libm_alias_ldouble.
2228 * sysdeps/ieee754/ldbl-128/s_sincosl.c: Include
2229 <libm-alias-ldouble.h>.
2230 (sincosl): Define using libm_alias_ldouble.
2231 * sysdeps/ieee754/ldbl-128/s_sinl.c: Include
2232 <libm-alias-ldouble.h>.
2233 (sinl): Define using libm_alias_ldouble.
2234 * sysdeps/ieee754/ldbl-128/s_tanhl.c: Include
2235 <libm-alias-ldouble.h>.
2236 (tanhl): Define using libm_alias_ldouble.
2237 * sysdeps/ieee754/ldbl-128/s_tanl.c: Include
2238 <libm-alias-ldouble.h>.
2239 (tanl): Define using libm_alias_ldouble.
2240 * sysdeps/ieee754/ldbl-128/s_totalorderl.c: Include
2241 <libm-alias-ldouble.h>.
2242 (totalorderl): Define using libm_alias_ldouble.
2243 * sysdeps/ieee754/ldbl-128/s_totalordermagl.c: Include
2244 <libm-alias-ldouble.h>.
2245 (totalordermagl): Define using libm_alias_ldouble.
2246 * sysdeps/ieee754/ldbl-128/s_truncl.c: Include
2247 <libm-alias-ldouble.h>.
2248 (truncl): Define using libm_alias_ldouble.
2249 * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (ufromfpl): Define using
2250 libm_alias_ldouble.
2251 * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (ufromfpxl): Define using
2252 libm_alias_ldouble.
2253 * sysdeps/ieee754/ldbl-64-128/s_copysignl.c: Include
2254 <libm-alias-ldouble.h>.
2255 (weak_alias): Do not undefine and redefine.
2256 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
2257 (copysignl): Define with long_double_symbol only if [IS_IN
2258 (libc)].
2259 * sysdeps/ieee754/ldbl-64-128/s_frexpl.c: Include
2260 <libm-alias-ldouble.h>.
2261 (weak_alias): Do not undefine and redefine.
2262 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
2263 (frexpl): Define with long_double_symbol only if [IS_IN (libc)].
2264 * sysdeps/ieee754/ldbl-64-128/s_modfl.c: Include
2265 <libm-alias-ldouble.h>.
2266 (weak_alias): Do not undefine and redefine.
2267 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
2268 (modfl): Define with long_double_symbol only if [IS_IN (libc)].
2269 * sysdeps/ieee754/ldbl-64-128/s_asinhl.c: Remove file.
2270 * sysdeps/ieee754/ldbl-64-128/s_atanl.c: Likewise.
2271 * sysdeps/ieee754/ldbl-64-128/s_cbrtl.c: Likewise.
2272 * sysdeps/ieee754/ldbl-64-128/s_ceill.c: Likewise.
2273 * sysdeps/ieee754/ldbl-64-128/s_cosl.c: Likewise.
2274 * sysdeps/ieee754/ldbl-64-128/s_erfl.c: Likewise.
2275 * sysdeps/ieee754/ldbl-64-128/s_expm1l.c: Likewise.
2276 * sysdeps/ieee754/ldbl-64-128/s_fabsl.c: Likewise.
2277 * sysdeps/ieee754/ldbl-64-128/s_floorl.c: Likewise.
2278 * sysdeps/ieee754/ldbl-64-128/s_fmal.c: Likewise.
2279 * sysdeps/ieee754/ldbl-64-128/s_llrintl.c: Likewise.
2280 * sysdeps/ieee754/ldbl-64-128/s_llroundl.c: Likewise.
2281 * sysdeps/ieee754/ldbl-64-128/s_logbl.c: Likewise.
2282 * sysdeps/ieee754/ldbl-64-128/s_lrintl.c: Likewise.
2283 * sysdeps/ieee754/ldbl-64-128/s_lroundl.c: Likewise.
2284 * sysdeps/ieee754/ldbl-64-128/s_nearbyintl.c: Likewise.
2285 * sysdeps/ieee754/ldbl-64-128/s_remquol.c: Likewise.
2286 * sysdeps/ieee754/ldbl-64-128/s_rintl.c: Likewise.
2287 * sysdeps/ieee754/ldbl-64-128/s_roundl.c: Likewise.
2288 * sysdeps/ieee754/ldbl-64-128/s_sincosl.c: Likewise.
2289 * sysdeps/ieee754/ldbl-64-128/s_sinl.c: Likewise.
2290 * sysdeps/ieee754/ldbl-64-128/s_tanhl.c: Likewise.
2291 * sysdeps/ieee754/ldbl-64-128/s_tanl.c: Likewise.
2292 * sysdeps/ieee754/ldbl-64-128/s_truncl.c: Likewise.
2293
2294 2017-10-06 Carlos O'Donell <carlos@redhat.com>
2295
2296 [BZ #22111]
2297 * malloc/malloc.c (tcache_shutting_down): Use bool type.
2298 (tcache_thread_freeres): Set tcache_shutting_down before
2299 freeing the tcache.
2300 * malloc/Makefile (tests): Add tst-malloc-tcache-leak.
2301 * malloc/tst-malloc-tcache-leak.c: New file.
2302
2303 2017-10-06 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
2304
2305 * sysdeps/powerpc/powerpc64/multiarch/memrchr-ppc64.c: Revert
2306 back to powerpc32 file.
2307 * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
2308 (memrchr): Add __memrchr_power8 to ifunc list.
2309 * sysdeps/powerpc/powerpc64/power8/memrchr.S: Mask
2310 extra bytes for unaligned inputs.
2311
2312 2017-10-06 Joseph Myers <joseph@codesourcery.com>
2313
2314 * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: Remove file.
2315 * sysdeps/ieee754/ldbl-64-128/s_log1pl.c: Likewise.
2316 * sysdeps/ieee754/ldbl-64-128/s_scalblnl.c: Likewise.
2317 * sysdeps/ieee754/ldbl-64-128/s_scalbnl.c: Likewise.
2318 * sysdeps/ieee754/ldbl-64-128/w_scalblnl.c: Likewise.
2319
2320 2017-10-05 Joseph Myers <joseph@codesourcery.com>
2321
2322 * sysdeps/arm/libm-test-ulps: Update.
2323
2324 * sysdeps/ieee754/ldbl-96/s_asinhl.c: Include
2325 <libm-alias-ldouble.h>.
2326 (asinhl): Define using libm_alias_ldouble.
2327 * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Include
2328 <libm-alias-ldouble.h>.
2329 (cbrtl): Define using libm_alias_ldouble.
2330 * sysdeps/ieee754/ldbl-96/s_copysignl.c: Include
2331 <libm-alias-ldouble.h>.
2332 (copysignl): Define using libm_alias_ldouble.
2333 * sysdeps/ieee754/ldbl-96/s_cosl.c: Include
2334 <libm-alias-ldouble.h>.
2335 (cosl): Define using libm_alias_ldouble.
2336 * sysdeps/ieee754/ldbl-96/s_erfl.c: Include
2337 <libm-alias-ldouble.h>.
2338 (erfl): Define using libm_alias_ldouble.
2339 (erfcl): Likewise.
2340 * sysdeps/ieee754/ldbl-96/s_fmal.c: Include
2341 <libm-alias-ldouble.h>.
2342 (fmal): Define using libm_alias_ldouble.
2343 * sysdeps/ieee754/ldbl-96/s_frexpl.c: Include
2344 <libm-alias-ldouble.h>.
2345 (frexpl): Define using libm_alias_ldouble.
2346 * sysdeps/ieee754/ldbl-96/s_fromfpl.c (fromfpl): Define using
2347 libm_alias_ldouble.
2348 * sysdeps/ieee754/ldbl-96/s_fromfpl_main.c: Include
2349 <libm-alias-ldouble.h>.
2350 * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (fromfpxl): Define using
2351 libm_alias_ldouble.
2352 * sysdeps/ieee754/ldbl-96/s_getpayloadl.c: Include
2353 <libm-alias-ldouble.h>.
2354 (getpayloadl): Define using libm_alias_ldouble.
2355 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Include
2356 <libm-alias-ldouble.h>.
2357 (llrintl): Define using libm_alias_ldouble.
2358 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Include
2359 <libm-alias-ldouble.h>.
2360 (llroundl): Define using libm_alias_ldouble.
2361 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Include
2362 <libm-alias-ldouble.h>.
2363 (lrintl): Define using libm_alias_ldouble.
2364 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Include
2365 <libm-alias-ldouble.h>.
2366 (lroundl): Define using libm_alias_ldouble.
2367 * sysdeps/ieee754/ldbl-96/s_modfl.c: Include
2368 <libm-alias-ldouble.h>.
2369 (modfl): Define using libm_alias_ldouble.
2370 * sysdeps/ieee754/ldbl-96/s_nextupl.c: Include
2371 <libm-alias-ldouble.h>.
2372 (nextupl): Define using libm_alias_ldouble.
2373 * sysdeps/ieee754/ldbl-96/s_remquol.c: Include
2374 <libm-alias-ldouble.h>.
2375 (remquol): Define using libm_alias_ldouble.
2376 * sysdeps/ieee754/ldbl-96/s_roundevenl.c: Include
2377 <libm-alias-ldouble.h>.
2378 (roundevenl): Define using libm_alias_ldouble.
2379 * sysdeps/ieee754/ldbl-96/s_roundl.c: Include
2380 <libm-alias-ldouble.h>.
2381 (roundl): Define using libm_alias_ldouble.
2382 * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (setpayloadl): Define
2383 using libm_alias_ldouble.
2384 * sysdeps/ieee754/ldbl-96/s_setpayloadl_main.c: Include
2385 <libm-alias-ldouble.h>.
2386 * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c: Include
2387 <libm-alias-ldouble.h>.
2388 (setpayloadsigl): Define using libm_alias_ldouble.
2389 * sysdeps/ieee754/ldbl-96/s_sincosl.c: Include
2390 <libm-alias-ldouble.h>.
2391 (sincosl): Define using libm_alias_ldouble.
2392 * sysdeps/ieee754/ldbl-96/s_sinl.c: Include
2393 <libm-alias-ldouble.h>.
2394 (sinl): Define using libm_alias_ldouble.
2395 * sysdeps/ieee754/ldbl-96/s_tanhl.c: Include
2396 <libm-alias-ldouble.h>.
2397 (tanhl): Define using libm_alias_ldouble.
2398 * sysdeps/ieee754/ldbl-96/s_tanl.c: Include
2399 <libm-alias-ldouble.h>.
2400 (tanl): Define using libm_alias_ldouble.
2401 * sysdeps/ieee754/ldbl-96/s_totalorderl.c: Include
2402 <libm-alias-ldouble.h>.
2403 (totalorderl): Define using libm_alias_ldouble.
2404 * sysdeps/ieee754/ldbl-96/s_totalordermagl.c: Include
2405 <libm-alias-ldouble.h>.
2406 (totalordermagl): Define using libm_alias_ldouble.
2407 * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (ufromfpl): Define using
2408 libm_alias_ldouble.
2409 * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (ufromfpxl): Define using
2410 libm_alias_ldouble.
2411
2412 2017-10-05 Siddhesh Poyarekar <siddhesh@sourceware.org>
2413
2414 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
2415 memmove_falkor.
2416 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
2417 (__libc_ifunc_impl_list): Likewise.
2418 * sysdeps/aarch64/multiarch/memmove.c: Likewise.
2419 * sysdeps/aarch64/multiarch/memmove_falkor.S: New file.
2420
2421 * benchtests/bench-memmove-walk.c: New file.
2422 * benchtests/Makefile (string-benchset): Add it.
2423
2424 * benchtests/bench-memset-walk.c: New file.
2425 * benchtests/Makefile (string-benchset): Add it.
2426
2427 * benchtests/bench-memcpy-walk.c: New file.
2428 * benchtests/Makefile (string-benchset): Add it.
2429
2430 2017-10-05 Florian Weimer <fweimer@redhat.com>
2431
2432 nscd: Eliminate compilation time dependency in the build output.
2433 * nscd/nscd_stat.c (STATDATA_VERSION)
2434 (STATDATA_VERSION_SELINUX_FLAG, STATDATA_VERSION_FLAGS)
2435 (STATDATA_VERSION_FULL): New macro definitions.
2436 (compilation): Remove.
2437 (struct statdata): Adjust version member.
2438 (send_stats): Set version from STATDATA_VERSION_FULL.
2439 (receive_print_stats): Verify version against STATDATA_VERSION_FULL.
2440
2441 2017-10-05 Joseph Myers <joseph@codesourcery.com>
2442
2443 * configure.ac (--enable-add-ons): Remove option.
2444 (machine): Do not mention add-ons in comment.
2445 (LIBC_PRECONFIGURE): Likewise.
2446 (add_ons): Remove variable and sanity checks and logic to locate
2447 add-ons.
2448 (add_ons_automatic): Remove variable.
2449 (configured_add_ons): Likewise.
2450 (add_ons_sfx): Likewise.
2451 (add_ons_pfx): Likewise.
2452 (add_on_subdirs): Likewise.
2453 (sysnames_add_ons): Likewise. Remove loop over add-ons and
2454 consideration of add-ons in Implies handling.
2455 (sysdeps_add_ons): Likewise.
2456 * configure: Regenerated.
2457 * libidn/configure.ac: Remove.
2458 * libidn/configure: Likewise.
2459 * sysdeps/unix/inet/configure.ac: New file.
2460 * sysdeps/unix/inet/configure: New generated file.
2461 * sysdeps/unix/inet/Subdirs: Add libidn.
2462 * Makeconfig (sysdeps-srcdirs): Remove variable.
2463 (+sysdep_dirs): Do not include $(sysdeps-srcdirs).
2464 ($(common-objpfx)config.status): Do not depend on add-on files.
2465 ($(common-objpfx)shlib-versions.v.i): Do not mention add-ons in
2466 comment.
2467 (all-subdirs): Do not include $(add-on-subdirs).
2468 * Makefile (dist-prepare): Do not use $(sysdeps-add-ons).
2469 * config.make.in (add-ons): Remove variable.
2470 (add-on-subdirs): Likewise.
2471 (sysdeps-add-ons): Likewise.
2472 * manual/Makefile (add-chapters): Remove.
2473 ($(objpfx)texis): Do not depend on $(add-chapters).
2474 (nonexamples): Do not handle $(add-chapters).
2475 (examples): Do not handle $(add-ons).
2476 (chapters.% top-menu.%): Do not pass '$(add-chapters)' to
2477 libc-texinfo.sh.
2478 * manual/install.texi (Installation): Do not mention add-ons.
2479 (--enable-add-ons): Do not document configure option.
2480 * INSTALL: Regenerated.
2481 * manual/libc-texinfo.sh: Do not handle $2 add-ons argument.
2482 * manual/maint.texi (Hierarchy Conventions): Do not mention
2483 add-ons.
2484 * scripts/build-many-glibcs.py (Glibc.build_glibc): Do not use
2485 --enable-add-ons.
2486 * scripts/gen-sorted.awk: Do not handle Subdirs files from
2487 add-ons.
2488 * scripts/test-installation.pl: Do not handle glibc-compat add-on.
2489 * sysdeps/nptl/Makeconfig: Do not mention add-ons in comment.
2490
2491 2017-10-05 Andreas Schwab <schwab@suse.de>
2492
2493 [BZ #15142]
2494 * libio/genops.c (_IO_list_all_stamp): Delete. All uses removed.
2495 (_IO_flush_all_lockp): Always lock list_all_lock.
2496 (_IO_flush_all_linebuffered): Likewise.
2497 (_IO_unbuffer_all): Likewise.
2498
2499 2017-10-05 Florian Weimer <fweimer@redhat.com>
2500
2501 [BZ #15436]
2502 Do not flush stdio streams on abort.
2503 * stdlib/abort.c (fflush): Remove macro definition.
2504 (abort): Remove stages related to stdio flushing.
2505
2506 2017-10-05 Florian Weimer <fweimer@redhat.com>
2507
2508 * gmon/Makefile (CFLAGS-tst-gmon.c): Add -fno-omit-frame-pointer.
2509
2510 2017-10-05 Stefan Liebler <stli@linux.vnet.ibm.com>
2511
2512 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
2513
2514 2017-10-05 Florian Weimer <fweimer@redhat.com>
2515
2516 * support/support_format_hostent.c (support_format_hostent): Add
2517 more error information for NETDB_INTERNAL.
2518
2519 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
2520
2521 * config.h.in (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New.
2522 * include/libc-symbols.h (__hidden_proto_hiddenattr): Add check
2523 for PIC and NO_HIDDEN_EXTERN_FUNC_IN_PIE.
2524 * sysdeps/i386/configure.ac (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New
2525 AC_DEFINE if multi-arch is enabled.
2526 * sysdeps/i386/configure: Regenerated.
2527
2528 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
2529
2530 * Makeconfig (+link-static-before-libc): Use
2531 $(DEFAULT-LDFLAGS-$(@F)).
2532 * elf/Makefile (CRT-tst-tls1-static-non-pie): New.
2533 (LDFLAGS-tst-tls1-static-non-pie): Renamed to ...
2534 (DEFAULT-LDFLAGS-tst-tls1-static-non-pie): This.
2535
2536 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
2537
2538 * elf/Makefile (tests): Add tst-main1.
2539 (modules-names): Add tst-main1mod.
2540 ($(objpfx)tst-main1): New.
2541 (CRT-tst-main1): Likewise.
2542 (LDFLAGS-tst-main1): Likewise.
2543 (LDLIBS-tst-main1): Likewise.
2544 (tst-main1mod.so-no-z-defs): Likewise.
2545 * elf/tst-main1.c: New file.
2546 * elf/tst-main1mod.c: Likewise.
2547
2548 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
2549
2550 * math/test-math-iscanonical.cc (do_test): Return errors != 0.
2551
2552 2017-10-04 Joseph Myers <joseph@codesourcery.com>
2553
2554 * sysdeps/ieee754/dbl-64/s_fma.c: Include <libm-alias-double.h>.
2555 (fma): Define using libm_alias_double.
2556 * sysdeps/ieee754/ldbl-opt/s_fma.c: Remove file.
2557 * sysdeps/sparc/sparc32/fpu/s_fma.c: Do not include
2558 <math_ldbl_opt.h>.
2559 (fmal): Do not define as compat symbol here.
2560 * sysdeps/alpha/fpu/s_fma.c: New file.
2561
2562 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
2563
2564 * sysdeps/aarch64/dl-machine.h (elf_machine_rela): Expand MIN.
2565
2566 2017-10-04 Joseph Myers <joseph@codesourcery.com>
2567
2568 [BZ #22229]
2569 * sysdeps/sparc/sparc32/fpu/s_copysign.S: Include
2570 <math_ldbl_opt.h>
2571 (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
2572 and libc.
2573 * sysdeps/sparc/sparc32/fpu/s_fabs.S: Include <math_ldbl_opt.h>.
2574 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
2575 * sysdeps/sparc/sparc32/fpu/s_fma.c: Include <math_ldbl_opt.h>.
2576 (fmal): Define as compat symbol at version GLIBC_2_1 for libm.
2577 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
2578 Include <math_ldbl_opt.h>
2579 (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
2580 and libc.
2581 (compat_symbol): Undefine and redefine.
2582 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Include
2583 <math_ldbl_opt.h>
2584 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
2585 (compat_symbol): Undefine and redefine.
2586 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c
2587 [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h>.
2588 [HAVE_AS_VIS3_SUPPORT] (fmal): Define as compat symbol at version
2589 GLIBC_2_1 for libm.
2590 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Add
2591 GLIBC_2.0 copysignl symbol.
2592 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
2593 GLIBC_2.0 copysignl and fabsl and GLIBC_2.1 fmal symbols.
2594
2595 * sysdeps/alpha/fpu/s_nearbyint.c: Remove file.
2596
2597 2017-10-04 Florian Weimer <fweimer@redhat.com>
2598
2599 * scripts/check-local-headers.sh: Ignore nspr4 header file
2600 directory in addition to nspr.
2601
2602 2017-10-04 Guido Trentalancia <guido@trentalancia.net>
2603
2604 [BZ #17956]
2605 * configure.ac (--enable-nss-crypt): Use NSPR include directory.
2606 * configure: Regenerate.
2607 * crypt/Makefile (nss-cpp-flags): New variable.
2608 (CPPFLAGS-sha256-crypt.c, CPPFLAGS-sha512-crypt.c)
2609 (CPPFLAGS-md5-crypt.c): Use it.
2610 * scripts/check-local-headers.sh: Ignore nspr header file
2611 directory.
2612
2613 2017-10-04 Andreas Schwab <schwab@suse.de>
2614
2615 * nis/Makefile (services): Remove compat.
2616 (libnss_compat-routines, libnss_compat-inhibit-o): Don't define.
2617 ($(objpfx)libnss_compat.so): Remove rule.
2618 * nis/Versions (libnss_compat): Remove.
2619 * nss/Makefile (services): Add compat.
2620 (libnss_compat-routines, libnss_compat-inhibit-o): Define.
2621 * nss/Versions (libnss_compat): Define.
2622 * nss/nss_compat/compat-grp.c: Moved here from nis/nss_compat.
2623 Don't include <rpc/types.h>. Replace bool_t by bool.
2624 * nss/nss_compat/compat-initgroups.c: Likewise.
2625 * nss/nss_compat/compat-pwd.c: Likewise. Include "nisdomain.h"
2626 instead of <rpcsrv/ypclnt.h>.
2627 (getpwent_next_nss_netgr): Use __nss_get_default_domain instead of
2628 yp_get_default_domain.
2629 * nss/nss_compat/compat-pwd.c: Likewise.
2630 (getspent_next_nss_netgr): Use __nss_get_default_domain instead of
2631 yp_get_default_domain.
2632 * nss/nss_compat/nisdomain.c: New file.
2633 * nss/nss_compat/nisdomain.h: Likewise.
2634
2635 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
2636
2637 [BZ #22244]
2638 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Fix x == 0 case.
2639 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
2640
2641 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
2642
2643 [BZ #22243]
2644 * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c (__ieee754_log10): Use fabs.
2645 * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c (__ieee754_log2): Likewise.
2646
2647 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
2648
2649 * sysdeps/i386/start.S: Replace "leal main@GOT(%ebx), %eax" with
2650 "movl main@GOTOFF(%ebx), %eax".
2651
2652 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
2653
2654 * sysdeps/i386/dl-machine.h (elf_machine_load_address): Don't
2655 allow undefined _DYNAMIC in PIE libc.a.
2656 * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
2657 Likewse.
2658
2659 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
2660
2661 * sysdeps/mips/dl-machine.h (elf_machine_load_address): Don't
2662 check _DYNAMIC.
2663
2664 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
2665
2666 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Don't
2667 check _DYNAMIC.
2668
2669 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
2670
2671 * math/test-math-iscanonical.cc (error): Replace bool with int.
2672
2673 2017-10-03 Joseph Myers <joseph@codesourcery.com>
2674
2675 * sysdeps/ieee754/dbl-64/s_modf.c: Include <libm-alias-double.h>.
2676 (modf): Define using libm_alias_double, only if [!__modf].
2677 * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Include
2678 <libm-alias-double.h>.
2679 (modf): Define using libm_alias_double, only if [!__modf].
2680 * sysdeps/ieee754/ldbl-opt/s_modf.c (modfl): Only define libc
2681 compat symbol here.
2682 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-ppc32.c
2683 (weak_alias): Do not undefine and redefine.
2684 (strong_alias): Likewise.
2685 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-ppc64.c
2686 (weak_alias): Likewise.
2687 (strong_alias): Likewise.
2688
2689 * sysdeps/ieee754/dbl-64/s_logb.c: Include <libm-alias-double.h>.
2690 (logb): Define using libm_alias_double, only if [!__logb].
2691 * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Include
2692 <libm-alias-double.h>.
2693 (logb): Define using libm_alias_double, only if [!__logb].
2694 * sysdeps/ieee754/ldbl-opt/s_logb.c: Remove file.
2695 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-ppc32.c
2696 (weak_alias): Do not undefine and redefine.
2697 (strong_alias): Likewise.
2698 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-ppc64.c
2699 (weak_alias): Likewise.
2700 (strong_alias): Likewise.
2701
2702 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
2703
2704 * sysdeps/unix/sysv/linux/tile/sysdep.h (SYSCALL_ERROR_NAME):
2705 Check SHARED instead PIC.
2706
2707 2017-10-03 Joseph Myers <joseph@codesourcery.com>
2708
2709 * sysdeps/ieee754/dbl-64/s_fmaf.c: Include <libm-alias-float.h>.
2710 [!__fmaf] (fmaf): Define using libm_alias_float.
2711
2712 * sysdeps/ieee754/dbl-64/s_frexp.c: Include <libm-alias-double.h>.
2713 (frexp): Define using libm_alias_double.
2714 * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Include
2715 <libm-alias-double.h>.
2716 (frexp): Define using libm_alias_double.
2717 * sysdeps/ieee754/ldbl-opt/s_frexp.c (frexpl): Only define libc
2718 compat symbol here.
2719
2720 2017-10-03 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
2721
2722 [BZ #22235]
2723 * math/math.h: Trivial fix for unbalanced parentheses in comment.
2724 * math/Makefile [CXX] (tests): Add test-math-iscanonical.cc.
2725 (CFLAGS-test-math-iscanonical.cc): New variable.
2726 * math/test-math-iscanonical.cc: New file.
2727 * sysdeps/ieee754/ldbl-96/bits/iscanonical.h (iscanonical):
2728 Provide a C++ implementation based on function overloading,
2729 rather than using __MATH_TG, which uses C-only builtins.
2730 * sysdeps/ieee754/ldbl-128ibm/bits/iscanonical.h (iscanonical):
2731 Likewise.
2732 * sysdeps/powerpc/powerpc64le/Makefile
2733 (CFLAGS-test-math-iscanonical.cc): New variable.
2734
2735 2017-10-03 Joseph Myers <joseph@codesourcery.com>
2736
2737 * sysdeps/ieee754/dbl-64/s_ceil.c: Include <libm-alias-double.h>.
2738 (ceil): Define using libm_alias_double.
2739 * sysdeps/ieee754/dbl-64/s_floor.c: Include <libm-alias-double.h>.
2740 (floor): Define using libm_alias_double.
2741 * sysdeps/ieee754/dbl-64/s_llround.c: Include
2742 <libm-alias-double.h>.
2743 (llround): Define using libm_alias_double.
2744 * sysdeps/ieee754/dbl-64/s_lround.c: Include
2745 <libm-alias-double.h>.
2746 (lround): Define using libm_alias_double.
2747 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Include
2748 <libm-alias-double.h>.
2749 (nearbyint): Define using libm_alias_double.
2750 * sysdeps/ieee754/dbl-64/s_remquo.c: Include
2751 <libm-alias-double.h>.
2752 (remquo): Define using libm_alias_double.
2753 * sysdeps/ieee754/dbl-64/s_rint.c: Include <libm-alias-double.h>.
2754 (rint): Define using libm_alias_double.
2755 * sysdeps/ieee754/dbl-64/s_round.c: Include <libm-alias-double.h>.
2756 (round): Define using libm_alias_double.
2757 * sysdeps/ieee754/dbl-64/s_trunc.c: Include <libm-alias-double.h>.
2758 (trunc): Define using libm_alias_double.
2759 * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Include
2760 <libm-alias-double.h>.
2761 (ceil): Define using libm_alias_double.
2762 * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Include
2763 <libm-alias-double.h>.
2764 (floor): Define using libm_alias_double.
2765 * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: Include
2766 <libm-alias-double.h>.
2767 (llround): Define using libm_alias_double.
2768 [_LP64] (lround): Likewise.
2769 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Include
2770 <libm-alias-double.h>.
2771 [!_LP64] (lround): Define using libm_alias_double.
2772 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Include
2773 <libm-alias-double.h>.
2774 (nearbyint): Define using libm_alias_double.
2775 * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Include
2776 <libm-alias-double.h>.
2777 (remquo): Define using libm_alias_double.
2778 * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Include
2779 <libm-alias-double.h>.
2780 (rint): Define using libm_alias_double.
2781 * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Include
2782 <libm-alias-double.h>.
2783 (round): Define using libm_alias_double.
2784 * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Include
2785 <libm-alias-double.h>.
2786 (trunc): Define using libm_alias_double.
2787 * sysdeps/ieee754/ldbl-opt/s_ceil.c: Remove file.
2788 * sysdeps/ieee754/ldbl-opt/s_floor.c: Likewise.
2789 * sysdeps/ieee754/ldbl-opt/s_llround.c: Likewise.
2790 * sysdeps/ieee754/ldbl-opt/s_lround.c: Likewise.
2791 * sysdeps/ieee754/ldbl-opt/s_nearbyint.c: Likewise.
2792 * sysdeps/ieee754/ldbl-opt/s_remquo.c: Likewise.
2793 * sysdeps/ieee754/ldbl-opt/s_rint.c: Likewise.
2794 * sysdeps/ieee754/ldbl-opt/s_round.c: Likewise.
2795 * sysdeps/ieee754/ldbl-opt/s_trunc.c: Likewise.
2796
2797 2017-10-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
2798
2799 * math/w_remainder.c: New file.
2800 * math/w_remainderf.c: New file.
2801 * math/w_remainderl.c: New file.
2802
2803 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
2804
2805 * elf/rtld.c (BOOTSTRAP_MAP): New.
2806 (RESOLVE_MAP): Replace (&bootstrap_map) with BOOTSTRAP_MAP.
2807 * sysdeps/hppa/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
2808 Likewise.
2809 * sysdeps/ia64/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
2810 Likewise.
2811 * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
2812 Likewise.
2813
2814 2017-10-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
2815
2816 * include/libc-symbols.h [NO_RTLD_HIDDEN] (rtld_hidden_proto,
2817 rtld_hidden_tls_proto, rtld_hidden_def, rtld_hidden_weak,
2818 rtld_hidden_rtld_hidden_ver, data_def, rtld_hidden_data_weak,
2819 rtld_hidden_data_ver): Define to empty.
2820 * include/assert.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__assert_fail,
2821 __assert_perror_fail): Likewise.
2822 * include/dirent.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
2823 (__rewinddir): Likewise.
2824 * include/libc-internal.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
2825 (__profile_frequency): Likewise.
2826 * include/setjmp.h (__sigsetjmp): Likewise.
2827 * include/signal.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__sigaction,
2828 __libc_sigaction): Likewise.
2829 * include/stdlib.h [NO_RTLD_HIDDEN] (unsetenv, __strtoul_internal): Do
2830 not set hidden attribute.
2831 * include/string.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__stpcpy, __strdup,
2832 __strerror_t, __strsep_g, memchr, memcmp, memcpy, memmove, memset,
2833 rawmemchr, stpcpy, strchr, strcmp, strlen, strnlen, strsep): Likewise.
2834 * include/sys/stat.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__fxstat,
2835 __fxstat64, __lxstat, __lxstat64, __xstat, __xstat64,
2836 __fxstatat64): Likewise.
2837 * include/sys/utsname.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
2838 (__uname): Likewise.
2839 * include/sysdeps/generic/_itoa.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
2840 (_itoa_upper_digits, _itoa_lower_digits): Likewise.
2841 * sysdeps/mach/hurd/configure.ac (NO_HIDDEN): Do not set.
2842 (NO_RTLD_HIDDEN): Set.
2843 * sysdeps/mach/hurd/configure: Refresh.
2844 * config.h.in: Refresh.
2845
2846 2017-10-02 Joseph Myers <joseph@codesourcery.com>
2847
2848 * sysdeps/ieee754/dbl-64/s_atan.c: Include <libm-alias-double.h>.
2849 (atan): Define using libm_alias_double.
2850 * sysdeps/ieee754/dbl-64/s_tan.c: Include <libm-alias-double.h>.
2851 (tan): Define using libm_alias_double.
2852 * sysdeps/ieee754/ldbl-opt/s_atan.c: Remove file.
2853 * sysdeps/ieee754/ldbl-opt/s_tan.c: Likewise.
2854
2855 * sysdeps/ieee754/dbl-64/s_atan.c (atan): Rename to __atan and
2856 define as weak alias of __atan. Do not define any aliases if
2857 [__atan].
2858 [NO_LONG_DOUBLE] (__atanl): Define as strong alias of __atan.
2859 [NO_LONG_DOUBLE] (atanl): Define as weak alias of __atanl.
2860 * sysdeps/ieee754/dbl-64/s_tan.c (tan): Rename to __tan and define
2861 as weak alias of __tan. Do not define any aliases if [__tan].
2862 [NO_LONG_DOUBLE] (__tanl): Define as strong alias of __tan.
2863 [NO_LONG_DOUBLE] (tanl): Define as weak alias of __tanl.
2864 * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c (atan): Rename to
2865 __atan.
2866 * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c (atan): Likewise.
2867 * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c (atan): Likewise.
2868 * sysdeps/x86_64/fpu/multiarch/s_atan.c (atan): Rename to __atan
2869 and define as weak alias of __atan.
2870 * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c (tan): Rename to
2871 __atan.
2872 * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c (tan): Likewise.
2873 * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (tan): Likewise.
2874 * sysdeps/x86_64/fpu/multiarch/s_tan.c (tan): Rename to __tan and
2875 define as weak alias of __tan.
2876
2877 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
2878
2879 * math/w_lgamma.c: New file.
2880 * math/w_lgammaf.c: New file.
2881 * math/w_lgammal.c: New file.
2882
2883 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
2884
2885 * sysdeps/ieee754/flt-32/e_log2f.c (__log2f): Define without wrapper.
2886 * sysdeps/ieee754/flt-32/e_logf.c (__logf): Likewise
2887 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Likewise
2888 * sysdeps/ieee754/flt-32/w_log2f.c: New file.
2889 * sysdeps/ieee754/flt-32/w_logf.c: New file.
2890 * sysdeps/ieee754/flt-32/w_powf.c: New file.
2891 * sysdeps/i386/fpu/w_log2f.c: New file.
2892 * sysdeps/i386/fpu/w_logf.c: New file.
2893 * sysdeps/i386/fpu/w_powf.c: New file.
2894 * sysdeps/m68k/m680x0/fpu/w_log2f.c: New file.
2895 * sysdeps/m68k/m680x0/fpu/w_logf.c: New file.
2896 * sysdeps/m68k/m680x0/fpu/w_powf.c: New file.
2897
2898 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
2899 H.J. Lu <hongjiu.lu@intel.com>
2900
2901 * sysdeps/ieee754/flt-32/e_exp2f.c (__exp2f): Define without wrapper.
2902 * sysdeps/ieee754/flt-32/e_expf.c (__expf): Likewise
2903 * sysdeps/ieee754/flt-32/w_exp2f.c: New file.
2904 * sysdeps/ieee754/flt-32/w_expf.c: New file.
2905 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-ppc64.c: Update for
2906 the new expf code.
2907 * sysdeps/powerpc/powerpc64/fpu/multiarch/w_expf.c: New file.
2908 * sysdeps/powerpc/powerpc64/power8/fpu/w_expf.c: New file.
2909 * sysdeps/m68k/m680x0/fpu/w_exp2f.c: New file.
2910 * sysdeps/m68k/m680x0/fpu/w_expf.c: New file.
2911 * sysdeps/i386/fpu/w_exp2f.c: New file.
2912 * sysdeps/i386/fpu/w_expf.c: New file.
2913 * sysdeps/i386/i686/fpu/multiarch/w_expf.c: New file.
2914 * sysdeps/x86_64/fpu/w_expf.c: New file.
2915
2916 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
2917
2918 * math/Versions (logf): New libm symbol at GLIBC_2.27.
2919 (log2f): Likewise.
2920 (powf): Likewise.
2921 * math/w_log2f.c: New file.
2922 * math/w_logf.c: New file.
2923 * math/w_powf.c: New file.
2924 * math/w_log2f_compat.c (__log2f_compat): For compat symbol only.
2925 * math/w_logf_compat.c (__logf_compat): Likewise.
2926 * math/w_powf_compat.c (__powf_compat): Likewise.
2927 * sysdeps/ia64/fpu/e_log2f.S: Add versioned symbols.
2928 * sysdeps/ia64/fpu/e_logf.S: Likewise.
2929 * sysdeps/ia64/fpu/e_powf.S: Likewise.
2930 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
2931 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
2932 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
2933 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
2934 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
2935 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
2936 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
2937 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
2938 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
2939 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
2940 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
2941 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
2942 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
2943 Likewise.
2944 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
2945 Likewise.
2946 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
2947 Likewise.
2948 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
2949 Likewise.
2950 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
2951 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
2952 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
2953 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
2954 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
2955 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
2956 Likewise.
2957 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
2958 Likewise.
2959 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
2960 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
2961 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
2962
2963 2017-10-02 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
2964
2965 * sysdeps/powerpc/powerpc64/multiarch/Makefile
2966 (sysdep_routines): Add memrchr_power8.
2967 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
2968 (memrchr): Add __memrchr_power8 to list of memrchr functions.
2969 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S:
2970 New file.
2971 * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
2972 (memrchr): Add __memrchr_power8 to ifunc list.
2973 * sysdeps/powerpc/powerpc64/power8/memrchr.S: New file.
2974
2975 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
2976
2977 [BZ #18822]
2978 * sysdeps/unix/sysv/linux/posix_fadvise64.c
2979 (__posix_fadvise64_l64): Add Add libc_hidden_proto and
2980 libc_hidden_def.
2981 * sysdeps/unix/sysv/linux/posix_fallocate64.c
2982 (__posix_fallocate64_l64): Likewise.
2983
2984 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
2985
2986 [BZ #18822]
2987 * sysdeps/unix/sysv/linux/sched_setaffinity.c
2988 (__sched_setaffinity_new): Add libc_hidden_proto and
2989 libc_hidden_def.
2990
2991 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
2992
2993 [BZ #18822]
2994 * include/glob.h (__glob64): Add libc_hidden_proto.
2995 * sysdeps/unix/sysv/linux/glob64.c (__glob64): Add
2996 libc_hidden_def.
2997
2998 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
2999
3000 [BZ #18822]
3001 * sysdeps/unix/sysv/linux/getrlimit64.c (__new_getrlimit): Add
3002 attribute_hidden.
3003
3004 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
3005
3006 [BZ #18822]
3007 * stdlib/exit.h (__new_exitfn): Add attribute_hidden.
3008
3009 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
3010
3011 [BZ #18822]
3012 * mon/gmon.c (__moncontrol): Add libc_hidden_proto and
3013 libc_hidden_def.
3014
3015 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
3016
3017 [BZ #18822]
3018 * csu/version.c (__libc_print_version): Add attribute_hidden.
3019
3020 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
3021
3022 [BZ #18822]
3023 * include/libc-internal.h (__init_misc): Add attribute_hidden.
3024
3025 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
3026
3027 [BZ #18822]
3028 * include/fpu_control.h (__setfpucw): Add attribute_hidden.
3029
3030 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
3031
3032 [BZ #18822]
3033 * nscd/nscd_helper.c (__nis_hash): New prototype.
3034
3035 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
3036
3037 [BZ #18822]
3038 * include/termios.h (__tcgetattr): Add libc_hidden_proto.
3039 * sysdeps/unix/bsd/tcgetattr.c (__tcgetattr): Add
3040 libc_hidden_def.
3041 * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Likewise.
3042 * termios/tcgetattr.c (__tcgetattr): Likewise.
3043
3044 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
3045
3046 [BZ #18822]
3047 * include/sys/resource.h (__setrlimit): Add libc_hidden_proto.
3048 * resource/setrlimit.c (__setrlimit): Add libc_hidden_def.
3049 * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Likewise.
3050 * sysdeps/unix/sysv/linux/setrlimit.c (__setrlimit): Likewise.
3051 * sysdeps/unix/sysv/linux/setrlimit64.c (__GI___setrlimit): New.
3052
3053 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
3054
3055 [BZ #18822]
3056 * include/monetary.h (__vstrfmon_l): Add attribute_hidden.
3057
3058 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
3059
3060 [BZ #18822]
3061 * include/sched.h (__sched_setparam): Add libc_hidden_proto.
3062 * posix/sched_setp.c (__sched_setparam): Add libc_hidden_def.
3063
3064 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
3065
3066 [BZ #18822]
3067 * intl/hash-string.h (__hash_string): Add attribute_hidden.
3068
3069 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
3070
3071 [BZ #18822]
3072 * include/mntent.h (__hasmntopt): Add libc_hidden_proto.
3073 * misc/mntent_r.c (__hasmntopt): Add libc_hidden_def.
3074
3075 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
3076
3077 [BZ #18822]
3078 * include/ifreq.h: New file.
3079 * sysdeps/generic/ifreq.h (__if_nextreq): Removed.
3080 (__ifreq): Likewise.
3081 * sysdeps/mach/hurd/ifreq.h (__if_nextreq): Removed.
3082 (__ifreq): Likewise.
3083
3084 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
3085
3086 [BZ #18822]
3087 * include/idna.h: New file.
3088 * inet/getnameinfo.c: Include <idna.h> instead of
3089 <libidn/idna.h>.
3090 (__idna_to_unicode_lzlz): Removed.
3091 * sysdeps/posix/getaddrinfo.c: Include <idna.h> instead of
3092 <libidn/idna.h>.
3093 (__idna_to_ascii_lz): Removed.
3094 (__idna_to_unicode_lzlz): Likewise.
3095
3096 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
3097
3098 [BZ #18822]
3099 * include/plural-exp.h: New file.
3100 * intl/plural-exp.c: Include <plural-exp.h> instead of
3101 "plural-exp.h".
3102
3103 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
3104
3105 [BZ #18822]
3106 * sysdeps/unix/sysv/linux/getsourcefilter.c: Include
3107 "getsourcefilter.h".
3108 * sysdeps/unix/sysv/linux/getsourcefilter.h: New file.
3109 * sysdeps/unix/sysv/linux/setsourcefilter.c: Include
3110 "getsourcefilter.h".
3111 (__get_sol): Removed.
3112
3113 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
3114
3115 [BZ #18822]
3116 * elf/dl-iteratephdr.c (hidden_proto (__dl_iterate_phdr)): Moved
3117 to ...
3118 * include/link.h (hidden_proto (__dl_iterate_phdr)): Here.
3119
3120 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
3121
3122 [BZ #18822]
3123 * sysdeps/unix/sysv/linux/getpt.c (__bsd_getpt): Add
3124 attribute_hidden.
3125
3126 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
3127
3128 [BZ #18822]
3129 * libio/iolibio.h (__fopen_maybe_mmap): Add attribute_hidden.
3130
3131 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
3132
3133 [BZ #18822]
3134 * include/search.h (__tdestroy): Add libc_hidden_proto.
3135 * misc/tsearch.c (__tdestroy): Add libc_hidden_def.
3136
3137 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
3138
3139 [BZ #18822]
3140 * include/assert.h (__assert_fail_base): Add attribute_hidden.
3141
3142 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
3143
3144 [BZ #18822]
3145 * sysdeps/unix/sysv/linux/include/sys/sysinfo.h (__sysinfo): Add
3146 attribute_hidden.
3147
3148 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
3149
3150 [BZ #18822]
3151 * include/signal.h (__kill): Add libc_hidden_proto.
3152 (__sigblock): Likewise.
3153 (__sigprocmask): Likewise.
3154 (__sigaltstack): Likewise.
3155 * signal/kill.c (__kill): Add libc_hidden_def.
3156 * signal/sigblock.c (__sigblock): Likewise.
3157 * signal/sigprocmask.c (__sigprocmask): Likewise.
3158 * sysdeps/mach/hurd/kill.c (__kill): Likewise.
3159 * sysdeps/mach/hurd/sigaltstack.c (__sigaltstack): Likewise.
3160 * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Likewise.
3161 * sysdeps/posix/sigblock.c (__sigblock): Likewise.
3162 * sysdeps/unix/sysv/linux/alpha/sigprocmask.c (__sigprocmask):
3163 Likewise.
3164 * sysdeps/unix/sysv/linux/ia64/sigprocmask.c (__sigprocmask):
3165 Likewise.
3166 * sysdeps/unix/sysv/linux/s390/s390-64/sigprocmask.c
3167 (__sigprocmask): Likewise.
3168 * sysdeps/unix/sysv/linux/sigprocmask.c (__sigprocmask):
3169 Likewise.
3170 * /sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c
3171 (__sigprocmask): Likewise.
3172 * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c (__sigprocmask):
3173 Likewise.
3174
3175 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
3176
3177 [BZ #18822]
3178 * include/string.h (__strsep): Add libc_hidden_proto.
3179 * string/strsep.c (__strsep): Add libc_hidden_def.
3180
3181 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
3182
3183 [BZ #18822]
3184 * posix/spawn_int.h (__posix_spawn_file_actions_realloc): Add
3185 attribute_hidden.
3186 (__spawni): Likewise.
3187
3188 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
3189
3190 [BZ #18822]
3191 * include/sys/mman.h (__mremap): Add libc_hidden_proto.
3192 * sysdeps/unix/sysv/linux/m68k/mremap.S (__mremap): Add
3193 libc_hidden_def.
3194
3195 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
3196
3197 [BZ #18822]
3198 * include/malloc.h (__malloc_check_init): Add attribute_hidden.
3199
3200 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
3201
3202 [BZ #18822]
3203 * include/sys/ioctl.h (__ioctl): Add libc_hidden_proto.
3204 * misc/ioctl.c (__ioctl): Add libc_hidden_def.
3205 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
3206 * sysdeps/unix/sysv/linux/aarch64/ioctl.S (__ioctl): Likewise.
3207 * sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S (__ioctl):
3208 Likewise.
3209 * sysdeps/unix/sysv/linux/powerpc/ioctl.c (__ioctl): Likewise.
3210 * sysdeps/unix/sysv/linux/tile/tilegx/ioctl.S (__ioctl): Likewise.
3211
3212 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
3213
3214 [BZ #18822]
3215 * intl/gettextP.h (__dcngettext): Add attribute_hidden.
3216 (__dcigettext): Likewise.
3217
3218 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
3219
3220 [BZ #18822]
3221 * include/sys/sysinfo.h (__get_nprocs_conf): Add
3222 libc_hidden_proto.
3223 (__get_nprocs): Likewise.
3224 (__get_phys_pages): Likewise.
3225 (__get_avphys_pages): Likewise.
3226 (__get_child_max): Add attribute_hidden.
3227 * misc/getsysstats.c (__get_nprocs_conf): Add libc_hidden_def.
3228 (__get_nprocs): Likewise.
3229 (__get_phys_pages): Likewise.
3230 (__get_avphys_pages): Likewise.
3231 * sysdeps/mach/getsysstats.c (__get_nprocs_conf): Add
3232 libc_hidden_def.
3233 (__get_nprocs): Likewise.
3234 (__get_phys_pages): Likewise.
3235 (__get_avphys_pages): Likewise.
3236 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Add
3237 libc_hidden_def.
3238 (__get_nprocs_conf): Likewise.
3239 (__get_phys_pages): Likewise.
3240 (__get_avphys_pages): Likewise.
3241
3242 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
3243
3244 [BZ #18822]
3245 * sysdeps/unix/sysv/linux/netlinkaccess.h (__netlink_open): Add
3246 attribute_hidden.
3247 (__netlink_close): Likewise.
3248 (__netlink_free_handle): Likewise.
3249 (__netlink_request): Likewise.
3250
3251 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
3252
3253 [BZ #18822]
3254 * include/rpc/rpc.h (__rpc_thread_variables): Add
3255 attribute_hidden.
3256 (__rpc_thread_svc_cleanup): Likewise.
3257 (__rpc_thread_clnt_cleanup): Likewise.
3258 (__rpc_thread_key_cleanup): Likewise.
3259
3260 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
3261
3262 [BZ #18822]
3263 * include/sys/uio.h (__readv): Add libc_hidden_proto.
3264 (__writev): Likewise.
3265 * misc/readv.c (__readv): Add libc_hidden_def.
3266 * misc/writev.c (__writev): Likewise.
3267 * sysdeps/posix/readv.c (__readv): Likewise.
3268 * sysdeps/posix/writev.c (__writev): Likewise.
3269 * sysdeps/unix/sysv/linux/readv.c: Include <sys/uio.h>.
3270 (__readv): Likewise.
3271 * sysdeps/unix/sysv/linux/writev.c: Include <sys/uio.h>.
3272 (__writev): Likewise.
3273
3274 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
3275
3276 [BZ #18822]
3277 * include/regex.h (__re_compile_fastmap): Add attribute_hidden.
3278 (__regcomp): Add libc_hidden_proto.
3279 (__regexec): Likewise.
3280 (__regfree): Likewise.
3281 * posix/regcomp.c (__regcomp): Add libc_hidden_def.
3282 (__regfree): Likewise.
3283 * posix/regexec.c (__regexec): Likewise.
3284
3285 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
3286
3287 [BZ #18822]
3288 * include/utmp.h (__updwtmp): Add libc_hidden_proto.
3289 (__getutent): Likewise.
3290 (__getutid): Likewise.
3291 (__getutline): Likewise.
3292 (__pututline): Likewise.
3293 (__getutent_r): Likewise.
3294 (__getutid_r): Likewise.
3295 (__getutline_r): Likewise.
3296 (__utmpname): Add attribute_hidden.
3297 (__setutent): Likewise.
3298 (__endutent): Likewise.
3299 * login/getutent.c (__getutent): Add libc_hidden_def.
3300 * login/getutent_r.c (__getutent_r): Likewise.
3301 (__pututline): Likewise.
3302 * login/getutid.c (__getutid): Likewise.
3303 * login/getutid_r.c (__getutid_r): Likewise.
3304 * login/getutline.c (__getutline): Likewise.
3305 * login/getutline_r.c (__getutline_r): Likewise.
3306 * login/updwtmp.c (__updwtmp): Likewise.
3307
3308 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
3309
3310 [BZ #18822]
3311 * include/dirent.h (__opendir): Always add attribute_hidden.
3312 (__fdopendir): Likewise.
3313 (__closedir): Likewise.
3314 (__readdir): Likewise.
3315 (__readdir64): Add libc_hidden_proto.
3316 * sysdeps/mach/hurd/readdir64.c (__readdir64): Add libc_hidden_def.
3317 * sysdeps/unix/sysv/linux/i386/readdir64.c (__readdir64): Likewise.
3318 * sysdeps/unix/sysv/linux/readdir64.c (__readdir64): Likewise.
3319 * sysdeps/unix/sysv/linux/wordsize-64/readdir.c (__GI___readdir64):
3320 New alias.
3321
3322 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
3323
3324 [BZ #18822]
3325 * include/aliases.h (__getaliasbyname_r): Add attribute_hidden.
3326 * include/netdb.h (__gethostbyaddr_r): Likewise.
3327 (__gethostbyname_r): Likewise.
3328 (__gethostbyname2_r): Likewise.
3329 (__getnetbyaddr_r): Likewise.
3330 (__getnetbyname_r): Likewise.
3331 (__getservbyname_r): Likewise.
3332 (__getservbyport_r): Likewise.
3333 (__getprotobyname_r): Likewise.
3334 (__getprotobynumber_r): Likewise.
3335 (__getnetgrent_r): Likewise.
3336 * include/rpc/netdb.h (__getrpcbyname_r): Likewise.
3337 (__getrpcbynumber_r): Likewise.
3338 * nss/getXXbyYY.c (INTERNAL (REENTRANT_NAME)): Likewise.
3339
3340 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
3341
3342 [BZ #18822]
3343 * include/stdio.h (__fcloseall): Add attribute_hidden.
3344 (__getline): Likewise.
3345 (__path_search): Likewise.
3346 (__gen_tempname): Likewise.
3347 (__libc_message): Likewise.
3348 (__flockfile): Likewise.
3349 (__funlockfile): Likewise.
3350 (__fxprintf): Likewise.
3351 (__fxprintf_nocancel): Likewise.
3352
3353 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
3354
3355 [BZ #18822]
3356 * include/gshadow.h (__fgetsgent_r): Add attribute_hidden.
3357 (__sgetsgent_r): Likewise.
3358
3359 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
3360
3361 [BZ #18822]
3362 * include/sys/statfs.h (__fstatfs): Add attribute_hidden.
3363 (__statfs64): Likewise.
3364 (__fstatfs64): Likewise.
3365 * include/sys/statvfs.h (__statvfs64): Likewise.
3366 (__fstatvfs64): Likewise.
3367 * sysdeps/unix/sysv/linux/pathconf.h (__statfs_link_max): Likewise.
3368 (__statfs_filesize_max): Likewise.
3369 (__statfs_symlinks): Likewise.
3370 (__statfs_chown_restricted): Likewise.
3371
3372 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
3373
3374 [BZ #18822]
3375 * include/time.h (__tzstring): Add attribute_hidden.
3376 (__tzfile_read): Likewise.
3377 (__tzfile_compute): Likewise.
3378 (__tzfile_default): Likewise.
3379 (__tzset_parse_tz): Likewise.
3380 (__offtime): Likewise.
3381 (__asctime_r): Likewise.
3382 (__tzset): Likewise.
3383 (__tz_convert): Likewise.
3384 (__getdate_r): Likewise.
3385 (__getclktck): Likewise.
3386
3387 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
3388
3389 [BZ #18822]
3390 * nscd/nscd-client.h (__nscd_get_map_ref): Add attribute_hidden.
3391 (__nscd_unmap): Likewise.
3392 (__nscd_cache_search): Likewise.
3393 (__nscd_get_nl_timestamp): Likewise.
3394 (__nscd_getpwnam_r): Likewise.
3395 (__nscd_getpwuid_r): Likewise.
3396 (__nscd_getgrnam_r): Likewise.
3397 (__nscd_getgrgid_r): Likewise.
3398 (__nscd_gethostbyname_r): Likewise.
3399 (__nscd_gethostbyname2_r): Likewise.
3400 (__nscd_gethostbyaddr_r): Likewise.
3401 (__nscd_getai): Likewise.
3402 (__nscd_getgrouplist): Likewise.
3403 (__nscd_getservbyname_r): Likewise.
3404 (__nscd_getservbyport_r): Likewise.
3405 (__nscd_innetgr): Likewise.
3406 (__nscd_setnetgrent): Likewise.
3407
3408 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
3409
3410 [BZ #18822]
3411 * include/gmp.h: Declare internal functions only if _ISOMAC is
3412 undefined.
3413 (__mpn_extract_double): Add attribute_hidden.
3414 (__mpn_extract_long_double): Likewise.
3415 (__mpn_extract_float128): Likewise.
3416 (__mpn_construct_float): Likewise.
3417 (__mpn_construct_double): Likewise.
3418 (__mpn_construct_long_double): Likewise.
3419 (__mpn_construct_float128): Likewise.
3420 (mpn_add_1): Likewise.
3421 (mpn_addmul_1): Likewise.
3422 (mpn_add_n): Likewise.
3423 (mpn_cmp): Likewise.
3424 (mpn_divrem): Likewise.
3425 (mpn_lshift): Likewise.
3426 (mpn_mul): Likewise.
3427 (mpn_mul_1): Likewise.
3428 (mpn_rshift): Likewise.
3429 (mpn_sub_1): Likewise.
3430 (mpn_submul_1): Likewise.
3431 (mpn_sub_n): Likewise.
3432
3433 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
3434
3435 [BZ #18822]
3436 * include/wchar.h (__wcsnlen): Add attribute_hidden.
3437 (__wcscat): Likewise.
3438 (__btowc): Likewise.
3439 (__wcrtomb): Likewise.
3440 (__mbsrtowcs): Likewise.
3441 (__wcsrtombs): Likewise.
3442 (__mbsnrtowcs): Likewise.
3443 (__wcsnrtombs): Likewise.
3444 (__wcsncpy): Likewise.
3445 (__wcpncpy): Likewise.
3446 (__wmemcpy): Likewise.
3447 (__wmempcpy): Likewise.
3448 (__wmemmove): Likewise.
3449 (__wcschrnul): Likewise.
3450 (__vfwscanf): Likewise.
3451 (__vswprintf): Likewise.
3452 (__fwprintf): Likewise.
3453 (__vfwprintf): Likewise.
3454
3455 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
3456
3457 [BZ #18822]
3458 * include/grp.h (__fgetgrent_r): Add attribute_hidden.
3459 (__getgrgid_r): Likewise.
3460 (__getgrnam_r): Likewise.
3461 * include/pwd.h (__getpwuid_r): Likewise.
3462 (__getpwnam_r): Likewise.
3463 (__fgetpwent_r): Likewise.
3464 * include/shadow.h (__getspnam_r): Likewise.
3465 (__sgetspent_r): Likewise.
3466 (__fgetspent_r): Likewise.
3467
3468 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
3469
3470 [BZ #18822]
3471 * include/unistd.h (__access): Add attribute_hidden.
3472 (__lseek64): Likewise.
3473 (__libc_pread64): Likewise.
3474 (__pipe2): Likewise.
3475 (__sleep): Likewise.
3476 (__chdir): Likewise.
3477 (__fchdir): Likewise.
3478 (__getcwd): Likewise.
3479 (__rmdir): Likewise.
3480 (__execvpe): Likewise.
3481 (__execve): Likewise.
3482 (__setsid): Likewise.
3483 (__getuid): Likewise.
3484 (__geteuid): Likewise.
3485 (__getgid): Likewise.
3486 (__getegid): Likewise.
3487 (__getgroups): Likewise.
3488 (__group_member): Likewise.
3489 (__ttyname_r): Likewise.
3490 (__isatty): Likewise.
3491 (__readlink): Likewise.
3492 (__unlink): Likewise.
3493 (__gethostname): Likewise.
3494 (__profil): Likewise.
3495 (__getdtablesize): Likewise.
3496 (__brk): Likewise.
3497 (__ftruncate): Likewise.
3498 (__ftruncate64): Likewise.
3499
3500 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
3501
3502 [BZ #18822]
3503 * argp/argp-fmtstream.c: Include <argp-fmtstream.h>.
3504 * argp/argp-fs-xinl.c: Likewise.
3505 * argp/argp-help.c: Include <argp.h> and <argp-fmtstream.h>.
3506 * argp/argp-parse.c: Include <argp.h>.
3507 * argp/argp-xinl.c: Likewise.
3508 * include/argp-fmtstream.h: New file.
3509 * include/argp.h (__argp_error): Add attribute_hidden.
3510 (__argp_failure): Likewise.
3511 (__argp_input): Likewise.
3512 (__argp_state_help): Likewise.
3513
3514 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
3515
3516 [BZ #18822]
3517 * include/wchar.h (____wcstof_l_internal): New prototype.
3518 (____wcstod_l_internal): Likewise.
3519 (____wcstold_l_internal): Likewise.
3520 (____wcstol_l_internal): Likewise.
3521 (____wcstoul_l_internal): Likewise.
3522 (____wcstoll_l_internal): Likewise.
3523 (____wcstoull_l_internal): Likewise.
3524 (____wcstof128_l_internal): Likewise.
3525 * sysdeps/ieee754/float128/wcstof128.c
3526 (____wcstof128_l_internal): Removed.
3527 * sysdeps/ieee754/float128/wcstof128_l.c
3528 (____wcstof128_l_internal): Likewise.
3529 * wcsmbs/wcstod.c (____wcstod_l_internal): Likewise.
3530 * wcsmbs/wcstod_l.c (____wcstod_l_internal): Likewise.
3531 * wcsmbs/wcstof.c (____wcstof_l_internal): Likewise.
3532 * wcsmbs/wcstof_l.c (____wcstof_l_internal): Likewise.
3533 * wcsmbs/wcstol_l.c (____wcstol_l_internal): Likewise.
3534 * wcsmbs/wcstold.c (____wcstold_l_internal): Likewise.
3535 * wcsmbs/wcstold_l.c (____wcstold_l_internal): Likewise.
3536 * wcsmbs/wcstoll_l.c (____wcstoll_l_internal): Likewise.
3537 * wcsmbs/wcstoul_l.c (____wcstoul_l_internal): Likewise.
3538 * wcsmbs/wcstoull_l.c (____wcstoull_l_internal): Likewise.
3539
3540 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
3541
3542 [BZ #18822]
3543 * sysdeps/unix/sysv/linux/fstatvfs.c: Include "internal_statvfs.h"
3544 instead of <sys/statvfs.h>.
3545 (__internal_statvfs): Removed.
3546 * sysdeps/unix/sysv/linux/fstatvfs64.c Include "internal_statvfs.h"
3547 instead of <sys/statvfs.h>.
3548 (__internal_statvfs64): Removed.
3549 * sysdeps/unix/sysv/linux/internal_statvfs.c: Include
3550 "internal_statvfs.h" instead of <sys/statvfs.h>.
3551 * sysdeps/unix/sysv/linux/internal_statvfs.h: New file.
3552 * sysdeps/unix/sysv/linux/statvfs.c Include "internal_statvfs.h"
3553 instead of <sys/statvfs.h>.
3554 (__internal_statvfs): Removed.
3555 * sysdeps/unix/sysv/linux/statvfs64.c Include "internal_statvfs.h"
3556 instead of <sys/statvfs.h>.
3557 (__internal_statvfs64): Removed.
3558
3559 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
3560
3561 [BZ #18822]
3562 * iconv/gconv_int.h (__gconv_open): Add attribute_hidden.
3563 (__gconv_close): Likewise.
3564 (__gconv): Likewise.
3565 (__gconv_find_transform): Likewise.
3566 (__gconv_lookup_cache): Likewise.
3567 (__gconv_compare_alias_cache): Likewise.
3568 (__gconv_load_cache): Likewise.
3569 (__gconv_get_path): Likewise.
3570 (__gconv_close_transform): Likewise.
3571 (__gconv_release_cache): Likewise.
3572 (__gconv_find_shlib): Likewise.
3573 (__gconv_release_shlib): Likewise.
3574 (__gconv_get_builtin_trans): Likewise.
3575 (__gconv_compare_alias): Likewise.
3576 * include/dlfcn.h (_dlerror_run): Likewise.
3577 * include/stdio.h (__fortify_fail_abort): Likewise.
3578 * include/time.h (__tz_compute): Likewise.
3579 (__strptime_internal): Likewise.
3580 * intl/gettextP.h (_nl_find_domain): Likewise.
3581 (_nl_load_domain): Likewise.
3582 (_nl_find_msg): Likewise.
3583 * intl/plural-exp.h (FREE_EXPRESSION): Likewise.
3584 (EXTRACT_PLURAL_EXPRESSION): Likewise.
3585 * locale/coll-lookup.h (__collidx_table_lookup): Likewise.
3586 * resolv/gai_misc.h (__gai_enqueue_request): Likewise.
3587 (__gai_find_request): Likewise.
3588 (__gai_remove_request): Likewise.
3589 (__gai_notify): Likewise.
3590 (__gai_notify_only): Likewise.
3591 * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
3592 * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
3593 (_dl_non_dynamic_init): Likewise.
3594 (_dl_aux_init): Likewise.
3595 * sysdeps/i386/machine-gmon.h (mcount_internal): Likewise.
3596 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
3597 Likewise.
3598 * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv): Likewise.
3599 (__wcsmbs_clone_conv): Likewise.
3600 (__wcsmbs_named_conv): Likewise.
3601
3602 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
3603
3604 [BZ #18822]
3605 * include/stdlib.h (__random): Add attribute_hidden.
3606 (__random_r): Likewise.
3607 (__srandom_r): Likewise.
3608 (__initstate_r): Likewise.
3609 (__setstate_r): Likewise.
3610 (__erand48_r): Likewise.
3611 (__nrand48_r): Likewise.
3612 (__jrand48_r): Likewise.
3613 (__srand48_r): Likewise.
3614 (__seed48_r): Likewise.
3615 (__lcong48_r): Likewise.
3616 (__drand48_iterate): Likewise.
3617 (__setenv): Likewise.
3618 (__unsetenv): Likewise.
3619 (__clearenv): Likewise.
3620 (__ptsname_r): Likewise.
3621 (__posix_openpt): Likewise.
3622 (__add_to_environ): Likewise.
3623 (__realpath): Add libc_hidden_proto.
3624 (__ecvt_r): Likewise.
3625 (__fcvt_r): Likewise.
3626 (__qecvt_r): Likewise.
3627 (__qfcvt_r): Likewise.
3628 * misc/efgcvt_r.c (cvt_symbol_1): Add libc_hidden_def (local).
3629 * stdlib/canonicalize.c (__realpath): Add libc_hidden_def.
3630
3631 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
3632
3633 [BZ #18822]
3634 * include/stdlib.h (__ptsname_internal): Add attribute_hidden.
3635 * include/time.h (__mktime_internal): Likewise.
3636 * libio/iolibio.h (__fopen_internal): Likewise.
3637
3638 2017-10-01 John David Anglin <danglin@gcc.gnu.org>
3639
3640 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Save return
3641 pointer in frame.
3642 * sysdeps/unix/sysv/linux/hppa/setcontext.S (__setcontext): Likewise.
3643 Correct offset used to restore PIC register.
3644
3645 2017-09-30 John David Anglin <danglin@gcc.gnu.org>
3646
3647 [BZ libc/22165]
3648 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Use PIC
3649 code to load address of __getcontext_ret when generating PIC code.
3650
3651 2017-09-30 H.J. Lu <hongjiu.lu@intel.com>
3652
3653 * elf/Makefile (tests-static-internal): Add
3654 tst-tls1-static-non-pie.
3655 (LDFLAGS-tst-tls1-static-non-pie): New.
3656 * elf/tst-tls1-static-non-pie.c: New file.
3657
3658 2017-09-29 Joseph Myers <joseph@codesourcery.com>
3659
3660 * sysdeps/ieee754/dbl-64/s_asinh.c: Include <libm-alias-double.h>.
3661 (asinh): Define using libm_alias_double.
3662 * sysdeps/ieee754/dbl-64/s_cbrt.c: Include <libm-alias-double.h>.
3663 (cbrt): Define using libm_alias_double.
3664 * sysdeps/ieee754/dbl-64/s_copysign.c: Include
3665 <libm-alias-double.h>.
3666 (copysign): Define using libm_alias_double.
3667 * sysdeps/ieee754/dbl-64/s_erf.c: Include <libm-alias-double.h>.
3668 (erf): Define using libm_alias_double.
3669 (erfc): Likewise.
3670 * sysdeps/ieee754/dbl-64/s_expm1.c: Include <libm-alias-double.h>.
3671 (expm1): Define using libm_alias_double.
3672 * sysdeps/ieee754/dbl-64/s_fabs.c: Include <libm-alias-double.h>.
3673 (fabs): Define using libm_alias_double.
3674 * sysdeps/ieee754/dbl-64/s_fromfp.c (fromfp): Define using
3675 libm_alias_double.
3676 * sysdeps/ieee754/dbl-64/s_fromfp_main.c: Include
3677 <libm-alias-double.h>.
3678 * sysdeps/ieee754/dbl-64/s_fromfpx.c (fromfpx): Define using
3679 libm_alias_double.
3680 * sysdeps/ieee754/dbl-64/s_getpayload.c: Include
3681 <libm-alias-double.h>.
3682 (getpayload): Define using libm_alias_double.
3683 * sysdeps/ieee754/dbl-64/s_llrint.c: Include
3684 <libm-alias-double.h>.
3685 (llrint): Define using libm_alias_double.
3686 * sysdeps/ieee754/dbl-64/s_lrint.c: Include <libm-alias-double.h>.
3687 (lrint): Define using libm_alias_double.
3688 * sysdeps/ieee754/dbl-64/s_nextup.c: Include
3689 <libm-alias-double.h>.
3690 (nextup): Define using libm_alias_double.
3691 * sysdeps/ieee754/dbl-64/s_roundeven.c: Include
3692 <libm-alias-double.h>.
3693 (roundeven): Define using libm_alias_double.
3694 * sysdeps/ieee754/dbl-64/s_setpayload.c (setpayload): Define using
3695 libm_alias_double.
3696 * sysdeps/ieee754/dbl-64/s_setpayload_main.c: Include
3697 <libm-alias-double.h>.
3698 * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (setpayloadsig): Define
3699 using libm_alias_double.
3700 * sysdeps/ieee754/dbl-64/s_sin.c: Include <libm-alias-double.h>.
3701 (cos): Define using libm_alias_double.
3702 (sin): Likewise.
3703 * sysdeps/ieee754/dbl-64/s_sincos.c: Include
3704 <libm-alias-double.h>.
3705 (sincos): Define using libm_alias_double.
3706 * sysdeps/ieee754/dbl-64/s_tanh.c: Include <libm-alias-double.h>.
3707 (tanh): Define using libm_alias_double.
3708 * sysdeps/ieee754/dbl-64/s_totalorder.c: Include
3709 <libm-alias-double.h>.
3710 (totalorder): Define using libm_alias_double.
3711 * sysdeps/ieee754/dbl-64/s_totalordermag.c: Include
3712 <libm-alias-double.h>.
3713 (totalordermag): Define using libm_alias_double.
3714 * sysdeps/ieee754/dbl-64/s_ufromfp.c (ufromfp): Define using
3715 libm_alias_double.
3716 * sysdeps/ieee754/dbl-64/s_ufromfpx.c (ufromfpx): Define using
3717 libm_alias_double.
3718 * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c: Include
3719 <libm-alias-double.h>.
3720 (getpayload): Define using libm_alias_double.
3721 * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c: Include
3722 <libm-alias-double.h>.
3723 (roundeven): Define using libm_alias_double.
3724 * sysdeps/ieee754/dbl-64/wordsize-64/s_setpayload_main.c: Include
3725 <libm-alias-double.h>.
3726 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c: Include
3727 <libm-alias-double.h>.
3728 (totalorder): Define using libm_alias_double.
3729 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c: Include
3730 <libm-alias-double.h>.
3731 (totalordermag): Define using libm_alias_double.
3732 * sysdeps/ieee754/ldbl-opt/s_copysign.c (copysignl): Only define
3733 libc compat symbol here.
3734 * sysdeps/ieee754/ldbl-opt/s_asinh.c: Remove file.
3735 * sysdeps/ieee754/ldbl-opt/s_cbrt.c: Likewise.
3736 * sysdeps/ieee754/ldbl-opt/s_erf.c: Likewise.
3737 * sysdeps/ieee754/ldbl-opt/s_expm1.c: Likewise.
3738 * sysdeps/ieee754/ldbl-opt/s_fabs.c: Likewise.
3739 * sysdeps/ieee754/ldbl-opt/s_llrint.c: Likewise.
3740 * sysdeps/ieee754/ldbl-opt/s_lrint.c: Likewise.
3741 * sysdeps/ieee754/ldbl-opt/s_sin.c: Likewise.
3742 * sysdeps/ieee754/ldbl-opt/s_sincos.c: Likewise.
3743 * sysdeps/ieee754/ldbl-opt/s_tanh.c: Likewise.
3744
3745 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
3746
3747 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Use
3748 _dl_relocate_static_pie instead of _dl_start to compute load
3749 address in static PIE. Return 0 if _DYNAMIC is undefined for
3750 static executable.
3751
3752 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
3753
3754 * sysdeps/mips/dl-machine.h (elf_machine_dynamic): Return 0 if
3755 _DYNAMIC is undefined for static executable.
3756
3757 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
3758
3759 * sysdeps/arm/start.S (_start): Check PIC instead of SHARED.
3760
3761 2017-09-29 Joseph Myers <joseph@codesourcery.com>
3762
3763 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
3764
3765 2017-09-29 Wilco Dijkstra <wdijkstr@arm.com>
3766
3767 * sysdeps/ieee754/dbl-64/e_lgamma_r.c
3768 (__ieee754_lgamma_r): Use fabs rather than __fabs.
3769 * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
3770 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
3771 * sysdeps/ieee754/flt-32/e_lgammaf_r.c
3772 (__ieee754_lgammaf_r): Use fabsf rather than __fabsf.
3773 * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
3774 * sysdeps/ieee754/flt-32/e_log2f.c (__ieee754_log2f): Likewise.
3775 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c
3776 (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
3777 * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Likewise.
3778 * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Likewise.
3779 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
3780 (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
3781 * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l): Likewise.
3782 * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l): Likewise.
3783 * sysdeps/powerpc/nofpu/Makefile: Add -fno-builtin-fabsl for BZ #29253.
3784
3785 2017-09-29 Wilco Dijkstra <wdijkstr@arm.com>
3786
3787 * math/bits/cmathcalls.h (cimag): Remove inline.
3788 (creal): Remove inline.
3789 (conj): Remove inline.
3790
3791 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
3792
3793 * math/Makefile (type-float-routines): Add e_powf_log2_data.
3794 * sysdeps/ieee754/flt-32/e_powf.c: New implementation.
3795 * sysdeps/ieee754/flt-32/e_powf_log2_data.c: New file.
3796 * sysdeps/ieee754/flt-32/math_config.h (__powf_log2_data): Define.
3797 (issignalingf_inline): Likewise.
3798 (POWF_LOG2_TABLE_BITS): Likewise.
3799 (POWF_LOG2_POLY_ORDER): Likewise.
3800 (POWF_SCALE_BITS): Likewise.
3801 (POWF_SCALE): Likewise.
3802 * sysdeps/i386/fpu/e_powf_log2_data.c: New file.
3803 * sysdeps/ia64/fpu/e_powf_log2_data.c: New file.
3804 * sysdeps/m68k/m680x0/fpu/e_powf_log2_data.c: New file.
3805
3806 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
3807
3808 * math/Makefile (type-float-routines): Add e_log2f_data.
3809 * sysdeps/ieee754/flt-32/e_log2f.c: New implementation.
3810 * sysdeps/ieee754/flt-32/e_log2f_data.c: New file.
3811 * sysdeps/ieee754/flt-32/math_config.h (__log2f_data): Define.
3812 (LOG2F_TABLE_BITS, LOG2F_POLY_ORDER): Define.
3813 * sysdeps/i386/fpu/e_log2f_data.c: New file.
3814 * sysdeps/ia64/fpu/e_log2f_data.c: New file.
3815 * sysdeps/m68k/m680x0/fpu/e_log2f_data.c: New file.
3816
3817 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
3818
3819 * math/Makefile (type-float-routines): Add e_logf_data.
3820 * sysdeps/ieee754/flt-32/e_logf.c: New implementation.
3821 * sysdeps/ieee754/flt-32/e_logf_data.c: New file.
3822 * sysdeps/ieee754/flt-32/math_config.h (__logf_data): Define.
3823 (LOGF_TABLE_BITS, LOGF_POLY_ORDER): Define.
3824 * sysdeps/i386/fpu/e_logf_data.c: New file.
3825 * sysdeps/ia64/fpu/e_logf_data.c: New file.
3826 * sysdeps/m68k/m680x0/fpu/e_logf_data.c: New file.
3827
3828 2017-09-28 H.J. Lu <hongjiu.lu@intel.com>
3829
3830 * sysdeps/i386/dl-machine.h (elf_machine_load_address): Allow
3831 undefined _DYNAMIC in PIE libc.a.
3832 * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
3833 Likewse.
3834
3835 2017-09-28 Wilco Dijkstra <wdijkstr@arm.com>
3836
3837 * sysdeps/alpha/fpu/bits/mathinline.h: Delete file.
3838 * sysdeps/ia64/fpu/bits/mathinline.h: Delete file.
3839 * sysdeps/m68k/coldfire/fpu/bits/mathinline.h: Delete file.
3840 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: (__signbitf): Remove.
3841 (__signbit): Remove.
3842 (__signbitl): Remove.
3843 * sysdeps/powerpc/bits/mathinline.h (__signbitf): Remove.
3844 (__signbit): Remove.
3845 (__signbitl): Remove.
3846 * sysdeps/s390/fpu/bits/mathinline.h: (__signbitf): Remove.
3847 (__signbit): Remove.
3848 (__signbitl): Remove.
3849 * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf): Remove.
3850 (__signbit): Remove.
3851 (__signbitl): Remove.
3852 * sysdeps/tile/bits/mathinline.h: Delete file.
3853 * sysdeps/x86/fpu/bits/mathinline.h (__signbitf): Remove.
3854 (__signbit): Remove.
3855 (__signbitl): Remove.
3856
3857 2017-09-28 Wilco Dijkstra <wdijkstr@arm.com>
3858
3859 * math/math.h: Improve handling of C99 isgreater macros.
3860 * sysdeps/alpha/fpu/bits/mathinline.h: Remove isgreater macros.
3861 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: Likewise.
3862 * sysdeps/powerpc/bits/mathinline.h: Likewise.
3863 * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
3864 * sysdeps/x86/fpu/bits/mathinline.h: Likewise.
3865
3866 2017-09-28 Szabolcs Nagy <szabolcs.nagy@arm.com>
3867
3868 * sysdeps/aarch64/libm-test-ulps: Update.
3869
3870 2017-09-28 Joseph Myers <joseph@codesourcery.com>
3871
3872 [BZ #22225]
3873 * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
3874 math_opt_barrier on argument when doing arithmetic on it.
3875 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
3876 Likewise. Use math_force_eval not math_opt_barrier after
3877 arithmetic.
3878 * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Use
3879 math_opt_barrier on argument when doing arithmetic on it.
3880 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
3881 Likewise.
3882
3883 2017-09-27 H.J. Lu <hongjiu.lu@intel.com>
3884
3885 * sysdeps/unix/sysv/linux/ifaddrs.c (__getifaddrs): Add
3886 libc_hidden_def.
3887 (__freeifaddrs): Likewise.
3888
3889 2017-09-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
3890
3891 * include/dirent.h (__dirfd): New declaration.
3892 * dirent/dirfd.c (dirfd): Rename to __dirfd, and redefine as weak
3893 alias.
3894 * sysdeps/posix/dirfd/dirfd.c (dirfd): Likewise.
3895 * sysdeps/mach/hurd/dirfd.c (dirfd): Likewise.
3896 * io/ftw.c (open_dir_stream, ftw_dir): Use __dirfd instead of dirfd.
3897 * include/unistd.h (__revoke): New declaration.
3898 * misc/revoke.c (revoke): Rename to __revoke, and redefine as weak
3899 alias.
3900 * sysdeps/mach/hurd/revoke.c (revoke): Likewise.
3901 * sysdeps/unix/bsd/unlockpt.c (unlockpt): Use __revoke instead of
3902 revoke.
3903 * include/dirent.h (__seekdir): New declaration.
3904 * sysdeps/mach/hurd/seekdir.c (seekdir): Rename to __seekdir and
3905 redefine as weak alias.
3906 * sysdeps/mach/hurd/rewinddir.c (__rewinddir): Use __seekdir instead
3907 of seekdir.
3908 * include/ifaddrs.h (__getifaddrs, __freeifaddrs): New declarations,
3909 and use libc_hidden_def on them.
3910 * inet/ifaddrs.c (__getifaddrs, __freeifaddrs): Use libc_hidden_def on
3911 them.
3912 * sysdeps/gnu/ifaddrs.c (__getifaddrs, __freeifaddrs): Likewise.
3913 * inet/check_pf.c (__check_pf): Use __getifaddrs and __freeifaddrs
3914 instead of getifaddrs and freeifaddrs.
3915
3916 2017-09-26 H.J. Lu <hongjiu.lu@intel.com>
3917
3918 [BZ #18822]
3919 * dlfcn/modatexit.c (foo): Remove __dso_handle check.
3920 * dlfcn/modcxaatexit.c: Include <dso_handle.h>.
3921 (__dso_handle): Remove declaration.
3922 * dlfcn/tstatexit.c (__dso_handle): Removed.
3923 (main): Don't check __dso_handle.
3924 * dlfcn/tstcxaatexit.c (__dso_handle): Removed.
3925 (main): Don't check __dso_handle.
3926 * include/dso_handle.h: New file.
3927 * malloc/mtrace.c: Include <dso_handle.h>.
3928 (mtrace): Pass __dso_handle directly.
3929 * nptl/pthread_atfork.c: Include <dso_handle.h>.
3930 (__dso_handle): Remove declaration.
3931 (__pthread_atfork): Pass __dso_handle directly.
3932 * nptl/tst-atfork2mod.c: Include <dso_handle.h>.
3933 (__dso_handle): Removed.
3934 * posix/wordexp-test.c: Include <dso_handle.h>.
3935 (__dso_handle): Remove declaration.
3936 (__app_register_atfork): Pass __dso_handle directly.
3937 * stdlib/at_quick_exit.c: Include <dso_handle.h>.
3938 (__dso_handle): Remove declaration.
3939 (at_quick_exit): Pass __dso_handle directly.
3940 * stdlib/atexit.c: Include <dso_handle.h>.
3941 (__dso_handle): Remove declaration.
3942 (atexit): Pass __dso_handle directly.
3943 * stdlib/tst-tls-atexit-lib.c: Include <dso_handle.h>.
3944 (__dso_handle): Removed.
3945
3946 2017-09-26 Joseph Myers <joseph@codesourcery.com>
3947
3948 * sysdeps/unix/make-syscalls.sh: Use __ifunc to define symbols
3949 using VDSO.
3950
3951 2017-09-26 Alexey Makhalov <amakhalov@vmware.com>
3952
3953 * elf/dl-tunables.c (do_tunable_update_val): Range checking fix.
3954 * scripts/gen-tunables.awk: Set unspecified minval and/or maxval
3955 values to correct default value for given type.
3956
3957 2017-09-26 H.J. Lu <hongjiu.lu@intel.com>
3958
3959 [BZ #22101]
3960 * elf/Makefile (tests): Add tst-debug1.
3961 ($(objpfx)tst-debug1): New.
3962 ($(objpfx)tst-debug1.out): Likewise.
3963 ($(objpfx)tst-debug1mod1.so): Likewise.
3964 * elf/dl-load.c (_dl_map_object_from_fd): Skip PT_DYNAMIC segment
3965 with p_filesz == 0.
3966 * elf/tst-debug1.c: New file.
3967
3968 2017-09-26 Joseph Myers <joseph@codesourcery.com>
3969
3970 * sysdeps/sparc/sparc-ifunc.h [!__ASSEMBLER__] (sparc_libm_ifunc):
3971 Define using __ifunc.
3972
3973 2017-09-26 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
3974
3975 * sysdeps/powerpc/fpu/libm-test-ulps: Regenerate expf() and
3976 exp2f() values.
3977
3978 2017-09-26 Joseph Myers <joseph@codesourcery.com>
3979
3980 [BZ #22156]
3981 * sysdeps/ia64/stackinfo.h (DEFAULT_STACK_PERMS): Likewise.
3982
3983 2017-09-26 Florian Weimer <fweimer@redhat.com>
3984
3985 * resolv/Makefile (tests-internal): Fix typo in comment.
3986
3987 2017-09-26 Florian Weimer <fweimer@redhat.com>
3988
3989 * resolv/nss_dns/dns-host.c: Fix typo in comment.
3990
3991 2017-09-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3992
3993 * lib/malloc/scratch_buffer.h (struct scratch_buffer):
3994 Use an union instead of a max_align_t array for __space,
3995 so that __space is the same size on all platforms.
3996 * malloc/scratch_buffer_grow_preserve.c
3997 (__libc_scratch_buffer_grow_preserve): Likewise.
3998
3999 [BZ #22183]
4000 * include/gnu-versions.h (_GNU_GLOB_INTERFACE_VERSION): Increase
4001 version to 2.
4002 * posix/Makefile (routines): Add glob-lstat-compat and
4003 glob64-lstat-compat.
4004 * posix/Versions (GLIBC_2.27, glob, glob64): Add symbol version.
4005 * posix/glob-lstat-compat.c: New file.
4006 * posix/glob64-lstat-compat.c: Likewise.
4007 * posix/tst-glob_lstat_compat.c: Likewise.
4008 * sysdeps/unix/sysv/linux/glob-lstat-compat.c: Likewise.
4009 * sysdeps/unix/sysv/linux/alpha/glob-lstat-compat.c: Likewise.
4010 * sysdeps/unix/sysv/linux/glob64-lstat-compat.c: Likewise.
4011 * sysdeps/unix/sysv/linux/s390/s390-32/glob64-lstat-compat.c:
4012 Likewise.
4013 * sysdeps/unix/sysv/linux/alpha/glob.c: Remove file.
4014 * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
4015 * posix/glob.c (glob_lstat): New function.
4016 (glob): Rename to __glob and add versioned symbol to 2.27.
4017 (glob_in_dir): Use glob_lstat.
4018 * posix/glob64.c (glob64): Add GLOB_ATTRIBUTE.
4019 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
4020 * sysdeps/unix/sysv/linux/glob.c (glob): Add versioned symbol for
4021 2.27.
4022 * sysdeps/unix/sysv/linux/glob64.c (glob64): Likewise.
4023 * sysdeps/unix/sysv/linux/oldglob.c (GLOB_NO_LSTAT): Define.
4024 * sysdeps/unix/sysv/linux/alpha/oldglob.c (__old_glob): Do not use
4025 gl_lstat on glob call.
4026 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add GLIBC_2.27 glob
4027 and glob64 symbols.
4028 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
4029 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
4030 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
4031 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
4032 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
4033 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
4034 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
4035 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
4036 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
4037 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
4038 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
4039 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
4040 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
4041 Likewise.
4042 * sysdeps/unix/linux/powerpc/powerpc32/nofpu/libc.abilist: Likewise.
4043 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
4044 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
4045 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
4046 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
4047 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
4048 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
4049 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
4050 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
4051 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
4052 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
4053 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
4054
4055 2017-09-25 H.J. Lu <hongjiu.lu@intel.com>
4056
4057 * configure.ac (AS): Require binutils 2.25 or later.
4058 * configure: Regenerated.
4059
4060 2017-09-25 Paul Pluzhnikov <ppluzhnikov@google.com>
4061
4062 [BZ #22207]
4063 * stdlib/test-atexit-race-common.c (do_test): Minimize required
4064 VM size.
4065
4066 2017-09-25 DJ Delorie <dj@redhat.com>
4067
4068 [BZ #22161]
4069 * nscd/netgroupcache.c (addinnetgrX): Release read lock after
4070 resetting timeout.
4071
4072 2017-09-25 Stefan Liebler <stli@linux.vnet.ibm.com>
4073
4074 * sysdeps/ieee754/dbl-64/sincos32.h
4075 [SINCCOS32_H]: Remove define.
4076 [SINCOS32_H]: Define.
4077
4078 2017-09-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
4079
4080 * math/Versions (expf): New libm symbol at GLIBC_2.27.
4081 (exp2f): Likewise.
4082 * math/w_exp2f.c: New file.
4083 * math/w_expf.c: New file.
4084 * math/w_exp2f_compat.c (__exp2f_compat): For compat symbol only.
4085 * math/w_expf_compat.c (__expf_compat): Likewise.
4086 * sysdeps/ia64/fpu/e_exp2f.S: Add versioned symbols.
4087 * sysdeps/ia64/fpu/e_expf.S: Likewise.
4088 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
4089 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
4090 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
4091 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
4092 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
4093 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
4094 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
4095 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
4096 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
4097 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
4098 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
4099 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
4100 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
4101 Likewise.
4102 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
4103 Likewise.
4104 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
4105 Likewise.
4106 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
4107 Likewise.
4108 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
4109 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
4110 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
4111 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
4112 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
4113 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
4114 Likewise.
4115 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
4116 Likewise.
4117 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
4118 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
4119 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
4120
4121 2017-09-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
4122
4123 * math/Makefile (type-float-routines): Add math_errf and e_exp2f_data.
4124 * sysdeps/aarch64/fpu/math_private.h (TOINT_INTRINSICS): Define.
4125 (roundtoint, converttoint): Likewise.
4126 * sysdeps/ieee754/flt-32/e_expf.c: New implementation.
4127 * sysdeps/ieee754/flt-32/e_exp2f.c: New implementation.
4128 * sysdeps/ieee754/flt-32/e_exp2f_data.c: New file.
4129 * sysdeps/ieee754/flt-32/math_config.h: New file.
4130 * sysdeps/ieee754/flt-32/math_errf.c: New file.
4131 * sysdeps/ieee754/flt-32/t_exp2f.h: Remove.
4132 * sysdeps/i386/fpu/e_exp2f_data.c: New file.
4133 * sysdeps/i386/fpu/math_errf.c: New file.
4134 * sysdeps/ia64/fpu/e_exp2f_data.c: New file.
4135 * sysdeps/ia64/fpu/math_errf.c: New file.
4136 * sysdeps/m68k/m680x0/fpu/e_exp2f_data.c: New file.
4137 * sysdeps/m68k/m680x0/fpu/math_errf.c: New file.
4138
4139 2017-09-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
4140
4141 * sysdeps/mach/hurd/dl-sysdep.c (check_no_hidden): New macro.
4142 (__open, __close, __libc_read, __libc_write, __writev, __libc_lseek64,
4143 __mmap, __fxstat64, __xstat64, __access, __access_noerrno, __getpid,
4144 __getcwd, __sbrk, __strtoul_internal, _exit, abort): Use check_no_hidden
4145 to make sure that these symbols are defined.
4146 * sysdeps/mach/hurd/bits/socket.h: Include <bits/wordsize.h> instead
4147 of <limits.h>
4148 (__need_NULL): Do not define.
4149 (__ss_aligntype): Use __WORDSIZE instead of ULONG_MAX to determine
4150 alignment.
4151 [!__USE_MISC] (pseudo_AF_XTP, pseudo_AF_RTIP, pseudo_AF_PIP,
4152 CMGROUP_MAX, cmsgcred): Do not define.
4153 (CMSG_FIRSTHDR, __cmsg_nxthdr): Use (struct cmsghdr *) 0 instead of
4154 NULL.
4155 * bits/socket.h: Likewise.
4156 * sysdeps/unix/clock_gettime.c (realtime_gettime, __clock_gettime): Use
4157 __gettimeofday instead of gettimeofday.
4158 * sysdeps/unix/clock_settime.c (__clock_settime): Use __settimeofday
4159 instead of settimeofday.
4160
4161 2017-09-22 Joseph Myers <joseph@codesourcery.com>
4162
4163 * sysdeps/ieee754/flt-32/s_asinhf.c: Include <libm-alias-float.h>.
4164 (asinhf): Define using libm_alias_float.
4165 * sysdeps/ieee754/flt-32/s_atanf.c: Include <libm-alias-float.h>.
4166 (atanf): Define using libm_alias_float.
4167 * sysdeps/ieee754/flt-32/s_cbrtf.c: Include <libm-alias-float.h>.
4168 (cbrtf): Define using libm_alias_float.
4169 * sysdeps/ieee754/flt-32/s_ceilf.c: Include <libm-alias-float.h>.
4170 (ceilf): Define using libm_alias_float.
4171 * sysdeps/ieee754/flt-32/s_copysignf.c: Include
4172 <libm-alias-float.h>.
4173 (copysignf): Define using libm_alias_float.
4174 * sysdeps/ieee754/flt-32/s_cosf.c: Include <libm-alias-float.h>.
4175 (cosf): Define using libm_alias_float.
4176 * sysdeps/ieee754/flt-32/s_erff.c: Include <libm-alias-float.h>.
4177 (erff): Define using libm_alias_float.
4178 (erfcf): Likewise.
4179 * sysdeps/ieee754/flt-32/s_expm1f.c: Include <libm-alias-float.h>.
4180 (expm1f): Define using libm_alias_float.
4181 * sysdeps/ieee754/flt-32/s_fabsf.c: Include <libm-alias-float.h>.
4182 (fabsf): Define using libm_alias_float.
4183 * sysdeps/ieee754/flt-32/s_floorf.c: Include <libm-alias-float.h>.
4184 (floorf): Define using libm_alias_float.
4185 * sysdeps/ieee754/flt-32/s_frexpf.c: Include <libm-alias-float.h>.
4186 (frexpf): Define using libm_alias_float.
4187 * sysdeps/ieee754/flt-32/s_fromfpf.c (fromfpf): Define using
4188 libm_alias_float.
4189 * sysdeps/ieee754/flt-32/s_fromfpf_main.c: Include
4190 <libm-alias-float.h>.
4191 * sysdeps/ieee754/flt-32/s_fromfpxf.c (fromfpxf): Define using
4192 libm_alias_float.
4193 * sysdeps/ieee754/flt-32/s_getpayloadf.c: Include
4194 <libm-alias-float.h>.
4195 (getpayloadf): Define using libm_alias_float.
4196 * sysdeps/ieee754/flt-32/s_llrintf.c: Include
4197 <libm-alias-float.h>.
4198 (llrintf): Define using libm_alias_float.
4199 * sysdeps/ieee754/flt-32/s_llroundf.c: Include
4200 <libm-alias-float.h>.
4201 (llroundf): Define using libm_alias_float.
4202 * sysdeps/ieee754/flt-32/s_logbf.c: Include <libm-alias-float.h>.
4203 (logbf): Define using libm_alias_float.
4204 * sysdeps/ieee754/flt-32/s_lrintf.c: Include <libm-alias-float.h>.
4205 (lrintf): Define using libm_alias_float.
4206 * sysdeps/ieee754/flt-32/s_lroundf.c: Include <libm-alias-float.h>.
4207 (lroundf): Define using libm_alias_float.
4208 * sysdeps/ieee754/flt-32/s_modff.c: Include <libm-alias-float.h>.
4209 (modff): Define using libm_alias_float.
4210 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Include
4211 <libm-alias-float.h>.
4212 (nearbyintf): Define using libm_alias_float.
4213 * sysdeps/ieee754/flt-32/s_nextafterf.c: Include
4214 <libm-alias-float.h>.
4215 (nextafterf): Define using libm_alias_float.
4216 * sysdeps/ieee754/flt-32/s_nextupf.c: Include
4217 <libm-alias-float.h>.
4218 (nextupf): Define using libm_alias_float.
4219 * sysdeps/ieee754/flt-32/s_remquof.c: Include
4220 <libm-alias-float.h>.
4221 (remquof): Define using libm_alias_float.
4222 * sysdeps/ieee754/flt-32/s_rintf.c: Include <libm-alias-float.h>.
4223 (rintf): Define using libm_alias_float.
4224 * sysdeps/ieee754/flt-32/s_roundevenf.c: Include
4225 <libm-alias-float.h>.
4226 (roundevenf): Define using libm_alias_float.
4227 * sysdeps/ieee754/flt-32/s_roundf.c: Include <libm-alias-float.h>.
4228 (roundf): Define using libm_alias_float.
4229 * sysdeps/ieee754/flt-32/s_setpayloadf.c (setpayloadf): Define
4230 using libm_alias_float.
4231 * sysdeps/ieee754/flt-32/s_setpayloadf_main.c: Include
4232 <libm-alias-float.h>.
4233 * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (setpayloadsigf):
4234 Define using libm_alias_float.
4235 * sysdeps/ieee754/flt-32/s_sincosf.c: Include
4236 <libm-alias-float.h>.
4237 (sincosf): Define using libm_alias_float.
4238 * sysdeps/ieee754/flt-32/s_sinf.c: Include <libm-alias-float.h>.
4239 (sinf): Define using libm_alias_float.
4240 * sysdeps/ieee754/flt-32/s_tanf.c: Include <libm-alias-float.h>.
4241 (tanf): Define using libm_alias_float.
4242 * sysdeps/ieee754/flt-32/s_tanhf.c: Include <libm-alias-float.h>.
4243 (tanhf): Define using libm_alias_float.
4244 * sysdeps/ieee754/flt-32/s_totalorderf.c: Include
4245 <libm-alias-float.h>.
4246 (totalorderf): Define using libm_alias_float.
4247 * sysdeps/ieee754/flt-32/s_totalordermagf.c: Include
4248 <libm-alias-float.h>.
4249 (totalordermagf): Define using libm_alias_float.
4250 * sysdeps/ieee754/flt-32/s_truncf.c: Include <libm-alias-float.h>.
4251 (truncf): Define using libm_alias_float.
4252 * sysdeps/ieee754/flt-32/s_ufromfpf.c (ufromfpf): Define using
4253 libm_alias_float.
4254 * sysdeps/ieee754/flt-32/s_ufromfpxf.c (ufromfpxf): Define using
4255 libm_alias_float.
4256
4257 2017-09-22 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4258
4259 [BZ #22146]
4260 math/math.h: Let fpclassify use the builtin in C++ mode, even
4261 when optimazing for size.
4262
4263 2017-09-22 Joseph Myers <joseph@codesourcery.com>
4264
4265 * csu/Makefile (generated): Do not add version-info.h.
4266 (before-compile): Likewise.
4267 (all-Banner-files): Remove variable.
4268 ($(objpfx)version-info.h): Remove rule.
4269 * csu/version.c (banner): Do not include "version-info.h".
4270 * libidn/Banner: Remove.
4271 * manual/contrib.texi (Simon Josefsson): New entry.
4272
4273 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4274
4275 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
4276 Remove conditionals on LDBL_MANT_DIG.
4277 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
4278 (__ieee754_lgammal_r): Likewise.
4279
4280 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4281
4282 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Remove definitions of
4283 _Float128 and L().
4284 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Remove definitions of
4285 _Float128 and L(). Replace _Float128 with long double and L(x)
4286 with xL, throughout the file.
4287 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
4288 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
4289 * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
4290 * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
4291
4292 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4293
4294 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Include tables from
4295 sysdeps/ieee754/ldbl-128ibm.
4296 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Copy contents from the
4297 equivalent implementation in sysdeps/ieee754/ldbl-128/ instead
4298 of including it. Keep _Float128 and L() intact. These will be
4299 reviewed by a separate patch.
4300 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
4301 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
4302 * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
4303 * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
4304
4305 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4306
4307 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c
4308 (__finitef128): Define to __redirect___finitef128.
4309 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c
4310 (__isinff128): Define to __redirect___isinff128.
4311 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c
4312 (__isnanf128): Define to __redirect___isnanf128.
4313
4314 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4315
4316 * sysdeps/powerpc/powerpc64le/Makefile
4317 (CFLAGS-tst-strtod-nan-locale.c): New variable.
4318 (CFLAGS-tst-wcstod-nan-locale.c): New variable.
4319
4320 2017-09-21 Paul Pluzhnikov <ppluzhnikov@google.com>
4321 Carlos O'Donell <carlos@redhat.com>
4322
4323 [BZ #22180]
4324 * stdlib/Makefile (tests): Add test-dlclose-exit-race.
4325 * stdlib/test-dlclose-exit-race.c: New file.
4326 * stdlib/test-dlclose-exit-race-helper.c: New file.
4327 * stdlib/exit.c (__run_exit_handlers): Mark slot as free.
4328
4329 2017-09-21 Joseph Myers <joseph@codesourcery.com>
4330
4331 * crypt/Banner: Remove file.
4332 * nptl/Banner: Likewise.
4333 * resolv/Banner: Likewise.
4334 * soft-fp/Banner: Likewise.
4335 * nptl/Makefile ($(objpfx)banner.h): Remove rule.
4336 ($(objpfx)version.d): Remove dependency on banner.h.
4337 ($(objpfx)version.os): Likewise.
4338 * nptl/version.c (banner): Do not include banner.h.
4339 * manual/contrib.texi: Update entries for Richard Henderson, Jakub
4340 Jelinek and BIND code.
4341
4342 2017-09-20 Paul Pluzhnikov <ppluzhnikov@google.com>
4343 Carlos O'Donell <carlos@redhat.com>
4344
4345 * support/xdlfcn.h: New file.
4346 * support/xdlfcn.c: New file.
4347 * support/Makefile (libsupport-routines): Add xdlfcn.
4348 * stdlib/tst-tls-atexit.c: Use xdlopen, xdlsym, xdlclose.
4349
4350 2017-09-20 Joseph Myers <joseph@codesourcery.com>
4351
4352 [BZ #20142]
4353 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
4354 Add s_trunc-c, s_truncf-c, s_trunc-sse4_1 and s_truncf-sse4_1.
4355 * sysdeps/x86_64/fpu/multiarch/s_trunc-c.c: New file.
4356 * sysdeps/x86_64/fpu/multiarch/s_trunc-sse4_1.S: Likewise.
4357 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Likewise.
4358 * sysdeps/x86_64/fpu/multiarch/s_truncf-c.c: Likewise.
4359 * sysdeps/x86_64/fpu/multiarch/s_truncf-sse4_1.S: Likewise.
4360 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Likewise.
4361
4362 2017-09-20 Paul Pluzhnikov <ppluzhnikov@google.com>
4363 Ricky Zhou <rickyz@google.com>
4364 Anoop V Chakkalakkal <anoop.vijayan@in.ibm.com>
4365
4366 [BZ #14333]
4367 * stdlib/cxa_atexit.c (__internal_atexit): Use __exit_funcs_lock.
4368 Remove atomics.
4369 (__new_exitfn): Fail registration when we finished at_exit processing.
4370 * stdlib/cxa_finalize.c (__cxa_finalize): Likewise.
4371 * stdlib/on_exit.c (__on_exit): Likewise.
4372 * stdlib/exit.c (__exit_funcs_done): New variable.
4373 (__run_exit_handlers): Use __exit_funcs_lock.
4374 * stdlib/exit.h (__exit_funcs_lock, __exit_funcs_done): New
4375 declarations.
4376 * stdlib/Makefile (test-atexit-race, test-quick_at_exit-race)
4377 (test-cxa_atexit-race, test-on_exit-race): New tests.
4378 * stdlib/test-atexit-race-common.c: New file.
4379 * stdlib/test-atexit-race.c: New file.
4380 * stdlib/test-at_quick_exit-race.c: New file.
4381 * stdlib/test-cxa_atexit-race.c: New file.
4382 * stdlib/test-on_exit-race.c: New file.
4383
4384 2017-09-20 Szabolcs Nagy <szabolcs.nagy@arm.com>
4385
4386 * benchtests/Makefile: Add exp2f and log2f benchmarks.
4387 * benchtests/exp2f-inputs: Copy of expf-inputs.
4388 * benchtests/log2f-inputs: Copy of logf-inputs.
4389
4390 2017-09-19 Joseph Myers <joseph@codesourcery.com>
4391
4392 * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]:
4393 Explicitly take address of first element of array arguments in
4394 call to INLINE_SYSCALL.
4395
4396 2017-09-19 Andreas Schwab <schwab@suse.de>
4397
4398 [BZ #22134]
4399 * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]: Try
4400 execveat first.
4401 [!__ASSUME_EXECVEAT]: Fall back to /proc if execveat is
4402 unimplemented.
4403 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_EXECVEAT)
4404 [__LINUX_KERNEL_VERSION >= 0x031300]: Define.
4405 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
4406 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040200]: Undef.
4407 * sysdeps/unix/sysv/linux/hppa/kernel-features.h
4408 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
4409 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
4410 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
4411 * posix/Makefile (tests): Add tst-fexecve.
4412 * posix/tst-fexecve.c: New file.
4413
4414 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
4415
4416 * benchtests/Makefile: Add logf benchmark.
4417 * benchtests/logf-inputs: Add reduced trace from wrf_r.
4418
4419 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
4420
4421 * benchtests/Makefile: Add expf benchmark.
4422 * benchtests/expf-inputs: Add reduced trace from wrf_r.
4423
4424 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
4425
4426 * csu/Makefile: Add -funwind-tables to libc-start.c.
4427 * debug/Makefile: Add -funwind-tables to backtrace.c.
4428 * sysdeps/aarch64/Makefile: Remove CFLAGS-backtrace.c.
4429 * sysdeps/arm/Makefile: Likewise.
4430 * sysdeps/i386/Makefile: Likewise.
4431 * sysdeps/m68k/Makefile: Likewise.
4432 * sysdeps/mips/Makefile: Likewise.
4433 * sysdeps/nios2/Makefile: Likewise.
4434 * sysdeps/sh/Makefile: Likewise.
4435 * sysdeps/sparc/Makefile: Likewise.
4436
4437 2017-09-19 Joseph Myers <joseph@codesourcery.com>
4438
4439 * benchtests/Makefile (bench-math): Add trunc and truncf.
4440 (CFLAGS-bench-trunc.c): New variable.
4441 (CFLAGS-bench-truncf.c): Likewise.
4442 * benchtests/trunc-inputs: New file.
4443 * benchtests/truncf-inputs: Likewise.
4444
4445 2017-09-19 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
4446
4447 * sysdeps/powerpc/powerpc64/power8/memset.S: Avoid misaligned stores.
4448
4449 2017-09-18 Joseph Myers <joseph@codesourcery.com>
4450
4451 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT &&
4452 !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)] (weak_alias): Undefine and
4453 redefine.
4454 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
4455 (exp10l): Define as weak alias.
4456 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c [LIBM_SVID_COMPAT
4457 && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (weak_alias): Undefine
4458 and redefine.
4459 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)]
4460 (remainderl): Define as weak alias.
4461
4462 * math/s_fmal.c: Include <libm-alias-ldouble.h>.
4463 (fmal): Define using libm_alias_ldouble.
4464 * math/w_acoshl_compat.c: Include <libm-alias-ldouble.h>.
4465 (acoshl): Define using libm_alias_ldouble.
4466 * math/w_acosl_compat.c: Include <libm-alias-ldouble.h>.
4467 (acosl): Define using libm_alias_ldouble.
4468 * math/w_asinl_compat.c: Include <libm-alias-ldouble.h>.
4469 (asinl): Define using libm_alias_ldouble.
4470 * math/w_atan2l_compat.c: Include <libm-alias-ldouble.h>.
4471 (atan2l): Define using libm_alias_ldouble.
4472 * math/w_atanhl_compat.c: Include <libm-alias-ldouble.h>.
4473 (atanhl): Define using libm_alias_ldouble.
4474 * math/w_coshl_compat.c: Include <libm-alias-ldouble.h>.
4475 (coshl): Define using libm_alias_ldouble.
4476 * math/w_exp10l_compat.c: Include <libm-alias-ldouble.h>.
4477 (exp10l): Define using libm_alias_ldouble.
4478 * math/w_exp2l_compat.c: Include <libm-alias-ldouble.h>.
4479 (exp2l): Define using libm_alias_ldouble.
4480 * math/w_expl_compat.c: Include <libm-alias-ldouble.h>.
4481 (expl): Define using libm_alias_ldouble.
4482 * math/w_fmodl_compat.c: Include <libm-alias-ldouble.h>.
4483 (fmodl): Define using libm_alias_ldouble.
4484 * math/w_hypotl_compat.c: Include <libm-alias-ldouble.h>.
4485 (hypotl): Define using libm_alias_ldouble.
4486 * math/w_j0l_compat.c: Include <libm-alias-ldouble.h>.
4487 (j0l): Define using libm_alias_ldouble.
4488 (y0l): Likewise.
4489 * math/w_j1l_compat.c: Include <libm-alias-ldouble.h>.
4490 (j1l): Define using libm_alias_ldouble.
4491 (y1l): Likewise.
4492 * math/w_jnl_compat.c: Include <libm-alias-ldouble.h>.
4493 (jnl): Define using libm_alias_ldouble.
4494 (ynl): Likewise.
4495 * math/w_log10l_compat.c: Include <libm-alias-ldouble.h>.
4496 (log10l): Define using libm_alias_ldouble.
4497 * math/w_log2l_compat.c: Include <libm-alias-ldouble.h>.
4498 (log2l): Define using libm_alias_ldouble.
4499 * math/w_logl_compat.c: Include <libm-alias-ldouble.h>.
4500 (logl): Define using libm_alias_ldouble.
4501 * math/w_powl_compat.c: Include <libm-alias-ldouble.h>.
4502 (powl): Define using libm_alias_ldouble.
4503 * math/w_remainderl_compat.c: Include <libm-alias-ldouble.h>.
4504 (remainderl): Define using libm_alias_ldouble.
4505 * math/w_sinhl_compat.c: Include <libm-alias-ldouble.h>.
4506 (sinhl): Define using libm_alias_ldouble.
4507 * math/w_sqrtl_compat.c: Include <libm-alias-ldouble.h>.
4508 (sqrtl): Define using libm_alias_ldouble.
4509 * math/w_tgammal_compat.c: Include <libm-alias-ldouble.h>.
4510 (tgammal): Define using libm_alias_ldouble.
4511 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT]
4512 (exp10l): Do not use long_double_symbol here.
4513 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
4514 [LIBM_SVID_COMPAT] (remainderl): Likewise.
4515 * sysdeps/ieee754/ldbl-opt/s_fmal.c: Remove.
4516 * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
4517 * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
4518 * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
4519 * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
4520 * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
4521 * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
4522 * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
4523 * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
4524 * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
4525 * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
4526 * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
4527 * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
4528 * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
4529 * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
4530 * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
4531 * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
4532 * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
4533 * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
4534 * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
4535
4536 2017-09-18 Wang Boshi <wangboshi@huawei.com> (tiny change)
4537
4538 * sysdeps/aarch64/start.S: Use MOVL instead of literal pools.
4539 * sysdeps/aarch64/sysdep.h (MOVL): Add MOVL macro.
4540
4541 2017-09-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
4542
4543 * io/read.c (read): Add libc_hidden_weak.
4544 * sysdeps/mach/hurd/read.c (read): Likewise.
4545 * io/write.c (write): Likewise.
4546 * sysdeps/mach/hurd/write.c (write): Likewise.
4547 * io/pread64.c (__pread64): Likewise.
4548 * sysdeps/mach/hurd/pread64.c (__pread64): Likewise.
4549 * posix/pread64.c (__pread64): Add libc_hidden_def.
4550
4551 2017-09-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
4552
4553 * benchtests/scripts/compare_strings.py: New option -g.
4554 (draw_graph): Print a message that a graph is being generated.
4555 (process_results): Generate graph only if -g is passed.
4556 (main): Process option -g.
4557
4558 * benchtests/scripts/compare_strings.py (process_results):
4559 Better spacing for output.
4560
4561 * benchtests/scripts/compare_strings.py: Use argparse.
4562 * benchtests/README: Document existence of compare_strings.py.
4563
4564 2017-09-15 Joseph Myers <joseph@codesourcery.com>
4565
4566 * math/s_fma.c: Include <libm-alias-double.h>.
4567 (fma): Define using libm_alias_double.
4568 * math/s_nextafter.c: Include <libm-alias-double.h>.
4569 (nextafter): Define using libm_alias_double.
4570 * math/w_acos_compat.c: Include <libm-alias-double.h>.
4571 (acos): Define using libm_alias_double.
4572 * math/w_acosh_compat.c: Include <libm-alias-double.h>.
4573 (aocsh): Define using libm_alias_double.
4574 * math/w_asin_compat.c: Include <libm-alias-double.h>.
4575 (asin): Define using libm_alias_double.
4576 * math/w_atan2_compat.c: Include <libm-alias-double.h>.
4577 (atan2): Define using libm_alias_double.
4578 * math/w_atanh_compat.c: Include <libm-alias-double.h>.
4579 (atanh): Define using libm_alias_double.
4580 * math/w_cosh_compat.c: Include <libm-alias-double.h>.
4581 (cosh): Define using libm_alias_double.
4582 * math/w_exp10_compat.c: Include <libm-alias-double.h>.
4583 (exp10): Define using libm_alias_double.
4584 * math/w_exp2_compat.c: Include <libm-alias-double.h>.
4585 (exp2): Define using libm_alias_double.
4586 * math/w_exp_compat.c: Include <libm-alias-double.h>.
4587 (exp): Define using libm_alias_double.
4588 * math/w_fmod_compat.c: Include <libm-alias-double.h>.
4589 (fmod): Define using libm_alias_double.
4590 * math/w_hypot_compat.c: Include <libm-alias-double.h>.
4591 (hypot): Define using libm_alias_double.
4592 * math/w_j0_compat.c: Include <libm-alias-double.h>.
4593 (j0): Define using libm_alias_double.
4594 (y0): Likewise.
4595 * math/w_j1_compat.c: Include <libm-alias-double.h>.
4596 (j1): Define using libm_alias_double.
4597 (y1): Likewise.
4598 * math/w_jn_compat.c: Include <libm-alias-double.h>.
4599 (jn): Define using libm_alias_double.
4600 (yn): Likewise.
4601 * math/w_log10_compat.c: Include <libm-alias-double.h>.
4602 (log10): Define using libm_alias_double.
4603 * math/w_log2_compat.c: Include <libm-alias-double.h>.
4604 (log2): Define using libm_alias_double.
4605 * math/w_log_compat.c: Include <libm-alias-double.h>.
4606 (log): Define using libm_alias_double.
4607 * math/w_pow_compat.c: Include <libm-alias-double.h>.
4608 (pow): Define using libm_alias_double.
4609 * math/w_remainder_compat.c: Include <libm-alias-double.h>.
4610 (remainder): Define using libm_alias_double.
4611 * math/w_sinh_compat.c: Include <libm-alias-double.h>.
4612 (sinh): Define using libm_alias_double.
4613 * math/w_sqrt_compat.c: Include <libm-alias-double.h>.
4614 (sqrt): Define using libm_alias_double.
4615 * math/w_tgamma_compat.c: Include <libm-alias-double.h>.
4616 (tgamma): Define using libm_alias_double.
4617 * sysdeps/ieee754/ldbl-opt/s_nextafter.c [LONG_DOUBLE_COMPAT(libm,
4618 GLIBC_2_0)] (nextafterl): Do not define compat symbol here.
4619 * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c
4620 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)] (exp10l): Likewise.
4621 * sysdeps/ieee754/ldbl-opt/w_remainder_compat.c
4622 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (remainderl): Likewise.
4623 * sysdeps/ieee754/ldbl-opt/w_acos_compat.c: Remove.
4624 * sysdeps/ieee754/ldbl-opt/w_acosh_compat.c: Likewise.
4625 * sysdeps/ieee754/ldbl-opt/w_asin_compat.c: Likewise.
4626 * sysdeps/ieee754/ldbl-opt/w_atan2_compat.c: Likewise.
4627 * sysdeps/ieee754/ldbl-opt/w_atanh_compat.c: Likewise.
4628 * sysdeps/ieee754/ldbl-opt/w_cosh_compat.c: Likewise.
4629 * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Likewise.
4630 * sysdeps/ieee754/ldbl-opt/w_fmod_compat.c: Likewise.
4631 * sysdeps/ieee754/ldbl-opt/w_hypot_compat.c: Likewise.
4632 * sysdeps/ieee754/ldbl-opt/w_j0_compat.c: Likewise.
4633 * sysdeps/ieee754/ldbl-opt/w_j1_compat.c: Likewise.
4634 * sysdeps/ieee754/ldbl-opt/w_jn_compat.c: Likewise.
4635 * sysdeps/ieee754/ldbl-opt/w_log10_compat.c: Likewise.
4636 * sysdeps/ieee754/ldbl-opt/w_log2_compat.c: Likewise.
4637 * sysdeps/ieee754/ldbl-opt/w_log_compat.c: Likewise.
4638 * sysdeps/ieee754/ldbl-opt/w_pow_compat.c: Likewise.
4639 * sysdeps/ieee754/ldbl-opt/w_sinh_compat.c: Likewise.
4640 * sysdeps/ieee754/ldbl-opt/w_sqrt_compat.c: Likewise.
4641 * sysdeps/ieee754/ldbl-opt/w_tgamma_compat.c: Likewise.
4642
4643 * math/e_acoshl.c: Remove.
4644 * math/e_acosl.c: Likewise.
4645 * math/e_asinl.c: Likewise.
4646 * math/e_atan2l.c: Likewise.
4647 * math/e_atanhl.c: Likewise.
4648 * math/e_coshl.c: Likewise.
4649 * math/e_expl.c: Likewise.
4650 * math/e_fmodl.c: Likewise.
4651 * math/e_gammal_r.c: Likewise.
4652 * math/e_hypotl.c: Likewise.
4653 * math/e_j0l.c: Likewise.
4654 * math/e_j1l.c: Likewise.
4655 * math/e_jnl.c: Likewise.
4656 * math/e_lgammal_r.c: Likewise.
4657 * math/e_log10l.c: Likewise.
4658 * math/e_log2l.c: Likewise.
4659 * math/e_logl.c: Likewise.
4660 * math/e_powl.c: Likewise.
4661 * math/e_rem_pio2l.c: Likewise.
4662 * math/e_sinhl.c: Likewise.
4663 * math/e_sqrtf128.c: Likewise.
4664 * math/e_sqrtl.c: Likewise.
4665 * math/k_cosl.c: Likewise.
4666 * math/k_sinl.c: Likewise.
4667 * math/k_tanl.c: Likewise.
4668 * math/s_asinhl.c: Likewise.
4669 * math/s_atanl.c: Likewise.
4670 * math/s_cbrtl.c: Likewise.
4671 * math/s_erfl.c: Likewise.
4672 * math/s_expm1l.c: Likewise.
4673 * math/s_log1pl.c: Likewise.
4674 * math/s_tanhl.c: Likewise.
4675
4676 2017-09-15 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
4677
4678 [BZ #21745]
4679 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile:
4680 [$(subdir) = math] (sysdep_calls): New variable. Has the
4681 previous contents of sysdep_routines, but re-sorted..
4682 [$(subdir) = math] (sysdep_routines): Re-use the contents from
4683 sysdep_calls.
4684 [$(subdir) = math] (libm-sysdep_routines): Remove the functions
4685 defined in sysdep_calls and replace by the respective m_* names.
4686 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S:
4687 (compat_symbol): Undefine to avoid duplicated compat symbols in
4688 libc.
4689
4690 2017-09-15 Joseph Myers <joseph@codesourcery.com>
4691
4692 * math/s_fmaf.c: Include <libm-alias-float.h>.
4693 (fmaf): Define using libm_alias_float.
4694 * math/w_acosf_compat.c: Include <libm-alias-float.h>.
4695 (acosf): Define using libm_alias_float.
4696 * math/w_acoshf_compat.c: Include <libm-alias-float.h>.
4697 (acoshf): Define using libm_alias_float.
4698 * math/w_asinf_compat.c: Include <libm-alias-float.h>.
4699 (asinf): Define using libm_alias_float.
4700 * math/w_atan2f_compat.c: Include <libm-alias-float.h>.
4701 (atan2f): Define using libm_alias_float.
4702 * math/w_atanhf_compat.c: Include <libm-alias-float.h>.
4703 (atanhf): Define using libm_alias_float.
4704 * math/w_coshf_compat.c: Include <libm-alias-float.h>.
4705 (coshf): Define using libm_alias_float.
4706 * math/w_exp10f_compat.c: Include <libm-alias-float.h>.
4707 (exp10f): Define using libm_alias_float.
4708 * math/w_fmodf_compat.c: Include <libm-alias-float.h>.
4709 (fmodf): Define using libm_alias_float.
4710 * math/w_hypotf_compat.c: Include <libm-alias-float.h>.
4711 (hypotf): Define using libm_alias_float.
4712 * math/w_j0f_compat.c: Include <libm-alias-float.h>.
4713 (j0f): Define using libm_alias_float.
4714 (y0f): Likewise.
4715 * math/w_j1f_compat.c: Include <libm-alias-float.h>.
4716 (j1f): Define using libm_alias_float.
4717 (y1f): Likewise.
4718 * math/w_jnf_compat.c: Include <libm-alias-float.h>.
4719 (jnf): Define using libm_alias_float.
4720 (ynf): Likewise.
4721 * math/w_log10f_compat.c: Include <libm-alias-float.h>.
4722 (log10f): Define using libm_alias_float.
4723 * math/w_log2f_compat.c: Include <libm-alias-float.h>.
4724 (log2f): Define using libm_alias_float.
4725 * math/w_logf_compat.c: Include <libm-alias-float.h>.
4726 (logf): Define using libm_alias_float.
4727 * math/w_powf_compat.c: Include <libm-alias-float.h>.
4728 (powf): Define using libm_alias_float.
4729 * math/w_remainderf_compat.c: Include <libm-alias-float.h>.
4730 (remainderf): Define using libm_alias_float.
4731 * math/w_sinhf_compat.c: Include <libm-alias-float.h>.
4732 (sinhf): Define using libm_alias_float.
4733 * math/w_sqrtf_compat.c: Include <libm-alias-float.h>.
4734 (sqrtf): Define using libm_alias_float.
4735 * math/w_tgammaf_compat.c: Include <libm-alias-float.h>.
4736 (tgammaf): Define using libm_alias_float.
4737
4738 2017-09-14 Joseph Myers <joseph@codesourcery.com>
4739
4740 * include/math.h (roundeven): Change hidden_proto call to
4741 __roundeven.
4742 * math/w_j0_compat.c (j0): Rename to __j0 and define as weak
4743 alias.
4744 [NO_LONG_DOUBLE] (__j0l): New strong alias.
4745 (y0): Rename to __y0 and define as weak alias.
4746 [NO_LONG_DOUBLE] (__y0l): New strong alias.
4747 * math/w_j0f_compat.c (j0f): Rename to __j0f and define as weak
4748 alias.
4749 (y0f): Rename to __y0f and define as weak alias.
4750 * math/w_j1_compat.c (j1): Rename to __j1 and define as weak
4751 alias.
4752 [NO_LONG_DOUBLE] (__j1l): New strong alias.
4753 (y1): Rename to __y1 and define as weak alias.
4754 [NO_LONG_DOUBLE] (__y1l): New strong alias.
4755 * math/w_j1f_compat.c (j1f): Rename to __j1f and define as weak
4756 alias.
4757 (y1f): Rename to __y1f and define as weak alias.
4758 * math/w_jn_compat.c (jn): Rename to __jn and define as weak
4759 alias.
4760 [NO_LONG_DOUBLE] (__jnl): New strong alias.
4761 (yn): Rename to __yn and define as weak alias.
4762 [NO_LONG_DOUBLE] (__ynl): New strong alias.
4763 * math/w_jnf_compat.c (jnf): Rename to __jnf and define as weak
4764 alias.
4765 (ynf): Rename to __ynf and define as weak alias.
4766 * sysdeps/ieee754/dbl-64/s_fromfp.c (FUNC): Define to __fromfp.
4767 (fromfp): Define as weak alias.
4768 [NO_LONG_DOUBLE] (__fromfpl): New strong alias.
4769 * sysdeps/ieee754/dbl-64/s_fromfpx.c (FUNC): Define to __fromfpx.
4770 (fromfpx): Define as weak alias.
4771 [NO_LONG_DOUBLE] (__fromfpxl): New strong alias.
4772 * sysdeps/ieee754/dbl-64/s_getpayload.c (getpayload): Rename to
4773 __getpayload and define as weak alias.
4774 [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
4775 * sysdeps/ieee754/dbl-64/s_roundeven.c (roundeven): Rename to
4776 __roundeven and define as weak alias.
4777 [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
4778 * sysdeps/ieee754/dbl-64/s_setpayload.c (FUNC): Define to
4779 __setpayload.
4780 (setpayload): Define as weak alias.
4781 [NO_LONG_DOUBLE] (__setpayloadl): New strong alias.
4782 * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (FUNC): Define to
4783 __setpayloadsig.
4784 (setpayloadsig): Define as weak alias.
4785 [NO_LONG_DOUBLE] (__setpayloadsigl): New strong alias.
4786 * sysdeps/ieee754/dbl-64/s_totalorder.c (totalorder): Rename to
4787 __totalorder and define as weak alias.
4788 [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
4789 * sysdeps/ieee754/dbl-64/s_totalordermag.c (totalordermag): Rename
4790 to __totalordermag and define as weak alias.
4791 [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
4792 * sysdeps/ieee754/dbl-64/s_ufromfp.c (FUNC): Define to __ufromfp.
4793 (ufromfp): Define as weak alias.
4794 [NO_LONG_DOUBLE] (__ufromfpl): New strong alias.
4795 * sysdeps/ieee754/dbl-64/s_ufromfpx.c (FUNC): Define to
4796 __ufromfpx.
4797 (ufromfpx): Define as weak alias.
4798 [NO_LONG_DOUBLE] (__ufromfpxl): New strong alias.
4799 * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c (getpayload):
4800 Rename to __getpayload and define as weak alias.
4801 [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
4802 * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c (roundeven):
4803 Rename to __roundeven and define as weak alias.
4804 [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
4805 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c (totalorder):
4806 Rename to __totalorder and define as weak alias.
4807 [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
4808 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c
4809 (totalordermag): Rename to __totalordermag and define as weak
4810 alias.
4811 [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
4812 * sysdeps/ieee754/float128/float128_private.h (__getpayloadl): New
4813 macro.
4814 (__roundevenl): Likewise.
4815 (__totalorderl): Likewise.
4816 (__totalordermagl): Likewise
4817 * sysdeps/ieee754/float128/s_fromfpf128.c (FUNC): Define to
4818 __fromfpf128.
4819 (fromfpf128): Define as weak alias.
4820 * sysdeps/ieee754/float128/s_fromfpxf128.c (FUNC): Define to
4821 __fromfpxf128.
4822 (fromfpxf128): Define as weak alias.
4823 * sysdeps/ieee754/float128/s_setpayloadf128.c (FUNC): Define to
4824 __setpayloadf128.
4825 (setpayloadf128): Define as weak alias.
4826 * sysdeps/ieee754/float128/s_setpayloadsigf128.c (FUNC): Define to
4827 __setpayloadsigf128.
4828 (setpayloadsigf128): Define as weak alias.
4829 * sysdeps/ieee754/float128/s_ufromfpf128.c (FUNC): Define to
4830 __ufromfpf128.
4831 (ufromfpf128): Define as weak alias.
4832 * sysdeps/ieee754/float128/s_ufromfpxf128.c (FUNC): Define to
4833 __ufromfpxf128.
4834 (ufromfpxf128): Define as weak alias.
4835 * sysdeps/ieee754/flt-32/s_fromfpf.c (FUNC): Define to __fromfpf.
4836 (fromfpf): Define as weak alias.
4837 * sysdeps/ieee754/flt-32/s_fromfpxf.c (FUNC): Define to
4838 __fromfpxf.
4839 (fromfpxf): Define as weak alias.
4840 * sysdeps/ieee754/flt-32/s_getpayloadf.c (getpayloadf): Rename to
4841 __getpayloadf and define as weak alias.
4842 * sysdeps/ieee754/flt-32/s_roundevenf.c (roundevenf): Rename to
4843 __roundevenf and define as weak alias.
4844 * sysdeps/ieee754/flt-32/s_setpayloadf.c (FUNC): Define to
4845 __setpayloadf.
4846 (setpayloadf): Define as weak alias.
4847 * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (FUNC): Define to
4848 __setpayloadsigf.
4849 (setpayloadsigf): Define as weak alias.
4850 * sysdeps/ieee754/flt-32/s_totalorderf.c (totalorderf): Rename to
4851 __totalorderf and define as weak alias.
4852 * sysdeps/ieee754/flt-32/s_totalordermagf.c (totalordermagf):
4853 Rename to __totalordermagf and define as weak alias.
4854 * sysdeps/ieee754/flt-32/s_ufromfpf.c (FUNC): Define to
4855 __ufromfpf.
4856 (ufromfpf): Define as weak alias.
4857 * sysdeps/ieee754/flt-32/s_ufromfpxf.c (FUNC): Define to
4858 __ufromfpxf.
4859 (ufromfpxf): Define as weak alias.
4860 * sysdeps/ieee754/ldbl-128/s_fromfpl.c (FUNC): Define to
4861 __fromfpl.
4862 (fromfpl): Define as weak alias.
4863 * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (FUNC): Define to
4864 __fromfpxl.
4865 (fromfpxl): Define as weak alias.
4866 * sysdeps/ieee754/ldbl-128/s_getpayloadl.c (getpayloadl): Rename
4867 to __getpayloadl and define as weak alias.
4868 * sysdeps/ieee754/ldbl-128/s_roundevenl.c (roundevenl): Rename to
4869 __roundevenl and define as weak alias.
4870 * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (FUNC): Define to
4871 __setpayloadl.
4872 (setpayloadl): Define as weak alias.
4873 * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (FUNC): Define to
4874 __setpayloadsigl.
4875 (setpayloadsigl): Define as weak alias.
4876 * sysdeps/ieee754/ldbl-128/s_totalorderl.c (totalorderl): Rename
4877 to __totalorderl and define as weak alias.
4878 * sysdeps/ieee754/ldbl-128/s_totalordermagl.c (totalordermagl):
4879 Rename to __totalordermagl and define as weak alias.
4880 * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (FUNC): Define to
4881 __ufromfpl.
4882 (ufromfpl): Define as weak alias.
4883 * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (FUNC): Define to
4884 __ufromfpxl.
4885 (ufromfpxl): Define as weak alias.
4886 * sysdeps/ieee754/ldbl-128ibm/s_fromfpl.c (FUNC): Define to
4887 __fromfpl.
4888 (fromfpl): Define as weak alias.
4889 * sysdeps/ieee754/ldbl-128ibm/s_fromfpxl.c (FUNC): Define to
4890 __fromfpxl.
4891 (fromfpxl): Define as weak alias.
4892 * sysdeps/ieee754/ldbl-128ibm/s_getpayloadl.c (getpayloadl):
4893 Rename to __getpayloadl and define as weak alias.
4894 * sysdeps/ieee754/ldbl-128ibm/s_roundevenl.c (roundevenl): Rename
4895 to __roundevenl and define as weak alias. Call __roundeven
4896 instead of roundeven.
4897 * sysdeps/ieee754/ldbl-128ibm/s_setpayloadl.c (FUNC): Define to
4898 __setpayloadl.
4899 (setpayloadl): Define as weak alias.
4900 * sysdeps/ieee754/ldbl-128ibm/s_setpayloadsigl.c (FUNC): Define to
4901 __setpayloadsigl.
4902 (setpayloadsigl): Define as weak alias.
4903 * sysdeps/ieee754/ldbl-128ibm/s_totalorderl.c (totalorderl):
4904 Rename to __totalorderl and define as weak alias.
4905 * sysdeps/ieee754/ldbl-128ibm/s_totalordermagl.c (totalordermagl):
4906 Rename to __totalordermagl and define as weak alias.
4907 * sysdeps/ieee754/ldbl-128ibm/s_ufromfpl.c (FUNC): Define to
4908 __ufromfpl.
4909 (ufromfpl): Define as weak alias.
4910 * sysdeps/ieee754/ldbl-128ibm/s_ufromfpxl.c (FUNC): Define to
4911 __ufromfpxl.
4912 (ufromfpxl): Define as weak alias.
4913 * sysdeps/ieee754/ldbl-96/s_fromfpl.c (FUNC): Define to
4914 __fromfpl.
4915 (fromfpl): Define as weak alias.
4916 * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (FUNC): Define to
4917 __fromfpxl.
4918 (fromfpxl): Define as weak alias.
4919 * sysdeps/ieee754/ldbl-96/s_getpayloadl.c (getpayloadl): Rename to
4920 __getpayloadl and define as weak alias.
4921 * sysdeps/ieee754/ldbl-96/s_roundevenl.c (roundevenl): Rename to
4922 __roundevenl and define as weak alias.
4923 * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (FUNC): Define to
4924 __setpayloadl.
4925 (setpayloadl): Define as weak alias.
4926 * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c (FUNC): Define to
4927 __setpayloadsigl.
4928 (setpayloadsigl): Define as weak alias.
4929 * sysdeps/ieee754/ldbl-96/s_totalorderl.c (totalorderl): Rename to
4930 __totalorderl and define as weak alias.
4931 * sysdeps/ieee754/ldbl-96/s_totalordermagl.c (totalordermagl):
4932 Rename to __totalordermagl and define as weak alias.
4933 * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (FUNC): Define to
4934 __ufromfpl.
4935 (ufromfpl): Define as weak alias.
4936 * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (FUNC): Define to
4937 __ufromfpxl.
4938 (ufromfpxl): Define as weak alias.
4939
4940 2017-09-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
4941
4942 * benchtests/bench-string.h (realloc_bufs): New function.
4943 (test_init): Call it.
4944 * benchtests/bench-memset-large.c (do_test): Likewise.
4945 * benchtests/bench-memset.c (do_test): Likewise.
4946
4947 * benchtests/bench-memset-large.c: Print output in JSON
4948 format.
4949 * benchtests/bench-memset.c: Likewise.
4950
4951 2017-09-14 Mike FABIAN <mfabian@redhat.com>
4952
4953 [BZ #21084]
4954 * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Add IBM858 and ibm858.c.
4955 * iconvdata/Makefile: Add IBM858.
4956 * iconvdata/gconv-modules: Likewise.
4957 * iconvdata/tst-tables.sh: Likewise.
4958 * iconvdata/ibm858.c: New file.
4959 * localedata/charmaps/IBM858: Likewise.
4960
4961 2017-09-14 Akhilesh Kumar <akhilesh.k@samsung.com>
4962
4963 [BZ #22023]
4964 * locales/niu_NZ (LC_TIME): copy "niu_NU".
4965 * locales/niu_NZ (LC_MESSAGES): copy "niu_NU".
4966
4967 2017-09-14 Mike FABIAN <mfabian@redhat.com>
4968
4969 [BZ #22112]
4970 * localedata/locales/az_AZ(LC_TELEPHONE): Fix int_select
4971 and add tel_int_fmt.
4972
4973 2017-09-14 Joseph Myers <joseph@codesourcery.com>
4974
4975 * sysdeps/generic/libm-alias-float128.h: New file.
4976 * sysdeps/generic/math-type-macros-float128.h: Include
4977 <libm-alias-float128.h>.
4978 [!declare_mgen_alias] (declare_mgen_alias): Define macro.
4979
4980 2017-09-13 Joseph Myers <joseph@codesourcery.com>
4981
4982 * sysdeps/generic/libm-alias-ldouble.h: New file.
4983 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Likewise.
4984 * sysdeps/ieee754/ldbl-opt/math-type-macros-ldouble.h: Remove.
4985 * sysdeps/generic/math-type-macros-ldouble.h: Include
4986 <libm-alias-ldouble.h>.
4987 [!declare_mgen_alias] (declare_mgen_alias): Define to use
4988 libm_alias_ldouble.
4989
4990 2017-09-13 Szabolcs Nagy <szabolcs.nagy@arm.com>
4991
4992 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Move to...
4993 * math/w_exp_compat.c: ... here.
4994 * sysdeps/ieee754/flt-32/w_expf_compat.c: Move to...
4995 * math/w_expf_compat.c: ... here.
4996 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Move to...
4997 * math/w_expl_compat.c: ... here.
4998 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Remove.
4999 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Remove.
5000 * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Use the new path.
5001 * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
5002
5003 2017-09-13 Joseph Myers <joseph@codesourcery.com>
5004
5005 * math/w_scalbln_template.c (strong_alias): Do not undefine and
5006 redefine.
5007 * sysdeps/ieee754/ldbl-opt/s_ldexp.c (declare_mgen_alias): Remove
5008 macro.
5009 (ldexpl): Only define as compat symbol for libc, not libm.
5010 (scalbnl): Define as compat symbol for libc here.
5011 * sysdeps/ieee754/ldbl-opt/s_ldexpl.c (declare_mgen_alias): Only
5012 define for [IS_IN (libc)].
5013 (__ldexpl_2): Remove alias.
5014 (ldexpl): Only define with long_double_symbol if [IS_IN (libc)].
5015 (scalbnl): Likewise. Use __wrap_scalbnl not __ldexpl_2 as base
5016 name in long_double_symbol call.
5017 * sysdeps/ieee754/ldbl-opt/s_log1p.c: Remove file.
5018 * sysdeps/ieee754/ldbl-opt/s_scalbln.c: Likewise.
5019 * sysdeps/ieee754/ldbl-opt/s_scalbn.c: Likewise.
5020 * sysdeps/ieee754/ldbl-opt/w_log1p.c: Likewise.
5021 * sysdeps/ieee754/ldbl-opt/w_scalbln.c (declare_mgen_alias):
5022 Remove macro.
5023 [IS_IN (libc) && LONG_DOUBLE_COMPAT (libc, GLIBC_2_1)] (scalblnl):
5024 Define as compat symbol.
5025
5026 2017-09-13 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5027
5028 * sysdeps/unix/sysv/linux/s390/s390-32/oldglob.c: New file.
5029 * sysdeps/unix/sysv/linux/alpha/Makefile
5030 [$(subdir) = csu] (sysdep_routines): Remove rule.
5031
5032 2017-09-13 Joseph Myers <joseph@codesourcery.com>
5033
5034 * sysdeps/generic/libm-alias-double.h: New file.
5035 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h: Likewise.
5036 * sysdeps/generic/math-type-macros-double.h: Include
5037 <libm-alias-double.h>.
5038 [declare_mgen_alias] (declare_mgen_alias): Define to use
5039 libm_alias_double.
5040 * sysdeps/generic/math-type-macros.h [!M_LIBM_NEED_COMPAT]
5041 (M_LIBM_NEED_COMPAT): Remove macro.
5042 [!M_LIBM_NEED_COMPAT] (declare_mgen_libm_compat): Likewise.
5043 * sysdeps/ieee754/ldbl-opt/math-type-macros-double.h: Remove.
5044 * math/cabs_template.c [M_LIBM_NEED_COMPAT]: Remove conditional
5045 code.
5046 * math/carg_template.c [M_LIBM_NEED_COMPAT]: Likewise.
5047 * math/cimag_template.c [M_LIBM_NEED_COMPAT]: Likewise.
5048 * math/conj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
5049 * math/creal_template.c [M_LIBM_NEED_COMPAT]: Likewise.
5050 * math/s_cacos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
5051 * math/s_cacosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
5052 * math/s_casin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
5053 * math/s_casinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
5054 * math/s_catan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
5055 * math/s_catanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
5056 * math/s_ccos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
5057 * math/s_ccosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
5058 * math/s_cexp_template.c [M_LIBM_NEED_COMPAT]: Likewise.
5059 * math/s_clog10_template.c [M_LIBM_NEED_COMPAT]: Likewise.
5060 * math/s_clog_template.c [M_LIBM_NEED_COMPAT]: Likewise.
5061 * math/s_cpow_template.c [M_LIBM_NEED_COMPAT]: Likewise.
5062 * math/s_cproj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
5063 * math/s_csin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
5064 * math/s_csinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
5065 * math/s_csqrt_template.c [M_LIBM_NEED_COMPAT]: Likewise.
5066 * math/s_ctan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
5067 * math/s_ctanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
5068 * math/s_fdim_template.c [M_LIBM_NEED_COMPAT]: Likewise.
5069 * math/s_fmax_template.c [M_LIBM_NEED_COMPAT]: Likewise.
5070 * math/s_fmin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
5071 * math/s_nan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
5072 * math/w_ilogb_template.c [M_LIBM_NEED_COMPAT]: Likewise.
5073 * sysdeps/ieee754/ldbl-opt/s_clog10.c: New file.
5074 * sysdeps/ieee754/ldbl-opt/s_ldexp.c (M_LIBM_NEED_COMPAT): Remove
5075 macro.
5076 (declare_mgen_alias): New macro.
5077 * sysdeps/ieee754/ldbl-opt/w_log1p.c: New file.
5078 * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Likewise.
5079 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.c
5080 (M_LIBM_NEED_COMPAT): Remove macro.
5081 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c
5082 [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h> and
5083 <first-versions.h>.
5084 [HAVE_AS_VIS3_SUPPORT && LONG_DOUBLE_COMPAT (libm,
5085 FIRST_VERSION_libm_fdiml)]: Define fdiml as compat symbol.
5086
5087 2017-09-12 Joseph Myers <joseph@codesourcery.com>
5088
5089 * sysdeps/generic/math-type-macros.h [!declare_mgen_alias_2]
5090 (declare_mgen_alias_2): Remove.
5091 * sysdeps/generic/math-type-macros-double.h
5092 [NO_LONG_DOUBLE && !declare_mgen_alias_2] (declare_mgen_alias_2):
5093 Likewise.
5094 * math/s_ldexp_template.c (M_SUF (__wrap_scalbn)): Define strong
5095 alias.
5096 (ldexp): Define with declare_mgen_alias.
5097 (scalbn): Likewise.
5098
5099 2017-09-12 Steve Ellcey <sellcey@cavium.com>
5100
5101 * grp/initgroups.c: Include config.h.
5102 (DEFAULT_CONFIG): New macro.
5103 (internal_getgrouplist): Use DEFAULT_CONFIG.
5104 * nscd/initgrcache.c (addinitgroupsX): Likewise.
5105 * nss/nsswitch.c (__nss_disable_nscd): Likewise.
5106 (DEFAULT_DEFCONFIG): New macro.
5107 (__nss_database_lookup): Use DEFAULT_DEFCONFIG.
5108 * nss/grp-lookup.c: Include config.h
5109 (DEFAULT_CONFIG): Set definition based on LINK_OBSOLETE_NSL.
5110 * nss/pwd-lookup.c (DEFAULT_CONFIG): Likewise.
5111 * nss/spwd-lookup.c (DEFAULT_CONFIG): Likewise.
5112 * manual/nss.texi: Update default values section.
5113
5114 2017-09-12 H.J. Lu <hongjiu.lu@intel.com>
5115
5116 [BZ #21967]
5117 * sysdeps/x86/cpu-features.h (bit_arch_MathVec_Prefer_No_AVX512):
5118 New.
5119 (index_arch_MathVec_Prefer_No_AVX512): Likewise.
5120 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
5121 Handle MathVec_Prefer_No_AVX512.
5122 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h
5123 (IFUNC_SELECTOR): Return AVX2 version if MathVec_Prefer_No_AVX512
5124 is set.
5125
5126 2017-09-12 Samuel Thibault <samuel.thibault@ens-lyon.org>
5127
5128 * posix/sched_primax.c (__sched_get_priority_max): Add
5129 libc_hidden_def.
5130 * posix/sched_primin.c (__sched_get_priority_min): Likewise.
5131 * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
5132 * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
5133 * sysdeps/mach/hurd/mprotect.c (__mprotect): Likewise.
5134 * sysdeps/mach/hurd/munmap.c (__munmap): Likewise.
5135 * sysdeps/mach/hurd/dl-sysdep.c (__GI___getpid,
5136 __GI___strtoul_internal, __GI_____strtoul_internal, __GI___chk_fail,
5137 __GI___fortify_fail, __GI___assert_fail, __GI___assert_perror_fail):
5138 Add aliases.
5139
5140 2017-09-11 Joseph Myers <joseph@codesourcery.com>
5141
5142 * sysdeps/generic/libm-alias-float.h: New file.
5143 * sysdeps/generic/math-type-macros-float.h: Include
5144 <libm-alias-float.h>.
5145 [!declare_mgen_alias] (declare_mgen_alias): Define macro.
5146
5147 2017-09-11 H.J. Lu <hongjiu.lu@intel.com>
5148
5149 [BZ #22093]
5150 * sysdeps/x86/cpu-features.c (init_cpu_features): Initialize
5151 GLRO(dl_hwcap) to HWCAP_X86_64 for x86-64.
5152 * sysdeps/x86/dl-hwcap.h (HWCAP_COUNT): Updated.
5153 (HWCAP_IMPORTANT): Likewise.
5154 (HWCAP_X86_64): New enum.
5155 (HWCAP_X86_AVX512_1): Updated.
5156 * sysdeps/x86/dl-procinfo.c (_dl_x86_hwcap_flags): Add "x86_64".
5157 * sysdeps/x86_64/Makefile (tests): Add tst-x86_64-1.
5158 (modules-names): Add x86_64/tst-x86_64mod-1.
5159 (LDFLAGS-tst-x86_64mod-1.so): New.
5160 ($(objpfx)tst-x86_64-1): Likewise.
5161 ($(objpfx)x86_64/tst-x86_64mod-1.os): Likewise.
5162 (tst-x86_64-1-clean): Likewise.
5163 * sysdeps/x86_64/tst-x86_64-1.c: New file.
5164 * sysdeps/x86_64/tst-x86_64mod-1.c: Likewise.
5165
5166 2017-09-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
5167
5168 * po/sv.po: Update translations.
5169 * po/fr.po: Likewise.
5170
5171 2017-09-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
5172
5173 * sunrpc/tst-udp-timeout.c (test_udp_server): Increase timeout to 2.5
5174 seconds.
5175 * sunrpc/tst-udp-nonblocking.c (do_test): Increase timeout to 0.75
5176 seconds.
5177 * elf/rtld-Rules: Fix $(error) use.
5178
5179 2017-09-09 Mike FABIAN <mfabian@redhat.com>
5180
5181 [BZ #14925]
5182 * libio/tst-widetext.input: Change “Bengali” to “Bangla”.
5183 * locale/iso-639.def: Change “Bengali” to “Bangla”.
5184 * localedata/locales/bn_BD: “Bengali” was still used in some
5185 comments. Change it to “Bangla”.
5186
5187 2017-09-08 Markus Trippelsdorf <markus@trippelsdorf.de>
5188
5189 * sysdeps/x86_64/fpu/libm-test-ulps: Update for AMD Ryzen.
5190
5191 2017-09-08 Steve Ellcey <sellcey@cavium.com>
5192
5193 * manual/tunables.texi (glibc.tune.cpu): Add thunderx2t99 and
5194 thunderx2t99p1 to list of cpu names.
5195 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
5196 Add thunderx2t99 and thunderx2t99p1 entries to cpu_list.
5197
5198 2017-09-08 Steve Ellcey <sellcey@cavium.com>
5199
5200 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (get_midr_from_mcpu):
5201 Use strcmp instead of tunable_is_name.
5202
5203 2017-09-08 Joseph Myers <joseph@codesourcery.com>
5204
5205 * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
5206 (F_GET_RW_HINT): New macro.
5207 [__USE_GNU] (F_SET_RW_HINT): Likewise.
5208 [__USE_GNU] (F_GET_FILE_RW_HINT): Likewise.
5209 [__USE_GNU] (F_SET_FILE_RW_HINT): Likewise.
5210 [__USE_GNU] (RWF_WRITE_LIFE_NOT_SET): Likewise.
5211 [__USE_GNU] (RWH_WRITE_LIFE_NONE): Likewise.
5212 [__USE_GNU] (RWH_WRITE_LIFE_SHORT): Likewise.
5213 [__USE_GNU] (RWH_WRITE_LIFE_MEDIUM): Likewise.
5214 [__USE_GNU] (RWH_WRITE_LIFE_LONG): Likewise.
5215 [__USE_GNU] (RWH_WRITE_LIFE_EXTREME): Likewise.
5216
5217 * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
5218 (F_ADD_SEALS): New macro.
5219 [__USE_GNU] (F_GET_SEALS): Likewise.
5220 [__USE_GNU] (F_SEAL_SEAL): Likewise.
5221 [__USE_GNU] (F_SEAL_SHRINK): Likewise.
5222 [__USE_GNU] (F_SEAL_GROW): Likewise.
5223 [__USE_GNU] (F_SEAL_WRITE): Likewise.
5224
5225 2017-09-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5226
5227 * posix/glob_internal.h (GLOBPAT_NONE, GLOBPAT_SPECIAL)
5228 (GLOBPAT_BACKSLASH, GLOBPAT_BRACKET): New constants.
5229 * posix/glob_internal.h (__glob_pattern_type):
5230 * posix/glob.c (glob):
5231 * posix/glob_pattern_p.c (__glob_pattern_p):
5232 Use them.
5233
5234 * sysdeps/unix/sysv/linux/arm/glob64.c: Remove file.
5235 * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
5236 * sysdeps/unix/sysv/linux/m68k/glob64.c: Likewise.
5237 * sysdeps/unix/sysv/linux/mips/mips64/n64/glob64.c: Likewise.
5238 * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
5239 * sysdeps/unix/sysv/linux/powerpc/powerpc32/glob64.c: Likewise.
5240 * sysdeps/unix/sysv/linux/sparc/sparc32/glob64.c: Likewise.
5241 * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: Likewise.
5242 * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
5243 * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
5244 * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
5245 * sysdeps/wordsize-64/glob.c: Likewise.
5246 * sysdeps/wordsize-64/glob64.c: Likewise.
5247 * sysdeps/wordsize-64/globfree.c: Likewise.
5248 * sysdeps/wordsize-64/globfree64.c: Likewise.
5249 * sysdeps/unix/sysv/linux/glob.c: New file.
5250 * sysdeps/unix/sysv/linux/glob64.c: Likewise.
5251 * sysdeps/unix/sysv/linux/globfree.c: Likewise.
5252 * sysdeps/unix/sysv/linux/globfree64.c: Likewise.
5253 * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
5254 * sysdeps/unix/sysv/linux/oldglob.c [SHLIB_COMPAT]: Also
5255 adds !GLOB_NO_OLD_VERSION as an extra condition.
5256 * sysdeps/unix/sysv/linux/i386/alphasort64.c: Include olddirent.h
5257 using relative path instead of absolute one.
5258 * sysdeps/unix/sysv/linux/i386/getdents64.c: Likewise.
5259 * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
5260 * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
5261 * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
5262 * sysdeps/unix/sysv/linux/i386/olddirent.h: Move to ...
5263 * sysdeps/unix/sysv/linux//olddirent.h: ... here.
5264
5265 [BZ #1062]
5266 * posix/glob.c (GET_LOGIN_NAME_MAX): Remove.
5267 (glob): Use the same scratch buffer for both getlogin_r and
5268 getpwnam_r. Don’t require preallocation of the login name. This
5269 simplifies storage allocation, and corrects the handling of
5270 long login names.
5271
5272 [BZ #1062]
5273 * posix/glob.c (glob): Port recent patches to platforms
5274 lacking getpwnam_r.
5275 (glob): Fix longstanding misuse of errno after getpwnam_r, which
5276 returns an error number rather than setting errno.
5277
5278 * include/scratch_buffer.h (scratch_buffer): Use a C99 align method
5279 instead of GCC extension.
5280 * malloc/scratch_buffer_grow.c [!_LIBC]: Include libc-config.h.
5281 * malloc/scratch_buffer_grow_preserve.c [!_LIBC]: Likewise.
5282 * malloc/scratch_buffer_set_array_size.c [!_LIBC]: Likewise.
5283
5284 [BZ #866]
5285 [BZ #1062]
5286 * posix/Makefile (tests): Remove bug-glob1 and tst-glob_symlinks.
5287 * posix/bug-glob1.c: Remove file.
5288 * posix/tst-glob_symlinks.c: New file.
5289 * posix/glob.c (__lstat64): New macro.
5290 (is_dir): New function.
5291 (glob, glob_in_dir): Match symlinks even if they are dangling.
5292 (link_stat, link_exists_p): Remove. All uses removed.
5293
5294 [BZ #1062]
5295 [BZ #19971]
5296 * posix/glob.c (struct readdir_result): Remove skip_entry member.
5297 (readdir_result_skip_entry, D_INO_TO_RESULT): Remove.
5298 All uses removed.
5299
5300 [BZ #1062]
5301 CVE-2017-15671
5302 * posix/Makefile (routines): Add globfree, globfree64, and
5303 glob_pattern_p.
5304 * posix/flexmember.h: New file.
5305 * posix/glob_internal.h: Likewise.
5306 * posix/glob_pattern_p.c: Likewise.
5307 * posix/globfree.c: Likewise.
5308 * posix/globfree64.c: Likewise.
5309 * sysdeps/gnu/globfree64.c: Likewise.
5310 * sysdeps/unix/sysv/linux/alpha/globfree.c: Likewise.
5311 * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
5312 * sysdeps/unix/sysv/linux/oldglob.c: Likewise.
5313 * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
5314 * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
5315 * sysdeps/wordsize-64/globfree.c: Likewise.
5316 * sysdeps/wordsize-64/globfree64.c: Likewise.
5317 * posix/glob.c (HAVE_CONFIG_H): Use !_LIBC instead.
5318 [NDEBUG): Remove comments.
5319 (GLOB_ONLY_P, _AMIGA, VMS): Remove define.
5320 (dirent_type): New type. Use uint_fast8_t not
5321 uint8_t, as C99 does not require uint8_t.
5322 (DT_UNKNOWN, DT_DIR, DT_LNK): New macros.
5323 (struct readdir_result): Use dirent_type. Do not define skip_entry
5324 unless it is needed; this saves a byte on platforms lacking d_ino.
5325 (readdir_result_type, readdir_result_skip_entry):
5326 New functions, replacing ...
5327 (readdir_result_might_be_symlink, readdir_result_might_be_dir):
5328 these functions, which were removed. This makes the callers
5329 easier to read. All callers changed.
5330 (D_INO_TO_RESULT): Now empty if there is no d_ino.
5331 (size_add_wrapv, glob_use_alloca): New static functions.
5332 (glob, glob_in_dir): Check for size_t overflow in several places,
5333 and fix some size_t checks that were not quite right.
5334 Remove old code using SHELL since Bash no longer
5335 uses this.
5336 (glob, prefix_array): Separate MS code better.
5337 (glob_in_dir): Remove old Amiga and VMS code.
5338 (globfree, __glob_pattern_type, __glob_pattern_p): Move to
5339 separate files.
5340 (glob_in_dir): Do not rely on undefined behavior in accessing
5341 struct members beyond their bounds. Use a flexible array member
5342 instead
5343 (link_stat): Rename from link_exists2_p and return -1/0 instead of
5344 0/1. Caller changed.
5345 (glob): Fix memory leaks.
5346 * posix/glob64 (globfree64): Move to separate file.
5347 * sysdeps/gnu/glob64.c (NO_GLOB_PATTERN_P): Remove define.
5348 (globfree64): Remove hidden alias.
5349 * sysdeps/unix/sysv/linux/Makefile (sysdeps_routines): Add
5350 oldglob.
5351 * sysdeps/unix/sysv/linux/alpha/glob.c (__new_globfree): Move to
5352 separate file.
5353 * sysdeps/unix/sysv/linux/i386/glob64.c (NO_GLOB_PATTERN_P): Remove
5354 define.
5355 Move compat code to separate file.
5356 * sysdeps/wordsize-64/glob.c (globfree): Move definitions to
5357 separate file.
5358
5359 2017-09-07 H.J. Lu <hongjiu.lu@intel.com>
5360
5361 * resolv/tst-resolv-qtypes.c (domain): Changed to
5362 "const char domain[] =".
5363
5364 2017-09-07 Joseph Myers <joseph@codesourcery.com>
5365
5366 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
5367 version to 3.1.6.
5368
5369 * sysdeps/gnu/netinet/tcp.h (TCP_ULP): New macro.
5370 (TCP_MD5SIG_EXT): Likewise.
5371 (TCP_MD5SIG_FLAG_PREFIX): Likewise.
5372 (struct tcp_md5sig): Replace __tcpm_pad1 by tcpm_flags and
5373 tcpm_prefixlen. Rename __tcpm_pad2 to __tcpm_pad.
5374
5375 * sysdeps/unix/sysv/linux/bits/socket.h (SOL_TLS): New macro.
5376
5377 2017-09-07 Mike FABIAN <mfabian@redhat.com>
5378
5379 * localedata/locales/om_ET (LC_TIME): use ASCII for better readability.
5380
5381 2017-09-07 Akhilesh Kumar <akhilesh.k@samsung.com>
5382
5383 [BZ #22100]
5384 * localedata/locales/om_KE (LC_TIME): copy "om_ET".
5385
5386 2017-09-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
5387
5388 * hurd/get-host.c (_hurd_get_host_config): Also check that more == 0
5389 before assuming that the file is empty. Avoid testing buffer content
5390 when nread == 0.
5391
5392 2017-09-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5393
5394 [BZ #18858]
5395 * sysdeps/i386/i686/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
5396 Remove define.
5397 * sysdeps/x86_64/multiarch/stpcpy.c (_HAVE_STRING_ARCH_stpcpy):
5398 Likewise.
5399 * sysdeps/x86_64/multiarch/strcspn.c (_HAVE_STRING_ARCH_strcspn):
5400 Likewise.
5401 * sysdeps/x86_64/multiarch/strncat.c (_HAVE_STRING_ARCH_strncat):
5402 Likewise.
5403 * sysdeps/x86_64/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
5404 Likewise.
5405 * sysdeps/x86_64/multiarch/strpbrk.c (_HAVE_STRING_ARCH_strpbrk):
5406 Likewise.
5407 * sysdeps/x86_64/multiarch/strspn.c (_HAVE_STRING_ARCH_strspn):
5408 Likewise.
5409
5410 2017-09-06 Florian Weimer <fweimer@redhat.com>
5411
5412 * malloc/dynarray_emplace_enlarge.c
5413 (__libc_dynarray_emplace_enlarge): Add missing else.
5414
5415 2017-09-06 Florian Weimer <fweimer@redhat.com>
5416
5417 [BZ #22096]
5418 * resolv/resolv_conf.c (__resolv_conf_attach): Do not free conf in
5419 case of failure to obtain the global conf object.
5420
5421 2017-09-06 Florian Weimer <fweimer@redhat.com>
5422
5423 [BZ #22095]
5424 * resolv/res_init.c (res_vinit_1): Avoid memory leak in case of
5425 dynarray allocation failure.
5426
5427 2017-09-06 Florian Weimer <fweimer@redhat.com>
5428
5429 Remove dead PTR IPv4-to-IPv6 mapping code from nss_dns.
5430 * resolv/nss_dns/dns-host.c (getanswer_r): Remove dead code.
5431 * resolv/tst-res_use_inet6.c (response_ptr_v4, response_ptr_v6):
5432 New functions.
5433 (response): Call them. Add 'p', '6' flag processing.
5434 (test_reverse): New function.
5435 (test_get2_any): Call it.
5436 (test_no_inet6): Add 'p' test.
5437 (test_inet6): Likewise.
5438
5439 2017-09-06 Florian Weimer <fweimer@redhat.com>
5440
5441 Enhance tst-res_use_inet6 to test IPv4-to-IPv6 address mapping.
5442 * resolv/tst-res_use_inet6.c (response): Process flags embedded in
5443 the QNAME.
5444 (test_gai): Adjust query names. Add additional tests.
5445 (test_get2_any, test_get2_no_inet6, test_get2_inet6): Split from
5446 test_get2. Adjust query names. Add additional tests.
5447 (test_no_inet6): New function, extracted from threadfunc.
5448 (threadfunc): Call test_get2_any, test_get2_inet6, test_no_inet6.
5449 Add additional tests.
5450
5451 2017-09-06 Mike FABIAN <mfabian@redhat.com>
5452
5453 [BZ #22070]
5454 * localedata/unicode-gen/utf8_gen.py: Set the width for
5455 characters with Prepended_Concatenation_Mark property to 1
5456 * localedata/charmaps/UTF-8: Updated using the improved script.
5457
5458 2017-09-06 Mike FABIAN <mfabian@redhat.com>
5459
5460 [BZ #21750]
5461 * localedata/unicode-gen/utf8_gen.py: Improve the script to
5462 use the range notation for all ranges of neighbouring characters
5463 with the same width.
5464
5465 2017-09-05 Joseph Myers <joseph@codesourcery.com>
5466
5467 * sysdeps/generic/math-type-macros-double.h: Include
5468 <math-svid-compat.h>.
5469 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
5470 * sysdeps/generic/math-type-macros-float.h: Include
5471 <math-svid-compat.h>.
5472 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
5473 * sysdeps/generic/math-type-macros-ldouble.h: Include
5474 <math-svid-compat.h>.
5475 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
5476 * math/lgamma-compat.h (BUILD_LGAMMA): Include LIBM_SVID_COMPAT
5477 condition.
5478 * math/w_acos_compat.c: Condition contents on [LIBM_SVID_COMPAT].
5479 * math/w_acosf_compat.c: Likewise.
5480 * math/w_acosh_compat.c: Likewise.
5481 * math/w_acoshf_compat.c: Likewise.
5482 * math/w_acoshl_compat.c: Likewise.
5483 * math/w_acosl_compat.c: Likewise.
5484 * math/w_asin_compat.c: Likewise.
5485 * math/w_asinf_compat.c: Likewise.
5486 * math/w_asinl_compat.c: Likewise.
5487 * math/w_atan2_compat.c: Likewise.
5488 * math/w_atan2f_compat.c: Likewise.
5489 * math/w_atan2l_compat.c: Likewise.
5490 * math/w_atanh_compat.c: Likewise.
5491 * math/w_atanhf_compat.c: Likewise.
5492 * math/w_atanhl_compat.c: Likewise.
5493 * math/w_cosh_compat.c: Likewise.
5494 * math/w_coshf_compat.c: Likewise.
5495 * math/w_coshl_compat.c: Likewise.
5496 * math/w_exp10_compat.c: Likewise.
5497 * math/w_exp10f_compat.c: Likewise.
5498 * math/w_exp10l_compat.c: Likewise.
5499 * math/w_exp2_compat.c: Likewise.
5500 * math/w_exp2f_compat.c: Likewise.
5501 * math/w_exp2l_compat.c: Likewise.
5502 * math/w_fmod_compat.c: Likewise.
5503 * math/w_fmodf_compat.c: Likewise.
5504 * math/w_fmodl_compat.c: Likewise.
5505 * math/w_hypot_compat.c: Likewise.
5506 * math/w_hypotf_compat.c: Likewise.
5507 * math/w_hypotl_compat.c: Likewise.
5508 * math/w_j0_compat.c: Likewise.
5509 * math/w_j0f_compat.c: Likewise.
5510 * math/w_j0l_compat.c: Likewise.
5511 * math/w_j1_compat.c: Likewise.
5512 * math/w_j1f_compat.c: Likewise.
5513 * math/w_j1l_compat.c: Likewise.
5514 * math/w_jn_compat.c: Likewise.
5515 * math/w_jnf_compat.c: Likewise.
5516 * math/w_jnl_compat.c: Likewise.
5517 * math/w_lgamma_r_compat.c: Likewise.
5518 * math/w_lgammaf_r_compat.c: Likewise.
5519 * math/w_lgammal_r_compat.c: Likewise.
5520 * math/w_log10_compat.c: Likewise.
5521 * math/w_log10f_compat.c: Likewise.
5522 * math/w_log10l_compat.c: Likewise.
5523 * math/w_log2_compat.c: Likewise.
5524 * math/w_log2f_compat.c: Likewise.
5525 * math/w_log2l_compat.c: Likewise.
5526 * math/w_log_compat.c: Likewise.
5527 * math/w_logf_compat.c: Likewise.
5528 * math/w_logl_compat.c: Likewise.
5529 * math/w_pow_compat.c: Likewise.
5530 * math/w_powf_compat.c: Likewise.
5531 * math/w_powl_compat.c: Likewise.
5532 * math/w_remainder_compat.c: Likewise.
5533 * math/w_remainderf_compat.c: Likewise.
5534 * math/w_remainderl_compat.c: Likewise.
5535 * math/w_sinh_compat.c: Likewise.
5536 * math/w_sinhf_compat.c: Likewise.
5537 * math/w_sinhl_compat.c: Likewise.
5538 * math/w_sqrt_compat.c: Likewise.
5539 * math/w_sqrtf_compat.c: Likewise.
5540 * math/w_sqrtl_compat.c: Likewise.
5541 * math/w_tgamma_compat.c: Likewise.
5542 * math/w_tgammaf_compat.c: Likewise.
5543 * math/w_tgammal_compat.c: Likewise.
5544 * math/w_scalb_compat.c (sysv_scalb): Condition definition on
5545 [LIBM_SVID_COMPAT].
5546 (__scalb): Condition call to sysv_scalb on [LIBM_SVID_COMPAT].
5547 * math/w_scalbf_compat.c (sysv_scalbf): Condition definition on
5548 [LIBM_SVID_COMPAT].
5549 (__scalbf): Condition call to sysv_scalbf on [LIBM_SVID_COMPAT].
5550 * math/w_scalbl_compat.c (sysv_scalbl): Condition definition on
5551 [LIBM_SVID_COMPAT].
5552 (__scalbl): Condition call to sysv_scalbl on [LIBM_SVID_COMPAT].
5553 * sysdeps/i386/fpu/w_sqrt.c: New file.
5554 * sysdeps/ia64/fpu/w_acos.c: Likewise.
5555 * sysdeps/ia64/fpu/w_acosf.c: Likewise.
5556 * sysdeps/ia64/fpu/w_acosh.c: Likewise.
5557 * sysdeps/ia64/fpu/w_acoshf.c: Likewise.
5558 * sysdeps/ia64/fpu/w_acoshl.c: Likewise.
5559 * sysdeps/ia64/fpu/w_acosl.c: Likewise.
5560 * sysdeps/ia64/fpu/w_asin.c: Likewise.
5561 * sysdeps/ia64/fpu/w_asinf.c: Likewise.
5562 * sysdeps/ia64/fpu/w_asinl.c: Likewise.
5563 * sysdeps/ia64/fpu/w_atan2.c: Likewise.
5564 * sysdeps/ia64/fpu/w_atan2f.c: Likewise.
5565 * sysdeps/ia64/fpu/w_atan2l.c: Likewise.
5566 * sysdeps/ia64/fpu/w_atanh.c: Likewise.
5567 * sysdeps/ia64/fpu/w_atanhf.c: Likewise.
5568 * sysdeps/ia64/fpu/w_atanhl.c: Likewise.
5569 * sysdeps/ia64/fpu/w_cosh.c: Likewise.
5570 * sysdeps/ia64/fpu/w_coshf.c: Likewise.
5571 * sysdeps/ia64/fpu/w_coshl.c: Likewise.
5572 * sysdeps/ia64/fpu/w_exp.c: Likewise.
5573 * sysdeps/ia64/fpu/w_exp10.c: Likewise.
5574 * sysdeps/ia64/fpu/w_exp10f.c: Likewise.
5575 * sysdeps/ia64/fpu/w_exp10l.c: Likewise.
5576 * sysdeps/ia64/fpu/w_exp2.c: Likewise.
5577 * sysdeps/ia64/fpu/w_exp2f.c: Likewise.
5578 * sysdeps/ia64/fpu/w_exp2l.c: Likewise.
5579 * sysdeps/ia64/fpu/w_expf.c: Likewise.
5580 * sysdeps/ia64/fpu/w_expl.c: Likewise.
5581 * sysdeps/ia64/fpu/w_fmod.c: Likewise.
5582 * sysdeps/ia64/fpu/w_fmodf.c: Likewise.
5583 * sysdeps/ia64/fpu/w_fmodl.c: Likewise.
5584 * sysdeps/ia64/fpu/w_hypot.c: Likewise.
5585 * sysdeps/ia64/fpu/w_hypotf.c: Likewise.
5586 * sysdeps/ia64/fpu/w_hypotl.c: Likewise.
5587 * sysdeps/ia64/fpu/w_lgamma_r.c: Likewise.
5588 * sysdeps/ia64/fpu/w_lgammaf_r.c: Likewise.
5589 * sysdeps/ia64/fpu/w_lgammal_r.c: Likewise.
5590 * sysdeps/ia64/fpu/w_log.c: Likewise.
5591 * sysdeps/ia64/fpu/w_log10.c: Likewise.
5592 * sysdeps/ia64/fpu/w_log10f.c: Likewise.
5593 * sysdeps/ia64/fpu/w_log10l.c: Likewise.
5594 * sysdeps/ia64/fpu/w_log2.c: Likewise.
5595 * sysdeps/ia64/fpu/w_log2f.c: Likewise.
5596 * sysdeps/ia64/fpu/w_log2l.c: Likewise.
5597 * sysdeps/ia64/fpu/w_logf.c: Likewise.
5598 * sysdeps/ia64/fpu/w_logl.c: Likewise.
5599 * sysdeps/ia64/fpu/w_pow.c: Likewise.
5600 * sysdeps/ia64/fpu/w_powf.c: Likewise.
5601 * sysdeps/ia64/fpu/w_powl.c: Likewise.
5602 * sysdeps/ia64/fpu/w_remainder.c: Likewise.
5603 * sysdeps/ia64/fpu/w_remainderf.c: Likewise.
5604 * sysdeps/ia64/fpu/w_remainderl.c: Likewise.
5605 * sysdeps/ia64/fpu/w_sinh.c: Likewise.
5606 * sysdeps/ia64/fpu/w_sinhf.c: Likewise.
5607 * sysdeps/ia64/fpu/w_sinhl.c: Likewise.
5608 * sysdeps/ia64/fpu/w_sqrt.c: Likewise.
5609 * sysdeps/ia64/fpu/w_sqrtf.c: Likewise.
5610 * sysdeps/ia64/fpu/w_sqrtl.c: Likewise.
5611 * sysdeps/ia64/fpu/w_tgamma.c: Likewise.
5612 * sysdeps/ia64/fpu/w_tgammaf.c: Likewise.
5613 * sysdeps/ia64/fpu/w_tgammal.c: Likewise.
5614 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Condition contents on
5615 [LIBM_SVID_COMPAT].
5616 * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
5617 * sysdeps/ieee754/k_standard.c: Likewise.
5618 * sysdeps/ieee754/k_standardf.c: Likewise.
5619 * sysdeps/ieee754/k_standardl.c: Likewise.
5620 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
5621 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
5622 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
5623 * sysdeps/ieee754/ldbl-64-128/w_expl_compat.c: Condition
5624 long_double_symbol call on [LIBM_SVID_COMPAT].
5625 * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
5626 * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
5627 * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
5628 * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
5629 * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
5630 * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
5631 * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
5632 * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
5633 * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
5634 * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
5635 * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
5636 * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
5637 * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
5638 * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
5639 * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
5640 * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
5641 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c: Likewise.
5642 * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
5643 * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
5644 * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
5645 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c: Condition
5646 long_double_symbol and compat_symbol calls on [LIBM_SVID_COMPAT].
5647
5648 2017-09-05 Steve Ellcey <sellcey@cavium.com>
5649
5650 * include/shlib-compat.h (TEST_COMPAT): New Macro.
5651 * malloc/tst-mallocstate.c: Convert from test-skeleton
5652 to test-driver. Ifdef code using TEST_COMPAT macro.
5653 * math/test-matherr-2.c: Ifdef test using TEST_COMPAT macro.
5654 * math/test-matherr.c: Likewise.
5655
5656 2017-09-05 Joseph Myers <joseph@codesourcery.com>
5657
5658 [BZ #22086]
5659 * debug/pcprofiledump.c (main): Use byte-swapped mask when
5660 comparing word with byte-swapped constant.
5661
5662 2017-09-05 Chris Leonard <cjlhomeaddress@gmail.com>
5663
5664 [BZ #20498]
5665 * locale/iso-639.def: add Miskito.
5666 * localedata/SUPPORTED: Add miq_NI/UTF-8.
5667 * localedata/locales/miq_NI: New file.
5668
5669 2017-09-04 H.J. Lu <hongjiu.lu@intel.com>
5670
5671 [BZ #18822]
5672 * include/sys/stat.h (__chmod): Add libc_hidden_proto.
5673 (__mkdir): Likewise.
5674 * io/chmod.c (__chmod): Add libc_hidden_def.
5675 * io/mkdir.c (__mkdir): Likewise.
5676 * sysdeps/mach/hurd/chmod.c (__chmod): Likewise.
5677 * sysdeps/mach/hurd/mkdir.c (__mkdir): Likewise.
5678 * sysdeps/unix/sysv/linux/generic/chmod.c (__chmod): Likewise.
5679 * sysdeps/unix/sysv/linux/generic/mkdir.c (__mkdir): Likewise.
5680
5681 2017-09-04 Joseph Myers <joseph@codesourcery.com>
5682
5683 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
5684 version to 4.13.
5685
5686 [BZ #22082]
5687 * math/bits/math-finite.h (exp10): Redirect if [__GLIBC_USE
5688 (IEC_60559_FUNCS_EXT)], not [__USE_GNU].
5689
5690 2017-09-04 Florian Weimer <fweimer@redhat.com>
5691
5692 * math/math.h: Issue warning if log is defined.
5693
5694 2017-09-04 Joseph Myers <joseph@codesourcery.com>
5695
5696 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
5697 kernel version to 4.13.
5698
5699 2017-09-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
5700
5701 * sysdeps/generic/sigsetops.h: Remove spurious #endif.
5702 (__sigismember, __sigaddset, __sigdelset): Fix referencing set
5703 parameter.
5704 * sysdeps/mach/hurd/bits/socket.h: Include <sys/types.h> instead of
5705 just <bits/types.h>.
5706 * sysdeps/posix/preadv2.c: Use off_t instead of OFF_T.
5707 * sysdeps/posix/preadv64v2.c: Use off64_t instead of OFF_T.
5708 * sysdeps/posix/pwritev2.c: Use off_t instead of OFF_T.
5709 * sysdeps/posix/pwritev64v2.c: Use off64_t instead of OFF_T.
5710 * misc/preadv2.c: Include <errno.h>.
5711 * misc/preadv64v2.c: Include <errno.h>.
5712 * misc/pwritev2.c: Include <errno.h>.
5713 * misc/pwritev64v2.c: Include <errno.h>.
5714 * sysdeps/posix/preadv2.c: Include <errno.h>.
5715 * sysdeps/posix/preadv64v2.c: Include <errno.h>.
5716 Fix <unistd.h> inclusion.
5717 * sysdeps/posix/pwritev2.c: Include <errno.h>.
5718 * sysdeps/posix/pwritev64v2.c: Include <errno.h>.
5719 * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno, __sbrk,
5720 __strtoul_internal): New functions.
5721 * sysdeps/posix/pause.c: Include <sigsetops.h>.
5722 * sysdeps/posix/system.c: Include <sigsetops.h>.
5723 * sysdeps/mach/hurd/i386/Makefile
5724 [$(subdir) = csu] (sysdep_routines): New rule: divdi3 object.
5725 [$(subdir) = csu] (sysdep-only-routines): Likewise.
5726 [$(subdir) = csu] (CFLAGS-divdi3.c): Likewise.
5727 * sysdeps/x86/fpu/include/bits/fenv.h [NO_HIDDEN]: Redirect
5728 __feraiseexcept_renamed to feraiseexcept instead of
5729 __GI_feraiseexcept.
5730 * sysdeps/mach/hurd/i386/Implies: Add mach/hurd/x86.
5731 * sysdeps/mach/hurd/x86/dl-sysdep.c: New file.
5732 * misc/tst-preadvwritev2-common.c (RWF_HIPRI, RWF_DSYNC, RWF_SYNC,
5733 RWF_NOWAIT): Define to 0 if undefined already.
5734 (do_test_with_invalid_flags): Set invalid_flag to 2 if RWF_SUPPORTED
5735 boils down to 0.
5736 * resolv/tst-resolv-res_init-skeleton.c (run_res_init)
5737 [!CLONE_NEWUTS]: Fail as unsupported if hostname is not NULL.
5738
5739 2017-09-01 Joseph Myers <joseph@codesourcery.com>
5740
5741 * manual/math.texi (pow10): Do not document.
5742 (pow10f): Likewise.
5743 (pow10l): Likewise.
5744 * math/bits/mathcalls.h [__USE_GNU] (pow10): Do not declare.
5745 * math/bits/math-finite.h [__USE_GNU] (pow10): Likewise.
5746 * math/libm-test-exp10.inc (pow10_test): Remove.
5747 (do_test): Do not call pow10.
5748 * math/w_exp10_compat.c (pow10): Make into compat symbol.
5749 [NO_LONG_DOUBLE] (pow10l): Likewise.
5750 * math/w_exp10f_compat.c (pow10f): Likewise.
5751 * math/w_exp10l_compat.c (pow10l): Likewise.
5752 * sysdeps/ia64/fpu/e_exp10.S: Include <shlib-compat.h>.
5753 (pow10): Make into compat symbol.
5754 * sysdeps/ia64/fpu/e_exp10f.S: Include <shlib-compat.h>.
5755 (pow10f): Make into compat symbol.
5756 * sysdeps/ia64/fpu/e_exp10l.S: Include <shlib-compat.h>.
5757 (pow10l): Make into compat symbol.
5758 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Remove
5759 pow10.
5760 (CFLAGS-nldbl-pow10.c): Remove variable..
5761 * sysdeps/ieee754/ldbl-opt/nldbl-pow10.c: Remove file.
5762 * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c (pow10l): Condition on
5763 [SHLIB_COMPAT (libm, GLIBC_2_1, GLIBC_2_27)].
5764 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (compat_symbol):
5765 Undefine and redefine.
5766 (pow10l): Make into compat symbol.
5767 * sysdeps/aarch64/libm-test-ulps: Remove pow10 ulps.
5768 * sysdeps/alpha/fpu/libm-test-ulps: Likewise.
5769 * sysdeps/arm/libm-test-ulps: Likewise.
5770 * sysdeps/hppa/fpu/libm-test-ulps: Likewise.
5771 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
5772 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
5773 * sysdeps/microblaze/libm-test-ulps: Likewise.
5774 * sysdeps/mips/mips32/libm-test-ulps: Likewise.
5775 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
5776 * sysdeps/nios2/libm-test-ulps: Likewise.
5777 * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
5778 * sysdeps/powerpc/nofpu/libm-test-ulps: Likewise.
5779 * sysdeps/s390/fpu/libm-test-ulps: Likewise.
5780 * sysdeps/sh/libm-test-ulps: Likewise.
5781 * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
5782 * sysdeps/tile/libm-test-ulps: Likewise.
5783 * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5784
5785 2017-09-01 Paul Pluzhnikov <ppluzhnikov@google.com>
5786
5787 * stdlib/tst-atexit-common.c (crumbs): Ensure correct size.
5788
5789 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
5790
5791 * posix/tst-regex.c (do_test): Replace "../ChangeLog.8" with
5792 "../ChangeLog.old/ChangeLog.8".
5793 * posix/tst-regex2.c (do_test): Replace "../ChangeLog.14" with
5794 "../ChangeLog.old/ChangeLog.14".
5795
5796 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
5797
5798 * manual/contrib.texi: Credit Ulrich Drepper for the POSIX
5799 Threads Library.
5800
5801 2017-09-01 Joseph Myers <joseph@codesourcery.com>
5802
5803 * sysdeps/unix/sysv/linux/gentempfd.c: Include <string.h>.
5804
5805 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
5806
5807 * csu/version.c (banner): Remove "by Roland McGrath et al.".
5808 * nptl/Banner: Remove "by Ulrich Drepper et al.".
5809
5810 2017-09-01 Paul Pluzhnikov <ppluzhnikov@google.com>
5811
5812 * stdlib/tst-atexit-common.c (do_test): Test support for at least
5813 32 atexit handlers.
5814
5815 2017-09-01 Zack Weinberg <zackw@panix.com>
5816
5817 * math/math.h (HUGE_VAL): Improve commentary.
5818
5819 2017-09-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5820 Andreas Schwab <schwab@suse.de>
5821
5822 [BZ #21530]
5823 * include/stdio.h (__gen_tempfd): New function.
5824 * stdio-common/Makefile (routines): Add gentempfd.
5825 * stdio-common/gentempfd.c: New file.
5826 * sysdeps/unix/sysv/linux/gentempfd.c: Likewise.
5827 * stdio-common/tmpfile.c (tmpfile): First try to use a system specific
5828 unnamed file first.
5829
5830 2017-09-01 Florian Weimer <fweimer@redhat.com>
5831
5832 [BZ #21915]
5833 [BZ #21922]
5834 * sysdeps/posix/getaddrinfo.c (gethosts): Look at NSS function
5835 result to determine success or failure, not the errno value.
5836 * nss/Makefile (tests): Add tst-nss-files-hosts-erange.
5837 (tst-nss-files-hosts-erange): Link with -ldl.
5838 * nss/tst-nss-files-hosts-erange.c: New file.
5839 * nss/tst-resolv-basic.c (response): Handle nodata.example.
5840 (do_test): Add NO_DATA tests.
5841 * resolv/tst-resolv-basic.c (test_nodata_nxdomain): New function.
5842 (do_test): Call it.
5843
5844 2017-09-01 Florian Weimer <fweimer@redhat.com>
5845
5846 [BZ #21922]
5847 * sysdeps/posix/getaddrinfo.c (gaih_inet): Report EAI_NODATA error
5848 coming from gethostbyname2_r.
5849
5850 2017-09-01 Florian Weimer <fweimer@redhat.com>
5851
5852 * support/namespace.h (struct support_chroot_configuration): Add
5853 hosts, host_conf.
5854 (struct support_chroot): Add path_hosts, path_host_conf.
5855 * support/support_chroot.c (write_file): New function.
5856 (support_chroot_create): Call it to process /etc/resolv.conf,
5857 /etc/hosts, /etc/host.conf.
5858 (support_chroot_free): Update.
5859
5860 2017-09-01 Florian Weimer <fweimer@redhat.com>
5861
5862 * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use h_errno if
5863 status indicates it is set.
5864
5865 2017-09-01 Florian Weimer <fweimer@redhat.com>
5866
5867 * sysdeps/posix/getaddrinfo.c (gaih_inet): Make reporting of NSS
5868 function lookup failures more reliable.
5869
5870 2017-09-01 Florian Weimer <fweimer@redhat.com>
5871
5872 * sysdeps/posix/getaddrinfo.c (gethosts): Use h_errno directly.
5873 (getcanonname): Likewise.
5874 (gaih_inet): Likewise.
5875
5876 2017-09-01 Florian Weimer <fweimer@redhat.com>
5877
5878 * sysdeps/posix/getaddrinfo.c (gethosts): Use errno directly.
5879 (getcanonname): Likewise.
5880 (gaih_inet): Likewise.
5881
5882 2017-08-31 Steve Ellcey <sellcey@cavium.com>
5883 Richard Henderson <rth@twiddle.net>
5884
5885 * sysdeps/aarch64/fpu/s_llrint.c (OREG_SIZE): New macro.
5886 * sysdeps/aarch64/fpu/s_llround.c (OREG_SIZE): Likewise.
5887 * sysdeps/aarch64/fpu/s_llrintf.c (OREGS, IREGS): Remove.
5888 (IREG_SIZE, OREG_SIZE): New macros.
5889 * sysdeps/aarch64/fpu/s_llroundf.c: (OREGS, IREGS): Remove.
5890 (IREG_SIZE, OREG_SIZE): New macros.
5891 * sysdeps/aarch64/fpu/s_lrintf.c (IREGS): Remove.
5892 (IREG_SIZE): New macro.
5893 * sysdeps/aarch64/fpu/s_lroundf.c (IREGS): Remove.
5894 (IREG_SIZE): New macro.
5895 * sysdeps/aarch64/fpu/s_lrint.c (get-rounding-mode.h, stdint.h):
5896 New includes.
5897 (IREG_SIZE, OREG_SIZE): Initialize if not already set.
5898 (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
5899 (__CONCATX): Handle exceptions correctly on large values that may
5900 set FE_INVALID.
5901 * sysdeps/aarch64/fpu/s_lround.c (IREG_SIZE, OREG_SIZE):
5902 Initialize if not already set.
5903 (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
5904
5905 2017-08-31 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5906
5907 * sysdeps/generic/not-cancel.h (NO_CANCELLATION): Remove macro.
5908 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (NO_CANCELLATION):
5909 Likewise.
5910 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (NO_CANCELLATION):
5911 Likewise.
5912 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (NO_CANCELLATION):
5913 Likewise.
5914 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (NO_CANCELLATION):
5915 Likewise.
5916 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (NO_CANCELLATION):
5917 Likewise.
5918 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (NO_CANCELLATION):
5919 Likewise.
5920 * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (NO_CANCELLATION):
5921 Likewise.
5922 * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h
5923 (NO_CANCELLATION): Likewise.
5924 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (NO_CANCELLATION):
5925 Likewise.
5926 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (NO_CANCELLATION):
5927 Likewise.
5928 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h (NO_CANCELLATION):
5929 Likewise.
5930 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h
5931 (NO_CANCELLATION): Likewise.
5932 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h
5933 (NO_CANCELLATION): Likewise.
5934 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (NO_CANCELLATION):
5935 Likewise
5936 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h (NO_CANCELLATION):
5937 Likewise.
5938 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (NO_CANCELLATION):
5939 Likewise.
5940 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (NO_CANCELLATION):
5941 Likewise.
5942 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): Add
5943 hidden prototype.
5944 * sysdeps/unix/sysv/linux/fcntl.c (__fcntl_nocancel): Define only
5945 for !IS_IN (rtld) and remove NO_CANCELLATION usage.
5946
5947 2017-08-31 Steve Ellcey <sellcey@cavium.com>
5948
5949 * sysdeps/aarch64/dl-irel.h: (elf_ifunc_invoke): Change argument type
5950 in resolver call.
5951
5952 2017-08-31 Florian Weimer <fweimer@redhat.com>
5953
5954 * include/libc-symbols.h (internal_function): Remove.
5955
5956 2017-08-31 Florian Weimer <fweimer@redhat.com>
5957
5958 * stdlib/fmtmsg.c (internal_addseverity): Remove
5959 internal_function.
5960
5961 2017-08-31 Florian Weimer <fweimer@redhat.com>
5962
5963 * stdio-common/printf_fp.c (group_number): Remove
5964 internal_function.
5965 * stdio-common/vfprintf.c (buffered_vfprintf): Likewise.
5966
5967 2017-08-31 Florian Weimer <fweimer@redhat.com>
5968
5969 * posix/fnmatch.c (internal_function): Remove definition.
5970 * posix/fnmatch_loop.c (FCT, EXT, END): Remove internal_function.
5971 * posix/regcomp.c (peek_token, init_word_char)
5972 (duplicate_node_closure, fetch_token, peek_token)
5973 (peek_token_bracket, build_range_exp, build_collating_symbol):
5974 Likewise.
5975 * posix/regex_internal.c (re_string_construct_common)
5976 (create_ci_newstate, create_cd_newstate, re_string_allocate)
5977 (re_string_construct, re_string_realloc_buffers, build_wcs_buffer)
5978 (build_wcs_upper_buffer, re_string_skip_chars, build_upper_buffer)
5979 (re_string_translate_buffer, re_string_reconstruct)
5980 (re_string_peek_byte_case, re_string_fetch_byte_case)
5981 (re_string_destruct, re_string_context_at, re_node_set_alloc)
5982 (re_node_set_init_1, re_node_set_init_2, re_node_set_init_copy)
5983 (re_node_set_add_intersect, re_node_set_init_union)
5984 (re_node_set_merge, re_node_set_insert, re_node_set_insert_last)
5985 (re_node_set_compare, re_node_set_contains, re_node_set_remove_at)
5986 (re_dfa_add_node, calc_state_hash, re_acquire_state)
5987 (re_acquire_state_context): Likewise.
5988 * posix/regex_internal.h (internal_function): Remove definition.
5989 (re_string_realloc_buffers, build_wcs_buffer)
5990 (build_wcs_upper_buffer, build_upper_buffer)
5991 (re_string_translate_buffer, re_string_context_at)
5992 (re_string_char_size_at, re_string_wchar_at)
5993 (re_string_elem_size_at): Likewise.
5994 * posix/regexec.c (match_ctx_init, match_ctx_clean)
5995 (match_ctx_free, match_ctx_add_entry, search_cur_bkref_entry)
5996 (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init)
5997 (re_search_internal, re_search_2_stub, re_search_stub)
5998 (re_copy_regs, prune_impossible_nodes, check_matching)
5999 (check_halt_state_context, update_regs, push_fail_stack, set_regs)
6000 (free_fail_stack_return, sift_states_iter_mb)
6001 (sift_states_backward, build_sifted_states)
6002 (update_cur_sifted_state, add_epsilon_src_nodes, check_dst_limits)
6003 (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos)
6004 (check_subexp_limits, sift_states_bkref, merge_state_array)
6005 (find_recover_state, transit_state, merge_state_with_log)
6006 (check_subexp_matching_top, transit_state_sb, transit_state_sb)
6007 (transit_state_mb, transit_state_bkref, get_subexp)
6008 (get_subexp_sub, find_subexp_node, check_arrival)
6009 (check_arrival_add_next_nodes, check_arrival_expand_ecl)
6010 (check_arrival_expand_ecl_sub, expand_bkref_cache, build_trtable)
6011 (check_node_accept_bytes, find_collation_sequence_value)
6012 (group_nodes_into_DFAstates, check_node_accept, extend_buffers)
6013 (acquire_init_state_context, check_halt_node_context)
6014 (proceed_next_node, pop_fail_stack, clean_state_log_if_needed)
6015 (sub_epsilon_src_nodes): Likewise.
6016 * posix/spawn_int.h (__spawn_valid_fd): Likewise.
6017 * posix/spawn_valid_fd (__spawn_valid_fd): Likewise.
6018 * posix/wordexp.c (parse_dollars, parse_backtick, parse_dquote)
6019 (eval_expr, w_addmem, w_addstr, w_addword, parse_backslash)
6020 (parse_qtd_backslash, parse_tilde, do_parse_glob, parse_glob)
6021 (parse_squote, eval_expr_val, eval_expr_multdiv, parse_arith)
6022 (exec_comm_child, exec_comm, parse_comm, parse_param): Likewise.
6023 * sysdeps/posix/ttyname.c (getttyname): Likewise.
6024 * sysdeps/posix/ttyname_r.c (getttyname_r): Likewise.
6025 * sysdeps/unix/sysv/linux/preadv.c (__atomic_preadv_replacement)
6026 (PREADV): Likewise.
6027 * sysdeps/unix/sysv/linux/preadv64.c (__atomic_preadv64_replacement)
6028 (PREADV): Likewise.
6029 * sysdeps/unix/sysv/linux/pwritev.c (__atomic_pwritev_replacement)
6030 (PWRITEV): Likewise.
6031 * sysdeps/unix/sysv/linux/pwritev64.c (__atomic_pwritev64_replacement)
6032 (PWRITEV): Likewise.
6033 * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Likewise.
6034 * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
6035
6036 2017-08-31 Florian Weimer <fweimer@redhat.com>
6037
6038 * nptl/allocatestack.c (change_stack_perm, __deallocate_stack)
6039 (setxid_mark_thread, setxid_unmark_thread, setxid_signal_thread):
6040 Remove internal_function.
6041 * nptl/cancellation.c (__pthread_disable_asynccancel): Likewise.
6042 * nptl/libc_pthread_init.c (__libc_pthread_init): Likewise.
6043 * nptl/pthreadP.h (__find_in_stack_list, __free_tcb)
6044 (__deallocate_stack, __libc_pthread_init)
6045 (__pthread_mutex_cond_lock, __pthread_mutex_cond_lock_adjust)
6046 (__pthread_mutex_unlock_usercnt, __pthread_disable_asynccancel)
6047 (__libc_disable_asynccancel, __librt_disable_asynccancel):
6048 Likewise.
6049 * nptl/pthread_create.c (__find_in_stack_list, __free_tcb): Likewise.
6050 * nptl/pthread_mutex_cond_lock.c (__pthread_mutex_lock): Likewise.
6051 * nptl/pthread_mutex_lock.c (__pthread_mutex_cond_lock_adjust):
6052 Likewise.
6053 * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full)
6054 (__pthread_mutex_unlock_usercnt): Likewise.
6055
6056 2017-08-31 Florian Weimer <fweimer@redhat.com>
6057
6058 * io/fts.c (fts_alloc, fts_build, fts_lfree, fts_load)
6059 (fts_maxarglen, fts_padjust, fts_palloc, fts_sort, fts_stat)
6060 (fts_safe_changedir): Remove internal_function.
6061 * io/ftw.c (internal_function): Remove definition.
6062 (ftw_dir, process_entry, ftw_startup): Remove internal_function.
6063
6064 2017-08-31 Florian Weimer <fweimer@redhat.com>
6065
6066 * inet/deadline.c (__deadline_current_time)
6067 (__deadline_from_timeval, __deadline_to_ms): Remove
6068 internal_function.
6069 * inet/getnameinfo.c (nrl_domainname): Likewise.
6070 * inet/getnetgrent_r.c (__internal_setnetgrent_reuse): Likewise.
6071 * inet/inet6_option.c (add_pad): Likewise.
6072 * inet/net-internal.h (__deadline_current_time)
6073 (__deadline_from_timeval, __deadline_to_ms): Likewise.
6074 * inet/rcmd.c (__checkhost_sa, __icheckuser): Likewise.
6075 * sysdeps/mach/hurd/if_index.c (__protocol_available): Likewise.
6076 * sysdeps/unix/sysv/linux/ifaddrs.c (map_newlink): Likewise.
6077
6078 2017-08-31 Joseph Myers <joseph@codesourcery.com>
6079
6080 * math/math.h [__USE_ISOC99] (NAN): Define directly here. Do not
6081 include <bits/nan.h>.
6082 * math/Makefile (headers): Remove bits/nan.h.
6083 * bits/nan.h: Remove.
6084 * sysdeps/ieee754/bits/nan.h: Likewise.
6085 * sysdeps/mips/bits/nan.h: Likewise.
6086
6087 * math/math.h [__USE_ISOC99] (INFINITY): Define directly here. Do
6088 not include <bits/inf.h>.
6089 * math/Makefile (headers): Remove bits/inf.h.
6090 * bits/inf.h: Remove.
6091 * sysdeps/ieee754/bits/inf.h: Likewise.
6092
6093 * math/math.h: Do not include bits/huge_val.h, bits/huge_valf.h,
6094 bits/huge_vall.h or bits/huge_val_flt128.h.
6095 (HUGE_VAL): Define directly here.
6096 [__USE_ISOC99] (HUGE_VALF): Likewise.
6097 [__USE_ISOC99] (HUGE_VALL): Likewise.
6098 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
6099 (HUGE_VAL_F128): Likewise.
6100 * math/Makefile (headers): Remove bits/huge_val.h,
6101 bits/huge_valf.h, bits/huge_vall.h and bits/huge_val_flt128.h.
6102 * bits/huge_val.h: Remove.
6103 * bits/huge_val_flt128.h: Likewise.
6104 * bits/huge_valf.h: Likewise.
6105 * bits/huge_vall.h: Likewise.
6106 * sysdeps/ia64/bits/huge_vall.h: Likewise.
6107 * sysdeps/ieee754/bits/huge_val.h: Likewise.
6108 * sysdeps/ieee754/bits/huge_valf.h: Likewise.
6109 * sysdeps/m68k/m680x0/bits/huge_vall.h: Likewise.
6110 * sysdeps/sh/bits/huge_val.h: Likewise.
6111 * sysdeps/sparc/bits/huge_vall.h: Likewise.
6112 * sysdeps/x86/bits/huge_vall.h: Likewise.
6113
6114 2017-08-31 Florian Weimer <fweimer@redhat.com>
6115
6116 * elf/dl-addr-obj.c (_dl_addr_inside_object): Remove
6117 internal_function.
6118 * elf/dl-cache.c (_dl_cache_libcmp, _dl_load_cache_lookup):
6119 Likewise.
6120 * elf/dl-debug.c (_dl_debug_initialize): Likewise.
6121 * elf/dl-deps.c (_dl_build_local_scope, _dl_map_object_deps): Likewise.
6122 * elf/dl-environ.c (_dl_next_ld_env_entry): Likewise.
6123 * elf/dl-execstack.c (_dl_make_stack_executable): Likewise.
6124 * elf/dl-fini.c (_dl_sort_fini): Likewise.
6125 * elf/dl-hwcaps.c (_dl_important_hwcaps): Likewise.
6126 * elf/dl-libc.c (dlerror_run): Likewise.
6127 * elf/dl-load.c (add_name_to_object, decompose_rpath)
6128 (_dl_init_paths, _dl_map_object, _dl_rtld_di_serinfo): Likewise.
6129 * elf/dl-lookup.c (add_dependency, _dl_debug_bindings)
6130 (_dl_lookup_symbol_x, _dl_setup_hash, _dl_debug_bindings):
6131 Likewise.
6132 * elf/dl-misc.c (_dl_sysdep_read_whole_file, _dl_name_match_p)
6133 (_dl_higher_prime_number, _dl_strtoul): Likewise.
6134 * elf/dl-object.c (_dl_add_to_namespace_list, _dl_new_object): Likewise.
6135 * elf/dl-profile.c (_dl_start_profile): Likewise.
6136 * elf/dl-reloc.c (_dl_try_allocate_static_tls)
6137 (_dl_allocate_static_tls, _dl_protect_relro, _dl_reloc_bad_type):
6138 Likewise.
6139 * elf/dl-support.c (_dl_aux_init, _dl_non_dynamic_init): Likewise.
6140 * elf/dl-sym.c (_dl_tls_symaddr, do_sym): Likewise.
6141 * elf/dl-sysdep.c (_dl_sysdep_start_cleanup, _dl_show_auxv): Likewise.
6142 * elf/dl-tls.c (_dl_next_tls_modid, _dl_count_modids)
6143 (_dl_determine_tlsoffset, allocate_dtv, _dl_get_tls_static_info)
6144 (_dl_allocate_tls_storage): Likewise.
6145 * elf/dl-version.c (match_symbol, _dl_check_map_versions)
6146 (_dl_check_all_versions): Likewise.
6147 * elf/dynamic-link.h (_dl_try_allocate_static_tls): Likewise.
6148 * elf/tlsdeschtab.h (_dl_make_tlsdesc_dynamic): Likewise.
6149 * elf/tst-_dl_addr_inside_object.c (_dl_addr_inside_object): Likewise.
6150 * sysdeps/aarch64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
6151 * sysdeps/aarch64/tlsdesc.c (_dl_unmap): Likewise.
6152 * sysdeps/arm/dl-lookupcfg.h (_dl_unmap): Likewise.
6153 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Remove
6154 internal_function from __dl_start.
6155 * sysdeps/arm/dl-tlsdesc.h (_dl_unmap): Remove internal_function.
6156 * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): Likewise.
6157 * sysdeps/generic/ldsodefs.h (_dl_name_match_p)
6158 (_dl_higher_prime_number, _dl_strtoul, _dl_map_object)
6159 (_dl_map_object_deps, _dl_setup_hash, _dl_rtld_di_serinfo)
6160 (_dl_lookup_symbol_x, _dl_add_to_namespace_list, _dl_new_object)
6161 (_dl_protect_relro, _dl_reloc_bad_type, _dl_check_all_versions)
6162 (_dl_check_map_versions, _dl_sort_fini, _dl_debug_initialize)
6163 (_dl_init_paths, _dl_start_profile, _dl_show_auxv)
6164 (_dl_next_ld_env_entry, _dl_important_hwcaps)
6165 (_dl_load_cache_lookup, _dl_sysdep_read_whole_file)
6166 (_dl_sysdep_start_cleanup, _dl_next_tls_modid, _dl_count_modids)
6167 (_dl_determine_tlsoffset, _dl_get_tls_static_info)
6168 (_dl_allocate_static_tls, _dl_allocate_tls_storage)
6169 (_dl_addr_inside_object, _dl_non_dynamic_init, _dl_aux_init):
6170 Likewise.
6171 (struct rtld_global_ro): Remove internal_function from the
6172 _dl_lookup_symbol_x member.
6173 (_dl_symbol_value): Remove. No longer defined anywhere.
6174 * sysdeps/i386/dl-lookupcfg.h (_dl_unmap): Remove
6175 internal_function.
6176 * sysdeps/i386/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
6177 * sysdeps/i386/tlsdesc.c (_dl_unmap): Likewise.
6178 * sysdeps/mach/hurd/dl-sysdep.c (_dl_show_auxv): Likewise.
6179 * sysdeps/nios2/dl-init.c (_dl_nios2_get_gp_value): Likewise.
6180 * sysdeps/tile/dl-lookupcfg.h (_dl_unmap): Likewise.
6181 * sysdeps/tile/dl-machine.h (_dl_after_load): Likewise.
6182 * sysdeps/tile/dl-runtime.c (_dl_after_load, _dl_unmap): Likewise.
6183 * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Likewise.
6184 * sysdeps/unix/sysv/linux/dl-vdso.h (_dl_vdso_vsym): Likewise.
6185 * sysdeps/x86_64/dl-lookupcfg.h (_dl_unmap): Likewise.
6186 * sysdeps/x86_64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
6187 * sysdeps/x86_64/tlsdesc.c (_dl_unmap): Likewise.
6188
6189 2017-08-31 Florian Weimer <fweimer@redhat.com>
6190
6191 * gmon/gmon.c (write_hist, write_call_graph, write_bb_counts):
6192 Remove internal_function.
6193 * sysdeps/arm/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
6194 Likewise.
6195 * sysdeps/sparc/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
6196 Likewise.
6197
6198 2017-08-31 Florian Weimer <fweimer@redhat.com>
6199
6200 * dlfcn/dlerror.c (_dlerror_run): Remove internal_function.
6201 * elf/dl-sym.c (_dl_vsym, _dl_sym): Likewise.
6202 * include/dlfcn.h (_dl_sym, _dl_vsym, _dlerror_run): Likewise.
6203
6204 2017-08-31 Florian Weimer <fweimer@redhat.com>
6205
6206 * resolv/gai_misc.c (__gai_find_request, __gai_remove_request)
6207 (__gai_enqueue_request): Remove internal_function.
6208 * resolv/gai_misc.h (__gai_enqueue_request, __gai_find_request)
6209 (__gai_remove_request, __gai_notify, __gai_notify_only)
6210 (__gai_sigqueue): Likewise.
6211 * resolv/gai_notify.c (__gai_notify_only, __gai_notify): Likewise.
6212 * resolv/gai_sigqueue.c (__gai_sigqueue): Likewise.
6213 * resolv/inet_ntop.c (inet_ntop4, inet_ntop6): Likewise.
6214 * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
6215 Likewise.
6216
6217 2017-08-31 Florian Weimer <fweimer@redhat.com>
6218
6219 * dirent/scandir-tail.c (SCANDIR_TAIL): Remove internal_function.
6220 * include/dirent.h (__opendirat, __getdents, __getdents64)
6221 (__alloc_dir, __scandir_tail, __scandir64_tail): Likewise.
6222 * sysdeps/posix/opendir.c (__opendirat, __alloc_dir): Likewise.
6223 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
6224 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
6225 Likewise.
6226 * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Likewise.
6227
6228 2017-08-31 Florian Weimer <fweimer@redhat.com>
6229
6230 * sysdeps/unix/sysv/linux/getcwd.c (generic_getcwd): Remove
6231 internal_function.
6232 (GETCWD_RETURN_TYPE): Likewise.
6233
6234 2017-08-31 Florian Weimer <fweimer@redhat.com>
6235
6236 * include/time.h (__tz_compute, __strptime_internal): Remove
6237 internal_function.
6238 * time/strptime_l.c (__strptime_internal): Likewise.
6239 * time/tzset.c (compute_change, update_vars, __tz_compute): Likewise.
6240
6241 2017-08-31 Florian Weimer <fweimer@redhat.com>
6242
6243 * iconv/gconv.c (__gconv): Remove internal_function.
6244 * iconv/gconv_builtin.c (__gconv_get_builtin_trans): Likewise.
6245 * iconv/gconv_cache.c (__gconv_load_cache, find_module_idx)
6246 (find_module, __gconv_compare_alias_cache, __gconv_lookup_cache)
6247 (__gconv_release_cache): Likewise.
6248 * iconv/gconv_close.c (__gconv_close): Likewise.
6249 * iconv/gconv_conf.c (detect_conflict, insert_module, add_module)
6250 (read_conf_file, __gconv_get_path): Likewise.
6251 * iconv/gconv_db.c (derivation_lookup, add_derivation)
6252 (__gconv_release_step, gen_steps, increment_counter)
6253 (find_derivation, __gconv_compare_alias, __gconv_find_transform)
6254 (__gconv_close_transform, free_modules_db): Likewise.
6255 * iconv/gconv_dl.c (__gconv_find_shlib, __gconv_release_shlib):
6256 Likewise.
6257 * iconv/gconv_int.h (__gconv_open, __gconv_close, __gconv)
6258 (__gconv_find_transform, __gconv_lookup_cache)
6259 (__gconv_release_step, __gconv_load_cache, __gconv_get_path)
6260 (__gconv_close_transform, __gconv_release_cache)
6261 (__gconv_loaded_object, __gconv_release_shlib)
6262 (__gconv_compare_alias): Likewise.
6263 * iconv/gconv_open.c (__gconv_open): Likewise.
6264 * iconv/iconv_prog.c (print_known_names, add_known_names): Likewise.
6265 * iconv/iconvconfig.c (add_module): Likewise.
6266 * intl/dcigettext.c (plural_lookup, guess_category_value)
6267 (category_to_name, get_output_charset, _nl_find_msg): Likewise.
6268 * intl/eval-plural.h (plural_eval): Likewise.
6269 * intl/finddomain.c (_nl_find_domain): Likewise.
6270 * intl/gettextP.h (_nl_unload_domain, _nl_find_domain)
6271 (_nl_load_domain, _nl_find_msg): Likewise.
6272 (internal_function): Remove definition.
6273 * intl/loadinfo.h (internal_function): Likewise.
6274 * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Remove
6275 internal_function.
6276 * intl/localealias.c (internal_function): Remove definition.
6277 (read_alias_file): Remove internal_function.
6278 * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Likewise.
6279 * intl/plural-exp.h (internal_function): Remove definition.
6280 (FREE_EXPRESSION, EXTRACT_PLURAL_EXPRESSION): Remove
6281 internal_function.
6282 * intl/plural.c: Regenerate.
6283 * intl/plural.y (FREE_EXPRESSION): Remove internal_function.
6284 * locale/coll-lookup.c (__collidx_table_lookup)
6285 (__collseq_table_lookup): Likewise.
6286 * locale/coll-lookup.h (__collidx_table_lookup)
6287 (__collseq_table_lookup): Likewise.
6288 * locale/findlocale.c (_nl_find_locale, _nl_remove_locale): Likewise.
6289 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
6290 * locale/loadlocale.c (_nl_intern_locale_data, _nl_load_locale)
6291 (_nl_unload_locale): Likewise.
6292 * locale/localeinfo.h (struct __locale_data): Remove
6293 internal_function from cleanup member.
6294 (_nl_find_locale, _nl_load_locale, _nl_unload_locale)
6295 (_nl_remove_locale, _nl_load_locale_from_archive)
6296 (_nl_intern_locale_data, _nl_get_era_entry, _nl_select_era_entry)
6297 (_nl_get_alt_digit, _nl_get_walt_digit, _nl_parse_alt_digit)
6298 (_nl_cleanup_time): Remove internal_function.
6299 * time/alt_digit.c (_nl_get_alt_digit, _nl_get_walt_digit)
6300 (_nl_parse_alt_digit): Likewise.
6301 * time/era.c (_nl_init_era_entries, _nl_get_era_entry)
6302 (_nl_select_era_entry): Likewise.
6303 * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
6304 * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv, __wcsmbs_clone_conv)
6305 (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
6306 * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv, __wcsmbs_clone_conv)
6307 (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
6308
6309 2017-08-31 Florian Weimer <fweimer@redhat.com>
6310
6311 * rt/aio_sigqueue.c (__aio_sigqueue): Remove internal_function.
6312 * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
6313 * sysdeps/pthread/aio_misc.c (__aio_free_request, __aio_find_req)
6314 (__aio_find_req_fd, __aio_remove_request, __aio_enqueue_request):
6315 Likewise.
6316 * sysdeps/pthread/aio_misc.h (__aio_enqueue_request)
6317 (__aio_find_req, __aio_find_req_fd, __aio_free_request)
6318 (__aio_notify, __aio_notify_only, __aio_sigqueue): Likewise.
6319 * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
6320 Likewise.
6321 * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue): Likewise.
6322
6323 2017-08-31 Florian Weimer <fweimer@redhat.com>
6324
6325 * misc/getttyent.c (skip, value): Remove internal_function.
6326 * misc/syslog.c (openlog_internal): Likewise.
6327 * misc/tsearch.c (trecurse, tdestroy_recurse): Likewise.
6328
6329 2017-08-31 Florian Weimer <fweimer@redhat.com>
6330
6331 * include/nss.h (__nss_valid_field, __nss_valid_list_field)
6332 (__nss_rewrite_field): Remove internal_function.
6333 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
6334 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
6335 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
6336 * nss/nsswitch.c (nss_parse_file, nss_getline)
6337 (nss_parse_service_list, nss_new_service): Likewise.
6338 * nss/rewrite_field.c (__nss_rewrite_field): Likewise.
6339 * nss/valid_field.c (__nss_valid_field): Likewise.
6340 * nss/valid_list_field.c (__nss_valid_list_field): Likewise.
6341
6342 2017-08-31 Florian Weimer <fweimer@redhat.com>
6343
6344 * malloc/arena.c (__malloc_fork_lock_parent)
6345 (__malloc_fork_unlock_parent, __malloc_fork_unlock_child)
6346 (next_env_entry, new_heap, heap_trim, arena_get2): Remove
6347 internal_function from defintions.
6348 * malloc/hooks.c (mem2mem_check, mem2chunk_check): Likewise.
6349 * malloc/malloc-internal.h (__malloc_fork_lock_parent)
6350 (__malloc_fork_unlock_parent, __malloc_fork_unlock_child): Remove
6351 internal_function from declarations.
6352 * malloc/malloc.c (internal_function): Do not define.
6353 (mem2mem_check): Remove internal_function from declaration.
6354 (munmap_chunk, mremap_chunk): Remove internal_function.
6355 * malloc/mtrace.c (tr_where): Likewise.
6356
6357 2017-08-31 Florian Weimer <fweimer@redhat.com>
6358
6359 * include/rpc/pmap_clnt.h (__get_socket): Remove
6360 internal_function.
6361 * sunrpc/auth_des.c (synchronize): Likewise.
6362 * sunrpc/auth_unix.c (marshal_new_auth): Likewise.
6363 * sunrpc/clnt_perr.c (auth_errmsg): Likewise.
6364 * sunrpc/des_impl.c (des_encrypt, des_set_key): Likewise.
6365 * sunrpc/key_call.c (key_call_keyenvoy, key_call_socket)
6366 (key_call): Likewise.
6367 * sunrpc/pm_getport.c (__get_socket): Likewise.
6368 * sunrpc/pmap_rmt.c (getbroadcastnets): Likewise.
6369 * sunrpc/svc_unix.c (makefd_xprt): Likewise.
6370 * sunrpc/svc_tcp.c (makefd_xprt): Likewise.
6371 * sunrpc/svcauth_des.c (cache_init, cache_spot, cache_ref)
6372 (invalidate): Likewise.
6373 * sunrpc/xcrypt.c (hexval, hex2bin, bin2hex): Likewise.
6374 * sunrpc/xdr_rec.c (fix_buf_size, skip_input_bytes, flush_out)
6375 (set_input_fragment, get_input_bytes): Likewise.
6376
6377 2017-08-31 Florian Weimer <fweimer@redhat.com>
6378
6379 * malloc/malloc.c (_int_free): Remove locked variable and related
6380 asserts.
6381
6382 2017-08-31 H.J. Lu <hongjiu.lu@intel.com>
6383
6384 [BZ #22051]
6385 * Makerules (build-module-helper-objlist): Filter out
6386 $(elf-objpfx)sofini.os.
6387 (build-shlib-objlist): Append $(elf-objpfx)sofini.os if it is
6388 needed.
6389
6390 2017-08-31 Florian Weimer <fweimer@redhat.com>
6391
6392 * libio/fcloseall.c: Assume weak_alias is defined.
6393 * libio/feof.c: Likewise.
6394 * libio/fileno.c: Likewise.
6395 * libio/fileops.c: Assume _LIBC, errno, __set_errno are defined.
6396 (_POSIX_SOURCE, open, lseek, read, write): Remove macro
6397 definitions.
6398 (_IO_file_open): Call __open directly.
6399 (_IO_new_file_sync): Assume ESPIPE is defined.
6400 (_IO_file_seekoff_maybe_mmap): Call __read directly.
6401 (_IO_new_file_write): Call __write directly.
6402 * libio/ftello.c (__ftello): Assume EIO, EOVERFLOW are defined.
6403 * libio/ftello64.c (__ftello64): Assume EIO is defined.
6404 * libio/genops.c: Assume _LIBC is defined.
6405 (save_for_backup): Remove internal_function.
6406 * libio/getc.c: Assume weak_alias is defined.
6407 * libio/getwc.c: Likewise.
6408 * libio/iofclose.c: Assume _LIBC is defined.
6409 * libio/iofdopen.c: Likewise.
6410 (_IO_fcntl): Remove macro definition.
6411 (_IO_new_fdopen): Assume F_GETFL, F_SETFL, O_ACCMODE are defined.
6412 Call __fcntl directly.
6413 * libio/iofflush.c: Assume weak_alias is defined.
6414 * libio/iofgetpos.c (_IO_new_fgetpos): Assume EIO, EOVERFLOW are
6415 defined.
6416 * libio/iofgetpos64.c (_IO_new_fgetpos64): Assume EIO is defined.
6417 * libio/iofgets.c: Likewise.
6418 * libio/iofopen.c: Assume _LIBC is defined.
6419 * libio/iofopen64.c: Assume _LIBC, weak_alias are defined.
6420 * libio/iofputs.c: Assume weak_alias is defined.
6421 * libio/iofread.c: Likewise.
6422 * libio/iofsetpos.c (_IO_new_fsetpos): Assume EIO is defined.
6423 * libio/iofsetpos64.c (_IO_new_fsetpos64): Likewise.
6424 * libio/ioftell.c: Assume weak_alias is defined.
6425 (_IO_ftell): Assume EIO, EOVERFLOW are defined.
6426 * libio/iofwide.c: Assume _LIBC is defined.
6427 (_IO_fwide): Drop SHARED conditional because it is implied by
6428 SHLIB_COMPAT.
6429 * libio/iofwrite.c: Assume weak_alias is defined.
6430 * libio/iogetdelim.c: Likewise.
6431 * libio/iogets.c: Assume _LIBC, weak_alias are defined.
6432 * libio/iogetwline.c (wmemcpy): Remove macro definition.
6433 (_IO_getwline): Call __wmemcpy directly.
6434 * libio/iopopen.c: Assume _LIBC is defined.
6435 (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
6436 (_IO_close): Remove macro definitions.
6437 (_IO_new_proc_open): Call __fork, __dup2, __close_nocancel, execl,
6438 _exit directly.
6439 (_IO_new_proc_close): Call __close_nocancel, __waitpid_nocancel
6440 directly.
6441 * libio/ioputs.c: Assume weak_alias is defined.
6442 * libio/ioseekoff.c: Assume errno, __set_errno are defined.
6443 * libio/iosetbuffer.c: Assume weak_alias is defined.
6444 * libio/iosetvbuf.c: Likewise.
6445 * libio/ioungetc.c: Likewise.
6446 * libio/libioP.h: Assume _LIBC, __GLIBC__, libc_hidden_proto,
6447 libc_hidden_def, libc_hidden_weak, NULL are defined.
6448 (mmap, munmap, ftruncate, OS_FSTAT): Remove macro definitions.
6449 * libio/oldfilepos.c: Assume _LIBC, errno, __set_errno are
6450 defined.
6451 (_POSIX_SOURCE, open, lseek, read, write): Remove macro
6452 definitions.
6453 (_IO_old_file_init_internal): Drop SHARED conditional because it
6454 is implied by SHLIB_COMPAT.
6455 (_IO_old_file_fopen): Call __open directly.
6456 (_IO_old_file_sync): Assume ESPIPE is defined.
6457 (_IO_old_file_write): Call __write directly.
6458 * libio/oldfdopen.c (_IO_fcntl): Remove macro definition.
6459 (_IO_old_fdopen): Assume F_GETFL, O_ACCMODE, F_SETFL are defined.
6460 Call __fcntl directly.
6461 * libio/oldiofgetpos.c: Assume weak_alias is defined.
6462 (_IO_old_fgetpos): Assume EIO is defined.
6463 * libio/oldiofgetpos64.c: Assume weak_alias is defined.
6464 (_IO_old_fgetpos64): Assume EIO is defined.
6465 * libio/oldiofsetpos.c: Assume weak_alias is defined.
6466 (_IO_old_fsetpos): Assume EIO is defined.
6467 * libio/oldiofsetpos64.c: Assume weak_alias is defined.
6468 (_IO_old_fsetpos64): Assume EIO is defined.
6469 * libio/oldiopopen.c: Assume _LIBC is defined.
6470 (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
6471 (_IO_close): Remove macro definitions.
6472 (_IO_old_proc_open): Call __pipe, __close, __dup2, execl, _exit
6473 directly.
6474 (_IO_old_proc_close): Call __close, __waitpid directly.
6475 * libio/put.c: Assume weak_alias is defined.
6476 * libio/stdfiles.c: Assume _LIBC is defined.
6477 * libio/stdio.c: Likewise.
6478 * libio/wfileops.c: Likewise.
6479 (_IO_wfile_sync): Assume ESPIPE is defined.
6480 * libio/wgenops.c: Assume _LIBC is defined.
6481 (save_for_wbackup): Remove internal_function.
6482
6483 2017-08-31 Florian Weimer <fweimer@redhat.com>
6484
6485 * malloc/malloc.c (top_check): Change return type to void. Remove
6486 internal_function.
6487 * malloc/hooks.c (top_check): Likewise.
6488 (malloc_check, realloc_check, memalign_check): Adjust.
6489
6490 2017-08-30 Joseph Myers <joseph@codesourcery.com>
6491
6492 [BZ #21457]
6493 * sysdeps/arm/sys/ucontext.h: Do not include <bits/sigcontext.h>.
6494 * sysdeps/generic/sys/ucontext.h: Add comment about use of struct
6495 sigcontext and namespace requirements.
6496 * sysdeps/i386/sys/ucontext.h: Do not include <bits/sigcontext.h>.
6497 * sysdeps/m68k/sys/ucontext.h: Likewise.
6498 * sysdeps/mips/sys/ucontext.h: Likewise. Include <bits/types.h>.
6499 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h: Do not include
6500 <bits/sigcontext.h>.
6501 (__ctx): Define earlier.
6502 (mcontext_t): Define structure contents rather than using struct
6503 sigcontext.
6504 * sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym (oEXTENSION): Use
6505 __glibc_reserved1 instead of __reserved.
6506 * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h: Do not include
6507 <bits/sigcontext.h>.
6508 (__ctx): Define earlier.
6509 (mcontext_t): Define structure contents rather than using struct
6510 sigcontext.
6511 * sysdeps/unix/sysv/linux/alpha/ucontext-offsets.sym: Use
6512 mcontext_t instead of struct sigcontext.
6513 * sysdeps/unix/sysv/linux/arm/sys/ucontext.h: Do not include
6514 <bits/sigcontext.h>.
6515 (__ctx): Define earlier.
6516 (mcontext_t): Define structure contents rather than using struct
6517 sigcontext.
6518 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h: Do not include
6519 <bits/sigcontext.h>.
6520 (__ctx): Define earlier.
6521 (mcontext_t): Define structure contents rather than using struct
6522 sigcontext.
6523 * sysdeps/unix/sysv/linux/ia64/makecontext.c (__makecontext): Use
6524 mcontext_t instead of struct sigcontext.
6525 * sysdeps/unix/sysv/linux/ia64/sigcontext-offsets.sym: Use
6526 mcontext_t instead of struct sigcontext.
6527 * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: Do not include
6528 <bits/sigcontext.h>.
6529 (__ctx): New macro.
6530 (struct __ia64_fpreg_mcontext): New type.
6531 (mcontext_t): Define structure contents rather than using struct
6532 sigcontext.
6533 (_SC_GR0_OFFSET): Use mcontext_t instead of struct sigcontext.
6534 (uc_sigmask): Define using __ctx.
6535 (uc_stack): Likewise.
6536 * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Include
6537 <bits/sigcontext.h>.
6538 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
6539 * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h: Do not include
6540 <bits/sigcontext.h>.
6541 * sysdeps/unix/sysv/linux/microblaze/sys/ucontext.h: New file.
6542 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Do not include
6543 <bits/sigcontext.h>.
6544 * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h: Do not include
6545 <bits/sigcontext.h>.
6546 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Do not include
6547 <bits/sigcontext.h>.
6548 * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Do not include
6549 <bits/sigcontext.h>.
6550 * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: Do not include
6551 <bits/sigcontext.h>.
6552 * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h: Do not include
6553 <bits/sigcontext.h>.
6554 * sysdeps/unix/sysv/linux/tile/sys/ucontext.h: Do not include
6555 <bits/sigcontext.h>.
6556 (__ctx): Define earlier.
6557 (mcontext_t): Define structure contents rather than using struct
6558 sigcontext.
6559 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: Do not include
6560 <bits/sigcontext.h>. Include <bits/types.h>.
6561 * conform/Makefile (test-xfail-XPG42/signal.h/conform): Remove.
6562 (test-xfail-XPG42/sys/wait.h/conform): Likewise.
6563 (test-xfail-XPG42/ucontext.h/conform): Likewise.
6564 (test-xfail-UNIX98/signal.h/conform): Likewise.
6565 (test-xfail-UNIX98/sys/wait.h/conform): Likewise.
6566 (test-xfail-UNIX98/ucontext.h/conform): Likewise.
6567 (test-xfail-XOPEN2K/signal.h/conform): Likewise.
6568 (test-xfail-XOPEN2K/sys/wait.h/conform): Likewise.
6569 (test-xfail-XOPEN2K/ucontext.h/conform): Likewise.
6570 (test-xfail-POSIX2008/signal.h/conform): Likewise.
6571 (test-xfail-POSIX2008/sys/wait.h/conform): Likewise.
6572 (test-xfail-XOPEN2K8/signal.h/conform): Likewise.
6573 (test-xfail-XOPEN2K8/sys/wait.h/conform): Likewise.
6574
6575 2017-08-30 Florian Weimer <fweimer@redhat.com>
6576
6577 * malloc/dynarray_emplace_enlarge.c
6578 (__libc_dynarray_emplace_enlarge): Set errno on overflow.
6579 * malloc/dynarray_resize.c (__libc_dynarray_resize): Likewise.
6580 * malloc/tst-dynarray.c (test_long_overflow): New function.
6581 (do_test): Call it.
6582
6583 2017-08-30 Florian Weimer <fweimer@redhat.com>
6584
6585 * malloc/malloc.c (ARENA_CORRUPTION_BIT, arena_is_corrupt)
6586 (set_arena_corrupt): Remove definitions.
6587 (mtrim): Do not check for corrupt arena.
6588 * malloc/arena.c (arena_lock, reused_arena, arena_get_retry):
6589 Likewise.
6590
6591 2017-08-30 Florian Weimer <fweimer@redhat.com>
6592
6593 [BZ #21754]
6594 * malloc/arena.c (TUNABLE_CALLBACK set_mallopt_check): Do not set
6595 check_action.
6596 (ptmalloc_init): Do not set or use check_action.
6597 * malloc/hooks.c (malloc_check_get_size, realloc_check): Adjust
6598 call to malloc_printerr. Remove return statement.
6599 (free_check): Likewise. Remove arena unlock.
6600 (top_check): Update comment. Adjust call to malloc_printerr.
6601 Remove heap repair code.
6602 * malloc/malloc.c (unlink): Adjust calls to malloc_printerr.
6603 (DEFAULT_CHECK_ACTION, check_action): Remove definitions.
6604 (sysmalloc): Adjust call to malloc_printerr.
6605 (munmap_chunk, __libc_realloc): Likewise. Remove return
6606 statement.
6607 (_int_malloc, int_realloc): Likewise. Remove errstr variable.
6608 Remove errout label and corresponding gotos.
6609 (_int_free): Likewise. Remove arena unlock.
6610 (do_set_mallopt_check): Do not set check_action.
6611 (malloc_printerr): Adjust parameter list. Do not mark arena as
6612 corrupt.
6613 * manual/memory.texi (Malloc Tunable Parameters): Remove TODO
6614 comment.
6615 * manual/probes.texi (Memory Allocation Probes): Remove
6616 memory_mallopt_check_action.
6617
6618 2017-08-30 Steve Ellcey <sellcey@cavium.com>
6619
6620 * sysdeps/unix/sysv/linux/aarch64/makecontext.c (__makecontext):
6621 Use pointer to uint64_t instead of long int for sp.
6622
6623 2017-08-30 Florian Weimer <fweimer@redhat.com>
6624
6625 [BZ #21754]
6626 * malloc/malloc.c (malloc_printerr): Always terminate the process,
6627 without printing a backtrace. Do not leak any information in the
6628 error message.
6629 * manual/memory.texi (Heap Consistency Checking): Update.
6630 * manual/tunables.texi (Memory Allocation Tunables): Likewise.
6631
6632 2017-08-30 Florian Weimer <fweimer@redhat.com>
6633
6634 Do not scale NPTL tests with available number of CPUs.
6635 * nptl/tst-cond16.c (count): Set to constant value of 8.
6636 * nptl/tst-cond18.c (count): Likewise.
6637
6638 2017-08-29 Joseph Myers <joseph@codesourcery.com>
6639
6640 [BZ #22035]
6641 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__inline_functions):
6642 Define to take a second argument that is a macro that
6643 concatentates a suffix, not the suffix itself.
6644 (__CONCAT_d): New macro.
6645 (__CONCAT_f): Likewise.
6646 (__CONCAT_l): Likewise.
6647
6648 2017-08-29 Paul Pluzhnikov <ppluzhnikov@google.com>
6649
6650 * stdlib/tst-atexit-common.c (do_test): Test handler inheritance
6651 by child.
6652
6653 2017-08-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6654 Aurelien Jarno <aurelien@aurel32.net>
6655 Maciej W. Rozycki <macro@imgtec.com>
6656
6657 [BZ #21956]
6658 * sysdeps/unix/sysv/linux/mips/mips32/mips16/Makefile
6659 [subdir = misc] (sysdep_routines): Remove `mips16-syscall5',
6660 `mips16-syscall6' and `mips16-syscall7'.
6661 (CFLAGS-mips16-syscall5.c, CFLAGS-mips16-syscall6.c)
6662 (CFLAGS-mips16-syscall7.c): Remove.
6663 * sysdeps/unix/sysv/linux/mips/mips32/mips16/Versions (libc):
6664 Remove `__mips16_syscall5', `__mips16_syscall6' and
6665 `__mips16_syscall7'.
6666 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall0.c
6667 (__mips16_syscall0): Rename `__mips16_syscall_return' to
6668 `__mips_syscall_return'.
6669 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall1.c
6670 (__mips16_syscall1): Likewise.
6671 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall2.c
6672 (__mips16_syscall2): Likewise.
6673 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall3.c
6674 (__mips16_syscall3): Likewise.
6675 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall4.c
6676 (__mips16_syscall4): Likewise.
6677 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall5.c:
6678 Remove.
6679 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall6.c:
6680 Remove.
6681 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall7.c:
6682 Remove.
6683 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall.h
6684 (__mips16_syscall5): Expand to `__mips_syscall5' rather than
6685 `__mips16_syscall5'. Remove prototype.
6686 (__mips16_syscall6): Expand to `__mips_syscall6' rather than
6687 `__mips16_syscall6'. Remove prototype.
6688 (__mips16_syscall7): Expand to `__mips_syscall7' rather than
6689 `__mips16_syscall7'. Remove prototype.
6690 (__nomips16, __mips16_syscall_return): Move to...
6691 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h
6692 (__nomips16, __mips_syscall_return): ... here.
6693 [__mips16] (INTERNAL_SYSCALL_NCS): Rename
6694 `__mips16_syscall_return' to `__mips_syscall_return'.
6695 [__mips16] (INTERNAL_SYSCALL_MIPS16): Pass `number' to
6696 `internal_syscall##nr'.
6697 [!__mips16] (INTERNAL_SYSCALL): Pass `SYS_ify (name)' to
6698 `internal_syscall##nr'.
6699 (FORCE_FRAME_POINTER): Remove.
6700 (__mips_syscall5): New prototype.
6701 (internal_syscall5): Rewrite to call `__mips_syscall5'.
6702 (__mips_syscall6): New prototype.
6703 (internal_syscall6): Rewrite to call `__mips_syscall6'.
6704 (__mips_syscall7): New prototype.
6705 (internal_syscall7): Rewrite to call `__mips_syscall7'.
6706 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall5.S: New file.
6707 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall6.S: New file.
6708 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall7.S: New file.
6709 * sysdeps/unix/sysv/linux/mips/mips32/Makefile [subdir = misc]
6710 (sysdep_routines): Add libc-do-syscall.
6711 * sysdeps/unix/sysv/linux/mips/mips32/Versions (libc): Add
6712 `__mips_syscall5', `__mips_syscall6' and `__mips_syscall7'.
6713
6714 2017-08-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6715
6716 [BZ #21672]
6717 * nptl/allocatestack.c [_STACK_GROWS_DOWN] (setup_stack_prot):
6718 Set to use !NEED_SEPARATE_REGISTER_STACK as well.
6719 (advise_stack_range): New function.
6720 * nptl/pthread_create.c (START_THREAD_DEFN): Move logic to mark
6721 stack non required to advise_stack_range at allocatestack.c
6722
6723 2017-08-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
6724
6725 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Use __uint64_t.
6726
6727 2017-08-29 Florian Weimer <fweimer@redhat.com>
6728
6729 [BZ #22026]
6730 * iconv/gconv_db.c (gen_steps): Decrement step_cnt after resetting
6731 __end_fct. Mangle __end_fct after setting it to NULL.
6732 * iconv/Makefile (tests): Add tst-gconv-init-failure.
6733 (modules-names, modules-names-tests): Add
6734 tst-gconv-init-failure-mod.
6735 (gconv-modules): New target.
6736 (tst-gconv-init-failure-mod.so): Link against libsupport.
6737 (tst-gconv-init-failure): Depend on gconv-modules,
6738 tst-gconv-init-failure-mod.so.
6739 * iconv/tst-gconv-init-failure-mod.c: New file.
6740 * iconv/tst-gconv-init-failure.c: Likewise.
6741 * iconv/test-gconv-modules: Likewise.
6742
6743 2017-08-29 Florian Weimer <fweimer@redhat.com>
6744
6745 [BZ #22025]
6746 * iconv/gconv_db.c (free_derivation): Remove redundant
6747 parentheses.
6748 (gen_steps): Unconditionally mangle __btowc_fct after
6749 initialization.
6750 (increment_counter): Likewise. Do not call init_fct for internal
6751 modules.
6752
6753 2017-08-29 Joseph Myers <joseph@codesourcery.com>
6754
6755 [BZ #22028]
6756 * math/math.h [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
6757 (_MSUF_): Remove macro.
6758 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (_MSUFTO_):
6759 Likewise.
6760 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
6761 (__REDIRFROM_X): New macro.
6762 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (__REDIRTO_X):
6763 Likewise.
6764 * math/bits/math-finite.h (__REDIRFROM_X): Remove macro.
6765 (__REDIRTO_X): Likewise.
6766 (__MATH_REDIRCALL): Do not pass _MSUF_ or _MSUFTO_ macro
6767 arguments.
6768 (__MATH_REDIRCALL_2): Likewise.
6769 (__MATH_REDIRCALL_INTERNAL): Likewise.
6770 (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
6771 (__REDIRFROM (gamma, , _MSUF_)): Likweise.
6772 (__REDIRFROM (__gamma, _r_finite, _MSUF_)): Likewise.
6773 (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
6774 * math/test-finite-macros.c: New file.
6775 * math/Makefile (tests): Add test-finite-macros.
6776 (CFLAGS-test-finite-macros.c): New variable.
6777
6778 2017-08-29 Patsy Franklin <pfrankli@redhat.com>
6779 Jeff Law <law@redhat.com>
6780
6781 [BZ #22025]
6782 Mangle NULL pointers in iconv/gconv.
6783 * iconv/gconv_cache.c (find_module): Demangle init_fct before
6784 checking for NULL. Mangle __btowc_fct if init_fct is non-NULL.
6785 * iconv/gconv_db.c (free_derivation): Check that __shlib_handle
6786 is non-NULL before demangling the end_fct. Check for NULL
6787 end_fct after demangling.
6788 (__gconv_release_step): Demangle the end_fct before checking
6789 it for NULL. Remove assert on __shlibc_handle != NULL.
6790 (gen_steps): Don't check btowc_fct for NULL before mangling.
6791 Demangle init_fct before checking for NULL.
6792 (increment_counter): Likewise.
6793 * gconv_dl.c (__gconv_find_shlib): Don't check init_fct or
6794 end_fct for NULL before mangling.
6795 * wcsmbs/btowc.c (__btowc): Demangle btowc_fct before checking
6796 for NULL.
6797
6798 2017-08-29 Akhilesh Kumar <akhilesh.k@samsung.com>
6799
6800 [BZ #21971]
6801 * locale/iso-639.def: add Morisyen.
6802
6803 2017-08-28 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
6804
6805 [BZ #21930]
6806 * math/math.h [defined __cplusplus && defined __SUPPORT_SNAN__]
6807 (iszero): New C++ implementation that does not use
6808 fpclassify/__MATH_TG/__builtin_types_compatible_p, when
6809 signaling nans are enabled, since __builtin_types_compatible_p
6810 is a C-only feature.
6811 * math/test-math-iszero.cc: When __HAVE_DISTINCT_FLOAT128 is
6812 defined, include ieee754_float128.h for access to the union and
6813 member ieee854_float128.ieee.
6814 [__HAVE_DISTINCT_FLOAT128] (do_test): Call check_float128.
6815 [__HAVE_DISTINCT_FLOAT128] (check_float128): New function.
6816 * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
6817 (CXXFLAGS-test-math-iszero.cc): Add -mfloat128 to the build
6818 options of test-math-zero on powerpc64le.
6819
6820 2017-08-28 H.J. Lu <hongjiu.lu@intel.com>
6821
6822 * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
6823 Change double to float.
6824
6825 2017-08-28 Joseph Myers <joseph@codesourcery.com>
6826
6827 * math/math-svid-compat.h [!__ASSEMBLER__]: Make code
6828 unconditional.
6829 * sysdeps/ieee754/s_lib_version.c [!defined SHARED]: Remove
6830 conditional code; define contents only for [LIBM_SVID_COMPAT].
6831
6832 2017-08-28 Florian Weimer <fweimer@redhat.com>
6833
6834 * sysdeps/unix/sysv/linux/aarch64/Makefile (abi-lp64-options)
6835 (abi-lp64_be-options): Remove.
6836 * sysdeps/unix/sysv/linux/arm/Makefile (abi-soft-options)
6837 (abi-hard-options): Likewise.
6838 * sysdeps/unix/sysv/linux/mips/Makefile(abi-o32_soft-options)
6839 (abi-o32_hard-options, abi-o32_soft_2008-options)
6840 (abi-o32_hard_2008-options, abi-n32_soft-options)
6841 (abi-n32_hard-options, abi-n32_soft_2008-options)
6842 (abi-n32_hard_2008-options, abi-n64_soft-options)
6843 (abi-n64_hard-options, abi-n64_soft_2008-options)
6844 (abi-n64_hard_2008-options): Likewise.
6845 * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-32-options)
6846 (abi-64-v1-options, abi-64-v2-options): Likewise.
6847 * sysdeps/unix/sysv/linux/s390/Makefile (abi-32-options)
6848 (abi-64-options): Likewise.
6849 * sysdeps/unix/sysv/linux/sparc/Makefile (abi-32-options)
6850 (abi-64-options): Likewise.
6851 * sysdeps/unix/sysv/linux/tile/tilegx/Makefile (abi-32-options)
6852 (abi-64-options): Likewise.
6853 * sysdeps/unix/sysv/linux/x86/Makefile (abi-32-options)
6854 (abi-64-options, abi-x32-options): Likewise.
6855
6856 2017-08-28 Florian Weimer <fweimer@redhat.com>
6857
6858 Store supported list of SYS_* system calls in the source tree.
6859 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
6860 (bits/syscall.h): Generate from list file.
6861 [$(subdir) = misc] (before-compile): Add bits/syscall.h.
6862 [$(subdir) = misc] (tests): Add tst-syscall-list.
6863 [$(subdir) = misc] (tests-special): Add tst-syscall-list.out
6864 [$(subdir) = misc] (tst-syscall-list-macros.list)
6865 [$(subdir) = misc] (tst-syscall-list-nr.list)
6866 (tst-syscall-list-sys.list): Helper targets for new
6867 tst-syscall-list test.
6868 [$(subdir) = misc] (tst-syscall-list.out): Run test script
6869 tst-syscall-list.sh.
6870 [$(subdir) = misc] (bits/syscall%h, bits/syscall%d): Remove
6871 target. Do not include bits/syscall.d.
6872 [$(subdir) = misc] (generated): Do not update.
6873 * sysdeps/unix/sysv/linux/syscall-names.list: New file.
6874 * sysdeps/unix/sysv/linux/gen-syscall-h.awk: Likewise.
6875 * sysdeps/unix/sysv/linux/filter-nr-syscalls.awk: Likewise.
6876 * sysdeps/unix/sysv/linux/tst-syscall-list.sh: Likewise.
6877
6878 2017-08-27 Paul Pluzhnikov <ppluzhnikov@google.com>
6879
6880 * stdlib/Makefile (tst-atexit, tst-at_quick_exit): New tests.
6881 (tst-cxa_atexit, tst-on_exit): Likewise.
6882 * stdlib/Makefile (tests): Add tst-atexit, tst-at_quick_exit,
6883 tst-cxa_atexit, and tst-on_exit.
6884 * stdlib/tst-atexit-common.c: New file.
6885 * stdlib/tst-atexit.c: New file.
6886 * stdlib/tst-at_quick_exit.c: New file.
6887 * stdlib/tst-cxa_atexit.c: New file.
6888 * stdlib/tst-on_exit.c: New file.
6889
6890 2017-08-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
6891
6892 * sysdeps/mach/hurd/bits/sysmacros.h: New file.
6893 * mach/stack_chk_fail_local.c: New file.
6894 * hurd/stack_chk_fail_local.c: New file.
6895 * mach/Machrules ($(interface-library)-routines): Add
6896 stack_chk_fail_local.
6897 * mach/Makefile (CFLAGS-mach_init.o, CFLAGS-RPC_vm_statistics.o,
6898 CFLAGS-RPC_vm_map.o, CFLAGS-RPC_vm_protect.o,
6899 CFLAGS-RPC_i386_set_gdt.o, CFLAGS-RPC_i386_set_ldt.o,
6900 CFLAGS-RPC_task_get_special_port.o): Add $(no-stack-protector).
6901 * hurd/Makefile (CFLAGS-hurdstartup.o,
6902 CFLAGS-RPC_exec_startup_get_info.o): Add $(no-stack-protector).
6903
6904 2017-08-25 H.J. Lu <hongjiu.lu@intel.com>
6905
6906 * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
6907 (index_cpu_*, index_arch_*): Removed.
6908
6909 2017-08-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
6910
6911 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h (elf_greg_t):
6912 Use uint64_t instead of unsigned long.
6913
6914 2017-08-25 Joseph Myers <joseph@codesourcery.com>
6915
6916 * math/tgmath.h [__HAVE_FLOAT128]: Change conditional to
6917 [__HAVE_DISTINCT_FLOAT128].
6918
6919 * math/math.h (_MSUFTO_): Define and undefine for each inclusion
6920 of <bits/math-finite.h>.
6921 (__MATH_DECLARING_LDOUBLE): Do not define and undefine for each
6922 inclusion of <bits/math-finite.h>.
6923 * math/bits/math-finite.h (__REDIRTO_X): Do not define
6924 conditionally on [__MATH_DECLARING_LDOUBLE && defined
6925 __NO_LONG_DOUBLE_MATH].
6926 (__MATH_REDIRCALL): Use _MSUFTO_ in __REDIRTO call.
6927 (__MATH_REDIRCALL_2): Likewise.
6928 (__MATH_REDIRCALL_INTERNAL): Likewise.
6929 (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
6930 (__REDIRFROM (gamma, , _MSUF_)): Likewise.
6931 (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
6932
6933 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-power5.S:
6934 Remove file.
6935 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-ppc32.S:
6936 Likewise.
6937 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat.c:
6938 Likewise.
6939 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-power5.S:
6940 Likewise.
6941 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-ppc32.S:
6942 Likewise.
6943 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat.c:
6944 Likewise.
6945 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
6946 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
6947 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
6948 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
6949 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
6950 (libm-sysdep-routines): Remove w_sqrt_compat-power5,
6951 w_sqrt_compat-ppc32, w_sqrtf_compat-power5 and
6952 w_sqrtf_compat-ppc32.
6953
6954 2017-08-24 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
6955
6956 * math/math.h [defined __cplusplus] (issignaling): In the long
6957 double case, call __issignalingl only if __NO_LONG_DOUBLE_MATH
6958 is not defined. Call __issignaling, otherwise.
6959
6960 2017-08-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6961
6962 * sysdeps/unix/make-syscalls.sh: Remove cancellable tagging for
6963 syscall definitions and replace __builtin_expect with __glibc_likely.
6964 * sysdeps/unix/syscall-template.S: Update comment about cancellable
6965 syscall.
6966 (SYSCALL_CANCELLABLE): Removedefinition
6967 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (PSEUDO): Remove
6968 definition.
6969 (PSEUDO_END): Likewise.
6970 [IS_IN (libpthread)] (CENABLE): Likewise.
6971 [IS_IN (libpthread)] (CDISABLE): Likewise.
6972 [IS_IN (libc)] (CENABLE): Likewise.
6973 [IS_IN (libc)] (CENABLE): Likewise.
6974 [IS_IN (librt)] (CDISABLE): Likewise.
6975 [IS_IN (librt)] (CDISABLE): Likewise.
6976 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
6977 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (PSEUDO): Remove
6978 definition.
6979 (PSEUDO_END): Likewise.
6980 [IS_IN (libpthread)] (__local_enable_asynccancel): Likewise.
6981 [IS_IN (libpthread)] (__local_disable_asynccancel): Likewise.
6982 [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
6983 [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
6984 [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
6985 [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
6986 (CENABLE): Likewise.
6987 (CDISABLE): Likewise.
6988 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
6989 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (PSEUDO): Remove
6990 defintion.
6991 (PSEUDO_END): Likewise.
6992 [IS_IN (libpthread)] (CENABLE): Likewise.
6993 [IS_IN (libpthread)] (CDISABLE): Likewise.
6994 [IS_IN (libc)] (CENABLE): Likewise.
6995 [IS_IN (libc)] (CENABLE): Likewise.
6996 [IS_IN (librt)] (CDISABLE): Likewise.
6997 [IS_IN (librt)] (CDISABLE): Likewise.
6998 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
6999 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (PSEUDO): Remove
7000 definition.
7001 (PSEUDO_END): Likewise.
7002 [IS_IN (libpthread)] (CENABLE): Likewise.
7003 [IS_IN (libpthread)] (CDISABLE): Likewise.
7004 [IS_IN (libc)] (CENABLE): Likewise.
7005 [IS_IN (libc)] (CENABLE): Likewise.
7006 [IS_IN (librt)] (CDISABLE): Likewise.
7007 [IS_IN (librt)] (CDISABLE): Likewise.
7008 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
7009 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (PSEUDO): Remove
7010 definition.
7011 (PSEUDO_END): Likewise.
7012 [IS_IN (libpthread)] (CENABLE): Likewise.
7013 [IS_IN (libpthread)] (CDISABLE): Likewise.
7014 [IS_IN (libc)] (CENABLE): Likewise.
7015 [IS_IN (libc)] (CENABLE): Likewise.
7016 [IS_IN (librt)] (CDISABLE): Likewise.
7017 [IS_IN (librt)] (CDISABLE): Likewise.
7018 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
7019 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (PSEUDO): Remove
7020 definition.
7021 (PSEUDO_END): Likewise.
7022 [IS_IN (libpthread)] (CENABLE): Likewise.
7023 [IS_IN (libpthread)] (CDISABLE): Likewise.
7024 [IS_IN (libc)] (CENABLE): Likewise.
7025 [IS_IN (libc)] (CENABLE): Likewise.
7026 [IS_IN (librt)] (CDISABLE): Likewise.
7027 [IS_IN (librt)] (CDISABLE): Likewise.
7028 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
7029 * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (PSEUDO): Remove
7030 definition.
7031 (PSEUDO_END): Likewise.
7032 [IS_IN (libpthread)] (CENABLE): Likewise.
7033 [IS_IN (libpthread)] (CDISABLE): Likewise.
7034 [IS_IN (libc)] (CENABLE): Likewise.
7035 [IS_IN (libc)] (CENABLE): Likewise.
7036 [IS_IN (librt)] (CDISABLE): Likewise.
7037 [IS_IN (librt)] (CDISABLE): Likewise.
7038 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
7039 * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h (PSEUDO): Remove
7040 definition.
7041 (PSEUDO_END): Likewise.
7042 [IS_IN (libpthread)] (CENABLE): Likewise.
7043 [IS_IN (libpthread)] (CDISABLE): Likewise.
7044 [IS_IN (libc)] (CENABLE): Likewise.
7045 [IS_IN (libc)] (CENABLE): Likewise.
7046 [IS_IN (librt)] (CDISABLE): Likewise.
7047 [IS_IN (librt)] (CDISABLE): Likewise.
7048 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
7049 * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h (PSEUDO):
7050 Remove definition.
7051 (PSEUDO_END): Likewise.
7052 [IS_IN (libpthread)] (CENABLE): Likewise.
7053 [IS_IN (libpthread)] (CDISABLE): Likewise.
7054 [IS_IN (libc)] (CENABLE): Likewise.
7055 [IS_IN (libc)] (CENABLE): Likewise.
7056 [IS_IN (librt)] (CDISABLE): Likewise.
7057 [IS_IN (librt)] (CDISABLE): Likewise.
7058 (SINGLE_THREAD_P): Likewise.
7059 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (PSEUDO): Remove
7060 definition.
7061 (PSEUDO_END): Likewise.
7062 [IS_IN (libpthread)] (CENABLE): Likewise.
7063 [IS_IN (libpthread)] (CDISABLE): Likewise.
7064 [IS_IN (libc)] (CENABLE): Likewise.
7065 [IS_IN (libc)] (CENABLE): Likewise.
7066 [IS_IN (librt)] (CDISABLE): Likewise.
7067 [IS_IN (librt)] (CDISABLE): Likewise.
7068 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
7069 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (PSEUDO): Remove
7070 definition.
7071 (PSEUDO_END): Likewise.
7072 [IS_IN (libpthread)] (CENABLE): Likewise.
7073 [IS_IN (libpthread)] (CDISABLE): Likewise.
7074 [IS_IN (libc)] (CENABLE): Likewise.
7075 [IS_IN (libc)] (CENABLE): Likewise.
7076 [IS_IN (librt)] (CDISABLE): Likewise.
7077 [IS_IN (librt)] (CDISABLE): Likewise.
7078 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
7079 * sysdeps/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Remove file.
7080 * sysdeps/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
7081 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: New file.
7082 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h (PSEUDO): Remove
7083 definition.
7084 (PSEUDO_END): Likewise.
7085 [IS_IN (libpthread)] (CENABLE): Likewise.
7086 [IS_IN (libpthread)] (CDISABLE): Likewise.
7087 [IS_IN (libc)] (CENABLE): Likewise.
7088 [IS_IN (libc)] (CENABLE): Likewise.
7089 [IS_IN (librt)] (CDISABLE): Likewise.
7090 [IS_IN (librt)] (CDISABLE): Likewise.
7091 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
7092 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h (PSEUDO): Remove
7093 definition.
7094 (PSEUDO_END): Likewise.
7095 [IS_IN (libpthread)] (CENABLE): Likewise.
7096 [IS_IN (libpthread)] (CDISABLE): Likewise.
7097 [IS_IN (libc)] (CENABLE): Likewise.
7098 [IS_IN (libc)] (CENABLE): Likewise.
7099 [IS_IN (librt)] (CDISABLE): Likewise.
7100 [IS_IN (librt)] (CDISABLE): Likewise.
7101 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
7102 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (PSEUDO): Remove
7103 definition.
7104 (PSEUDO_END): Likewise.
7105 [IS_IN (libpthread)] (CENABLE): Likewise.
7106 [IS_IN (libpthread)] (CDISABLE): Likewise.
7107 [IS_IN (libc)] (CENABLE): Likewise.
7108 [IS_IN (libc)] (CENABLE): Likewise.
7109 [IS_IN (librt)] (CDISABLE): Likewise.
7110 [IS_IN (librt)] (CDISABLE): Likewise.
7111 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
7112 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Remove file.
7113 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
7114 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: New file.
7115 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (PSEUDO): Remove
7116 definition.
7117 (PSEUDO_END): Likewise.
7118 [IS_IN (libpthread)] (CENABLE): Likewise.
7119 [IS_IN (libpthread)] (CDISABLE): Likewise.
7120 [IS_IN (libc)] (CENABLE): Likewise.
7121 [IS_IN (libc)] (CENABLE): Likewise.
7122 [IS_IN (librt)] (CDISABLE): Likewise.
7123 [IS_IN (librt)] (CDISABLE): Likewise.
7124 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
7125 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (PSEUDO): Remove
7126 definition.
7127 (PSEUDO_END): Likewise.
7128 [IS_IN (libpthread)] (CENABLE): Likewise.
7129 [IS_IN (libpthread)] (CDISABLE): Likewise.
7130 [IS_IN (libc)] (CENABLE): Likewise.
7131 [IS_IN (libc)] (CENABLE): Likewise.
7132 [IS_IN (librt)] (CDISABLE): Likewise.
7133 [IS_IN (librt)] (CDISABLE): Likewise.
7134 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
7135
7136 2017-08-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
7137
7138 * sysdeps/ieee754/dbl-64/Makefile: Don't override CFLAGS.
7139
7140 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
7141
7142 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
7143
7144 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
7145
7146 [BZ #21982]
7147 * string/stratcliff.c (do_test): Declare size, nchars, inner,
7148 middle and outer with size_t instead of int. Repleace %d and
7149 %Zd with %zu in printf. Update "MAX (0, nchars - 128)" and
7150 "MAX (outer, nchars - 64)" to support unsigned outer and
7151 nchars. Also exit loop when outer == 0.
7152
7153 2017-08-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7154
7155 * include/fcntl.h (__fcntl_nocancel): Remove definition.
7156 * include/signal.h (__sigsuspend_nocancel): Likewise.
7157 * include/time.h (__nanosleep_nocancel): Likewise.
7158 * sysdeps/generic/not-cancel.h (__fcntl_nocancel): New macro.
7159 * login/utmp_file.c: Include non cancellable syscall header.
7160 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): New
7161 prototype.
7162
7163 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
7164
7165 * sysdeps/x86_64/fpu/svml_d_sincos8_core.S: Replace AVX512F
7166 .byte sequences with AVX512F instructions.
7167 * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Likewise.
7168 * sysdeps/x86_64/fpu/svml_s_sincosf16_core.S: Likewise.
7169 * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Likewise.
7170 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S:
7171 Likewise.
7172 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
7173 Likewise.
7174
7175 2017-08-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
7176 Steve Ellcey <sellcey@cavium.com>
7177
7178 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic):
7179 Use PTR_REG macro in cmp instruction.
7180
7181 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
7182
7183 * include/libc-symbols.h: [!defined HAVE_GCC_IFUNC] (__ifunc):
7184 Change the return type of the ifunc resolver to match the return
7185 type of the target function.
7186
7187 2017-08-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7188
7189 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (pread64): Remove.
7190 (preadv64): Likewise.
7191 (pwrite64(: Likewise.
7192 (pwritev64): Likewise.
7193
7194 * sysdeps/unix/sysv/linux/x86_64/sysdep.h
7195 (INTERNAL_SYSCALL_NCS_TYPES): Remove define.
7196 (LOAD_ARGS_0): Likewise.
7197 (LOAD_ARGS_1): Likewise.
7198 (LOAD_ARGS_2): Likewise.
7199 (LOAD_ARGS_3): Likewise.
7200 (LOAD_ARGS_4): Likewise.
7201 (LOAD_ARGS_5): Likewise.
7202 (LOAD_ARGS_6): Likewise.
7203 (LOAD_REGS_0): Likewise.
7204 (LOAD_REGS_1): Likewise.
7205 (LOAD_REGS_2): Likewise.
7206 (LOAD_REGS_3): Likewise.
7207 (LOAD_REGS_4): Likewise.
7208 (LOAD_REGS_5): Likewise.
7209 (LOAD_REGS_6): Likewise.
7210 (ASM_ARGS_0): Likewise.
7211 (ASM_ARGS_1): Likewise.
7212 (ASM_ARGS_2): Likewise.
7213 (ASM_ARGS_3): Likewise.
7214 (ASM_ARGS_4): Likewise.
7215 (ASM_ARGS_5): Likewise.
7216 (ASM_ARGS_6): Likewise.
7217 (LOAD_ARGS_TYPES_1): Likewise.
7218 (LOAD_ARGS_TYPES_2): Likewise.
7219 (LOAD_ARGS_TYPES_3): Likewise.
7220 (LOAD_ARGS_TYPES_4): Likewise.
7221 (LOAD_ARGS_TYPES_5): Likewise.
7222 (LOAD_ARGS_TYPES_6): Likewise.
7223 (LOAD_REGS_TYPES_1): Likewise.
7224 (LOAD_REGS_TYPES_2): Likewise.
7225 (LOAD_REGS_TYPES_3): Likewise.
7226 (LOAD_REGS_TYPES_4): Likewise.
7227 (LOAD_REGS_TYPES_5): Likewise.
7228 (LOAD_REGS_TYPES_6): Likewise.
7229 (TYPEFY): New define.
7230 (ARGIFY): Likewise.
7231 (internal_syscall0): Likewise.
7232 (internal_syscall1): Likewise.
7233 (internal_syscall2): Likewise.
7234 (internal_syscall3): Likewise.
7235 (internal_syscall4): Likewise.
7236 (internal_syscall5): Likewise.
7237 (internal_syscall6): Likewise.
7238 * sysdeps/unix/sysv/linux/x86_64/x32/times.c
7239 (INTERNAL_SYSCALL_NCS): Remove define.
7240 (internal_syscall1): Add define.
7241
7242 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
7243
7244 * math/w_remainder_compat.c: Remove duplicate inclusion of
7245 math-svid-compat.h.
7246 * math/w_remainderf_compat.c: Likewise.
7247 * math/w_remainderl_compat.c: Likewise.
7248
7249 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
7250
7251 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
7252
7253 2017-08-22 Joseph Myers <joseph@codesourcery.com>
7254
7255 [BZ #21684]
7256 * math/tgmath.h (__floating_type): Simplify definitions.
7257 (__real_integer_type): New macro.
7258 (__complex_integer_type): Likewise.
7259 (__expr_is_real): Likewise.
7260 (__tgmath_real_type_sub): Update comment to describe handling of
7261 complex types.
7262 (__tgmath_complex_type_sub): New macro.
7263 (__tgmath_complex_type): Likewise.
7264 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
7265 (__TGMATH_CF128): Use __expr_is_real.
7266 (__TGMATH_UNARY_REAL_IMAG): Use __tgmath_complex_type and
7267 __expr_is_real.
7268 (__TGMATH_BINARY_REAL_IMAG): Likewise.
7269 (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Use __expr_is_real.
7270 * math/gen-tgmath-tests.py (Type.create_type): Create complex
7271 integer types.
7272
7273 2017-08-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7274
7275 * sysdeps/generic/not-cancel.h (sigsuspend_not_cancel): Remove
7276 macro.
7277 * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Remove
7278 alias.
7279 * sysdeps/unix/sysv/linux/not-cancel.h (sigsuspend_not_cancel):
7280 Likewise.
7281
7282 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Replace
7283 nanosleep_not_cancel with __nanosleep_nocancel.
7284 * sysdeps/generic/not-cancel.h (nanosleep_not_cancel): Remove macro.
7285 (__nanosleep_nocancel): New macro.
7286 * sysdeps/unix/sysv/linux/nanosleep.c (__nanosleep_nocancel): New
7287 function.
7288 * sysdeps/unix/sysv/linux/not-cancel.h (nanosleep_not_cancel): Remove
7289 macro.
7290 (__nanosleep_nocancel): New prototype.
7291
7292 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full): Replace
7293 pause_not_cancel with __pause_nocancel.
7294 * sysdeps/generic/not-cancel.h (pause_not_cancel): Remove macro.
7295 (__pause_nocancel): New macro.
7296 * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): Remove
7297 macro.
7298 (__pause_nocancel): New prototype.
7299 * sysdeps/unix/sysv/linux/pause.c (__pause_nocancel): New function.
7300
7301 2017-08-22 Martin Sebor <msebor@redhat.com>
7302
7303 * include/libc-symbols.h (__ifunc_resolver): Declare resolver
7304 to return a pointer to the same type as the target function.
7305
7306 2017-08-22 H.J. Lu <hongjiu.lu@intel.com>
7307
7308 [BZ #18822]
7309 [BZ #21986]
7310 * include/printf.h (__printf_fphex): Add attribute_hidden.
7311 (__guess_grouping): New prototype.
7312 * stdio-common/printf_fp.c (__guess_grouping): Removed.
7313 * stdio-common/reg-printf.c (__register_printf_specifier): Add
7314 libc_hidden_proto and libc_hidden_def.
7315 * stdlib/strfmon_l.c (__guess_grouping): Removed.
7316 (__vstrfmon_l): Remove the third argument passed to
7317 __guess_grouping.
7318
7319 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
7320
7321 * math/math.h [defined __cplusplus] (issignaling): Provide a C++
7322 definition for issignaling that does not rely on __MATH_TG,
7323 since __MATH_TG uses __builtin_types_compatible_p, which is only
7324 available in C mode.
7325 (CFLAGS-test-math-issignaling.cc): New variable.
7326 * math/Makefile [CXX] (tests): Add test-math-issignaling.
7327 * math/test-math-issignaling.cc: New test for C++ implementation
7328 of type-generic issignaling.
7329 * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
7330 (CXXFLAGS-test-math-issignaling.cc): Add -mfloat128 to the build
7331 options of test-math-issignaling on powerpc64le.
7332
7333 2017-08-22 H.J. Lu <hongjiu.lu@intel.com>
7334
7335 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
7336 building libc.a.
7337 (hidden_proto): Likewise.
7338 (hidden_tls_proto): Likewise.
7339 (__hidden_proto): Likewise.
7340
7341 2017-08-22 Florian Weimer <fweimer@redhat.com>
7342
7343 math: Statically link tests of internal functionality.
7344 * math/Makefile (tests): Remove atest-exp, atest-sincos,
7345 atest-exp2.
7346 (tests-static): Add atest-exp, atest-sincos, atest-exp2.
7347 (gmp-objs): Remove assignment.
7348 (atest-exp, atest-sincos, atest-exp2): Remove targets.
7349
7350 2017-08-22 Joseph Myers <joseph@codesourcery.com>
7351
7352 [BZ #21987]
7353 * sysdeps/unix/sysv/linux/sparc/bits/long-double.h: Remove file
7354 and copy to ...
7355 * sysdeps/unix/sysv/linux/sparc/sparc32/bits/long-double.h:
7356 ... here.
7357 * sysdeps/unix/sysv/linux/sparc/sparc64/bits/long-double.h:
7358 ... and here.
7359
7360 * assert/Makefile [$(have-cxx-thread_local)]: Move conditional
7361 variable definitions above inclusion of ../Rules.
7362
7363 2017-08-21 Joseph Myers <joseph@codesourcery.com>
7364
7365 * sysdeps/ieee754/k_standard.c (__kernel_standard): Add default
7366 case calling __builtin_unreachable.
7367
7368 2017-08-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7369
7370 * libio/ioopen.c (_IO_waitpid): Replace waitpid_not_cancel with
7371 __waitpid_nocancel.
7372 * sysdeps/generic/not-cancel.h (waitpid_not_cancel): Remove macro.
7373 (__waitpid_nocancel): New macro.
7374 * sysdeps/unix/sysv/linux/not-cancel.h (waitpid_not_cancel): Remove
7375 macro.
7376 (__waitpid_nocancel): Replace macro with a function.
7377 * sysdeps/unix/sysv/linux/waitpid.c (__waitpid_nocancel): New
7378 function.
7379
7380 * login/utmp_file.c (timeout_handler): Replace fcntl_not_cancel with
7381 __fcntl_nocancel.
7382 * sysdeps/generic/not-cancel.h (fcntl_not_cancel): Remove macro.
7383 * sysdeps/unix/sysv/linux/not-cancel.h (fcntl_not_cancel): Likewise.
7384
7385 * gmon/gmon.c (write_hist): Replace writev_not_cancel_no_status with
7386 __writev_nocancel_nostatus.
7387 (write_call_graph): Likewise.
7388 (write_bb_counts): Likewise.
7389 * resolv/herror.c (herror): Likewise.
7390 * sysdeps/generic/not-cancel.h (writev_not_cancel_no_status): Remove
7391 macro.
7392 (__writev_nocancel_nostatus): New macro.
7393 * sysdeps/unix/sysv/linux/not-cancel.h (writev_not_cancel_no_status):
7394 Remove macro.
7395 (__writev_nocancel_nostatus): New function.
7396
7397 2017-08-21 Joseph Myers <joseph@codesourcery.com>
7398
7399 Revert:
7400 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
7401
7402 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
7403 building libc.a.
7404 (hidden_proto): Likewise.
7405 (hidden_tls_proto): Likewise.
7406 (__hidden_proto): Likewise.
7407
7408 [BZ #21973]
7409 * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Remove file.
7410 * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
7411 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
7412 Likewise.
7413 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat.S:
7414 Likewise.
7415 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
7416 Likewise.
7417 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat.S:
7418 Likewise.
7419 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S : Likewise.
7420 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
7421 * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
7422 * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
7423 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
7424 GLIBC_2.0 sqrtl symbol.
7425
7426 * math/math.h [__USE_MISC] (_LIB_VERSION_TYPE): Remove.
7427 [__USE_MISC] (_LIB_VERSION): Likewise.
7428 [__USE_MISC] (struct exception): Likewise.
7429 [__USE_MISC] (matherr): Likewise.
7430 [__USE_MISC] (DOMAIN): Likewise.
7431 [__USE_MISC] (SING): Likewise.
7432 [__USE_MISC] (OVERFLOW): Likewise.
7433 [__USE_MISC] (UNDERFLOW): Likewise.
7434 [__USE_MISC] (TLOSS): Likewise.
7435 [__USE_MISC] (PLOSS): Likewise.
7436 [__USE_MISC] (HUGE): Likewise.
7437 [__USE_XOPEN] (MAXFLOAT): Define even if [__USE_MISC].
7438 * math/math-svid-compat.h: New file.
7439 * conform/linknamespace.pl (@whitelist): Remove matherr, matherrf
7440 and matherrl.
7441 * include/math.h [!_ISOMAC] (__matherr): Remove.
7442 * manual/arith.texi (FP Exceptions): Do not document matherr.
7443 * math/Makefile (tests): Change test-matherr to test-matherr-3.
7444 (tests-internal): New variable.
7445 (install-lib): Do not add libieee.a.
7446 (non-lib.a): Likewise.
7447 (extra-objs): Do not add libieee.a and ieee-math.o.
7448 (CPPFLAGS-s_lib_version.c): Remove variable.
7449 ($(objpfx)libieee.a): Remove rule.
7450 ($(addprefix $(objpfx), $(tests-internal)): Depend on $(libm).
7451 * math/ieee-math.c: Remove.
7452 * math/libm-test-support.c (matherr): Remove.
7453 * math/test-matherr.c: Use <support/test-driver.c>. Add copyright
7454 and license notices. Include <math-svid-compat.h> and
7455 <shlib-compat.h>.
7456 (matherr): Undefine as macro. Use compat_symbol_reference.
7457 (_LIB_VERSION): Likewise.
7458 * math/test-matherr-2.c: New file.
7459 * math/test-matherr-3.c: Likewise.
7460 * sysdeps/generic/math_private.h (__kernel_standard): Remove
7461 declaration.
7462 (__kernel_standard_f): Likewise.
7463 (__kernel_standard_l): Likewise.
7464 * sysdeps/ieee754/s_lib_version.c: Do not include <math.h> or
7465 <math_private.h>. Include <math-svid-compat.h>.
7466 (_LIB_VERSION): Undefine as macro.
7467 (_LIB_VERSION_INTERNAL): Always initialize to _POSIX_. Define
7468 only if [LIBM_SVID_COMPAT || !defined SHARED]. If
7469 [LIBM_SVID_COMPAT], use compat_symbol.
7470 * sysdeps/ieee754/s_matherr.c: Do not include <math.h> or
7471 <math_private.h>. Include <math-svid-compat.h>.
7472 (matherr): Undefine as macro.
7473 (__matherr): Define only if [LIBM_SVID_COMPAT]. Use
7474 compat_symbol.
7475 * sysdeps/ia64/fpu/libm_error.c: Include <math-svid-compat.h>.
7476 [_LIBC && LIBM_SVID_COMPAT] (matherrf): Use
7477 compat_symbol_reference.
7478 [_LIBC && LIBM_SVID_COMPAT] (matherrl): Likewise.
7479 [_LIBC && !LIBM_SVID_COMPAT] (matherrf): Define as macro.
7480 [_LIBC && !LIBM_SVID_COMPAT] (matherrl): Likewise.
7481 * sysdeps/ia64/fpu/libm_support.h: Include <math-svid-compat.h>.
7482 (MATHERR_D): Remove declaration.
7483 [!_LIBC] (_LIB_VERSION_TYPE): Likewise
7484 [!LIBM_BUILD] (_LIB_VERSIONIMF): Likewise.
7485 [LIBM_BUILD] (pmatherrf): Likewise.
7486 [LIBM_BUILD] (pmatherr): Likewise.
7487 [LIBM_BUILD] (pmatherrl): Likewise.
7488 (DOMAIN): Likewise.
7489 (SING): Likewise.
7490 (OVERFLOW): Likewise.
7491 (UNDERFLOW): Likewise.
7492 (TLOSS): Likewise.
7493 (PLOSS): Likewise.
7494 * sysdeps/ia64/fpu/s_matherrf.c: Include <math-svid-compat.h>.
7495 (__matherrf): Define only if [LIBM_SVID_COMPAT]. Use
7496 compat_symbol.
7497 * sysdeps/ia64/fpu/s_matherrl.c: Include <math-svid-compat.h>.
7498 (__matherrl): Define only if [LIBM_SVID_COMPAT]. Use
7499 compat_symbol.
7500 * math/lgamma-compat.h: Include <math-svid-compat.h>.
7501 * math/w_acos_compat.c: Likewise.
7502 * math/w_acosf_compat.c: Likewise.
7503 * math/w_acosh_compat.c: Likewise.
7504 * math/w_acoshf_compat.c: Likewise.
7505 * math/w_acoshl_compat.c: Likewise.
7506 * math/w_acosl_compat.c: Likewise.
7507 * math/w_asin_compat.c: Likewise.
7508 * math/w_asinf_compat.c: Likewise.
7509 * math/w_asinl_compat.c: Likewise.
7510 * math/w_atan2_compat.c: Likewise.
7511 * math/w_atan2f_compat.c: Likewise.
7512 * math/w_atan2l_compat.c: Likewise.
7513 * math/w_atanh_compat.c: Likewise.
7514 * math/w_atanhf_compat.c: Likewise.
7515 * math/w_atanhl_compat.c: Likewise.
7516 * math/w_cosh_compat.c: Likewise.
7517 * math/w_coshf_compat.c: Likewise.
7518 * math/w_coshl_compat.c: Likewise.
7519 * math/w_exp10_compat.c: Likewise.
7520 * math/w_exp10f_compat.c: Likewise.
7521 * math/w_exp10l_compat.c: Likewise.
7522 * math/w_exp2_compat.c: Likewise.
7523 * math/w_exp2f_compat.c: Likewise.
7524 * math/w_exp2l_compat.c: Likewise.
7525 * math/w_fmod_compat.c: Likewise.
7526 * math/w_fmodf_compat.c: Likewise.
7527 * math/w_fmodl_compat.c: Likewise.
7528 * math/w_hypot_compat.c: Likewise.
7529 * math/w_hypotf_compat.c: Likewise.
7530 * math/w_hypotl_compat.c: Likewise.
7531 * math/w_j0_compat.c: Likewise.
7532 * math/w_j0f_compat.c: Likewise.
7533 * math/w_j0l_compat.c: Likewise.
7534 * math/w_j1_compat.c: Likewise.
7535 * math/w_j1f_compat.c: Likewise.
7536 * math/w_j1l_compat.c: Likewise.
7537 * math/w_jn_compat.c: Likewise.
7538 * math/w_jnf_compat.c: Likewise.
7539 * math/w_jnl_compat.c: Likewise.
7540 * math/w_lgamma_main.c: Likewise.
7541 * math/w_lgamma_r_compat.c: Likewise.
7542 * math/w_lgammaf_main.c: Likewise.
7543 * math/w_lgammaf_r_compat.c: Likewise.
7544 * math/w_lgammal_main.c: Likewise.
7545 * math/w_lgammal_r_compat.c: Likewise.
7546 * math/w_log10_compat.c: Likewise.
7547 * math/w_log10f_compat.c: Likewise.
7548 * math/w_log10l_compat.c: Likewise.
7549 * math/w_log2_compat.c: Likewise.
7550 * math/w_log2f_compat.c: Likewise.
7551 * math/w_log2l_compat.c: Likewise.
7552 * math/w_log_compat.c: Likewise.
7553 * math/w_logf_compat.c: Likewise.
7554 * math/w_logl_compat.c: Likewise.
7555 * math/w_pow_compat.c: Likewise.
7556 * math/w_powf_compat.c: Likewise.
7557 * math/w_powl_compat.c: Likewise.
7558 * math/w_remainder_compat.c: Likewise.
7559 * math/w_remainderf_compat.c: Likewise.
7560 * math/w_remainderl_compat.c: Likewise.
7561 * math/w_scalb_compat.c: Likewise.
7562 * math/w_scalbf_compat.c: Likewise.
7563 * math/w_scalbl_compat.c: Likewise.
7564 * math/w_sinh_compat.c: Likewise.
7565 * math/w_sinhf_compat.c: Likewise.
7566 * math/w_sinhl_compat.c: Likewise.
7567 * math/w_sqrt_compat.c: Likewise.
7568 * math/w_sqrtf_compat.c: Likewise.
7569 * math/w_sqrtl_compat.c: Likewise.
7570 * math/w_tgamma_compat.c: Likewise.
7571 * math/w_tgammaf_compat.c: Likewise.
7572 * math/w_tgammal_compat.c: Likewise.
7573 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Likewise.
7574 * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
7575 * sysdeps/ieee754/k_standard.c: Likewise.
7576 * sysdeps/ieee754/k_standardf.c: Likewise.
7577 * sysdeps/ieee754/k_standardl.c: Likewise.
7578 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
7579 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
7580 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
7581 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
7582 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
7583 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
7584 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
7585 * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Likewise.
7586 * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
7587 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
7588 Likewise.
7589 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
7590 Likewise.
7591 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S: Likewise.
7592 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
7593 * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
7594 * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
7595
7596 2017-08-21 Florian Weimer <fweimer@redhat.com>
7597
7598 [BZ #21864]
7599 Do not compile benchmark helper objects with -DMODULE_NAME=libc.
7600 * benchtests/Makefile (others-extras): Set to $(bench-extra-objs).
7601 Move before inclusion of ../Rules.
7602
7603 2017-08-21 Florian Weimer <fweimer@redhat.com>
7604
7605 [BZ #21972]
7606 * assert/assert.h (assert): Use static_cast (bool) for C++.
7607 Use the ternary operator in the warning branch for GNU C.
7608 * assert/Makefile (tests): Add tst-assert-c++, tst-assert-g++.
7609 (CFLAGS-tst-assert-c++.o): Compile in C++11 mode.
7610 (CFLAGS-tst-assert-g++.o): Compile in GnU C++11 mode.
7611 (LDLIBS-tst-assert-c++, LDLIBS-tst-assert-g++): Link with libstdc++.
7612 * assert/tst-assert-c++.cc, assert/tst-assert-g++.cc: New files.
7613
7614 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
7615
7616 [BZ #18822]
7617 * sysdeps/unix/sysv/linux/x86_64/init-first.c
7618 (__syscall_clock_gettime): Add attribute_hidden.
7619 * sysdeps/unix/sysv/linux/x86_64/makecontext.c
7620 (__start_context): Likewise.
7621
7622 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
7623
7624 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
7625 building libc.a.
7626 (hidden_proto): Likewise.
7627 (hidden_tls_proto): Likewise.
7628 (__hidden_proto): Likewise.
7629
7630 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
7631
7632 * include/libc-symbols.h (attribute_hidden): Enable hidden
7633 visibility in libc.a compiled with PIE.
7634
7635 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
7636
7637 [BZ #18822]
7638 * sysdeps/unix/sysv/linux/x86/libc-vdso.h (VDSO_SYMBOL(getcpu)):
7639 Add attribute_hidden.
7640
7641 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
7642
7643 [BZ #21864]
7644 * Makerules (all-nonlib): Add $(others-extras).
7645 * catgets/Makefile (others-extras): New.
7646 * elf/Makefile (others-extras): Likewise.
7647 * nss/Makefile (others-extras): Likewise.
7648
7649 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
7650
7651 [BZ #18822]
7652 * csu/libc-start.c (__libc_multiple_libcs): Removed.
7653 * elf/dl-open.c: Include <libc-internal.h>.
7654 (__libc_multiple_libcs): Removed.
7655 * elf/dl-sysdep.c: Include <libc-internal.h> instead of
7656 <hp-timing.h>.
7657 * include/libc-internal.h (__libc_multiple_libcs): New.
7658 * misc/sbrk.c: Include <libc-internal.h>.
7659 (__libc_multiple_libcs): Removed.
7660
7661 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
7662
7663 [BZ #18822]
7664 * grp/initgroups.c (__nss_group_database): Removed.
7665 (__nss_initgroups_database): Likewise.
7666 * nscd/gai.c (__nss_hosts_database): Likewise.
7667 * nss/XXX-lookup.c (DATABASE_NAME_SYMBOL): Likewise.
7668 * posix/tst-rfc3484-2.c (__nss_hosts_database): Likewise.
7669 * posix/tst-rfc3484-3.c (__nss_hosts_database): Likewise.
7670 * posix/tst-rfc3484.c (__nss_hosts_database): Likewise.
7671 * sysdeps/posix/getaddrinfo.c (__nss_hosts_database): Likewise.
7672 * nss/getXXent.c (INTERNAL (REENTRANT_GETNAME)): Add
7673 attribute_hidden.
7674 * nss/nsswitch.c (__nss_database_custom): Define only if
7675 USE_NSCD is defined.
7676 (__nss_configure_lookup): Use __nss_database_custom only if
7677 USE_NSCD is defined.
7678 * nss/nsswitch.h (__nss_database_custom): Declare only if
7679 USE_NSCD is defined. Add attribute_hidden.
7680 (__nss_setent): Add attribute_hidden.
7681 (__nss_endent): Likewise.
7682 (__nss_getent_r): Likewise.
7683 (__nss_getent): Likewise.
7684 (DEFINE_DATABASE): Declare __nss_##arg##_database.
7685
7686 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
7687
7688 [BZ #18822]
7689 * sysdeps/unix/sysv/linux/i386/glob64.c (__old_glob64): Add
7690 libc_hidden_proto and libc_hidden_def.
7691
7692 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
7693
7694 [BZ #18822]
7695 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_readdir64):
7696 Add libc_hidden_proto.
7697 * sysdeps/unix/sysv/linux/i386/readdir64.c (__old_readdir64):
7698 Add libc_hidden_def.
7699
7700 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
7701
7702 [BZ #21974]
7703 * gmon/Makefile (routines): Remove bb_init_func and
7704 bb_exit_func.
7705 (elide-routines.os): Removed.
7706 * gmon/bb_exit_func.c: Likewise.
7707 * gmon/bb_init_func.c: Likewise.
7708 * include/sys/gmon.h (__bb): Likewise.
7709 (__bb_init_func): Likewise.
7710 (__bb_exit_func): Likewise.
7711 * sysdeps/alpha/bb_init_func.S: Likewise.
7712
7713 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
7714
7715 * debug/longjmp_chk.c (____longjmp_chk): Moved to ...
7716 * include/setjmp.h (____longjmp_chk): Here. Add
7717 attribute_hidden.
7718
7719 2017-08-19 H.J. Lu <hongjiu.lu@intel.com>
7720
7721 [BZ #18822]
7722 * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE2): Add
7723 attribute_hidden.
7724 (__strspn_sse2): Likewise.
7725
7726 2017-08-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7727
7728 * sysdeps/generic/not-cancel.h (close_not_cancel): Remove macro.
7729 (close_not_cancel_no_status): Likewise.
7730 (__close_nocancel): New macro.
7731 (__close_nocancel_nostatus): Likewise.
7732 * sysdeps/unix/sysv/linux/not-cancel.h (__close_nocancel): Remove
7733 macro.
7734 (close_not_cancel): Likewise.
7735 (close_not_cancel_no_status): Likewise.
7736 (__close_nocancel): New prototype.
7737 (__close_nocancel_nostatus): New function.
7738 * sysdeps/unix/sysv/linux/close.c (__close_nocancel): New function.
7739 * catgets/open_catalog.c (__open_catalog): Replace
7740 close_not_cancel{_no_status) with __close_nocancel{_nostatus}.
7741 * gmon/gmon.c (write_gmon): Likewise.
7742 * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
7743 * intl/loadmsgcat.c (close): Likewise.
7744 * io/ftw.c (open_dir_stream): Likewise.
7745 (ftw_startup): Likewise.
7746 * libio/fileops.c (_IO_file_open): Likewise.
7747 (_IO_file_close_mmap): Likewise.
7748 (_IO_file_close): Likewise.
7749 * libio/iopopen.c (_IO_dup2): Likewise.
7750 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
7751 * locale/loadlocale.c (_nl_load_locale): Likewise.
7752 * login/utmp_file.c (pututline_file): Likewise.
7753 (endutent_file): Likewise.
7754 * misc/daemon.c (daemon): Likewise.
7755 * nscd/nscd_getai.c (__nscd_getai): Likewise.
7756 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
7757 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
7758 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
7759 * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
7760 * nscd/nscd_helper.c (open_socket): Likewise.
7761 (__nscd_open_socket): Likewise.
7762 * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
7763 * nscd/nscd_netgroup.c (__nscd_setnetgrent): Likewise.
7764 (__nscd_innetgr): Likewise.
7765 * nss/nss_db/db-open.c (internal_setent): Likewise.
7766 * resolv/res-close.c (__res_iclose): Likewise.
7767 * sunrpc/pm_getmaps.c (pmap_getmaps): Likewise.
7768 * sysdeps/posix/closedir.c (__closedir): Likewise.
7769 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Likewise.
7770 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
7771 * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
7772 (opendir_tail): Likewise.
7773 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
7774 * sysdeps/unix/sysv/linux/check_native.c (__check_native): Likewise.
7775 * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Likewise.
7776 * sysdeps/unix/sysv/linux/fips-private.h (fips_enabled_p): Likewise.
7777 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
7778 (gethostid): Likewise.
7779 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
7780 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
7781 Likewise.
7782 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
7783 * sysdeps/unix/sysv/linux/grantpt.c (close_all_fds): Likewise.
7784 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
7785 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
7786 Likewise.
7787 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex): Likewise.
7788 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps): Likewise.
7789 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
7790 Likewise.
7791 * sysdeps/unix/sysv/linux/mq_notify.c (init_mq_netlink): Likewise.
7792 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
7793 Likewise.
7794 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
7795 Likewise.
7796 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
7797 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
7798 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
7799 __close_nocancel.
7800
7801 * sysdeps/generic/not-cancel.h (openat_not_cancel): Remove macro.
7802 (openat_not_cancel_3): Likewise.
7803 (openat64_not_cancel_3): Likewise).
7804 (openat_not_cancel_3): Likewise).
7805 * sysdeps/unix/sysv/linux/not-cancel.h (openat_not_cancel): Remove
7806 macro.
7807 (openat_not_cancel_3): Likewise.
7808 (openat64_not_cancel): Likewise.
7809 (openat64_not_cancel_3): Likewise.
7810 * sysdeps/unix/sysv/linux/openat.c (__openat_nocancel): New function.
7811 * sysdeps/unix/sysv/linux/openat64.c (__openat64_nocancel): Likewise.
7812 * io/ftw.c (open_dir_stream): Replace openat{64}_not_cancel{_3} with
7813 __open{64}_nocancel.
7814 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
7815 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
7816 * sysdeps/posix/opendir.c (__opendirat): Likewise.
7817
7818 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
7819
7820 [BZ #18822]
7821 * include/argz.h (__argz_create_sep): New function prototype.
7822 (__argz_append): Likewise.
7823 (__argz_add): Likewise.
7824 (__argz_add_sep): Likewise.
7825 (__argz_delete): Likewise.
7826 (__argz_insert): Likewise.
7827 (__argz_replace): Likewise.
7828 * string/argz.h (__argz_create_sep): Removed.
7829 (__argz_append): Likewise.
7830 (__argz_add): Likewise.
7831 (__argz_add_sep): Likewise.
7832 (__argz_delete): Likewise.
7833 (__argz_insert): Likewise.
7834 (__argz_replace): Likewise.
7835
7836 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
7837
7838 * elf/elf.h (NT_GNU_PROPERTY_TYPE_0): New.
7839 (NOTE_GNU_PROPERTY_SECTION_NAME): Likewise.
7840 (GNU_PROPERTY_STACK_SIZE): Likewie.
7841 (GNU_PROPERTY_NO_COPY_ON_PROTECTED): Likewie.
7842 (GNU_PROPERTY_LOPROC): Likewise.
7843 (GNU_PROPERTY_HIPROC): Likewise.
7844 (GNU_PROPERTY_LOUSER): Likewise.
7845 (GNU_PROPERTY_HIUSER): Likewise.
7846 (GNU_PROPERTY_X86_ISA_1_USED): Likwise.
7847 (GNU_PROPERTY_X86_ISA_1_NEEDED): Likwise.
7848 (GNU_PROPERTY_X86_FEATURE_1_AND): Likwise.
7849 (GNU_PROPERTY_X86_ISA_1_486): Likwise.
7850 (GNU_PROPERTY_X86_ISA_1_586): Likwise.
7851 (GNU_PROPERTY_X86_ISA_1_686): Likwise.
7852 (GNU_PROPERTY_X86_ISA_1_SSE): Likwise.
7853 (GNU_PROPERTY_X86_ISA_1_SSE2): Likwise.
7854 (GNU_PROPERTY_X86_ISA_1_SSE3): Likwise.
7855 (GNU_PROPERTY_X86_ISA_1_SSSE3): Likwise.
7856 (GNU_PROPERTY_X86_ISA_1_SSE4_1): Likwise.
7857 (GNU_PROPERTY_X86_ISA_1_SSE4_2): Likwise.
7858 (GNU_PROPERTY_X86_ISA_1_AVX): Likwise.
7859 (GNU_PROPERTY_X86_ISA_1_AVX2): Likwise.
7860 (GNU_PROPERTY_X86_ISA_1_AVX512F): Likwise.
7861 (GNU_PROPERTY_X86_ISA_1_AVX512CD): Likwise.
7862 (GNU_PROPERTY_X86_ISA_1_AVX512ER): Likwise.
7863 (GNU_PROPERTY_X86_ISA_1_AVX512PF): Likwise.
7864 (GNU_PROPERTY_X86_ISA_1_AVX512VL): Likwise.
7865 (GNU_PROPERTY_X86_ISA_1_AVX512DQ): Likwise.
7866 (GNU_PROPERTY_X86_ISA_1_AVX512BW): Likwise.
7867 (GNU_PROPERTY_X86_FEATURE_1_IBT): Likwise.
7868 (GNU_PROPERTY_X86_FEATURE_1_SHSTK): Likwise.
7869
7870 2017-08-18 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
7871
7872 * misc/sys/cdefs.h (__HAVE_GENERIC_SELECTION): Define to 0, if
7873 in C++ mode.
7874
7875 2017-08-18 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
7876
7877 [BZ #21930]
7878 * math/math.h (isinf): Check if in C or C++ mode before using
7879 __builtin_types_compatible_p, since this is a C mode feature.
7880
7881 2017-08-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7882
7883 * sysdeps/generic/not-cancel.h (write_not_cancel): Remove macro.
7884 (__write_nocancel): New macro.
7885 * sysdeps/unix/sysv/linux/not-cancel.h (__write_nocancel):
7886 Rewrite as a function prototype.
7887 (write_not_cancel): Remove macro.
7888 * sysdeps/unix/sysv/linux/write.c (__write_nocancel): New function.
7889 * gmon/gmon.c (ERR): Replace write_not_cancel with __write_nocancel.
7890 (write_gmon): Likewise.
7891 * libio/fileops.c (_IO_new_file_write): Likewise.
7892 * login/utmp_file.c (pututline_file): Likewise.
7893 (updwtmp_file): Likewise.
7894 * stdio-common/psiginfo.c (psiginfo): Likewise.
7895 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
7896 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
7897 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
7898 Likewise.
7899 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
7900 Likewise.
7901
7902 * sysdeps/generic/not-cancel.h (read_not_cancel): Remove macro.
7903 (__read_nocancel): New macro.
7904 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
7905 __read_nocancel.
7906 * sysdeps/unix/sysv/linux/not-cancel.h (__read_nocancel): Remove
7907 macro.
7908 (__read_nocancel): New prototype.
7909 * sysdeps/unix/sysv/linux/read.c (__read_nocancel): New function.
7910 * catgets/open_catalog.c (__open_catalog): Replace read_not_cancel
7911 with __read_nocancel.
7912 * intl/loadmsgcat.c (read): Likewise.
7913 * libio/fileops.c (_IO_file_read): Likewise.
7914 * locale/loadlocale.c (_nl_load_locale): Likewise.
7915 * login/utmp_file.c (getutent_r_file): Likewise.
7916 (internal_getut_r): Likewise.
7917 (getutline_r_file): Likewise.
7918 * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
7919 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
7920 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
7921 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
7922 Likewise.
7923 * sysdeps/unix/sysv/linux/getsysstats.c (next_line): Likewise.
7924 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
7925 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
7926 Likewise.
7927 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
7928 Likewise.
7929 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
7930 Likewise.
7931 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
7932 Likewise.
7933 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
7934
7935 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
7936
7937 [BZ #21966]
7938 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h
7939 (IFUNC_SELECTOR): Don't use the AVX2 version if FMA isn't
7940 usable.
7941
7942 2017-08-17 DJ Delorie <dj@redhat.com>
7943
7944 * bug17079.c: Update to new test harness.
7945 * test-digits-dots.c: Likewise.
7946 * test-netdb.c: Likewise.
7947 * tst-field.c: Likewise.
7948 * tst-nss-getpwent.c: Likewise.
7949 * tst-nss-static.c: Likewise.
7950 * tst-nss-test1.c: Likewise.
7951 * tst-nss-test2.c: Likewise.
7952 * tst-nss-test3.c: Likewise.
7953 * tst-nss-test4.c: Likewise.
7954 * tst-nss-test5.c: Likewise.
7955
7956 2017-08-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7957
7958 * sysdeps/generic/not-cancel.h (open_not_cancel): Remove macro.
7959 (open_not_cancel_2): Likewise.
7960 (open_nocancel): New macro.
7961 (open64_nocancel): Likewise.
7962 * sysdeps/unix/sysv/linux/not-cancel.h (open_not_cancel): Remove macro.
7963 (open_not_cancel_2): Likewise.
7964 (__open_nocancel): New prototype.
7965 (__open64_nocancel): Likewise.
7966 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
7967 __open_nocancel.
7968 * sysdeps/unix/sysv/linux/open.c (__open_nocancel): New function.
7969 * sysdeps/unix/sysv/linux/open64.c (__open64_nocancel): Likewise.
7970 * catgets/open_catalog.c (__open_catalog): Replace open_not_cancel{_2}
7971 with __open_nocancel.
7972 * csu/check_fds.c (check_one_fd): Likewise.
7973 * gmon/gmon.c (write_gmon): Likewise.
7974 * iconv/gconv_cache.c (__gconv_load_cached): Likewise.
7975 * intl/loadmsgcat.c (open): Likewise.
7976 * libio/fileops.c (_IO_file_open): Likewise.
7977 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
7978 * locale/loadlocale.c (_nl_load_locale): Likewise.
7979 * login/utmp_file.c (setutent_file): Likewise.
7980 * misc/daemon.c (daemon): Likewise.
7981 * nss/nss_db/db-open.c (internal_setent): Likewise.
7982 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
7983 * sysdeps/posix/libc_fatal.c (__libc_message): Likewise.
7984 * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
7985 (__opendir): Likewise.
7986 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
7987 * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
7988 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
7989 (gethostid): Likewise.
7990 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
7991 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
7992 Likewise.
7993 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
7994 * sysdeps/unix/sysv/linux/grantpt.c (__close_all_fds): Likewise.
7995 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
7996 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
7997 Likewise.
7998 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
7999 Likewise.
8000 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
8001 Likewise.
8002 * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c (__get_clockfreq):
8003 Likewise.
8004 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
8005 Likewise.
8006 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
8007 Likewise.
8008 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
8009 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
8010
8011 2017-08-17 Wilco Dijkstra <wdijkstr@arm.com>
8012
8013 * benchtests/bench-skeleton.c (main): Add support for
8014 latency benchmarking.
8015 * benchtests/scripts/bench.py: Add support for latency benchmarking.
8016
8017 2017-08-17 H.J. Lu <hongjiu.lu@intel.com>
8018
8019 * Makeconfig (+link-pie-before-libc): Add CRT-* hook to override
8020 the startup object.
8021
8022 2017-08-17 Florian Weimer <fweimer@redhat.com>
8023
8024 * include/sys/socket.h (__opensock): Remove internal_function.
8025 * socket/opensock.c (__opensock): Likewise.
8026 * sysdeps/unix/sysv/linux/opensock.c (__opensock): Likewise.
8027
8028 2017-08-16 Joseph Myers <joseph@codesourcery.com>
8029
8030 [BZ #21944]
8031 * signal/bits/types/__sigval_t.h: New file.
8032 * signal/Makefile (headers): Add bits/types/__sigval_t.h.
8033 * signal/bits/types/sigval_t.h: Include <bits/types/__sigval_t.h>
8034 and define sigval_t using __sigval_t.
8035 * include/bits/types/__sigval_t.h: New file.
8036 * bits/types/sigevent_t.h: Include <bits/types/__sigval_t.h>
8037 instead of <bits/types/__sigval_t.h>.
8038 (struct sigevent): Use __sigval_t instead of sigval_t.
8039 * bits/types/siginfo_t.h: Include <bits/types/__sigval_t.h>
8040 instead of <bits/types/__sigval_t.h>.
8041 (siginfo_t): Use __sigval_t instead of sigval_t.
8042 * sysdeps/unix/sysv/linux/bits/types/sigevent_t.h: Include
8043 <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
8044 (struct sigevent): Use __sigval_t instead of sigval_t.
8045 * sysdeps/unix/sysv/linux/bits/types/siginfo_t.h: Include
8046 <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
8047 (siginfo_t): Use __sigval_t instead of sigval_t.
8048 * signal/signal.h [__USE_MISC]: Include <bits/types/sigval_t.h>.
8049
8050 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
8051
8052 * NEWS: Remove "[Add new features here]" for 2.27.
8053
8054 2017-08-16 Joseph Myers <joseph@codesourcery.com>
8055
8056 * sysdeps/unix/sysv/linux/sh/localplt.data: Allow abort in
8057 libc.so.
8058
8059 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
8060
8061 * NEWS: Mention x86-64 FMA optimization.
8062
8063 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
8064
8065 [BZ #21912]
8066 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
8067 Add e_expf-fma.
8068 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: New file.
8069 * sysdeps/x86_64/fpu/multiarch/e_expf.c: Likewise.
8070 * sysdeps/x86_64/fpu/multiarch/ifunc-fma.h: Likewise.
8071
8072 2017-08-16 Andreas Schwab <schwab@suse.de>
8073
8074 [BZ #16750]
8075 CVE-2009-5064
8076 * elf/ldd.bash.in: Never run file directly.
8077
8078 2017-08-15 H.J. Lu <hongjiu.lu@intel.com>
8079
8080 [BZ #21955]
8081 * sysdeps/x86_64/fpu/e_expf.S (L(SP_RANGE)): Aligned to 8 bytes.
8082 (L(SP_INF_0)): Likewise.
8083
8084 2017-08-15 Florian Weimer <fweimer@redhat.com>
8085
8086 * gmon/Makefile (tests-special): Add tst-gmon-prof only if
8087 run-built-tests.
8088
8089 2017-08-15 Florian Weimer <fweimer@redhat.com>
8090
8091 Remove BROKEN_THREAD_SIGNALS support for LinuxThreads.
8092 * sysdeps/pthread/aio_misc.c (__aio_enqueue_request): Remove
8093 BROKEN_THREAD_SIGNALS code.
8094 * sysdeps/ppthread/aio_misc.h (struct waitlist, struct
8095 request_list): Remove caller_pid member used for
8096 BROKEN_THREAD_SIGNALS.
8097 [BROKEN_THREAD_SIGNALS] (__aio_notify_only): Remove declaration.
8098 * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
8099 Remove BROKEN_THREAD_SIGNALS support.
8100 * sysdeps/pthread/aio_suspend.c (aio_suspend): Likewise.
8101 * sysdeps/pthread/lio_listio.c (lio_listio_internal): Likewise.
8102
8103 2017-08-15 Florian Weimer <fweimer@redhat.com>
8104
8105 * gmon/Makefile (tests): Add tst-gmon.
8106 (CFLAGS-tst-gmon.c, LDFLAGS-tst-gmon, CRT-tst-gmon, tst-gmon-ENV):
8107 Set.
8108 (tests-special): Add tst-gmon-prof.out.
8109 (tst-gmon.out): Depend on clean-tst-gmon-data.
8110 (clean-tst-gmon-data, tst-gmon-gprof.out): New targets.
8111 * gmon/tst-gmon.c, gmon/tst-gmon-gprof.sh: New files.
8112 * Makeconfig (+link-before-libc): Add CRT-* hook to override the
8113 startup object.
8114 * aclocal.m4 (GPROF): Set and substitute.
8115 * config.amke.in (GPROF): Set.
8116 * configure: Regenerate.
8117
8118 2017-08-15 Gustavo Romero <gromero@linux.vnet.ibm.com>
8119
8120 * elf/elf.h A (NT_PPC_TAR): New macro.
8121 (NT_PPC_PPR): Likewise.
8122 (NT_PPC_DSCR): Likewise.
8123 (NT_PPC_EBB): Likewise.
8124 (NT_PPC_PMU): Likewise.
8125 (NT_PPC_TM_CGPR): Likewise.
8126 (NT_PPC_TM_CFPR): Likewise.
8127 (NT_PPC_TM_CVMX): Likewise.
8128 (NT_PPC_TM_CVSX): Likewise.
8129 (NT_PPC_TM_SPR): Likewise.
8130 (NT_PPC_TM_CTAR): Likewise.
8131 (NT_PPC_TM_CPPR): Likewise.
8132 (NT_PPC_TM_CDSCR): Likewise.
8133
8134 2017-08-15 Florian Weimer <fweimer@redhat.com>
8135
8136 * sysdeps/i386/machine-gmon.h (mcount_internal): Declare with
8137 regparm (2) instead of internal_function.
8138 (_MCOUNT_DECL): Adjust.
8139
8140 2017-08-15 Stefan Liebler <stli@linux.vnet.ibm.com>
8141
8142 * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add z14.
8143 * sysdeps/s390/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increased.
8144
8145 2017-08-14 Joseph Myers <joseph@codesourcery.com>
8146
8147 * conform/data/sys/wait.h-data (si_value): Do not expect for
8148 XPG42.
8149
8150 2017-08-14 Florian Weimer <fweimer@redhat.com>
8151
8152 [BZ #21962]
8153 NSS: Create stubs for accidentally exported lookup functions.
8154 * grp/initgroups.c (__nss_group_lookup, __nss_lookup_function):
8155 Remove declaration.
8156 * inet/ether_hton.c (__nss_ethers_lookup): Likewise.
8157 (ether_hostton): Call __nss_ethers_lookup2 instead.
8158 * inet/ether_ntoh.c (__nss_ethers_lookup): Remove declaration.
8159 (ether_ntohost): Call __nss_ethers_lookup2 instead.
8160 * inet/getnetgrent_r.c (__nss_netgroup_lookup): Remove declaration.
8161 (setup): Call __nss_netgroup_lookup2 instead.
8162 * nss/Makefile (routines): Add compat-lookup.
8163 * nss/Versions (GLIBC_2.27): Add symbol version.
8164 * nss/XXX-lookup (DB_LOOKUP_FCT): Remove declaration. Now provided by <nsswitch.h>.
8165 (DB_COMPAT_FCT): Remove.
8166 * nss/compat-lookup.c: New file.
8167 * nss/nsswitch.h: Generate __nss_*_lookup2 function prototypes
8168 from databases.def.
8169 * nss/service-lookup.c (NO_COMPAT): Remove definition.
8170 * sunrpc/netname.c (__nss_publickey_lookup): Remove declaration.
8171 (netname2user): Call __nss_publickey_lookup2 instead.
8172 * sunrpc/publickey.c (__nss_publickey_lookup): Remove declaration.
8173 (getpublickey, getsecretkey): Call __nss_publickey_lookup2
8174 instead.
8175
8176 2017-08-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8177 Sergei Trofimovich <slyfox@inbox.ru>
8178
8179 [BZ #21908]
8180 * sysdeps/unix/sysv/linux/m68k/mmap_internal.h (MMAP2_PAGE_SHIFT):
8181 Rename to MMAP2_PAGE_UNIT.
8182 * sysdeps/unix/sysv/linux/mmap.c: Include mmap_internal iff
8183 __OFF_T_MATCHES_OFF64_T is not defined.
8184 * sysdeps/unix/sysv/linux/mmap_internal.h (page_unit): Declare as
8185 uint64_t.
8186 (MMAP2_PAGE_UNIT) [MMAP2_PAGE_UNIT == -1]: Redefine to page_unit.
8187 (page_unit) [MMAP2_PAGE_UNIT != -1]: Remove definition.
8188
8189 2017-08-14 Florian Weimer <fweimer@redhat.com>
8190
8191 i386: Do not set internal_function.
8192 * config.h.in (USE_REGPARMS, internal_function): Remove.
8193 * sysdeps/i386/configure.ac (USE_REGPARMS): Likewise.
8194 * sysdeps/i386/configure (USE_REGPARMS): Likewise.
8195
8196 2017-08-14 Florian Weimer <fweimer@redhat.com>
8197
8198 * elf/dl-init.c (_dl_init): Remove internal_function.
8199 * sysdeps/generic/ldsodefs.h (_dl_init): Likewise.
8200 * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to _dl_init.
8201
8202 2017-08-14 Florian Weimer <fweimer@redhat.com>
8203
8204 * elf/rtld.c (_dl_start): Remove internal_function.
8205 * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to
8206 _dl_start.
8207
8208 2017-08-14 Florian Weimer <fweimer@redhat.com>
8209
8210 * elf/dl-fini.c (_dl_fini): Remove internal_function
8211 * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
8212
8213 2017-08-14 H.J. Lu <hongjiu.lu@intel.com>
8214
8215 * sysdeps/x86/cpu-features.h (bit_cpu_BIT): New.
8216 (bit_cpu_SHSTK): Likewise.
8217 (index_cpu_IBT): Likewise.
8218 (index_cpu_SHSTK): Likewise.
8219 (reg_IBT): Likewise.
8220 (reg_SHSTK): Likewise.
8221 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
8222 Handle index_cpu_IBT and index_cpu_SHSTK.
8223
8224 2017-08-14 Mike FABIAN <mfabian@redhat.com>
8225
8226 [BZ #19982]
8227 * po/fr.po: Fix spelling mistake.
8228
8229 2017-08-13 Florian Weimer <fweimer@redhat.com>
8230
8231 * elf/dl-addr.c (_dl_addr): Remove internal_function.
8232 * elf/dl-error-skeleton.c (_dl_signal_error, _dl_signal_cerror)
8233 (_dl_catch_error, _dl_receive_error): Likewise.
8234 * elf/dl-open.c (_dl_find_dso_for_object): Likewise.
8235 * elf/dl-tls.c (_dl_allocate_tls_init, _dl_allocate_tls)
8236 (_dl_deallocate_tls): Likewise.
8237 * include/dlfcn.h (_dl_addr): Likewise.
8238 * sysdeps/generic/ldsodefs.h (_dl_signal_error, _dl_signal_cerror)
8239 (_dl_catch_error, _dl_receive_error, _dl_find_dso_for_object)
8240 (_dl_allocate_tls_init, _dl_allocate_tls, _dl_deallocate_tls):
8241 Likewise.
8242
8243 2017-08-13 Florian Weimer <fweimer@redhat.com>
8244
8245 * include/stdlib.h: (__strtof_nan, __strtod_nan, __strtold_nan)
8246 (__wcstof_nan, __wcstod_nan, __wcstold_nan): Remove
8247 internal_function.
8248 * stdlib/sttod_nan_main.c (STRTOD_NAN): Likewise.
8249
8250 2017-08-13 Florian Weimer <fweimer@redhat.com>
8251
8252 * elf/dl-support.c (_dl_make_stack_executable_hook): Remove
8253 internal_function.
8254 * nptl/allocatestack.c (__make_stacks_executable): Likewise.
8255 * nptl/pthreadP.h (__make_stacks_executable): Likewise.
8256 * sysdeps/generic/ldsodefs.h (_rtld_global): Remove
8257 internal_function from _dl_make_stack_executable_hook member.
8258 (_dl_make_stack_executable): Remove internal_function.
8259 * sysdeps/mach/hurd/dl-execstack.c (_dl_make_stack_executable):
8260 Likewise.
8261 * sysdeps/unix/sysv/linux/dl-execstack.c
8262 (_dl_make_stack_executable): Likewise.
8263
8264 2017-08-13 Florian Weimer <fweimer@redhat.com>
8265
8266 * sysdeps/unix/sysv/linux/netlinkaccess.h
8267 (__netlink_assert_response): Remove internal_function.
8268 * sysdeps/unix/sysv/linux/netlink_assert_response.c
8269 (__netlink_assert_response): Likewise.
8270
8271 2017-08-13 Florian Weimer <fweimer@redhat.com>
8272
8273 * include/rpc/pmap_clnt.h (__libc_rpc_getport): Remove
8274 internal_function.
8275 * sunrpoc/pm_getport.c (__libc_rpc_getport): Likewise.
8276
8277 2017-08-13 Florian Weimer <fweimer@redhat.com>
8278
8279 * grp/grp-merge.h (__copy_grp, __merge_grp): Remove
8280 internal_function.
8281 * grp/grp-merge.c (__copy_grp, __merge_grp): Likewise.
8282 * inet/netgroup.h (__internal_setnetgrent)
8283 (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
8284 * inet/getnetgrent_r.c (__internal_setnetgrent)
8285 (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
8286 * nss/XXX-lookup.c (DB_LOOKUP_FCT, DB_COMPAT_FCT): Likewise.
8287 * nss/getXXbyYY_r.c (DB_LOOKUP_FCT): Likewise.
8288 * nss/getXXent_r.c (DB_LOOKUP_FCT): Likewise.
8289 * nss/nsswitch.h (db_lookup_function): Likewise.
8290
8291 2017-08-13 Florian Weimer <fweimer@redhat.com>
8292
8293 * debug/fortify_fail.c (__fortify_fail, __fortify_fail_abort):
8294 Remove internal_function.
8295 * include/stdio.h (__fortify_fail, __fortify_fail_abort): Likewise.
8296 * sysdeps/mach/hurd/i386/____longjmp_chk.S (CALL_FAIL): Pass
8297 message argument on the stack.
8298 * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S (CALL_FAIL):
8299 Likeweise.
8300
8301 2017-08-12 Mike FABIAN <mfabian@redhat.com>
8302
8303 Adapt test case data to the changes in the thousands
8304 separators.
8305
8306 [BZ #20756]
8307 * localedata/tst-langinfo.sh: Adapt test case data.
8308 * stdlib/tst-strfmon_l.c: Likewise.
8309 * stdlib/tst-strtod4.c: Likewise.
8310 * stdlib/tst-strtod5i.c: Likewise.
8311
8312 2017-08-11 Florian Weimer <fweimer@redhat.com>
8313
8314 [BZ #21242]
8315 * assert/assert.h [__GNUC__ && !__STRICT_ANSI__] (assert):
8316 Suppress pedantic warning resulting from statement expression.
8317 (__ASSERT_FUNCTION): Add missing __extension__.
8318
8319 2017-08-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
8320
8321 * benchtests/bench-memmove-large.c: Print output in JSON
8322 format.
8323 * benchtests/bench-memmove.c: Likewise.
8324
8325 * benchtests/bench-memccpy.c (do_one_test): Remove checks.
8326 * benchtests/bench-memchr.c (do_one_test): Likewise.
8327 * benchtests/bench-memcpy-large.c (do_one_test): Likewise.
8328 * benchtests/bench-memcpy.c (do_one_test): Likewise.
8329 * benchtests/bench-memmove-large.c (do_one_test): Likewise.
8330 * benchtests/bench-memmove.c (do_one_test): Likewise.
8331 * benchtests/bench-memset-large.c (do_one_test): Likewise.
8332 * benchtests/bench-memset.c (do_one_test): Likewise.
8333 * benchtests/bench-string.h (test_init): Remove memsets.
8334
8335 2017-08-10 Rical Jasan <ricaljasan@pacific.net>
8336
8337 * manual/lang.texi
8338 (Computing the Width of an Integer Data Type): Rename section to
8339 "Width of an Integer Type". Remove inaccurate statement regarding
8340 lack of C language facilities for determining width of integer
8341 types, and reorder content to improve flow and context of
8342 discussion.
8343
8344 2017-08-10 Rical Jasan <ricaljasan@pacific.net>
8345
8346 * lang.texi (va_copy): Change standard from ISO to C99.
8347 (__va_copy): Add standard and header annotation.
8348 Update description for clarity of origins and current use.
8349
8350 2017-08-10 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
8351
8352 [BZ #21941]
8353 * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrtf128): Since
8354 xssqrtqp requires operands to be in Vector Registers
8355 (Altivec/VMX), replace the register constraint 'wq' with 'v'.
8356 * sysdeps/powerpc/powerpc64le/power9/fpu/e_sqrtf128.c
8357 (__ieee754_sqrtf128): Likewise.
8358
8359 2017-08-10 Wilco Dijkstra <wdijkstr@arm.com>
8360
8361 * sysdeps/aarch64/memcmp.S (memcmp):
8362 Rewrite of optimized memcmp.
8363
8364 2017-08-10 Florian Weimer <fweimer@redhat.com>
8365
8366 Introduce ld.so exceptions.
8367 * sysdeps/generic/ldsodefs.h (struct dl_exception): Define.
8368 (_dl_exception_create, _dl_exception_create_format)
8369 (_dl_exception_free, _dl_signal_exception, _dl_signal_cexception)
8370 (_dl_catch_exception): Declare.
8371 (_dl_catch_error): Update comment.
8372 * elf/dl-error-skeleton.c (struct catch): Replace objname,
8373 errstring, malloced members with exception member.
8374 (_dl_out_of_memory): Remove.
8375 (fatal_error): New function, extracted from _dl_signal_error.
8376 (_dl_signal_exception, _dl_signal_cexception): New functions.
8377 (_dl_signal_error): Call _dl_exception_create to allocate an
8378 exception object.
8379 (_dl_catch_exception): New function, based on _dl_catch_error.
8380 (_dl_catch_error): Implement using _dl_catch_exception.
8381 * elf/dl-exception.c: New file.
8382 * elf/Makefile (dl-routines): Add dl-exception.
8383 (elide-routines.os): Likewise.
8384 * elf/Version (ld/GLIBC_PRIVATE): Add _dl_exception_create,
8385 _dl_exception_create_format, _dl_exception_free.
8386 * elf/dl-deps.c (_dl_map_object_deps): Use _dl_catch_exception and
8387 _dl_signal_exception.
8388 * elf/dl-lookup.c (make_string): Remove.
8389 (_dl_lookup_symbol_x): Use _dl_exception_create_format,
8390 _dl_signal_cexception, _dl_exception_free.
8391 * elf/dl-open.c (_dl_open): Use _dl_catch_exception and
8392 _dl_signal_exception.
8393 * elf/dl-sym.c (do_sym): Likewise.
8394 * elf/dl-version.c (make_string): Remove.
8395 (match_symbol): Use _dl_exception_create_format,
8396 _dl_signal_cexception, _dl_exception_free.
8397 (_dl_check_map_versions): Likewise.
8398 * sysdeps/generic/localplt.data (ld.so): Add _dl_signal_exception,
8399 _dl_catch_exception.
8400 * sysdeps/unix/sysv/linux/aarch64/localplt.data (ld.so): Likewise.
8401 * sysdeps/unix/sysv/linux/alpha/localplt.data (ld.so): Likewise.
8402 * sysdeps/unix/sysv/linux/arm/localplt.data (ld.so): Likewise.
8403 * sysdeps/unix/sysv/linux/hppa/localplt.data (ld.so): Likewise.
8404 * sysdeps/unix/sysv/linux/i386/localplt.data (ld.so): Likewise.
8405 * sysdeps/unix/sysv/linux/ia64/localplt.data (ld.so): Likewise.
8406 * sysdeps/unix/sysv/linux/m68k/localplt.data (ld.so): Likewise.
8407 * sysdeps/unix/sysv/linux/microblaze/localplt.data (ld.so):
8408 Likewise.
8409 * sysdeps/unix/sysv/linux/nios2/localplt.data (ld.so): Likewise.
8410 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data
8411 (ld.so): Likewise.
8412 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data
8413 (ld.so): Likewise.
8414 * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data (ld.so):
8415 Likewise.
8416 * sysdeps/unix/sysv/linux/s390/localplt.data (ld.so): Likewise.
8417 * sysdeps/unix/sysv/linux/sh/localplt.data (ld.so): Likewise.
8418 * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data (ld.so):
8419 Likewise.
8420 * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data (ld.so):
8421 Likewise.
8422 * sysdeps/x86_64/localplt.data (ld.so): Likewise.
8423
8424 2017-08-10 Florian Weimer <fweimer@redhat.com>
8425
8426 * inet/net-internal.h (__inet6_scopeid_pton): Remove
8427 attribute_hidden, internal_function.
8428 * inet/inet6_scopeid_pton.c (__inet6_scopeid_pton): Remove
8429 internal_function.
8430
8431 2017-08-10 Florian Weimer <fweimer@redhat.com>
8432
8433 * malloc/malloc.c (get_max_fast): Reimplement as an inline
8434 function which calls __builtin_unreachable.
8435
8436 2017-08-10 Mike FABIAN <mfabian@redhat.com>
8437
8438 * stdlib/tst-strfmon_l.c: Fix test cases to agree with the changes in
8439 Indian monetary formatting
8440 * stdlib/Makefile: Adapt list of locales needed for the tst-strfmon_l.c
8441 test cases.
8442
8443 2017-08-09 Dmitry V. Levin <ldv@altlinux.org>
8444
8445 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (enum __ptrace_request):
8446 Fix typo in comment.
8447
8448 [BZ #21928]
8449 * sysdeps/unix/sysv/linux/sys/ptrace.h (enum __ptrace_flags,
8450 PTRACE_SEIZE_DEVEL): Remove.
8451 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Likewise.
8452 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
8453 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
8454 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
8455 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
8456
8457 2017-08-09 Joseph Myers <joseph@codesourcery.com>
8458
8459 * posix/bits/types.h (__qaddr_t): Remove.
8460
8461 [BZ #21457]
8462 * sysdeps/arm/sys/ucontext.h (__ctx): Move undefine further down.
8463 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
8464 __glibc_reserved1.
8465 * sysdeps/generic/sys/ucontext.h (__ctx): New macro.
8466 (ucontext_t): Use __ctx with uc_flags.
8467 * sysdeps/i386/sys/ucontext.h (__ctx): Move undefine further down.
8468 (__ctxt): Likewise.
8469 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
8470 __glibc_reserved1.
8471 * sysdeps/m68k/sys/ucontext.h (__ctx): Move undefine further down.
8472 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
8473 __glibc_reserved1.
8474 * sysdeps/mips/sys/ucontext.h (__ctx): Move undefine further down.
8475 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
8476 __glibc_reserved1.
8477 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (__ctx): New
8478 macro.
8479 (ucontext_t): Use __ctx with uc_flags.
8480 * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h (__ctx): New macro.
8481 (ucontext_t): Use __ctx with uc_flags.
8482 * sysdeps/unix/sysv/linux/arm/sys/ucontext.h (__ctx): New macro.
8483 (ucontext_t): Use __ctx with uc_flags and uc_regspace.
8484 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h (__ctx): New macro.
8485 (ucontext_t): Use __ctx with uc_flags.
8486 * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h (__ctx): Move
8487 undefine further down.
8488 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
8489 __glibc_reserved1.
8490 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h (__ctx): Move
8491 undefine further down.
8492 (ucontext_t): Use __ctx with uc_flags.
8493 * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h (__ctx): Move
8494 undefine further down.
8495 (ucontext_t): Use __ctx with uc_flags.
8496 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (ucontext_t): Use
8497 __ctx with uc_flags, uc_regs_ptr, uc_regs and uc_reg_space.
8498 Rename uc_pad to __glibc_reserved1.
8499 * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__ctx): Move
8500 undefine further down.
8501 (ucontext_t): Use __ctx with uc_flags.
8502 * sysdeps/unix/sysv/linux/sh/sys/ucontext.h (__ctx): Move undefine
8503 further down.
8504 (ucontext_t): Use __ctx with uc_flags.
8505 * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (ucontext_t): Use
8506 __ctx with uc_flags.
8507 * sysdeps/unix/sysv/linux/tile/sys/ucontext.h (__ctx): New macro.
8508 (ucontext_t): Use __ctx with uc_flags.
8509 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h (ucontext_t): Use
8510 __ctx with uc_flags.
8511
8512 2017-08-09 Florian Weimer <fweimer@redhat.com>
8513
8514 [BZ #21932]
8515 * nss/getXXbyYY_r.c (REENTRANT_NAME): Call __resolv_context_put
8516 before early return.
8517
8518 2017-08-09 Andreas Schwab <schwab@suse.de>
8519
8520 [BZ #21041]
8521 * sysdeps/unix/sysv/linux/s390/pt-longjmp.c: Update reference to
8522 renamed alias.
8523
8524 [BZ #21041]
8525 * nptl/Makefile (tests) [$(build-shared) = yes]: Add
8526 tst-compat-forwarder.
8527 (modules-names): Add tst-compat-forwarder-mod.
8528 ($(objpfx)tst-compat-forwarder): Depend on
8529 $(objpfx)tst-compat-forwarder-mod.so.
8530 * nptl/tst-compat-forwarder.c: New file.
8531 * nptl/tst-compat-forwarder-mod.c: New file.
8532
8533 2017-08-09 Siddhesh Poyarekar <siddhesh@sourceware.org>
8534
8535 * sysdeps/aarch64/multiarch/memcpy_falkor.S: Fix code style in
8536 comments.
8537
8538 * manual/tunables.texi (Tunable glibc.tune.cpu): Add falkor.
8539 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
8540 memcpy_falkor.
8541 * sysdeps/aarch64/multiarch/ifunc-impl-list.c (MAX_IFUNC):
8542 Bump.
8543 (__libc_ifunc_impl_list): Add __memcpy_falkor.
8544 * sysdeps/aarch64/multiarch/memcpy.c: Likewise.
8545 * sysdeps/aarch64/multiarch/memcpy_falkor.S: New file.
8546 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
8547 Add falkor.
8548 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_FALKOR):
8549 New macro.
8550
8551 2017-08-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8552
8553 [BZ #759]
8554 * manual/setjmp.texi (getcontex): Document uc_stack value
8555 compatibility differences.
8556
8557 2017-08-08 Joseph Myers <joseph@codesourcery.com>
8558
8559 * malloc/mcheck.c (old_free_hook): Use void * instead of __ptr_t.
8560 (old_malloc_hook): Likewise.
8561 (old_memalign_hook): Likewise.
8562 (old_realloc_hook): Likewise.
8563 (struct hdr): Likewise.
8564 (flood): Likewise.
8565 (freehook): Likewise.
8566 (mallochook): Likewise.
8567 (memalignhook): Likewise.
8568 (reallochook): Likewise.
8569 (mprobe): Likewise.
8570 * malloc/mtrace.c (mallwatch): Likewise.
8571 (tr_old_free_hook): Likewise.
8572 (tr_old_malloc_hook): Likewise.
8573 (tr_old_realloc_hook): Likewise.
8574 (tr_old_memalign_hook): Likewise.
8575 (tr_where): Likewise.
8576 (lock_and_info): Likewise.
8577 (tr_freehook): Likewise.
8578 (tr_mallochook): Likewise.
8579 (tr_reallochook): Likewise.
8580 (tr_memalignhook): Likewise.
8581 * misc/err.h [!__GNUC_VA_LIST] (__gnuc_va_list): Likewise.
8582 * misc/mmap.c (__mmap): Likewise.
8583 * misc/mmap64.c (__mmap64): Likewise.
8584 * misc/mprotect.c (__mprotect): Likewise.
8585 * misc/msync.c (msync): Likewise.
8586 * misc/munmap.c (__munmap): Likewise.
8587 * posix/posix_madvise.c (posix_madvise): Likewise.
8588 * socket/send.c (__send): Likewise.
8589 * socket/sendto.c (__sendto): Likewise.
8590 * socket/setsockopt.c (__setsockopt): Likewise.
8591 * string/memcmp.c (__ptr_t): Remove macro.
8592 (MEMCMP): Use void * instead of ptr_t.
8593 * string/memrchr.c (__ptr_t): Remove macro.
8594 (__memrchr): Use void * instead of ptr_t.
8595 * sysdeps/mach/hurd/dl-sysdep.c (__mmap): Likewise.
8596 * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
8597 * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
8598 * sysdeps/mach/mprotect.c (__mprotect): Likewise.
8599 * sysdeps/mach/msync.c (msync): Likewise.
8600 * sysdeps/mach/munmap.c (__munmap): Likewise.
8601 * sysdeps/mips/bits/setjmp.h (struct __jmp_buf_internal_tag):
8602 Likewise.
8603 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
8604 * sysdeps/powerpc/powerpc32/memset.S (memset): Likewise.
8605 * sysdeps/powerpc/powerpc32/power4/memcpy.S (memcpy): Likewise.
8606 * sysdeps/powerpc/powerpc32/power4/memset.S (memset): Likewise.
8607 * sysdeps/powerpc/powerpc32/power6/memcpy.S (memcpy): Likewise.
8608 * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
8609 * sysdeps/powerpc/powerpc32/power7/memcpy.S (memcpy): Likewise.
8610 * sysdeps/powerpc/powerpc32/power7/mempcpy.S (__mempcpy):
8611 Likewise.
8612 * sysdeps/powerpc/powerpc32/power7/memset.S (memset): Likewise.
8613 * sysdeps/powerpc/powerpc64/memcpy.S (memcpy): Likewise.
8614 * sysdeps/powerpc/powerpc64/memset.S (memset): Likewise.
8615 * sysdeps/powerpc/powerpc64/power4/memcpy.S (memcpy): Likewise.
8616 * sysdeps/powerpc/powerpc64/power4/memset.S (memset): Likewise.
8617 * sysdeps/powerpc/powerpc64/power6/memcpy.S (memcpy): Likewise.
8618 * sysdeps/powerpc/powerpc64/power6/memset.S (memset): Likewise.
8619 * sysdeps/powerpc/powerpc64/power7/memcpy.S (memcpy): Likewise.
8620 * sysdeps/powerpc/powerpc64/power7/mempcpy.S (__mempcpy):
8621 Likewise.
8622 * sysdeps/powerpc/powerpc64/power7/memset.S (memset): Likewise.
8623 * sysdeps/powerpc/powerpc64/power8/memset.S (memset): Likewise.
8624 * sysdeps/tile/memcmp.c (__ptr_t): Remove macro.
8625 (MEMCMP): Use void * instead of ptr_t.
8626 * sysdeps/unix/sysv/linux/alpha/oldglob.c (old_glob_t): Likewise.
8627 * sysdeps/unix/sysv/linux/mmap.c (__mmap): Likewise.
8628
8629 2017-08-08 Florian Weimer <fweimer@redhat.com>
8630
8631 * sysdeps/posix/getaddrinfo.c (gaih_inet): Remove unreachable
8632 return statement.
8633
8634 2017-08-08 H.J. Lu <hongjiu.lu@intel.com>
8635
8636 [BZ #21913]
8637 * csu/libc-tls.c: Include <startup.h> first.
8638 (__libc_setup_tls): Call _startup_fatal instead of __libc_fatal.
8639 * elf/dl-tunables.c: Include <startup.h> first.
8640 * include/libc-symbols.h (BUILD_PIE_DEFAULT): New.
8641 * sysdeps/generic/startup.h: New file.
8642 * sysdeps/unix/sysv/linux/i386/startup.h: Likewise.
8643 * sysdeps/unix/sysv/linux/i386/brk.c [BUILD_PIE_DEFAULT != 0]
8644 (I386_USE_SYSENTER): New. Defined to 0.
8645
8646 2017-08-08 Andreas Schwab <schwab@suse.de>
8647
8648 [BZ #21041]
8649 * nptl/pt-longjmp.c (longjmp, siglongjmp): Don't use IFUNC resolver.
8650 * nptl/pt-system.c (system): Likewise.
8651
8652 2017-08-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8653
8654 [BZ #21780]
8655 * sysdeps/posix/preadv2.c (preadv2): Use ENOTSUP instead of
8656 EOPNOTSUPP.
8657 * sysdeps/posix/preadv64v2.c (preadv64v2): Likewise.
8658 * sysdeps/posix/pwritev2.c (pwritev2): Likewise.
8659 * sysdeps/posix/pwritev64v2.c (pwritev64v2): Likewise.
8660 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Likewise.
8661 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
8662 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
8663 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likewise.
8664
8665 2017-08-07 Joseph Myers <joseph@codesourcery.com>
8666
8667 [BZ #21899]
8668 * bits/sigaction.h (struct sigaction): Define sa_handler and
8669 sa_sigaction using union also for [__USE_XOPEN_EXTENDED].
8670 (SA_ONSTACK): Change [__USE_UNIX98] condition to
8671 [__USE_XOPEN_EXTENDED].
8672 (SA_RESTART): Likewise.
8673 (SA_NODEFER): Likewise.
8674 (SA_RESETHAND): Likewise.
8675 * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h
8676 (struct sigaction): Define sa_handler and sa_sigaction using union
8677 also for [__USE_XOPEN_EXTENDED].
8678 (SA_ONSTACK): Change [__USE_UNIX98] condition to
8679 [__USE_XOPEN_EXTENDED].
8680 (SA_RESTART): Likewise.
8681 (SA_NODEFER): Likewise.
8682 (SA_RESETHAND): Likewise.
8683 * sysdeps/unix/sysv/linux/bits/sigaction.h
8684 (struct sigaction): Define sa_handler and sa_sigaction using union
8685 also for [__USE_XOPEN_EXTENDED].
8686 (SA_ONSTACK): Change [__USE_UNIX98] condition to
8687 [__USE_XOPEN_EXTENDED].
8688 (SA_RESTART): Likewise.
8689 (SA_NODEFER): Likewise.
8690 (SA_RESETHAND): Likewise.
8691 * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h
8692 (struct sigaction): Define sa_handler and sa_sigaction using union
8693 also for [__USE_XOPEN_EXTENDED].
8694 (SA_ONSTACK): Change [__USE_UNIX98] condition to
8695 [__USE_XOPEN_EXTENDED].
8696 (SA_RESTART): Likewise.
8697 (SA_NODEFER): Likewise.
8698 (SA_RESETHAND): Likewise.
8699 * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h
8700 (struct sigaction): Define sa_handler and sa_sigaction using union
8701 also for [__USE_XOPEN_EXTENDED].
8702 (SA_ONSTACK): Change [__USE_UNIX98] condition to
8703 [__USE_XOPEN_EXTENDED].
8704 (SA_RESTART): Likewise.
8705 (SA_NODEFER): Likewise.
8706 (SA_RESETHAND): Likewise.
8707 * sysdeps/unix/sysv/linux/mips/bits/sigaction.h
8708 (struct sigaction): Define sa_handler and sa_sigaction using union
8709 also for [__USE_XOPEN_EXTENDED].
8710 (SA_ONSTACK): Change [__USE_UNIX98] condition to
8711 [__USE_XOPEN_EXTENDED].
8712 (SA_RESTART): Likewise.
8713 (SA_NODEFER): Likewise.
8714 (SA_RESETHAND): Likewise.
8715 * sysdeps/unix/sysv/linux/s390/bits/sigaction.h
8716 (struct sigaction): Define sa_handler and sa_sigaction using union
8717 also for [__USE_XOPEN_EXTENDED].
8718 (SA_ONSTACK): Change [__USE_UNIX98] condition to
8719 [__USE_XOPEN_EXTENDED].
8720 (SA_RESTART): Likewise.
8721 (SA_NODEFER): Likewise.
8722 (SA_RESETHAND): Likewise.
8723 * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h
8724 (struct sigaction): Define sa_handler and sa_sigaction using union
8725 also for [__USE_XOPEN_EXTENDED].
8726 (SA_ONSTACK): Change [__USE_UNIX98] condition to
8727 [__USE_XOPEN_EXTENDED].
8728 (SA_RESTART): Likewise.
8729 (SA_NODEFER): Likewise. Define directly rather than as alias.
8730 (SA_RESETHAND): Likewise.
8731 (SA_INTERRUPT): Define only for [__USE_MISC].
8732 (SA_NOMASK): Define as alias of SA_NODEFER, only for [__USE_MISC].
8733 (SA_ONESHOT): Define as alias of SA_RESETHAND, only for
8734 [__USE_MISC].
8735 (SA_STACK): Define only for [__USE_MISC].
8736 * sysdeps/unix/sysv/linux/tile/bits/sigaction.h
8737 (struct sigaction): Define sa_handler and sa_sigaction using union
8738 also for [__USE_XOPEN_EXTENDED].
8739 (SA_ONSTACK): Change [__USE_UNIX98] condition to
8740 [__USE_XOPEN_EXTENDED].
8741 (SA_RESTART): Likewise.
8742 (SA_NODEFER): Likewise.
8743 (SA_RESETHAND): Likewise.
8744 (SA_NOPTRACE): Define only for [__USE_MISC].
8745
8746 * catgets/catgets.c (catgets): Use uintN_t instead of u_intN_t.
8747 * catgets/catgetsinfo.h (struct catalog_obj): Likewise.
8748 (struct catalog_info): Likewise.
8749 * inet/htontest.c (lo): Likewise.
8750 (foo): Likewise.
8751 * inet/inet_lnaof.c (inet_lnaof): Likewise.
8752 * inet/inet_net.c (inet_network): Likewise.
8753 * inet/inet_netof.c (inet_netof): Likewise.
8754 * inet/rcmd.c (__ivaliduser): Likewise.
8755 (iruserok): Likewise.
8756 * locale/loadlocale.c (_nl_intern_locale_data): Likewise.
8757 * locale/programs/locale-spec.c (locale_special): Likewise.
8758 * nis/nis_findserv.c (struct findserv_req): Likewise.
8759 (__nis_findfastest_with_timeout): Likewise.
8760 * nss/test-netdb.c (test_network): Likewise.
8761 * resolv/inet_neta.c (inet_neta): Likewise.
8762 * resolv/ns_date.c (ns_datetosecs): Likewise.
8763 (SECS_PER_DAY): Likewise.
8764 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r):
8765 Likewise.
8766 * resolv/res_comp.c (__putlong): Likewise.
8767 (__putshort): Likewise.
8768 (_getlong): Likewise.
8769 (_getshort): Likewise.
8770 * resolv/res_debug.c (p_time): Likewise.
8771 (precsize_ntoa): Likewise.
8772 (precsize_aton): Likewise.
8773 (latlon2ul): Likewise.
8774 (loc_aton): Likewise.
8775 (loc_ntoa): Likewise.
8776 * resolv/res_hconf.c (struct netaddr): Likewise.
8777 (_res_hconf_reorder_addrs): Likewise.
8778 * sunrpc/clnt_tcp.c (clnttcp_call): Likewise.
8779 (clnttcp_control): Likewise.
8780 * sunrpc/clnt_udp.c (clntudp_call): Likewise.
8781 (clntudp_control): Likewise.
8782 * sunrpc/clnt_unix.c (clntunix_call): Likewise.
8783 (clntunix_control): Likewise.
8784 * sunrpc/pmap_rmt.c (clnt_broadcast): Likewise.
8785 * sunrpc/rpc/auth.h (union des_block): Likewise.
8786 * sunrpc/tst-udp-nonblocking.c (do_test): Likewise.
8787 * sunrpc/xdr_rec.c (struct rec_strm): Likewise.
8788 (xdrrec_create): Likewise.
8789 (xdrrec_endofrecord): Likewise.
8790 (flush_out): Likewise.
8791 * sunrpc/xdr_stdio.c (xdrstdio_getlong): Likewise.
8792 (xdrstdio_putlong): Likewise.
8793 * sysdeps/unix/sysv/linux/errqueue.h (struct sock_extended_err):
8794 Likewise.
8795
8796 * misc/sys/cdefs.h (__long_double_t): Remove.
8797 * stdio-common/printf_fp.c (__printf_fp_l): Use long double
8798 instead of __long_double_t,
8799 * stdlib/strfmon_l.c (__vstrfmon_l): Likewise.
8800
8801 2017-08-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
8802
8803 * benchtests/scripts/compare_strings.py: Avoid display error when
8804 running on a text terminal.
8805
8806 * benchtests/scripts/compare_strings.py (main): Add an
8807 optional -base option.
8808 (process_results): New argument base_func.
8809
8810 * benchtests/bench-memcpy.c (test_main): Use TEST_NAME instead of
8811 hardcoding memcpy.
8812 * benchtests/bench-memcpy-large.c (test_name): Likewise.
8813 * benchtests/bench-memcpy-random.c (test_name): Likewise.
8814
8815 2017-08-07 Andreas Schwab <schwab@suse.de>
8816
8817 * elf/Makefile ($(objpfx)tst-pathopt.out): Redirect output to target.
8818 * grp/Makefile ($(objpfx)tst_fgetgrent.out): Likewise.
8819 * intl/Makefile ($(objpfx)tst-gettext.out)
8820 ($(objpfx)tst-translit.out, $(objpfx)tst-gettext2.out)
8821 ($(objpfx)tst-gettext4.out, $(objpfx)tst-gettext6.out): Likewise.
8822 * libio/Makefile ($(objpfx)test-freopen.out): Likewise.
8823 * malloc/Makefile ($(objpfx)tst-mtrace.out): Likewise.
8824 * nptl/Makefile ($(objpfx)tst-tls6.out): Likewise.
8825 * posix/Makefile ($(objpfx)globtest.out)
8826 ($(objpfx)wordexp-tst.out, $(objpfx)tst-getconf.out): Likewise.
8827 * stdio-common/Makefile ($(objpfx)tst-unbputc.out)
8828 ($(objpfx)tst-printf.out): Likewise.
8829 * stdlib/Makefile ($(objpfx)tst-fmtmsg.out)
8830 ($(objpfx)tst-setcontext3.out): Likewise.
8831
8832 2017-08-07 H.J. Lu <hongjiu.lu@intel.com>
8833
8834 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
8835 Add e_exp-fma, e_log-fma, e_pow-fma, s_atan-fma, e_asin-fma,
8836 e_atan2-fma, s_sin-fma, s_tan-fma, mplog-fma, mpa-fma,
8837 slowexp-fma, slowpow-fma, sincos32-fma, doasin-fma, dosincos-fma,
8838 halfulp-fma, mpexp-fma, mpatan2-fma, mpatan-fma, mpsqrt-fma,
8839 and mptan-fma.
8840 (CFLAGS-doasin-fma.c): New.
8841 (CFLAGS-dosincos-fma.c): Likewise.
8842 (CFLAGS-e_asin-fma.c): Likewise.
8843 (CFLAGS-e_atan2-fma.c): Likewise.
8844 (CFLAGS-e_exp-fma.c): Likewise.
8845 (CFLAGS-e_log-fma.c): Likewise.
8846 (CFLAGS-e_pow-fma.c): Likewise.
8847 (CFLAGS-halfulp-fma.c): Likewise.
8848 (CFLAGS-mpa-fma.c): Likewise.
8849 (CFLAGS-mpatan-fma.c): Likewise.
8850 (CFLAGS-mpatan2-fma.c): Likewise.
8851 (CFLAGS-mpexp-fma.c): Likewise.
8852 (CFLAGS-mplog-fma.c): Likewise.
8853 (CFLAGS-mpsqrt-fma.c): Likewise.
8854 (CFLAGS-mptan-fma.c): Likewise.
8855 (CFLAGS-s_atan-fma.c): Likewise.
8856 (CFLAGS-sincos32-fma.c): Likewise.
8857 (CFLAGS-slowexp-fma.c): Likewise.
8858 (CFLAGS-slowpow-fma.c): Likewise.
8859 (CFLAGS-s_sin-fma.c): Likewise.
8860 (CFLAGS-s_tan-fma.c): Likewise.
8861 * sysdeps/x86_64/fpu/multiarch/doasin-fma.c: New file.
8862 * sysdeps/x86_64/fpu/multiarch/dosincos-fma.c: Likewise.
8863 * sysdeps/x86_64/fpu/multiarch/e_asin-fma.c: Likewise.
8864 * sysdeps/x86_64/fpu/multiarch/e_atan2-fma.c: Likewise.
8865 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c: Likewise.
8866 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c: Likewise.
8867 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c: Likewise.
8868 * sysdeps/x86_64/fpu/multiarch/halfulp-fma.c: Likewise.
8869 * sysdeps/x86_64/fpu/multiarch/ifunc-avx-fma4.h: Likewise.
8870 * sysdeps/x86_64/fpu/multiarch/ifunc-fma4.h: Likewise.
8871 * sysdeps/x86_64/fpu/multiarch/mpa-fma.c: Likewise.
8872 * sysdeps/x86_64/fpu/multiarch/mpatan-fma.c: Likewise.
8873 * sysdeps/x86_64/fpu/multiarch/mpatan2-fma.c: Likewise.
8874 * sysdeps/x86_64/fpu/multiarch/mpexp-fma.c: Likewise.
8875 * sysdeps/x86_64/fpu/multiarch/mplog-fma.c: Likewise.
8876 * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma.c: Likewise.
8877 * sysdeps/x86_64/fpu/multiarch/mptan-fma.c: Likewise.
8878 * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c: Likewise.
8879 * sysdeps/x86_64/fpu/multiarch/s_sin-fma.c: Likewise.
8880 * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c: Likewise.
8881 * sysdeps/x86_64/fpu/multiarch/sincos32-fma.c: Likewise.
8882 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
8883 * sysdeps/x86_64/fpu/multiarch/slowpow-fma.c: Likewise.
8884 * sysdeps/x86_64/fpu/multiarch/e_asin.c: Rewrite.
8885 * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
8886 * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
8887 * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
8888 * sysdeps/x86_64/fpu/multiarch/e_pow.c: Likewise.
8889 * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
8890 * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
8891 * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
8892
8893 2017-08-04 Joseph Myers <joseph@codesourcery.com>
8894
8895 * sysdeps/generic/math_private.h (__EXPR_FLT128): Remove macro.
8896 (min_of_type_f): New macro.
8897 (min_of_type_): Likewise.
8898 (min_of_type_l): Likewise.
8899 (min_of_type_f128): Likewise.
8900 (min_of_type): Define using __MATH_TG and taking an expression
8901 argument.
8902 (math_check_force_underflow): Pass expression instead of type to
8903 min_of_type.
8904 (math_check_force_underflow_nonneg): Likewise.
8905
8906 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
8907
8908 * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
8909 (LOAD_RTLD_GLOBAL_RO_RDX, HAS_FEATURE, LOAD_FUNC_GOT_EAX,
8910 HAS_CPU_FEATURE, HAS_ARCH_FEATURE): Removed.
8911
8912 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
8913
8914 * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
8915 bcopy-ia32, bzero-ia32, rawmemchr-ia32 memchr-ia32,
8916 memcmp-ia32, memcpy-ia32, memmove-ia32, mempcpy-ia32,
8917 memset-ia32, strcat-ia32, strchr-ia32, strrchr-ia32,
8918 strcpy-ia32, strcmp-ia32, strcspn-ia32, strpbrk-ia32,
8919 strspn-ia32, strlen-ia32, stpcpy-ia32, stpncpy-ia32,
8920 memcpy_chk-nonshared, mempcpy_chk-nonshared,
8921 memmove_chk-nonshared and memset_chk-nonshared
8922 * sysdeps/i386/i686/multiarch/bcopy-ia32.S: New file.
8923 * sysdeps/i386/i686/multiarch/bcopy.c: Likewise.
8924 * sysdeps/i386/i686/multiarch/bzero-ia32.S: Likewise.
8925 * sysdeps/i386/i686/multiarch/bzero.c: Likewise.
8926 * sysdeps/i386/i686/multiarch/ifunc-memmove.h: Likewise.
8927 * sysdeps/i386/i686/multiarch/ifunc-memset.h: Likewise.
8928 * sysdeps/i386/i686/multiarch/ifunc-sse2-bsf.h: Likewise.
8929 * sysdeps/i386/i686/multiarch/ifunc-sse2-ssse3.h: Likewise.
8930 * sysdeps/i386/i686/multiarch/ifunc-sse2.h: Likewise.
8931 * sysdeps/i386/i686/multiarch/ifunc-sse4_2.h: Likewise.
8932 * sysdeps/i386/i686/multiarch/ifunc-ssse3-sse4_2.h: Likewise.
8933 * sysdeps/i386/i686/multiarch/memchr-ia32.S: Likewise.
8934 * sysdeps/i386/i686/multiarch/memchr.c: Likewise.
8935 * sysdeps/i386/i686/multiarch/memcmp-ia32.S: Likewise.
8936 * sysdeps/i386/i686/multiarch/memcmp.c: Likewise.
8937 * sysdeps/i386/i686/multiarch/memcpy-ia32.S: Likewise.
8938 * sysdeps/i386/i686/multiarch/memcpy.c: Likewise.
8939 * sysdeps/i386/i686/multiarch/memcpy_chk-nonshared.S: Likewise.
8940 * sysdeps/i386/i686/multiarch/memcpy_chk.c: Likewise.
8941 * sysdeps/i386/i686/multiarch/memmove-ia32.S: Likewise.
8942 * sysdeps/i386/i686/multiarch/memmove.c: Likewise.
8943 * sysdeps/i386/i686/multiarch/memmove_chk-nonshared.S: Likewise.
8944 * sysdeps/i386/i686/multiarch/memmove_chk.c: Likewise.
8945 * sysdeps/i386/i686/multiarch/mempcpy-ia32.S: Likewise.
8946 * sysdeps/i386/i686/multiarch/mempcpy.c: Likewise.
8947 * sysdeps/i386/i686/multiarch/mempcpy_chk-nonshared.S: Likewise.
8948 * sysdeps/i386/i686/multiarch/mempcpy_chk.c: Likewise.
8949 * sysdeps/i386/i686/multiarch/memrchr.c: Likewise.
8950 * sysdeps/i386/i686/multiarch/memset-ia32.S: Likewise.
8951 * sysdeps/i386/i686/multiarch/memset.c: Likewise.
8952 * sysdeps/i386/i686/multiarch/memset_chk-nonshared.S: Likewise.
8953 * sysdeps/i386/i686/multiarch/rawmemchr-ia32.S: Likewise.
8954 * sysdeps/i386/i686/multiarch/rawmemchr.c: Likewise.
8955 * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
8956 * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
8957 * sysdeps/i386/i686/multiarch/stpcpy.c: Likewise.
8958 * sysdeps/i386/i686/multiarch/stpncpy-ia32.S: Likewise.
8959 * sysdeps/i386/i686/multiarch/stpncpy.c: Likewise.
8960 * sysdeps/i386/i686/multiarch/strcasecmp.c: Likewise.
8961 * sysdeps/i386/i686/multiarch/strcasecmp_l.c: Likewise.
8962 * sysdeps/i386/i686/multiarch/strcat-ia32.S: Likewise.
8963 * sysdeps/i386/i686/multiarch/strcat.c: Likewise.
8964 * sysdeps/i386/i686/multiarch/strchr-ia32.S: Likewise.
8965 * sysdeps/i386/i686/multiarch/strchr.c: Likewise.
8966 * sysdeps/i386/i686/multiarch/strcmp-ia32.S: Likewise.
8967 * sysdeps/i386/i686/multiarch/strcmp.c: Likewise.
8968 * sysdeps/i386/i686/multiarch/strcpy-ia32.S: Likewise.
8969 * sysdeps/i386/i686/multiarch/strcpy.c: Likewise.
8970 * sysdeps/i386/i686/multiarch/strcspn-ia32.S: Likewise.
8971 * sysdeps/i386/i686/multiarch/strcspn.c: Likewise.
8972 * sysdeps/i386/i686/multiarch/strlen-ia32.S: Likewise.
8973 * sysdeps/i386/i686/multiarch/strlen.c: Likewise.
8974 * sysdeps/i386/i686/multiarch/strncase.c: Likewise.
8975 * sysdeps/i386/i686/multiarch/strncase_l.c: Likewise.
8976 * sysdeps/i386/i686/multiarch/strncat.c: Likewise.
8977 * sysdeps/i386/i686/multiarch/strncmp.c: Likewise.
8978 * sysdeps/i386/i686/multiarch/strncpy.c: Likewise.
8979 * sysdeps/i386/i686/multiarch/strnlen.c: Likewise.
8980 * sysdeps/i386/i686/multiarch/strpbrk-ia32.S: Likewise.
8981 * sysdeps/i386/i686/multiarch/strpbrk.c: Likewise.
8982 * sysdeps/i386/i686/multiarch/strrchr-ia32.S: Likewise.
8983 * sysdeps/i386/i686/multiarch/strrchr.c: Likewise.
8984 * sysdeps/i386/i686/multiarch/strspn-ia32.S: Likewise.
8985 * sysdeps/i386/i686/multiarch/strspn.c: Likewise.
8986 * sysdeps/i386/i686/multiarch/wcschr.c: Likewise.
8987 * sysdeps/i386/i686/multiarch/wcscmp.c: Likewise.
8988 * sysdeps/i386/i686/multiarch/wcscpy.c: Likewise.
8989 * sysdeps/i386/i686/multiarch/wcslen.c: Likewise.
8990 * sysdeps/i386/i686/multiarch/wcsrchr.c: Likewise.
8991 * sysdeps/i386/i686/multiarch/wmemcmp.c: Likewise.
8992 * sysdeps/i386/i686/multiarch/bcopy.S: Removed.
8993 * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
8994 * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
8995 * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
8996 * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
8997 * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
8998 * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
8999 * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
9000 * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
9001 * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
9002 * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
9003 * sysdeps/i386/i686/multiarch/memset.S: Likewise.
9004 * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
9005 * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
9006 * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
9007 * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
9008 * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
9009 * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
9010 * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
9011 * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
9012 * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
9013 * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
9014 * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
9015 * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
9016 * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
9017 * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
9018 * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
9019 * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
9020 * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
9021 * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
9022 * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
9023 * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
9024 * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
9025 * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
9026 * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
9027 * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
9028 * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
9029 * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
9030
9031 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
9032
9033 * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines)
9034 Add svml_d_cos2_core-sse2, svml_d_cos4_core-sse,
9035 svml_d_cos8_core-avx2, svml_d_exp2_core-sse2,
9036 svml_d_exp4_core-sse, svml_d_exp8_core-avx2,
9037 svml_d_log2_core-sse2, svml_d_log4_core-sse,
9038 svml_d_log8_core-avx2, svml_d_pow2_core-sse2,
9039 svml_d_pow4_core-sse, svml_d_pow8_core-avx2
9040 svml_d_sin2_core-sse2, svml_d_sin4_core-sse,
9041 svml_d_sin8_core-avx2, svml_d_sincos2_core-sse2,
9042 svml_d_sincos4_core-sse, svml_d_sincos8_core-avx2,
9043 svml_s_cosf16_core-avx2, svml_s_cosf4_core-sse2,
9044 svml_s_cosf8_core-sse, svml_s_expf16_core-avx2,
9045 svml_s_expf4_core-sse2, svml_s_expf8_core-sse,
9046 svml_s_logf16_core-avx2, svml_s_logf4_core-sse2,
9047 svml_s_logf8_core-sse, svml_s_powf16_core-avx2,
9048 svml_s_powf4_core-sse2, svml_s_powf8_core-sse,
9049 svml_s_sincosf16_core-avx2, svml_s_sincosf4_core-sse2,
9050 svml_s_sincosf8_core-sse, svml_s_sinf16_core-avx2,
9051 svml_s_sinf4_core-sse2 and svml_s_sinf8_core-sse.
9052 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h: New file.
9053 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h: Likewise.
9054 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-sse4_1.h: Likewise.
9055 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.c: Likewise.
9056 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.c: Likewise.
9057 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.c: Likewise.
9058 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.c: Likewise.
9059 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.c: Likewise.
9060 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.c: Likewise.
9061 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.c: Likewise.
9062 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.c: Likewise.
9063 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.c: Likewise.
9064 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.c: Likewise.
9065 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.c: Likewise.
9066 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.c: Likewise.
9067 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.c: Likewise.
9068 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.c: Likewise.
9069 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.c: Likewise.
9070 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.c: Likewise.
9071 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.c: Likewise.
9072 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.c: Likewise.
9073 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.c: Likewise.
9074 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.c: Likewise.
9075 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.c: Likewise.
9076 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.c: Likewise.
9077 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.c: Likewise.
9078 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.c: Likewise.
9079 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.c: Likewise.
9080 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.c: Likewise.
9081 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.c: Likewise.
9082 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.c: Likewise.
9083 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.c: Likewise.
9084 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.c: Likewise.
9085 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.c: Likewise.
9086 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.c: Likewise.
9087 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.c: Likewise.
9088 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.c: Likewise.
9089 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.c: Likewise.
9090 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.c: Likewise.
9091 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.S: Renamed to
9092 ...
9093 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core-sse2.S: This.
9094 Don't include <sysdep.h> nor <init-arch.h>.
9095 (_ZGVbN2v_cos): Removed.
9096 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.S: Renamed to
9097 ...
9098 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core-sse.S: This.
9099 Don't include <sysdep.h> nor <init-arch.h>.
9100 (_ZGVdN4v_cos): Removed.
9101 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S: Renamed to
9102 ...
9103 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core-avx2.S: This.
9104 Don't include <sysdep.h> nor <init-arch.h>.
9105 (_ZGVeN8v_cos): Removed.
9106 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.S: Renamed to
9107 ...
9108 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core-sse2.S: This.
9109 Don't include <sysdep.h> nor <init-arch.h>.
9110 (_ZGVbN2v_exp): Removed.
9111 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.S: Renamed to
9112 ...
9113 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core-sse.S: This.
9114 Don't include <sysdep.h> nor <init-arch.h>.
9115 (_ZGVdN4v_exp): Removed.
9116 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S: Renamed to
9117 ...
9118 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core-avx2.S: This.
9119 Don't include <sysdep.h> nor <init-arch.h>.
9120 (_ZGVeN8v_exp): Removed.
9121 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.S: Renamed to
9122 ...
9123 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core-sse2.S: This.
9124 Don't include <sysdep.h> nor <init-arch.h>.
9125 (_ZGVbN2v_log): Removed.
9126 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.S: Renamed to
9127 ...
9128 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core-sse.S: This.
9129 Don't include <sysdep.h> nor <init-arch.h>.
9130 (_ZGVdN4v_log): Removed.
9131 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S: Renamed to
9132 ...
9133 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core-avx2.S: This.
9134 Don't include <sysdep.h> nor <init-arch.h>.
9135 (_ZGVeN8v_log): Removed.
9136 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.S: Renamed to
9137 ...
9138 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core-sse2.S: This.
9139 Don't include <sysdep.h> nor <init-arch.h>.
9140 (_ZGVbN2vv_pow): Removed.
9141 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.S: Renamed to
9142 ...
9143 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core-sse.S: This.
9144 Don't include <sysdep.h> nor <init-arch.h>.
9145 (_ZGVdN4vv_pow): Removed.
9146 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S: Renamed to
9147 ...
9148 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core-avx2.S: This.
9149 Don't include <sysdep.h> nor <init-arch.h>.
9150 (_ZGVeN8vv_pow): Removed.
9151 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.S: Renamed to
9152 ...
9153 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core-sse2.S: This.
9154 Don't include <sysdep.h> nor <init-arch.h>.
9155 (_ZGVbN2v_sin): Removed.
9156 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.S: Renamed to
9157 ...
9158 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core-sse.S: This.
9159 Don't include <sysdep.h> nor <init-arch.h>.
9160 (_ZGVbN4v_sin): Removed.
9161 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S: Renamed to
9162 ...
9163 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core-avx2.S: This.
9164 Don't include <sysdep.h> nor <init-arch.h>.
9165 (_ZGVbN8v_sin): Removed.
9166 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.S: Renamed to
9167 ...
9168 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core-sse2.S: This.
9169 Don't include <sysdep.h> nor <init-arch.h>.
9170 (_ZGVbN2vvv_sincos): Removed.
9171 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.S: Renamed to
9172 ...
9173 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core-sse.S: This.
9174 Don't include <sysdep.h> nor <init-arch.h>.
9175 (_ZGVdN4vvv_sincos): Removed.
9176 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S: Renamed to
9177 ...
9178 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core-avx2.S: This.
9179 Don't include <sysdep.h> nor <init-arch.h>.
9180 (_ZGVeN8vvv_sincos): Removed.
9181 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.S: Renamed to
9182 ...
9183 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core-avx2.S: This.
9184 Don't include <sysdep.h> nor <init-arch.h>.
9185 (_ZGVeN16v_cosf): Removed.
9186 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.S: Renamed to
9187 ...
9188 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core-sse2.S: This.
9189 Don't include <sysdep.h> nor <init-arch.h>.
9190 (_ZGVbN4v_cosf): Removed.
9191 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.S: Renamed to
9192 ...
9193 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core-sse.S: This.
9194 Don't include <sysdep.h> nor <init-arch.h>.
9195 (_ZGVdN8v_cosf): Removed.
9196 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.S: Renamed to
9197 ...
9198 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core-avx2.S: This.
9199 Don't include <sysdep.h> nor <init-arch.h>.
9200 (_ZGVeN16v_expf): Removed.
9201 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.S: Renamed to
9202 ...
9203 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core-sse2.S: This.
9204 Don't include <sysdep.h> nor <init-arch.h>.
9205 (_ZGVbN4v_expf): Removed.
9206 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.S: Renamed to
9207 ...
9208 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core-sse.S: This.
9209 Don't include <sysdep.h> nor <init-arch.h>.
9210 (_ZGVdN8v_expf): Removed.
9211 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.S: Renamed to
9212 ...
9213 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core-avx2.S: This.
9214 Don't include <sysdep.h> nor <init-arch.h>.
9215 (_ZGVeN16v_logf): Removed.
9216 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.S: Renamed to
9217 ...
9218 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core-sse2.S: This.
9219 Don't include <sysdep.h> nor <init-arch.h>.
9220 (_ZGVbN4v_logf): Removed.
9221 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.S: Renamed to
9222 ...
9223 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core-sse.S: This.
9224 Don't include <sysdep.h> nor <init-arch.h>.
9225 (_ZGVdN8v_logf): Removed.
9226 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.S: Renamed to
9227 ...
9228 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core-avx2.S: This.
9229 Don't include <sysdep.h> nor <init-arch.h>.
9230 (_ZGVeN16vv_powf): Removed.
9231 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.S: Renamed to
9232 ...
9233 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core-sse2.S: This.
9234 Don't include <sysdep.h> nor <init-arch.h>.
9235 (_ZGVbN4vv_powf): Removed.
9236 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.S: Renamed to
9237 ...
9238 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core-sse.S: This.
9239 Don't include <sysdep.h> nor <init-arch.h>.
9240 (_ZGVdN8vv_powf): Removed.
9241 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.S: Renamed to
9242 ...
9243 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core-avx2.S: This.
9244 Don't include <sysdep.h> nor <init-arch.h>.
9245 (_ZGVeN16vvv_sincosf): Removed.
9246 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.S: Renamed to
9247 ...
9248 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core-sse2.S: This.
9249 Don't include <sysdep.h> nor <init-arch.h>.
9250 (_ZGVbN4vvv_sincosf): Removed.
9251 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.S: Renamed to
9252 ...
9253 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core-sse.S: This.
9254 Don't include <sysdep.h> nor <init-arch.h>.
9255 (_ZGVdN8vvv_sincosf): Removed.
9256 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.S: Renamed to
9257 ...
9258 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core-avx2.S: This.
9259 Don't include <sysdep.h> nor <init-arch.h>.
9260 (_ZGVeN16v_sinf): Removed.
9261 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.S: Renamed to
9262 ...
9263 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core-sse2.S: This.
9264 Don't include <sysdep.h> nor <init-arch.h>.
9265 (_ZGVbN4v_sinf): Removed.
9266 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.S: Renamed to
9267 ...
9268 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core-sse.S: This.
9269 Don't include <sysdep.h> nor <init-arch.h>.
9270 (_ZGVdN8v_sinf): Removed.
9271
9272 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
9273
9274 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
9275 Add s_ceil-sse4_1, s_ceilf-sse4_1, s_floor-sse4_1,
9276 s_floorf-sse4_1, s_nearbyint-sse4_1, s_nearbyintf-sse4_1,
9277 s_rint-sse4_1 and s_rintf-sse4_1.
9278 * sysdeps/x86_64/fpu/multiarch/ifunc-sse4_1.h: New file.
9279 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Likewise.
9280 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Likewise.
9281 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Likewise.
9282 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Likewise.
9283 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Likewise.
9284 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Likewise.
9285 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Likewise.
9286 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Likewise.
9287 * sysdeps/x86_64/fpu/multiarch/s_ceil.S: Renamed to ...
9288 * sysdeps/x86_64/fpu/multiarch/s_ceil-sse4_1.S: This. Don't
9289 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
9290 (__ceil): Removed.
9291 * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: Renamed to ...
9292 * sysdeps/x86_64/fpu/multiarch/s_ceilf-sse4_1.S: This. Don't
9293 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
9294 (__ceilf): Removed.
9295 * sysdeps/x86_64/fpu/multiarch/s_floor.S: Renamed to ...
9296 * sysdeps/x86_64/fpu/multiarch/s_floor-sse4_1.S: This. Don't
9297 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
9298 (__floor): Removed.
9299 * sysdeps/x86_64/fpu/multiarch/s_floorf.S: Renamed to ...
9300 * sysdeps/x86_64/fpu/multiarch/s_floorf-sse4_1.S: This. Don't
9301 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
9302 (__floorf): Removed.
9303 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: Renamed to ...
9304 * sysdeps/x86_64/fpu/multiarch/s_nearbyint-sse4_1.S: This. Don't
9305 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
9306 (__nearbyint): Removed.
9307 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: Renamed to ...
9308 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-sse4_1.S: This. Don't
9309 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
9310 (__nearbyintf): Removed.
9311 * sysdeps/x86_64/fpu/multiarch/s_rint.S: Renamed to ...
9312 * sysdeps/x86_64/fpu/multiarch/s_rint-sse4_1.S: This. Don't
9313 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
9314 (__rint): Removed.
9315 * sysdeps/x86_64/fpu/multiarch/s_rintf.S: Renamed to ...
9316 * sysdeps/x86_64/fpu/multiarch/s_rintf-sse4_1.S: This. Don't
9317 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
9318 (__rintf): Removed.
9319
9320 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
9321
9322 * sysdeps/i386/start.S (_start): Check Check PIC instead of
9323 SHARED. Avoid dynamic relocation against main in static PIE.
9324
9325 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
9326
9327 [BZ #21815]
9328 * elf/Makefile (CFLAGS-tst-prelink.c): New.
9329 (LDFLAGS-tst-prelink): Likewise.
9330
9331 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
9332
9333 * sysdeps/unix/sysv/linux/i386/sysdep.h (I386_USE_SYSENTER):
9334 Define to I386_USE_SYSENTER to 0 or 1 if not defined.
9335 (ENTER_KERNEL): Check if I386_USE_SYSENTER is 1 and check PIC.
9336 (INTERNAL_SYSCALL_MAIN_INLINE): Likewise.
9337 (INTERNAL_SYSCALL_NCS): Likewise.
9338 (LOADARGS_1): Likewise.
9339 (LOADARGS_5): Likewise.
9340 (RESTOREARGS_1): Likewise.
9341 (RESTOREARGS_5): Likewise.
9342
9343 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
9344
9345 * sysdeps/x86_64/memmove.S (MEMCPY_SYMBOL): Don't check SHARED.
9346 (MEMPCPY_SYMBOL): Likewise.
9347 * sysdeps/x86_64/multiarch/ifunc-impl-list.c
9348 (__libc_ifunc_impl_list): Test memcpy and mempcpy in libc.a.
9349 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Also include
9350 in libc.a.
9351 * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
9352 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
9353 Likewise.
9354 * sysdeps/x86_64/multiarch/memcpy.c: Also include in libc.a.
9355 (__hidden_ver1): Don't use in libc.a.
9356 * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S
9357 (__mempcpy): Don't create a weak alias in libc.a.
9358 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S: Support
9359 libc.a.
9360 * sysdeps/x86_64/multiarch/mempcpy.c: Also include in libc.a.
9361 (__hidden_ver1): Don't use in libc.a.
9362
9363 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
9364
9365 * config.make.in (have-insert): New.
9366 * configure.ac (libc_cv_insert): New. Set to yes if linker
9367 supports INSERT in linker script.
9368 (AC_SUBST(libc_cv_insert): New.
9369 * configure: Regenerated.
9370 * sysdeps/x86_64/Makefile (tests): Add tst-split-dynreloc only
9371 if $(have-insert) == yes.
9372
9373 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
9374
9375 * elf/Makefile (tests): Add vismain only if
9376 $(have-protected-data) == yes.
9377 (tests-pie): Likewise.
9378
9379 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
9380
9381 [BZ #21871]
9382 * sysdeps/x86/cpu-features.c (init_cpu_features): Set
9383 bit_arch_Use_dl_runtime_resolve_opt only with AVX512F.
9384
9385 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
9386
9387 [BZ #21790]
9388 * sysdeps/i386/i586/memset.S
9389 (__memset_zero_constant_len_parameter): Removed.
9390 * sysdeps/i386/i686/memset.S
9391 (__memset_zero_constant_len_parameter): Likewise.
9392 * sysdeps/i386/i686/multiarch/memset_chk.S
9393 (__memset_zero_constant_len_parameter): Likewise.
9394 * sysdeps/x86_64/memset.S (__memset_zero_constant_len_parameter):
9395 Likewise.
9396
9397 2017-08-03 Aurelien Jarno <aurelien@aurel32.net>
9398
9399 * stdlib/getentropy.c (getentropy): Change return type to int.
9400
9401 2017-08-03 Aurelien Jarno <aurelien@aurel32.net>
9402
9403 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Regenerated.
9404
9405 2017-08-03 Joseph Myers <joseph@codesourcery.com>
9406
9407 * math/s_nextafter.c (__nextafter): Use uintN_t instead of
9408 u_intN_t.
9409 * math/s_nexttowardf.c (__nexttowardf): Likewise.
9410 * sysdeps/generic/math_private.h (ieee_double_shape_type):
9411 Likewise.
9412 (ieee_float_shape_type): Likewise.
9413 * sysdeps/i386/fpu/s_fpclassifyl.c (__fpclassifyl): Likewise.
9414 * sysdeps/i386/fpu/s_isnanl.c (__isnanl): Likewise.
9415 * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Likewise.
9416 * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
9417 * sysdeps/i386/fpu/s_nexttowardf.c (__nexttowardf): Likewise.
9418 * sysdeps/ieee754/dbl-64/e_acosh.c (__ieee754_acosh): Likewise.
9419 * sysdeps/ieee754/dbl-64/e_cosh.c (__ieee754_cosh): Likewise.
9420 * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Likewise.
9421 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
9422 Likewise.
9423 * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
9424 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
9425 (__ieee754_yn): Likewise.
9426 * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
9427 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
9428 * sysdeps/ieee754/dbl-64/e_rem_pio2.c (__ieee754_rem_pio2):
9429 Likewise.
9430 * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
9431 * sysdeps/ieee754/dbl-64/s_ceil.c (__ceil): Likewise.
9432 * sysdeps/ieee754/dbl-64/s_copysign.c (__copysign): Likewise.
9433 * sysdeps/ieee754/dbl-64/s_erf.c (__erf): Likewise.
9434 (__erfc): Likewise.
9435 * sysdeps/ieee754/dbl-64/s_expm1.c (__expm1): Likewise.
9436 * sysdeps/ieee754/dbl-64/s_finite.c (FINITE): Likewise.
9437 * sysdeps/ieee754/dbl-64/s_floor.c (__floor): Likewise.
9438 * sysdeps/ieee754/dbl-64/s_fpclassify.c (__fpclassify): Likewise.
9439 * sysdeps/ieee754/dbl-64/s_isnan.c (__isnan): Likewise.
9440 * sysdeps/ieee754/dbl-64/s_issignaling.c (__issignaling):
9441 Likewise.
9442 * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Likewise.
9443 * sysdeps/ieee754/dbl-64/s_llround.c (__llround): Likewise.
9444 * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
9445 * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Likewise.
9446 * sysdeps/ieee754/dbl-64/s_modf.c (__modf): Likewise.
9447 * sysdeps/ieee754/dbl-64/s_nextup.c (__nextup): Likewise.
9448 * sysdeps/ieee754/dbl-64/s_remquo.c (__remquo): Likewise.
9449 * sysdeps/ieee754/dbl-64/s_round.c (__round): Likewise.
9450 * sysdeps/ieee754/dbl-64/s_trunc.c (__trunc): Likewise.
9451 * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c
9452 (__issignaling): Likewise.
9453 * sysdeps/ieee754/flt-32/e_atan2f.c (__ieee754_atan2f): Likewise.
9454 * sysdeps/ieee754/flt-32/e_fmodf.c (__ieee754_fmodf): Likewise.
9455 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
9456 Likewise.
9457 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
9458 * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
9459 * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Likewise.
9460 * sysdeps/ieee754/flt-32/e_rem_pio2f.c (__ieee754_rem_pio2f):
9461 Likewise.
9462 * sysdeps/ieee754/flt-32/e_remainderf.c (__ieee754_remainderf):
9463 Likewise.
9464 * sysdeps/ieee754/flt-32/e_sqrtf.c (__ieee754_sqrtf): Likewise.
9465 * sysdeps/ieee754/flt-32/s_ceilf.c (__ceilf): Likewise.
9466 * sysdeps/ieee754/flt-32/s_copysignf.c (__copysignf): Likewise.
9467 * sysdeps/ieee754/flt-32/s_erff.c (__erff): Likewise.
9468 (__erfcf): Likewise.
9469 * sysdeps/ieee754/flt-32/s_expm1f.c (__expm1f): Likewise.
9470 * sysdeps/ieee754/flt-32/s_finitef.c (FINITEF): Likewise.
9471 * sysdeps/ieee754/flt-32/s_floorf.c (__floorf): Likewise.
9472 * sysdeps/ieee754/flt-32/s_fpclassifyf.c (__fpclassifyf):
9473 Likewise.
9474 * sysdeps/ieee754/flt-32/s_isnanf.c (__isnanf): Likewise.
9475 * sysdeps/ieee754/flt-32/s_issignalingf.c (__issignalingf):
9476 Likewise.
9477 * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
9478 * sysdeps/ieee754/flt-32/s_llroundf.c (__llroundf): Likewise.
9479 * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
9480 * sysdeps/ieee754/flt-32/s_lroundf.c (__lroundf): Likewise.
9481 * sysdeps/ieee754/flt-32/s_modff.c (__modff): Likewise.
9482 * sysdeps/ieee754/flt-32/s_remquof.c (__remquof): Likewise.
9483 * sysdeps/ieee754/flt-32/s_roundf.c (__roundf): Likewise.
9484 * sysdeps/ieee754/ldbl-128/e_acoshl.c (__ieee754_acoshl):
9485 Likewise.
9486 * sysdeps/ieee754/ldbl-128/e_atan2l.c (__ieee754_atan2l):
9487 Likewise.
9488 * sysdeps/ieee754/ldbl-128/e_atanhl.c (__ieee754_atanhl):
9489 Likewise.
9490 * sysdeps/ieee754/ldbl-128/e_fmodl.c (__ieee754_fmodl): Likewise.
9491 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
9492 Likewise.
9493 * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
9494 Likewise.
9495 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
9496 (__ieee754_ynl): Likewise.
9497 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
9498 * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c (__ieee754_rem_pio2l):
9499 Likewise.
9500 * sysdeps/ieee754/ldbl-128/e_remainderl.c (__ieee754_remainderl):
9501 Likewise.
9502 * sysdeps/ieee754/ldbl-128/e_sinhl.c (__ieee754_sinhl): Likewise.
9503 * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Likewise.
9504 * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
9505 Likewise.
9506 * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Likewise.
9507 * sysdeps/ieee754/ldbl-128/s_ceill.c (__ceill): Likewise.
9508 * sysdeps/ieee754/ldbl-128/s_copysignl.c (__copysignl): Likewise.
9509 * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Likewise.
9510 * sysdeps/ieee754/ldbl-128/s_fabsl.c (__fabsl): Likewise.
9511 * sysdeps/ieee754/ldbl-128/s_finitel.c (__finitel): Likewise.
9512 * sysdeps/ieee754/ldbl-128/s_floorl.c (__floorl): Likewise.
9513 * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c (__fpclassifyl):
9514 Likewise.
9515 * sysdeps/ieee754/ldbl-128/s_frexpl.c (__frexpl): Likewise.
9516 * sysdeps/ieee754/ldbl-128/s_isnanl.c (__isnanl): Likewise.
9517 * sysdeps/ieee754/ldbl-128/s_issignalingl.c (__issignalingl):
9518 Likewise.
9519 * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
9520 * sysdeps/ieee754/ldbl-128/s_llroundl.c (__llroundl): Likewise.
9521 * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
9522 * sysdeps/ieee754/ldbl-128/s_lroundl.c (__lroundl): Likewise.
9523 * sysdeps/ieee754/ldbl-128/s_modfl.c (__modfl): Likewise.
9524 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
9525 Likewise.
9526 * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl):
9527 Likewise.
9528 * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
9529 Likewise.
9530 * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
9531 Likewise.
9532 * sysdeps/ieee754/ldbl-128/s_nextupl.c (__nextupl): Likewise.
9533 * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Likewise.
9534 * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
9535 * sysdeps/ieee754/ldbl-128/s_roundl.c (__roundl): Likewise.
9536 * sysdeps/ieee754/ldbl-128/s_tanhl.c (__tanhl): Likewise.
9537 * sysdeps/ieee754/ldbl-128/s_truncl.c (__truncl): Likewise.
9538 * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl):
9539 Likewise.
9540 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
9541 Likewise.
9542 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
9543 * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
9544 Likewise.
9545 * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c
9546 (__ieee754_remainderl): Likewise.
9547 * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
9548 * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
9549 * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Likewise.
9550 * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c (___fpclassifyl):
9551 Likewise.
9552 * sysdeps/ieee754/ldbl-128ibm/s_modfl.c (__modfl): Likewise.
9553 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
9554 Likewise.
9555 * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
9556 * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Likewise.
9557 * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
9558 * sysdeps/ieee754/ldbl-96/e_atanhl.c (__ieee754_atanhl): Likewise.
9559 * sysdeps/ieee754/ldbl-96/e_coshl.c (__ieee754_coshl): Likewise.
9560 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
9561 Likewise.
9562 * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
9563 * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Likewise.
9564 (__ieee754_y0l): Likewise.
9565 (pzero): Likewise.
9566 (qzero): Likewise.
9567 * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
9568 (__ieee754_y1l): Likewise.
9569 (pone): Likewise.
9570 (qone): Likewise.
9571 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
9572 (__ieee754_ynl): Likewise.
9573 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Likewise.
9574 (__ieee754_lgammal_r): Likewise.
9575 * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c (__ieee754_rem_pio2l):
9576 Likewise.
9577 * sysdeps/ieee754/ldbl-96/e_sinhl.c (__ieee754_sinhl): Likewise.
9578 * sysdeps/ieee754/ldbl-96/s_copysignl.c (__copysignl): Likewise.
9579 * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfl): Likewise.
9580 (__erfcl): Likewise.
9581 * sysdeps/ieee754/ldbl-96/s_frexpl.c (__frexpl): Likewise.
9582 * sysdeps/ieee754/ldbl-96/s_issignalingl.c (__issignalingl):
9583 Likewise.
9584 * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
9585 * sysdeps/ieee754/ldbl-96/s_llroundl.c (__llroundl): Likewise.
9586 * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
9587 * sysdeps/ieee754/ldbl-96/s_lroundl.c (__lroundl): Likewise.
9588 * sysdeps/ieee754/ldbl-96/s_modfl.c (__modfl): Likewise.
9589 * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
9590 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
9591 Likewise.
9592 * sysdeps/ieee754/ldbl-96/s_nextupl.c (__nextupl): Likewise.
9593 * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Likewise.
9594 * sysdeps/ieee754/ldbl-96/s_roundl.c (__roundl): Likewise.
9595 * sysdeps/ieee754/ldbl-96/s_tanhl.c (__tanhl): Likewise.
9596 * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
9597 Likewise.
9598 * sysdeps/m68k/m680x0/fpu/e_pow.c (s(__ieee754_pow)): Likewise.
9599 * sysdeps/m68k/m680x0/fpu/s_fpclassifyl.c (__fpclassifyl):
9600 Likewise.
9601 * sysdeps/m68k/m680x0/fpu/s_llrint.c (__llrint): Likewise.
9602 * sysdeps/m68k/m680x0/fpu/s_llrintf.c (__llrintf): Likewise.
9603 * sysdeps/m68k/m680x0/fpu/s_llrintl.c (__llrintl): Likewise.
9604 * sysdeps/m68k/m680x0/fpu/s_nextafterl.c (__nextafterl): Likewise.
9605 * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Likewise.
9606
9607 2017-08-03 Florian Weimer <fweimer@redhat.com>
9608
9609 [BZ #21885]
9610 * sysdeps/posix/getaddrinfo.c (gethosts): Release resolver context
9611 on memory allocation failure.
9612
9613 2017-08-03 Alan Modra <amodra@gmail.com>
9614
9615 * sysdeps/powerpc/mod-tlsopt-powerpc.c: Extract from
9616 tst-tlsopt-powerpc.c with function name change and no test harness.
9617 * sysdeps/powerpc/tst-tlsopt-powerpc.c: Remove body of test.
9618 Call tls_get_addr_opt_test.
9619 * sysdeps/powerpc/Makefile (LDFLAGS-tst-tlsopt-powerpc): Don't define.
9620 (modules-names): Add mod-tlsopt-powerpc.
9621 (mod-tlsopt-powerpc.so-no-z-defs): Define.
9622 (tst-tlsopt-powerpc): Depend on .so.
9623 * sysdeps/powerpc/powerpc64/tls-macros.h (__TLS_GET_ADDR): Don't
9624 define. Expand use in TLS_GD and TLS_LD.
9625
9626 2017-08-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
9627
9628 * sysdeps/mach/hurd/enbl-secure.c (__libc_init_secure): Define
9629 function.
9630 * sysdeps/posix/shm_open.c: Include <pthread.h>.
9631
9632 2017-08-02 Joseph Myers <joseph@codesourcery.com>
9633
9634 [BZ #21686]
9635 * math/tgmath.h (__TGMATH_BINARY_REAL_ONLY): Add arguments before
9636 comparing size with that of double.
9637 (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
9638 (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
9639 (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
9640 (__TGMATH_TERNARY_REAL_ONLY): Likewise.
9641 (__TGMATH_BINARY_REAL_IMAG): Likewise.
9642 * math/gen-tgmath-tests.py (Type.init_types): Create __int128 and
9643 unsigned __int128 types.
9644
9645 2017-08-02 Steve Ellcey <sellcey@cavium.com>
9646
9647 * localedata/Makefile (CFLAGS-tst_iswalnum.c, CFLAGS-tst_iswalpha.c
9648 CFLAGS-tst_iswcntrl.c, CFLAGS-tst_iswdigit.c, CFLAGS-tst_iswgraph.c,
9649 CFLAGS-tst_iswlower.c, CFLAGS-tst_iswprint.c, CFLAGS-tst_iswpunct.c,
9650 CFLAGS-tst_iswspace.c, CFLAGS-tst_iswupper.c, CFLAGS-tst_iswxdigit.c,
9651 CFLAGS-tst_towlower.c, CFLAGS-tst_towupper.c): Remove.
9652
9653 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
9654
9655 * sysdeps/x86_64/start.S (_start): Check PIC instead of SHARED.
9656
9657 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
9658
9659 * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Check PIC instead
9660 of SHARED.
9661 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Likewise.
9662 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
9663 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
9664 * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
9665 * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
9666 * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
9667 * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
9668
9669 2017-08-02 Joseph Myers <joseph@codesourcery.com>
9670
9671 [BZ #21685]
9672 * math/tgmath.h (__tgmath_real_type): Use unary + on potentially
9673 bit-field expressions passed to sizeof or typeof.
9674 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
9675 (__TGMATH_F128): Likewise.
9676 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
9677 (__TGMATH_CF128): Likewise.
9678 (__TGMATH_UNARY_REAL_ONLY): Likewise.
9679 (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
9680 (__TGMATH_BINARY_FIRST_REAL_ONLY): Likewise.
9681 (__TGMATH_BINARY_FIRST_REAL_STD_ONLY): Likewise.
9682 (__TGMATH_BINARY_REAL_ONLY): Likewise.
9683 (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
9684 (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
9685 (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
9686 (__TGMATH_TERNARY_REAL_ONLY): Likewise.
9687 (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY): Likewise.
9688 (__TGMATH_UNARY_REAL_IMAG): Likewise.
9689 (__TGMATH_UNARY_IMAG): Likewise.
9690 (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
9691 (__TGMATH_BINARY_REAL_IMAG): Likewise.
9692 * math/gen-tgmath-tests.py (Type.init_types): Create bit_field
9693 type.
9694 (define_vars_for_type): Handle bit_field type specially.
9695 (Tests.__init__): Declare structure with bit-field element.
9696
9697 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
9698
9699 [BZ #21791]
9700 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S
9701 (MEMCPY_CHK): Define only if SHARED is defined.
9702 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S (MEMCPY_CHK):
9703 Likewise.
9704 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S (MEMCPY_CHK):
9705 Likewise.
9706
9707 See ChangeLog.18 for earlier changes.